From 6fa8716dcbfc4549923a3305dfd01ee3e982c3c5 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 24 Jan 2023 22:05:00 +0000 Subject: [PATCH 1/4] docs: Clarify boost usage in Reference PiperOrigin-RevId: 504332057 Source-Link: https://github.com/googleapis/googleapis/commit/13dd16c53c52de79a9a03197ea2c4497349d84e5 Source-Link: https://github.com/googleapis/googleapis-gen/commit/75a668a05f5e438fbc0105c85433ae181ef37ec0 Copy-Tag: eyJwIjoiamF2YS1zcGVlY2gvLk93bEJvdC55YW1sIiwiaCI6Ijc1YTY2OGEwNWY1ZTQzOGZiYzAxMDVjODU0MzNhZTE4MWVmMzdlYzAifQ== --- .../cloud/speech/v1/AdaptationGrpc.java | 1393 -------- .../google/cloud/speech/v1/SpeechGrpc.java | 579 ---- .../speech/v1p1beta1/AdaptationGrpc.java | 1424 --------- .../cloud/speech/v1p1beta1/SpeechGrpc.java | 589 ---- .../google/cloud/speech/v2/SpeechGrpc.java | 2830 ----------------- .../v1/DeletePhraseSetRequestOrBuilder.java | 56 - .../v1/GetCustomClassRequestOrBuilder.java | 56 - .../speech/v1/RecognizeRequestOrBuilder.java | 110 - .../speech/v1/SpeechAdaptationProto.java | 311 -- .../google/cloud/speech/v1/SpeechProto.java | 495 --- .../cloud/speech/v1/SpeechResourceProto.java | 155 - .../DeletePhraseSetRequestOrBuilder.java | 56 - .../GetCustomClassRequestOrBuilder.java | 56 - .../v1p1beta1/RecognizeRequestOrBuilder.java | 110 - .../v1p1beta1/SpeechAdaptationProto.java | 318 -- .../cloud/speech/v1p1beta1/SpeechProto.java | 513 --- .../speech/v1p1beta1/SpeechResourceProto.java | 190 -- .../v2/AutoDetectDecodingConfigOrBuilder.java | 24 - .../v2/BatchRecognizeMetadataOrBuilder.java | 96 - .../cloud/speech/v2/CloudSpeechProto.java | 1346 -------- .../speech/v2/GetConfigRequestOrBuilder.java | 58 - .../v2/GetCustomClassRequestOrBuilder.java | 56 - .../v2/GetPhraseSetRequestOrBuilder.java | 56 - .../v2/GetRecognizerRequestOrBuilder.java | 56 - .../cloud/speech/v1/AdaptationClient.java | 0 .../cloud/speech/v1/AdaptationSettings.java | 1 + .../google/cloud/speech/v1/SpeechClient.java | 0 .../cloud/speech/v1/SpeechSettings.java | 1 + .../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 | 0 .../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 | 0 .../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 | 0 .../cloud/speech/v1/SpeechClientTest.java | 0 .../cloud/speech/v1/AdaptationGrpc.java | 1085 +++++++ .../google/cloud/speech/v1/SpeechGrpc.java | 479 +++ .../speech/v1/CreateCustomClassRequest.java | 571 ++-- .../v1/CreateCustomClassRequestOrBuilder.java | 64 +- .../speech/v1/CreatePhraseSetRequest.java | 570 ++-- .../v1/CreatePhraseSetRequestOrBuilder.java | 64 +- .../google/cloud/speech/v1/CustomClass.java | 856 ++--- .../cloud/speech/v1/CustomClassName.java | 0 .../cloud/speech/v1/CustomClassOrBuilder.java | 54 +- .../speech/v1/DeleteCustomClassRequest.java | 353 +- .../v1/DeleteCustomClassRequestOrBuilder.java | 35 +- .../speech/v1/DeletePhraseSetRequest.java | 353 +- .../v1/DeletePhraseSetRequestOrBuilder.java | 31 + .../speech/v1/GetCustomClassRequest.java | 353 +- .../v1/GetCustomClassRequestOrBuilder.java | 31 + .../cloud/speech/v1/GetPhraseSetRequest.java | 346 +- .../v1/GetPhraseSetRequestOrBuilder.java | 35 +- .../speech/v1/ListCustomClassesRequest.java | 458 ++- .../v1/ListCustomClassesRequestOrBuilder.java | 47 +- .../speech/v1/ListCustomClassesResponse.java | 481 ++- .../ListCustomClassesResponseOrBuilder.java | 45 +- .../cloud/speech/v1/ListPhraseSetRequest.java | 454 ++- .../v1/ListPhraseSetRequestOrBuilder.java | 47 +- .../speech/v1/ListPhraseSetResponse.java | 485 ++- .../v1/ListPhraseSetResponseOrBuilder.java | 45 +- .../google/cloud/speech/v1/LocationName.java | 0 .../v1/LongRunningRecognizeMetadata.java | 542 ++-- ...LongRunningRecognizeMetadataOrBuilder.java | 46 +- .../v1/LongRunningRecognizeRequest.java | 693 ++-- .../LongRunningRecognizeRequestOrBuilder.java | 78 +- .../v1/LongRunningRecognizeResponse.java | 835 ++--- ...LongRunningRecognizeResponseOrBuilder.java | 71 +- .../com/google/cloud/speech/v1/PhraseSet.java | 854 ++--- .../google/cloud/speech/v1/PhraseSetName.java | 0 .../cloud/speech/v1/PhraseSetOrBuilder.java | 48 +- .../cloud/speech/v1/RecognitionAudio.java | 433 ++- .../speech/v1/RecognitionAudioOrBuilder.java | 36 +- .../cloud/speech/v1/RecognitionConfig.java | 1646 ++++------ .../speech/v1/RecognitionConfigOrBuilder.java | 145 +- .../cloud/speech/v1/RecognitionMetadata.java | 1201 +++---- .../v1/RecognitionMetadataOrBuilder.java | 93 +- .../cloud/speech/v1/RecognizeRequest.java | 539 ++-- .../speech/v1/RecognizeRequestOrBuilder.java | 66 + .../cloud/speech/v1/RecognizeResponse.java | 646 ++-- .../speech/v1/RecognizeResponseOrBuilder.java | 55 +- .../speech/v1/SpeakerDiarizationConfig.java | 431 +-- .../v1/SpeakerDiarizationConfigOrBuilder.java | 40 +- .../cloud/speech/v1/SpeechAdaptation.java | 1163 +++---- .../cloud/speech/v1/SpeechAdaptationInfo.java | 357 +-- .../v1/SpeechAdaptationInfoOrBuilder.java | 30 +- .../speech/v1/SpeechAdaptationOrBuilder.java | 92 +- .../speech/v1/SpeechAdaptationProto.java | 285 ++ .../google/cloud/speech/v1/SpeechContext.java | 380 +-- .../speech/v1/SpeechContextOrBuilder.java | 39 +- .../google/cloud/speech/v1/SpeechProto.java | 427 +++ .../v1/SpeechRecognitionAlternative.java | 524 ++- ...SpeechRecognitionAlternativeOrBuilder.java | 49 +- .../speech/v1/SpeechRecognitionResult.java | 625 ++-- .../v1/SpeechRecognitionResultOrBuilder.java | 53 +- .../cloud/speech/v1/SpeechResourceProto.java | 135 + .../speech/v1/StreamingRecognitionConfig.java | 476 ++- .../StreamingRecognitionConfigOrBuilder.java | 44 +- .../speech/v1/StreamingRecognitionResult.java | 700 ++-- .../StreamingRecognitionResultOrBuilder.java | 59 +- .../speech/v1/StreamingRecognizeRequest.java | 459 ++- .../StreamingRecognizeRequestOrBuilder.java | 35 +- .../speech/v1/StreamingRecognizeResponse.java | 891 ++---- .../StreamingRecognizeResponseOrBuilder.java | 75 +- .../speech/v1/TranscriptOutputConfig.java | 383 +-- .../v1/TranscriptOutputConfigOrBuilder.java | 30 +- .../speech/v1/UpdateCustomClassRequest.java | 491 ++- .../v1/UpdateCustomClassRequestOrBuilder.java | 46 +- .../speech/v1/UpdatePhraseSetRequest.java | 490 ++- .../v1/UpdatePhraseSetRequestOrBuilder.java | 46 +- .../com/google/cloud/speech/v1/WordInfo.java | 546 ++-- .../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 | 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 | 0 .../SyncDeleteCustomClassCustomclassname.java | 0 .../SyncDeleteCustomClassString.java | 0 .../deletephraseset/AsyncDeletePhraseSet.java | 0 .../deletephraseset/SyncDeletePhraseSet.java | 0 .../SyncDeletePhraseSetPhrasesetname.java | 0 .../SyncDeletePhraseSetString.java | 0 .../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 .../speech/create/SyncCreateSetEndpoint.java | 0 .../AsyncLongRunningRecognize.java | 0 .../AsyncLongRunningRecognizeLRO.java | 0 .../SyncLongRunningRecognize.java | 0 ...nizeRecognitionconfigRecognitionaudio.java | 0 .../v1/speech/recognize/AsyncRecognize.java | 0 .../v1/speech/recognize/SyncRecognize.java | 0 ...nizeRecognitionconfigRecognitionaudio.java | 0 .../AsyncStreamingRecognize.java | 0 .../recognize/SyncRecognize.java | 0 .../createphraseset/SyncCreatePhraseSet.java | 0 .../recognize/SyncRecognize.java | 0 .../speech/v1p1beta1/AdaptationClient.java | 0 .../speech/v1p1beta1/AdaptationSettings.java | 1 + .../cloud/speech/v1p1beta1/SpeechClient.java | 0 .../speech/v1p1beta1/SpeechSettings.java | 1 + .../speech/v1p1beta1/gapic_metadata.json | 0 .../cloud/speech/v1p1beta1/package-info.java | 0 .../speech/v1p1beta1/stub/AdaptationStub.java | 0 .../stub/AdaptationStubSettings.java | 0 .../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 | 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 | 0 .../speech/v1p1beta1/SpeechClientTest.java | 0 .../speech/v1p1beta1/AdaptationGrpc.java | 1085 +++++++ .../cloud/speech/v1p1beta1/SpeechGrpc.java | 479 +++ .../v1p1beta1/CreateCustomClassRequest.java | 571 ++-- .../CreateCustomClassRequestOrBuilder.java | 64 +- .../v1p1beta1/CreatePhraseSetRequest.java | 570 ++-- .../CreatePhraseSetRequestOrBuilder.java | 64 +- .../cloud/speech/v1p1beta1/CustomClass.java | 863 ++--- .../speech/v1p1beta1/CustomClassName.java | 0 .../v1p1beta1/CustomClassOrBuilder.java | 54 +- .../v1p1beta1/DeleteCustomClassRequest.java | 356 +-- .../DeleteCustomClassRequestOrBuilder.java | 35 +- .../v1p1beta1/DeletePhraseSetRequest.java | 356 +-- .../DeletePhraseSetRequestOrBuilder.java | 31 + .../v1p1beta1/GetCustomClassRequest.java | 356 +-- .../GetCustomClassRequestOrBuilder.java | 31 + .../speech/v1p1beta1/GetPhraseSetRequest.java | 356 +-- .../GetPhraseSetRequestOrBuilder.java | 35 +- .../v1p1beta1/ListCustomClassesRequest.java | 461 ++- .../ListCustomClassesRequestOrBuilder.java | 47 +- .../v1p1beta1/ListCustomClassesResponse.java | 466 ++- .../ListCustomClassesResponseOrBuilder.java | 45 +- .../v1p1beta1/ListPhraseSetRequest.java | 461 ++- .../ListPhraseSetRequestOrBuilder.java | 47 +- .../v1p1beta1/ListPhraseSetResponse.java | 489 ++- .../ListPhraseSetResponseOrBuilder.java | 45 +- .../cloud/speech/v1p1beta1/LocationName.java | 0 .../LongRunningRecognizeMetadata.java | 718 ++--- ...LongRunningRecognizeMetadataOrBuilder.java | 66 +- .../LongRunningRecognizeRequest.java | 710 ++--- .../LongRunningRecognizeRequestOrBuilder.java | 78 +- .../LongRunningRecognizeResponse.java | 878 ++--- ...LongRunningRecognizeResponseOrBuilder.java | 74 +- .../cloud/speech/v1p1beta1/PhraseSet.java | 900 +++--- .../cloud/speech/v1p1beta1/PhraseSetName.java | 0 .../speech/v1p1beta1/PhraseSetOrBuilder.java | 52 +- .../speech/v1p1beta1/RecognitionAudio.java | 440 ++- .../v1p1beta1/RecognitionAudioOrBuilder.java | 36 +- .../speech/v1p1beta1/RecognitionConfig.java | 1943 ++++------- .../v1p1beta1/RecognitionConfigOrBuilder.java | 188 +- .../speech/v1p1beta1/RecognitionMetadata.java | 1314 +++----- .../RecognitionMetadataOrBuilder.java | 116 +- .../speech/v1p1beta1/RecognizeRequest.java | 541 ++-- .../v1p1beta1/RecognizeRequestOrBuilder.java | 66 + .../speech/v1p1beta1/RecognizeResponse.java | 667 ++-- .../v1p1beta1/RecognizeResponseOrBuilder.java | 58 +- .../v1p1beta1/SpeakerDiarizationConfig.java | 418 +-- .../SpeakerDiarizationConfigOrBuilder.java | 36 +- .../speech/v1p1beta1/SpeechAdaptation.java | 1189 +++---- .../v1p1beta1/SpeechAdaptationInfo.java | 364 +-- .../SpeechAdaptationInfoOrBuilder.java | 30 +- .../v1p1beta1/SpeechAdaptationOrBuilder.java | 92 +- .../v1p1beta1/SpeechAdaptationProto.java | 292 ++ .../cloud/speech/v1p1beta1/SpeechContext.java | 389 +-- .../v1p1beta1/SpeechContextOrBuilder.java | 39 +- .../cloud/speech/v1p1beta1/SpeechProto.java | 441 +++ .../SpeechRecognitionAlternative.java | 545 ++-- ...SpeechRecognitionAlternativeOrBuilder.java | 48 +- .../v1p1beta1/SpeechRecognitionResult.java | 723 ++--- .../SpeechRecognitionResultOrBuilder.java | 67 +- .../speech/v1p1beta1/SpeechResourceProto.java | 162 + .../v1p1beta1/StreamingRecognitionConfig.java | 484 ++- .../StreamingRecognitionConfigOrBuilder.java | 44 +- .../v1p1beta1/StreamingRecognitionResult.java | 805 ++--- .../StreamingRecognitionResultOrBuilder.java | 73 +- .../v1p1beta1/StreamingRecognizeRequest.java | 470 ++- .../StreamingRecognizeRequestOrBuilder.java | 38 +- .../v1p1beta1/StreamingRecognizeResponse.java | 930 ++---- .../StreamingRecognizeResponseOrBuilder.java | 77 +- .../v1p1beta1/TranscriptNormalization.java | 971 +++--- .../TranscriptNormalizationOrBuilder.java | 33 +- .../v1p1beta1/TranscriptOutputConfig.java | 389 +-- .../TranscriptOutputConfigOrBuilder.java | 33 +- .../v1p1beta1/UpdateCustomClassRequest.java | 491 ++- .../UpdateCustomClassRequestOrBuilder.java | 46 +- .../v1p1beta1/UpdatePhraseSetRequest.java | 490 ++- .../UpdatePhraseSetRequestOrBuilder.java | 46 +- .../cloud/speech/v1p1beta1/WordInfo.java | 553 ++-- .../speech/v1p1beta1/WordInfoOrBuilder.java | 49 +- .../cloud/speech/v1p1beta1/cloud_speech.proto | 0 .../v1p1beta1/cloud_speech_adaptation.proto | 0 .../cloud/speech/v1p1beta1/resource.proto | 8 +- .../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 | 0 .../SyncDeleteCustomClassCustomclassname.java | 0 .../SyncDeleteCustomClassString.java | 0 .../deletephraseset/AsyncDeletePhraseSet.java | 0 .../deletephraseset/SyncDeletePhraseSet.java | 0 .../SyncDeletePhraseSetPhrasesetname.java | 0 .../SyncDeletePhraseSetString.java | 0 .../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 .../speech/create/SyncCreateSetEndpoint.java | 0 .../AsyncLongRunningRecognize.java | 0 .../AsyncLongRunningRecognizeLRO.java | 0 .../SyncLongRunningRecognize.java | 0 ...nizeRecognitionconfigRecognitionaudio.java | 0 .../speech/recognize/AsyncRecognize.java | 0 .../speech/recognize/SyncRecognize.java | 0 ...nizeRecognitionconfigRecognitionaudio.java | 0 .../AsyncStreamingRecognize.java | 0 .../recognize/SyncRecognize.java | 0 .../createphraseset/SyncCreatePhraseSet.java | 0 .../recognize/SyncRecognize.java | 0 .../google/cloud/speech/v2/SpeechClient.java | 0 .../cloud/speech/v2/SpeechSettings.java | 1 + .../cloud/speech/v2/gapic_metadata.json | 0 .../google/cloud/speech/v2/package-info.java | 0 .../v2/stub/GrpcSpeechCallableFactory.java | 0 .../cloud/speech/v2/stub/GrpcSpeechStub.java | 1 + .../stub/HttpJsonSpeechCallableFactory.java | 0 .../speech/v2/stub/HttpJsonSpeechStub.java | 1 + .../cloud/speech/v2/stub/SpeechStub.java | 0 .../speech/v2/stub/SpeechStubSettings.java | 0 .../google/cloud/speech/v2/MockSpeech.java | 0 .../cloud/speech/v2/MockSpeechImpl.java | 0 .../speech/v2/SpeechClientHttpJsonTest.java | 0 .../cloud/speech/v2/SpeechClientTest.java | 0 .../google/cloud/speech/v2/SpeechGrpc.java | 2207 +++++++++++++ .../speech/v2/AutoDetectDecodingConfig.java | 251 +- .../v2/AutoDetectDecodingConfigOrBuilder.java | 9 + .../speech/v2/BatchRecognizeFileMetadata.java | 572 ++-- .../BatchRecognizeFileMetadataOrBuilder.java | 46 +- .../speech/v2/BatchRecognizeFileResult.java | 403 +-- .../v2/BatchRecognizeFileResultOrBuilder.java | 35 +- .../speech/v2/BatchRecognizeMetadata.java | 584 ++-- .../v2/BatchRecognizeMetadataOrBuilder.java | 63 + .../speech/v2/BatchRecognizeRequest.java | 687 ++-- .../v2/BatchRecognizeRequestOrBuilder.java | 69 +- .../speech/v2/BatchRecognizeResponse.java | 504 ++- .../v2/BatchRecognizeResponseOrBuilder.java | 47 +- .../BatchRecognizeTranscriptionMetadata.java | 463 ++- ...cognizeTranscriptionMetadataOrBuilder.java | 38 +- .../cloud/speech/v2/CloudSpeechProto.java | 1186 +++++++ .../com/google/cloud/speech/v2/Config.java | 545 ++-- .../google/cloud/speech/v2/ConfigName.java | 0 .../cloud/speech/v2/ConfigOrBuilder.java | 61 +- .../speech/v2/CreateCustomClassRequest.java | 607 ++-- .../v2/CreateCustomClassRequestOrBuilder.java | 67 +- .../speech/v2/CreatePhraseSetRequest.java | 606 ++-- .../v2/CreatePhraseSetRequestOrBuilder.java | 67 +- .../speech/v2/CreateRecognizerRequest.java | 606 ++-- .../v2/CreateRecognizerRequestOrBuilder.java | 67 +- .../google/cloud/speech/v2/CustomClass.java | 2161 +++++-------- .../cloud/speech/v2/CustomClassName.java | 0 .../cloud/speech/v2/CustomClassOrBuilder.java | 221 +- .../speech/v2/DeleteCustomClassRequest.java | 497 ++- .../v2/DeleteCustomClassRequestOrBuilder.java | 50 +- .../speech/v2/DeletePhraseSetRequest.java | 497 ++- .../v2/DeletePhraseSetRequestOrBuilder.java | 50 +- .../speech/v2/DeleteRecognizerRequest.java | 497 ++- .../v2/DeleteRecognizerRequestOrBuilder.java | 50 +- .../speech/v2/ExplicitDecodingConfig.java | 493 ++- .../v2/ExplicitDecodingConfigOrBuilder.java | 38 +- .../cloud/speech/v2/GetConfigRequest.java | 346 +- .../speech/v2/GetConfigRequestOrBuilder.java | 33 + .../speech/v2/GetCustomClassRequest.java | 353 +- .../v2/GetCustomClassRequestOrBuilder.java | 31 + .../cloud/speech/v2/GetPhraseSetRequest.java | 346 +- .../v2/GetPhraseSetRequestOrBuilder.java | 31 + .../cloud/speech/v2/GetRecognizerRequest.java | 349 +- .../v2/GetRecognizerRequestOrBuilder.java | 31 + .../speech/v2/ListCustomClassesRequest.java | 494 ++- .../v2/ListCustomClassesRequestOrBuilder.java | 50 +- .../speech/v2/ListCustomClassesResponse.java | 481 ++- .../ListCustomClassesResponseOrBuilder.java | 45 +- .../speech/v2/ListPhraseSetsRequest.java | 494 ++- .../v2/ListPhraseSetsRequestOrBuilder.java | 50 +- .../speech/v2/ListPhraseSetsResponse.java | 485 ++- .../v2/ListPhraseSetsResponseOrBuilder.java | 45 +- .../speech/v2/ListRecognizersRequest.java | 494 ++- .../v2/ListRecognizersRequestOrBuilder.java | 50 +- .../speech/v2/ListRecognizersResponse.java | 486 ++- .../v2/ListRecognizersResponseOrBuilder.java | 45 +- .../google/cloud/speech/v2/LocationName.java | 0 .../cloud/speech/v2/OperationMetadata.java | 2660 +++++----------- .../speech/v2/OperationMetadataOrBuilder.java | 229 +- .../com/google/cloud/speech/v2/PhraseSet.java | 2231 +++++-------- .../google/cloud/speech/v2/PhraseSetName.java | 0 .../cloud/speech/v2/PhraseSetOrBuilder.java | 224 +- .../cloud/speech/v2/RecognitionConfig.java | 696 ++-- .../speech/v2/RecognitionConfigOrBuilder.java | 50 +- .../cloud/speech/v2/RecognitionFeatures.java | 757 ++--- .../v2/RecognitionFeaturesOrBuilder.java | 59 +- .../v2/RecognitionResponseMetadata.java | 360 +-- .../RecognitionResponseMetadataOrBuilder.java | 26 +- .../cloud/speech/v2/RecognizeRequest.java | 716 ++--- .../speech/v2/RecognizeRequestOrBuilder.java | 69 +- .../cloud/speech/v2/RecognizeResponse.java | 495 ++- .../speech/v2/RecognizeResponseOrBuilder.java | 44 +- .../google/cloud/speech/v2/Recognizer.java | 1977 +++++------- .../cloud/speech/v2/RecognizerName.java | 0 .../cloud/speech/v2/RecognizerOrBuilder.java | 238 +- .../speech/v2/SpeakerDiarizationConfig.java | 322 +- .../v2/SpeakerDiarizationConfigOrBuilder.java | 24 +- .../cloud/speech/v2/SpeechAdaptation.java | 1184 +++---- .../speech/v2/SpeechAdaptationOrBuilder.java | 65 +- .../v2/SpeechRecognitionAlternative.java | 524 ++- ...SpeechRecognitionAlternativeOrBuilder.java | 49 +- .../speech/v2/SpeechRecognitionResult.java | 625 ++-- .../v2/SpeechRecognitionResultOrBuilder.java | 53 +- .../speech/v2/StreamingRecognitionConfig.java | 607 ++-- .../StreamingRecognitionConfigOrBuilder.java | 54 +- .../v2/StreamingRecognitionFeatures.java | 1078 +++---- ...StreamingRecognitionFeaturesOrBuilder.java | 50 +- .../speech/v2/StreamingRecognitionResult.java | 700 ++-- .../StreamingRecognitionResultOrBuilder.java | 59 +- .../speech/v2/StreamingRecognizeRequest.java | 556 ++-- .../StreamingRecognizeRequestOrBuilder.java | 52 +- .../speech/v2/StreamingRecognizeResponse.java | 777 ++--- .../StreamingRecognizeResponseOrBuilder.java | 64 +- .../speech/v2/UndeleteCustomClassRequest.java | 464 ++- .../UndeleteCustomClassRequestOrBuilder.java | 47 +- .../speech/v2/UndeletePhraseSetRequest.java | 461 ++- .../v2/UndeletePhraseSetRequestOrBuilder.java | 47 +- .../speech/v2/UndeleteRecognizerRequest.java | 461 ++- .../UndeleteRecognizerRequestOrBuilder.java | 47 +- .../cloud/speech/v2/UpdateConfigRequest.java | 457 ++- .../v2/UpdateConfigRequestOrBuilder.java | 43 +- .../speech/v2/UpdateCustomClassRequest.java | 527 ++- .../v2/UpdateCustomClassRequestOrBuilder.java | 49 +- .../speech/v2/UpdatePhraseSetRequest.java | 526 ++- .../v2/UpdatePhraseSetRequestOrBuilder.java | 49 +- .../speech/v2/UpdateRecognizerRequest.java | 526 ++- .../v2/UpdateRecognizerRequestOrBuilder.java | 49 +- .../com/google/cloud/speech/v2/WordInfo.java | 592 ++-- .../cloud/speech/v2/WordInfoOrBuilder.java | 55 +- .../google/cloud/speech/v2/cloud_speech.proto | 0 .../batchrecognize/AsyncBatchRecognize.java | 0 .../AsyncBatchRecognizeLRO.java | 0 .../batchrecognize/SyncBatchRecognize.java | 0 ...eldmaskListbatchrecognizefilemetadata.java | 0 ...eldmaskListbatchrecognizefilemetadata.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../speech/create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateCustomClass.java | 0 .../AsyncCreateCustomClassLRO.java | 0 .../SyncCreateCustomClass.java | 0 ...tomClassLocationnameCustomclassString.java | 0 ...ateCustomClassStringCustomclassString.java | 0 .../createphraseset/AsyncCreatePhraseSet.java | 0 .../AsyncCreatePhraseSetLRO.java | 0 .../createphraseset/SyncCreatePhraseSet.java | 0 ...ePhraseSetLocationnamePhrasesetString.java | 0 ...cCreatePhraseSetStringPhrasesetString.java | 0 .../AsyncCreateRecognizer.java | 0 .../AsyncCreateRecognizerLRO.java | 0 .../SyncCreateRecognizer.java | 0 ...ecognizerLocationnameRecognizerString.java | 0 ...reateRecognizerStringRecognizerString.java | 0 .../AsyncDeleteCustomClass.java | 0 .../AsyncDeleteCustomClassLRO.java | 0 .../SyncDeleteCustomClass.java | 0 .../SyncDeleteCustomClassCustomclassname.java | 0 .../SyncDeleteCustomClassString.java | 0 .../deletephraseset/AsyncDeletePhraseSet.java | 0 .../AsyncDeletePhraseSetLRO.java | 0 .../deletephraseset/SyncDeletePhraseSet.java | 0 .../SyncDeletePhraseSetPhrasesetname.java | 0 .../SyncDeletePhraseSetString.java | 0 .../AsyncDeleteRecognizer.java | 0 .../AsyncDeleteRecognizerLRO.java | 0 .../SyncDeleteRecognizer.java | 0 .../SyncDeleteRecognizerRecognizername.java | 0 .../SyncDeleteRecognizerString.java | 0 .../v2/speech/getconfig/AsyncGetConfig.java | 0 .../v2/speech/getconfig/SyncGetConfig.java | 0 .../getconfig/SyncGetConfigConfigname.java | 0 .../speech/getconfig/SyncGetConfigString.java | 0 .../getcustomclass/AsyncGetCustomClass.java | 0 .../getcustomclass/SyncGetCustomClass.java | 0 .../SyncGetCustomClassCustomclassname.java | 0 .../SyncGetCustomClassString.java | 0 .../getphraseset/AsyncGetPhraseSet.java | 0 .../speech/getphraseset/SyncGetPhraseSet.java | 0 .../SyncGetPhraseSetPhrasesetname.java | 0 .../getphraseset/SyncGetPhraseSetString.java | 0 .../getrecognizer/AsyncGetRecognizer.java | 0 .../getrecognizer/SyncGetRecognizer.java | 0 .../SyncGetRecognizerRecognizername.java | 0 .../SyncGetRecognizerString.java | 0 .../AsyncListCustomClasses.java | 0 .../AsyncListCustomClassesPaged.java | 0 .../SyncListCustomClasses.java | 0 .../SyncListCustomClassesLocationname.java | 0 .../SyncListCustomClassesString.java | 0 .../listphrasesets/AsyncListPhraseSets.java | 0 .../AsyncListPhraseSetsPaged.java | 0 .../listphrasesets/SyncListPhraseSets.java | 0 .../SyncListPhraseSetsLocationname.java | 0 .../SyncListPhraseSetsString.java | 0 .../listrecognizers/AsyncListRecognizers.java | 0 .../AsyncListRecognizersPaged.java | 0 .../listrecognizers/SyncListRecognizers.java | 0 .../SyncListRecognizersLocationname.java | 0 .../SyncListRecognizersString.java | 0 .../v2/speech/recognize/AsyncRecognize.java | 0 .../v2/speech/recognize/SyncRecognize.java | 0 ...eRecognitionconfigFieldmaskBytestring.java | 0 ...rnameRecognitionconfigFieldmaskString.java | 0 ...gRecognitionconfigFieldmaskBytestring.java | 0 ...tringRecognitionconfigFieldmaskString.java | 0 .../AsyncStreamingRecognize.java | 0 .../AsyncUndeleteCustomClass.java | 0 .../AsyncUndeleteCustomClassLRO.java | 0 .../SyncUndeleteCustomClass.java | 0 ...yncUndeleteCustomClassCustomclassname.java | 0 .../SyncUndeleteCustomClassString.java | 0 .../AsyncUndeletePhraseSet.java | 0 .../AsyncUndeletePhraseSetLRO.java | 0 .../SyncUndeletePhraseSet.java | 0 .../SyncUndeletePhraseSetPhrasesetname.java | 0 .../SyncUndeletePhraseSetString.java | 0 .../AsyncUndeleteRecognizer.java | 0 .../AsyncUndeleteRecognizerLRO.java | 0 .../SyncUndeleteRecognizer.java | 0 .../SyncUndeleteRecognizerRecognizername.java | 0 .../SyncUndeleteRecognizerString.java | 0 .../updateconfig/AsyncUpdateConfig.java | 0 .../speech/updateconfig/SyncUpdateConfig.java | 0 .../SyncUpdateConfigConfigFieldmask.java | 0 .../AsyncUpdateCustomClass.java | 0 .../AsyncUpdateCustomClassLRO.java | 0 .../SyncUpdateCustomClass.java | 0 ...UpdateCustomClassCustomclassFieldmask.java | 0 .../updatephraseset/AsyncUpdatePhraseSet.java | 0 .../AsyncUpdatePhraseSetLRO.java | 0 .../updatephraseset/SyncUpdatePhraseSet.java | 0 ...SyncUpdatePhraseSetPhrasesetFieldmask.java | 0 .../AsyncUpdateRecognizer.java | 0 .../AsyncUpdateRecognizerLRO.java | 0 .../SyncUpdateRecognizer.java | 0 ...ncUpdateRecognizerRecognizerFieldmask.java | 0 .../getrecognizer/SyncGetRecognizer.java | 0 .../getrecognizer/SyncGetRecognizer.java | 0 584 files changed, 38984 insertions(+), 65013 deletions(-) delete mode 100644 java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java delete mode 100644 java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java delete mode 100644 java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java delete mode 100644 java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java delete mode 100644 java-speech/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java delete mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java delete mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java delete mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java delete mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java delete mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java delete mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java delete mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java delete mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequestOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java (99%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java (99%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java (99%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java (99%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java (100%) create mode 100644 owl-bot-staging/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java create mode 100644 owl-bot-staging/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java (67%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java (65%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java (67%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java (65%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java (71%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java (66%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java (59%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java (62%) create mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java (62%) create mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java (66%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java (59%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java (72%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java (67%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java (69%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java (71%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java (66%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java (74%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java (58%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java (51%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java (73%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java (84%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java (75%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java (72%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java (73%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java (79%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java (83%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java (94%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java (71%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java (76%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java (59%) create mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java (72%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java (80%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java (69%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java (64%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java (76%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java (68%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java (58%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java (82%) create mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContext.java (78%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java (85%) create mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternative.java (75%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java (78%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java (75%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java (83%) create mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfig.java (69%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java (76%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java (85%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java (72%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java (79%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java (75%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java (85%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java (67%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java (63%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java (69%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java (73%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java (69%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java (72%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java (76%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java (84%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetEndpoint.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/AsyncCreateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/AsyncCreatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/AsyncDeletePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/AsyncGetCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/AsyncGetPhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClasses.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClasses.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSetPaged.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetLocationname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetEndpoint.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/AsyncRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/streamingrecognize/AsyncStreamingRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java (99%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java (99%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java (99%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java (99%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java (100%) create mode 100644 owl-bot-staging/java-speech/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java create mode 100644 owl-bot-staging/java-speech/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java (67%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java (65%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java (67%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java (65%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java (72%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java (67%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java (59%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java (64%) create mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java (63%) create mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java (67%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java (59%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java (71%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java (73%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java (69%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java (71%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java (69%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java (71%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java (67%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java (66%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java (58%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java (51%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java (72%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java (83%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java (74%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java (73%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java (79%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java (82%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java (93%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java (69%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java (69%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java (59%) create mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java (71%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java (79%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java (68%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java (76%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java (67%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java (59%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java (83%) create mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java (78%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java (85%) create mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java (74%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java (79%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java (72%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java (79%) create mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java (68%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java (73%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java (82%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java (71%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java (78%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java (74%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java (83%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java (71%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java (78%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java (67%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java (61%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java (72%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java (72%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java (76%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java (84%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto (96%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetEndpoint.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/AsyncCreateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/AsyncCreatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/AsyncDeletePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/AsyncGetCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/AsyncGetPhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClasses.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClasses.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSetPaged.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetLocationname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetEndpoint.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/AsyncRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/streamingrecognize/AsyncStreamingRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java (99%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/gapic_metadata.json (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/package-info.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechCallableFactory.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java (99%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechCallableFactory.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java (99%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeech.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeechImpl.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientHttpJsonTest.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientTest.java (100%) create mode 100644 owl-bot-staging/java-speech/v2/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java (64%) create mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java (77%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java (87%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java (68%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java (60%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java (51%) create mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java (76%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java (84%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java (59%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java (60%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java (67%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java (63%) create mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Config.java (67%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java (68%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java (65%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java (59%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java (65%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java (58%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java (65%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java (58%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java (69%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java (75%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java (68%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java (63%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java (68%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java (63%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java (68%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java (63%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java (68%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java (64%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java (63%) create mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java (63%) create mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java (63%) create mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java (63%) create mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java (70%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java (68%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java (72%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java (70%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java (67%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java (72%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java (70%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java (66%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java (72%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java (72%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java (87%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java (70%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java (75%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java (70%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java (83%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java (76%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java (86%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java (65%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java (61%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java (78%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java (87%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java (72%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java (75%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java (71%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java (81%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java (69%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java (64%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java (72%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java (71%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java (75%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java (78%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java (75%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java (82%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java (73%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java (83%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java (66%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java (61%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java (76%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java (85%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java (70%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java (71%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java (76%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java (84%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java (67%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java (60%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java (67%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java (60%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java (67%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java (60%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java (69%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java (67%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java (67%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java (68%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java (69%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java (67%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java (69%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java (77%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java (86%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognizeLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeRecognizernameRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeStringRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetEndpoint.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClassLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassStringCustomclassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSetLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizerLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerLocationnameRecognizerString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerStringRecognizerString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClassLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassCustomclassname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSetLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetPhrasesetname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizerLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerRecognizername.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/AsyncGetConfig.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfig.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigConfigname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/AsyncGetCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassCustomclassname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/AsyncGetPhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetPhrasesetname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/AsyncGetRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerRecognizername.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClasses.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClassesPaged.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClasses.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesLocationname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSets.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSetsPaged.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSets.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsLocationname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizers.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizersPaged.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizers.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersLocationname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/AsyncRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskBytestring.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskBytestring.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/streamingrecognize/AsyncStreamingRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClassLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassCustomclassname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSetLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetPhrasesetname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizerLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerRecognizername.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/AsyncUpdateConfig.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfig.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfigConfigFieldmask.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClassLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSetLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizerLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizerRecognizerFieldmask.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speechsettings/getrecognizer/SyncGetRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/stub/speechstubsettings/getrecognizer/SyncGetRecognizer.java (100%) diff --git a/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java b/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java deleted file mode 100644 index 5a6d1e037728..000000000000 --- a/java-speech/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/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java b/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java deleted file mode 100644 index 846458da2c9f..000000000000 --- a/java-speech/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/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java b/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java deleted file mode 100644 index 5a5395620967..000000000000 --- a/java-speech/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/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java b/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java deleted file mode 100644 index c3bc87f0fa55..000000000000 --- a/java-speech/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/java-speech/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java b/java-speech/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java deleted file mode 100644 index f70343dfe149..000000000000 --- a/java-speech/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java +++ /dev/null @@ -1,2830 +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.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Enables speech transcription and resource management.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v2/cloud_speech.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SpeechGrpc { - - private SpeechGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.speech.v2.Speech"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.longrunning.Operation> - getCreateRecognizerMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRecognizer", - requestType = com.google.cloud.speech.v2.CreateRecognizerRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.longrunning.Operation> - getCreateRecognizerMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.longrunning.Operation> - getCreateRecognizerMethod; - if ((getCreateRecognizerMethod = SpeechGrpc.getCreateRecognizerMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getCreateRecognizerMethod = SpeechGrpc.getCreateRecognizerMethod) == null) { - SpeechGrpc.getCreateRecognizerMethod = - getCreateRecognizerMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRecognizer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.CreateRecognizerRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreateRecognizer")) - .build(); - } - } - } - return getCreateRecognizerMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.ListRecognizersRequest, - com.google.cloud.speech.v2.ListRecognizersResponse> - getListRecognizersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRecognizers", - requestType = com.google.cloud.speech.v2.ListRecognizersRequest.class, - responseType = com.google.cloud.speech.v2.ListRecognizersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.ListRecognizersRequest, - com.google.cloud.speech.v2.ListRecognizersResponse> - getListRecognizersMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.ListRecognizersRequest, - com.google.cloud.speech.v2.ListRecognizersResponse> - getListRecognizersMethod; - if ((getListRecognizersMethod = SpeechGrpc.getListRecognizersMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getListRecognizersMethod = SpeechGrpc.getListRecognizersMethod) == null) { - SpeechGrpc.getListRecognizersMethod = - getListRecognizersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRecognizers")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.ListRecognizersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.ListRecognizersResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListRecognizers")) - .build(); - } - } - } - return getListRecognizersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetRecognizerRequest, com.google.cloud.speech.v2.Recognizer> - getGetRecognizerMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRecognizer", - requestType = com.google.cloud.speech.v2.GetRecognizerRequest.class, - responseType = com.google.cloud.speech.v2.Recognizer.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetRecognizerRequest, com.google.cloud.speech.v2.Recognizer> - getGetRecognizerMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetRecognizerRequest, com.google.cloud.speech.v2.Recognizer> - getGetRecognizerMethod; - if ((getGetRecognizerMethod = SpeechGrpc.getGetRecognizerMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getGetRecognizerMethod = SpeechGrpc.getGetRecognizerMethod) == null) { - SpeechGrpc.getGetRecognizerMethod = - getGetRecognizerMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRecognizer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.GetRecognizerRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.Recognizer.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetRecognizer")) - .build(); - } - } - } - return getGetRecognizerMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.longrunning.Operation> - getUpdateRecognizerMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateRecognizer", - requestType = com.google.cloud.speech.v2.UpdateRecognizerRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.longrunning.Operation> - getUpdateRecognizerMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.longrunning.Operation> - getUpdateRecognizerMethod; - if ((getUpdateRecognizerMethod = SpeechGrpc.getUpdateRecognizerMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUpdateRecognizerMethod = SpeechGrpc.getUpdateRecognizerMethod) == null) { - SpeechGrpc.getUpdateRecognizerMethod = - getUpdateRecognizerMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRecognizer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.UpdateRecognizerRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdateRecognizer")) - .build(); - } - } - } - return getUpdateRecognizerMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.longrunning.Operation> - getDeleteRecognizerMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRecognizer", - requestType = com.google.cloud.speech.v2.DeleteRecognizerRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.longrunning.Operation> - getDeleteRecognizerMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.longrunning.Operation> - getDeleteRecognizerMethod; - if ((getDeleteRecognizerMethod = SpeechGrpc.getDeleteRecognizerMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getDeleteRecognizerMethod = SpeechGrpc.getDeleteRecognizerMethod) == null) { - SpeechGrpc.getDeleteRecognizerMethod = - getDeleteRecognizerMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRecognizer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.DeleteRecognizerRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeleteRecognizer")) - .build(); - } - } - } - return getDeleteRecognizerMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.longrunning.Operation> - getUndeleteRecognizerMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UndeleteRecognizer", - requestType = com.google.cloud.speech.v2.UndeleteRecognizerRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.longrunning.Operation> - getUndeleteRecognizerMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.longrunning.Operation> - getUndeleteRecognizerMethod; - if ((getUndeleteRecognizerMethod = SpeechGrpc.getUndeleteRecognizerMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUndeleteRecognizerMethod = SpeechGrpc.getUndeleteRecognizerMethod) == null) { - SpeechGrpc.getUndeleteRecognizerMethod = - getUndeleteRecognizerMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeleteRecognizer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.UndeleteRecognizerRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UndeleteRecognizer")) - .build(); - } - } - } - return getUndeleteRecognizerMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.RecognizeRequest, com.google.cloud.speech.v2.RecognizeResponse> - getRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Recognize", - requestType = com.google.cloud.speech.v2.RecognizeRequest.class, - responseType = com.google.cloud.speech.v2.RecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.RecognizeRequest, com.google.cloud.speech.v2.RecognizeResponse> - getRecognizeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.RecognizeRequest, - com.google.cloud.speech.v2.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.v2.RecognizeRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.RecognizeResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) - .build(); - } - } - } - return getRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.StreamingRecognizeRequest, - com.google.cloud.speech.v2.StreamingRecognizeResponse> - getStreamingRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", - requestType = com.google.cloud.speech.v2.StreamingRecognizeRequest.class, - responseType = com.google.cloud.speech.v2.StreamingRecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.StreamingRecognizeRequest, - com.google.cloud.speech.v2.StreamingRecognizeResponse> - getStreamingRecognizeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.StreamingRecognizeRequest, - com.google.cloud.speech.v2.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.v2.StreamingRecognizeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.StreamingRecognizeResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) - .build(); - } - } - } - return getStreamingRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.longrunning.Operation> - getBatchRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchRecognize", - requestType = com.google.cloud.speech.v2.BatchRecognizeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.longrunning.Operation> - getBatchRecognizeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.longrunning.Operation> - getBatchRecognizeMethod; - if ((getBatchRecognizeMethod = SpeechGrpc.getBatchRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getBatchRecognizeMethod = SpeechGrpc.getBatchRecognizeMethod) == null) { - SpeechGrpc.getBatchRecognizeMethod = - getBatchRecognizeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.BatchRecognizeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("BatchRecognize")) - .build(); - } - } - } - return getBatchRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetConfigRequest, com.google.cloud.speech.v2.Config> - getGetConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConfig", - requestType = com.google.cloud.speech.v2.GetConfigRequest.class, - responseType = com.google.cloud.speech.v2.Config.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetConfigRequest, com.google.cloud.speech.v2.Config> - getGetConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetConfigRequest, com.google.cloud.speech.v2.Config> - getGetConfigMethod; - if ((getGetConfigMethod = SpeechGrpc.getGetConfigMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getGetConfigMethod = SpeechGrpc.getGetConfigMethod) == null) { - SpeechGrpc.getGetConfigMethod = - getGetConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.GetConfigRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.Config.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetConfig")) - .build(); - } - } - } - return getGetConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.Config> - getUpdateConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConfig", - requestType = com.google.cloud.speech.v2.UpdateConfigRequest.class, - responseType = com.google.cloud.speech.v2.Config.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.Config> - getUpdateConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.Config> - getUpdateConfigMethod; - if ((getUpdateConfigMethod = SpeechGrpc.getUpdateConfigMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUpdateConfigMethod = SpeechGrpc.getUpdateConfigMethod) == null) { - SpeechGrpc.getUpdateConfigMethod = - getUpdateConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.Config.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdateConfig")) - .build(); - } - } - } - return getUpdateConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.longrunning.Operation> - getCreateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", - requestType = com.google.cloud.speech.v2.CreateCustomClassRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.longrunning.Operation> - getCreateCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.longrunning.Operation> - getCreateCustomClassMethod; - if ((getCreateCustomClassMethod = SpeechGrpc.getCreateCustomClassMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getCreateCustomClassMethod = SpeechGrpc.getCreateCustomClassMethod) == null) { - SpeechGrpc.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.v2.CreateCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreateCustomClass")) - .build(); - } - } - } - return getCreateCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.ListCustomClassesRequest, - com.google.cloud.speech.v2.ListCustomClassesResponse> - getListCustomClassesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", - requestType = com.google.cloud.speech.v2.ListCustomClassesRequest.class, - responseType = com.google.cloud.speech.v2.ListCustomClassesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.ListCustomClassesRequest, - com.google.cloud.speech.v2.ListCustomClassesResponse> - getListCustomClassesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.ListCustomClassesRequest, - com.google.cloud.speech.v2.ListCustomClassesResponse> - getListCustomClassesMethod; - if ((getListCustomClassesMethod = SpeechGrpc.getListCustomClassesMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getListCustomClassesMethod = SpeechGrpc.getListCustomClassesMethod) == null) { - SpeechGrpc.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.v2.ListCustomClassesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.ListCustomClassesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListCustomClasses")) - .build(); - } - } - } - return getListCustomClassesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetCustomClassRequest, com.google.cloud.speech.v2.CustomClass> - getGetCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", - requestType = com.google.cloud.speech.v2.GetCustomClassRequest.class, - responseType = com.google.cloud.speech.v2.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetCustomClassRequest, com.google.cloud.speech.v2.CustomClass> - getGetCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetCustomClassRequest, - com.google.cloud.speech.v2.CustomClass> - getGetCustomClassMethod; - if ((getGetCustomClassMethod = SpeechGrpc.getGetCustomClassMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getGetCustomClassMethod = SpeechGrpc.getGetCustomClassMethod) == null) { - SpeechGrpc.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.v2.GetCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.CustomClass.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetCustomClass")) - .build(); - } - } - } - return getGetCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.longrunning.Operation> - getUpdateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", - requestType = com.google.cloud.speech.v2.UpdateCustomClassRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.longrunning.Operation> - getUpdateCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.longrunning.Operation> - getUpdateCustomClassMethod; - if ((getUpdateCustomClassMethod = SpeechGrpc.getUpdateCustomClassMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUpdateCustomClassMethod = SpeechGrpc.getUpdateCustomClassMethod) == null) { - SpeechGrpc.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.v2.UpdateCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdateCustomClass")) - .build(); - } - } - } - return getUpdateCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.longrunning.Operation> - getDeleteCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCustomClass", - requestType = com.google.cloud.speech.v2.DeleteCustomClassRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.longrunning.Operation> - getDeleteCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.longrunning.Operation> - getDeleteCustomClassMethod; - if ((getDeleteCustomClassMethod = SpeechGrpc.getDeleteCustomClassMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getDeleteCustomClassMethod = SpeechGrpc.getDeleteCustomClassMethod) == null) { - SpeechGrpc.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.v2.DeleteCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeleteCustomClass")) - .build(); - } - } - } - return getDeleteCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.longrunning.Operation> - getUndeleteCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UndeleteCustomClass", - requestType = com.google.cloud.speech.v2.UndeleteCustomClassRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.longrunning.Operation> - getUndeleteCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.longrunning.Operation> - getUndeleteCustomClassMethod; - if ((getUndeleteCustomClassMethod = SpeechGrpc.getUndeleteCustomClassMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUndeleteCustomClassMethod = SpeechGrpc.getUndeleteCustomClassMethod) == null) { - SpeechGrpc.getUndeleteCustomClassMethod = - getUndeleteCustomClassMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UndeleteCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.UndeleteCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new SpeechMethodDescriptorSupplier("UndeleteCustomClass")) - .build(); - } - } - } - return getUndeleteCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.longrunning.Operation> - getCreatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", - requestType = com.google.cloud.speech.v2.CreatePhraseSetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.longrunning.Operation> - getCreatePhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.longrunning.Operation> - getCreatePhraseSetMethod; - if ((getCreatePhraseSetMethod = SpeechGrpc.getCreatePhraseSetMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getCreatePhraseSetMethod = SpeechGrpc.getCreatePhraseSetMethod) == null) { - SpeechGrpc.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.v2.CreatePhraseSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreatePhraseSet")) - .build(); - } - } - } - return getCreatePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.ListPhraseSetsRequest, - com.google.cloud.speech.v2.ListPhraseSetsResponse> - getListPhraseSetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPhraseSets", - requestType = com.google.cloud.speech.v2.ListPhraseSetsRequest.class, - responseType = com.google.cloud.speech.v2.ListPhraseSetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.ListPhraseSetsRequest, - com.google.cloud.speech.v2.ListPhraseSetsResponse> - getListPhraseSetsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.ListPhraseSetsRequest, - com.google.cloud.speech.v2.ListPhraseSetsResponse> - getListPhraseSetsMethod; - if ((getListPhraseSetsMethod = SpeechGrpc.getListPhraseSetsMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getListPhraseSetsMethod = SpeechGrpc.getListPhraseSetsMethod) == null) { - SpeechGrpc.getListPhraseSetsMethod = - getListPhraseSetsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.ListPhraseSetsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.ListPhraseSetsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListPhraseSets")) - .build(); - } - } - } - return getListPhraseSetsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetPhraseSetRequest, com.google.cloud.speech.v2.PhraseSet> - getGetPhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", - requestType = com.google.cloud.speech.v2.GetPhraseSetRequest.class, - responseType = com.google.cloud.speech.v2.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetPhraseSetRequest, com.google.cloud.speech.v2.PhraseSet> - getGetPhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetPhraseSetRequest, com.google.cloud.speech.v2.PhraseSet> - getGetPhraseSetMethod; - if ((getGetPhraseSetMethod = SpeechGrpc.getGetPhraseSetMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getGetPhraseSetMethod = SpeechGrpc.getGetPhraseSetMethod) == null) { - SpeechGrpc.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.v2.GetPhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetPhraseSet")) - .build(); - } - } - } - return getGetPhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.longrunning.Operation> - getUpdatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", - requestType = com.google.cloud.speech.v2.UpdatePhraseSetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.longrunning.Operation> - getUpdatePhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.longrunning.Operation> - getUpdatePhraseSetMethod; - if ((getUpdatePhraseSetMethod = SpeechGrpc.getUpdatePhraseSetMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUpdatePhraseSetMethod = SpeechGrpc.getUpdatePhraseSetMethod) == null) { - SpeechGrpc.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.v2.UpdatePhraseSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdatePhraseSet")) - .build(); - } - } - } - return getUpdatePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.longrunning.Operation> - getDeletePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePhraseSet", - requestType = com.google.cloud.speech.v2.DeletePhraseSetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.longrunning.Operation> - getDeletePhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.longrunning.Operation> - getDeletePhraseSetMethod; - if ((getDeletePhraseSetMethod = SpeechGrpc.getDeletePhraseSetMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getDeletePhraseSetMethod = SpeechGrpc.getDeletePhraseSetMethod) == null) { - SpeechGrpc.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.v2.DeletePhraseSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeletePhraseSet")) - .build(); - } - } - } - return getDeletePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.longrunning.Operation> - getUndeletePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UndeletePhraseSet", - requestType = com.google.cloud.speech.v2.UndeletePhraseSetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.longrunning.Operation> - getUndeletePhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.longrunning.Operation> - getUndeletePhraseSetMethod; - if ((getUndeletePhraseSetMethod = SpeechGrpc.getUndeletePhraseSetMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUndeletePhraseSetMethod = SpeechGrpc.getUndeletePhraseSetMethod) == null) { - SpeechGrpc.getUndeletePhraseSetMethod = - getUndeletePhraseSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeletePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.UndeletePhraseSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UndeletePhraseSet")) - .build(); - } - } - } - return getUndeletePhraseSetMethod; - } - - /** 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); - } - - /** - * - * - *
-   * Enables speech transcription and resource management.
-   * 
- */ - public abstract static class SpeechImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void createRecognizer( - com.google.cloud.speech.v2.CreateRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateRecognizerMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists Recognizers.
-     * 
- */ - public void listRecognizers( - com.google.cloud.speech.v2.ListRecognizersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListRecognizersMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the requested
-     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
-     * exist.
-     * 
- */ - public void getRecognizer( - com.google.cloud.speech.v2.GetRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetRecognizerMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void updateRecognizer( - com.google.cloud.speech.v2.UpdateRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateRecognizerMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void deleteRecognizer( - com.google.cloud.speech.v2.DeleteRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteRecognizerMethod(), responseObserver); - } - - /** - * - * - *
-     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void undeleteRecognizer( - com.google.cloud.speech.v2.UndeleteRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUndeleteRecognizerMethod(), responseObserver); - } - - /** - * - * - *
-     * Performs synchronous Speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize( - com.google.cloud.speech.v2.RecognizeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), 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); - } - - /** - * - * - *
-     * Performs batch asynchronous speech recognition: send a request with N
-     * audio files and receive a long running operation that can be polled to see
-     * when the transcriptions are finished.
-     * 
- */ - public void batchRecognize( - com.google.cloud.speech.v2.BatchRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchRecognizeMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the requested [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public void getConfig( - com.google.cloud.speech.v2.GetConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public void updateConfig( - com.google.cloud.speech.v2.UpdateConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void createCustomClass( - com.google.cloud.speech.v2.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateCustomClassMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists CustomClasses.
-     * 
- */ - public void listCustomClasses( - com.google.cloud.speech.v2.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCustomClassesMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the requested
-     * [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void getCustomClass( - com.google.cloud.speech.v2.GetCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCustomClassMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void updateCustomClass( - com.google.cloud.speech.v2.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCustomClassMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void deleteCustomClass( - com.google.cloud.speech.v2.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteCustomClassMethod(), responseObserver); - } - - /** - * - * - *
-     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void undeleteCustomClass( - com.google.cloud.speech.v2.UndeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUndeleteCustomClassMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void createPhraseSet( - com.google.cloud.speech.v2.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreatePhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists PhraseSets.
-     * 
- */ - public void listPhraseSets( - com.google.cloud.speech.v2.ListPhraseSetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPhraseSetsMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the requested
-     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void getPhraseSet( - com.google.cloud.speech.v2.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetPhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void updatePhraseSet( - com.google.cloud.speech.v2.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdatePhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void deletePhraseSet( - com.google.cloud.speech.v2.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void undeletePhraseSet( - com.google.cloud.speech.v2.UndeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUndeletePhraseSetMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateRecognizerMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.CreateRecognizerRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_RECOGNIZER))) - .addMethod( - getListRecognizersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.ListRecognizersRequest, - com.google.cloud.speech.v2.ListRecognizersResponse>( - this, METHODID_LIST_RECOGNIZERS))) - .addMethod( - getGetRecognizerMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.GetRecognizerRequest, - com.google.cloud.speech.v2.Recognizer>(this, METHODID_GET_RECOGNIZER))) - .addMethod( - getUpdateRecognizerMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UpdateRecognizerRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_RECOGNIZER))) - .addMethod( - getDeleteRecognizerMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.DeleteRecognizerRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_RECOGNIZER))) - .addMethod( - getUndeleteRecognizerMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, - com.google.longrunning.Operation>(this, METHODID_UNDELETE_RECOGNIZER))) - .addMethod( - getRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.RecognizeRequest, - com.google.cloud.speech.v2.RecognizeResponse>(this, METHODID_RECOGNIZE))) - .addMethod( - getStreamingRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.speech.v2.StreamingRecognizeRequest, - com.google.cloud.speech.v2.StreamingRecognizeResponse>( - this, METHODID_STREAMING_RECOGNIZE))) - .addMethod( - getBatchRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.BatchRecognizeRequest, - com.google.longrunning.Operation>(this, METHODID_BATCH_RECOGNIZE))) - .addMethod( - getGetConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.GetConfigRequest, - com.google.cloud.speech.v2.Config>(this, METHODID_GET_CONFIG))) - .addMethod( - getUpdateConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UpdateConfigRequest, - com.google.cloud.speech.v2.Config>(this, METHODID_UPDATE_CONFIG))) - .addMethod( - getCreateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.CreateCustomClassRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_CUSTOM_CLASS))) - .addMethod( - getListCustomClassesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.ListCustomClassesRequest, - com.google.cloud.speech.v2.ListCustomClassesResponse>( - this, METHODID_LIST_CUSTOM_CLASSES))) - .addMethod( - getGetCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.GetCustomClassRequest, - com.google.cloud.speech.v2.CustomClass>(this, METHODID_GET_CUSTOM_CLASS))) - .addMethod( - getUpdateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UpdateCustomClassRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_CUSTOM_CLASS))) - .addMethod( - getDeleteCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.DeleteCustomClassRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_CUSTOM_CLASS))) - .addMethod( - getUndeleteCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, - com.google.longrunning.Operation>(this, METHODID_UNDELETE_CUSTOM_CLASS))) - .addMethod( - getCreatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.CreatePhraseSetRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_PHRASE_SET))) - .addMethod( - getListPhraseSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.ListPhraseSetsRequest, - com.google.cloud.speech.v2.ListPhraseSetsResponse>( - this, METHODID_LIST_PHRASE_SETS))) - .addMethod( - getGetPhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.GetPhraseSetRequest, - com.google.cloud.speech.v2.PhraseSet>(this, METHODID_GET_PHRASE_SET))) - .addMethod( - getUpdatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_PHRASE_SET))) - .addMethod( - getDeletePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.DeletePhraseSetRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_PHRASE_SET))) - .addMethod( - getUndeletePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, - com.google.longrunning.Operation>(this, METHODID_UNDELETE_PHRASE_SET))) - .build(); - } - } - - /** - * - * - *
-   * Enables speech transcription and resource management.
-   * 
- */ - 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); - } - - /** - * - * - *
-     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void createRecognizer( - com.google.cloud.speech.v2.CreateRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRecognizerMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists Recognizers.
-     * 
- */ - public void listRecognizers( - com.google.cloud.speech.v2.ListRecognizersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRecognizersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the requested
-     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
-     * exist.
-     * 
- */ - public void getRecognizer( - com.google.cloud.speech.v2.GetRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRecognizerMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void updateRecognizer( - com.google.cloud.speech.v2.UpdateRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateRecognizerMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void deleteRecognizer( - com.google.cloud.speech.v2.DeleteRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRecognizerMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void undeleteRecognizer( - com.google.cloud.speech.v2.UndeleteRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeleteRecognizerMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Performs synchronous Speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize( - com.google.cloud.speech.v2.RecognizeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRecognizeMethod(), 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); - } - - /** - * - * - *
-     * Performs batch asynchronous speech recognition: send a request with N
-     * audio files and receive a long running operation that can be polled to see
-     * when the transcriptions are finished.
-     * 
- */ - public void batchRecognize( - com.google.cloud.speech.v2.BatchRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchRecognizeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the requested [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public void getConfig( - com.google.cloud.speech.v2.GetConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates the [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public void updateConfig( - com.google.cloud.speech.v2.UpdateConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void createCustomClass( - com.google.cloud.speech.v2.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists CustomClasses.
-     * 
- */ - public void listCustomClasses( - com.google.cloud.speech.v2.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the requested
-     * [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void getCustomClass( - com.google.cloud.speech.v2.GetCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void updateCustomClass( - com.google.cloud.speech.v2.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void deleteCustomClass( - com.google.cloud.speech.v2.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void undeleteCustomClass( - com.google.cloud.speech.v2.UndeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeleteCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void createPhraseSet( - com.google.cloud.speech.v2.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists PhraseSets.
-     * 
- */ - public void listPhraseSets( - com.google.cloud.speech.v2.ListPhraseSetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPhraseSetsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the requested
-     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void getPhraseSet( - com.google.cloud.speech.v2.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void updatePhraseSet( - com.google.cloud.speech.v2.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void deletePhraseSet( - com.google.cloud.speech.v2.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void undeletePhraseSet( - com.google.cloud.speech.v2.UndeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeletePhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Enables speech transcription and resource management.
-   * 
- */ - 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); - } - - /** - * - * - *
-     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.longrunning.Operation createRecognizer( - com.google.cloud.speech.v2.CreateRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateRecognizerMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists Recognizers.
-     * 
- */ - public com.google.cloud.speech.v2.ListRecognizersResponse listRecognizers( - com.google.cloud.speech.v2.ListRecognizersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRecognizersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the requested
-     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.speech.v2.Recognizer getRecognizer( - com.google.cloud.speech.v2.GetRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRecognizerMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.longrunning.Operation updateRecognizer( - com.google.cloud.speech.v2.UpdateRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateRecognizerMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.longrunning.Operation deleteRecognizer( - com.google.cloud.speech.v2.DeleteRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRecognizerMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.longrunning.Operation undeleteRecognizer( - com.google.cloud.speech.v2.UndeleteRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUndeleteRecognizerMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Performs synchronous Speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.cloud.speech.v2.RecognizeResponse recognize( - com.google.cloud.speech.v2.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRecognizeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Performs batch asynchronous speech recognition: send a request with N
-     * audio files and receive a long running operation that can be polled to see
-     * when the transcriptions are finished.
-     * 
- */ - public com.google.longrunning.Operation batchRecognize( - com.google.cloud.speech.v2.BatchRecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchRecognizeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the requested [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public com.google.cloud.speech.v2.Config getConfig( - com.google.cloud.speech.v2.GetConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public com.google.cloud.speech.v2.Config updateConfig( - com.google.cloud.speech.v2.UpdateConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.longrunning.Operation createCustomClass( - com.google.cloud.speech.v2.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists CustomClasses.
-     * 
- */ - public com.google.cloud.speech.v2.ListCustomClassesResponse listCustomClasses( - com.google.cloud.speech.v2.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCustomClassesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the requested
-     * [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.cloud.speech.v2.CustomClass getCustomClass( - com.google.cloud.speech.v2.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCustomClassMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.longrunning.Operation updateCustomClass( - com.google.cloud.speech.v2.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.longrunning.Operation deleteCustomClass( - com.google.cloud.speech.v2.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.longrunning.Operation undeleteCustomClass( - com.google.cloud.speech.v2.UndeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUndeleteCustomClassMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.longrunning.Operation createPhraseSet( - com.google.cloud.speech.v2.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists PhraseSets.
-     * 
- */ - public com.google.cloud.speech.v2.ListPhraseSetsResponse listPhraseSets( - com.google.cloud.speech.v2.ListPhraseSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPhraseSetsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the requested
-     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.cloud.speech.v2.PhraseSet getPhraseSet( - com.google.cloud.speech.v2.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.longrunning.Operation updatePhraseSet( - com.google.cloud.speech.v2.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.longrunning.Operation deletePhraseSet( - com.google.cloud.speech.v2.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.longrunning.Operation undeletePhraseSet( - com.google.cloud.speech.v2.UndeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUndeletePhraseSetMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Enables speech transcription and resource management.
-   * 
- */ - 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); - } - - /** - * - * - *
-     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createRecognizer(com.google.cloud.speech.v2.CreateRecognizerRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateRecognizerMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists Recognizers.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v2.ListRecognizersResponse> - listRecognizers(com.google.cloud.speech.v2.ListRecognizersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRecognizersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the requested
-     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getRecognizer(com.google.cloud.speech.v2.GetRecognizerRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRecognizerMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateRecognizer(com.google.cloud.speech.v2.UpdateRecognizerRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateRecognizerMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteRecognizer(com.google.cloud.speech.v2.DeleteRecognizerRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRecognizerMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - undeleteRecognizer(com.google.cloud.speech.v2.UndeleteRecognizerRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUndeleteRecognizerMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * 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.v2.RecognizeResponse> - recognize(com.google.cloud.speech.v2.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Performs batch asynchronous speech recognition: send a request with N
-     * audio files and receive a long running operation that can be polled to see
-     * when the transcriptions are finished.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - batchRecognize(com.google.cloud.speech.v2.BatchRecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchRecognizeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the requested [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getConfig(com.google.cloud.speech.v2.GetConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateConfig(com.google.cloud.speech.v2.UpdateConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createCustomClass(com.google.cloud.speech.v2.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists CustomClasses.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v2.ListCustomClassesResponse> - listCustomClasses(com.google.cloud.speech.v2.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the requested
-     * [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v2.CustomClass> - getCustomClass(com.google.cloud.speech.v2.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateCustomClass(com.google.cloud.speech.v2.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteCustomClass(com.google.cloud.speech.v2.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - undeleteCustomClass(com.google.cloud.speech.v2.UndeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUndeleteCustomClassMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createPhraseSet(com.google.cloud.speech.v2.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists PhraseSets.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v2.ListPhraseSetsResponse> - listPhraseSets(com.google.cloud.speech.v2.ListPhraseSetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPhraseSetsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the requested
-     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getPhraseSet(com.google.cloud.speech.v2.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updatePhraseSet(com.google.cloud.speech.v2.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deletePhraseSet(com.google.cloud.speech.v2.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - undeletePhraseSet(com.google.cloud.speech.v2.UndeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUndeletePhraseSetMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_RECOGNIZER = 0; - private static final int METHODID_LIST_RECOGNIZERS = 1; - private static final int METHODID_GET_RECOGNIZER = 2; - private static final int METHODID_UPDATE_RECOGNIZER = 3; - private static final int METHODID_DELETE_RECOGNIZER = 4; - private static final int METHODID_UNDELETE_RECOGNIZER = 5; - private static final int METHODID_RECOGNIZE = 6; - private static final int METHODID_BATCH_RECOGNIZE = 7; - private static final int METHODID_GET_CONFIG = 8; - private static final int METHODID_UPDATE_CONFIG = 9; - private static final int METHODID_CREATE_CUSTOM_CLASS = 10; - private static final int METHODID_LIST_CUSTOM_CLASSES = 11; - private static final int METHODID_GET_CUSTOM_CLASS = 12; - private static final int METHODID_UPDATE_CUSTOM_CLASS = 13; - private static final int METHODID_DELETE_CUSTOM_CLASS = 14; - private static final int METHODID_UNDELETE_CUSTOM_CLASS = 15; - private static final int METHODID_CREATE_PHRASE_SET = 16; - private static final int METHODID_LIST_PHRASE_SETS = 17; - private static final int METHODID_GET_PHRASE_SET = 18; - private static final int METHODID_UPDATE_PHRASE_SET = 19; - private static final int METHODID_DELETE_PHRASE_SET = 20; - private static final int METHODID_UNDELETE_PHRASE_SET = 21; - private static final int METHODID_STREAMING_RECOGNIZE = 22; - - 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_CREATE_RECOGNIZER: - serviceImpl.createRecognizer( - (com.google.cloud.speech.v2.CreateRecognizerRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RECOGNIZERS: - serviceImpl.listRecognizers( - (com.google.cloud.speech.v2.ListRecognizersRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_RECOGNIZER: - serviceImpl.getRecognizer( - (com.google.cloud.speech.v2.GetRecognizerRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_RECOGNIZER: - serviceImpl.updateRecognizer( - (com.google.cloud.speech.v2.UpdateRecognizerRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_RECOGNIZER: - serviceImpl.deleteRecognizer( - (com.google.cloud.speech.v2.DeleteRecognizerRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNDELETE_RECOGNIZER: - serviceImpl.undeleteRecognizer( - (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RECOGNIZE: - serviceImpl.recognize( - (com.google.cloud.speech.v2.RecognizeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_BATCH_RECOGNIZE: - serviceImpl.batchRecognize( - (com.google.cloud.speech.v2.BatchRecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CONFIG: - serviceImpl.getConfig( - (com.google.cloud.speech.v2.GetConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CONFIG: - serviceImpl.updateConfig( - (com.google.cloud.speech.v2.UpdateConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CUSTOM_CLASS: - serviceImpl.createCustomClass( - (com.google.cloud.speech.v2.CreateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CUSTOM_CLASSES: - serviceImpl.listCustomClasses( - (com.google.cloud.speech.v2.ListCustomClassesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_CUSTOM_CLASS: - serviceImpl.getCustomClass( - (com.google.cloud.speech.v2.GetCustomClassRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_CUSTOM_CLASS: - serviceImpl.updateCustomClass( - (com.google.cloud.speech.v2.UpdateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CUSTOM_CLASS: - serviceImpl.deleteCustomClass( - (com.google.cloud.speech.v2.DeleteCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNDELETE_CUSTOM_CLASS: - serviceImpl.undeleteCustomClass( - (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_PHRASE_SET: - serviceImpl.createPhraseSet( - (com.google.cloud.speech.v2.CreatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_PHRASE_SETS: - serviceImpl.listPhraseSets( - (com.google.cloud.speech.v2.ListPhraseSetsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_PHRASE_SET: - serviceImpl.getPhraseSet( - (com.google.cloud.speech.v2.GetPhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_PHRASE_SET: - serviceImpl.updatePhraseSet( - (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_PHRASE_SET: - serviceImpl.deletePhraseSet( - (com.google.cloud.speech.v2.DeletePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNDELETE_PHRASE_SET: - serviceImpl.undeletePhraseSet( - (com.google.cloud.speech.v2.UndeletePhraseSetRequest) 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.v2.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.v2.CloudSpeechProto.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(getCreateRecognizerMethod()) - .addMethod(getListRecognizersMethod()) - .addMethod(getGetRecognizerMethod()) - .addMethod(getUpdateRecognizerMethod()) - .addMethod(getDeleteRecognizerMethod()) - .addMethod(getUndeleteRecognizerMethod()) - .addMethod(getRecognizeMethod()) - .addMethod(getStreamingRecognizeMethod()) - .addMethod(getBatchRecognizeMethod()) - .addMethod(getGetConfigMethod()) - .addMethod(getUpdateConfigMethod()) - .addMethod(getCreateCustomClassMethod()) - .addMethod(getListCustomClassesMethod()) - .addMethod(getGetCustomClassMethod()) - .addMethod(getUpdateCustomClassMethod()) - .addMethod(getDeleteCustomClassMethod()) - .addMethod(getUndeleteCustomClassMethod()) - .addMethod(getCreatePhraseSetMethod()) - .addMethod(getListPhraseSetsMethod()) - .addMethod(getGetPhraseSetMethod()) - .addMethod(getUpdatePhraseSetMethod()) - .addMethod(getDeletePhraseSetMethod()) - .addMethod(getUndeletePhraseSetMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java deleted file mode 100644 index acfe28df3c0d..000000000000 --- a/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java deleted file mode 100644 index 73e1fc4cca40..000000000000 --- a/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java deleted file mode 100644 index df0bfe2abf0f..000000000000 --- a/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java deleted file mode 100644 index 081817d7ecba..000000000000 --- a/java-speech/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\"\355\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\022L\n\026speech_adaptation_info\030\007 " - + "\001(\0132,.google.cloud.speech.v1.SpeechAdapt" - + "ationInfo\022\022\n\nrequest_id\030\010 \001(\003\"\351\002\n\034LongRu" - + "nningRecognizeResponse\022@\n\007results\030\002 \003(\0132" - + "/.google.cloud.speech.v1.SpeechRecogniti" - + "onResult\0224\n\021total_billed_time\030\003 \001(\0132\031.go" - + "ogle.protobuf.Duration\022E\n\routput_config\030" - + "\006 \001(\0132..google.cloud.speech.v1.Transcrip" - + "tOutputConfig\022(\n\014output_error\030\007 \001(\0132\022.go" - + "ogle.rpc.Status\022L\n\026speech_adaptation_inf" - + "o\030\010 \001(\0132,.google.cloud.speech.v1.SpeechA" - + "daptationInfo\022\022\n\nrequest_id\030\t \001(\003\"\260\001\n\034Lo" - + "ngRunningRecognizeMetadata\022\030\n\020progress_p" - + "ercent\030\001 \001(\005\022.\n\nstart_time\030\002 \001(\0132\032.googl" - + "e.protobuf.Timestamp\0224\n\020last_update_time" - + "\030\003 \001(\0132\032.google.protobuf.Timestamp\022\020\n\003ur" - + "i\030\004 \001(\tB\003\340A\003\"\311\003\n\032StreamingRecognizeRespo" - + "nse\022!\n\005error\030\001 \001(\0132\022.google.rpc.Status\022C" - + "\n\007results\030\002 \003(\01322.google.cloud.speech.v1" - + ".StreamingRecognitionResult\022]\n\021speech_ev" - + "ent_type\030\004 \001(\0162B.google.cloud.speech.v1." - + "StreamingRecognizeResponse.SpeechEventTy" - + "pe\0224\n\021total_billed_time\030\005 \001(\0132\031.google.p" - + "rotobuf.Duration\022L\n\026speech_adaptation_in" - + "fo\030\t \001(\0132,.google.cloud.speech.v1.Speech" - + "AdaptationInfo\022\022\n\nrequest_id\030\n \001(\003\"L\n\017Sp" - + "eechEventType\022\034\n\030SPEECH_EVENT_UNSPECIFIE" - + "D\020\000\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\362\001\n\032Str" - + "eamingRecognitionResult\022J\n\014alternatives\030" - + "\001 \003(\01324.google.cloud.speech.v1.SpeechRec" - + "ognitionAlternative\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\"\312\001" - + "\n\027SpeechRecognitionResult\022J\n\014alternative" - + "s\030\001 \003(\01324.google.cloud.speech.v1.SpeechR" - + "ecognitionAlternative\022\023\n\013channel_tag\030\002 \001" - + "(\005\0222\n\017result_end_time\030\004 \001(\0132\031.google.pro" - + "tobuf.Duration\022\032\n\rlanguage_code\030\005 \001(\tB\003\340" - + "A\003\"w\n\034SpeechRecognitionAlternative\022\022\n\ntr" - + "anscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022/\n\005wo" - + "rds\030\003 \003(\0132 .google.cloud.speech.v1.WordI" - + "nfo\"\242\001\n\010WordInfo\022-\n\nstart_time\030\001 \001(\0132\031.g" - + "oogle.protobuf.Duration\022+\n\010end_time\030\002 \001(" - + "\0132\031.google.protobuf.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\003\"K\n\024SpeechAdaptationInfo\022\032\n\022adap" - + "tation_timeout\030\001 \001(\010\022\027\n\017timeout_message\030" - + "\004 \001(\t2\321\004\n\006Speech\022\220\001\n\tRecognize\022(.google." - + "cloud.speech.v1.RecognizeRequest\032).googl" - + "e.cloud.speech.v1.RecognizeResponse\".\202\323\344" - + "\223\002\031\"\024/v1/speech:recognize:\001*\332A\014config,au" - + "dio\022\344\001\n\024LongRunningRecognize\0223.google.cl" - + "oud.speech.v1.LongRunningRecognizeReques" - + "t\032\035.google.longrunning.Operation\"x\202\323\344\223\002$" - + "\"\037/v1/speech:longrunningrecognize:\001*\332A\014c" - + "onfig,audio\312A<\n\034LongRunningRecognizeResp" - + "onse\022\034LongRunningRecognizeMetadata\022\201\001\n\022S" - + "treamingRecognize\0221.google.cloud.speech." - + "v1.StreamingRecognizeRequest\0322.google.cl" - + "oud.speech.v1.StreamingRecognizeResponse" - + "\"\000(\0010\001\032I\312A\025speech.googleapis.com\322A.https" - + "://www.googleapis.com/auth/cloud-platfor" - + "mBr\n\032com.google.cloud.speech.v1B\013SpeechP" - + "rotoP\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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java deleted file mode 100644 index 05350941a005..000000000000 --- a/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java deleted file mode 100644 index 2f3e881fd154..000000000000 --- a/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java deleted file mode 100644 index 2d3104cbb88a..000000000000 --- a/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java deleted file mode 100644 index c0e43bb88557..000000000000 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java +++ /dev/null @@ -1,513 +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; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_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\"\373\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\022S\n\026" - + "speech_adaptation_info\030\007 \001(\01323.google.cl" - + "oud.speech.v1p1beta1.SpeechAdaptationInf" - + "o\022\022\n\nrequest_id\030\010 \001(\003\"\376\002\n\034LongRunningRec" - + "ognizeResponse\022G\n\007results\030\002 \003(\01326.google" - + ".cloud.speech.v1p1beta1.SpeechRecognitio" - + "nResult\0224\n\021total_billed_time\030\003 \001(\0132\031.goo" - + "gle.protobuf.Duration\022L\n\routput_config\030\006" - + " \001(\01325.google.cloud.speech.v1p1beta1.Tra" - + "nscriptOutputConfig\022(\n\014output_error\030\007 \001(" - + "\0132\022.google.rpc.Status\022S\n\026speech_adaptati" - + "on_info\030\010 \001(\01323.google.cloud.speech.v1p1" - + "beta1.SpeechAdaptationInfo\022\022\n\nrequest_id" - + "\030\t \001(\003\"\203\002\n\034LongRunningRecognizeMetadata\022" - + "\030\n\020progress_percent\030\001 \001(\005\022.\n\nstart_time\030" - + "\002 \001(\0132\032.google.protobuf.Timestamp\0224\n\020las" - + "t_update_time\030\003 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022\020\n\003uri\030\004 \001(\tB\003\340A\003\022Q\n\routput_conf" - + "ig\030\005 \001(\01325.google.cloud.speech.v1p1beta1" - + ".TranscriptOutputConfigB\003\340A\003\"\336\003\n\032Streami" - + "ngRecognizeResponse\022!\n\005error\030\001 \001(\0132\022.goo" - + "gle.rpc.Status\022J\n\007results\030\002 \003(\01329.google" - + ".cloud.speech.v1p1beta1.StreamingRecogni" - + "tionResult\022d\n\021speech_event_type\030\004 \001(\0162I." - + "google.cloud.speech.v1p1beta1.StreamingR" - + "ecognizeResponse.SpeechEventType\0224\n\021tota" - + "l_billed_time\030\005 \001(\0132\031.google.protobuf.Du" - + "ration\022S\n\026speech_adaptation_info\030\t \001(\01323" - + ".google.cloud.speech.v1p1beta1.SpeechAda" - + "ptationInfo\022\022\n\nrequest_id\030\n \001(\003\"L\n\017Speec" - + "hEventType\022\034\n\030SPEECH_EVENT_UNSPECIFIED\020\000" - + "\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\371\001\n\032Stream" - + "ingRecognitionResult\022Q\n\014alternatives\030\001 \003" - + "(\0132;.google.cloud.speech.v1p1beta1.Speec" - + "hRecognitionAlternative\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\013chan" - + "nel_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A" - + "\003\"\321\001\n\027SpeechRecognitionResult\022Q\n\014alterna" - + "tives\030\001 \003(\0132;.google.cloud.speech.v1p1be" - + "ta1.SpeechRecognitionAlternative\022\023\n\013chan" - + "nel_tag\030\002 \001(\005\0222\n\017result_end_time\030\004 \001(\0132\031" - + ".google.protobuf.Duration\022\032\n\rlanguage_co" - + "de\030\005 \001(\tB\003\340A\003\"~\n\034SpeechRecognitionAltern" - + "ative\022\022\n\ntranscript\030\001 \001(\t\022\022\n\nconfidence\030" - + "\002 \001(\002\0226\n\005words\030\003 \003(\0132\'.google.cloud.spee" - + "ch.v1p1beta1.WordInfo\"\242\001\n\010WordInfo\022-\n\nst" - + "art_time\030\001 \001(\0132\031.google.protobuf.Duratio" - + "n\022+\n\010end_time\030\002 \001(\0132\031.google.protobuf.Du" - + "ration\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\003\"K\n\024SpeechAdap" - + "tationInfo\022\032\n\022adaptation_timeout\030\001 \001(\010\022\027" - + "\n\017timeout_message\030\004 \001(\t2\202\005\n\006Speech\022\245\001\n\tR" - + "ecognize\022/.google.cloud.speech.v1p1beta1" - + ".RecognizeRequest\0320.google.cloud.speech." - + "v1p1beta1.RecognizeResponse\"5\202\323\344\223\002 \"\033/v1" - + "p1beta1/speech:recognize:\001*\332A\014config,aud" - + "io\022\362\001\n\024LongRunningRecognize\022:.google.clo" - + "ud.speech.v1p1beta1.LongRunningRecognize" - + "Request\032\035.google.longrunning.Operation\"\177" - + "\202\323\344\223\002+\"&/v1p1beta1/speech:longrunningrec" - + "ognize:\001*\332A\014config,audio\312A<\n\034LongRunning" - + "RecognizeResponse\022\034LongRunningRecognizeM" - + "etadata\022\217\001\n\022StreamingRecognize\0228.google." - + "cloud.speech.v1p1beta1.StreamingRecogniz" - + "eRequest\0329.google.cloud.speech.v1p1beta1" - + ".StreamingRecognizeResponse\"\000(\0010\001\032I\312A\025sp" - + "eech.googleapis.com\322A.https://www.google" - + "apis.com/auth/cloud-platformB\200\001\n!com.goo" - + "gle.cloud.speech.v1p1beta1B\013SpeechProtoP" - + "\001ZCgoogle.golang.org/genproto/googleapis" - + "/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", "SpeechAdaptationInfo", "RequestId", - }); - 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", - "SpeechAdaptationInfo", - "RequestId", - }); - 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", - "SpeechAdaptationInfo", - "RequestId", - }); - 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", - }); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor, - new java.lang.String[] { - "AdaptationTimeout", "TimeoutMessage", - }); - 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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java deleted file mode 100644 index 71f4e12c7685..000000000000 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java +++ /dev/null @@ -1,190 +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_SpeechAdaptation_ABNFGrammar_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_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}\"\322\002\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\022" - + "Q\n\014abnf_grammar\030\004 \001(\0132;.google.cloud.spe" - + "ech.v1p1beta1.SpeechAdaptation.ABNFGramm" - + "ar\032#\n\013ABNFGrammar\022\024\n\014abnf_strings\030\001 \003(\t\"" - + "\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", "AbnfGrammar", - }); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor = - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor, - new java.lang.String[] { - "AbnfStrings", - }); - 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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java deleted file mode 100644 index eb900c2c33fb..000000000000 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java +++ /dev/null @@ -1,24 +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/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public interface AutoDetectDecodingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.AutoDetectDecodingConfig) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java deleted file mode 100644 index 353613c3a61f..000000000000 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java +++ /dev/null @@ -1,96 +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/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public interface BatchRecognizeMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Map from provided filename to the transcription metadata for that file.
-   * 
- * - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * - */ - int getTranscriptionMetadataCount(); - /** - * - * - *
-   * Map from provided filename to the transcription metadata for that file.
-   * 
- * - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * - */ - boolean containsTranscriptionMetadata(java.lang.String key); - /** Use {@link #getTranscriptionMetadataMap()} instead. */ - @java.lang.Deprecated - java.util.Map - getTranscriptionMetadata(); - /** - * - * - *
-   * Map from provided filename to the transcription metadata for that file.
-   * 
- * - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * - */ - java.util.Map - getTranscriptionMetadataMap(); - /** - * - * - *
-   * Map from provided filename to the transcription metadata for that file.
-   * 
- * - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * - */ - /* nullable */ - com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue); - /** - * - * - *
-   * Map from provided filename to the transcription metadata for that file.
-   * 
- * - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * - */ - com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrThrow( - java.lang.String key); -} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java deleted file mode 100644 index dabcad59583b..000000000000 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java +++ /dev/null @@ -1,1346 +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/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public final class CloudSpeechProto { - private CloudSpeechProto() {} - - 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_v2_CreateRecognizerRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_Recognizer_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_WordInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_Config_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_Config_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_CustomClass_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_PhraseSet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_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/v2/cloud_speech.pr" - + "oto\022\026google.cloud.speech.v2\032\034google/api/" - + "annotations.proto\032\027google/api/client.pro" - + "to\032\037google/api/field_behavior.proto\032\031goo" - + "gle/api/resource.proto\032#google/longrunni" - + "ng/operations.proto\032\036google/protobuf/dur" - + "ation.proto\032 google/protobuf/field_mask." - + "proto\032\037google/protobuf/timestamp.proto\032\027" - + "google/rpc/status.proto\"\276\001\n\027CreateRecogn" - + "izerRequest\022;\n\nrecognizer\030\001 \001(\0132\".google" - + ".cloud.speech.v2.RecognizerB\003\340A\002\022\025\n\rvali" - + "date_only\030\002 \001(\010\022\025\n\rrecognizer_id\030\003 \001(\t\0228" - + "\n\006parent\030\004 \001(\tB(\340A\002\372A\"\022 speech.googleapi" - + "s.com/Recognizer\"\343\014\n\021OperationMetadata\022/" - + "\n\013create_time\030\001 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022/\n\013update_time\030\002 \001(\0132\032.google.pr" - + "otobuf.Timestamp\022\020\n\010resource\030\003 \001(\t\022\016\n\006me" - + "thod\030\004 \001(\t\022<\n\014kms_key_name\030\006 \001(\tB&\372A#\n!c" - + "loudkms.googleapis.com/CryptoKey\022K\n\024kms_" - + "key_version_name\030\007 \001(\tB-\372A*\n(cloudkms.go" - + "ogleapis.com/CryptoKeyVersion\022P\n\027batch_r" - + "ecognize_request\030\010 \001(\0132-.google.cloud.sp" - + "eech.v2.BatchRecognizeRequestH\000\022T\n\031creat" - + "e_recognizer_request\030\t \001(\0132/.google.clou" - + "d.speech.v2.CreateRecognizerRequestH\000\022T\n" - + "\031update_recognizer_request\030\n \001(\0132/.googl" - + "e.cloud.speech.v2.UpdateRecognizerReques" - + "tH\000\022T\n\031delete_recognizer_request\030\013 \001(\0132/" - + ".google.cloud.speech.v2.DeleteRecognizer" - + "RequestH\000\022X\n\033undelete_recognizer_request" - + "\030\014 \001(\01321.google.cloud.speech.v2.Undelete" - + "RecognizerRequestH\000\022W\n\033create_custom_cla" - + "ss_request\030\r \001(\01320.google.cloud.speech.v" - + "2.CreateCustomClassRequestH\000\022W\n\033update_c" - + "ustom_class_request\030\016 \001(\01320.google.cloud" - + ".speech.v2.UpdateCustomClassRequestH\000\022W\n" - + "\033delete_custom_class_request\030\017 \001(\01320.goo" - + "gle.cloud.speech.v2.DeleteCustomClassReq" - + "uestH\000\022[\n\035undelete_custom_class_request\030" - + "\020 \001(\01322.google.cloud.speech.v2.UndeleteC" - + "ustomClassRequestH\000\022S\n\031create_phrase_set" - + "_request\030\021 \001(\0132..google.cloud.speech.v2." - + "CreatePhraseSetRequestH\000\022S\n\031update_phras" - + "e_set_request\030\022 \001(\0132..google.cloud.speec" - + "h.v2.UpdatePhraseSetRequestH\000\022S\n\031delete_" - + "phrase_set_request\030\023 \001(\0132..google.cloud." - + "speech.v2.DeletePhraseSetRequestH\000\022W\n\033un" - + "delete_phrase_set_request\030\024 \001(\01320.google" - + ".cloud.speech.v2.UndeletePhraseSetReques" - + "tH\000\022L\n\025update_config_request\030\025 \001(\0132+.goo" - + "gle.cloud.speech.v2.UpdateConfigRequestH" - + "\000\022\030\n\020progress_percent\030\026 \001(\005\022R\n\030batch_rec" - + "ognize_metadata\030\027 \001(\0132..google.cloud.spe" - + "ech.v2.BatchRecognizeMetadataH\001B\t\n\007reque" - + "stB\n\n\010metadata\"\220\001\n\026ListRecognizersReques" - + "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goo" - + "gleapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022" - + "\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(" - + "\010\"k\n\027ListRecognizersResponse\0227\n\013recogniz" - + "ers\030\001 \003(\0132\".google.cloud.speech.v2.Recog" - + "nizer\022\027\n\017next_page_token\030\002 \001(\t\"N\n\024GetRec" - + "ognizerRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n sp" - + "eech.googleapis.com/Recognizer\"\236\001\n\027Updat" - + "eRecognizerRequest\022;\n\nrecognizer\030\001 \001(\0132\"" - + ".google.cloud.speech.v2.RecognizerB\003\340A\002\022" - + "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" - + "ieldMask\022\025\n\rvalidate_only\030\004 \001(\010\"\215\001\n\027Dele" - + "teRecognizerRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A" - + "\"\n speech.googleapis.com/Recognizer\022\025\n\rv" - + "alidate_only\030\002 \001(\010\022\025\n\rallow_missing\030\004 \001(" - + "\010\022\014\n\004etag\030\003 \001(\t\"x\n\031UndeleteRecognizerReq" - + "uest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n speech.googl" - + "eapis.com/Recognizer\022\025\n\rvalidate_only\030\003 " - + "\001(\010\022\014\n\004etag\030\004 \001(\t\"\276\007\n\nRecognizer\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\024\n\014display" - + "_name\030\003 \001(\t\022\022\n\005model\030\004 \001(\tB\003\340A\002\022\033\n\016langu" - + "age_codes\030\021 \003(\tB\003\340A\002\022M\n\032default_recognit" - + "ion_config\030\006 \001(\0132).google.cloud.speech.v" - + "2.RecognitionConfig\022H\n\013annotations\030\007 \003(\013" - + "23.google.cloud.speech.v2.Recognizer.Ann" - + "otationsEntry\022<\n\005state\030\010 \001(\0162(.google.cl" - + "oud.speech.v2.Recognizer.StateB\003\340A\003\0224\n\013c" - + "reate_time\030\t \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\013" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013expire_time\030\016 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\022\021\n\004etag\030\014 \001(\tB\003\340A\003\022\030\n\013reconc" - + "iling\030\r \001(\010B\003\340A\003\022?\n\014kms_key_name\030\017 \001(\tB)" - + "\340A\003\372A#\n!cloudkms.googleapis.com/CryptoKe" - + "y\022N\n\024kms_key_version_name\030\020 \001(\tB0\340A\003\372A*\n" - + "(cloudkms.googleapis.com/CryptoKeyVersio" - + "n\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001\"7\n\005State\022\025\n\021STATE_UNSPECIF" - + "IED\020\000\022\n\n\006ACTIVE\020\002\022\013\n\007DELETED\020\004:j\352Ag\n spe" - + "ech.googleapis.com/Recognizer\022@projects/" - + "{project}/locations/{location}/recognize" - + "rs/{recognizer}R\001\001\"\032\n\030AutoDetectDecoding" - + "Config\"\371\001\n\026ExplicitDecodingConfig\022S\n\010enc" - + "oding\030\001 \001(\0162<.google.cloud.speech.v2.Exp" - + "licitDecodingConfig.AudioEncodingB\003\340A\002\022\031" - + "\n\021sample_rate_hertz\030\002 \001(\005\022\033\n\023audio_chann" - + "el_count\030\003 \001(\005\"R\n\rAudioEncoding\022\036\n\032AUDIO" - + "_ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\t\n" - + "\005MULAW\020\002\022\010\n\004ALAW\020\003\"Z\n\030SpeakerDiarization" - + "Config\022\036\n\021min_speaker_count\030\002 \001(\005B\003\340A\002\022\036" - + "\n\021max_speaker_count\030\003 \001(\005B\003\340A\002\"\370\003\n\023Recog" - + "nitionFeatures\022\030\n\020profanity_filter\030\001 \001(\010" - + "\022 \n\030enable_word_time_offsets\030\002 \001(\010\022\036\n\026en" - + "able_word_confidence\030\003 \001(\010\022$\n\034enable_aut" - + "omatic_punctuation\030\004 \001(\010\022!\n\031enable_spoke" - + "n_punctuation\030\016 \001(\010\022\034\n\024enable_spoken_emo" - + "jis\030\017 \001(\010\022X\n\022multi_channel_mode\030\021 \001(\0162<." - + "google.cloud.speech.v2.RecognitionFeatur" - + "es.MultiChannelMode\022L\n\022diarization_confi" - + "g\030\t \001(\01320.google.cloud.speech.v2.Speaker" - + "DiarizationConfig\022\030\n\020max_alternatives\030\020 " - + "\001(\005\"\\\n\020MultiChannelMode\022\"\n\036MULTI_CHANNEL" - + "_MODE_UNSPECIFIED\020\000\022$\n SEPARATE_RECOGNIT" - + "ION_PER_CHANNEL\020\001\"\277\002\n\020SpeechAdaptation\022Q" - + "\n\013phrase_sets\030\001 \003(\0132<.google.cloud.speec" - + "h.v2.SpeechAdaptation.AdaptationPhraseSe" - + "t\022;\n\016custom_classes\030\002 \003(\0132#.google.cloud" - + ".speech.v2.CustomClass\032\232\001\n\023AdaptationPhr" - + "aseSet\022:\n\nphrase_set\030\001 \001(\tB$\372A!\n\037speech." - + "googleapis.com/PhraseSetH\000\022>\n\021inline_phr" - + "ase_set\030\002 \001(\0132!.google.cloud.speech.v2.P" - + "hraseSetH\000B\007\n\005value\"\311\002\n\021RecognitionConfi" - + "g\022P\n\024auto_decoding_config\030\007 \001(\01320.google" - + ".cloud.speech.v2.AutoDetectDecodingConfi" - + "gH\000\022R\n\030explicit_decoding_config\030\010 \001(\0132.." - + "google.cloud.speech.v2.ExplicitDecodingC" - + "onfigH\000\022=\n\010features\030\002 \001(\0132+.google.cloud" - + ".speech.v2.RecognitionFeatures\022<\n\nadapta" - + "tion\030\006 \001(\0132(.google.cloud.speech.v2.Spee" - + "chAdaptationB\021\n\017decoding_config\"\356\001\n\020Reco" - + "gnizeRequest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A\"" - + "\n speech.googleapis.com/Recognizer\0229\n\006co" - + "nfig\030\001 \001(\0132).google.cloud.speech.v2.Reco" - + "gnitionConfig\022/\n\013config_mask\030\010 \001(\0132\032.goo" - + "gle.protobuf.FieldMask\022\021\n\007content\030\005 \001(\014H" - + "\000\022\r\n\003uri\030\006 \001(\tH\000B\016\n\014audio_source\"W\n\033Reco" - + "gnitionResponseMetadata\0228\n\025total_billed_" - + "duration\030\006 \001(\0132\031.google.protobuf.Duratio" - + "n\"w\n\034SpeechRecognitionAlternative\022\022\n\ntra" - + "nscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022/\n\005wor" - + "ds\030\003 \003(\0132 .google.cloud.speech.v2.WordIn" - + "fo\"\243\001\n\010WordInfo\022/\n\014start_offset\030\001 \001(\0132\031." - + "google.protobuf.Duration\022-\n\nend_offset\030\002" - + " \001(\0132\031.google.protobuf.Duration\022\014\n\004word\030" - + "\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002\022\025\n\rspeaker_lab" - + "el\030\006 \001(\t\"\314\001\n\027SpeechRecognitionResult\022J\n\014" - + "alternatives\030\001 \003(\01324.google.cloud.speech" - + ".v2.SpeechRecognitionAlternative\022\023\n\013chan" - + "nel_tag\030\002 \001(\005\0224\n\021result_end_offset\030\004 \001(\013" - + "2\031.google.protobuf.Duration\022\032\n\rlanguage_" - + "code\030\005 \001(\tB\003\340A\003\"\234\001\n\021RecognizeResponse\022@\n" - + "\007results\030\003 \003(\0132/.google.cloud.speech.v2." - + "SpeechRecognitionResult\022E\n\010metadata\030\002 \001(" - + "\01323.google.cloud.speech.v2.RecognitionRe" - + "sponseMetadata\"\321\002\n\034StreamingRecognitionF" - + "eatures\022$\n\034enable_voice_activity_events\030" - + "\001 \001(\010\022\027\n\017interim_results\030\002 \001(\010\022i\n\026voice_" - + "activity_timeout\030\003 \001(\0132I.google.cloud.sp" - + "eech.v2.StreamingRecognitionFeatures.Voi" - + "ceActivityTimeout\032\206\001\n\024VoiceActivityTimeo" - + "ut\0227\n\024speech_start_timeout\030\001 \001(\0132\031.googl" - + "e.protobuf.Duration\0225\n\022speech_end_timeou" - + "t\030\002 \001(\0132\031.google.protobuf.Duration\"\337\001\n\032S" - + "treamingRecognitionConfig\022>\n\006config\030\001 \001(" - + "\0132).google.cloud.speech.v2.RecognitionCo" - + "nfigB\003\340A\002\022/\n\013config_mask\030\003 \001(\0132\032.google." - + "protobuf.FieldMask\022P\n\022streaming_features" - + "\030\002 \001(\01324.google.cloud.speech.v2.Streamin" - + "gRecognitionFeatures\"\317\001\n\031StreamingRecogn" - + "izeRequest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A\"\n " - + "speech.googleapis.com/Recognizer\022N\n\020stre" - + "aming_config\030\006 \001(\01322.google.cloud.speech" - + ".v2.StreamingRecognitionConfigH\000\022\017\n\005audi" - + "o\030\005 \001(\014H\000B\023\n\021streaming_request\"\204\002\n\025Batch" - + "RecognizeRequest\022<\n\nrecognizer\030\001 \001(\tB(\340A" - + "\002\372A\"\n speech.googleapis.com/Recognizer\0229" - + "\n\006config\030\004 \001(\0132).google.cloud.speech.v2." - + "RecognitionConfig\022/\n\013config_mask\030\005 \001(\0132\032" - + ".google.protobuf.FieldMask\022A\n\005files\030\003 \003(" - + "\01322.google.cloud.speech.v2.BatchRecogniz" - + "eFileMetadata\"\310\001\n\026BatchRecognizeResponse" - + "\022L\n\007results\030\001 \003(\0132;.google.cloud.speech." - + "v2.BatchRecognizeResponse.ResultsEntry\032`" - + "\n\014ResultsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001" - + "(\01320.google.cloud.speech.v2.BatchRecogni" - + "zeFileResult:\0028\001\"J\n\030BatchRecognizeFileRe" - + "sult\022\013\n\003uri\030\001 \001(\t\022!\n\005error\030\002 \001(\0132\022.googl" - + "e.rpc.Status\"o\n#BatchRecognizeTranscript" - + "ionMetadata\022\030\n\020progress_percent\030\001 \001(\005\022!\n" - + "\005error\030\002 \001(\0132\022.google.rpc.Status\022\013\n\003uri\030" - + "\003 \001(\t\"\376\001\n\026BatchRecognizeMetadata\022i\n\026tran" - + "scription_metadata\030\001 \003(\0132I.google.cloud." - + "speech.v2.BatchRecognizeMetadata.Transcr" - + "iptionMetadataEntry\032y\n\032TranscriptionMeta" - + "dataEntry\022\013\n\003key\030\001 \001(\t\022J\n\005value\030\002 \001(\0132;." - + "google.cloud.speech.v2.BatchRecognizeTra" - + "nscriptionMetadata:\0028\001\"\247\001\n\032BatchRecogniz" - + "eFileMetadata\022\r\n\003uri\030\001 \001(\tH\000\0229\n\006config\030\004" - + " \001(\0132).google.cloud.speech.v2.Recognitio" - + "nConfig\022/\n\013config_mask\030\005 \001(\0132\032.google.pr" - + "otobuf.FieldMaskB\016\n\014audio_source\"\364\001\n\032Str" - + "eamingRecognitionResult\022J\n\014alternatives\030" - + "\001 \003(\01324.google.cloud.speech.v2.SpeechRec" - + "ognitionAlternative\022\020\n\010is_final\030\002 \001(\010\022\021\n" - + "\tstability\030\003 \001(\002\0224\n\021result_end_offset\030\004 " - + "\001(\0132\031.google.protobuf.Duration\022\023\n\013channe" - + "l_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A\003\"" - + "\307\003\n\032StreamingRecognizeResponse\022C\n\007result" - + "s\030\006 \003(\01322.google.cloud.speech.v2.Streami" - + "ngRecognitionResult\022]\n\021speech_event_type" - + "\030\003 \001(\0162B.google.cloud.speech.v2.Streamin" - + "gRecognizeResponse.SpeechEventType\0226\n\023sp" - + "eech_event_offset\030\007 \001(\0132\031.google.protobu" - + "f.Duration\022E\n\010metadata\030\005 \001(\01323.google.cl" - + "oud.speech.v2.RecognitionResponseMetadat" - + "a\"\205\001\n\017SpeechEventType\022!\n\035SPEECH_EVENT_TY" - + "PE_UNSPECIFIED\020\000\022\033\n\027END_OF_SINGLE_UTTERA" - + "NCE\020\001\022\031\n\025SPEECH_ACTIVITY_BEGIN\020\002\022\027\n\023SPEE" - + "CH_ACTIVITY_END\020\003\"\345\001\n\006Config\022\021\n\004name\030\001 \001" - + "(\tB\003\340A\003\022?\n\014kms_key_name\030\002 \001(\tB)\340A\001\372A#\n!c" - + "loudkms.googleapis.com/CryptoKey\0224\n\013upda" - + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003:Q\352AN\n\034speech.googleapis.com/Confi" - + "g\022.projects/{project}/locations/{locatio" - + "n}/config\"F\n\020GetConfigRequest\0222\n\004name\030\001 " - + "\001(\tB$\340A\002\372A\036\n\034speech.googleapis.com/Confi" - + "g\"{\n\023UpdateConfigRequest\0223\n\006config\030\001 \001(\013" - + "2\036.google.cloud.speech.v2.ConfigB\003\340A\002\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" - + "ldMask\"\240\007\n\013CustomClass\022\021\n\004name\030\001 \001(\tB\003\340A" - + "\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\024\n\014display_name\030\004 \001(" - + "\t\022<\n\005items\030\005 \003(\0132-.google.cloud.speech.v" - + "2.CustomClass.ClassItem\022=\n\005state\030\017 \001(\0162)" - + ".google.cloud.speech.v2.CustomClass.Stat" - + "eB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013de" - + "lete_time\030\010 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0224\n\013expire_time\030\t \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022I\n\013annotations\030\n " - + "\003(\01324.google.cloud.speech.v2.CustomClass" - + ".AnnotationsEntry\022\021\n\004etag\030\013 \001(\tB\003\340A\003\022\030\n\013" - + "reconciling\030\014 \001(\010B\003\340A\003\022?\n\014kms_key_name\030\r" - + " \001(\tB)\340A\003\372A#\n!cloudkms.googleapis.com/Cr" - + "yptoKey\022N\n\024kms_key_version_name\030\016 \001(\tB0\340" - + "A\003\372A*\n(cloudkms.googleapis.com/CryptoKey" - + "Version\032\032\n\tClassItem\022\r\n\005value\030\001 \001(\t\0322\n\020A" - + "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001\"7\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" - + "\n\n\006ACTIVE\020\002\022\013\n\007DELETED\020\004:o\352Al\n!speech.go" - + "ogleapis.com/CustomClass\022Dprojects/{proj" - + "ect}/locations/{location}/customClasses/" - + "{custom_class}R\001\001\"\253\007\n\tPhraseSet\022\021\n\004name\030" - + "\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0229\n\007phrases\030" - + "\003 \003(\0132(.google.cloud.speech.v2.PhraseSet" - + ".Phrase\022\r\n\005boost\030\004 \001(\002\022\024\n\014display_name\030\005" - + " \001(\t\022;\n\005state\030\017 \001(\0162\'.google.cloud.speec" - + "h.v2.PhraseSet.StateB\003\340A\003\0224\n\013create_time" - + "\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "4\n\013update_time\030\007 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\0224\n\013expire_ti" - + "me\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\022G\n\013annotations\030\n \003(\01322.google.cloud.sp" - + "eech.v2.PhraseSet.AnnotationsEntry\022\021\n\004et" - + "ag\030\013 \001(\tB\003\340A\003\022\030\n\013reconciling\030\014 \001(\010B\003\340A\003\022" - + "?\n\014kms_key_name\030\r \001(\tB)\340A\003\372A#\n!cloudkms." - + "googleapis.com/CryptoKey\022N\n\024kms_key_vers" - + "ion_name\030\016 \001(\tB0\340A\003\372A*\n(cloudkms.googlea" - + "pis.com/CryptoKeyVersion\032&\n\006Phrase\022\r\n\005va" - + "lue\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002\0322\n\020AnnotationsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\005" - + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\002" - + "\022\013\n\007DELETED\020\004:h\352Ae\n\037speech.googleapis.co" - + "m/PhraseSet\022?projects/{project}/location" - + "s/{location}/phraseSets/{phrase_set}R\001\001\"" - + "\305\001\n\030CreateCustomClassRequest\022>\n\014custom_c" - + "lass\030\001 \001(\0132#.google.cloud.speech.v2.Cust" - + "omClassB\003\340A\002\022\025\n\rvalidate_only\030\002 \001(\010\022\027\n\017c" - + "ustom_class_id\030\003 \001(\t\0229\n\006parent\030\004 \001(\tB)\340A" - + "\002\372A#\022!speech.googleapis.com/CustomClass\"" - + "\222\001\n\030ListCustomClassesRequest\0229\n\006parent\030\001" - + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" - + "ocation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" - + "\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"q\n\031ListCust" - + "omClassesResponse\022;\n\016custom_classes\030\001 \003(" - + "\0132#.google.cloud.speech.v2.CustomClass\022\027" - + "\n\017next_page_token\030\002 \001(\t\"P\n\025GetCustomClas" - + "sRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.g" - + "oogleapis.com/CustomClass\"\242\001\n\030UpdateCust" - + "omClassRequest\022>\n\014custom_class\030\001 \001(\0132#.g" - + "oogle.cloud.speech.v2.CustomClassB\003\340A\002\022/" - + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" - + "eldMask\022\025\n\rvalidate_only\030\004 \001(\010\"\217\001\n\030Delet" - + "eCustomClassRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A" - + "#\n!speech.googleapis.com/CustomClass\022\025\n\r" - + "validate_only\030\002 \001(\010\022\025\n\rallow_missing\030\004 \001" - + "(\010\022\014\n\004etag\030\003 \001(\t\"z\n\032UndeleteCustomClassR" - + "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.goo" - + "gleapis.com/CustomClass\022\025\n\rvalidate_only" - + "\030\003 \001(\010\022\014\n\004etag\030\004 \001(\t\"\273\001\n\026CreatePhraseSet" - + "Request\022:\n\nphrase_set\030\001 \001(\0132!.google.clo" - + "ud.speech.v2.PhraseSetB\003\340A\002\022\025\n\rvalidate_" - + "only\030\002 \001(\010\022\025\n\rphrase_set_id\030\003 \001(\t\0227\n\006par" - + "ent\030\004 \001(\tB\'\340A\002\372A!\022\037speech.googleapis.com" - + "/PhraseSet\"\217\001\n\025ListPhraseSetsRequest\0229\n\006" - + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" - + "is.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" - + "ge_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"i\n\026" - + "ListPhraseSetsResponse\0226\n\013phrase_sets\030\001 " - + "\003(\0132!.google.cloud.speech.v2.PhraseSet\022\027" - + "\n\017next_page_token\030\002 \001(\t\"L\n\023GetPhraseSetR" - + "equest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.goo" - + "gleapis.com/PhraseSet\"\234\001\n\026UpdatePhraseSe" - + "tRequest\022:\n\nphrase_set\030\001 \001(\0132!.google.cl" - + "oud.speech.v2.PhraseSetB\003\340A\002\022/\n\013update_m" - + "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\022\025\n" - + "\rvalidate_only\030\004 \001(\010\"\213\001\n\026DeletePhraseSet" - + "Request\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.go" - + "ogleapis.com/PhraseSet\022\025\n\rvalidate_only\030" - + "\002 \001(\010\022\025\n\rallow_missing\030\004 \001(\010\022\014\n\004etag\030\003 \001" - + "(\t\"v\n\030UndeletePhraseSetRequest\0225\n\004name\030\001" - + " \001(\tB\'\340A\002\372A!\n\037speech.googleapis.com/Phra" - + "seSet\022\025\n\rvalidate_only\030\003 \001(\010\022\014\n\004etag\030\004 \001" - + "(\t2\277%\n\006Speech\022\354\001\n\020CreateRecognizer\022/.goo" - + "gle.cloud.speech.v2.CreateRecognizerRequ" - + "est\032\035.google.longrunning.Operation\"\207\001\202\323\344" - + "\223\002=\"//v2/{parent=projects/*/locations/*}" - + "/recognizers:\nrecognizer\332A\037parent,recogn" - + "izer,recognizer_id\312A\037\n\nRecognizer\022\021Opera" - + "tionMetadata\022\264\001\n\017ListRecognizers\022..googl" - + "e.cloud.speech.v2.ListRecognizersRequest" - + "\032/.google.cloud.speech.v2.ListRecognizer" - + "sResponse\"@\202\323\344\223\0021\022//v2/{parent=projects/" - + "*/locations/*}/recognizers\332A\006parent\022\241\001\n\r" - + "GetRecognizer\022,.google.cloud.speech.v2.G" - + "etRecognizerRequest\032\".google.cloud.speec" - + "h.v2.Recognizer\">\202\323\344\223\0021\022//v2/{name=proje" - + "cts/*/locations/*/recognizers/*}\332A\004name\022" - + "\356\001\n\020UpdateRecognizer\022/.google.cloud.spee" - + "ch.v2.UpdateRecognizerRequest\032\035.google.l" - + "ongrunning.Operation\"\211\001\202\323\344\223\002H2:/v2/{reco" - + "gnizer.name=projects/*/locations/*/recog" - + "nizers/*}:\nrecognizer\332A\026recognizer,updat" - + "e_mask\312A\037\n\nRecognizer\022\021OperationMetadata" - + "\022\304\001\n\020DeleteRecognizer\022/.google.cloud.spe" - + "ech.v2.DeleteRecognizerRequest\032\035.google." - + "longrunning.Operation\"`\202\323\344\223\0021*//v2/{name" - + "=projects/*/locations/*/recognizers/*}\332A" - + "\004name\312A\037\n\nRecognizer\022\021OperationMetadata\022" - + "\324\001\n\022UndeleteRecognizer\0221.google.cloud.sp" - + "eech.v2.UndeleteRecognizerRequest\032\035.goog" - + "le.longrunning.Operation\"l\202\323\344\223\002=\"8/v2/{n" - + "ame=projects/*/locations/*/recognizers/*" - + "}:undelete:\001*\332A\004name\312A\037\n\nRecognizer\022\021Ope" - + "rationMetadata\022\371\001\n\tRecognize\022(.google.cl" - + "oud.speech.v2.RecognizeRequest\032).google." - + "cloud.speech.v2.RecognizeResponse\"\226\001\202\323\344\223" - + "\002D\"?/v2/{recognizer=projects/*/locations" - + "/*/recognizers/*}:recognize:\001*\332A%recogni" - + "zer,config,config_mask,content\332A!recogni" - + "zer,config,config_mask,uri\022\201\001\n\022Streaming" - + "Recognize\0221.google.cloud.speech.v2.Strea" - + "mingRecognizeRequest\0322.google.cloud.spee" - + "ch.v2.StreamingRecognizeResponse\"\000(\0010\001\022\204" - + "\002\n\016BatchRecognize\022-.google.cloud.speech." - + "v2.BatchRecognizeRequest\032\035.google.longru" - + "nning.Operation\"\243\001\202\323\344\223\002I\"D/v2/{recognize" - + "r=projects/*/locations/*/recognizers/*}:" - + "batchRecognize:\001*\332A#recognizer,config,co" - + "nfig_mask,files\312A+\n\026BatchRecognizeRespon" - + "se\022\021OperationMetadata\022\216\001\n\tGetConfig\022(.go" - + "ogle.cloud.speech.v2.GetConfigRequest\032\036." - + "google.cloud.speech.v2.Config\"7\202\323\344\223\002*\022(/" - + "v2/{name=projects/*/locations/*/config}\332" - + "A\004name\022\261\001\n\014UpdateConfig\022+.google.cloud.s" - + "peech.v2.UpdateConfigRequest\032\036.google.cl" - + "oud.speech.v2.Config\"T\202\323\344\223\00292//v2/{confi" - + "g.name=projects/*/locations/*/config}:\006c" - + "onfig\332A\022config,update_mask\022\367\001\n\021CreateCus" - + "tomClass\0220.google.cloud.speech.v2.Create" - + "CustomClassRequest\032\035.google.longrunning." - + "Operation\"\220\001\202\323\344\223\002A\"1/v2/{parent=projects" - + "/*/locations/*}/customClasses:\014custom_cl" - + "ass\332A#parent,custom_class,custom_class_i" - + "d\312A \n\013CustomClass\022\021OperationMetadata\022\274\001\n" - + "\021ListCustomClasses\0220.google.cloud.speech" - + ".v2.ListCustomClassesRequest\0321.google.cl" - + "oud.speech.v2.ListCustomClassesResponse\"" - + "B\202\323\344\223\0023\0221/v2/{parent=projects/*/location" - + "s/*}/customClasses\332A\006parent\022\246\001\n\016GetCusto" - + "mClass\022-.google.cloud.speech.v2.GetCusto" - + "mClassRequest\032#.google.cloud.speech.v2.C" - + "ustomClass\"@\202\323\344\223\0023\0221/v2/{name=projects/*", - "/locations/*/customClasses/*}\332A\004name\022\371\001\n" - + "\021UpdateCustomClass\0220.google.cloud.speech" - + ".v2.UpdateCustomClassRequest\032\035.google.lo" - + "ngrunning.Operation\"\222\001\202\323\344\223\002N2>/v2/{custo" - + "m_class.name=projects/*/locations/*/cust" - + "omClasses/*}:\014custom_class\332A\030custom_clas" - + "s,update_mask\312A \n\013CustomClass\022\021Operation" - + "Metadata\022\311\001\n\021DeleteCustomClass\0220.google." - + "cloud.speech.v2.DeleteCustomClassRequest" - + "\032\035.google.longrunning.Operation\"c\202\323\344\223\0023*" - + "1/v2/{name=projects/*/locations/*/custom" - + "Classes/*}\332A\004name\312A \n\013CustomClass\022\021Opera" - + "tionMetadata\022\331\001\n\023UndeleteCustomClass\0222.g" - + "oogle.cloud.speech.v2.UndeleteCustomClas" - + "sRequest\032\035.google.longrunning.Operation\"" - + "o\202\323\344\223\002?\":/v2/{name=projects/*/locations/" - + "*/customClasses/*}:undelete:\001*\332A\004name\312A " - + "\n\013CustomClass\022\021OperationMetadata\022\350\001\n\017Cre" - + "atePhraseSet\022..google.cloud.speech.v2.Cr" - + "eatePhraseSetRequest\032\035.google.longrunnin" - + "g.Operation\"\205\001\202\323\344\223\002<\"./v2/{parent=projec" - + "ts/*/locations/*}/phraseSets:\nphrase_set" - + "\332A\037parent,phrase_set,phrase_set_id\312A\036\n\tP" - + "hraseSet\022\021OperationMetadata\022\260\001\n\016ListPhra" - + "seSets\022-.google.cloud.speech.v2.ListPhra" - + "seSetsRequest\032..google.cloud.speech.v2.L" - + "istPhraseSetsResponse\"?\202\323\344\223\0020\022./v2/{pare" - + "nt=projects/*/locations/*}/phraseSets\332A\006" - + "parent\022\235\001\n\014GetPhraseSet\022+.google.cloud.s" - + "peech.v2.GetPhraseSetRequest\032!.google.cl" - + "oud.speech.v2.PhraseSet\"=\202\323\344\223\0020\022./v2/{na" - + "me=projects/*/locations/*/phraseSets/*}\332" - + "A\004name\022\352\001\n\017UpdatePhraseSet\022..google.clou" - + "d.speech.v2.UpdatePhraseSetRequest\032\035.goo" - + "gle.longrunning.Operation\"\207\001\202\323\344\223\002G29/v2/" - + "{phrase_set.name=projects/*/locations/*/" - + "phraseSets/*}:\nphrase_set\332A\026phrase_set,u" - + "pdate_mask\312A\036\n\tPhraseSet\022\021OperationMetad" - + "ata\022\300\001\n\017DeletePhraseSet\022..google.cloud.s" - + "peech.v2.DeletePhraseSetRequest\032\035.google" - + ".longrunning.Operation\"^\202\323\344\223\0020*./v2/{nam" - + "e=projects/*/locations/*/phraseSets/*}\332A" - + "\004name\312A\036\n\tPhraseSet\022\021OperationMetadata\022\320" - + "\001\n\021UndeletePhraseSet\0220.google.cloud.spee" - + "ch.v2.UndeletePhraseSetRequest\032\035.google." - + "longrunning.Operation\"j\202\323\344\223\002<\"7/v2/{name" - + "=projects/*/locations/*/phraseSets/*}:un" - + "delete:\001*\332A\004name\312A\036\n\tPhraseSet\022\021Operatio" - + "nMetadata\032I\312A\025speech.googleapis.com\322A.ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "formB\223\003\n\032com.google.cloud.speech.v2B\020Clo" - + "udSpeechProtoP\001Z - * Required. The name of the config to retrieve. There is exactly one config - * resource per project per location. The expected format is - * `projects/{project}/locations/{location}/config`. - * - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the config to retrieve. There is exactly one config
-   * resource per project per location. The expected format is
-   * `projects/{project}/locations/{location}/config`.
-   * 
- * - * - * 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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java deleted file mode 100644 index 4988dd99a937..000000000000 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public interface GetCustomClassRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetCustomClassRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the CustomClass to retrieve. The expected format is
-   * `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 CustomClass to retrieve. The expected format is
-   * `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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java deleted file mode 100644 index d1e52870afb2..000000000000 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.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/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public interface GetPhraseSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetPhraseSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the PhraseSet to retrieve. The expected format is
-   * `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 PhraseSet to retrieve. The expected format is
-   * `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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java deleted file mode 100644 index 0b709d73d3e5..000000000000 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.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/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public interface GetRecognizerRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetRecognizerRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the Recognizer to retrieve. The expected format is
-   * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the Recognizer to retrieve. The expected format is
-   * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
-   * 
- * - * - * 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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java index 88585863167f..ef2af1fea060 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java +++ b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java @@ -29,6 +29,7 @@ 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; diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java index 410fbe1afbe6..e9f6e4ac2293 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java +++ b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java @@ -27,6 +27,7 @@ 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; diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java index 881efcbe3130..45bd5bdce97f 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java +++ b/owl-bot-staging/java-speech/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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java index 2d1dc5eb7ee8..1735c61d96ae 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java +++ b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java @@ -28,6 +28,7 @@ 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.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java diff --git a/owl-bot-staging/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java b/owl-bot-staging/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java new file mode 100644 index 000000000000..b536dba14db7 --- /dev/null +++ b/owl-bot-staging/java-speech/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/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java b/owl-bot-staging/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java new file mode 100644 index 000000000000..46b71822a661 --- /dev/null +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java index 406224f1174c..6d91dd3a2692 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource where this custom class will be created. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -85,10 +63,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 @@ -97,15 +72,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`
@@ -116,18 +90,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 { @@ -136,12 +109,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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.
@@ -150,7 +120,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The customClassId. */ @java.lang.Override @@ -159,15 +128,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.
@@ -176,15 +144,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 { @@ -195,16 +164,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 @@ -212,44 +176,30 @@ 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() { - return customClass_ == null - ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() : customClass_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +211,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_); } @@ -287,7 +238,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -297,19 +249,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -336,135 +290,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +428,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 @@ -501,11 +449,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.CreateCustomClassRequest result = new com.google.cloud.speech.v1.CreateCustomClassRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -519,8 +464,9 @@ private void buildPartial0(com.google.cloud.speech.v1.CreateCustomClassRequest r result.customClassId_ = customClassId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.customClass_ = - customClassBuilder_ == null ? customClass_ : customClassBuilder_.build(); + result.customClass_ = customClassBuilder_ == null + ? customClass_ + : customClassBuilder_.build(); } } @@ -528,39 +474,38 @@ private void buildPartial0(com.google.cloud.speech.v1.CreateCustomClassRequest r 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; @@ -568,8 +513,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_; bitField0_ |= 0x00000001; @@ -609,31 +553,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - customClassId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + customClassId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getCustomClassFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -643,13 +585,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -660,16 +599,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; @@ -678,8 +615,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -690,17 +625,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 { @@ -708,8 +642,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -720,25 +652,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -749,10 +675,7 @@ 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() { @@ -762,8 +685,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -774,17 +695,13 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -794,8 +711,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.
@@ -804,13 +719,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; @@ -819,8 +734,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.
@@ -829,14 +742,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 { @@ -844,8 +758,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.
@@ -854,22 +766,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomClassId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } customClassId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -878,7 +786,6 @@ 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() { @@ -888,8 +795,6 @@ public Builder clearCustomClassId() { return this; } /** - * - * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -898,14 +803,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomClassIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customClassId_ = value; bitField0_ |= 0x00000002; @@ -915,58 +818,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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) { @@ -982,17 +866,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(); } else { @@ -1003,21 +884,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 (((bitField0_ & 0x00000004) != 0) - && customClass_ != null - && customClass_ != com.google.cloud.speech.v1.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + customClass_ != null && + customClass_ != com.google.cloud.speech.v1.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -1030,15 +907,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1051,15 +924,11 @@ 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() { bitField0_ |= 0x00000004; @@ -1067,55 +936,43 @@ public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassBuilder() { 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); } @@ -1125,12 +982,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(); } @@ -1139,27 +996,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1174,4 +1031,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CreateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java similarity index 65% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java index 14ccf162cb13..f9dbb4e979ea 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java index 5fc91b3d7289..1fdc00c99f4f 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource where this phrase set will be created. Format:
    * `projects/{project}/locations/{location}/phraseSets`
@@ -85,10 +63,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 @@ -97,15 +72,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`
@@ -116,18 +90,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 { @@ -136,12 +109,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PHRASE_SET_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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.
@@ -150,7 +120,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The phraseSetId. */ @java.lang.Override @@ -159,15 +128,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.
@@ -176,15 +144,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 { @@ -195,16 +164,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 @@ -212,44 +176,30 @@ 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() { - return phraseSet_ == null - ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() : phraseSet_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +211,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_); } @@ -287,7 +238,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -297,19 +249,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -336,135 +290,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +428,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 @@ -501,11 +449,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.CreatePhraseSetRequest result = new com.google.cloud.speech.v1.CreatePhraseSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -519,7 +464,9 @@ private void buildPartial0(com.google.cloud.speech.v1.CreatePhraseSetRequest res result.phraseSetId_ = phraseSetId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build(); + result.phraseSet_ = phraseSetBuilder_ == null + ? phraseSet_ + : phraseSetBuilder_.build(); } } @@ -527,39 +474,38 @@ private void buildPartial0(com.google.cloud.speech.v1.CreatePhraseSetRequest res 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; @@ -567,8 +513,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_; bitField0_ |= 0x00000001; @@ -608,31 +553,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - phraseSetId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + phraseSetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getPhraseSetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -642,13 +585,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -659,16 +599,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; @@ -677,8 +615,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -689,17 +625,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 { @@ -707,8 +642,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -719,25 +652,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -748,10 +675,7 @@ 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() { @@ -761,8 +685,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -773,17 +695,13 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -793,8 +711,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.
@@ -803,13 +719,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; @@ -818,8 +734,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.
@@ -828,14 +742,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 { @@ -843,8 +758,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.
@@ -853,22 +766,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhraseSetId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } phraseSetId_ = value; bitField0_ |= 0x00000002; 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.
@@ -877,7 +786,6 @@ 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() { @@ -887,8 +795,6 @@ public Builder clearPhraseSetId() { return this; } /** - * - * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -897,14 +803,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhraseSetIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); phraseSetId_ = value; bitField0_ |= 0x00000002; @@ -914,58 +818,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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) { @@ -981,17 +866,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(); } else { @@ -1002,21 +884,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 (((bitField0_ & 0x00000004) != 0) - && phraseSet_ != null - && phraseSet_ != com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + phraseSet_ != null && + phraseSet_ != com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -1029,15 +907,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1050,15 +924,11 @@ 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() { bitField0_ |= 0x00000004; @@ -1066,55 +936,43 @@ public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetBuilder() { 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); } @@ -1124,12 +982,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(); } @@ -1138,27 +996,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1173,4 +1031,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CreatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java similarity index 65% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java index f8fffaec1d9b..913da08c2410 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java index 44124e3d80a2..e8de5865b8f1 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java +++ b/owl-bot-staging/java-speech/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,122 +29,107 @@ 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;
   }
-
-  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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** - * - * *
      * The class item's value.
      * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -171,29 +138,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 { @@ -202,7 +169,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,7 +180,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_); } @@ -238,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.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,93 +233,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 @@ -362,41 +323,39 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -406,9 +365,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 @@ -427,11 +386,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.CustomClass.ClassItem result = new com.google.cloud.speech.v1.CustomClass.ClassItem(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -447,41 +403,38 @@ private void buildPartial0(com.google.cloud.speech.v1.CustomClass.ClassItem resu 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; @@ -489,8 +442,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_; bitField0_ |= 0x00000001; @@ -522,19 +474,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -544,25 +494,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -571,21 +518,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 { @@ -593,35 +539,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -631,28 +570,23 @@ public Builder clearValue() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -665,12 +599,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(); } @@ -679,28 +613,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -715,21 +648,18 @@ 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name of the custom class.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -738,29 +668,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 { @@ -769,19 +699,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -790,30 +716,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 { @@ -822,12 +748,9 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() { } public static final int ITEMS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List items_; /** - * - * *
    * A collection of class items.
    * 
@@ -839,8 +762,6 @@ public java.util.List getItems return items_; } /** - * - * *
    * A collection of class items.
    * 
@@ -848,13 +769,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.
    * 
@@ -866,8 +785,6 @@ public int getItemsCount() { return items_.size(); } /** - * - * *
    * A collection of class items.
    * 
@@ -879,8 +796,6 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem getItems(int index) { return items_.get(index); } /** - * - * *
    * A collection of class items.
    * 
@@ -888,12 +803,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; @@ -905,7 +820,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_); } @@ -931,7 +847,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -941,16 +858,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -975,104 +895,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
@@ -1081,32 +994,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1124,9 +1038,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
@@ -1145,12 +1059,9 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1181,39 +1092,38 @@ private void buildPartial0(com.google.cloud.speech.v1.CustomClass result) {
     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;
@@ -1250,10 +1160,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            itemsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getItemsFieldBuilder()
-                    : null;
+            itemsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getItemsFieldBuilder() : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -1285,39 +1194,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                customClassId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                com.google.cloud.speech.v1.CustomClass.ClassItem m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1.CustomClass.ClassItem.parser(),
-                        extensionRegistry);
-                if (itemsBuilder_ == null) {
-                  ensureItemsIsMutable();
-                  items_.add(m);
-                } else {
-                  itemsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              customClassId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              com.google.cloud.speech.v1.CustomClass.ClassItem m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.CustomClass.ClassItem.parser(),
+                      extensionRegistry);
+              if (itemsBuilder_ == null) {
+                ensureItemsIsMutable();
+                items_.add(m);
+              } else {
+                itemsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1327,25 +1232,22 @@ public Builder mergeFrom(
       } // finally
       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; @@ -1354,21 +1256,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 { @@ -1376,35 +1277,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1414,21 +1308,17 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1438,21 +1328,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; @@ -1461,22 +1349,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 { @@ -1484,37 +1371,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomClassId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } customClassId_ = value; bitField0_ |= 0x00000002; 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() { @@ -1524,22 +1404,18 @@ public Builder clearCustomClassId() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomClassIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customClassId_ = value; bitField0_ |= 0x00000002; @@ -1548,24 +1424,18 @@ public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { } private java.util.List items_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000004; - } + } } 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.
      * 
@@ -1580,8 +1450,6 @@ public java.util.List getItems } } /** - * - * *
      * A collection of class items.
      * 
@@ -1596,8 +1464,6 @@ public int getItemsCount() { } } /** - * - * *
      * A collection of class items.
      * 
@@ -1612,15 +1478,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(); @@ -1634,8 +1499,6 @@ public Builder setItems(int index, com.google.cloud.speech.v1.CustomClass.ClassI return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1654,8 +1517,6 @@ public Builder setItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1676,15 +1537,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(); @@ -1698,8 +1558,6 @@ public Builder addItems(int index, com.google.cloud.speech.v1.CustomClass.ClassI return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1718,8 +1576,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1738,8 +1594,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1750,7 +1604,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); @@ -1758,8 +1613,6 @@ public Builder addAllItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1777,8 +1630,6 @@ public Builder clearItems() { return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1796,44 +1647,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 { @@ -1841,8 +1687,6 @@ public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuild } } /** - * - * *
      * A collection of class items.
      * 
@@ -1850,55 +1694,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_ & 0x00000004) != 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_ & 0x00000004) != 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); } @@ -1908,12 +1746,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(); } @@ -1922,27 +1760,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1957,4 +1795,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java index a32a11ff4e57..d22bd6cc0b5e 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java similarity index 66% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java index 4cd036fca68a..d867ebd6f041 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java @@ -1,79 +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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -84,10 +62,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 @@ -96,15 +71,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}`
@@ -115,18 +89,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 { @@ -135,7 +108,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,7 +119,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_); } @@ -171,15 +144,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -199,135 +172,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -337,9 +304,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 @@ -358,11 +325,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.DeleteCustomClassRequest result = new com.google.cloud.speech.v1.DeleteCustomClassRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -378,39 +342,38 @@ private void buildPartial0(com.google.cloud.speech.v1.DeleteCustomClassRequest r 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; @@ -418,8 +381,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_; bitField0_ |= 0x00000001; @@ -451,19 +413,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -473,13 +433,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -490,16 +447,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; @@ -508,8 +463,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -520,17 +473,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 { @@ -538,8 +490,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -550,25 +500,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -579,10 +523,7 @@ 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() { @@ -592,8 +533,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -604,26 +543,22 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -633,12 +568,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(); } @@ -647,27 +582,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -682,4 +617,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.DeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java similarity index 59% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java index 9fdb35391b70..a534c8411380 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java similarity index 62% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java index 4d25db7465c7..f39cb0f17a14 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java @@ -1,88 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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; } - - 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; - @SuppressWarnings("serial") 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 @@ -91,32 +66,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 { @@ -125,7 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +109,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_); } @@ -161,15 +134,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,135 +162,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -327,9 +294,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 @@ -348,11 +315,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.DeletePhraseSetRequest result = new com.google.cloud.speech.v1.DeletePhraseSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -368,39 +332,38 @@ private void buildPartial0(com.google.cloud.speech.v1.DeletePhraseSetRequest res 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; @@ -408,8 +371,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_; bitField0_ |= 0x00000001; @@ -441,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -463,28 +423,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -493,24 +448,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 { @@ -518,41 +470,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -562,33 +503,27 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -598,12 +533,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(); } @@ -612,27 +547,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +582,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.DeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java new file mode 100644 index 000000000000..6e63a397ad6a --- /dev/null +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java similarity index 62% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java index 2febfb796ae4..fea2579924f3 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java @@ -1,88 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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; } - - 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; - @SuppressWarnings("serial") 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 @@ -91,32 +66,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 { @@ -125,7 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +109,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_); } @@ -161,15 +134,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -188,136 +161,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -327,9 +294,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 @@ -348,11 +315,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.GetCustomClassRequest result = new com.google.cloud.speech.v1.GetCustomClassRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -368,39 +332,38 @@ private void buildPartial0(com.google.cloud.speech.v1.GetCustomClassRequest resu 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; @@ -408,8 +371,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_; bitField0_ |= 0x00000001; @@ -441,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -463,28 +423,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -493,24 +448,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 { @@ -518,41 +470,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -562,33 +503,27 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -598,12 +533,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(); } @@ -612,27 +547,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +582,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.GetCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java new file mode 100644 index 000000000000..61476aadbf58 --- /dev/null +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java similarity index 66% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java index 33160c7f7863..b76f8f8c6820 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java @@ -1,79 +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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -84,10 +62,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 @@ -96,15 +71,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}`
@@ -115,18 +89,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 { @@ -135,7 +108,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,7 +119,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_); } @@ -171,15 +144,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -198,136 +171,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -337,9 +304,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 @@ -358,11 +325,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.GetPhraseSetRequest result = new com.google.cloud.speech.v1.GetPhraseSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -378,39 +342,38 @@ private void buildPartial0(com.google.cloud.speech.v1.GetPhraseSetRequest result 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; @@ -450,19 +413,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -472,13 +433,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -489,16 +447,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; @@ -507,8 +463,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -519,17 +473,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 { @@ -537,8 +490,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -549,25 +500,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -578,10 +523,7 @@ 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() { @@ -591,8 +533,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -603,26 +543,22 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -632,12 +568,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(); } @@ -646,27 +582,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -681,4 +617,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.GetPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java similarity index 59% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java index 84f560a798b3..a7aa5beacb2e 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java index f880b405cd2a..b135c1117a81 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -85,10 +63,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 @@ -97,15 +72,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`
@@ -116,18 +90,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 { @@ -138,8 +111,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * 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
@@ -148,7 +119,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -157,12 +127,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -171,7 +138,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -180,15 +146,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.
@@ -197,15 +162,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 { @@ -214,7 +180,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,7 +191,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_); } @@ -249,7 +215,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_); @@ -262,17 +229,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -296,135 +265,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -436,9 +399,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 @@ -457,11 +420,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.ListCustomClassesRequest result = new com.google.cloud.speech.v1.ListCustomClassesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -483,39 +443,38 @@ private void buildPartial0(com.google.cloud.speech.v1.ListCustomClassesRequest r 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; @@ -523,8 +482,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_; bitField0_ |= 0x00000001; @@ -564,31 +522,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -598,13 +552,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -615,16 +566,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; @@ -633,8 +582,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -645,17 +592,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 { @@ -663,8 +609,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -675,25 +619,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -704,10 +642,7 @@ 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() { @@ -717,8 +652,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -729,17 +662,13 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -747,10 +676,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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
@@ -759,7 +686,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -767,8 +693,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
@@ -777,20 +701,17 @@ 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; bitField0_ |= 0x00000002; 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
@@ -799,7 +720,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -811,8 +731,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.
@@ -821,13 +739,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; @@ -836,8 +754,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -846,14 +762,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 { @@ -861,8 +778,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -871,22 +786,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -895,7 +806,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -905,8 +815,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -915,23 +823,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -941,12 +847,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(); } @@ -955,27 +861,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -990,4 +896,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.ListCustomClassesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java index 8644a10667d2..5e2d443bfaad 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java index a12356f80bc4..1d187f70614c 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private java.util.List customClasses_; /** - * - * *
    * The custom classes.
    * 
@@ -86,8 +64,6 @@ public java.util.List getCustomClassesLi return customClasses_; } /** - * - * *
    * The custom classes.
    * 
@@ -95,13 +71,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.
    * 
@@ -113,8 +87,6 @@ public int getCustomClassesCount() { return customClasses_.size(); } /** - * - * *
    * The custom classes.
    * 
@@ -126,8 +98,6 @@ public com.google.cloud.speech.v1.CustomClass getCustomClasses(int index) { return customClasses_.get(index); } /** - * - * *
    * The custom classes.
    * 
@@ -135,24 +105,21 @@ 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; - @SuppressWarnings("serial") 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 @@ -161,30 +128,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 { @@ -193,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +171,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)); } @@ -222,7 +189,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_); @@ -235,16 +203,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,135 +237,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -413,9 +376,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 @@ -434,18 +397,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1.ListCustomClassesResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1.ListCustomClassesResponse result) { if (customClassesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { customClasses_ = java.util.Collections.unmodifiableList(customClasses_); @@ -468,39 +427,38 @@ private void buildPartial0(com.google.cloud.speech.v1.ListCustomClassesResponse 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; @@ -508,8 +466,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()) { @@ -528,10 +485,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_); } @@ -568,32 +524,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1.CustomClass m = - input.readMessage( - com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry); - if (customClassesBuilder_ == null) { - ensureCustomClassesIsMutable(); - customClasses_.add(m); - } else { - customClassesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.speech.v1.CustomClass m = + input.readMessage( + com.google.cloud.speech.v1.CustomClass.parser(), + extensionRegistry); + if (customClassesBuilder_ == null) { + ensureCustomClassesIsMutable(); + customClasses_.add(m); + } else { + customClassesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -603,29 +557,21 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -640,8 +586,6 @@ public java.util.List getCustomClassesLi } } /** - * - * *
      * The custom classes.
      * 
@@ -656,8 +600,6 @@ public int getCustomClassesCount() { } } /** - * - * *
      * The custom classes.
      * 
@@ -672,15 +614,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(); @@ -694,8 +635,6 @@ public Builder setCustomClasses(int index, com.google.cloud.speech.v1.CustomClas return this; } /** - * - * *
      * The custom classes.
      * 
@@ -714,8 +653,6 @@ public Builder setCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -736,15 +673,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(); @@ -758,8 +694,6 @@ public Builder addCustomClasses(int index, com.google.cloud.speech.v1.CustomClas return this; } /** - * - * *
      * The custom classes.
      * 
@@ -778,8 +712,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -798,8 +730,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -810,7 +740,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); @@ -818,8 +749,6 @@ public Builder addAllCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -837,8 +766,6 @@ public Builder clearCustomClasses() { return this; } /** - * - * *
      * The custom classes.
      * 
@@ -856,44 +783,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 { @@ -901,8 +823,6 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder } } /** - * - * *
      * The custom classes.
      * 
@@ -910,47 +830,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(), @@ -962,21 +873,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; @@ -985,22 +894,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 { @@ -1008,37 +916,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1048,31 +949,27 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1082,12 +979,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(); } @@ -1096,27 +993,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1131,4 +1028,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.ListCustomClassesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java index 187213b4a1cc..59b5c44f8cf4 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java index 279e1256747e..40f7a9b35b96 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -85,10 +63,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 @@ -97,15 +72,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}`
@@ -116,18 +90,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 { @@ -138,8 +111,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * 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
@@ -148,7 +119,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -157,12 +127,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -171,7 +138,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -180,15 +146,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.
@@ -197,15 +162,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 { @@ -214,7 +180,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,7 +191,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_); } @@ -249,7 +215,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_); @@ -262,17 +229,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -295,136 +264,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -436,9 +399,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 @@ -457,11 +420,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.ListPhraseSetRequest result = new com.google.cloud.speech.v1.ListPhraseSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -483,39 +443,38 @@ private void buildPartial0(com.google.cloud.speech.v1.ListPhraseSetRequest resul 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; @@ -523,8 +482,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_; bitField0_ |= 0x00000001; @@ -564,31 +522,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -598,13 +552,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -615,16 +566,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; @@ -633,8 +582,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -645,17 +592,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 { @@ -663,8 +609,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -675,25 +619,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -704,10 +642,7 @@ 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() { @@ -717,8 +652,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -729,17 +662,13 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -747,10 +676,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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
@@ -759,7 +686,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -767,8 +693,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
@@ -777,20 +701,17 @@ 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; bitField0_ |= 0x00000002; 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
@@ -799,7 +720,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -811,8 +731,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.
@@ -821,13 +739,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; @@ -836,8 +754,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -846,14 +762,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 { @@ -861,8 +778,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -871,22 +786,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -895,7 +806,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -905,8 +815,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -915,23 +823,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -941,12 +847,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(); } @@ -955,27 +861,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -990,4 +896,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.ListPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java index 21e2b44cf07c..0077943458ba 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java index ce02bef96807..86740efe5c81 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private java.util.List phraseSets_; /** - * - * *
    * The phrase set.
    * 
@@ -86,8 +64,6 @@ public java.util.List getPhraseSetsList() return phraseSets_; } /** - * - * *
    * The phrase set.
    * 
@@ -95,13 +71,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.
    * 
@@ -113,8 +87,6 @@ public int getPhraseSetsCount() { return phraseSets_.size(); } /** - * - * *
    * The phrase set.
    * 
@@ -126,8 +98,6 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** - * - * *
    * The phrase set.
    * 
@@ -135,24 +105,21 @@ 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; - @SuppressWarnings("serial") 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 @@ -161,30 +128,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 { @@ -193,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +171,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)); } @@ -222,7 +189,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_); @@ -235,16 +203,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -267,136 +236,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -413,9 +376,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 @@ -434,18 +397,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1.ListPhraseSetResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1.ListPhraseSetResponse result) { if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -468,39 +427,38 @@ private void buildPartial0(com.google.cloud.speech.v1.ListPhraseSetResponse resu 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; @@ -508,8 +466,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()) { @@ -528,10 +485,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_); } @@ -568,32 +524,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1.PhraseSet m = - input.readMessage( - com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry); - if (phraseSetsBuilder_ == null) { - ensurePhraseSetsIsMutable(); - phraseSets_.add(m); - } else { - phraseSetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.speech.v1.PhraseSet m = + input.readMessage( + com.google.cloud.speech.v1.PhraseSet.parser(), + extensionRegistry); + if (phraseSetsBuilder_ == null) { + ensurePhraseSetsIsMutable(); + phraseSets_.add(m); + } else { + phraseSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -603,28 +557,21 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -639,8 +586,6 @@ public java.util.List getPhraseSetsList() } } /** - * - * *
      * The phrase set.
      * 
@@ -655,8 +600,6 @@ public int getPhraseSetsCount() { } } /** - * - * *
      * The phrase set.
      * 
@@ -671,15 +614,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(); @@ -693,8 +635,6 @@ public Builder setPhraseSets(int index, com.google.cloud.speech.v1.PhraseSet val return this; } /** - * - * *
      * The phrase set.
      * 
@@ -713,8 +653,6 @@ public Builder setPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -735,15 +673,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(); @@ -757,15 +694,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()); @@ -776,8 +712,6 @@ public Builder addPhraseSets(com.google.cloud.speech.v1.PhraseSet.Builder builde return this; } /** - * - * *
      * The phrase set.
      * 
@@ -796,8 +730,6 @@ public Builder addPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -808,7 +740,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); @@ -816,8 +749,6 @@ public Builder addAllPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -835,8 +766,6 @@ public Builder clearPhraseSets() { return this; } /** - * - * *
      * The phrase set.
      * 
@@ -854,44 +783,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 { @@ -899,8 +823,6 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int } } /** - * - * *
      * The phrase set.
      * 
@@ -908,47 +830,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_; @@ -956,21 +873,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; @@ -979,22 +894,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 { @@ -1002,37 +916,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1042,31 +949,27 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1076,12 +979,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(); } @@ -1090,27 +993,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1125,4 +1028,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.ListPhraseSetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java similarity index 66% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java index 4b06b62509dc..8f78e4160d41 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java index 0ac185cf74f7..e88617c106db 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java +++ b/owl-bot-staging/java-speech/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,58 +12,53 @@
  *
  * 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;
   }
-
-  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_ = 0;
   /**
-   *
-   *
    * 
    * 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 @@ -91,14 +69,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 @@ -106,14 +81,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 @@ -121,8 +93,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Time when the request was received.
    * 
@@ -137,14 +107,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 @@ -152,25 +119,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.
    * 
@@ -179,25 +139,19 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - return lastUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastUpdateTime_; + return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } public static final int URI_FIELD_NUMBER = 4; - @SuppressWarnings("serial") 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 @@ -206,30 +160,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 { @@ -238,7 +192,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,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 (progressPercent_ != 0) { output.writeInt32(1, progressPercent_); } @@ -273,13 +227,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_); @@ -292,24 +249,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,104 +299,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
@@ -445,32 +397,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -491,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_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
@@ -512,11 +465,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v1.LongRunningRecognizeMetadata result = new com.google.cloud.speech.v1.LongRunningRecognizeMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -527,11 +477,14 @@ private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeMetada
         result.progressPercent_ = progressPercent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null
+            ? startTime_
+            : startTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.lastUpdateTime_ =
-            lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build();
+        result.lastUpdateTime_ = lastUpdateTimeBuilder_ == null
+            ? lastUpdateTime_
+            : lastUpdateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.uri_ = uri_;
@@ -542,39 +495,38 @@ private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeMetada
     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;
@@ -582,8 +534,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());
       }
@@ -624,37 +575,36 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                progressPercent_ = input.readInt32();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                uri_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              progressPercent_ = input.readInt32();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              input.readMessage(
+                  getStartTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getLastUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              uri_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -664,20 +614,16 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    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 @@ -685,35 +631,29 @@ 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; bitField0_ |= 0x00000001; 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() { @@ -725,33 +665,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -762,8 +693,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Time when the request was received.
      * 
@@ -784,15 +713,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(); } else { @@ -803,8 +731,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -813,9 +739,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -828,8 +754,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -847,8 +771,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -861,8 +783,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the request was received.
      * 
@@ -873,12 +793,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.
      * 
@@ -886,17 +805,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_; @@ -904,47 +820,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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.
      * 
@@ -965,15 +868,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(); } else { @@ -984,8 +886,6 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -994,9 +894,9 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && lastUpdateTime_ != null - && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + lastUpdateTime_ != null && + lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; @@ -1009,8 +909,6 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1028,8 +926,6 @@ public Builder clearLastUpdateTime() { return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1042,8 +938,6 @@ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { return getLastUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1054,14 +948,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.
      * 
@@ -1069,17 +960,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_; @@ -1087,21 +975,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; @@ -1110,22 +996,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 { @@ -1133,37 +1018,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000008; 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() { @@ -1173,31 +1051,27 @@ public Builder clearUri() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000008; 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); } @@ -1207,12 +1081,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(); } @@ -1221,27 +1095,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; 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.LongRunningRecognizeMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java similarity index 74% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java index 2b8a33c7f5ef..ccedbf890615 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java similarity index 58% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java index 71531d95df77..848c9c5dcfb1 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java +++ b/owl-bot-staging/java-speech/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,58 +11,52 @@
  *
  * 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;
   }
-
-  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 @@ -87,57 +64,39 @@ 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() { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } 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 @@ -145,55 +104,37 @@ 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() { - return audio_ == null - ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; } 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 @@ -201,44 +142,30 @@ 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() { - return outputConfig_ == null - ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,7 +177,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()); } @@ -270,13 +198,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -286,25 +217,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -335,104 +268,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.
@@ -440,32 +365,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -489,9 +415,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
@@ -510,11 +436,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v1.LongRunningRecognizeRequest result = new com.google.cloud.speech.v1.LongRunningRecognizeRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -522,14 +445,19 @@ public com.google.cloud.speech.v1.LongRunningRecognizeRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
+        result.config_ = configBuilder_ == null
+            ? config_
+            : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.audio_ = audioBuilder_ == null ? audio_ : audioBuilder_.build();
+        result.audio_ = audioBuilder_ == null
+            ? audio_
+            : audioBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.outputConfig_ =
-            outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
+        result.outputConfig_ = outputConfigBuilder_ == null
+            ? outputConfig_
+            : outputConfigBuilder_.build();
       }
     }
 
@@ -537,39 +465,38 @@ private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeReques
     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;
@@ -577,8 +504,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());
       }
@@ -614,31 +540,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getAudioFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 34:
-              {
-                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getAudioFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 34: {
+              input.readMessage(
+                  getOutputConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -648,66 +576,46 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * 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) { @@ -723,18 +631,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(); } else { @@ -745,22 +650,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 (((bitField0_ & 0x00000001) != 0) - && config_ != null - && config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + config_ != null && + config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -773,16 +674,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -795,16 +692,12 @@ 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() { bitField0_ |= 0x00000001; @@ -812,50 +705,38 @@ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { 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_; @@ -863,58 +744,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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) { @@ -930,17 +792,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(); } else { @@ -951,21 +810,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 (((bitField0_ & 0x00000002) != 0) - && audio_ != null - && audio_ != com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + audio_ != null && + audio_ != com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) { getAudioBuilder().mergeFrom(value); } else { audio_ = value; @@ -978,15 +833,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -999,15 +850,11 @@ 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() { bitField0_ |= 0x00000002; @@ -1015,48 +862,36 @@ public com.google.cloud.speech.v1.RecognitionAudio.Builder getAudioBuilder() { 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_; @@ -1064,58 +899,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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) { @@ -1131,15 +947,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) { @@ -1153,22 +965,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 (((bitField0_ & 0x00000004) != 0) - && outputConfig_ != null - && outputConfig_ - != com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + outputConfig_ != null && + outputConfig_ != com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -1181,15 +988,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1202,15 +1005,11 @@ 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() { bitField0_ |= 0x00000004; @@ -1218,55 +1017,43 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig.Builder getOutputConfig 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); } @@ -1276,12 +1063,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(); } @@ -1290,27 +1077,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1325,4 +1112,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v1.LongRunningRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java similarity index 51% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java index 3a4e90c85d6f..fe890f69a390 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java similarity index 73% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java index e9effc5e23ac..dfe8f2186768 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java +++ b/owl-bot-staging/java-speech/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,53 +14,48 @@
  *
  * 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -90,8 +68,6 @@ public java.util.List getRes
     return results_;
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -100,13 +76,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.
@@ -119,8 +93,6 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -133,8 +105,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.
@@ -151,14 +121,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 @@ -166,25 +133,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.
    * 
@@ -193,22 +153,17 @@ public com.google.protobuf.Duration getTotalBilledTime() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } 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 @@ -216,25 +171,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.
    * 
@@ -243,22 +191,17 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig() { */ @java.lang.Override public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { - return outputConfig_ == null - ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } 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 @@ -266,14 +209,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 @@ -281,8 +221,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.
    * 
@@ -297,14 +235,11 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 8; private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_; /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -312,25 +247,18 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
@@ -338,25 +266,19 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; */ @java.lang.Override - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 9; private long requestId_ = 0L; /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 9; - * * @return The requestId. */ @java.lang.Override @@ -365,7 +287,6 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -377,7 +298,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)); } @@ -406,23 +328,28 @@ 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()); } if (speechAdaptationInfo_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSpeechAdaptationInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, requestId_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -432,32 +359,37 @@ 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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo() + .equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() != other.getRequestId()) return false; + if (getRequestId() + != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -490,111 +422,104 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } 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`
@@ -605,32 +530,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -667,9 +593,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
@@ -688,18 +614,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v1.LongRunningRecognizeResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v1.LongRunningRecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -714,22 +636,24 @@ private void buildPartialRepeatedFields(
     private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.totalBilledTime_ =
-            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
+            ? totalBilledTime_
+            : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.outputConfig_ =
-            outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
+        result.outputConfig_ = outputConfigBuilder_ == null
+            ? outputConfig_
+            : outputConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.outputError_ =
-            outputErrorBuilder_ == null ? outputError_ : outputErrorBuilder_.build();
+        result.outputError_ = outputErrorBuilder_ == null
+            ? outputError_
+            : outputErrorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.speechAdaptationInfo_ =
-            speechAdaptationInfoBuilder_ == null
-                ? speechAdaptationInfo_
-                : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
+            ? speechAdaptationInfo_
+            : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.requestId_ = requestId_;
@@ -740,39 +664,38 @@ private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeRespon
     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;
@@ -780,8 +703,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()) {
@@ -800,10 +722,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_);
           }
@@ -850,58 +771,58 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18:
-              {
-                com.google.cloud.speech.v1.SpeechRecognitionResult m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
-                        extensionRegistry);
-                if (resultsBuilder_ == null) {
-                  ensureResultsIsMutable();
-                  results_.add(m);
-                } else {
-                  resultsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-            case 50:
-              {
-                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getOutputErrorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(
-                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 66
-            case 72:
-              {
-                requestId_ = input.readInt64();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 72
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 18: {
+              com.google.cloud.speech.v1.SpeechRecognitionResult m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
+                      extensionRegistry);
+              if (resultsBuilder_ == null) {
+                ensureResultsIsMutable();
+                results_.add(m);
+              } else {
+                resultsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getTotalBilledTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 26
+            case 50: {
+              input.readMessage(
+                  getOutputConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getOutputErrorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 66
+            case 72: {
+              requestId_ = input.readInt64();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 72
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -911,29 +832,21 @@ public Builder mergeFrom(
       } // finally
       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.
@@ -949,8 +862,6 @@ public java.util.List getRes
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -966,8 +877,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -983,8 +892,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -992,7 +899,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();
@@ -1006,8 +914,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.
@@ -1027,8 +933,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1050,8 +954,6 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1059,7 +961,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();
@@ -1073,8 +976,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.
@@ -1094,8 +995,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1115,8 +1014,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1128,7 +1025,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);
@@ -1136,8 +1034,6 @@ public Builder addAllResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1156,8 +1052,6 @@ public Builder clearResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1176,8 +1070,6 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1185,12 +1077,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.
@@ -1201,14 +1092,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.
@@ -1216,8 +1104,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 {
@@ -1225,8 +1113,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1235,12 +1121,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.
@@ -1248,14 +1132,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.
@@ -1263,23 +1145,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_;
@@ -1287,47 +1166,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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.
      * 
@@ -1348,15 +1214,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(); } else { @@ -1367,8 +1232,6 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1377,9 +1240,9 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo */ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && totalBilledTime_ != null - && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + totalBilledTime_ != null && + totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getTotalBilledTimeBuilder().mergeFrom(value); } else { totalBilledTime_ = value; @@ -1392,8 +1255,6 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1411,8 +1272,6 @@ public Builder clearTotalBilledTime() { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1425,8 +1284,6 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { return getTotalBilledTimeFieldBuilder().getBuilder(); } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1437,14 +1294,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.
      * 
@@ -1452,17 +1306,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_; @@ -1470,47 +1321,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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.
      * 
@@ -1531,8 +1369,6 @@ public Builder setOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1551,8 +1387,6 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1561,10 +1395,9 @@ public Builder setOutputConfig( */ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && outputConfig_ != null - && outputConfig_ - != com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + outputConfig_ != null && + outputConfig_ != com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -1577,8 +1410,6 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConf return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1596,8 +1427,6 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1610,8 +1439,6 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig.Builder getOutputConfig return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1622,14 +1449,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.
      * 
@@ -1637,17 +1461,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_; @@ -1655,31 +1476,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 ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * 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() { @@ -1690,8 +1504,6 @@ public com.google.rpc.Status getOutputError() { } } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1712,15 +1524,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(); } else { @@ -1731,8 +1542,6 @@ public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1741,9 +1550,9 @@ public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeOutputError(com.google.rpc.Status value) { if (outputErrorBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && outputError_ != null - && outputError_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + outputError_ != null && + outputError_ != com.google.rpc.Status.getDefaultInstance()) { getOutputErrorBuilder().mergeFrom(value); } else { outputError_ = value; @@ -1756,8 +1565,6 @@ public Builder mergeOutputError(com.google.rpc.Status value) { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1775,8 +1582,6 @@ public Builder clearOutputError() { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1789,8 +1594,6 @@ public com.google.rpc.Status.Builder getOutputErrorBuilder() { return getOutputErrorFieldBuilder().getBuilder(); } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1801,12 +1604,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.
      * 
@@ -1814,15 +1616,14 @@ 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_; @@ -1830,47 +1631,34 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, - com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> - speechAdaptationInfoBuilder_; + com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_; /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1891,8 +1679,6 @@ public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptati return this; } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1911,21 +1697,17 @@ public Builder setSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public Builder mergeSpeechAdaptationInfo( - com.google.cloud.speech.v1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && speechAdaptationInfo_ != null - && speechAdaptationInfo_ - != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + speechAdaptationInfo_ != null && + speechAdaptationInfo_ != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -1938,8 +1720,6 @@ public Builder mergeSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1957,42 +1737,33 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder - getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? + com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -2000,33 +1771,27 @@ public Builder clearSpeechAdaptationInfo() { * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, - com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, - com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), getParentForChildren(), isClean()); + speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), + getParentForChildren(), + isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_; + private long requestId_ ; /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; - * * @return The requestId. */ @java.lang.Override @@ -2034,35 +1799,29 @@ public long getRequestId() { return requestId_; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; - * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -2071,9 +1830,9 @@ public Builder clearRequestId() { 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); } @@ -2083,12 +1842,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(); } @@ -2097,27 +1856,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2132,4 +1891,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.speech.v1.LongRunningRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java similarity index 84% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java index 38e77a1cc96c..1faf564a96a8 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/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.
    * 
@@ -186,32 +138,24 @@ public interface LongRunningRecognizeResponseOrBuilder com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder(); /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
@@ -221,15 +165,12 @@ public interface LongRunningRecognizeResponseOrBuilder com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 9; - * * @return The requestId. */ long getRequestId(); diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java similarity index 75% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java index 6587e7bb6196..97cb160ce457 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java +++ b/owl-bot-staging/java-speech/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,63 +27,54 @@ 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;
   }
-
-  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
@@ -115,14 +88,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
@@ -151,59 +121,53 @@ 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;
     }
-
-    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;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object value_ = "";
     /**
-     *
-     *
      * 
      * The phrase itself.
      * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -212,29 +176,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 { @@ -245,8 +209,6 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_ = 0F; /** - * - * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -260,7 +222,6 @@ public com.google.protobuf.ByteString getValueBytes() {
      * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -269,7 +230,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -281,7 +241,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_); } @@ -301,7 +262,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -311,17 +273,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -336,100 +299,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) + getUnknownFields().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 @@ -439,8 +397,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
@@ -469,33 +425,33 @@ 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()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -506,9 +462,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
@@ -527,11 +483,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);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.speech.v1.PhraseSet.Phrase result = new com.google.cloud.speech.v1.PhraseSet.Phrase(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -550,41 +503,38 @@ private void buildPartial0(com.google.cloud.speech.v1.PhraseSet.Phrase result) {
       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;
@@ -627,25 +577,22 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  value_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 21:
-                {
-                  boost_ = input.readFloat();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 21
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                value_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 21: {
+                boost_ = input.readFloat();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 21
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -655,25 +602,22 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       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; @@ -682,21 +626,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 { @@ -704,35 +647,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The phrase itself.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -742,21 +678,17 @@ public Builder clearValue() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; @@ -764,10 +696,8 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { 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
@@ -781,7 +711,6 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) {
        * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -789,8 +718,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
@@ -804,20 +731,17 @@ public float getBoost() {
        * 
* * float boost = 2; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000002; 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
@@ -831,7 +755,6 @@ public Builder setBoost(float value) {
        * 
* * float boost = 2; - * * @return This builder for chaining. */ public Builder clearBoost() { @@ -840,7 +763,6 @@ public Builder clearBoost() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -853,12 +775,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(); } @@ -867,28 +789,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -903,21 +824,18 @@ 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name of the phrase set.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -926,29 +844,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 { @@ -957,12 +875,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int PHRASES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List phrases_; /** - * - * *
    * A list of word and phrases.
    * 
@@ -974,8 +889,6 @@ public java.util.List getPhrasesLis return phrases_; } /** - * - * *
    * A list of word and phrases.
    * 
@@ -983,13 +896,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.
    * 
@@ -1001,8 +912,6 @@ public int getPhrasesCount() { return phrases_.size(); } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1014,8 +923,6 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase getPhrases(int index) { return phrases_.get(index); } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1023,15 +930,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_ = 0F; /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -1045,7 +951,6 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -1054,7 +959,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1066,7 +970,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_); } @@ -1089,10 +994,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1102,17 +1009,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1131,109 +1041,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) + getUnknownFields().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.
@@ -1241,32 +1146,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1284,9 +1190,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
@@ -1307,9 +1213,7 @@ public com.google.cloud.speech.v1.PhraseSet build() {
     public com.google.cloud.speech.v1.PhraseSet buildPartial() {
       com.google.cloud.speech.v1.PhraseSet result = new com.google.cloud.speech.v1.PhraseSet(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1340,39 +1244,38 @@ private void buildPartial0(com.google.cloud.speech.v1.PhraseSet result) {
     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;
@@ -1404,10 +1307,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            phrasesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPhrasesFieldBuilder()
-                    : null;
+            phrasesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPhrasesFieldBuilder() : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -1442,38 +1344,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.cloud.speech.v1.PhraseSet.Phrase m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1.PhraseSet.Phrase.parser(), extensionRegistry);
-                if (phrasesBuilder_ == null) {
-                  ensurePhrasesIsMutable();
-                  phrases_.add(m);
-                } else {
-                  phrasesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 37:
-              {
-                boost_ = input.readFloat();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 37
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              com.google.cloud.speech.v1.PhraseSet.Phrase m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.PhraseSet.Phrase.parser(),
+                      extensionRegistry);
+              if (phrasesBuilder_ == null) {
+                ensurePhrasesIsMutable();
+                phrases_.add(m);
+              } else {
+                phrasesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 37: {
+              boost_ = input.readFloat();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 37
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1483,25 +1382,22 @@ public Builder mergeFrom(
       } // finally
       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; @@ -1510,21 +1406,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 { @@ -1532,35 +1427,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1570,21 +1458,17 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1593,24 +1477,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private java.util.List phrases_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { phrases_ = new java.util.ArrayList(phrases_); bitField0_ |= 0x00000002; - } + } } 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.
      * 
@@ -1625,8 +1503,6 @@ public java.util.List getPhrasesLis } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1641,8 +1517,6 @@ public int getPhrasesCount() { } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1657,15 +1531,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(); @@ -1679,8 +1552,6 @@ public Builder setPhrases(int index, com.google.cloud.speech.v1.PhraseSet.Phrase return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1699,8 +1570,6 @@ public Builder setPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1721,15 +1590,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(); @@ -1743,15 +1611,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()); @@ -1762,8 +1629,6 @@ public Builder addPhrases(com.google.cloud.speech.v1.PhraseSet.Phrase.Builder bu return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1782,8 +1647,6 @@ public Builder addPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1794,7 +1657,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); @@ -1802,8 +1666,6 @@ public Builder addAllPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1821,8 +1683,6 @@ public Builder clearPhrases() { return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1840,44 +1700,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 { @@ -1885,8 +1740,6 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1894,57 +1747,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_ & 0x00000002) != 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_ & 0x00000002) != 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
@@ -1958,7 +1803,6 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder(int
      * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -1966,8 +1810,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
@@ -1981,20 +1823,17 @@ public float getBoost() {
      * 
* * float boost = 4; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000004; 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
@@ -2008,7 +1847,6 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; - * * @return This builder for chaining. */ public Builder clearBoost() { @@ -2017,9 +1855,9 @@ public Builder clearBoost() { 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); } @@ -2029,12 +1867,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(); } @@ -2043,27 +1881,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2078,4 +1916,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java index 39857ed50248..c57c3c5d692d 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java similarity index 73% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java index 359a12656d5b..2f024eabd65d 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java +++ b/owl-bot-staging/java-speech/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,56 +13,52 @@
  *
  * 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;
   }
-
-  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;
     }
@@ -95,30 +74,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
@@ -126,7 +100,6 @@ public AudioSourceCase getAudioSourceCase() {
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ @java.lang.Override @@ -134,8 +107,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
@@ -143,7 +114,6 @@ public boolean hasContent() {
    * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -156,8 +126,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).
@@ -169,15 +137,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).
@@ -189,7 +154,6 @@ public boolean hasUri() {
    * 
* * string uri = 2; - * * @return The uri. */ public java.lang.String getUri() { @@ -200,7 +164,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; @@ -209,8 +174,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).
@@ -222,17 +185,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; } @@ -243,7 +207,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,9 +218,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_); @@ -272,9 +237,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_); @@ -287,21 +252,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: @@ -334,104 +300,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
@@ -441,32 +400,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -477,9 +437,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
@@ -498,11 +458,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v1.RecognitionAudio result = new com.google.cloud.speech.v1.RecognitionAudio(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -521,39 +478,38 @@ private void buildPartialOneofs(com.google.cloud.speech.v1.RecognitionAudio resu
     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;
@@ -563,22 +519,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.getUnknownFields());
       onChanged();
@@ -606,26 +559,23 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                audioSource_ = input.readBytes();
-                audioSourceCase_ = 1;
-                break;
-              } // case 10
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                audioSourceCase_ = 2;
-                audioSource_ = s;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              audioSource_ = input.readBytes();
+              audioSourceCase_ = 1;
+              break;
+            } // case 10
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              audioSourceCase_ = 2;
+              audioSource_ = s;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -635,12 +585,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -653,8 +603,6 @@ public Builder clearAudioSource() {
     private int bitField0_;
 
     /**
-     *
-     *
      * 
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -662,15 +610,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
@@ -678,7 +623,6 @@ public boolean hasContent() {
      * 
* * bytes content = 1; - * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -688,8 +632,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
@@ -697,22 +639,17 @@ 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(); - } + if (value == null) { 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
@@ -720,7 +657,6 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -733,8 +669,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).
@@ -746,7 +680,6 @@ public Builder clearContent() {
      * 
* * string uri = 2; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -754,8 +687,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).
@@ -767,7 +698,6 @@ public boolean hasUri() {
      * 
* * string uri = 2; - * * @return The uri. */ @java.lang.Override @@ -777,7 +707,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; @@ -788,8 +719,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).
@@ -801,18 +730,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; } @@ -822,8 +752,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).
@@ -835,22 +763,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { 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).
@@ -862,7 +786,6 @@ public Builder setUri(java.lang.String value) {
      * 
* * string uri = 2; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -874,8 +797,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).
@@ -887,23 +808,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { 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); } @@ -913,12 +832,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(); } @@ -927,27 +846,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -962,4 +881,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionAudio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java similarity index 79% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java index b8330aa93016..4347fb6f5a58 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java similarity index 83% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java index 8bf3511d1e87..edeacb7e360d 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java +++ b/owl-bot-staging/java-speech/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,33 +30,30 @@ 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;
   }
-
-  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
@@ -100,10 +79,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.
      * 
@@ -112,8 +90,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ ENCODING_UNSPECIFIED(0), /** - * - * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -122,8 +98,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ LINEAR16(1), /** - * - * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -137,8 +111,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.
      * 
@@ -147,8 +119,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ MULAW(3), /** - * - * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -157,8 +127,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ AMR(4), /** - * - * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -167,8 +135,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)).
@@ -179,8 +145,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
@@ -201,8 +165,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
@@ -216,8 +178,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -226,8 +186,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).
      * 
@@ -236,8 +194,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
@@ -251,8 +207,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.
      * 
@@ -261,8 +215,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.
      * 
@@ -271,8 +223,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.
      * 
@@ -281,8 +231,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)).
@@ -293,8 +241,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
@@ -315,8 +261,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
@@ -327,6 +271,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(
@@ -351,61 +296,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;
@@ -425,8 +364,6 @@ private AudioEncoding(int value) {
   public static final int ENCODING_FIELD_NUMBER = 1;
   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
@@ -434,16 +371,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
@@ -451,23 +384,16 @@ 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() { - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.forNumber(encoding_); - return result == null - ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding() { + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.forNumber(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_ = 0; /** - * - * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -479,7 +405,6 @@ public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding()
    * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -490,8 +415,6 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 7; private int audioChannelCount_ = 0; /** - * - * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -504,7 +427,6 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 7; - * * @return The audioChannelCount. */ @java.lang.Override @@ -515,8 +437,6 @@ public int getAudioChannelCount() { public static final int ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER = 12; private boolean enableSeparateRecognitionPerChannel_ = false; /** - * - * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -527,7 +447,6 @@ public int getAudioChannelCount() {
    * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -536,12 +455,9 @@ public boolean getEnableSeparateRecognitionPerChannel() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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.
@@ -552,7 +468,6 @@ public boolean getEnableSeparateRecognitionPerChannel() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The languageCode. */ @java.lang.Override @@ -561,15 +476,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.
@@ -580,15 +494,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 { @@ -597,12 +512,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } public static final int ALTERNATIVE_LANGUAGE_CODES_FIELD_NUMBER = 18; - @SuppressWarnings("serial") 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,
@@ -619,15 +531,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,
@@ -644,15 +554,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,
@@ -669,7 +576,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. */ @@ -677,8 +583,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,
@@ -695,19 +599,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_ = 0; /** - * - * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -718,7 +620,6 @@ public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index
    * 
* * int32 max_alternatives = 4; - * * @return The maxAlternatives. */ @java.lang.Override @@ -729,8 +630,6 @@ public int getMaxAlternatives() { public static final int PROFANITY_FILTER_FIELD_NUMBER = 5; private boolean profanityFilter_ = false; /** - * - * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -739,7 +638,6 @@ public int getMaxAlternatives() {
    * 
* * bool profanity_filter = 5; - * * @return The profanityFilter. */ @java.lang.Override @@ -750,8 +648,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
@@ -761,7 +657,6 @@ public boolean getProfanityFilter() {
    * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; - * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -769,8 +664,6 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -780,18 +673,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
@@ -804,18 +692,13 @@ public com.google.cloud.speech.v1.SpeechAdaptation getAdaptation() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v1.SpeechAdaptationOrBuilder getAdaptationOrBuilder() {
-    return adaptation_ == null
-        ? com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance()
-        : adaptation_;
+    return adaptation_ == null ? com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance() : adaptation_;
   }
 
   public static final int SPEECH_CONTEXTS_FIELD_NUMBER = 6;
-
   @SuppressWarnings("serial")
   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
@@ -831,8 +714,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
@@ -844,13 +725,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
@@ -866,8 +745,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
@@ -883,8 +760,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
@@ -896,15 +771,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_ = false;
   /**
-   *
-   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -913,7 +787,6 @@ public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool enable_word_time_offsets = 8; - * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -924,8 +797,6 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 15; private boolean enableWordConfidence_ = false; /** - * - * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -933,7 +804,6 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 15; - * * @return The enableWordConfidence. */ @java.lang.Override @@ -944,8 +814,6 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 11; private boolean enableAutomaticPunctuation_ = false; /** - * - * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -954,7 +822,6 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 11; - * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -965,8 +832,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
@@ -978,7 +843,6 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return Whether the enableSpokenPunctuation field is set. */ @java.lang.Override @@ -986,8 +850,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
@@ -999,18 +861,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
@@ -1025,16 +882,12 @@ public com.google.protobuf.BoolValue getEnableSpokenPunctuation() {
    */
   @java.lang.Override
   public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilder() {
-    return enableSpokenPunctuation_ == null
-        ? com.google.protobuf.BoolValue.getDefaultInstance()
-        : enableSpokenPunctuation_;
+    return enableSpokenPunctuation_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenPunctuation_;
   }
 
   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
@@ -1044,7 +897,6 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return Whether the enableSpokenEmojis field is set. */ @java.lang.Override @@ -1052,8 +904,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
@@ -1063,18 +913,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
@@ -1087,16 +932,12 @@ public com.google.protobuf.BoolValue getEnableSpokenEmojis() {
    */
   @java.lang.Override
   public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
-    return enableSpokenEmojis_ == null
-        ? com.google.protobuf.BoolValue.getDefaultInstance()
-        : enableSpokenEmojis_;
+    return enableSpokenEmojis_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenEmojis_;
   }
 
   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.
@@ -1109,7 +950,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 @@ -1117,8 +957,6 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** - * - * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1131,18 +969,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.
@@ -1157,24 +990,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() {
-    return diarizationConfig_ == null
-        ? com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance()
-        : diarizationConfig_;
+  public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
+    return diarizationConfig_ == null ? com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_;
   }
 
   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 @@ -1182,25 +1009,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.
    * 
@@ -1209,18 +1029,13 @@ public com.google.cloud.speech.v1.RecognitionMetadata getMetadata() { */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuilder() { - return metadata_ == null - ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() : metadata_; } public static final int MODEL_FIELD_NUMBER = 13; - @SuppressWarnings("serial") 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
@@ -1276,7 +1091,6 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil
    * 
* * string model = 13; - * * @return The model. */ @java.lang.Override @@ -1285,15 +1099,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
@@ -1349,15 +1162,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 { @@ -1368,8 +1182,6 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int USE_ENHANCED_FIELD_NUMBER = 14; private boolean useEnhanced_ = false; /** - * - * *
    * 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
@@ -1381,7 +1193,6 @@ public com.google.protobuf.ByteString getModelBytes() {
    * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ @java.lang.Override @@ -1390,7 +1201,6 @@ public boolean getUseEnhanced() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1402,10 +1212,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) { @@ -1448,8 +1257,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()); @@ -1472,52 +1280,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; @@ -1528,18 +1343,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1549,50 +1366,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1611,9 +1443,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) { @@ -1623,7 +1454,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(); @@ -1633,11 +1465,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(); @@ -1657,110 +1492,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) + getUnknownFields().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.
@@ -1768,32 +1597,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1848,9 +1678,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
@@ -1869,12 +1699,9 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1920,7 +1747,9 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognitionConfig result)
         result.profanityFilter_ = profanityFilter_;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.adaptation_ = adaptationBuilder_ == null ? adaptation_ : adaptationBuilder_.build();
+        result.adaptation_ = adaptationBuilder_ == null
+            ? adaptation_
+            : adaptationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
         result.enableWordTimeOffsets_ = enableWordTimeOffsets_;
@@ -1932,25 +1761,24 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognitionConfig result)
         result.enableAutomaticPunctuation_ = enableAutomaticPunctuation_;
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.enableSpokenPunctuation_ =
-            enableSpokenPunctuationBuilder_ == null
-                ? enableSpokenPunctuation_
-                : enableSpokenPunctuationBuilder_.build();
+        result.enableSpokenPunctuation_ = enableSpokenPunctuationBuilder_ == null
+            ? enableSpokenPunctuation_
+            : enableSpokenPunctuationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.enableSpokenEmojis_ =
-            enableSpokenEmojisBuilder_ == null
-                ? enableSpokenEmojis_
-                : enableSpokenEmojisBuilder_.build();
+        result.enableSpokenEmojis_ = enableSpokenEmojisBuilder_ == null
+            ? enableSpokenEmojis_
+            : enableSpokenEmojisBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.diarizationConfig_ =
-            diarizationConfigBuilder_ == null
-                ? diarizationConfig_
-                : diarizationConfigBuilder_.build();
+        result.diarizationConfig_ = diarizationConfigBuilder_ == null
+            ? diarizationConfig_
+            : diarizationConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00010000) != 0)) {
-        result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
+        result.metadata_ = metadataBuilder_ == null
+            ? metadata_
+            : metadataBuilder_.build();
       }
       if (((from_bitField0_ & 0x00020000) != 0)) {
         result.model_ = model_;
@@ -1964,39 +1792,38 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognitionConfig result)
     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;
@@ -2059,10 +1886,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.RecognitionConfig other) {
             speechContextsBuilder_ = null;
             speechContexts_ = other.speechContexts_;
             bitField0_ = (bitField0_ & ~0x00000200);
-            speechContextsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getSpeechContextsFieldBuilder()
-                    : null;
+            speechContextsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getSpeechContextsFieldBuilder() : null;
           } else {
             speechContextsBuilder_.addAllMessages(other.speechContexts_);
           }
@@ -2123,138 +1949,126 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                encoding_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 16:
-              {
-                sampleRateHertz_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                languageCode_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 26
-            case 32:
-              {
-                maxAlternatives_ = input.readInt32();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 32
-            case 40:
-              {
-                profanityFilter_ = input.readBool();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 40
-            case 50:
-              {
-                com.google.cloud.speech.v1.SpeechContext m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1.SpeechContext.parser(), extensionRegistry);
-                if (speechContextsBuilder_ == null) {
-                  ensureSpeechContextsIsMutable();
-                  speechContexts_.add(m);
-                } else {
-                  speechContextsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 50
-            case 56:
-              {
-                audioChannelCount_ = input.readInt32();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 56
-            case 64:
-              {
-                enableWordTimeOffsets_ = input.readBool();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 64
-            case 74:
-              {
-                input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00010000;
-                break;
-              } // case 74
-            case 88:
-              {
-                enableAutomaticPunctuation_ = input.readBool();
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 88
-            case 96:
-              {
-                enableSeparateRecognitionPerChannel_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 96
-            case 106:
-              {
-                model_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00020000;
-                break;
-              } // case 106
-            case 112:
-              {
-                useEnhanced_ = input.readBool();
-                bitField0_ |= 0x00040000;
-                break;
-              } // case 112
-            case 120:
-              {
-                enableWordConfidence_ = input.readBool();
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 120
-            case 146:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureAlternativeLanguageCodesIsMutable();
-                alternativeLanguageCodes_.add(s);
-                break;
-              } // case 146
-            case 154:
-              {
-                input.readMessage(
-                    getDiarizationConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00008000;
-                break;
-              } // case 154
-            case 162:
-              {
-                input.readMessage(getAdaptationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 162
-            case 178:
-              {
-                input.readMessage(
-                    getEnableSpokenPunctuationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 178
-            case 186:
-              {
-                input.readMessage(
-                    getEnableSpokenEmojisFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00004000;
-                break;
-              } // case 186
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              encoding_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 16: {
+              sampleRateHertz_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              languageCode_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 26
+            case 32: {
+              maxAlternatives_ = input.readInt32();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 32
+            case 40: {
+              profanityFilter_ = input.readBool();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 40
+            case 50: {
+              com.google.cloud.speech.v1.SpeechContext m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechContext.parser(),
+                      extensionRegistry);
+              if (speechContextsBuilder_ == null) {
+                ensureSpeechContextsIsMutable();
+                speechContexts_.add(m);
+              } else {
+                speechContextsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 50
+            case 56: {
+              audioChannelCount_ = input.readInt32();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 56
+            case 64: {
+              enableWordTimeOffsets_ = input.readBool();
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 64
+            case 74: {
+              input.readMessage(
+                  getMetadataFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00010000;
+              break;
+            } // case 74
+            case 88: {
+              enableAutomaticPunctuation_ = input.readBool();
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 88
+            case 96: {
+              enableSeparateRecognitionPerChannel_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 96
+            case 106: {
+              model_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00020000;
+              break;
+            } // case 106
+            case 112: {
+              useEnhanced_ = input.readBool();
+              bitField0_ |= 0x00040000;
+              break;
+            } // case 112
+            case 120: {
+              enableWordConfidence_ = input.readBool();
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 120
+            case 146: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureAlternativeLanguageCodesIsMutable();
+              alternativeLanguageCodes_.add(s);
+              break;
+            } // case 146
+            case 154: {
+              input.readMessage(
+                  getDiarizationConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00008000;
+              break;
+            } // case 154
+            case 162: {
+              input.readMessage(
+                  getAdaptationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 162
+            case 178: {
+              input.readMessage(
+                  getEnableSpokenPunctuationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 178
+            case 186: {
+              input.readMessage(
+                  getEnableSpokenEmojisFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00004000;
+              break;
+            } // case 186
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2264,13 +2078,10 @@ public Builder mergeFrom(
       } // finally
       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
@@ -2278,16 +2089,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
@@ -2295,7 +2102,6 @@ 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. */ @@ -2306,8 +2112,6 @@ public Builder setEncodingValue(int value) { return this; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2315,20 +2119,14 @@ 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() { - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.forNumber(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.forNumber(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
@@ -2336,7 +2134,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. */ @@ -2350,8 +2147,6 @@ public Builder setEncoding(com.google.cloud.speech.v1.RecognitionConfig.AudioEnc return this; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2359,7 +2154,6 @@ 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() { @@ -2369,10 +2163,8 @@ public Builder clearEncoding() { 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.
@@ -2384,7 +2176,6 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -2392,8 +2183,6 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** - * - * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2405,20 +2194,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2430,7 +2216,6 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; - * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { @@ -2440,10 +2225,8 @@ public Builder clearSampleRateHertz() { return this; } - private int audioChannelCount_; + private int audioChannelCount_ ; /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2456,7 +2239,6 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 7; - * * @return The audioChannelCount. */ @java.lang.Override @@ -2464,8 +2246,6 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2478,20 +2258,17 @@ 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2504,7 +2281,6 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 7; - * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { @@ -2514,10 +2290,8 @@ public Builder clearAudioChannelCount() { 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
@@ -2528,7 +2302,6 @@ public Builder clearAudioChannelCount() {
      * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -2536,8 +2309,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
@@ -2548,20 +2319,17 @@ 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; bitField0_ |= 0x00000008; 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
@@ -2572,7 +2340,6 @@ public Builder setEnableSeparateRecognitionPerChannel(boolean value) {
      * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return This builder for chaining. */ public Builder clearEnableSeparateRecognitionPerChannel() { @@ -2584,8 +2351,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.
@@ -2596,13 +2361,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; @@ -2611,8 +2376,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.
@@ -2623,14 +2386,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 { @@ -2638,8 +2402,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.
@@ -2650,22 +2412,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000010; 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.
@@ -2676,7 +2434,6 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -2686,8 +2443,6 @@ public Builder clearLanguageCode() { return this; } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2698,14 +2453,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000010; @@ -2713,19 +2466,14 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { 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_ & 0x00000020) != 0)) { - alternativeLanguageCodes_ = - new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); + alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); bitField0_ |= 0x00000020; - } + } } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2742,15 +2490,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,
@@ -2767,15 +2513,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,
@@ -2792,7 +2535,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. */ @@ -2800,8 +2542,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,
@@ -2818,16 +2558,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,
@@ -2844,23 +2582,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAlternativeLanguageCodes( + int index, java.lang.String value) { + if (value == null) { 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,
@@ -2877,22 +2611,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAlternativeLanguageCodes( + java.lang.String value) { + if (value == null) { 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,
@@ -2909,19 +2639,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,
@@ -2938,7 +2667,6 @@ public Builder addAllAlternativeLanguageCodes(java.lang.Iterable
      *
      * repeated string alternative_language_codes = 18;
-     *
      * @return This builder for chaining.
      */
     public Builder clearAlternativeLanguageCodes() {
@@ -2948,8 +2676,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,
@@ -2966,14 +2692,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAlternativeLanguageCodesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); @@ -2981,10 +2705,8 @@ public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString v return this; } - private int maxAlternatives_; + private int maxAlternatives_ ; /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2995,7 +2717,6 @@ public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString v
      * 
* * int32 max_alternatives = 4; - * * @return The maxAlternatives. */ @java.lang.Override @@ -3003,8 +2724,6 @@ public int getMaxAlternatives() { return maxAlternatives_; } /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3015,20 +2734,17 @@ 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3039,7 +2755,6 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 4; - * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { @@ -3049,10 +2764,8 @@ public Builder clearMaxAlternatives() { 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
@@ -3061,7 +2774,6 @@ public Builder clearMaxAlternatives() {
      * 
* * bool profanity_filter = 5; - * * @return The profanityFilter. */ @java.lang.Override @@ -3069,8 +2781,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
@@ -3079,20 +2789,17 @@ 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; bitField0_ |= 0x00000080; 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
@@ -3101,7 +2808,6 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 5; - * * @return This builder for chaining. */ public Builder clearProfanityFilter() { @@ -3113,13 +2819,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
@@ -3129,15 +2830,12 @@ public Builder clearProfanityFilter() {
      * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; - * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3147,21 +2845,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
@@ -3186,8 +2879,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
@@ -3210,8 +2901,6 @@ public Builder setAdaptation(
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3224,9 +2913,9 @@ public Builder setAdaptation(
      */
     public Builder mergeAdaptation(com.google.cloud.speech.v1.SpeechAdaptation value) {
       if (adaptationBuilder_ == null) {
-        if (((bitField0_ & 0x00000100) != 0)
-            && adaptation_ != null
-            && adaptation_ != com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000100) != 0) &&
+          adaptation_ != null &&
+          adaptation_ != com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance()) {
           getAdaptationBuilder().mergeFrom(value);
         } else {
           adaptation_ = value;
@@ -3239,8 +2928,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
@@ -3262,8 +2949,6 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3280,8 +2965,6 @@ public com.google.cloud.speech.v1.SpeechAdaptation.Builder getAdaptationBuilder(
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3296,14 +2979,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
@@ -3315,42 +2995,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_ & 0x00000200) != 0)) {
-        speechContexts_ =
-            new java.util.ArrayList(speechContexts_);
+        speechContexts_ = new java.util.ArrayList(speechContexts_);
         bitField0_ |= 0x00000200;
-      }
+       }
     }
 
     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
@@ -3369,8 +3039,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
@@ -3389,8 +3057,6 @@ public int getSpeechContextsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3409,8 +3075,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
@@ -3421,7 +3085,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();
@@ -3435,8 +3100,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
@@ -3459,8 +3122,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
@@ -3485,8 +3146,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
@@ -3497,7 +3156,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();
@@ -3511,8 +3171,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
@@ -3535,8 +3193,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
@@ -3559,8 +3215,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
@@ -3575,7 +3229,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);
@@ -3583,8 +3238,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
@@ -3606,8 +3259,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
@@ -3629,8 +3280,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
@@ -3641,12 +3290,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
@@ -3657,16 +3305,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
@@ -3677,8 +3323,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 {
@@ -3686,8 +3332,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
@@ -3699,12 +3343,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
@@ -3715,13 +3357,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
@@ -3732,22 +3373,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_ & 0x00000200) != 0),
                 getParentForChildren(),
@@ -3757,10 +3392,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
@@ -3769,7 +3402,6 @@ public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder
      * 
* * bool enable_word_time_offsets = 8; - * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -3777,8 +3409,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
@@ -3787,20 +3417,17 @@ 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; bitField0_ |= 0x00000400; 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
@@ -3809,7 +3436,6 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 8; - * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { @@ -3819,10 +3445,8 @@ public Builder clearEnableWordTimeOffsets() { 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
@@ -3830,7 +3454,6 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 15; - * * @return The enableWordConfidence. */ @java.lang.Override @@ -3838,8 +3461,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
@@ -3847,20 +3468,17 @@ 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; bitField0_ |= 0x00000800; 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
@@ -3868,7 +3486,6 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 15; - * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { @@ -3878,10 +3495,8 @@ public Builder clearEnableWordConfidence() { 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
@@ -3890,7 +3505,6 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 11; - * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -3898,8 +3512,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
@@ -3908,20 +3520,17 @@ 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; bitField0_ |= 0x00001000; onChanged(); return this; } /** - * - * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3930,7 +3539,6 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 11; - * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { @@ -3942,13 +3550,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
@@ -3960,15 +3563,12 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return Whether the enableSpokenPunctuation field is set. */ public boolean hasEnableSpokenPunctuation() { return ((bitField0_ & 0x00002000) != 0); } /** - * - * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3980,21 +3580,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
@@ -4021,8 +3616,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
@@ -4047,8 +3640,6 @@ public Builder setEnableSpokenPunctuation(
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4063,9 +3654,9 @@ public Builder setEnableSpokenPunctuation(
      */
     public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value) {
       if (enableSpokenPunctuationBuilder_ == null) {
-        if (((bitField0_ & 0x00002000) != 0)
-            && enableSpokenPunctuation_ != null
-            && enableSpokenPunctuation_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
+        if (((bitField0_ & 0x00002000) != 0) &&
+          enableSpokenPunctuation_ != null &&
+          enableSpokenPunctuation_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
           getEnableSpokenPunctuationBuilder().mergeFrom(value);
         } else {
           enableSpokenPunctuation_ = value;
@@ -4078,8 +3669,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
@@ -4103,8 +3692,6 @@ public Builder clearEnableSpokenPunctuation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4123,8 +3710,6 @@ public com.google.protobuf.BoolValue.Builder getEnableSpokenPunctuationBuilder()
       return getEnableSpokenPunctuationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4141,14 +3726,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
@@ -4162,17 +3744,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_;
@@ -4180,13 +3759,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
@@ -4196,15 +3770,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 ((bitField0_ & 0x00004000) != 0); } /** - * - * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4214,21 +3785,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
@@ -4253,8 +3819,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
@@ -4265,7 +3829,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();
       } else {
@@ -4276,8 +3841,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
@@ -4290,9 +3853,9 @@ public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue.Builder build
      */
     public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       if (enableSpokenEmojisBuilder_ == null) {
-        if (((bitField0_ & 0x00004000) != 0)
-            && enableSpokenEmojis_ != null
-            && enableSpokenEmojis_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
+        if (((bitField0_ & 0x00004000) != 0) &&
+          enableSpokenEmojis_ != null &&
+          enableSpokenEmojis_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
           getEnableSpokenEmojisBuilder().mergeFrom(value);
         } else {
           enableSpokenEmojis_ = value;
@@ -4305,8 +3868,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
@@ -4328,8 +3889,6 @@ public Builder clearEnableSpokenEmojis() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4346,8 +3905,6 @@ public com.google.protobuf.BoolValue.Builder getEnableSpokenEmojisBuilder() {
       return getEnableSpokenEmojisFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4362,14 +3919,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
@@ -4381,17 +3935,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_;
@@ -4399,13 +3950,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.
@@ -4418,15 +3964,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 ((bitField0_ & 0x00008000) != 0); } /** - * - * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4439,21 +3982,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.
@@ -4481,8 +4019,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.
@@ -4508,8 +4044,6 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4523,13 +4057,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 (((bitField0_ & 0x00008000) != 0)
-            && diarizationConfig_ != null
-            && diarizationConfig_
-                != com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00008000) != 0) &&
+          diarizationConfig_ != null &&
+          diarizationConfig_ != com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance()) {
           getDiarizationConfigBuilder().mergeFrom(value);
         } else {
           diarizationConfig_ = value;
@@ -4542,8 +4074,6 @@ public Builder mergeDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4568,8 +4098,6 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4583,15 +4111,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() {
       bitField0_ |= 0x00008000;
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4605,19 +4130,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.
@@ -4632,17 +4153,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_;
@@ -4650,47 +4168,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 ((bitField0_ & 0x00010000) != 0); } /** - * - * *
      * 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.
      * 
@@ -4711,8 +4216,6 @@ public Builder setMetadata(com.google.cloud.speech.v1.RecognitionMetadata value) return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4731,8 +4234,6 @@ public Builder setMetadata( return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4741,9 +4242,9 @@ public Builder setMetadata( */ public Builder mergeMetadata(com.google.cloud.speech.v1.RecognitionMetadata value) { if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && metadata_ != null - && metadata_ != com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00010000) != 0) && + metadata_ != null && + metadata_ != com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; @@ -4756,8 +4257,6 @@ public Builder mergeMetadata(com.google.cloud.speech.v1.RecognitionMetadata valu return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4775,8 +4274,6 @@ public Builder clearMetadata() { return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4789,8 +4286,6 @@ public com.google.cloud.speech.v1.RecognitionMetadata.Builder getMetadataBuilder return getMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4801,14 +4296,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.
      * 
@@ -4816,17 +4308,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_; @@ -4834,8 +4323,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
@@ -4891,13 +4378,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; @@ -4906,8 +4393,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
@@ -4963,14 +4448,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 { @@ -4978,8 +4464,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
@@ -5035,22 +4519,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00020000; 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
@@ -5106,7 +4586,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 13; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -5116,8 +4595,6 @@ public Builder clearModel() { 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
@@ -5173,14 +4650,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00020000; @@ -5188,10 +4663,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { 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
@@ -5203,7 +4676,6 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) {
      * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ @java.lang.Override @@ -5211,8 +4683,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
@@ -5224,20 +4694,17 @@ 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; bitField0_ |= 0x00040000; 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
@@ -5249,7 +4716,6 @@ public Builder setUseEnhanced(boolean value) {
      * 
* * bool use_enhanced = 14; - * * @return This builder for chaining. */ public Builder clearUseEnhanced() { @@ -5258,9 +4724,9 @@ public Builder clearUseEnhanced() { 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); } @@ -5270,12 +4736,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(); } @@ -5284,27 +4750,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5319,4 +4785,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java similarity index 94% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java index 323d1dbc34f4..dc92690ff25c 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/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.
@@ -86,14 +59,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
@@ -104,14 +74,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.
@@ -122,13 +89,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.
@@ -139,14 +103,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,
@@ -163,13 +125,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,
@@ -186,13 +146,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,
@@ -209,14 +166,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,
@@ -233,15 +187,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
@@ -252,14 +204,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
@@ -268,14 +217,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
@@ -285,13 +231,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
@@ -301,13 +244,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
@@ -321,8 +261,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
@@ -333,10 +271,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
@@ -349,8 +286,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
@@ -363,8 +298,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
@@ -375,11 +308,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
@@ -390,11 +321,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
@@ -403,14 +333,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
@@ -418,14 +345,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
@@ -434,14 +358,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
@@ -453,13 +374,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
@@ -471,13 +389,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
@@ -493,8 +408,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
@@ -504,13 +417,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
@@ -520,13 +430,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
@@ -540,8 +447,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.
@@ -554,13 +459,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.
@@ -573,13 +475,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.
@@ -596,32 +495,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.
    * 
@@ -631,8 +522,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
@@ -688,13 +577,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
@@ -750,14 +636,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
@@ -769,7 +653,6 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ boolean getUseEnhanced(); diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java index 67310e166c44..6f469e5762cd 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java +++ b/owl-bot-staging/java-speech/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,33 +31,30 @@ 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; } - - 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.
@@ -84,10 +62,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.
@@ -97,8 +74,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
@@ -110,8 +85,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     DISCUSSION(1),
     /**
-     *
-     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -121,8 +94,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.
@@ -132,8 +103,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     PHONE_CALL(3),
     /**
-     *
-     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -142,8 +111,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ VOICEMAIL(4), /** - * - * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -152,8 +119,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ PROFESSIONALLY_PRODUCED(5), /** - * - * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -162,8 +127,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ VOICE_SEARCH(6), /** - * - * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -172,8 +135,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.
@@ -186,8 +147,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.
@@ -197,8 +156,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
@@ -210,8 +167,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.
@@ -221,8 +176,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.
@@ -232,8 +185,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.
      * 
@@ -242,8 +193,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VOICEMAIL_VALUE = 4; /** - * - * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -252,8 +201,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROFESSIONALLY_PRODUCED_VALUE = 5; /** - * - * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -262,8 +209,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.
      * 
@@ -272,8 +217,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.
@@ -283,6 +226,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(
@@ -307,54 +251,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);
     }
 
@@ -363,7 +298,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;
@@ -381,18 +317,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.
      * 
@@ -401,8 +334,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
@@ -413,8 +344,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu
      */
     NEARFIELD(1),
     /**
-     *
-     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -423,8 +352,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu */ MIDFIELD(2), /** - * - * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -436,8 +363,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
      * Audio type is not known.
      * 
@@ -446,8 +371,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
@@ -458,8 +381,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.
      * 
@@ -468,8 +389,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.
      * 
@@ -478,6 +397,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( @@ -502,16 +422,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; } } @@ -519,28 +434,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); } @@ -549,7 +464,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; @@ -567,18 +483,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.
      * 
@@ -587,8 +500,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ ORIGINAL_MEDIA_TYPE_UNSPECIFIED(0), /** - * - * *
      * The speech data is an audio recording.
      * 
@@ -597,8 +508,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ AUDIO(1), /** - * - * *
      * The speech data originally recorded on a video.
      * 
@@ -610,8 +519,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Unknown original media type.
      * 
@@ -620,8 +527,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.
      * 
@@ -630,8 +535,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ public static final int AUDIO_VALUE = 1; /** - * - * *
      * The speech data originally recorded on a video.
      * 
@@ -640,6 +543,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( @@ -664,14 +568,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; } } @@ -679,28 +579,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); } @@ -709,7 +609,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; @@ -727,18 +628,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.
      * 
@@ -747,8 +645,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ RECORDING_DEVICE_TYPE_UNSPECIFIED(0), /** - * - * *
      * Speech was recorded on a smartphone.
      * 
@@ -757,8 +653,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ SMARTPHONE(1), /** - * - * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -767,8 +661,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ PC(2), /** - * - * *
      * Speech was recorded over a phone line.
      * 
@@ -777,8 +669,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ PHONE_LINE(3), /** - * - * *
      * Speech was recorded in a vehicle.
      * 
@@ -787,8 +677,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ VEHICLE(4), /** - * - * *
      * Speech was recorded outdoors.
      * 
@@ -797,8 +685,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ OTHER_OUTDOOR_DEVICE(5), /** - * - * *
      * Speech was recorded indoors.
      * 
@@ -810,8 +696,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn ; /** - * - * *
      * The recording device is unknown.
      * 
@@ -820,8 +704,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.
      * 
@@ -830,8 +712,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.
      * 
@@ -840,8 +720,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int PC_VALUE = 2; /** - * - * *
      * Speech was recorded over a phone line.
      * 
@@ -850,8 +728,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int PHONE_LINE_VALUE = 3; /** - * - * *
      * Speech was recorded in a vehicle.
      * 
@@ -860,8 +736,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int VEHICLE_VALUE = 4; /** - * - * *
      * Speech was recorded outdoors.
      * 
@@ -870,8 +744,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int OTHER_OUTDOOR_DEVICE_VALUE = 5; /** - * - * *
      * Speech was recorded indoors.
      * 
@@ -880,6 +752,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( @@ -904,22 +777,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; } } @@ -927,28 +792,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); } @@ -957,7 +822,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; @@ -977,45 +843,32 @@ private RecordingDeviceType(int value) { public static final int INTERACTION_TYPE_FIELD_NUMBER = 1; 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; - * * @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() { - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.forNumber(interactionType_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInteractionType() { + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.forNumber(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_ = 0; /** - * - * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -1024,7 +877,6 @@ public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInterac
    * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1035,133 +887,85 @@ public int getIndustryNaicsCodeOfAudio() { public static final int MICROPHONE_DISTANCE_FIELD_NUMBER = 4; 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; * @return The microphoneDistance. */ - @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.forNumber( - microphoneDistance_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.forNumber(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_ = 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; * @return The originalMediaType. */ - @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.forNumber( - originalMediaType_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.forNumber(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_ = 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; * @return The recordingDeviceType. */ - @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType - getRecordingDeviceType() { - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.forNumber( - recordingDeviceType_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.forNumber(recordingDeviceType_); + return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; } public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER = 7; - @SuppressWarnings("serial") 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
@@ -1169,7 +973,6 @@ public int getRecordingDeviceTypeValue() {
    * 
* * string recording_device_name = 7; - * * @return The recordingDeviceName. */ @java.lang.Override @@ -1178,15 +981,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
@@ -1194,15 +996,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 { @@ -1211,12 +1014,9 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() { } public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER = 8; - @SuppressWarnings("serial") 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`.
@@ -1225,7 +1025,6 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() {
    * 
* * string original_mime_type = 8; - * * @return The originalMimeType. */ @java.lang.Override @@ -1234,15 +1033,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`.
@@ -1251,15 +1049,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 { @@ -1268,19 +1067,15 @@ public com.google.protobuf.ByteString getOriginalMimeTypeBytes() { } public static final int AUDIO_TOPIC_FIELD_NUMBER = 10; - @SuppressWarnings("serial") 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 @@ -1289,30 +1084,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 { @@ -1321,7 +1116,6 @@ public com.google.protobuf.ByteString getAudioTopicBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1333,32 +1127,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_)) { @@ -1379,32 +1162,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_); @@ -1423,22 +1199,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1471,136 +1250,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1617,9 +1390,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 @@ -1638,11 +1411,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.RecognitionMetadata result = new com.google.cloud.speech.v1.RecognitionMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1679,39 +1449,38 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognitionMetadata result 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; @@ -1776,61 +1545,52 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - interactionType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 24: - { - industryNaicsCodeOfAudio_ = input.readUInt32(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 32: - { - microphoneDistance_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 40: - { - originalMediaType_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 48: - { - recordingDeviceType_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 58: - { - recordingDeviceName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: - { - originalMimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 82: - { - audioTopic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + interactionType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 24: { + industryNaicsCodeOfAudio_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: { + microphoneDistance_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: { + originalMediaType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: { + recordingDeviceType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: { + recordingDeviceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: { + originalMimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 82: { + audioTopic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1840,36 +1600,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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. */ @@ -1880,41 +1630,28 @@ public Builder setInteractionTypeValue(int value) { 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() { - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.forNumber( - 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.forNumber(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(); } @@ -1924,15 +1661,11 @@ public Builder setInteractionType( 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() { @@ -1942,10 +1675,8 @@ public Builder clearInteractionType() { 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
@@ -1954,7 +1685,6 @@ public Builder clearInteractionType() {
      * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1962,8 +1692,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
@@ -1972,20 +1700,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1994,7 +1719,6 @@ public Builder setIndustryNaicsCodeOfAudio(int value) {
      * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return This builder for chaining. */ public Builder clearIndustryNaicsCodeOfAudio() { @@ -2006,31 +1730,22 @@ 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. */ @@ -2041,42 +1756,28 @@ public Builder setMicrophoneDistanceValue(int value) { 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() { - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.forNumber( - microphoneDistance_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED - : result; + public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.forNumber(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(); } @@ -2086,15 +1787,11 @@ public Builder setMicrophoneDistance( 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() { @@ -2106,31 +1803,22 @@ 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. */ @@ -2141,41 +1829,28 @@ public Builder setOriginalMediaTypeValue(int value) { 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() { - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.forNumber( - 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.forNumber(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(); } @@ -2185,15 +1860,11 @@ public Builder setOriginalMediaType( 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() { @@ -2205,33 +1876,22 @@ 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. */ @@ -2242,44 +1902,28 @@ public Builder setRecordingDeviceTypeValue(int value) { 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() { - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.forNumber( - recordingDeviceType_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED - : result; + public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.forNumber(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(); } @@ -2289,16 +1933,11 @@ public Builder setRecordingDeviceType( 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() { @@ -2310,8 +1949,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
@@ -2319,13 +1956,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; @@ -2334,8 +1971,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
@@ -2343,14 +1978,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 { @@ -2358,8 +1994,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
@@ -2367,22 +2001,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecordingDeviceName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } recordingDeviceName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2390,7 +2020,6 @@ public Builder setRecordingDeviceName(java.lang.String value) {
      * 
* * string recording_device_name = 7; - * * @return This builder for chaining. */ public Builder clearRecordingDeviceName() { @@ -2400,8 +2029,6 @@ public Builder clearRecordingDeviceName() { return this; } /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2409,14 +2036,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecordingDeviceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); recordingDeviceName_ = value; bitField0_ |= 0x00000020; @@ -2426,8 +2051,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`.
@@ -2436,13 +2059,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; @@ -2451,8 +2074,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`.
@@ -2461,14 +2082,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 { @@ -2476,8 +2098,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`.
@@ -2486,22 +2106,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOriginalMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } originalMimeType_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2510,7 +2126,6 @@ public Builder setOriginalMimeType(java.lang.String value) {
      * 
* * string original_mime_type = 8; - * * @return This builder for chaining. */ public Builder clearOriginalMimeType() { @@ -2520,8 +2135,6 @@ public Builder clearOriginalMimeType() { return this; } /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2530,14 +2143,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOriginalMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); originalMimeType_ = value; bitField0_ |= 0x00000040; @@ -2547,21 +2158,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; @@ -2570,22 +2179,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 { @@ -2593,37 +2201,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAudioTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } audioTopic_ = value; bitField0_ |= 0x00000080; 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() { @@ -2633,31 +2234,27 @@ public Builder clearAudioTopic() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAudioTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); audioTopic_ = value; bitField0_ |= 0x00000080; 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); } @@ -2667,12 +2264,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(); } @@ -2681,27 +2278,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2716,4 +2313,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java similarity index 76% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java index bd7b23985e30..5b3a0073fc09 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java similarity index 59% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java index 09e4d70b8582..1e69cbf4d513 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java @@ -1,84 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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; } - - 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 @@ -86,57 +63,39 @@ 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() { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } 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 @@ -144,44 +103,30 @@ 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() { - return audio_ == null - ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,7 +138,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()); } @@ -210,10 +156,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -223,21 +171,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -263,136 +212,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +354,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 @@ -432,11 +375,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.RecognizeRequest result = new com.google.cloud.speech.v1.RecognizeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -444,10 +384,14 @@ public com.google.cloud.speech.v1.RecognizeRequest buildPartial() { private void buildPartial0(com.google.cloud.speech.v1.RecognizeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + result.config_ = configBuilder_ == null + ? config_ + : configBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.audio_ = audioBuilder_ == null ? audio_ : audioBuilder_.build(); + result.audio_ = audioBuilder_ == null + ? audio_ + : audioBuilder_.build(); } } @@ -455,39 +399,38 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognizeRequest result) { 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; @@ -528,25 +471,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getAudioFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getAudioFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -556,66 +500,46 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * 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) { @@ -631,18 +555,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(); } else { @@ -653,22 +574,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 (((bitField0_ & 0x00000001) != 0) - && config_ != null - && config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + config_ != null && + config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -681,16 +598,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -703,16 +616,12 @@ 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() { bitField0_ |= 0x00000001; @@ -720,50 +629,38 @@ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { 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_; @@ -771,58 +668,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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) { @@ -838,17 +716,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(); } else { @@ -859,21 +734,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 (((bitField0_ & 0x00000002) != 0) - && audio_ != null - && audio_ != com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + audio_ != null && + audio_ != com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) { getAudioBuilder().mergeFrom(value); } else { audio_ = value; @@ -886,15 +757,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -907,15 +774,11 @@ 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() { bitField0_ |= 0x00000002; @@ -923,55 +786,43 @@ public com.google.cloud.speech.v1.RecognitionAudio.Builder getAudioBuilder() { 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); } @@ -981,12 +832,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(); } @@ -995,27 +846,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1030,4 +881,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java new file mode 100644 index 000000000000..5811af70356e --- /dev/null +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java index 1e903b6aecc6..3a4609c04b81 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java +++ b/owl-bot-staging/java-speech/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,53 +12,48 @@
  *
  * 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -88,8 +66,6 @@ public java.util.List getRes
     return results_;
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -98,13 +74,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.
@@ -117,8 +91,6 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -131,8 +103,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.
@@ -149,14 +119,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 @@ -164,25 +131,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.
    * 
@@ -191,22 +151,17 @@ public com.google.protobuf.Duration getTotalBilledTime() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 7; private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_; /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -214,25 +169,18 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } /** - * - * *
    * Provides information on adaptation behavior in response
    * 
@@ -240,25 +188,19 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; */ @java.lang.Override - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 8; private long requestId_ = 0L; /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 8; - * * @return The requestId. */ @java.lang.Override @@ -267,7 +209,6 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -279,7 +220,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)); } @@ -302,17 +244,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 (speechAdaptationInfo_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSpeechAdaptationInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, requestId_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -322,24 +267,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.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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo() + .equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() != other.getRequestId()) return false; + if (getRequestId() + != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -364,110 +312,104 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; 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`
@@ -476,32 +418,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -528,9 +471,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
@@ -549,12 +492,9 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -574,14 +514,14 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1.RecognizeResp
     private void buildPartial0(com.google.cloud.speech.v1.RecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.totalBilledTime_ =
-            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
+            ? totalBilledTime_
+            : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.speechAdaptationInfo_ =
-            speechAdaptationInfoBuilder_ == null
-                ? speechAdaptationInfo_
-                : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
+            ? speechAdaptationInfo_
+            : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.requestId_ = requestId_;
@@ -592,39 +532,38 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognizeResponse result)
     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;
@@ -651,10 +590,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_);
           }
@@ -695,46 +633,44 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18:
-              {
-                com.google.cloud.speech.v1.SpeechRecognitionResult m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
-                        extensionRegistry);
-                if (resultsBuilder_ == null) {
-                  ensureResultsIsMutable();
-                  results_.add(m);
-                } else {
-                  resultsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-            case 58:
-              {
-                input.readMessage(
-                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 58
-            case 64:
-              {
-                requestId_ = input.readInt64();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 64
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 18: {
+              com.google.cloud.speech.v1.SpeechRecognitionResult m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
+                      extensionRegistry);
+              if (resultsBuilder_ == null) {
+                ensureResultsIsMutable();
+                results_.add(m);
+              } else {
+                resultsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getTotalBilledTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 26
+            case 58: {
+              input.readMessage(
+                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 58
+            case 64: {
+              requestId_ = input.readInt64();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 64
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -744,29 +680,21 @@ public Builder mergeFrom(
       } // finally
       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.
@@ -782,8 +710,6 @@ public java.util.List getRes
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -799,8 +725,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -816,8 +740,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -825,7 +747,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();
@@ -839,8 +762,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.
@@ -860,8 +781,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -883,8 +802,6 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -892,7 +809,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();
@@ -906,8 +824,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.
@@ -927,8 +843,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -948,8 +862,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -961,7 +873,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);
@@ -969,8 +882,6 @@ public Builder addAllResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -989,8 +900,6 @@ public Builder clearResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1009,8 +918,6 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1018,12 +925,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.
@@ -1034,14 +940,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.
@@ -1049,8 +952,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 {
@@ -1058,8 +961,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1068,12 +969,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.
@@ -1081,14 +980,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.
@@ -1096,23 +993,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_;
@@ -1120,47 +1014,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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.
      * 
@@ -1181,15 +1062,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(); } else { @@ -1200,8 +1080,6 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1210,9 +1088,9 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo */ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && totalBilledTime_ != null - && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + totalBilledTime_ != null && + totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getTotalBilledTimeBuilder().mergeFrom(value); } else { totalBilledTime_ = value; @@ -1225,8 +1103,6 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1244,8 +1120,6 @@ public Builder clearTotalBilledTime() { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1258,8 +1132,6 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { return getTotalBilledTimeFieldBuilder().getBuilder(); } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1270,14 +1142,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.
      * 
@@ -1285,17 +1154,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_; @@ -1303,47 +1169,34 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, - com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> - speechAdaptationInfoBuilder_; + com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_; /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -1364,8 +1217,6 @@ public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptati return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -1384,21 +1235,17 @@ public Builder setSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public Builder mergeSpeechAdaptationInfo( - com.google.cloud.speech.v1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && speechAdaptationInfo_ != null - && speechAdaptationInfo_ - != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + speechAdaptationInfo_ != null && + speechAdaptationInfo_ != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -1411,8 +1258,6 @@ public Builder mergeSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -1430,42 +1275,33 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder - getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? + com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -1473,33 +1309,27 @@ public Builder clearSpeechAdaptationInfo() { * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, - com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, - com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), getParentForChildren(), isClean()); + speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), + getParentForChildren(), + isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_; + private long requestId_ ; /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; - * * @return The requestId. */ @java.lang.Override @@ -1507,35 +1337,29 @@ public long getRequestId() { return requestId_; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; - * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1544,9 +1368,9 @@ public Builder clearRequestId() { 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); } @@ -1556,12 +1380,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(); } @@ -1570,27 +1394,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1605,4 +1429,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java similarity index 80% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java index 47f347663cae..abeea15f5484 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/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.
    * 
@@ -116,32 +84,24 @@ public interface RecognizeResponseOrBuilder com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder(); /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** - * - * *
    * Provides information on adaptation behavior in response
    * 
@@ -151,15 +111,12 @@ public interface RecognizeResponseOrBuilder com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 8; - * * @return The requestId. */ long getRequestId(); diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java index b73e5b4f202b..a3625012a50b 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java @@ -1,75 +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; } - - 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_ = false; /** - * - * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -77,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool enable_speaker_diarization = 1; - * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -88,8 +67,6 @@ public boolean getEnableSpeakerDiarization() { public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_ = 0; /** - * - * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -97,7 +74,6 @@ public boolean getEnableSpeakerDiarization() {
    * 
* * int32 min_speaker_count = 2; - * * @return The minSpeakerCount. */ @java.lang.Override @@ -108,8 +84,6 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_ = 0; /** - * - * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -117,7 +91,6 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3; - * * @return The maxSpeakerCount. */ @java.lang.Override @@ -128,27 +101,21 @@ public int getMaxSpeakerCount() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_ = 0; /** - * - * *
    * 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=456 + * 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=456 * @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; @@ -160,7 +127,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_); } @@ -183,16 +151,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -202,18 +174,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -226,7 +201,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; @@ -239,135 +215,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +350,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 @@ -401,11 +371,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.SpeakerDiarizationConfig result = new com.google.cloud.speech.v1.SpeakerDiarizationConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -430,39 +397,38 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeakerDiarizationConfig r 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; @@ -470,8 +436,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()); } @@ -510,37 +475,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enableSpeakerDiarization_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - minSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - maxSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 40: - { - speakerTag_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enableSpeakerDiarization_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + minSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + maxSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 40: { + speakerTag_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -550,13 +510,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - 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
@@ -564,7 +521,6 @@ public Builder mergeFrom(
      * 
* * bool enable_speaker_diarization = 1; - * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -572,8 +528,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
@@ -581,20 +535,17 @@ 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; bitField0_ |= 0x00000001; 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
@@ -602,7 +553,6 @@ public Builder setEnableSpeakerDiarization(boolean value) {
      * 
* * bool enable_speaker_diarization = 1; - * * @return This builder for chaining. */ public Builder clearEnableSpeakerDiarization() { @@ -612,10 +562,8 @@ public Builder clearEnableSpeakerDiarization() { 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
@@ -623,7 +571,6 @@ public Builder clearEnableSpeakerDiarization() {
      * 
* * int32 min_speaker_count = 2; - * * @return The minSpeakerCount. */ @java.lang.Override @@ -631,8 +578,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
@@ -640,20 +585,17 @@ 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; bitField0_ |= 0x00000002; 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
@@ -661,7 +603,6 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2; - * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { @@ -671,10 +612,8 @@ public Builder clearMinSpeakerCount() { 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
@@ -682,7 +621,6 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; - * * @return The maxSpeakerCount. */ @java.lang.Override @@ -690,8 +628,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
@@ -699,20 +635,17 @@ 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; bitField0_ |= 0x00000004; 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
@@ -720,7 +653,6 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3; - * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { @@ -730,73 +662,58 @@ public Builder clearMaxSpeakerCount() { 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=456 + * 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=456 * @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=456 + * 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=456 * @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; bitField0_ |= 0x00000008; 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=456 + * 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=456 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearSpeakerTag() { + @java.lang.Deprecated public Builder clearSpeakerTag() { bitField0_ = (bitField0_ & ~0x00000008); 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); } @@ -806,12 +723,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(); } @@ -820,27 +737,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -855,4 +772,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeakerDiarizationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java similarity index 64% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java index d754b4e464ec..0da15ac5a99d 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/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=456 + * 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=456 * @return The speakerTag. */ - @java.lang.Deprecated - int getSpeakerTag(); + @java.lang.Deprecated int getSpeakerTag(); } diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java similarity index 76% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java index 526bd25894c3..1c4672f85a6d 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java +++ b/owl-bot-staging/java-speech/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,175 +27,154 @@ 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; } - - 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 interface ABNFGrammarOrBuilder - extends + public interface ABNFGrammarOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @return A list containing the abnfStrings. */ - java.util.List getAbnfStringsList(); + java.util.List + getAbnfStringsList(); /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @return The count of abnfStrings. */ int getAbnfStringsCount(); /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ java.lang.String getAbnfStrings(int index); /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - com.google.protobuf.ByteString getAbnfStringsBytes(int index); + com.google.protobuf.ByteString + getAbnfStringsBytes(int index); } - /** Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar} */ - public static final class ABNFGrammar extends com.google.protobuf.GeneratedMessageV3 - implements + /** + * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar} + */ + public static final class ABNFGrammar extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) ABNFGrammarOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ABNFGrammar.newBuilder() to construct. private ABNFGrammar(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ABNFGrammar() { abnfStrings_ = 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 ABNFGrammar(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_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_ABNFGrammar_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.class, - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.class, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder.class); } public static final int ABNF_STRINGS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList abnfStrings_; /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @return A list containing the abnfStrings. */ - public com.google.protobuf.ProtocolStringList getAbnfStringsList() { + public com.google.protobuf.ProtocolStringList + getAbnfStringsList() { return abnfStrings_; } /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @return The count of abnfStrings. */ public int getAbnfStringsCount() { return abnfStrings_.size(); } /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ @@ -221,24 +182,21 @@ public java.lang.String getAbnfStrings(int index) { return abnfStrings_.get(index); } /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - public com.google.protobuf.ByteString getAbnfStringsBytes(int index) { + public com.google.protobuf.ByteString + getAbnfStringsBytes(int index) { return abnfStrings_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,7 +208,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 < abnfStrings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, abnfStrings_.getRaw(i)); } @@ -279,15 +238,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.SpeechAdaptation.ABNFGrammar)) { return super.equals(obj); } - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar other = - (com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) obj; + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar other = (com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) obj; - if (!getAbnfStringsList().equals(other.getAbnfStringsList())) return false; + if (!getAbnfStringsList() + .equals(other.getAbnfStringsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -309,94 +268,87 @@ public int hashCode() { } public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar 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.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar 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 @@ -405,34 +357,36 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_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_ABNFGrammar_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.class, - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.class, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +397,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_ABNFGrammar_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_descriptor; } @java.lang.Override @@ -464,18 +418,14 @@ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar buildPartial() { - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar result = - new com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar(this); + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar result = new com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar result) { if (((bitField0_ & 0x00000001) != 0)) { abnfStrings_ = abnfStrings_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -491,41 +441,38 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGramm 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.SpeechAdaptation.ABNFGrammar) { - return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) other); + return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar)other); } else { super.mergeFrom(other); return this; @@ -533,8 +480,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar other) { - if (other == com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) return this; if (!other.abnfStrings_.isEmpty()) { if (abnfStrings_.isEmpty()) { abnfStrings_ = other.abnfStrings_; @@ -571,20 +517,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAbnfStringsIsMutable(); - abnfStrings_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAbnfStringsIsMutable(); + abnfStrings_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -594,58 +538,47 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList abnfStrings_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList abnfStrings_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAbnfStringsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { abnfStrings_ = new com.google.protobuf.LazyStringArrayList(abnfStrings_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @return A list containing the abnfStrings. */ - public com.google.protobuf.ProtocolStringList getAbnfStringsList() { + public com.google.protobuf.ProtocolStringList + getAbnfStringsList() { return abnfStrings_.getUnmodifiableView(); } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @return The count of abnfStrings. */ public int getAbnfStringsCount() { return abnfStrings_.size(); } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ @@ -653,95 +586,81 @@ public java.lang.String getAbnfStrings(int index) { return abnfStrings_.get(index); } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - public com.google.protobuf.ByteString getAbnfStringsBytes(int index) { + public com.google.protobuf.ByteString + getAbnfStringsBytes(int index) { return abnfStrings_.getByteString(index); } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param index The index to set the value at. * @param value The abnfStrings to set. * @return This builder for chaining. */ - public Builder setAbnfStrings(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAbnfStrings( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAbnfStringsIsMutable(); abnfStrings_.set(index, value); onChanged(); return this; } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param value The abnfStrings to add. * @return This builder for chaining. */ - public Builder addAbnfStrings(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAbnfStrings( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAbnfStringsIsMutable(); abnfStrings_.add(value); onChanged(); return this; } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param values The abnfStrings to add. * @return This builder for chaining. */ - public Builder addAllAbnfStrings(java.lang.Iterable values) { + public Builder addAllAbnfStrings( + java.lang.Iterable values) { ensureAbnfStringsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, abnfStrings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, abnfStrings_); onChanged(); return this; } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @return This builder for chaining. */ public Builder clearAbnfStrings() { @@ -751,29 +670,24 @@ public Builder clearAbnfStrings() { return this; } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param value The bytes of the abnfStrings to add. * @return This builder for chaining. */ - public Builder addAbnfStringsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAbnfStringsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAbnfStringsIsMutable(); abnfStrings_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -786,12 +700,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) private static final com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar(); } @@ -800,28 +714,27 @@ public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ABNFGrammar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ABNFGrammar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -836,15 +749,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int PHRASE_SETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") 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
@@ -858,8 +769,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
@@ -869,13 +778,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
@@ -889,8 +796,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
@@ -904,8 +809,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
@@ -915,54 +818,43 @@ 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;
-
   @SuppressWarnings("serial")
   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. */ @@ -970,29 +862,23 @@ 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; - @SuppressWarnings("serial") 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
@@ -1007,8 +893,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
@@ -1019,13 +903,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
@@ -1040,8 +922,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
@@ -1056,8 +936,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
@@ -1068,15 +946,14 @@ 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);
   }
 
   public static final int ABNF_GRAMMAR_FIELD_NUMBER = 4;
   private com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnfGrammar_;
   /**
-   *
-   *
    * 
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -1084,7 +961,6 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder
    * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return Whether the abnfGrammar field is set. */ @java.lang.Override @@ -1092,8 +968,6 @@ public boolean hasAbnfGrammar() { return abnfGrammar_ != null; } /** - * - * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -1101,18 +975,13 @@ public boolean hasAbnfGrammar() {
    * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return The abnfGrammar. */ @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getAbnfGrammar() { - return abnfGrammar_ == null - ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() - : abnfGrammar_; + return abnfGrammar_ == null ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_; } /** - * - * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -1122,15 +991,11 @@ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getAbnfGrammar()
    * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder
-      getAbnfGrammarOrBuilder() {
-    return abnfGrammar_ == null
-        ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()
-        : abnfGrammar_;
+  public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder getAbnfGrammarOrBuilder() {
+    return abnfGrammar_ == null ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1142,7 +1007,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));
     }
@@ -1165,7 +1031,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;
@@ -1176,10 +1043,12 @@ 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));
     }
     if (abnfGrammar_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAbnfGrammar());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getAbnfGrammar());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1189,20 +1058,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.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 (hasAbnfGrammar() != other.hasAbnfGrammar()) return false;
     if (hasAbnfGrammar()) {
-      if (!getAbnfGrammar().equals(other.getAbnfGrammar())) return false;
+      if (!getAbnfGrammar()
+          .equals(other.getAbnfGrammar())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -1236,136 +1108,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1395,9 +1261,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 @@ -1416,12 +1282,9 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1455,8 +1318,9 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1.SpeechAdaptat private void buildPartial0(com.google.cloud.speech.v1.SpeechAdaptation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000008) != 0)) { - result.abnfGrammar_ = - abnfGrammarBuilder_ == null ? abnfGrammar_ : abnfGrammarBuilder_.build(); + result.abnfGrammar_ = abnfGrammarBuilder_ == null + ? abnfGrammar_ + : abnfGrammarBuilder_.build(); } } @@ -1464,39 +1328,38 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechAdaptation result) { 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; @@ -1523,10 +1386,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_); } @@ -1560,10 +1422,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_); } @@ -1598,52 +1459,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1.PhraseSet m = - input.readMessage( - com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry); - if (phraseSetsBuilder_ == null) { - ensurePhraseSetsIsMutable(); - phraseSets_.add(m); - } else { - phraseSetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePhraseSetReferencesIsMutable(); - phraseSetReferences_.add(s); - break; - } // case 18 - case 26: - { - com.google.cloud.speech.v1.CustomClass m = - input.readMessage( - com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry); - if (customClassesBuilder_ == null) { - ensureCustomClassesIsMutable(); - customClasses_.add(m); - } else { - customClassesBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - input.readMessage(getAbnfGrammarFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.speech.v1.PhraseSet m = + input.readMessage( + com.google.cloud.speech.v1.PhraseSet.parser(), + extensionRegistry); + if (phraseSetsBuilder_ == null) { + ensurePhraseSetsIsMutable(); + phraseSets_.add(m); + } else { + phraseSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePhraseSetReferencesIsMutable(); + phraseSetReferences_.add(s); + break; + } // case 18 + case 26: { + com.google.cloud.speech.v1.CustomClass m = + input.readMessage( + com.google.cloud.speech.v1.CustomClass.parser(), + extensionRegistry); + if (customClassesBuilder_ == null) { + ensureCustomClassesIsMutable(); + customClasses_.add(m); + } else { + customClassesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + input.readMessage( + getAbnfGrammarFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1653,28 +1513,21 @@ public Builder mergeFrom( } // finally 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
@@ -1691,8 +1544,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
@@ -1709,8 +1560,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
@@ -1727,8 +1576,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
@@ -1737,7 +1584,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();
@@ -1751,8 +1599,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
@@ -1773,8 +1619,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
@@ -1797,8 +1641,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
@@ -1807,7 +1649,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();
@@ -1821,8 +1664,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
@@ -1831,7 +1672,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());
@@ -1842,8 +1684,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
@@ -1864,8 +1704,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
@@ -1878,7 +1716,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);
@@ -1886,8 +1725,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
@@ -1907,8 +1744,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
@@ -1928,8 +1763,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
@@ -1938,12 +1771,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
@@ -1952,16 +1784,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
@@ -1970,8 +1800,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 {
@@ -1979,8 +1809,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
@@ -1990,12 +1818,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
@@ -2004,13 +1830,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
@@ -2019,76 +1844,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. */ @@ -2096,95 +1906,76 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhraseSetReferences( + int index, java.lang.String value) { + if (value == null) { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPhraseSetReferences( + java.lang.String value) { + if (value == null) { 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() { @@ -2194,22 +1985,17 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPhraseSetReferencesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); @@ -2218,25 +2004,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
@@ -2254,8 +2033,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
@@ -2273,8 +2050,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
@@ -2292,8 +2067,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
@@ -2303,7 +2076,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();
@@ -2317,8 +2091,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
@@ -2340,8 +2112,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
@@ -2365,8 +2135,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
@@ -2376,7 +2144,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();
@@ -2390,8 +2159,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
@@ -2413,8 +2180,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
@@ -2436,8 +2201,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
@@ -2451,7 +2214,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);
@@ -2459,8 +2223,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
@@ -2481,8 +2243,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
@@ -2503,8 +2263,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
@@ -2514,12 +2272,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
@@ -2529,16 +2286,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
@@ -2548,8 +2303,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 {
@@ -2557,8 +2312,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
@@ -2569,12 +2322,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
@@ -2584,13 +2335,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
@@ -2600,22 +2350,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(),
@@ -2627,13 +2371,8 @@ public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(in
 
     private com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnfGrammar_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar,
-            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder,
-            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder>
-        abnfGrammarBuilder_;
+        com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder> abnfGrammarBuilder_;
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2641,15 +2380,12 @@ public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(in
      * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return Whether the abnfGrammar field is set. */ public boolean hasAbnfGrammar() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2657,21 +2393,16 @@ public boolean hasAbnfGrammar() {
      * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return The abnfGrammar. */ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getAbnfGrammar() { if (abnfGrammarBuilder_ == null) { - return abnfGrammar_ == null - ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() - : abnfGrammar_; + return abnfGrammar_ == null ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_; } else { return abnfGrammarBuilder_.getMessage(); } } /** - * - * *
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2694,8 +2425,6 @@ public Builder setAbnfGrammar(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGr
       return this;
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2716,8 +2445,6 @@ public Builder setAbnfGrammar(
       return this;
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2728,10 +2455,9 @@ public Builder setAbnfGrammar(
      */
     public Builder mergeAbnfGrammar(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar value) {
       if (abnfGrammarBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && abnfGrammar_ != null
-            && abnfGrammar_
-                != com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          abnfGrammar_ != null &&
+          abnfGrammar_ != com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) {
           getAbnfGrammarBuilder().mergeFrom(value);
         } else {
           abnfGrammar_ = value;
@@ -2744,8 +2470,6 @@ public Builder mergeAbnfGrammar(com.google.cloud.speech.v1.SpeechAdaptation.ABNF
       return this;
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2765,8 +2489,6 @@ public Builder clearAbnfGrammar() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2781,8 +2503,6 @@ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder getAbnfGr
       return getAbnfGrammarFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2791,19 +2511,15 @@ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder getAbnfGr
      *
      * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
-    public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder
-        getAbnfGrammarOrBuilder() {
+    public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder getAbnfGrammarOrBuilder() {
       if (abnfGrammarBuilder_ != null) {
         return abnfGrammarBuilder_.getMessageOrBuilder();
       } else {
-        return abnfGrammar_ == null
-            ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()
-            : abnfGrammar_;
+        return abnfGrammar_ == null ?
+            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_;
       }
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2813,24 +2529,21 @@ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder getAbnfGr
      * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar,
-            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder,
-            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder>
+        com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder> 
         getAbnfGrammarFieldBuilder() {
       if (abnfGrammarBuilder_ == null) {
-        abnfGrammarBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar,
-                com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder,
-                com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder>(
-                getAbnfGrammar(), getParentForChildren(), isClean());
+        abnfGrammarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder>(
+                getAbnfGrammar(),
+                getParentForChildren(),
+                isClean());
         abnfGrammar_ = null;
       }
       return abnfGrammarBuilder_;
     }
-
     @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);
     }
 
@@ -2840,12 +2553,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();
   }
@@ -2854,27 +2567,27 @@ 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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  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 {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2889,4 +2602,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v1.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java
similarity index 68%
rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java
rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java
index b0420ecba70f..30c16d3b25ce 100644
--- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java
+++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java
@@ -1,84 +1,62 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License 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;
 
 /**
- *
- *
  * 
  * Information on speech adaptation use in results
  * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptationInfo} */ -public final class SpeechAdaptationInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpeechAdaptationInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechAdaptationInfo) SpeechAdaptationInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpeechAdaptationInfo.newBuilder() to construct. private SpeechAdaptationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeechAdaptationInfo() { timeoutMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpeechAdaptationInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptationInfo.class, - com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptationInfo.class, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder.class); } public static final int ADAPTATION_TIMEOUT_FIELD_NUMBER = 1; private boolean adaptationTimeout_ = false; /** - * - * *
    * Whether there was a timeout when applying speech adaptation. If true,
    * adaptation had no effect in the response transcript.
    * 
* * bool adaptation_timeout = 1; - * * @return The adaptationTimeout. */ @java.lang.Override @@ -87,19 +65,15 @@ public boolean getAdaptationTimeout() { } public static final int TIMEOUT_MESSAGE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object timeoutMessage_ = ""; /** - * - * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; - * * @return The timeoutMessage. */ @java.lang.Override @@ -108,30 +82,30 @@ public java.lang.String getTimeoutMessage() { 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(); timeoutMessage_ = s; return s; } } /** - * - * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; - * * @return The bytes for timeoutMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getTimeoutMessageBytes() { + public com.google.protobuf.ByteString + getTimeoutMessageBytes() { java.lang.Object ref = timeoutMessage_; 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); timeoutMessage_ = b; return b; } else { @@ -140,7 +114,6 @@ public com.google.protobuf.ByteString getTimeoutMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -152,7 +125,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 (adaptationTimeout_ != false) { output.writeBool(1, adaptationTimeout_); } @@ -169,7 +143,8 @@ public int getSerializedSize() { size = 0; if (adaptationTimeout_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, adaptationTimeout_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, adaptationTimeout_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeoutMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, timeoutMessage_); @@ -182,16 +157,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.SpeechAdaptationInfo)) { return super.equals(obj); } - com.google.cloud.speech.v1.SpeechAdaptationInfo other = - (com.google.cloud.speech.v1.SpeechAdaptationInfo) obj; + com.google.cloud.speech.v1.SpeechAdaptationInfo other = (com.google.cloud.speech.v1.SpeechAdaptationInfo) obj; - if (getAdaptationTimeout() != other.getAdaptationTimeout()) return false; - if (!getTimeoutMessage().equals(other.getTimeoutMessage())) return false; + if (getAdaptationTimeout() + != other.getAdaptationTimeout()) return false; + if (!getTimeoutMessage() + .equals(other.getTimeoutMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -204,7 +180,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADAPTATION_TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAdaptationTimeout()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAdaptationTimeout()); hash = (37 * hash) + TIMEOUT_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getTimeoutMessage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -212,136 +189,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.SpeechAdaptationInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.SpeechAdaptationInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.SpeechAdaptationInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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; } /** - * - * *
    * Information on speech adaptation use in results
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptationInfo} */ - 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.SpeechAdaptationInfo) com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptationInfo.class, - com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptationInfo.class, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechAdaptationInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -352,9 +323,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_SpeechAdaptationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; } @java.lang.Override @@ -373,11 +344,8 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfo build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptationInfo buildPartial() { - com.google.cloud.speech.v1.SpeechAdaptationInfo result = - new com.google.cloud.speech.v1.SpeechAdaptationInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.SpeechAdaptationInfo result = new com.google.cloud.speech.v1.SpeechAdaptationInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -396,39 +364,38 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechAdaptationInfo resul 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.SpeechAdaptationInfo) { - return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptationInfo) other); + return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptationInfo)other); } else { super.mergeFrom(other); return this; @@ -436,8 +403,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.SpeechAdaptationInfo other) { - if (other == com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) return this; if (other.getAdaptationTimeout() != false) { setAdaptationTimeout(other.getAdaptationTimeout()); } @@ -472,25 +438,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - adaptationTimeout_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 34: - { - timeoutMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + adaptationTimeout_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 34: { + timeoutMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,20 +463,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean adaptationTimeout_; + private boolean adaptationTimeout_ ; /** - * - * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; - * * @return The adaptationTimeout. */ @java.lang.Override @@ -521,35 +480,29 @@ public boolean getAdaptationTimeout() { return adaptationTimeout_; } /** - * - * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; - * * @param value The adaptationTimeout to set. * @return This builder for chaining. */ public Builder setAdaptationTimeout(boolean value) { - + adaptationTimeout_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; - * * @return This builder for chaining. */ public Builder clearAdaptationTimeout() { @@ -561,21 +514,19 @@ public Builder clearAdaptationTimeout() { private java.lang.Object timeoutMessage_ = ""; /** - * - * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; - * * @return The timeoutMessage. */ public java.lang.String getTimeoutMessage() { java.lang.Object ref = timeoutMessage_; 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(); timeoutMessage_ = s; return s; @@ -584,22 +535,21 @@ public java.lang.String getTimeoutMessage() { } } /** - * - * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; - * * @return The bytes for timeoutMessage. */ - public com.google.protobuf.ByteString getTimeoutMessageBytes() { + public com.google.protobuf.ByteString + getTimeoutMessageBytes() { java.lang.Object ref = timeoutMessage_; 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); timeoutMessage_ = b; return b; } else { @@ -607,37 +557,30 @@ public com.google.protobuf.ByteString getTimeoutMessageBytes() { } } /** - * - * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; - * * @param value The timeoutMessage to set. * @return This builder for chaining. */ - public Builder setTimeoutMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTimeoutMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } timeoutMessage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; - * * @return This builder for chaining. */ public Builder clearTimeoutMessage() { @@ -647,31 +590,27 @@ public Builder clearTimeoutMessage() { return this; } /** - * - * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; - * * @param value The bytes for timeoutMessage to set. * @return This builder for chaining. */ - public Builder setTimeoutMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTimeoutMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); timeoutMessage_ = value; bitField0_ |= 0x00000002; 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); } @@ -681,12 +620,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.SpeechAdaptationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechAdaptationInfo) private static final com.google.cloud.speech.v1.SpeechAdaptationInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.SpeechAdaptationInfo(); } @@ -695,27 +634,27 @@ public static com.google.cloud.speech.v1.SpeechAdaptationInfo getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechAdaptationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechAdaptationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -730,4 +669,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechAdaptationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java similarity index 58% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java index da65be18b760..7be8c26b1e8b 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.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/cloud_speech.proto package com.google.cloud.speech.v1; -public interface SpeechAdaptationInfoOrBuilder - extends +public interface SpeechAdaptationInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechAdaptationInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Whether there was a timeout when applying speech adaptation. If true,
    * adaptation had no effect in the response transcript.
    * 
* * bool adaptation_timeout = 1; - * * @return The adaptationTimeout. */ boolean getAdaptationTimeout(); /** - * - * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; - * * @return The timeoutMessage. */ java.lang.String getTimeoutMessage(); /** - * - * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; - * * @return The bytes for timeoutMessage. */ - com.google.protobuf.ByteString getTimeoutMessageBytes(); + com.google.protobuf.ByteString + getTimeoutMessageBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java similarity index 82% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java index af5aec644d5e..97607d1d668f 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java +++ b/owl-bot-staging/java-speech/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,11 +158,10 @@ 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);
 
   /**
-   *
-   *
    * 
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -217,13 +169,10 @@ public interface SpeechAdaptationOrBuilder
    * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return Whether the abnfGrammar field is set. */ boolean hasAbnfGrammar(); /** - * - * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -231,13 +180,10 @@ public interface SpeechAdaptationOrBuilder
    * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return The abnfGrammar. */ com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getAbnfGrammar(); /** - * - * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java
new file mode 100644
index 000000000000..314543722847
--- /dev/null
+++ b/owl-bot-staging/java-speech/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,53 +11,48 @@
  *
  * 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
   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
@@ -90,15 +68,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
@@ -114,15 +90,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
@@ -138,7 +111,6 @@ public int getPhrasesCount() {
    * 
* * repeated string phrases = 1; - * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -146,8 +118,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
@@ -163,19 +133,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_ = 0F; /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -188,7 +156,6 @@ public com.google.protobuf.ByteString getPhrasesBytes(int index) {
    * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -197,7 +164,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +175,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)); } @@ -234,7 +201,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -244,16 +212,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -270,110 +240,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) + getUnknownFields().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.
@@ -381,32 +345,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -418,9 +383,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
@@ -439,12 +404,9 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -468,39 +430,38 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechContext result) {
     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;
@@ -548,26 +509,23 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensurePhrasesIsMutable();
-                phrases_.add(s);
-                break;
-              } // case 10
-            case 37:
-              {
-                boost_ = input.readFloat();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 37
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensurePhrasesIsMutable();
+              phrases_.add(s);
+              break;
+            } // case 10
+            case 37: {
+              boost_ = input.readFloat();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 37
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -577,21 +535,16 @@ public Builder mergeFrom(
       } // finally
       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
@@ -607,15 +560,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
@@ -631,15 +582,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
@@ -655,7 +603,6 @@ public int getPhrasesCount() {
      * 
* * repeated string phrases = 1; - * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -663,8 +610,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
@@ -680,16 +625,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
@@ -705,23 +648,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhrases( + int index, java.lang.String value) { + if (value == null) { 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
@@ -737,22 +676,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPhrases( + java.lang.String value) { + if (value == null) { 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
@@ -768,19 +703,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
@@ -796,7 +730,6 @@ public Builder addAllPhrases(java.lang.Iterable values) {
      * 
* * repeated string phrases = 1; - * * @return This builder for chaining. */ public Builder clearPhrases() { @@ -806,8 +739,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
@@ -823,14 +754,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPhrasesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePhrasesIsMutable(); phrases_.add(value); @@ -838,10 +767,8 @@ public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { 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
@@ -854,7 +781,6 @@ public Builder addPhrasesBytes(com.google.protobuf.ByteString value) {
      * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -862,8 +788,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
@@ -876,20 +800,17 @@ public float getBoost() {
      * 
* * float boost = 4; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000002; 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
@@ -902,7 +823,6 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; - * * @return This builder for chaining. */ public Builder clearBoost() { @@ -911,9 +831,9 @@ public Builder clearBoost() { 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); } @@ -923,12 +843,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(); } @@ -937,27 +857,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -972,4 +892,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java similarity index 85% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java index a529f04289b7..97fbd87c39aa 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java new file mode 100644 index 000000000000..94eb2eab65a3 --- /dev/null +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java @@ -0,0 +1,427 @@ +// 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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_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\"\355\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\022L\n\026speech_adaptation_info\030\007 " + + "\001(\0132,.google.cloud.speech.v1.SpeechAdapt" + + "ationInfo\022\022\n\nrequest_id\030\010 \001(\003\"\351\002\n\034LongRu" + + "nningRecognizeResponse\022@\n\007results\030\002 \003(\0132" + + "/.google.cloud.speech.v1.SpeechRecogniti" + + "onResult\0224\n\021total_billed_time\030\003 \001(\0132\031.go" + + "ogle.protobuf.Duration\022E\n\routput_config\030" + + "\006 \001(\0132..google.cloud.speech.v1.Transcrip" + + "tOutputConfig\022(\n\014output_error\030\007 \001(\0132\022.go" + + "ogle.rpc.Status\022L\n\026speech_adaptation_inf" + + "o\030\010 \001(\0132,.google.cloud.speech.v1.SpeechA" + + "daptationInfo\022\022\n\nrequest_id\030\t \001(\003\"\260\001\n\034Lo" + + "ngRunningRecognizeMetadata\022\030\n\020progress_p" + + "ercent\030\001 \001(\005\022.\n\nstart_time\030\002 \001(\0132\032.googl" + + "e.protobuf.Timestamp\0224\n\020last_update_time" + + "\030\003 \001(\0132\032.google.protobuf.Timestamp\022\020\n\003ur" + + "i\030\004 \001(\tB\003\340A\003\"\311\003\n\032StreamingRecognizeRespo" + + "nse\022!\n\005error\030\001 \001(\0132\022.google.rpc.Status\022C" + + "\n\007results\030\002 \003(\01322.google.cloud.speech.v1" + + ".StreamingRecognitionResult\022]\n\021speech_ev" + + "ent_type\030\004 \001(\0162B.google.cloud.speech.v1." + + "StreamingRecognizeResponse.SpeechEventTy" + + "pe\0224\n\021total_billed_time\030\005 \001(\0132\031.google.p" + + "rotobuf.Duration\022L\n\026speech_adaptation_in" + + "fo\030\t \001(\0132,.google.cloud.speech.v1.Speech" + + "AdaptationInfo\022\022\n\nrequest_id\030\n \001(\003\"L\n\017Sp" + + "eechEventType\022\034\n\030SPEECH_EVENT_UNSPECIFIE" + + "D\020\000\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\362\001\n\032Str" + + "eamingRecognitionResult\022J\n\014alternatives\030" + + "\001 \003(\01324.google.cloud.speech.v1.SpeechRec" + + "ognitionAlternative\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\"\312\001" + + "\n\027SpeechRecognitionResult\022J\n\014alternative" + + "s\030\001 \003(\01324.google.cloud.speech.v1.SpeechR" + + "ecognitionAlternative\022\023\n\013channel_tag\030\002 \001" + + "(\005\0222\n\017result_end_time\030\004 \001(\0132\031.google.pro" + + "tobuf.Duration\022\032\n\rlanguage_code\030\005 \001(\tB\003\340" + + "A\003\"w\n\034SpeechRecognitionAlternative\022\022\n\ntr" + + "anscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022/\n\005wo" + + "rds\030\003 \003(\0132 .google.cloud.speech.v1.WordI" + + "nfo\"\242\001\n\010WordInfo\022-\n\nstart_time\030\001 \001(\0132\031.g" + + "oogle.protobuf.Duration\022+\n\010end_time\030\002 \001(" + + "\0132\031.google.protobuf.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\003\"K\n\024SpeechAdaptationInfo\022\032\n\022adap" + + "tation_timeout\030\001 \001(\010\022\027\n\017timeout_message\030" + + "\004 \001(\t2\321\004\n\006Speech\022\220\001\n\tRecognize\022(.google." + + "cloud.speech.v1.RecognizeRequest\032).googl" + + "e.cloud.speech.v1.RecognizeResponse\".\202\323\344" + + "\223\002\031\"\024/v1/speech:recognize:\001*\332A\014config,au" + + "dio\022\344\001\n\024LongRunningRecognize\0223.google.cl" + + "oud.speech.v1.LongRunningRecognizeReques" + + "t\032\035.google.longrunning.Operation\"x\202\323\344\223\002$" + + "\"\037/v1/speech:longrunningrecognize:\001*\332A\014c" + + "onfig,audio\312A<\n\034LongRunningRecognizeResp" + + "onse\022\034LongRunningRecognizeMetadata\022\201\001\n\022S" + + "treamingRecognize\0221.google.cloud.speech." + + "v1.StreamingRecognizeRequest\0322.google.cl" + + "oud.speech.v1.StreamingRecognizeResponse" + + "\"\000(\0010\001\032I\312A\025speech.googleapis.com\322A.https" + + "://www.googleapis.com/auth/cloud-platfor" + + "mBr\n\032com.google.cloud.speech.v1B\013SpeechP" + + "rotoP\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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") 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
@@ -83,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string transcript = 1; - * * @return The transcript. */ @java.lang.Override @@ -92,15 +69,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
@@ -109,15 +85,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 { @@ -128,8 +105,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_ = 0F; /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -141,7 +116,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -150,12 +124,9 @@ public float getConfidence() { } public static final int WORDS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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
@@ -169,8 +140,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
@@ -180,13 +149,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
@@ -200,8 +167,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
@@ -215,8 +180,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
@@ -226,12 +189,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;
@@ -243,7 +206,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_);
     }
@@ -266,10 +230,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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -279,18 +245,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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -305,7 +273,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();
@@ -316,136 +285,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -463,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_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 @@ -484,18 +446,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1.SpeechRecognitionAlternative result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1.SpeechRecognitionAlternative result) { if (wordsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -521,39 +479,38 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechRecognitionAlternati 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; @@ -561,8 +518,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_; bitField0_ |= 0x00000001; @@ -589,10 +545,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.SpeechRecognitionAlternative wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000004); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWordsFieldBuilder() - : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWordsFieldBuilder() : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -624,38 +579,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - transcript_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: - { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - case 26: - { - com.google.cloud.speech.v1.WordInfo m = - input.readMessage( - com.google.cloud.speech.v1.WordInfo.parser(), extensionRegistry); - if (wordsBuilder_ == null) { - ensureWordsIsMutable(); - words_.add(m); - } else { - wordsBuilder_.addMessage(m); - } - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + transcript_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 26: { + com.google.cloud.speech.v1.WordInfo m = + input.readMessage( + com.google.cloud.speech.v1.WordInfo.parser(), + extensionRegistry); + if (wordsBuilder_ == null) { + ensureWordsIsMutable(); + words_.add(m); + } else { + wordsBuilder_.addMessage(m); + } + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -665,13 +617,10 @@ public Builder mergeFrom( } // finally 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
@@ -680,13 +629,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; @@ -695,8 +644,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
@@ -705,14 +652,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 { @@ -720,8 +668,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
@@ -730,22 +676,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTranscript( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } transcript_ = value; bitField0_ |= 0x00000001; 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
@@ -754,7 +696,6 @@ public Builder setTranscript(java.lang.String value) {
      * 
* * string transcript = 1; - * * @return This builder for chaining. */ public Builder clearTranscript() { @@ -764,8 +705,6 @@ public Builder clearTranscript() { 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,14 +713,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTranscriptBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); transcript_ = value; bitField0_ |= 0x00000001; @@ -789,10 +726,8 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { 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
@@ -804,7 +739,6 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -812,8 +746,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
@@ -825,20 +757,17 @@ public float getConfidence() {
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000002; 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
@@ -850,7 +779,6 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -861,24 +789,18 @@ public Builder clearConfidence() { } private java.util.List words_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000004; - } + } } 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
@@ -895,8 +817,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
@@ -913,8 +833,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
@@ -931,8 +849,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
@@ -941,7 +857,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();
@@ -955,8 +872,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
@@ -977,8 +892,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
@@ -1001,8 +914,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
@@ -1011,7 +922,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();
@@ -1025,8 +937,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
@@ -1035,7 +945,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());
@@ -1046,8 +957,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
@@ -1068,8 +977,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
@@ -1082,7 +989,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);
@@ -1090,8 +998,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
@@ -1111,8 +1017,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
@@ -1132,8 +1036,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
@@ -1142,12 +1044,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
@@ -1156,16 +1057,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
@@ -1174,8 +1073,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 {
@@ -1183,8 +1082,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
@@ -1194,12 +1091,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
@@ -1208,13 +1103,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
@@ -1223,29 +1117,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_ & 0x00000004) != 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_ & 0x00000004) != 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);
     }
 
@@ -1255,12 +1147,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();
   }
@@ -1269,27 +1161,27 @@ 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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  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 {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1304,4 +1196,6 @@ public com.google.protobuf.Parser getParserForType
   public com.google.cloud.speech.v1.SpeechRecognitionAlternative getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
similarity index 78%
rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
index 058f60aa9d01..90fecb6d97c4 100644
--- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
+++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
similarity index 75%
rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
index cec60f257c60..35e9bd85f0b2 100644
--- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
+++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private java.util.List alternatives_; /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -85,13 +63,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`).
@@ -102,13 +77,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`).
@@ -123,8 +96,6 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -139,8 +110,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`).
@@ -159,8 +128,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int CHANNEL_TAG_FIELD_NUMBER = 2;
   private int channelTag_ = 0;
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -168,7 +135,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ @java.lang.Override @@ -179,15 +145,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 @@ -195,26 +158,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.
@@ -224,18 +180,13 @@ public com.google.protobuf.Duration getResultEndTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
-    return resultEndTime_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : resultEndTime_;
+    return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
-
   @SuppressWarnings("serial")
   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
@@ -243,7 +194,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ @java.lang.Override @@ -252,15 +202,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
@@ -268,15 +217,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 { @@ -285,7 +235,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -297,7 +246,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)); } @@ -320,13 +270,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_); @@ -339,21 +292,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -383,135 +339,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -534,9 +484,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 @@ -555,18 +505,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1.SpeechRecognitionResult result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1.SpeechRecognitionResult result) { if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -584,8 +530,9 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechRecognitionResult re result.channelTag_ = channelTag_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.resultEndTime_ = - resultEndTimeBuilder_ == null ? resultEndTime_ : resultEndTimeBuilder_.build(); + result.resultEndTime_ = resultEndTimeBuilder_ == null + ? resultEndTime_ + : resultEndTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.languageCode_ = languageCode_; @@ -596,39 +543,38 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechRecognitionResult re 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; @@ -636,8 +582,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()) { @@ -656,10 +601,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_); } @@ -702,45 +646,42 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1.SpeechRecognitionAlternative m = - input.readMessage( - com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), - extensionRegistry); - if (alternativesBuilder_ == null) { - ensureAlternativesIsMutable(); - alternatives_.add(m); - } else { - alternativesBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: - { - channelTag_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 34: - { - input.readMessage(getResultEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.speech.v1.SpeechRecognitionAlternative m = + input.readMessage( + com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), + extensionRegistry); + if (alternativesBuilder_ == null) { + ensureAlternativesIsMutable(); + alternatives_.add(m); + } else { + alternativesBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + channelTag_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 34: { + input.readMessage( + getResultEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -750,30 +691,21 @@ public Builder mergeFrom( } // finally 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`).
@@ -783,8 +715,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 {
@@ -792,8 +723,6 @@ private void ensureAlternativesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -811,8 +740,6 @@ public int getAlternativesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -830,8 +757,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`).
@@ -856,8 +781,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -868,8 +791,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());
@@ -880,8 +802,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -905,8 +825,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`).
@@ -931,8 +849,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -954,8 +870,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -966,8 +880,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());
@@ -978,8 +891,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -990,11 +901,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);
@@ -1002,8 +913,6 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1024,8 +933,6 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1046,8 +953,6 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1062,8 +967,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`).
@@ -1073,17 +976,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`).
@@ -1093,9 +993,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 {
@@ -1103,8 +1002,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`).
@@ -1114,14 +1011,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`).
@@ -1133,13 +1027,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`).
@@ -1149,32 +1040,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.
@@ -1182,7 +1068,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ @java.lang.Override @@ -1190,8 +1075,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.
@@ -1199,20 +1082,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1220,7 +1100,6 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; - * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1232,49 +1111,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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.
@@ -1296,8 +1162,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.
@@ -1305,7 +1169,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();
       } else {
@@ -1316,8 +1181,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.
@@ -1327,9 +1190,9 @@ public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForV
      */
     public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && resultEndTime_ != null
-            && resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          resultEndTime_ != null &&
+          resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndTimeBuilder().mergeFrom(value);
         } else {
           resultEndTime_ = value;
@@ -1342,8 +1205,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.
@@ -1362,8 +1223,6 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1377,8 +1236,6 @@ public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1390,14 +1247,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.
@@ -1406,17 +1260,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_;
@@ -1424,8 +1275,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
@@ -1433,13 +1282,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; @@ -1448,8 +1297,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
@@ -1457,14 +1304,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 { @@ -1472,8 +1320,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
@@ -1481,22 +1327,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000008; 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
@@ -1504,7 +1346,6 @@ 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() { @@ -1514,8 +1355,6 @@ public Builder clearLanguageCode() { 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
@@ -1523,23 +1362,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000008; 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); } @@ -1549,12 +1386,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(); } @@ -1563,27 +1400,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1598,4 +1435,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java similarity index 83% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java index 50085b974066..aa2bef7b69e6 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java new file mode 100644 index 000000000000..9efbe77cc9c8 --- /dev/null +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java @@ -0,0 +1,135 @@ +// 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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_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}\"\275\002\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.CustomClass\022J\n" + + "\014abnf_grammar\030\004 \001(\01324.google.cloud.speec" + + "h.v1.SpeechAdaptation.ABNFGrammar\032#\n\013ABN" + + "FGrammar\022\024\n\014abnf_strings\030\001 \003(\tBz\n\032com.go" + + "ogle.cloud.speech.v1B\023SpeechResourceProt" + + "oP\001Z * Provides information to the recognizer that specifies how to process the * request. @@ -28,58 +11,52 @@ * * 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; } - - 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 @@ -87,49 +64,34 @@ 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() { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 2; private boolean singleUtterance_ = false; /** - * - * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -152,7 +114,6 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * bool single_utterance = 2; - * * @return The singleUtterance. */ @java.lang.Override @@ -163,8 +124,6 @@ public boolean getSingleUtterance() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 3; private boolean interimResults_ = false; /** - * - * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -173,7 +132,6 @@ public boolean getSingleUtterance() {
    * 
* * bool interim_results = 3; - * * @return The interimResults. */ @java.lang.Override @@ -182,7 +140,6 @@ public boolean getInterimResults() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,7 +151,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()); } @@ -214,13 +172,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -230,20 +191,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -260,113 +223,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) + getUnknownFields().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.
@@ -374,32 +331,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -415,9 +373,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
@@ -436,11 +394,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v1.StreamingRecognitionConfig result = new com.google.cloud.speech.v1.StreamingRecognitionConfig(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -448,7 +403,9 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognitionConfig result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
+        result.config_ = configBuilder_ == null
+            ? config_
+            : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.singleUtterance_ = singleUtterance_;
@@ -462,39 +419,38 @@ private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognitionConfig
     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;
@@ -502,8 +458,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());
       }
@@ -539,31 +494,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                singleUtterance_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 24:
-              {
-                interimResults_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              singleUtterance_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 24: {
+              interimResults_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -573,66 +526,46 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * 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) { @@ -648,18 +581,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(); } else { @@ -670,22 +600,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 (((bitField0_ & 0x00000001) != 0) - && config_ != null - && config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + config_ != null && + config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -698,16 +624,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -720,16 +642,12 @@ 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() { bitField0_ |= 0x00000001; @@ -737,59 +655,45 @@ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { 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
@@ -812,7 +716,6 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * bool single_utterance = 2; - * * @return The singleUtterance. */ @java.lang.Override @@ -820,8 +723,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
@@ -844,20 +745,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -880,7 +778,6 @@ public Builder setSingleUtterance(boolean value) {
      * 
* * bool single_utterance = 2; - * * @return This builder for chaining. */ public Builder clearSingleUtterance() { @@ -890,10 +787,8 @@ public Builder clearSingleUtterance() { 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
@@ -902,7 +797,6 @@ public Builder clearSingleUtterance() {
      * 
* * bool interim_results = 3; - * * @return The interimResults. */ @java.lang.Override @@ -910,8 +804,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
@@ -920,20 +812,17 @@ 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -942,7 +831,6 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 3; - * * @return This builder for chaining. */ public Builder clearInterimResults() { @@ -951,9 +839,9 @@ public Builder clearInterimResults() { 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); } @@ -963,12 +851,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(); } @@ -977,27 +865,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1012,4 +900,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java index 7b3064599957..8c5cfecdc1c5 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java similarity index 76% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java index 1ee89c35cdc8..8b0f758aa248 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java +++ b/owl-bot-staging/java-speech/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,37 +27,33 @@ 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
   private java.util.List alternatives_;
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -86,13 +64,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`).
@@ -103,13 +78,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`).
@@ -124,8 +97,6 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -140,8 +111,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`).
@@ -160,8 +129,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int IS_FINAL_FIELD_NUMBER = 2;
   private boolean isFinal_ = false;
   /**
-   *
-   *
    * 
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -171,7 +138,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * bool is_final = 2; - * * @return The isFinal. */ @java.lang.Override @@ -182,8 +148,6 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_ = 0F; /** - * - * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -193,7 +157,6 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; - * * @return The stability. */ @java.lang.Override @@ -204,15 +167,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 @@ -220,26 +180,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.
@@ -249,16 +202,12 @@ public com.google.protobuf.Duration getResultEndTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
-    return resultEndTime_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : resultEndTime_;
+    return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
   }
 
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_ = 0;
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -266,7 +215,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ @java.lang.Override @@ -275,12 +223,9 @@ public int getChannelTag() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; - @SuppressWarnings("serial") 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
@@ -288,7 +233,6 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ @java.lang.Override @@ -297,15 +241,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
@@ -313,15 +256,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 { @@ -330,7 +274,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -342,7 +285,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)); } @@ -371,19 +315,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_); @@ -396,24 +345,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -430,9 +384,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(); @@ -447,104 +403,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.
@@ -552,32 +500,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -602,9 +551,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
@@ -623,18 +572,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v1.StreamingRecognitionResult result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v1.StreamingRecognitionResult result) {
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -655,8 +600,9 @@ private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognitionResult
         result.stability_ = stability_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.resultEndTime_ =
-            resultEndTimeBuilder_ == null ? resultEndTime_ : resultEndTimeBuilder_.build();
+        result.resultEndTime_ = resultEndTimeBuilder_ == null
+            ? resultEndTime_
+            : resultEndTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.channelTag_ = channelTag_;
@@ -670,39 +616,38 @@ private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognitionResult
     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;
@@ -710,8 +655,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()) {
@@ -730,10 +674,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_);
           }
@@ -782,57 +725,52 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.speech.v1.SpeechRecognitionAlternative m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(),
-                        extensionRegistry);
-                if (alternativesBuilder_ == null) {
-                  ensureAlternativesIsMutable();
-                  alternatives_.add(m);
-                } else {
-                  alternativesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 16:
-              {
-                isFinal_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 29:
-              {
-                stability_ = input.readFloat();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 29
-            case 34:
-              {
-                input.readMessage(getResultEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 40:
-              {
-                channelTag_ = input.readInt32();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-            case 50:
-              {
-                languageCode_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.speech.v1.SpeechRecognitionAlternative m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(),
+                      extensionRegistry);
+              if (alternativesBuilder_ == null) {
+                ensureAlternativesIsMutable();
+                alternatives_.add(m);
+              } else {
+                alternativesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 16: {
+              isFinal_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 29: {
+              stability_ = input.readFloat();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 29
+            case 34: {
+              input.readMessage(
+                  getResultEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 40: {
+              channelTag_ = input.readInt32();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            case 50: {
+              languageCode_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -842,30 +780,21 @@ public Builder mergeFrom(
       } // finally
       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`).
@@ -875,8 +804,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 {
@@ -884,8 +812,6 @@ private void ensureAlternativesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -903,8 +829,6 @@ public int getAlternativesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -922,8 +846,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`).
@@ -948,8 +870,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -960,8 +880,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());
@@ -972,8 +891,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -997,8 +914,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`).
@@ -1023,8 +938,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1046,8 +959,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1058,8 +969,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());
@@ -1070,8 +980,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1082,11 +990,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);
@@ -1094,8 +1002,6 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1116,8 +1022,6 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1138,8 +1042,6 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1154,8 +1056,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`).
@@ -1165,17 +1065,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`).
@@ -1185,9 +1082,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 {
@@ -1195,8 +1091,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`).
@@ -1206,14 +1100,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`).
@@ -1225,13 +1116,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`).
@@ -1241,32 +1129,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
@@ -1276,7 +1159,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      * 
* * bool is_final = 2; - * * @return The isFinal. */ @java.lang.Override @@ -1284,8 +1166,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
@@ -1295,20 +1175,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1318,7 +1195,6 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; - * * @return This builder for chaining. */ public Builder clearIsFinal() { @@ -1328,10 +1204,8 @@ public Builder clearIsFinal() { 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
@@ -1341,7 +1215,6 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; - * * @return The stability. */ @java.lang.Override @@ -1349,8 +1222,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
@@ -1360,20 +1231,17 @@ public float getStability() {
      * 
* * float stability = 3; - * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; bitField0_ |= 0x00000004; 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
@@ -1383,7 +1251,6 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; - * * @return This builder for chaining. */ public Builder clearStability() { @@ -1395,49 +1262,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 ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * 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.
@@ -1459,8 +1313,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.
@@ -1468,7 +1320,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();
       } else {
@@ -1479,8 +1332,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.
@@ -1490,9 +1341,9 @@ public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForV
      */
     public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && resultEndTime_ != null
-            && resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          resultEndTime_ != null &&
+          resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndTimeBuilder().mergeFrom(value);
         } else {
           resultEndTime_ = value;
@@ -1505,8 +1356,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.
@@ -1525,8 +1374,6 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1540,8 +1387,6 @@ public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1553,14 +1398,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.
@@ -1569,26 +1411,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.
@@ -1596,7 +1433,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ @java.lang.Override @@ -1604,8 +1440,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.
@@ -1613,20 +1447,17 @@ 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1634,7 +1465,6 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; - * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1646,8 +1476,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
@@ -1655,13 +1483,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; @@ -1670,8 +1498,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
@@ -1679,14 +1505,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 { @@ -1694,8 +1521,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
@@ -1703,22 +1528,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000020; 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
@@ -1726,7 +1547,6 @@ 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() { @@ -1736,8 +1556,6 @@ public Builder clearLanguageCode() { 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
@@ -1745,23 +1563,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000020; 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); } @@ -1771,12 +1587,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(); } @@ -1785,27 +1601,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1820,4 +1636,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java similarity index 85% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java index 21ef917f18b9..c44aa1077a0d 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java index d72b525f59ea..66731bd86572 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java +++ b/owl-bot-staging/java-speech/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,56 +14,52 @@
  *
  * 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;
   }
-
-  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;
     }
@@ -96,30 +75,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
@@ -127,7 +101,6 @@ public StreamingRequestCase getStreamingRequestCase() {
    * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; - * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -135,8 +108,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
@@ -144,19 +115,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
@@ -166,18 +134,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
@@ -190,7 +155,6 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig getStreamingConfig(
    * 
* * bytes audio_content = 2; - * * @return Whether the audioContent field is set. */ @java.lang.Override @@ -198,8 +162,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
@@ -212,7 +174,6 @@ public boolean hasAudioContent() {
    * 
* * bytes audio_content = 2; - * * @return The audioContent. */ @java.lang.Override @@ -224,7 +185,6 @@ public com.google.protobuf.ByteString getAudioContent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,13 +196,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_); } getUnknownFields().writeTo(output); } @@ -254,14 +215,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -271,21 +231,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: @@ -319,103 +280,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
@@ -426,32 +380,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -465,9 +420,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
@@ -486,11 +441,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v1.StreamingRecognizeRequest result = new com.google.cloud.speech.v1.StreamingRecognizeRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -503,7 +455,8 @@ private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognizeRequest
     private void buildPartialOneofs(com.google.cloud.speech.v1.StreamingRecognizeRequest result) {
       result.streamingRequestCase_ = streamingRequestCase_;
       result.streamingRequest_ = this.streamingRequest_;
-      if (streamingRequestCase_ == 1 && streamingConfigBuilder_ != null) {
+      if (streamingRequestCase_ == 1 &&
+          streamingConfigBuilder_ != null) {
         result.streamingRequest_ = streamingConfigBuilder_.build();
       }
     }
@@ -512,39 +465,38 @@ private void buildPartialOneofs(com.google.cloud.speech.v1.StreamingRecognizeReq
     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;
@@ -552,23 +504,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.getUnknownFields());
       onChanged();
@@ -596,25 +544,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getStreamingConfigFieldBuilder().getBuilder(), extensionRegistry);
-                streamingRequestCase_ = 1;
-                break;
-              } // case 10
-            case 18:
-              {
-                streamingRequest_ = input.readBytes();
-                streamingRequestCase_ = 2;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getStreamingConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              streamingRequestCase_ = 1;
+              break;
+            } // case 10
+            case 18: {
+              streamingRequest_ = input.readBytes();
+              streamingRequestCase_ = 2;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -624,12 +571,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -642,13 +589,8 @@ public Builder clearStreamingRequest() {
     private int bitField0_;
 
     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
@@ -656,7 +598,6 @@ public Builder clearStreamingRequest() {
      * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; - * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -664,8 +605,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
@@ -673,7 +612,6 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; - * * @return The streamingConfig. */ @java.lang.Override @@ -691,8 +629,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
@@ -715,8 +651,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
@@ -737,8 +671,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
@@ -747,17 +679,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;
         }
@@ -773,8 +700,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
@@ -800,8 +725,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
@@ -810,13 +733,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
@@ -826,8 +746,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 {
@@ -838,8 +757,6 @@ public Builder clearStreamingConfig() {
       }
     }
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -849,20 +766,14 @@ 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());
@@ -874,8 +785,6 @@ public Builder clearStreamingConfig() {
     }
 
     /**
-     *
-     *
      * 
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -888,15 +797,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
@@ -909,7 +815,6 @@ public boolean hasAudioContent() {
      * 
* * bytes audio_content = 2; - * * @return The audioContent. */ public com.google.protobuf.ByteString getAudioContent() { @@ -919,8 +824,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
@@ -933,22 +836,17 @@ 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(); - } + if (value == null) { 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
@@ -961,7 +859,6 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 2; - * * @return This builder for chaining. */ public Builder clearAudioContent() { @@ -972,9 +869,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); } @@ -984,12 +881,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(); } @@ -998,27 +895,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1033,4 +930,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java similarity index 79% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java index 13fc461c9e7b..28ed92b158ab 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java similarity index 75% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java index d35855eadc79..9a06793de786 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java +++ b/owl-bot-staging/java-speech/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,43 +61,39 @@ 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;
   }
-
-  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.
      * 
@@ -124,8 +102,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
@@ -143,8 +119,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * No speech event specified.
      * 
@@ -153,8 +127,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
@@ -169,6 +141,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(
@@ -193,43 +166,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();
@@ -237,7 +206,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;
@@ -257,15 +227,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 @@ -273,15 +240,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 @@ -289,8 +253,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.
@@ -304,12 +266,9 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -324,8 +283,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.
@@ -336,13 +293,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.
@@ -357,8 +312,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.
@@ -373,8 +326,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.
@@ -393,56 +344,38 @@ public com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResults
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 4;
   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; * @return The speechEventType. */ - @java.lang.Override - public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType - getSpeechEventType() { - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.forNumber( - speechEventType_); - return result == null - ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.forNumber(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 @@ -450,26 +383,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.
@@ -479,22 +405,17 @@ public com.google.protobuf.Duration getTotalBilledTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
-    return totalBilledTime_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : totalBilledTime_;
+    return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_;
   }
 
   public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 9;
   private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_;
   /**
-   *
-   *
    * 
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -502,25 +423,18 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } /** - * - * *
    * Provides information on adaptation behavior in response
    * 
@@ -528,25 +442,19 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; */ @java.lang.Override - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 10; private long requestId_ = 0L; /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 10; - * * @return The requestId. */ @java.lang.Override @@ -555,7 +463,6 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -567,17 +474,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) { @@ -599,26 +504,28 @@ 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()); } if (speechAdaptationInfo_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSpeechAdaptationInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, requestId_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(10, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -628,29 +535,33 @@ 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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo() + .equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() != other.getRequestId()) return false; + if (getRequestId() + != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -681,111 +592,104 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } 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`
@@ -827,32 +731,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -885,9 +790,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,18 +811,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v1.StreamingRecognizeResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v1.StreamingRecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000002) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -932,20 +833,22 @@ private void buildPartialRepeatedFields(
     private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
+        result.error_ = errorBuilder_ == null
+            ? error_
+            : errorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.speechEventType_ = speechEventType_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.totalBilledTime_ =
-            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
+            ? totalBilledTime_
+            : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.speechAdaptationInfo_ =
-            speechAdaptationInfoBuilder_ == null
-                ? speechAdaptationInfo_
-                : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
+            ? speechAdaptationInfo_
+            : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.requestId_ = requestId_;
@@ -956,39 +859,38 @@ private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognizeResponse
     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;
@@ -996,8 +898,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());
       }
@@ -1019,10 +920,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognizeResponse o
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            resultsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getResultsFieldBuilder()
-                    : null;
+            resultsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getResultsFieldBuilder() : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -1066,58 +966,56 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.cloud.speech.v1.StreamingRecognitionResult m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1.StreamingRecognitionResult.parser(),
-                        extensionRegistry);
-                if (resultsBuilder_ == null) {
-                  ensureResultsIsMutable();
-                  results_.add(m);
-                } else {
-                  resultsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 32:
-              {
-                speechEventType_ = input.readEnum();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 32
-            case 42:
-              {
-                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 42
-            case 74:
-              {
-                input.readMessage(
-                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 74
-            case 80:
-              {
-                requestId_ = input.readInt64();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 80
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getErrorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              com.google.cloud.speech.v1.StreamingRecognitionResult m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.StreamingRecognitionResult.parser(),
+                      extensionRegistry);
+              if (resultsBuilder_ == null) {
+                ensureResultsIsMutable();
+                results_.add(m);
+              } else {
+                resultsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 32: {
+              speechEventType_ = input.readEnum();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 32
+            case 42: {
+              input.readMessage(
+                  getTotalBilledTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 42
+            case 74: {
+              input.readMessage(
+                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 74
+            case 80: {
+              requestId_ = input.readInt64();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 80
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1127,38 +1025,30 @@ public Builder mergeFrom(
       } // finally
       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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * 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() { @@ -1169,8 +1059,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.
@@ -1192,8 +1080,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.
@@ -1201,7 +1087,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();
       } else {
@@ -1212,8 +1099,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.
@@ -1223,9 +1108,9 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
      */
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && error_ != null
-            && error_ != com.google.rpc.Status.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          error_ != null &&
+          error_ != com.google.rpc.Status.getDefaultInstance()) {
           getErrorBuilder().mergeFrom(value);
         } else {
           error_ = value;
@@ -1238,8 +1123,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.
@@ -1258,8 +1141,6 @@ public Builder clearError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1273,8 +1154,6 @@ public com.google.rpc.Status.Builder getErrorBuilder() {
       return getErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1286,12 +1165,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.
@@ -1300,40 +1178,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_ & 0x00000002) != 0)) {
-        results_ =
-            new java.util.ArrayList(
-                results_);
+        results_ = new java.util.ArrayList(results_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     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.
@@ -1351,8 +1221,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.
@@ -1370,8 +1238,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1389,8 +1255,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.
@@ -1415,8 +1279,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.
@@ -1438,8 +1300,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.
@@ -1463,8 +1323,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.
@@ -1489,8 +1347,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.
@@ -1512,8 +1368,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.
@@ -1535,8 +1389,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.
@@ -1547,11 +1399,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);
@@ -1559,8 +1411,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.
@@ -1581,8 +1431,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.
@@ -1603,8 +1451,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.
@@ -1619,8 +1465,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.
@@ -1633,14 +1477,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.
@@ -1650,8 +1491,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 {
@@ -1659,8 +1500,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.
@@ -1671,12 +1510,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.
@@ -1688,13 +1525,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.
@@ -1704,23 +1538,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_ & 0x00000002) != 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_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1728,33 +1559,22 @@ 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. */ @@ -1765,44 +1585,28 @@ public Builder setSpeechEventTypeValue(int value) { 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() { - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.forNumber( - speechEventType_); - return result == null - ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED - : result; + public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.forNumber(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(); } @@ -1812,16 +1616,11 @@ public Builder setSpeechEventType( 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() { @@ -1833,49 +1632,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 ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * 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.
@@ -1897,8 +1683,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.
@@ -1906,7 +1690,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();
       } else {
@@ -1917,8 +1702,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.
@@ -1928,9 +1711,9 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo
      */
     public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       if (totalBilledTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && totalBilledTime_ != null
-            && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          totalBilledTime_ != null &&
+          totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getTotalBilledTimeBuilder().mergeFrom(value);
         } else {
           totalBilledTime_ = value;
@@ -1943,8 +1726,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.
@@ -1963,8 +1744,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.
@@ -1978,8 +1757,6 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() {
       return getTotalBilledTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1991,14 +1768,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.
@@ -2007,17 +1781,14 @@ 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_;
@@ -2025,47 +1796,34 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
 
     private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechAdaptationInfo,
-            com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder,
-            com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>
-        speechAdaptationInfoBuilder_;
+        com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_;
     /**
-     *
-     *
      * 
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -2086,8 +1844,6 @@ public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptati return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -2106,21 +1862,17 @@ public Builder setSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public Builder mergeSpeechAdaptationInfo( - com.google.cloud.speech.v1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && speechAdaptationInfo_ != null - && speechAdaptationInfo_ - != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + speechAdaptationInfo_ != null && + speechAdaptationInfo_ != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -2133,8 +1885,6 @@ public Builder mergeSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -2152,42 +1902,33 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder - getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? + com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -2195,33 +1936,27 @@ public Builder clearSpeechAdaptationInfo() { * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, - com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, - com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), getParentForChildren(), isClean()); + speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), + getParentForChildren(), + isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_; + private long requestId_ ; /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; - * * @return The requestId. */ @java.lang.Override @@ -2229,35 +1964,29 @@ public long getRequestId() { return requestId_; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; - * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -2266,9 +1995,9 @@ public Builder clearRequestId() { 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); } @@ -2278,12 +2007,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(); } @@ -2292,27 +2021,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2327,4 +2056,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java similarity index 85% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java index d047556c57ee..d6bf3c6b1c3f 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/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.
@@ -194,32 +146,24 @@ public interface StreamingRecognizeResponseOrBuilder
   com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** - * - * *
    * Provides information on adaptation behavior in response
    * 
@@ -229,15 +173,12 @@ public interface StreamingRecognizeResponseOrBuilder com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 10; - * * @return The requestId. */ long getRequestId(); diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java index 54abd4a6031d..d06efc0da88b 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java @@ -1,81 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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; } - - 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; } @@ -91,28 +70,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
@@ -120,15 +95,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
@@ -136,7 +108,6 @@ public boolean hasGcsUri() {
    * 
* * string gcs_uri = 1; - * * @return The gcsUri. */ public java.lang.String getGcsUri() { @@ -147,7 +118,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; @@ -156,8 +128,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
@@ -165,17 +135,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; } @@ -186,7 +157,6 @@ public com.google.protobuf.ByteString getGcsUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,7 +168,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_); } @@ -222,18 +193,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: @@ -263,135 +234,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -402,9 +367,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 @@ -423,11 +388,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.TranscriptOutputConfig result = new com.google.cloud.speech.v1.TranscriptOutputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -446,39 +408,38 @@ private void buildPartialOneofs(com.google.cloud.speech.v1.TranscriptOutputConfi 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; @@ -486,20 +447,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.getUnknownFields()); onChanged(); @@ -527,20 +485,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - outputTypeCase_ = 1; - outputType_ = s; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + outputTypeCase_ = 1; + outputType_ = s; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -550,12 +506,12 @@ public Builder mergeFrom( } // finally 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() { @@ -568,8 +524,6 @@ public Builder clearOutputType() { private int bitField0_; /** - * - * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -577,7 +531,6 @@ public Builder clearOutputType() {
      * 
* * string gcs_uri = 1; - * * @return Whether the gcsUri field is set. */ @java.lang.Override @@ -585,8 +538,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
@@ -594,7 +545,6 @@ public boolean hasGcsUri() {
      * 
* * string gcs_uri = 1; - * * @return The gcsUri. */ @java.lang.Override @@ -604,7 +554,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; @@ -615,8 +566,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
@@ -624,18 +573,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; } @@ -645,8 +595,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
@@ -654,22 +602,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGcsUri( + java.lang.String value) { + if (value == null) { 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
@@ -677,7 +621,6 @@ public Builder setGcsUri(java.lang.String value) {
      * 
* * string gcs_uri = 1; - * * @return This builder for chaining. */ public Builder clearGcsUri() { @@ -689,8 +632,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
@@ -698,23 +639,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGcsUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { 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); } @@ -724,12 +663,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(); } @@ -738,27 +677,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -773,4 +712,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.TranscriptOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java similarity index 63% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java index c5255ae7500d..5ce9fd8335aa 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java index 5ae4e26d20f6..45faae6359d4 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java @@ -1,75 +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; } - - 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
@@ -82,10 +62,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 @@ -93,8 +70,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
@@ -107,21 +82,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
@@ -134,28 +102,21 @@ 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() { - return customClass_ == null - ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() : customClass_; } 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 @@ -163,14 +124,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 @@ -178,8 +136,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to be updated.
    * 
@@ -192,7 +148,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +159,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()); } @@ -221,10 +177,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,21 +192,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -275,135 +234,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +375,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 @@ -443,11 +396,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.UpdateCustomClassRequest result = new com.google.cloud.speech.v1.UpdateCustomClassRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -455,11 +405,14 @@ public com.google.cloud.speech.v1.UpdateCustomClassRequest buildPartial() { private void buildPartial0(com.google.cloud.speech.v1.UpdateCustomClassRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.customClass_ = - customClassBuilder_ == null ? customClass_ : customClassBuilder_.build(); + result.customClass_ = customClassBuilder_ == null + ? customClass_ + : customClassBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -467,39 +420,38 @@ private void buildPartial0(com.google.cloud.speech.v1.UpdateCustomClassRequest r 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; @@ -507,8 +459,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()); } @@ -541,25 +492,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCustomClassFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -569,18 +521,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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
@@ -593,18 +539,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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -617,24 +558,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
@@ -647,9 +581,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) { @@ -665,8 +597,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
@@ -679,11 +609,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(); } else { @@ -694,8 +623,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
@@ -708,15 +635,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 (((bitField0_ & 0x00000001) != 0) - && customClass_ != null - && customClass_ != com.google.cloud.speech.v1.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + customClass_ != null && + customClass_ != com.google.cloud.speech.v1.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -729,8 +654,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
@@ -743,9 +666,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -758,8 +679,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
@@ -772,9 +691,7 @@ 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() { bitField0_ |= 0x00000001; @@ -782,8 +699,6 @@ public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassBuilder() { return getCustomClassFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -796,22 +711,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
@@ -824,22 +734,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_; @@ -847,47 +752,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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.
      * 
@@ -908,15 +800,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(); } else { @@ -927,8 +818,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -937,9 +826,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -952,8 +841,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -971,8 +858,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -985,8 +870,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -997,14 +880,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.
      * 
@@ -1012,24 +892,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); } @@ -1039,12 +916,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(); } @@ -1053,27 +930,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1088,4 +965,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.UpdateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java similarity index 73% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java index 884d296e1688..502a36d4010f 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java index 4cd7329df193..d17c351c5f38 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java @@ -1,75 +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; } - - 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
@@ -82,10 +62,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 @@ -93,8 +70,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
@@ -107,21 +82,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
@@ -134,28 +102,21 @@ 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() { - return phraseSet_ == null - ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() : phraseSet_; } 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 @@ -163,14 +124,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 @@ -178,8 +136,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to be updated.
    * 
@@ -192,7 +148,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +159,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()); } @@ -221,10 +177,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,21 +192,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -275,135 +234,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +375,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 @@ -443,11 +396,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.UpdatePhraseSetRequest result = new com.google.cloud.speech.v1.UpdatePhraseSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -455,10 +405,14 @@ public com.google.cloud.speech.v1.UpdatePhraseSetRequest buildPartial() { private void buildPartial0(com.google.cloud.speech.v1.UpdatePhraseSetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build(); + result.phraseSet_ = phraseSetBuilder_ == null + ? phraseSet_ + : phraseSetBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -466,39 +420,38 @@ private void buildPartial0(com.google.cloud.speech.v1.UpdatePhraseSetRequest res 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; @@ -506,8 +459,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()); } @@ -540,25 +492,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getPhraseSetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -568,18 +521,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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
@@ -592,18 +539,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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -616,24 +558,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
@@ -646,9 +581,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) { @@ -664,8 +597,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
@@ -678,11 +609,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(); } else { @@ -693,8 +623,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
@@ -707,15 +635,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 (((bitField0_ & 0x00000001) != 0) - && phraseSet_ != null - && phraseSet_ != com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + phraseSet_ != null && + phraseSet_ != com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -728,8 +654,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
@@ -742,9 +666,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -757,8 +679,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
@@ -771,9 +691,7 @@ 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() { bitField0_ |= 0x00000001; @@ -781,8 +699,6 @@ public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetBuilder() { return getPhraseSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -795,22 +711,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
@@ -823,22 +734,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_; @@ -846,47 +752,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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.
      * 
@@ -907,15 +800,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(); } else { @@ -926,8 +818,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -936,9 +826,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -951,8 +841,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -970,8 +858,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -984,8 +870,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -996,14 +880,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.
      * 
@@ -1011,24 +892,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); } @@ -1038,12 +916,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(); } @@ -1052,27 +930,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1087,4 +965,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.UpdatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java index f4b31a356377..1c70780af975 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java similarity index 76% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java index 5faee23db9dc..b0d7f6277e06 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java @@ -1,77 +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.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; } - - 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.
@@ -82,7 +61,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 @@ -90,8 +68,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.
@@ -102,7 +78,6 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Duration start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -110,8 +85,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.
@@ -131,8 +104,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.
@@ -143,7 +114,6 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -151,8 +121,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.
@@ -163,7 +131,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -171,8 +138,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.
@@ -190,18 +155,14 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
   }
 
   public static final int WORD_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object word_ = "";
   /**
-   *
-   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; - * * @return The word. */ @java.lang.Override @@ -210,29 +171,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 { @@ -243,8 +204,6 @@ public com.google.protobuf.ByteString getWordBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_ = 0F; /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -256,7 +215,6 @@ public com.google.protobuf.ByteString getWordBytes() {
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -267,8 +225,6 @@ public float getConfidence() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_ = 0; /** - * - * *
    * 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
@@ -278,7 +234,6 @@ public float getConfidence() {
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The speakerTag. */ @java.lang.Override @@ -287,7 +242,6 @@ public int getSpeakerTag() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -299,7 +253,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()); } @@ -325,19 +280,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -347,7 +306,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); @@ -356,16 +315,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -388,7 +352,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) + getUnknownFields().hashCode(); @@ -396,135 +361,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -546,9 +506,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 @@ -568,9 +528,7 @@ public com.google.cloud.speech.v1.WordInfo build() { @java.lang.Override public com.google.cloud.speech.v1.WordInfo buildPartial() { com.google.cloud.speech.v1.WordInfo result = new com.google.cloud.speech.v1.WordInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -578,10 +536,14 @@ public com.google.cloud.speech.v1.WordInfo buildPartial() { private void buildPartial0(com.google.cloud.speech.v1.WordInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.word_ = word_; @@ -598,39 +560,38 @@ private void buildPartial0(com.google.cloud.speech.v1.WordInfo result) { 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; @@ -682,43 +643,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - word_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 37: - { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000008; - break; - } // case 37 - case 40: - { - speakerTag_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + word_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 37: { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + case 40: { + speakerTag_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -728,18 +687,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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.
@@ -750,15 +703,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_time = 1; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -769,7 +719,6 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Duration start_time = 1; - * * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { @@ -780,8 +729,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.
@@ -807,8 +754,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.
@@ -820,7 +765,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();
       } else {
@@ -831,8 +777,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.
@@ -846,9 +790,9 @@ public Builder setStartTime(com.google.protobuf.Duration.Builder builderForValue
      */
     public Builder mergeStartTime(com.google.protobuf.Duration value) {
       if (startTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && startTime_ != null
-            && startTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          startTime_ != null &&
+          startTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getStartTimeBuilder().mergeFrom(value);
         } else {
           startTime_ = value;
@@ -861,8 +805,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.
@@ -885,8 +827,6 @@ public Builder clearStartTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -904,8 +844,6 @@ public com.google.protobuf.Duration.Builder getStartTimeBuilder() {
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -921,12 +859,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.
@@ -939,17 +876,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_;
@@ -957,13 +891,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.
@@ -974,15 +903,12 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Duration end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -993,7 +919,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Duration end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { @@ -1004,8 +929,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.
@@ -1031,8 +954,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.
@@ -1044,7 +965,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();
       } else {
@@ -1055,8 +977,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.
@@ -1070,9 +990,9 @@ public Builder setEndTime(com.google.protobuf.Duration.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Duration value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1085,8 +1005,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.
@@ -1109,8 +1027,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1128,8 +1044,6 @@ public com.google.protobuf.Duration.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1145,12 +1059,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.
@@ -1163,17 +1076,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_;
@@ -1181,20 +1091,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; @@ -1203,21 +1111,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 { @@ -1225,35 +1132,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWord( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } word_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @return This builder for chaining. */ public Builder clearWord() { @@ -1263,21 +1163,17 @@ public Builder clearWord() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); word_ = value; bitField0_ |= 0x00000004; @@ -1285,10 +1181,8 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) { 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
@@ -1300,7 +1194,6 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1308,8 +1201,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
@@ -1321,20 +1212,17 @@ public float getConfidence() {
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000008; 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
@@ -1346,7 +1234,6 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -1356,10 +1243,8 @@ public Builder clearConfidence() { 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
@@ -1369,7 +1254,6 @@ public Builder clearConfidence() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The speakerTag. */ @java.lang.Override @@ -1377,8 +1261,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
@@ -1388,20 +1270,17 @@ 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; bitField0_ |= 0x00000010; 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
@@ -1411,7 +1290,6 @@ public Builder setSpeakerTag(int value) {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSpeakerTag() { @@ -1420,9 +1298,9 @@ public Builder clearSpeakerTag() { 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); } @@ -1432,12 +1310,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(); } @@ -1446,27 +1324,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1481,4 +1359,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java similarity index 84% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java index 45ed38fc69e3..f8e889216201 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto similarity index 100% rename from java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto similarity index 100% rename from java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto similarity index 100% rename from java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetEndpoint.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/AsyncCreateCustomClass.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/AsyncCreateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/AsyncCreateCustomClass.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/AsyncCreateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClass.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClass.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/AsyncCreatePhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/AsyncCreatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/AsyncCreatePhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/AsyncCreatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClass.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClass.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/AsyncDeletePhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/AsyncDeletePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/AsyncDeletePhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/AsyncDeletePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetString.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetString.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/AsyncGetCustomClass.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/AsyncGetCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/AsyncGetCustomClass.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/AsyncGetCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClass.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClass.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassString.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassString.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/AsyncGetPhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/AsyncGetPhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/AsyncGetPhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/AsyncGetPhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetString.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetString.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClasses.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClasses.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClasses.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClasses.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClasses.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClasses.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClasses.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClasses.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesString.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesString.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSetPaged.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSetPaged.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSetPaged.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSetPaged.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetLocationname.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetLocationname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetLocationname.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetLocationname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetString.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetString.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClass.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClass.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetEndpoint.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognize.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognize.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognize.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognize.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/AsyncRecognize.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/AsyncRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/AsyncRecognize.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/AsyncRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognize.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognize.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/streamingrecognize/AsyncStreamingRecognize.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/streamingrecognize/AsyncStreamingRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/streamingrecognize/AsyncStreamingRecognize.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/streamingrecognize/AsyncStreamingRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java index 12186ff69359..b92302cdf7ed 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java +++ b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java @@ -29,6 +29,7 @@ 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; diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java index a69615793095..b7cd843849ec 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java +++ b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java @@ -27,6 +27,7 @@ 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; diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java index 8875ab91afdd..526e244c2f61 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java +++ b/owl-bot-staging/java-speech/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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java index f59d35f28317..2d68d09a22f4 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java +++ b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java @@ -28,6 +28,7 @@ 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.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java b/owl-bot-staging/java-speech/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java new file mode 100644 index 000000000000..e41d203e7109 --- /dev/null +++ b/owl-bot-staging/java-speech/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/java-speech/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java b/owl-bot-staging/java-speech/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java new file mode 100644 index 000000000000..5879fdc4465f --- /dev/null +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java index 8b3100d35612..750b4e7e646c 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource where this custom class will be created. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -85,10 +63,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 @@ -97,15 +72,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`
@@ -116,18 +90,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 { @@ -136,12 +109,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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.
@@ -150,7 +120,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The customClassId. */ @java.lang.Override @@ -159,15 +128,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.
@@ -176,15 +144,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 { @@ -195,16 +164,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 @@ -212,44 +176,30 @@ 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() { - return customClass_ == null - ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +211,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_); } @@ -287,7 +238,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -297,19 +249,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -336,136 +290,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -481,9 +428,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 @@ -502,11 +449,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -520,8 +464,9 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CreateCustomClassRe result.customClassId_ = customClassId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.customClass_ = - customClassBuilder_ == null ? customClass_ : customClassBuilder_.build(); + result.customClass_ = customClassBuilder_ == null + ? customClass_ + : customClassBuilder_.build(); } } @@ -529,39 +474,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CreateCustomClassRe 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; @@ -569,8 +513,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_; bitField0_ |= 0x00000001; @@ -610,31 +553,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - customClassId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + customClassId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getCustomClassFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -644,13 +585,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -661,16 +599,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; @@ -679,8 +615,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -691,17 +625,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 { @@ -709,8 +642,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -721,25 +652,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -750,10 +675,7 @@ 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() { @@ -763,8 +685,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -775,17 +695,13 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -795,8 +711,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.
@@ -805,13 +719,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; @@ -820,8 +734,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.
@@ -830,14 +742,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 { @@ -845,8 +758,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.
@@ -855,22 +766,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomClassId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } customClassId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -879,7 +786,6 @@ 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() { @@ -889,8 +795,6 @@ public Builder clearCustomClassId() { return this; } /** - * - * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -899,14 +803,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomClassIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customClassId_ = value; bitField0_ |= 0x00000002; @@ -916,58 +818,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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) { @@ -983,15 +866,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) { @@ -1005,21 +884,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 (((bitField0_ & 0x00000004) != 0) - && customClass_ != null - && customClass_ != com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + customClass_ != null && + customClass_ != com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -1032,15 +907,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1053,15 +924,11 @@ 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() { bitField0_ |= 0x00000004; @@ -1069,55 +936,43 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassBuild 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); } @@ -1127,12 +982,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(); } @@ -1141,27 +996,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1176,4 +1031,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java similarity index 65% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java index 0562cbcf6cdd..a042d191704a 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java index 39ce8dd20734..48b5ef08f546 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource where this phrase set will be created. Format:
    * `projects/{project}/locations/{location}/phraseSets`
@@ -85,10 +63,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 @@ -97,15 +72,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`
@@ -116,18 +90,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 { @@ -136,12 +109,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PHRASE_SET_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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.
@@ -150,7 +120,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The phraseSetId. */ @java.lang.Override @@ -159,15 +128,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.
@@ -176,15 +144,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 { @@ -195,16 +164,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 @@ -212,44 +176,30 @@ 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() { - return phraseSet_ == null - ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +211,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_); } @@ -287,7 +238,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -297,19 +249,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -336,136 +290,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -481,9 +428,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 @@ -502,11 +449,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -520,7 +464,9 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequ result.phraseSetId_ = phraseSetId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build(); + result.phraseSet_ = phraseSetBuilder_ == null + ? phraseSet_ + : phraseSetBuilder_.build(); } } @@ -528,39 +474,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequ 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; @@ -568,8 +513,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_; bitField0_ |= 0x00000001; @@ -609,31 +553,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - phraseSetId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + phraseSetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getPhraseSetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -643,13 +585,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -660,16 +599,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; @@ -678,8 +615,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -690,17 +625,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 { @@ -708,8 +642,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -720,25 +652,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -749,10 +675,7 @@ 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() { @@ -762,8 +685,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -774,17 +695,13 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -794,8 +711,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.
@@ -804,13 +719,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; @@ -819,8 +734,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.
@@ -829,14 +742,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 { @@ -844,8 +758,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.
@@ -854,22 +766,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhraseSetId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } phraseSetId_ = value; bitField0_ |= 0x00000002; 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.
@@ -878,7 +786,6 @@ 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() { @@ -888,8 +795,6 @@ public Builder clearPhraseSetId() { return this; } /** - * - * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -898,14 +803,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhraseSetIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); phraseSetId_ = value; bitField0_ |= 0x00000002; @@ -915,58 +818,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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) { @@ -982,15 +866,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) { @@ -1004,21 +884,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 (((bitField0_ & 0x00000004) != 0) - && phraseSet_ != null - && phraseSet_ != com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + phraseSet_ != null && + phraseSet_ != com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -1031,15 +907,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1052,15 +924,11 @@ 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() { bitField0_ |= 0x00000004; @@ -1068,55 +936,43 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetBuilder() 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); } @@ -1126,12 +982,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(); } @@ -1140,27 +996,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1175,4 +1031,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java similarity index 65% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java index 4b4c85e4a32a..e21aaa6f933a 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java index d064e986a5a3..c788eebef313 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java +++ b/owl-bot-staging/java-speech/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,122 +29,107 @@ 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;
   }
-
-  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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** - * - * *
      * The class item's value.
      * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -171,29 +138,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 { @@ -202,7 +169,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,7 +180,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_); } @@ -238,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.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,94 +233,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 @@ -363,41 +323,39 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -407,9 +365,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 @@ -428,11 +386,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem result = new com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -448,41 +403,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CustomClass.ClassIt 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; @@ -490,8 +442,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_; bitField0_ |= 0x00000001; @@ -523,19 +474,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -545,25 +494,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -572,21 +518,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 { @@ -594,35 +539,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -632,28 +570,23 @@ public Builder clearValue() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -666,12 +599,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(); } @@ -680,28 +613,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -716,21 +648,18 @@ 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name of the custom class.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -739,29 +668,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 { @@ -770,19 +699,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -791,30 +716,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 { @@ -823,12 +748,9 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() { } public static final int ITEMS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List items_; /** - * - * *
    * A collection of class items.
    * 
@@ -840,8 +762,6 @@ public java.util.List g return items_; } /** - * - * *
    * A collection of class items.
    * 
@@ -849,13 +769,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.
    * 
@@ -867,8 +785,6 @@ public int getItemsCount() { return items_.size(); } /** - * - * *
    * A collection of class items.
    * 
@@ -880,8 +796,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int inde return items_.get(index); } /** - * - * *
    * A collection of class items.
    * 
@@ -895,7 +809,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItems } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -907,7 +820,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_); } @@ -933,7 +847,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -943,17 +858,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -978,104 +895,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
@@ -1084,32 +994,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1127,9 +1038,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
@@ -1148,12 +1059,9 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1184,39 +1092,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CustomClass result)
     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;
@@ -1253,10 +1160,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            itemsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getItemsFieldBuilder()
-                    : null;
+            itemsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getItemsFieldBuilder() : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -1288,39 +1194,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                customClassId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.parser(),
-                        extensionRegistry);
-                if (itemsBuilder_ == null) {
-                  ensureItemsIsMutable();
-                  items_.add(m);
-                } else {
-                  itemsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              customClassId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.parser(),
+                      extensionRegistry);
+              if (itemsBuilder_ == null) {
+                ensureItemsIsMutable();
+                items_.add(m);
+              } else {
+                itemsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1330,25 +1232,22 @@ public Builder mergeFrom(
       } // finally
       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; @@ -1357,21 +1256,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 { @@ -1379,35 +1277,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1417,21 +1308,17 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1441,21 +1328,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; @@ -1464,22 +1349,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 { @@ -1487,37 +1371,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomClassId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } customClassId_ = value; bitField0_ |= 0x00000002; 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() { @@ -1527,22 +1404,18 @@ public Builder clearCustomClassId() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomClassIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customClassId_ = value; bitField0_ |= 0x00000002; @@ -1551,26 +1424,18 @@ public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { } private java.util.List items_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - items_ = - new java.util.ArrayList( - items_); + items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000004; - } + } } 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.
      * 
@@ -1585,8 +1450,6 @@ public java.util.List g } } /** - * - * *
      * A collection of class items.
      * 
@@ -1601,8 +1464,6 @@ public int getItemsCount() { } } /** - * - * *
      * A collection of class items.
      * 
@@ -1617,8 +1478,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int inde } } /** - * - * *
      * A collection of class items.
      * 
@@ -1640,8 +1499,6 @@ public Builder setItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1649,8 +1506,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()); @@ -1661,8 +1517,6 @@ public Builder setItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1683,8 +1537,6 @@ public Builder addItems(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1706,8 +1558,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1726,8 +1576,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1735,8 +1583,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()); @@ -1747,8 +1594,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1756,11 +1601,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); @@ -1768,8 +1613,6 @@ public Builder addAllItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1787,8 +1630,6 @@ public Builder clearItems() { return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1806,8 +1647,6 @@ public Builder removeItems(int index) { return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1819,8 +1658,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder getItemsB return getItemsFieldBuilder().getBuilder(index); } /** - * - * *
      * A collection of class items.
      * 
@@ -1830,23 +1667,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 { @@ -1854,8 +1687,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItems } } /** - * - * *
      * A collection of class items.
      * 
@@ -1863,12 +1694,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.
      * 
@@ -1877,43 +1706,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_ & 0x00000004) != 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_ & 0x00000004) != 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); } @@ -1923,12 +1746,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(); } @@ -1937,27 +1760,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1972,4 +1795,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java index 49436233656b..5a2383a9cef5 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java index 3b6a7835efad..bbb366cf504b 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java @@ -1,79 +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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -84,10 +62,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 @@ -96,15 +71,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}`
@@ -115,18 +89,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 { @@ -135,7 +108,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,7 +119,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_); } @@ -171,15 +144,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -199,136 +172,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -338,9 +304,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 @@ -359,11 +325,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -379,39 +342,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRe 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; @@ -419,8 +381,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_; bitField0_ |= 0x00000001; @@ -452,19 +413,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -474,13 +433,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -491,16 +447,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; @@ -509,8 +463,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -521,17 +473,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 { @@ -539,8 +490,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -551,25 +500,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -580,10 +523,7 @@ 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() { @@ -593,8 +533,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -605,26 +543,22 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -634,12 +568,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(); } @@ -648,27 +582,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -683,4 +617,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java similarity index 59% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java index 21121096eb41..477f46c0e2f8 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java similarity index 64% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java index b87312b547f8..07d9ddf94c18 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java @@ -1,88 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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; } - - 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; - @SuppressWarnings("serial") 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 @@ -91,32 +66,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 { @@ -125,7 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +109,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_); } @@ -161,15 +134,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,136 +162,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -328,9 +294,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 @@ -349,11 +315,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -369,39 +332,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequ 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; @@ -409,8 +371,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_; bitField0_ |= 0x00000001; @@ -442,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -464,28 +423,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -494,24 +448,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 { @@ -519,41 +470,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -563,33 +503,27 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -599,12 +533,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(); } @@ -613,27 +547,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,4 +582,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java new file mode 100644 index 000000000000..246c425ca97f --- /dev/null +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java similarity index 63% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java index 89016327b398..4ed77d987ed1 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java @@ -1,88 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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; } - - 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; - @SuppressWarnings("serial") 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 @@ -91,32 +66,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 { @@ -125,7 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +109,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_); } @@ -161,15 +134,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,136 +162,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -328,9 +294,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 @@ -349,11 +315,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.GetCustomClassRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -369,39 +332,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.GetCustomClassReque 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; @@ -409,8 +371,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_; bitField0_ |= 0x00000001; @@ -442,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -464,28 +423,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -494,24 +448,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 { @@ -519,41 +470,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -563,33 +503,27 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -599,12 +533,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(); } @@ -613,27 +547,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,4 +582,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java new file mode 100644 index 000000000000..721b97fda97f --- /dev/null +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java index ec9e420513d6..c5510a21f889 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java @@ -1,79 +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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -84,10 +62,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 @@ -96,15 +71,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}`
@@ -115,18 +89,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 { @@ -135,7 +108,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,7 +119,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_); } @@ -171,15 +144,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -199,136 +172,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -338,9 +304,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 @@ -359,11 +325,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -379,39 +342,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest 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; @@ -419,8 +381,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_; bitField0_ |= 0x00000001; @@ -452,19 +413,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -474,13 +433,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -491,16 +447,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; @@ -509,8 +463,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -521,17 +473,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 { @@ -539,8 +490,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -551,25 +500,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -580,10 +523,7 @@ 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() { @@ -593,8 +533,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -605,26 +543,22 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -634,12 +568,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(); } @@ -648,27 +582,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -683,4 +617,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java similarity index 59% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java index fb9fa55ec399..b5ad6ae0036f 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java index b866c124f727..0cec901e8359 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -85,10 +63,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 @@ -97,15 +72,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`
@@ -116,18 +90,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 { @@ -138,8 +111,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * 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
@@ -148,7 +119,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -157,12 +127,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -171,7 +138,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -180,15 +146,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.
@@ -197,15 +162,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 { @@ -214,7 +180,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,7 +191,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_); } @@ -249,7 +215,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_); @@ -262,17 +229,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -296,136 +265,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +399,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 @@ -458,11 +420,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest result = new com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -484,39 +443,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.ListCustomClassesRe 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; @@ -524,8 +482,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_; bitField0_ |= 0x00000001; @@ -565,31 +522,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -599,13 +552,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -616,16 +566,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; @@ -634,8 +582,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -646,17 +592,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 { @@ -664,8 +609,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -676,25 +619,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -705,10 +642,7 @@ 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() { @@ -718,8 +652,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -730,17 +662,13 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -748,10 +676,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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
@@ -760,7 +686,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -768,8 +693,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
@@ -778,20 +701,17 @@ 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; bitField0_ |= 0x00000002; 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
@@ -800,7 +720,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -812,8 +731,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.
@@ -822,13 +739,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; @@ -837,8 +754,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -847,14 +762,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 { @@ -862,8 +778,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -872,22 +786,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -896,7 +806,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -906,8 +815,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -916,23 +823,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -942,12 +847,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(); } @@ -956,27 +861,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -991,4 +896,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java index de9020900455..e83c2e601a5a 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java similarity index 73% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java index 76b2fb87583a..9cd1b9a7e0cd 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private java.util.List customClasses_; /** - * - * *
    * The custom classes.
    * 
@@ -86,8 +64,6 @@ public java.util.List getCustomCl return customClasses_; } /** - * - * *
    * The custom classes.
    * 
@@ -95,13 +71,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.
    * 
@@ -113,8 +87,6 @@ public int getCustomClassesCount() { return customClasses_.size(); } /** - * - * *
    * The custom classes.
    * 
@@ -126,8 +98,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index) return customClasses_.get(index); } /** - * - * *
    * The custom classes.
    * 
@@ -141,19 +111,15 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -162,30 +128,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 { @@ -194,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,7 +171,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)); } @@ -223,7 +189,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_); @@ -236,16 +203,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -269,136 +237,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -415,9 +376,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 @@ -436,18 +397,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse result) { if (customClassesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { customClasses_ = java.util.Collections.unmodifiableList(customClasses_); @@ -470,39 +427,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.ListCustomClassesRe 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; @@ -510,8 +466,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()) { @@ -530,10 +485,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_); } @@ -570,32 +524,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1p1beta1.CustomClass m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); - if (customClassesBuilder_ == null) { - ensureCustomClassesIsMutable(); - customClasses_.add(m); - } else { - customClassesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.speech.v1p1beta1.CustomClass m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.CustomClass.parser(), + extensionRegistry); + if (customClassesBuilder_ == null) { + ensureCustomClassesIsMutable(); + customClasses_.add(m); + } else { + customClassesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -605,29 +557,21 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -642,8 +586,6 @@ public java.util.List getCustomCl } } /** - * - * *
      * The custom classes.
      * 
@@ -658,8 +600,6 @@ public int getCustomClassesCount() { } } /** - * - * *
      * The custom classes.
      * 
@@ -674,8 +614,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index) } } /** - * - * *
      * The custom classes.
      * 
@@ -697,8 +635,6 @@ public Builder setCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -717,8 +653,6 @@ public Builder setCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -739,8 +673,6 @@ public Builder addCustomClasses(com.google.cloud.speech.v1p1beta1.CustomClass va return this; } /** - * - * *
      * The custom classes.
      * 
@@ -762,8 +694,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -782,8 +712,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -802,8 +730,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -814,7 +740,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); @@ -822,8 +749,6 @@ public Builder addAllCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -841,8 +766,6 @@ public Builder clearCustomClasses() { return this; } /** - * - * *
      * The custom classes.
      * 
@@ -860,8 +783,6 @@ public Builder removeCustomClasses(int index) { return this; } /** - * - * *
      * The custom classes.
      * 
@@ -873,8 +794,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassesBui return getCustomClassesFieldBuilder().getBuilder(index); } /** - * - * *
      * The custom classes.
      * 
@@ -884,22 +803,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 { @@ -907,8 +823,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr } } /** - * - * *
      * The custom classes.
      * 
@@ -916,12 +830,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.
      * 
@@ -930,34 +842,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(), @@ -969,21 +873,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; @@ -992,22 +894,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 { @@ -1015,37 +916,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1055,31 +949,27 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1089,12 +979,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(); } @@ -1103,27 +993,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1138,4 +1028,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java index ba426471df4a..bb845e9819e6 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java index ec356159bcab..79bf9654d1e9 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -85,10 +63,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 @@ -97,15 +72,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}`
@@ -116,18 +90,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 { @@ -138,8 +111,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * 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
@@ -148,7 +119,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -157,12 +127,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -171,7 +138,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -180,15 +146,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.
@@ -197,15 +162,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 { @@ -214,7 +180,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,7 +191,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_); } @@ -249,7 +215,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_); @@ -262,17 +229,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -296,136 +265,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +399,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 @@ -458,11 +420,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -484,39 +443,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.ListPhraseSetReques 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; @@ -524,8 +482,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_; bitField0_ |= 0x00000001; @@ -565,31 +522,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -599,13 +552,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -616,16 +566,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; @@ -634,8 +582,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -646,17 +592,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 { @@ -664,8 +609,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -676,25 +619,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -705,10 +642,7 @@ 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() { @@ -718,8 +652,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -730,17 +662,13 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -748,10 +676,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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
@@ -760,7 +686,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -768,8 +693,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
@@ -778,20 +701,17 @@ 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; bitField0_ |= 0x00000002; 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
@@ -800,7 +720,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -812,8 +731,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.
@@ -822,13 +739,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; @@ -837,8 +754,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -847,14 +762,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 { @@ -862,8 +778,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -872,22 +786,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -896,7 +806,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -906,8 +815,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -916,23 +823,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -942,12 +847,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(); } @@ -956,27 +861,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -991,4 +896,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java index 51f5352582e1..1f93fa365224 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java index 93c06391bea1..0450e2136200 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private java.util.List phraseSets_; /** - * - * *
    * The phrase set.
    * 
@@ -86,8 +64,6 @@ public java.util.List getPhraseSets return phraseSets_; } /** - * - * *
    * The phrase set.
    * 
@@ -95,13 +71,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.
    * 
@@ -113,8 +87,6 @@ public int getPhraseSetsCount() { return phraseSets_.size(); } /** - * - * *
    * The phrase set.
    * 
@@ -126,8 +98,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** - * - * *
    * The phrase set.
    * 
@@ -135,24 +105,21 @@ 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; - @SuppressWarnings("serial") 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 @@ -161,30 +128,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 { @@ -193,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +171,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)); } @@ -222,7 +189,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_); @@ -235,16 +203,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,136 +237,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +376,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 @@ -435,18 +397,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse result) { if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -469,39 +427,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.ListPhraseSetRespon 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; @@ -509,8 +466,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()) { @@ -529,10 +485,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_); } @@ -569,32 +524,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1p1beta1.PhraseSet m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); - if (phraseSetsBuilder_ == null) { - ensurePhraseSetsIsMutable(); - phraseSets_.add(m); - } else { - phraseSetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.speech.v1p1beta1.PhraseSet m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), + extensionRegistry); + if (phraseSetsBuilder_ == null) { + ensurePhraseSetsIsMutable(); + phraseSets_.add(m); + } else { + phraseSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -604,29 +557,21 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -641,8 +586,6 @@ public java.util.List getPhraseSets } } /** - * - * *
      * The phrase set.
      * 
@@ -657,8 +600,6 @@ public int getPhraseSetsCount() { } } /** - * - * *
      * The phrase set.
      * 
@@ -673,15 +614,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(); @@ -695,8 +635,6 @@ public Builder setPhraseSets(int index, com.google.cloud.speech.v1p1beta1.Phrase return this; } /** - * - * *
      * The phrase set.
      * 
@@ -715,8 +653,6 @@ public Builder setPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -737,15 +673,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(); @@ -759,8 +694,6 @@ public Builder addPhraseSets(int index, com.google.cloud.speech.v1p1beta1.Phrase return this; } /** - * - * *
      * The phrase set.
      * 
@@ -779,8 +712,6 @@ public Builder addPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -799,8 +730,6 @@ public Builder addPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -811,7 +740,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); @@ -819,8 +749,6 @@ public Builder addAllPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -838,8 +766,6 @@ public Builder clearPhraseSets() { return this; } /** - * - * *
      * The phrase set.
      * 
@@ -857,44 +783,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 { @@ -902,8 +823,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuild } } /** - * - * *
      * The phrase set.
      * 
@@ -911,48 +830,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_; @@ -960,21 +873,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; @@ -983,22 +894,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 { @@ -1006,37 +916,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1046,31 +949,27 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1080,12 +979,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(); } @@ -1094,27 +993,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1129,4 +1028,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java index 319d29f4fab5..7a24d1b77dc3 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java similarity index 66% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java index 67f5dbc14799..a8bf3abc718e 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java +++ b/owl-bot-staging/java-speech/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,58 +12,53 @@
  *
  * 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;
   }
-
-  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_ = 0;
   /**
-   *
-   *
    * 
    * 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 @@ -91,14 +69,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 @@ -106,14 +81,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 @@ -121,8 +93,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Time when the request was received.
    * 
@@ -137,14 +107,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 @@ -152,25 +119,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.
    * 
@@ -179,25 +139,19 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - return lastUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastUpdateTime_; + return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } public static final int URI_FIELD_NUMBER = 4; - @SuppressWarnings("serial") 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 @@ -206,30 +160,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 { @@ -240,16 +194,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 @@ -257,45 +206,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() { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -307,7 +241,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_); } @@ -333,19 +268,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -355,27 +294,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -410,104 +353,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
@@ -516,32 +451,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -567,14 +503,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();
     }
 
@@ -589,34 +524,34 @@ 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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result) {
+    private void buildPartial0(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.progressPercent_ = progressPercent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null
+            ? startTime_
+            : startTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.lastUpdateTime_ =
-            lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build();
+        result.lastUpdateTime_ = lastUpdateTimeBuilder_ == null
+            ? lastUpdateTime_
+            : lastUpdateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.uri_ = uri_;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.outputConfig_ =
-            outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
+        result.outputConfig_ = outputConfigBuilder_ == null
+            ? outputConfig_
+            : outputConfigBuilder_.build();
       }
     }
 
@@ -624,39 +559,38 @@ private void buildPartial0(
     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;
@@ -664,9 +598,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());
       }
@@ -710,43 +642,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                progressPercent_ = input.readInt32();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                uri_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              progressPercent_ = input.readInt32();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              input.readMessage(
+                  getStartTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getLastUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              uri_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getOutputConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -756,20 +688,16 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    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 @@ -777,35 +705,29 @@ 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; bitField0_ |= 0x00000001; 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() { @@ -817,33 +739,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -854,8 +767,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Time when the request was received.
      * 
@@ -876,15 +787,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(); } else { @@ -895,8 +805,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -905,9 +813,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -920,8 +828,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -939,8 +845,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -953,8 +857,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the request was received.
      * 
@@ -965,12 +867,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.
      * 
@@ -978,17 +879,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_; @@ -996,47 +894,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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.
      * 
@@ -1057,15 +942,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(); } else { @@ -1076,8 +960,6 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1086,9 +968,9 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && lastUpdateTime_ != null - && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + lastUpdateTime_ != null && + lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; @@ -1101,8 +983,6 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1120,8 +1000,6 @@ public Builder clearLastUpdateTime() { return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1134,8 +1012,6 @@ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { return getLastUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1146,14 +1022,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.
      * 
@@ -1161,17 +1034,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_; @@ -1179,21 +1049,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; @@ -1202,22 +1070,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 { @@ -1225,37 +1092,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000008; 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() { @@ -1265,22 +1125,18 @@ public Builder clearUri() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000008; @@ -1290,58 +1146,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 ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * 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) { @@ -1357,15 +1194,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) { @@ -1379,23 +1212,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 (((bitField0_ & 0x00000010) != 0) - && outputConfig_ != null - && outputConfig_ - != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + outputConfig_ != null && + outputConfig_ != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -1408,15 +1235,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() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1429,73 +1252,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() { bitField0_ |= 0x00000010; 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); } @@ -1505,43 +1310,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1553,8 +1356,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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java index 0016ab958fc5..2e4b54cbc0f0 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java similarity index 58% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java index 0ec03b1087c8..248cb8f11897 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java +++ b/owl-bot-staging/java-speech/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,58 +11,52 @@
  *
  * 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;
   }
-
-  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 @@ -87,57 +64,39 @@ 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() { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } 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 @@ -145,55 +104,37 @@ 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() { - return audio_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; } 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 @@ -201,45 +142,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() { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,7 +177,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()); } @@ -271,13 +198,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -287,25 +217,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -336,104 +268,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.
@@ -441,32 +365,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -490,14 +415,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();
     }
 
@@ -512,27 +436,28 @@ 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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result) {
+    private void buildPartial0(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
+        result.config_ = configBuilder_ == null
+            ? config_
+            : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.audio_ = audioBuilder_ == null ? audio_ : audioBuilder_.build();
+        result.audio_ = audioBuilder_ == null
+            ? audio_
+            : audioBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.outputConfig_ =
-            outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
+        result.outputConfig_ = outputConfigBuilder_ == null
+            ? outputConfig_
+            : outputConfigBuilder_.build();
       }
     }
 
@@ -540,39 +465,38 @@ private void buildPartial0(
     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;
@@ -580,9 +504,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());
       }
@@ -618,31 +540,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getAudioFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 34:
-              {
-                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getAudioFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 34: {
+              input.readMessage(
+                  getOutputConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -652,66 +576,46 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * 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) { @@ -727,16 +631,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) { @@ -750,23 +650,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 (((bitField0_ & 0x00000001) != 0) - && config_ != null - && config_ - != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + config_ != null && + config_ != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -779,16 +674,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -801,16 +692,12 @@ 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() { bitField0_ |= 0x00000001; @@ -818,50 +705,38 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuil 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_; @@ -869,58 +744,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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) { @@ -936,15 +792,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) { @@ -958,21 +810,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 (((bitField0_ & 0x00000002) != 0) - && audio_ != null - && audio_ != com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + audio_ != null && + audio_ != com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance()) { getAudioBuilder().mergeFrom(value); } else { audio_ = value; @@ -985,15 +833,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1006,15 +850,11 @@ 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() { bitField0_ |= 0x00000002; @@ -1022,48 +862,36 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder getAudioBuilde 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_; @@ -1071,58 +899,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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) { @@ -1138,15 +947,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) { @@ -1160,23 +965,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 (((bitField0_ & 0x00000004) != 0) - && outputConfig_ != null - && outputConfig_ - != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + outputConfig_ != null && + outputConfig_ != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -1189,15 +988,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1210,73 +1005,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() { bitField0_ |= 0x00000004; 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); } @@ -1286,13 +1063,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(); } @@ -1301,27 +1077,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1336,4 +1112,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java similarity index 51% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java index 02d21f70fe28..5a5a7bb3a28f 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java index 2af036458d8c..f91bf577e9df 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java +++ b/owl-bot-staging/java-speech/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,53 +14,48 @@
  *
  * 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -86,13 +64,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.
@@ -101,14 +76,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.
@@ -121,8 +93,6 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -135,8 +105,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.
@@ -153,14 +121,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 @@ -168,25 +133,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.
    * 
@@ -195,22 +153,17 @@ public com.google.protobuf.Duration getTotalBilledTime() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } 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 @@ -218,25 +171,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.
    * 
@@ -244,24 +190,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() { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } 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 @@ -269,14 +209,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 @@ -284,8 +221,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.
    * 
@@ -300,14 +235,11 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 8; private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_; /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -315,25 +247,18 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
@@ -341,25 +266,19 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptatio * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 9; private long requestId_ = 0L; /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 9; - * * @return The requestId. */ @java.lang.Override @@ -368,7 +287,6 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -380,7 +298,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)); } @@ -409,23 +328,28 @@ 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()); } if (speechAdaptationInfo_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSpeechAdaptationInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, requestId_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -435,32 +359,37 @@ 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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo() + .equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() != other.getRequestId()) return false; + if (getRequestId() + != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -493,111 +422,104 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } 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`
@@ -608,32 +530,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -670,14 +593,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();
     }
 
@@ -692,18 +614,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -715,26 +633,27 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    private void buildPartial0(
-        com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result) {
+    private void buildPartial0(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.totalBilledTime_ =
-            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
+            ? totalBilledTime_
+            : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.outputConfig_ =
-            outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
+        result.outputConfig_ = outputConfigBuilder_ == null
+            ? outputConfig_
+            : outputConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.outputError_ =
-            outputErrorBuilder_ == null ? outputError_ : outputErrorBuilder_.build();
+        result.outputError_ = outputErrorBuilder_ == null
+            ? outputError_
+            : outputErrorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.speechAdaptationInfo_ =
-            speechAdaptationInfoBuilder_ == null
-                ? speechAdaptationInfo_
-                : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
+            ? speechAdaptationInfo_
+            : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.requestId_ = requestId_;
@@ -745,39 +664,38 @@ private void buildPartial0(
     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;
@@ -785,9 +703,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()) {
@@ -806,10 +722,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_);
           }
@@ -856,58 +771,58 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18:
-              {
-                com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
-                        extensionRegistry);
-                if (resultsBuilder_ == null) {
-                  ensureResultsIsMutable();
-                  results_.add(m);
-                } else {
-                  resultsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-            case 50:
-              {
-                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getOutputErrorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(
-                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 66
-            case 72:
-              {
-                requestId_ = input.readInt64();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 72
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 18: {
+              com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
+                      extensionRegistry);
+              if (resultsBuilder_ == null) {
+                ensureResultsIsMutable();
+                results_.add(m);
+              } else {
+                resultsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getTotalBilledTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 26
+            case 50: {
+              input.readMessage(
+                  getOutputConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getOutputErrorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 66
+            case 72: {
+              requestId_ = input.readInt64();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 72
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -917,30 +832,21 @@ public Builder mergeFrom(
       } // finally
       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.
@@ -948,8 +854,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 {
@@ -957,8 +862,6 @@ private void ensureResultsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -974,8 +877,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -991,8 +892,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1015,8 +914,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1025,8 +922,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());
@@ -1037,8 +933,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1060,8 +954,6 @@ public Builder addResults(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRes
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1084,8 +976,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1105,8 +995,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1115,8 +1003,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());
@@ -1127,8 +1014,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1137,11 +1022,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);
@@ -1149,8 +1034,6 @@ public Builder addAllResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1169,8 +1052,6 @@ public Builder clearResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1189,8 +1070,6 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1203,8 +1082,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.
@@ -1215,14 +1092,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.
@@ -1230,9 +1104,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 {
@@ -1240,8 +1113,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1250,13 +1121,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.
@@ -1266,14 +1134,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.
@@ -1281,23 +1145,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_;
@@ -1305,47 +1166,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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.
      * 
@@ -1366,15 +1214,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(); } else { @@ -1385,8 +1232,6 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1395,9 +1240,9 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo */ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && totalBilledTime_ != null - && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + totalBilledTime_ != null && + totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getTotalBilledTimeBuilder().mergeFrom(value); } else { totalBilledTime_ = value; @@ -1410,8 +1255,6 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1429,8 +1272,6 @@ public Builder clearTotalBilledTime() { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1443,8 +1284,6 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { return getTotalBilledTimeFieldBuilder().getBuilder(); } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1455,14 +1294,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.
      * 
@@ -1470,17 +1306,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_; @@ -1488,47 +1321,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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.
      * 
@@ -1549,8 +1369,6 @@ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutpu return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1569,21 +1387,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 (((bitField0_ & 0x00000004) != 0) - && outputConfig_ != null - && outputConfig_ - != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + outputConfig_ != null && + outputConfig_ != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -1596,8 +1410,6 @@ public Builder mergeOutputConfig( return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1615,42 +1427,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() { bitField0_ |= 0x00000004; 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.
      * 
@@ -1658,17 +1461,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_; @@ -1676,31 +1476,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 ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * 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() { @@ -1711,8 +1504,6 @@ public com.google.rpc.Status getOutputError() { } } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1733,15 +1524,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(); } else { @@ -1752,8 +1542,6 @@ public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1762,9 +1550,9 @@ public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeOutputError(com.google.rpc.Status value) { if (outputErrorBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && outputError_ != null - && outputError_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + outputError_ != null && + outputError_ != com.google.rpc.Status.getDefaultInstance()) { getOutputErrorBuilder().mergeFrom(value); } else { outputError_ = value; @@ -1777,8 +1565,6 @@ public Builder mergeOutputError(com.google.rpc.Status value) { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1796,8 +1582,6 @@ public Builder clearOutputError() { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1810,8 +1594,6 @@ public com.google.rpc.Status.Builder getOutputErrorBuilder() { return getOutputErrorFieldBuilder().getBuilder(); } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1822,12 +1604,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.
      * 
@@ -1835,15 +1616,14 @@ 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_; @@ -1851,55 +1631,41 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> - speechAdaptationInfoBuilder_; + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_; /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public Builder setSpeechAdaptationInfo( - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1913,8 +1679,6 @@ public Builder setSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1933,21 +1697,17 @@ public Builder setSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public Builder mergeSpeechAdaptationInfo( - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && speechAdaptationInfo_ != null - && speechAdaptationInfo_ - != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + speechAdaptationInfo_ != null && + speechAdaptationInfo_ != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -1960,8 +1720,6 @@ public Builder mergeSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1979,42 +1737,33 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder - getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -2022,33 +1771,27 @@ public Builder clearSpeechAdaptationInfo() { * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), getParentForChildren(), isClean()); + speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), + getParentForChildren(), + isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_; + private long requestId_ ; /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; - * * @return The requestId. */ @java.lang.Override @@ -2056,35 +1799,29 @@ public long getRequestId() { return requestId_; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; - * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -2093,9 +1830,9 @@ public Builder clearRequestId() { 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); } @@ -2105,43 +1842,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2153,8 +1888,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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java similarity index 83% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java index 62b75e4f97ee..76046b9abd9a 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/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.
    * 
@@ -186,51 +138,39 @@ public interface LongRunningRecognizeResponseOrBuilder com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder(); /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder(); + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 9; - * * @return The requestId. */ long getRequestId(); diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java similarity index 74% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java index ed04b6065554..7ddee708c954 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java +++ b/owl-bot-staging/java-speech/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,63 +27,54 @@ 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;
   }
-
-  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
@@ -110,19 +83,16 @@ public interface PhraseOrBuilder
      * boost will simply be ignored. Though `boost` can accept a wide range of
      * positive values, most use cases are best served
      * with values between 0 and 20. We recommend using a binary search approach
-     * to finding the optimal value for your use case. Speech recognition
-     * will skip PhraseSets with a boost value of 0.
+     * to finding the optimal value for your use case as well as adding
+     * phrases both with and without boost to your requests.
      * 
* * 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
@@ -151,59 +121,53 @@ 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;
     }
-
-    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;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object value_ = "";
     /**
-     *
-     *
      * 
      * The phrase itself.
      * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -212,29 +176,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 { @@ -245,8 +209,6 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_ = 0F; /** - * - * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -255,12 +217,11 @@ public com.google.protobuf.ByteString getValueBytes() {
      * boost will simply be ignored. Though `boost` can accept a wide range of
      * positive values, most use cases are best served
      * with values between 0 and 20. We recommend using a binary search approach
-     * to finding the optimal value for your use case. Speech recognition
-     * will skip PhraseSets with a boost value of 0.
+     * to finding the optimal value for your use case as well as adding
+     * phrases both with and without boost to your requests.
      * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -269,7 +230,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -281,7 +241,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_); } @@ -301,7 +262,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -311,17 +273,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -336,100 +299,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) + getUnknownFields().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 @@ -439,8 +397,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
@@ -469,33 +425,33 @@ 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()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -506,9 +462,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
@@ -527,11 +483,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);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase result = new com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -550,41 +503,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase re
       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;
@@ -592,8 +542,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_;
           bitField0_ |= 0x00000001;
@@ -628,25 +577,22 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  value_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 21:
-                {
-                  boost_ = input.readFloat();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 21
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                value_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 21: {
+                boost_ = input.readFloat();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 21
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -656,25 +602,22 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       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; @@ -683,21 +626,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 { @@ -705,35 +647,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The phrase itself.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -743,21 +678,17 @@ public Builder clearValue() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; @@ -765,10 +696,8 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { 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
@@ -777,12 +706,11 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) {
        * boost will simply be ignored. Though `boost` can accept a wide range of
        * positive values, most use cases are best served
        * with values between 0 and 20. We recommend using a binary search approach
-       * to finding the optimal value for your use case. Speech recognition
-       * will skip PhraseSets with a boost value of 0.
+       * to finding the optimal value for your use case as well as adding
+       * phrases both with and without boost to your requests.
        * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -790,8 +718,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
@@ -800,25 +726,22 @@ public float getBoost() {
        * boost will simply be ignored. Though `boost` can accept a wide range of
        * positive values, most use cases are best served
        * with values between 0 and 20. We recommend using a binary search approach
-       * to finding the optimal value for your use case. Speech recognition
-       * will skip PhraseSets with a boost value of 0.
+       * to finding the optimal value for your use case as well as adding
+       * phrases both with and without boost to your requests.
        * 
* * float boost = 2; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000002; 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
@@ -827,12 +750,11 @@ public Builder setBoost(float value) {
        * boost will simply be ignored. Though `boost` can accept a wide range of
        * positive values, most use cases are best served
        * with values between 0 and 20. We recommend using a binary search approach
-       * to finding the optimal value for your use case. Speech recognition
-       * will skip PhraseSets with a boost value of 0.
+       * to finding the optimal value for your use case as well as adding
+       * phrases both with and without boost to your requests.
        * 
* * float boost = 2; - * * @return This builder for chaining. */ public Builder clearBoost() { @@ -841,7 +763,6 @@ public Builder clearBoost() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -854,12 +775,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(); } @@ -868,28 +789,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -904,21 +824,18 @@ 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name of the phrase set.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -927,29 +844,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 { @@ -958,12 +875,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int PHRASES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List phrases_; /** - * - * *
    * A list of word and phrases.
    * 
@@ -975,8 +889,6 @@ public java.util.List getPhr return phrases_; } /** - * - * *
    * A list of word and phrases.
    * 
@@ -984,13 +896,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.
    * 
@@ -1002,8 +912,6 @@ public int getPhrasesCount() { return phrases_.size(); } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1015,8 +923,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getPhrases(int index) return phrases_.get(index); } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1032,8 +938,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB public static final int BOOST_FIELD_NUMBER = 4; private float boost_ = 0F; /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -1042,12 +946,11 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB
    * enabled, so negative boost will simply be ignored. Though `boost` can
    * accept a wide range of positive values, most use cases are best served with
    * values between 0 (exclusive) and 20. We recommend using a binary search
-   * approach to finding the optimal value for your use case. Speech recognition
-   * will skip PhraseSets with a boost value of 0.
+   * approach to finding the optimal value for your use case as well as adding
+   * phrases both with and without boost to your requests.
    * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -1056,7 +959,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1068,7 +970,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_); } @@ -1091,10 +994,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1104,18 +1009,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1134,110 +1041,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) + getUnknownFields().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.
@@ -1245,32 +1146,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1288,9 +1190,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
@@ -1309,12 +1211,9 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1345,39 +1244,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.PhraseSet result) {
     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;
@@ -1409,10 +1307,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            phrasesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPhrasesFieldBuilder()
-                    : null;
+            phrasesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPhrasesFieldBuilder() : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -1447,39 +1344,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.parser(),
-                        extensionRegistry);
-                if (phrasesBuilder_ == null) {
-                  ensurePhrasesIsMutable();
-                  phrases_.add(m);
-                } else {
-                  phrasesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 37:
-              {
-                boost_ = input.readFloat();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 37
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.parser(),
+                      extensionRegistry);
+              if (phrasesBuilder_ == null) {
+                ensurePhrasesIsMutable();
+                phrases_.add(m);
+              } else {
+                phrasesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 37: {
+              boost_ = input.readFloat();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 37
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1489,25 +1382,22 @@ public Builder mergeFrom(
       } // finally
       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; @@ -1516,21 +1406,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 { @@ -1538,35 +1427,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1576,21 +1458,17 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1599,25 +1477,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private java.util.List phrases_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - phrases_ = - new java.util.ArrayList(phrases_); + phrases_ = new java.util.ArrayList(phrases_); bitField0_ |= 0x00000002; - } + } } 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.
      * 
@@ -1632,8 +1503,6 @@ public java.util.List getPhr } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1648,8 +1517,6 @@ public int getPhrasesCount() { } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1664,15 +1531,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(); @@ -1686,8 +1552,6 @@ public Builder setPhrases(int index, com.google.cloud.speech.v1p1beta1.PhraseSet return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1706,8 +1570,6 @@ public Builder setPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1728,15 +1590,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(); @@ -1750,8 +1611,6 @@ public Builder addPhrases(int index, com.google.cloud.speech.v1p1beta1.PhraseSet return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1770,8 +1629,6 @@ public Builder addPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1790,8 +1647,6 @@ public Builder addPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1802,7 +1657,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); @@ -1810,8 +1666,6 @@ public Builder addAllPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1829,8 +1683,6 @@ public Builder clearPhrases() { return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1848,20 +1700,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.
      * 
@@ -1871,22 +1720,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 { @@ -1894,8 +1740,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1903,58 +1747,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_ & 0x00000002) != 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_ & 0x00000002) != 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
@@ -1963,12 +1798,11 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuil
      * enabled, so negative boost will simply be ignored. Though `boost` can
      * accept a wide range of positive values, most use cases are best served with
      * values between 0 (exclusive) and 20. We recommend using a binary search
-     * approach to finding the optimal value for your use case. Speech recognition
-     * will skip PhraseSets with a boost value of 0.
+     * approach to finding the optimal value for your use case as well as adding
+     * phrases both with and without boost to your requests.
      * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -1976,8 +1810,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
@@ -1986,25 +1818,22 @@ public float getBoost() {
      * enabled, so negative boost will simply be ignored. Though `boost` can
      * accept a wide range of positive values, most use cases are best served with
      * values between 0 (exclusive) and 20. We recommend using a binary search
-     * approach to finding the optimal value for your use case. Speech recognition
-     * will skip PhraseSets with a boost value of 0.
+     * approach to finding the optimal value for your use case as well as adding
+     * phrases both with and without boost to your requests.
      * 
* * float boost = 4; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000004; 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
@@ -2013,12 +1842,11 @@ public Builder setBoost(float value) {
      * enabled, so negative boost will simply be ignored. Though `boost` can
      * accept a wide range of positive values, most use cases are best served with
      * values between 0 (exclusive) and 20. We recommend using a binary search
-     * approach to finding the optimal value for your use case. Speech recognition
-     * will skip PhraseSets with a boost value of 0.
+     * approach to finding the optimal value for your use case as well as adding
+     * phrases both with and without boost to your requests.
      * 
* * float boost = 4; - * * @return This builder for chaining. */ public Builder clearBoost() { @@ -2027,9 +1855,9 @@ public Builder clearBoost() { 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); } @@ -2039,12 +1867,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(); } @@ -2053,27 +1881,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2088,4 +1916,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java index 55f1127b4ee5..a61fb229f984 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java +++ b/owl-bot-staging/java-speech/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
@@ -111,12 +80,11 @@ public interface PhraseSetOrBuilder
    * enabled, so negative boost will simply be ignored. Though `boost` can
    * accept a wide range of positive values, most use cases are best served with
    * values between 0 (exclusive) and 20. We recommend using a binary search
-   * approach to finding the optimal value for your use case. Speech recognition
-   * will skip PhraseSets with a boost value of 0.
+   * approach to finding the optimal value for your use case as well as adding
+   * phrases both with and without boost to your requests.
    * 
* * float boost = 4; - * * @return The boost. */ float getBoost(); diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java similarity index 73% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java index 651bcd221d10..817d05c5e700 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java +++ b/owl-bot-staging/java-speech/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,56 +13,52 @@
  *
  * 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;
   }
-
-  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;
     }
@@ -95,30 +74,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
@@ -126,7 +100,6 @@ public AudioSourceCase getAudioSourceCase() {
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ @java.lang.Override @@ -134,8 +107,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
@@ -143,7 +114,6 @@ public boolean hasContent() {
    * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -156,8 +126,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).
@@ -169,15 +137,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).
@@ -189,7 +154,6 @@ public boolean hasUri() {
    * 
* * string uri = 2; - * * @return The uri. */ public java.lang.String getUri() { @@ -200,7 +164,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; @@ -209,8 +174,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).
@@ -222,17 +185,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; } @@ -243,7 +207,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,9 +218,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_); @@ -272,9 +237,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_); @@ -287,21 +252,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: @@ -335,103 +301,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
@@ -441,32 +400,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -477,9 +437,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
@@ -498,11 +458,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v1p1beta1.RecognitionAudio result = new com.google.cloud.speech.v1p1beta1.RecognitionAudio(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -521,39 +478,38 @@ private void buildPartialOneofs(com.google.cloud.speech.v1p1beta1.RecognitionAud
     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;
@@ -561,25 +517,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.getUnknownFields());
       onChanged();
@@ -607,26 +559,23 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                audioSource_ = input.readBytes();
-                audioSourceCase_ = 1;
-                break;
-              } // case 10
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                audioSourceCase_ = 2;
-                audioSource_ = s;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              audioSource_ = input.readBytes();
+              audioSourceCase_ = 1;
+              break;
+            } // case 10
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              audioSourceCase_ = 2;
+              audioSource_ = s;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -636,12 +585,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -654,8 +603,6 @@ public Builder clearAudioSource() {
     private int bitField0_;
 
     /**
-     *
-     *
      * 
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -663,15 +610,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
@@ -679,7 +623,6 @@ public boolean hasContent() {
      * 
* * bytes content = 1; - * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -689,8 +632,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
@@ -698,22 +639,17 @@ 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(); - } + if (value == null) { 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
@@ -721,7 +657,6 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -734,8 +669,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).
@@ -747,7 +680,6 @@ public Builder clearContent() {
      * 
* * string uri = 2; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -755,8 +687,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).
@@ -768,7 +698,6 @@ public boolean hasUri() {
      * 
* * string uri = 2; - * * @return The uri. */ @java.lang.Override @@ -778,7 +707,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; @@ -789,8 +719,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).
@@ -802,18 +730,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; } @@ -823,8 +752,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).
@@ -836,22 +763,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { 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).
@@ -863,7 +786,6 @@ public Builder setUri(java.lang.String value) {
      * 
* * string uri = 2; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -875,8 +797,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).
@@ -888,23 +808,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { 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); } @@ -914,12 +832,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(); } @@ -928,27 +846,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -963,4 +881,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionAudio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java similarity index 79% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java index 37850c3d9f62..6127a94e206c 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java similarity index 82% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java index 88f75ac38043..8f11f30e7c05 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java +++ b/owl-bot-staging/java-speech/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,33 +30,30 @@ 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;
   }
-
-  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
@@ -100,10 +79,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.
      * 
@@ -112,8 +90,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ ENCODING_UNSPECIFIED(0), /** - * - * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -122,8 +98,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ LINEAR16(1), /** - * - * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -137,8 +111,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.
      * 
@@ -147,8 +119,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ MULAW(3), /** - * - * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -157,8 +127,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ AMR(4), /** - * - * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -167,8 +135,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)).
@@ -179,8 +145,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
@@ -201,8 +165,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
@@ -214,8 +176,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
@@ -229,8 +189,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -239,8 +197,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).
      * 
@@ -249,8 +205,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
@@ -264,8 +218,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.
      * 
@@ -274,8 +226,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.
      * 
@@ -284,8 +234,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.
      * 
@@ -294,8 +242,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)).
@@ -306,8 +252,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
@@ -328,8 +272,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
@@ -341,8 +283,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
@@ -353,6 +293,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(
@@ -377,65 +318,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;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+        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() {
       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;
@@ -455,8 +387,6 @@ private AudioEncoding(int value) {
   public static final int ENCODING_FIELD_NUMBER = 1;
   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
@@ -464,16 +394,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
@@ -481,23 +407,16 @@ 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() { - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.forNumber(encoding_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding() { + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.forNumber(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_ = 0; /** - * - * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -509,7 +428,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEnco
    * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -520,8 +438,6 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 7; private int audioChannelCount_ = 0; /** - * - * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -534,7 +450,6 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 7; - * * @return The audioChannelCount. */ @java.lang.Override @@ -545,8 +460,6 @@ public int getAudioChannelCount() { public static final int ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER = 12; private boolean enableSeparateRecognitionPerChannel_ = false; /** - * - * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -557,7 +470,6 @@ public int getAudioChannelCount() {
    * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -566,12 +478,9 @@ public boolean getEnableSeparateRecognitionPerChannel() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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.
@@ -582,7 +491,6 @@ public boolean getEnableSeparateRecognitionPerChannel() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The languageCode. */ @java.lang.Override @@ -591,15 +499,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.
@@ -610,15 +517,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 { @@ -627,12 +535,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } public static final int ALTERNATIVE_LANGUAGE_CODES_FIELD_NUMBER = 18; - @SuppressWarnings("serial") 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,
@@ -649,15 +554,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,
@@ -674,15 +577,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,
@@ -699,7 +599,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. */ @@ -707,8 +606,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,
@@ -725,19 +622,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_ = 0; /** - * - * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -748,7 +643,6 @@ public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index
    * 
* * int32 max_alternatives = 4; - * * @return The maxAlternatives. */ @java.lang.Override @@ -759,8 +653,6 @@ public int getMaxAlternatives() { public static final int PROFANITY_FILTER_FIELD_NUMBER = 5; private boolean profanityFilter_ = false; /** - * - * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -769,7 +661,6 @@ public int getMaxAlternatives() {
    * 
* * bool profanity_filter = 5; - * * @return The profanityFilter. */ @java.lang.Override @@ -780,8 +671,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
@@ -791,7 +680,6 @@ public boolean getProfanityFilter() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; - * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -799,8 +687,6 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -810,18 +696,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
@@ -834,16 +715,12 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation getAdaptation() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptationOrBuilder() {
-    return adaptation_ == null
-        ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance()
-        : adaptation_;
+    return adaptation_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance() : adaptation_;
   }
 
   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
@@ -851,9 +728,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 @@ -861,8 +736,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
@@ -870,20 +743,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
@@ -891,24 +758,17 @@ 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() { - return transcriptNormalization_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance() - : transcriptNormalization_; + public com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder getTranscriptNormalizationOrBuilder() { + return transcriptNormalization_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance() : transcriptNormalization_; } public static final int SPEECH_CONTEXTS_FIELD_NUMBER = 6; - @SuppressWarnings("serial") 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
@@ -924,8 +784,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
@@ -937,13 +795,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
@@ -959,8 +815,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
@@ -976,8 +830,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
@@ -997,8 +849,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
   public static final int ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER = 8;
   private boolean enableWordTimeOffsets_ = false;
   /**
-   *
-   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -1007,7 +857,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
    * 
* * bool enable_word_time_offsets = 8; - * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -1018,8 +867,6 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 15; private boolean enableWordConfidence_ = false; /** - * - * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -1027,7 +874,6 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 15; - * * @return The enableWordConfidence. */ @java.lang.Override @@ -1038,8 +884,6 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 11; private boolean enableAutomaticPunctuation_ = false; /** - * - * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -1048,7 +892,6 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 11; - * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -1059,8 +902,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
@@ -1072,7 +913,6 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return Whether the enableSpokenPunctuation field is set. */ @java.lang.Override @@ -1080,8 +920,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
@@ -1093,18 +931,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
@@ -1119,16 +952,12 @@ public com.google.protobuf.BoolValue getEnableSpokenPunctuation() {
    */
   @java.lang.Override
   public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilder() {
-    return enableSpokenPunctuation_ == null
-        ? com.google.protobuf.BoolValue.getDefaultInstance()
-        : enableSpokenPunctuation_;
+    return enableSpokenPunctuation_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenPunctuation_;
   }
 
   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
@@ -1138,7 +967,6 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return Whether the enableSpokenEmojis field is set. */ @java.lang.Override @@ -1146,8 +974,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
@@ -1157,18 +983,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
@@ -1181,16 +1002,12 @@ public com.google.protobuf.BoolValue getEnableSpokenEmojis() {
    */
   @java.lang.Override
   public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
-    return enableSpokenEmojis_ == null
-        ? com.google.protobuf.BoolValue.getDefaultInstance()
-        : enableSpokenEmojis_;
+    return enableSpokenEmojis_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenEmojis_;
   }
 
   public static final int ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER = 16;
   private boolean enableSpeakerDiarization_ = false;
   /**
-   *
-   *
    * 
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -1199,22 +1016,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=377 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=377 * @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_ = 0; /** - * - * *
    * If set, specifies the estimated number of speakers in the conversation.
    * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -1222,22 +1035,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=382 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=382 * @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.
@@ -1250,7 +1059,6 @@ public int getDiarizationSpeakerCount() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19; - * * @return Whether the diarizationConfig field is set. */ @java.lang.Override @@ -1258,8 +1066,6 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** - * - * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1272,18 +1078,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.
@@ -1298,24 +1099,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() {
-    return diarizationConfig_ == null
-        ? com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance()
-        : diarizationConfig_;
+  public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
+    return diarizationConfig_ == null ? com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_;
   }
 
   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 @@ -1323,25 +1118,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.
    * 
@@ -1350,18 +1138,13 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata getMetadata() { */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadataOrBuilder() { - return metadata_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() : metadata_; } public static final int MODEL_FIELD_NUMBER = 13; - @SuppressWarnings("serial") 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
@@ -1417,7 +1200,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat
    * 
* * string model = 13; - * * @return The model. */ @java.lang.Override @@ -1426,15 +1208,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
@@ -1490,15 +1271,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 { @@ -1509,8 +1291,6 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int USE_ENHANCED_FIELD_NUMBER = 14; private boolean useEnhanced_ = false; /** - * - * *
    * 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
@@ -1522,7 +1302,6 @@ public com.google.protobuf.ByteString getModelBytes() {
    * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ @java.lang.Override @@ -1531,7 +1310,6 @@ public boolean getUseEnhanced() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1543,10 +1321,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) { @@ -1595,8 +1372,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()); @@ -1622,58 +1398,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; @@ -1684,23 +1469,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1710,56 +1496,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1778,9 +1582,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) { @@ -1790,7 +1593,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(); @@ -1804,11 +1608,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(); @@ -1818,7 +1625,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()) { @@ -1832,110 +1640,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) + getUnknownFields().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.
@@ -1943,32 +1745,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2030,9 +1833,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
@@ -2051,18 +1854,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v1p1beta1.RecognitionConfig result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.RecognitionConfig result) {
       if (((bitField0_ & 0x00000020) != 0)) {
         alternativeLanguageCodes_ = alternativeLanguageCodes_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000020);
@@ -2103,13 +1902,14 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognitionConfig r
         result.profanityFilter_ = profanityFilter_;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.adaptation_ = adaptationBuilder_ == null ? adaptation_ : adaptationBuilder_.build();
+        result.adaptation_ = adaptationBuilder_ == null
+            ? adaptation_
+            : adaptationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.transcriptNormalization_ =
-            transcriptNormalizationBuilder_ == null
-                ? transcriptNormalization_
-                : transcriptNormalizationBuilder_.build();
+        result.transcriptNormalization_ = transcriptNormalizationBuilder_ == null
+            ? transcriptNormalization_
+            : transcriptNormalizationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
         result.enableWordTimeOffsets_ = enableWordTimeOffsets_;
@@ -2121,16 +1921,14 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognitionConfig r
         result.enableAutomaticPunctuation_ = enableAutomaticPunctuation_;
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.enableSpokenPunctuation_ =
-            enableSpokenPunctuationBuilder_ == null
-                ? enableSpokenPunctuation_
-                : enableSpokenPunctuationBuilder_.build();
+        result.enableSpokenPunctuation_ = enableSpokenPunctuationBuilder_ == null
+            ? enableSpokenPunctuation_
+            : enableSpokenPunctuationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.enableSpokenEmojis_ =
-            enableSpokenEmojisBuilder_ == null
-                ? enableSpokenEmojis_
-                : enableSpokenEmojisBuilder_.build();
+        result.enableSpokenEmojis_ = enableSpokenEmojisBuilder_ == null
+            ? enableSpokenEmojis_
+            : enableSpokenEmojisBuilder_.build();
       }
       if (((from_bitField0_ & 0x00010000) != 0)) {
         result.enableSpeakerDiarization_ = enableSpeakerDiarization_;
@@ -2139,13 +1937,14 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognitionConfig r
         result.diarizationSpeakerCount_ = diarizationSpeakerCount_;
       }
       if (((from_bitField0_ & 0x00040000) != 0)) {
-        result.diarizationConfig_ =
-            diarizationConfigBuilder_ == null
-                ? diarizationConfig_
-                : diarizationConfigBuilder_.build();
+        result.diarizationConfig_ = diarizationConfigBuilder_ == null
+            ? diarizationConfig_
+            : diarizationConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00080000) != 0)) {
-        result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
+        result.metadata_ = metadataBuilder_ == null
+            ? metadata_
+            : metadataBuilder_.build();
       }
       if (((from_bitField0_ & 0x00100000) != 0)) {
         result.model_ = model_;
@@ -2159,39 +1958,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognitionConfig r
     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;
@@ -2199,8 +1997,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());
       }
@@ -2258,10 +2055,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognitionConfig oth
             speechContextsBuilder_ = null;
             speechContexts_ = other.speechContexts_;
             bitField0_ = (bitField0_ & ~0x00000400);
-            speechContextsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getSpeechContextsFieldBuilder()
-                    : null;
+            speechContextsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getSpeechContextsFieldBuilder() : null;
           } else {
             speechContextsBuilder_.addAllMessages(other.speechContexts_);
           }
@@ -2328,158 +2124,143 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                encoding_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 16:
-              {
-                sampleRateHertz_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                languageCode_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 26
-            case 32:
-              {
-                maxAlternatives_ = input.readInt32();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 32
-            case 40:
-              {
-                profanityFilter_ = input.readBool();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 40
-            case 50:
-              {
-                com.google.cloud.speech.v1p1beta1.SpeechContext m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1p1beta1.SpeechContext.parser(),
-                        extensionRegistry);
-                if (speechContextsBuilder_ == null) {
-                  ensureSpeechContextsIsMutable();
-                  speechContexts_.add(m);
-                } else {
-                  speechContextsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 50
-            case 56:
-              {
-                audioChannelCount_ = input.readInt32();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 56
-            case 64:
-              {
-                enableWordTimeOffsets_ = input.readBool();
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 64
-            case 74:
-              {
-                input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00080000;
-                break;
-              } // case 74
-            case 88:
-              {
-                enableAutomaticPunctuation_ = input.readBool();
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 88
-            case 96:
-              {
-                enableSeparateRecognitionPerChannel_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 96
-            case 106:
-              {
-                model_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00100000;
-                break;
-              } // case 106
-            case 112:
-              {
-                useEnhanced_ = input.readBool();
-                bitField0_ |= 0x00200000;
-                break;
-              } // case 112
-            case 120:
-              {
-                enableWordConfidence_ = input.readBool();
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 120
-            case 128:
-              {
-                enableSpeakerDiarization_ = input.readBool();
-                bitField0_ |= 0x00010000;
-                break;
-              } // case 128
-            case 136:
-              {
-                diarizationSpeakerCount_ = input.readInt32();
-                bitField0_ |= 0x00020000;
-                break;
-              } // case 136
-            case 146:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureAlternativeLanguageCodesIsMutable();
-                alternativeLanguageCodes_.add(s);
-                break;
-              } // case 146
-            case 154:
-              {
-                input.readMessage(
-                    getDiarizationConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00040000;
-                break;
-              } // case 154
-            case 162:
-              {
-                input.readMessage(getAdaptationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 162
-            case 178:
-              {
-                input.readMessage(
-                    getEnableSpokenPunctuationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00004000;
-                break;
-              } // case 178
-            case 186:
-              {
-                input.readMessage(
-                    getEnableSpokenEmojisFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00008000;
-                break;
-              } // case 186
-            case 194:
-              {
-                input.readMessage(
-                    getTranscriptNormalizationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 194
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              encoding_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 16: {
+              sampleRateHertz_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              languageCode_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 26
+            case 32: {
+              maxAlternatives_ = input.readInt32();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 32
+            case 40: {
+              profanityFilter_ = input.readBool();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 40
+            case 50: {
+              com.google.cloud.speech.v1p1beta1.SpeechContext m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechContext.parser(),
+                      extensionRegistry);
+              if (speechContextsBuilder_ == null) {
+                ensureSpeechContextsIsMutable();
+                speechContexts_.add(m);
+              } else {
+                speechContextsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 50
+            case 56: {
+              audioChannelCount_ = input.readInt32();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 56
+            case 64: {
+              enableWordTimeOffsets_ = input.readBool();
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 64
+            case 74: {
+              input.readMessage(
+                  getMetadataFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00080000;
+              break;
+            } // case 74
+            case 88: {
+              enableAutomaticPunctuation_ = input.readBool();
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 88
+            case 96: {
+              enableSeparateRecognitionPerChannel_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 96
+            case 106: {
+              model_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00100000;
+              break;
+            } // case 106
+            case 112: {
+              useEnhanced_ = input.readBool();
+              bitField0_ |= 0x00200000;
+              break;
+            } // case 112
+            case 120: {
+              enableWordConfidence_ = input.readBool();
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 120
+            case 128: {
+              enableSpeakerDiarization_ = input.readBool();
+              bitField0_ |= 0x00010000;
+              break;
+            } // case 128
+            case 136: {
+              diarizationSpeakerCount_ = input.readInt32();
+              bitField0_ |= 0x00020000;
+              break;
+            } // case 136
+            case 146: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureAlternativeLanguageCodesIsMutable();
+              alternativeLanguageCodes_.add(s);
+              break;
+            } // case 146
+            case 154: {
+              input.readMessage(
+                  getDiarizationConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00040000;
+              break;
+            } // case 154
+            case 162: {
+              input.readMessage(
+                  getAdaptationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 162
+            case 178: {
+              input.readMessage(
+                  getEnableSpokenPunctuationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00004000;
+              break;
+            } // case 178
+            case 186: {
+              input.readMessage(
+                  getEnableSpokenEmojisFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00008000;
+              break;
+            } // case 186
+            case 194: {
+              input.readMessage(
+                  getTranscriptNormalizationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 194
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2489,13 +2270,10 @@ public Builder mergeFrom(
       } // finally
       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
@@ -2503,16 +2281,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
@@ -2520,7 +2294,6 @@ 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. */ @@ -2531,8 +2304,6 @@ public Builder setEncodingValue(int value) { return this; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2540,20 +2311,14 @@ 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() { - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.forNumber(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.forNumber(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
@@ -2561,12 +2326,10 @@ 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(); } @@ -2576,8 +2339,6 @@ public Builder setEncoding( return this; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2585,7 +2346,6 @@ public Builder setEncoding(
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return This builder for chaining. */ public Builder clearEncoding() { @@ -2595,10 +2355,8 @@ public Builder clearEncoding() { 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.
@@ -2610,7 +2368,6 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -2618,8 +2375,6 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** - * - * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2631,20 +2386,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2656,7 +2408,6 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; - * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { @@ -2666,10 +2417,8 @@ public Builder clearSampleRateHertz() { return this; } - private int audioChannelCount_; + private int audioChannelCount_ ; /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2682,7 +2431,6 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 7; - * * @return The audioChannelCount. */ @java.lang.Override @@ -2690,8 +2438,6 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2704,20 +2450,17 @@ 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2730,7 +2473,6 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 7; - * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { @@ -2740,10 +2482,8 @@ public Builder clearAudioChannelCount() { 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
@@ -2754,7 +2494,6 @@ public Builder clearAudioChannelCount() {
      * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -2762,8 +2501,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
@@ -2774,20 +2511,17 @@ 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; bitField0_ |= 0x00000008; 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
@@ -2798,7 +2532,6 @@ public Builder setEnableSeparateRecognitionPerChannel(boolean value) {
      * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return This builder for chaining. */ public Builder clearEnableSeparateRecognitionPerChannel() { @@ -2810,8 +2543,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.
@@ -2822,13 +2553,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; @@ -2837,8 +2568,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.
@@ -2849,14 +2578,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 { @@ -2864,8 +2594,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.
@@ -2876,22 +2604,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000010; 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.
@@ -2902,7 +2626,6 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -2912,8 +2635,6 @@ public Builder clearLanguageCode() { return this; } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2924,14 +2645,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000010; @@ -2939,19 +2658,14 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { 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_ & 0x00000020) != 0)) { - alternativeLanguageCodes_ = - new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); + alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); bitField0_ |= 0x00000020; - } + } } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2968,15 +2682,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,
@@ -2993,15 +2705,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,
@@ -3018,7 +2727,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. */ @@ -3026,8 +2734,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,
@@ -3044,16 +2750,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,
@@ -3070,23 +2774,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAlternativeLanguageCodes( + int index, java.lang.String value) { + if (value == null) { 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,
@@ -3103,22 +2803,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAlternativeLanguageCodes( + java.lang.String value) { + if (value == null) { 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,
@@ -3135,19 +2831,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,
@@ -3164,7 +2859,6 @@ public Builder addAllAlternativeLanguageCodes(java.lang.Iterable
      *
      * repeated string alternative_language_codes = 18;
-     *
      * @return This builder for chaining.
      */
     public Builder clearAlternativeLanguageCodes() {
@@ -3174,8 +2868,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,
@@ -3192,14 +2884,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAlternativeLanguageCodesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); @@ -3207,10 +2897,8 @@ public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString v return this; } - private int maxAlternatives_; + private int maxAlternatives_ ; /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3221,7 +2909,6 @@ public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString v
      * 
* * int32 max_alternatives = 4; - * * @return The maxAlternatives. */ @java.lang.Override @@ -3229,8 +2916,6 @@ public int getMaxAlternatives() { return maxAlternatives_; } /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3241,20 +2926,17 @@ 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3265,7 +2947,6 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 4; - * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { @@ -3275,10 +2956,8 @@ public Builder clearMaxAlternatives() { 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
@@ -3287,7 +2966,6 @@ public Builder clearMaxAlternatives() {
      * 
* * bool profanity_filter = 5; - * * @return The profanityFilter. */ @java.lang.Override @@ -3295,8 +2973,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
@@ -3305,20 +2981,17 @@ 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; bitField0_ |= 0x00000080; 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
@@ -3327,7 +3000,6 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 5; - * * @return This builder for chaining. */ public Builder clearProfanityFilter() { @@ -3339,13 +3011,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
@@ -3355,15 +3022,12 @@ public Builder clearProfanityFilter() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; - * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3373,21 +3037,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
@@ -3412,8 +3071,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
@@ -3436,8 +3093,6 @@ public Builder setAdaptation(
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3450,10 +3105,9 @@ public Builder setAdaptation(
      */
     public Builder mergeAdaptation(com.google.cloud.speech.v1p1beta1.SpeechAdaptation value) {
       if (adaptationBuilder_ == null) {
-        if (((bitField0_ & 0x00000100) != 0)
-            && adaptation_ != null
-            && adaptation_
-                != com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000100) != 0) &&
+          adaptation_ != null &&
+          adaptation_ != com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance()) {
           getAdaptationBuilder().mergeFrom(value);
         } else {
           adaptation_ = value;
@@ -3466,8 +3120,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
@@ -3489,8 +3141,6 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3507,8 +3157,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder getAdaptationB
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3523,14 +3171,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
@@ -3542,17 +3187,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_;
@@ -3560,13 +3202,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
@@ -3574,17 +3211,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 ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3592,23 +3225,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
@@ -3616,11 +3243,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(); @@ -3634,8 +3259,6 @@ public Builder setTranscriptNormalization( return this; } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3643,8 +3266,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) { @@ -3658,8 +3280,6 @@ public Builder setTranscriptNormalization( return this; } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3667,16 +3287,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 (((bitField0_ & 0x00000200) != 0) - && transcriptNormalization_ != null - && transcriptNormalization_ - != com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + transcriptNormalization_ != null && + transcriptNormalization_ != com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance()) { getTranscriptNormalizationBuilder().mergeFrom(value); } else { transcriptNormalization_ = value; @@ -3689,8 +3306,6 @@ public Builder mergeTranscriptNormalization( return this; } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3698,8 +3313,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() { bitField0_ = (bitField0_ & ~0x00000200); @@ -3712,8 +3326,6 @@ public Builder clearTranscriptNormalization() { return this; } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3721,18 +3333,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() { bitField0_ |= 0x00000200; onChanged(); return getTranscriptNormalizationFieldBuilder().getBuilder(); } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3740,22 +3348,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
@@ -3763,47 +3366,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_ & 0x00000400) != 0)) { - speechContexts_ = - new java.util.ArrayList( - speechContexts_); + speechContexts_ = new java.util.ArrayList(speechContexts_); bitField0_ |= 0x00000400; - } + } } 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
@@ -3822,8 +3413,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
@@ -3842,8 +3431,6 @@ public int getSpeechContextsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3862,8 +3449,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
@@ -3889,8 +3474,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
@@ -3913,8 +3496,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
@@ -3939,8 +3520,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
@@ -3966,8 +3545,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
@@ -3990,8 +3567,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
@@ -4014,8 +3589,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
@@ -4030,7 +3603,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);
@@ -4038,8 +3612,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
@@ -4061,8 +3633,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
@@ -4084,8 +3654,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
@@ -4101,8 +3669,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
@@ -4116,14 +3682,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
@@ -4134,8 +3697,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 {
@@ -4143,8 +3706,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
@@ -4156,12 +3717,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
@@ -4174,12 +3733,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
@@ -4190,22 +3747,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_ & 0x00000400) != 0),
                 getParentForChildren(),
@@ -4215,10 +3766,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
@@ -4227,7 +3776,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContexts
      * 
* * bool enable_word_time_offsets = 8; - * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -4235,8 +3783,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
@@ -4245,20 +3791,17 @@ 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; bitField0_ |= 0x00000800; 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
@@ -4267,7 +3810,6 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 8; - * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { @@ -4277,10 +3819,8 @@ public Builder clearEnableWordTimeOffsets() { 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
@@ -4288,7 +3828,6 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 15; - * * @return The enableWordConfidence. */ @java.lang.Override @@ -4296,8 +3835,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
@@ -4305,20 +3842,17 @@ 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; bitField0_ |= 0x00001000; 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
@@ -4326,7 +3860,6 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 15; - * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { @@ -4336,10 +3869,8 @@ public Builder clearEnableWordConfidence() { 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
@@ -4348,7 +3879,6 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 11; - * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -4356,8 +3886,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
@@ -4366,20 +3894,17 @@ 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; bitField0_ |= 0x00002000; onChanged(); return this; } /** - * - * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -4388,7 +3913,6 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 11; - * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { @@ -4400,13 +3924,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
@@ -4418,15 +3937,12 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return Whether the enableSpokenPunctuation field is set. */ public boolean hasEnableSpokenPunctuation() { return ((bitField0_ & 0x00004000) != 0); } /** - * - * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4438,21 +3954,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
@@ -4479,8 +3990,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
@@ -4505,8 +4014,6 @@ public Builder setEnableSpokenPunctuation(
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4521,9 +4028,9 @@ public Builder setEnableSpokenPunctuation(
      */
     public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value) {
       if (enableSpokenPunctuationBuilder_ == null) {
-        if (((bitField0_ & 0x00004000) != 0)
-            && enableSpokenPunctuation_ != null
-            && enableSpokenPunctuation_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
+        if (((bitField0_ & 0x00004000) != 0) &&
+          enableSpokenPunctuation_ != null &&
+          enableSpokenPunctuation_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
           getEnableSpokenPunctuationBuilder().mergeFrom(value);
         } else {
           enableSpokenPunctuation_ = value;
@@ -4536,8 +4043,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
@@ -4561,8 +4066,6 @@ public Builder clearEnableSpokenPunctuation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4581,8 +4084,6 @@ public com.google.protobuf.BoolValue.Builder getEnableSpokenPunctuationBuilder()
       return getEnableSpokenPunctuationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4599,14 +4100,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
@@ -4620,17 +4118,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_;
@@ -4638,13 +4133,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
@@ -4654,15 +4144,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 ((bitField0_ & 0x00008000) != 0); } /** - * - * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4672,21 +4159,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
@@ -4711,8 +4193,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
@@ -4723,7 +4203,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();
       } else {
@@ -4734,8 +4215,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
@@ -4748,9 +4227,9 @@ public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue.Builder build
      */
     public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       if (enableSpokenEmojisBuilder_ == null) {
-        if (((bitField0_ & 0x00008000) != 0)
-            && enableSpokenEmojis_ != null
-            && enableSpokenEmojis_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
+        if (((bitField0_ & 0x00008000) != 0) &&
+          enableSpokenEmojis_ != null &&
+          enableSpokenEmojis_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
           getEnableSpokenEmojisBuilder().mergeFrom(value);
         } else {
           enableSpokenEmojis_ = value;
@@ -4763,8 +4242,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
@@ -4786,8 +4263,6 @@ public Builder clearEnableSpokenEmojis() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4804,8 +4279,6 @@ public com.google.protobuf.BoolValue.Builder getEnableSpokenEmojisBuilder() {
       return getEnableSpokenEmojisFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4820,14 +4293,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
@@ -4839,26 +4309,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
@@ -4867,19 +4332,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=377 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=377 * @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
@@ -4888,23 +4349,19 @@ 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=377 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=377 * @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; bitField0_ |= 0x00010000; 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
@@ -4913,23 +4370,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=377 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=377 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearEnableSpeakerDiarization() { + @java.lang.Deprecated public Builder clearEnableSpeakerDiarization() { bitField0_ = (bitField0_ & ~0x00010000); 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.
@@ -4937,19 +4390,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=382 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=382 * @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.
@@ -4957,23 +4406,19 @@ 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=382 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=382 * @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; bitField0_ |= 0x00020000; 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.
@@ -4981,13 +4426,11 @@ 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=382 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=382 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearDiarizationSpeakerCount() { + @java.lang.Deprecated public Builder clearDiarizationSpeakerCount() { bitField0_ = (bitField0_ & ~0x00020000); diarizationSpeakerCount_ = 0; onChanged(); @@ -4996,13 +4439,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.
@@ -5015,15 +4453,12 @@ public Builder clearDiarizationSpeakerCount() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19; - * * @return Whether the diarizationConfig field is set. */ public boolean hasDiarizationConfig() { return ((bitField0_ & 0x00040000) != 0); } /** - * - * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5036,21 +4471,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.
@@ -5064,8 +4494,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();
@@ -5079,8 +4508,6 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5106,8 +4533,6 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5121,14 +4546,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 (((bitField0_ & 0x00040000) != 0)
-            && diarizationConfig_ != null
-            && diarizationConfig_
-                != com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig
-                    .getDefaultInstance()) {
+        if (((bitField0_ & 0x00040000) != 0) &&
+          diarizationConfig_ != null &&
+          diarizationConfig_ != com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance()) {
           getDiarizationConfigBuilder().mergeFrom(value);
         } else {
           diarizationConfig_ = value;
@@ -5141,8 +4563,6 @@ public Builder mergeDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5167,8 +4587,6 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5182,15 +4600,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() {
       bitField0_ |= 0x00040000;
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5204,19 +4619,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.
@@ -5231,17 +4642,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_;
@@ -5249,47 +4657,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 ((bitField0_ & 0x00080000) != 0); } /** - * - * *
      * 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.
      * 
@@ -5310,8 +4705,6 @@ public Builder setMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetadata return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5330,8 +4723,6 @@ public Builder setMetadata( return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5340,10 +4731,9 @@ public Builder setMetadata( */ public Builder mergeMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetadata value) { if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) - && metadata_ != null - && metadata_ - != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00080000) != 0) && + metadata_ != null && + metadata_ != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; @@ -5356,8 +4746,6 @@ public Builder mergeMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetada return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5375,8 +4763,6 @@ public Builder clearMetadata() { return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5389,8 +4775,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder getMetadata return getMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5401,14 +4785,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.
      * 
@@ -5416,17 +4797,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_; @@ -5434,8 +4812,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
@@ -5491,13 +4867,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; @@ -5506,8 +4882,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
@@ -5563,14 +4937,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 { @@ -5578,8 +4953,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
@@ -5635,22 +5008,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00100000; 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
@@ -5706,7 +5075,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 13; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -5716,8 +5084,6 @@ public Builder clearModel() { 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
@@ -5773,14 +5139,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00100000; @@ -5788,10 +5152,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { 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
@@ -5803,7 +5165,6 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) {
      * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ @java.lang.Override @@ -5811,8 +5172,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
@@ -5824,20 +5183,17 @@ 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; bitField0_ |= 0x00200000; 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
@@ -5849,7 +5205,6 @@ public Builder setUseEnhanced(boolean value) {
      * 
* * bool use_enhanced = 14; - * * @return This builder for chaining. */ public Builder clearUseEnhanced() { @@ -5858,9 +5213,9 @@ public Builder clearUseEnhanced() { 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); } @@ -5870,12 +5225,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(); } @@ -5884,27 +5239,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5919,4 +5274,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java similarity index 93% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java index 8511b88f1247..3662ea486fe6 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/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.
@@ -86,14 +59,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
@@ -104,14 +74,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.
@@ -122,13 +89,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.
@@ -139,14 +103,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,
@@ -163,13 +125,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,
@@ -186,13 +146,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,
@@ -209,14 +166,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,
@@ -233,15 +187,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
@@ -252,14 +204,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
@@ -268,14 +217,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
@@ -285,13 +231,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
@@ -301,13 +244,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
@@ -321,8 +261,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
@@ -330,15 +268,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
@@ -346,15 +280,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
@@ -362,15 +292,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
@@ -381,10 +307,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
@@ -397,8 +322,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
@@ -411,8 +334,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
@@ -423,11 +344,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
@@ -438,11 +357,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
@@ -451,14 +369,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
@@ -466,14 +381,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
@@ -482,14 +394,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
@@ -501,13 +410,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
@@ -519,13 +425,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
@@ -541,8 +444,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
@@ -552,13 +453,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
@@ -568,13 +466,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
@@ -588,8 +483,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
@@ -598,17 +491,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=377 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=377 * @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.
@@ -616,17 +505,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=382 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=382 * @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.
@@ -639,13 +524,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.
@@ -658,13 +540,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.
@@ -678,36 +557,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.
    * 
@@ -717,8 +587,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
@@ -774,13 +642,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
@@ -836,14 +701,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
@@ -855,7 +718,6 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ boolean getUseEnhanced(); diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java index 45cd4cf4163a..c39ea85770a7 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java +++ b/owl-bot-staging/java-speech/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,33 +31,30 @@ 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; } - - 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.
@@ -84,10 +62,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.
@@ -97,8 +74,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
@@ -110,8 +85,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     DISCUSSION(1),
     /**
-     *
-     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -121,8 +94,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.
@@ -132,8 +103,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     PHONE_CALL(3),
     /**
-     *
-     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -142,8 +111,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ VOICEMAIL(4), /** - * - * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -152,8 +119,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ PROFESSIONALLY_PRODUCED(5), /** - * - * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -162,8 +127,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ VOICE_SEARCH(6), /** - * - * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -172,8 +135,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.
@@ -186,8 +147,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.
@@ -197,8 +156,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
@@ -210,8 +167,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.
@@ -221,8 +176,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.
@@ -232,8 +185,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.
      * 
@@ -242,8 +193,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VOICEMAIL_VALUE = 4; /** - * - * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -252,8 +201,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROFESSIONALLY_PRODUCED_VALUE = 5; /** - * - * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -262,8 +209,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.
      * 
@@ -272,8 +217,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.
@@ -283,6 +226,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(
@@ -307,57 +251,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();
@@ -365,7 +298,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;
@@ -383,18 +317,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.
      * 
@@ -403,8 +334,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
@@ -415,8 +344,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu
      */
     NEARFIELD(1),
     /**
-     *
-     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -425,8 +352,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu */ MIDFIELD(2), /** - * - * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -438,8 +363,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
      * Audio type is not known.
      * 
@@ -448,8 +371,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
@@ -460,8 +381,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.
      * 
@@ -470,8 +389,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.
      * 
@@ -480,6 +397,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( @@ -504,16 +422,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; } } @@ -521,31 +434,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(); @@ -553,7 +464,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; @@ -571,18 +483,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.
      * 
@@ -591,8 +500,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ ORIGINAL_MEDIA_TYPE_UNSPECIFIED(0), /** - * - * *
      * The speech data is an audio recording.
      * 
@@ -601,8 +508,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ AUDIO(1), /** - * - * *
      * The speech data originally recorded on a video.
      * 
@@ -614,8 +519,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Unknown original media type.
      * 
@@ -624,8 +527,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.
      * 
@@ -634,8 +535,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ public static final int AUDIO_VALUE = 1; /** - * - * *
      * The speech data originally recorded on a video.
      * 
@@ -644,6 +543,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( @@ -668,14 +568,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; } } @@ -683,31 +579,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(); @@ -715,7 +609,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; @@ -733,18 +628,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.
      * 
@@ -753,8 +645,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ RECORDING_DEVICE_TYPE_UNSPECIFIED(0), /** - * - * *
      * Speech was recorded on a smartphone.
      * 
@@ -763,8 +653,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ SMARTPHONE(1), /** - * - * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -773,8 +661,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ PC(2), /** - * - * *
      * Speech was recorded over a phone line.
      * 
@@ -783,8 +669,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ PHONE_LINE(3), /** - * - * *
      * Speech was recorded in a vehicle.
      * 
@@ -793,8 +677,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ VEHICLE(4), /** - * - * *
      * Speech was recorded outdoors.
      * 
@@ -803,8 +685,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ OTHER_OUTDOOR_DEVICE(5), /** - * - * *
      * Speech was recorded indoors.
      * 
@@ -816,8 +696,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn ; /** - * - * *
      * The recording device is unknown.
      * 
@@ -826,8 +704,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.
      * 
@@ -836,8 +712,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.
      * 
@@ -846,8 +720,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int PC_VALUE = 2; /** - * - * *
      * Speech was recorded over a phone line.
      * 
@@ -856,8 +728,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int PHONE_LINE_VALUE = 3; /** - * - * *
      * Speech was recorded in a vehicle.
      * 
@@ -866,8 +736,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int VEHICLE_VALUE = 4; /** - * - * *
      * Speech was recorded outdoors.
      * 
@@ -876,8 +744,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int OTHER_OUTDOOR_DEVICE_VALUE = 5; /** - * - * *
      * Speech was recorded indoors.
      * 
@@ -886,6 +752,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( @@ -910,22 +777,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; } } @@ -933,31 +792,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(); @@ -965,7 +822,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; @@ -985,49 +843,32 @@ private RecordingDeviceType(int value) { public static final int INTERACTION_TYPE_FIELD_NUMBER = 1; 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; * @return The interactionType. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType - getInteractionType() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.forNumber( - interactionType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType getInteractionType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.forNumber(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_ = 0; /** - * - * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -1036,7 +877,6 @@ public int getInteractionTypeValue() {
    * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1047,139 +887,85 @@ public int getIndustryNaicsCodeOfAudio() { public static final int MICROPHONE_DISTANCE_FIELD_NUMBER = 4; 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; * @return The microphoneDistance. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance - getMicrophoneDistance() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.forNumber( - microphoneDistance_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.forNumber(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_ = 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; * @return The originalMediaType. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType - getOriginalMediaType() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.forNumber( - originalMediaType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.forNumber(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_ = 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; * @return The recordingDeviceType. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType - getRecordingDeviceType() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.forNumber( - recordingDeviceType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.forNumber(recordingDeviceType_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; } public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER = 7; - @SuppressWarnings("serial") 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
@@ -1187,7 +973,6 @@ public int getRecordingDeviceTypeValue() {
    * 
* * string recording_device_name = 7; - * * @return The recordingDeviceName. */ @java.lang.Override @@ -1196,15 +981,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
@@ -1212,15 +996,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 { @@ -1229,12 +1014,9 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() { } public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER = 8; - @SuppressWarnings("serial") 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`.
@@ -1243,7 +1025,6 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() {
    * 
* * string original_mime_type = 8; - * * @return The originalMimeType. */ @java.lang.Override @@ -1252,15 +1033,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`.
@@ -1269,15 +1049,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 { @@ -1288,39 +1069,31 @@ public com.google.protobuf.ByteString getOriginalMimeTypeBytes() { public static final int OBFUSCATED_ID_FIELD_NUMBER = 9; private long obfuscatedId_ = 0L; /** - * - * *
    * 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=611 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=611 * @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; - @SuppressWarnings("serial") 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 @@ -1329,30 +1102,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 { @@ -1361,7 +1134,6 @@ public com.google.protobuf.ByteString getAudioTopicBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1373,32 +1145,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_)) { @@ -1422,32 +1183,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_); @@ -1456,7 +1210,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_); @@ -1469,23 +1224,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1512,7 +1271,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) + getUnknownFields().hashCode(); @@ -1521,136 +1281,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1668,9 +1421,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 @@ -1689,11 +1442,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.RecognitionMetadata result = new com.google.cloud.speech.v1p1beta1.RecognitionMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1733,39 +1483,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognitionMetadata 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; @@ -1773,8 +1522,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()); } @@ -1834,67 +1582,57 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - interactionType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 24: - { - industryNaicsCodeOfAudio_ = input.readUInt32(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 32: - { - microphoneDistance_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 40: - { - originalMediaType_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 48: - { - recordingDeviceType_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 58: - { - recordingDeviceName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: - { - originalMimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 72: - { - obfuscatedId_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 72 - case 82: - { - audioTopic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + interactionType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 24: { + industryNaicsCodeOfAudio_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: { + microphoneDistance_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: { + originalMediaType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: { + recordingDeviceType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: { + recordingDeviceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: { + originalMimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 72: { + obfuscatedId_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 82: { + audioTopic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1904,38 +1642,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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. */ @@ -1946,44 +1672,28 @@ public Builder setInteractionTypeValue(int value) { 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() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.forNumber( - interactionType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED - : result; + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType getInteractionType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.forNumber(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(); } @@ -1993,16 +1703,11 @@ public Builder setInteractionType( 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() { @@ -2012,10 +1717,8 @@ public Builder clearInteractionType() { 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
@@ -2024,7 +1727,6 @@ public Builder clearInteractionType() {
      * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -2032,8 +1734,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
@@ -2042,20 +1742,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -2064,7 +1761,6 @@ public Builder setIndustryNaicsCodeOfAudio(int value) {
      * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return This builder for chaining. */ public Builder clearIndustryNaicsCodeOfAudio() { @@ -2076,33 +1772,22 @@ 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. */ @@ -2113,44 +1798,28 @@ public Builder setMicrophoneDistanceValue(int value) { 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() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.forNumber( - microphoneDistance_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED - : result; + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.forNumber(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(); } @@ -2160,16 +1829,11 @@ public Builder setMicrophoneDistance( 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() { @@ -2181,33 +1845,22 @@ 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. */ @@ -2218,44 +1871,28 @@ public Builder setOriginalMediaTypeValue(int value) { 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() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.forNumber( - originalMediaType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED - : result; + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.forNumber(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(); } @@ -2265,16 +1902,11 @@ public Builder setOriginalMediaType( 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() { @@ -2286,33 +1918,22 @@ 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. */ @@ -2323,44 +1944,28 @@ public Builder setRecordingDeviceTypeValue(int value) { 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() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.forNumber( - recordingDeviceType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED - : result; + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.forNumber(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(); } @@ -2370,16 +1975,11 @@ public Builder setRecordingDeviceType( 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() { @@ -2391,8 +1991,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
@@ -2400,13 +1998,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; @@ -2415,8 +2013,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
@@ -2424,14 +2020,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 { @@ -2439,8 +2036,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
@@ -2448,22 +2043,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecordingDeviceName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } recordingDeviceName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2471,7 +2062,6 @@ public Builder setRecordingDeviceName(java.lang.String value) {
      * 
* * string recording_device_name = 7; - * * @return This builder for chaining. */ public Builder clearRecordingDeviceName() { @@ -2481,8 +2071,6 @@ public Builder clearRecordingDeviceName() { return this; } /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2490,14 +2078,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecordingDeviceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); recordingDeviceName_ = value; bitField0_ |= 0x00000020; @@ -2507,8 +2093,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`.
@@ -2517,13 +2101,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; @@ -2532,8 +2116,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`.
@@ -2542,14 +2124,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 { @@ -2557,8 +2140,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`.
@@ -2567,22 +2148,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOriginalMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } originalMimeType_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2591,7 +2168,6 @@ public Builder setOriginalMimeType(java.lang.String value) {
      * 
* * string original_mime_type = 8; - * * @return This builder for chaining. */ public Builder clearOriginalMimeType() { @@ -2601,8 +2177,6 @@ public Builder clearOriginalMimeType() { return this; } /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2611,14 +2185,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOriginalMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); originalMimeType_ = value; bitField0_ |= 0x00000040; @@ -2626,65 +2198,53 @@ public Builder setOriginalMimeTypeBytes(com.google.protobuf.ByteString value) { 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=611 * @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=611 * @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; bitField0_ |= 0x00000080; 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=611 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearObfuscatedId() { + @java.lang.Deprecated public Builder clearObfuscatedId() { bitField0_ = (bitField0_ & ~0x00000080); obfuscatedId_ = 0L; onChanged(); @@ -2693,21 +2253,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; @@ -2716,22 +2274,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 { @@ -2739,37 +2296,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAudioTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } audioTopic_ = value; bitField0_ |= 0x00000100; 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() { @@ -2779,31 +2329,27 @@ public Builder clearAudioTopic() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAudioTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); audioTopic_ = value; bitField0_ |= 0x00000100; 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); } @@ -2813,12 +2359,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(); } @@ -2827,27 +2373,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2862,4 +2408,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java index 592a1fe85d0e..34934518b6b8 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java +++ b/owl-bot-staging/java-speech/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=611 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=611 * @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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java similarity index 59% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java index 086a278dc2d0..72f5a09d10e2 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java @@ -1,84 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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; } - - 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 @@ -86,57 +63,39 @@ 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() { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } 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 @@ -144,44 +103,30 @@ 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() { - return audio_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,7 +138,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()); } @@ -210,10 +156,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -223,21 +171,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -264,135 +213,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +354,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 @@ -432,11 +375,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.RecognizeRequest result = new com.google.cloud.speech.v1p1beta1.RecognizeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -444,10 +384,14 @@ public com.google.cloud.speech.v1p1beta1.RecognizeRequest buildPartial() { private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognizeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + result.config_ = configBuilder_ == null + ? config_ + : configBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.audio_ = audioBuilder_ == null ? audio_ : audioBuilder_.build(); + result.audio_ = audioBuilder_ == null + ? audio_ + : audioBuilder_.build(); } } @@ -455,39 +399,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognizeRequest re 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; @@ -495,8 +438,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()); } @@ -529,25 +471,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getAudioFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getAudioFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,66 +500,46 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * 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) { @@ -632,16 +555,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) { @@ -655,23 +574,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 (((bitField0_ & 0x00000001) != 0) - && config_ != null - && config_ - != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + config_ != null && + config_ != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -684,16 +598,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -706,16 +616,12 @@ 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() { bitField0_ |= 0x00000001; @@ -723,50 +629,38 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuil 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_; @@ -774,58 +668,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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) { @@ -841,15 +716,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) { @@ -863,21 +734,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 (((bitField0_ & 0x00000002) != 0) - && audio_ != null - && audio_ != com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + audio_ != null && + audio_ != com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance()) { getAudioBuilder().mergeFrom(value); } else { audio_ = value; @@ -890,15 +757,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -911,15 +774,11 @@ 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() { bitField0_ |= 0x00000002; @@ -927,55 +786,43 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder getAudioBuilde 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); } @@ -985,12 +832,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(); } @@ -999,27 +846,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1034,4 +881,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java new file mode 100644 index 000000000000..2e594dfddc8f --- /dev/null +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java index 332085672c61..14b944493319 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java +++ b/owl-bot-staging/java-speech/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,53 +12,48 @@
  *
  * 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -84,13 +62,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.
@@ -99,14 +74,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.
@@ -119,8 +91,6 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -133,8 +103,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.
@@ -151,14 +119,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 @@ -166,25 +131,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.
    * 
@@ -193,22 +151,17 @@ public com.google.protobuf.Duration getTotalBilledTime() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 7; private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_; /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -216,25 +169,18 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } /** - * - * *
    * Provides information on adaptation behavior in response
    * 
@@ -242,25 +188,19 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptatio * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 8; private long requestId_ = 0L; /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 8; - * * @return The requestId. */ @java.lang.Override @@ -269,7 +209,6 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -281,7 +220,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)); } @@ -304,17 +244,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 (speechAdaptationInfo_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSpeechAdaptationInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, requestId_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -324,24 +267,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.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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo() + .equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() != other.getRequestId()) return false; + if (getRequestId() + != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -366,110 +312,104 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } 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`
@@ -478,32 +418,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -530,9 +471,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
@@ -551,18 +492,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v1p1beta1.RecognizeResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.RecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -577,14 +514,14 @@ private void buildPartialRepeatedFields(
     private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.totalBilledTime_ =
-            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
+            ? totalBilledTime_
+            : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.speechAdaptationInfo_ =
-            speechAdaptationInfoBuilder_ == null
-                ? speechAdaptationInfo_
-                : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
+            ? speechAdaptationInfo_
+            : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.requestId_ = requestId_;
@@ -595,39 +532,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognizeResponse r
     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;
@@ -635,8 +571,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()) {
@@ -655,10 +590,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_);
           }
@@ -699,46 +633,44 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18:
-              {
-                com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
-                        extensionRegistry);
-                if (resultsBuilder_ == null) {
-                  ensureResultsIsMutable();
-                  results_.add(m);
-                } else {
-                  resultsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-            case 58:
-              {
-                input.readMessage(
-                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 58
-            case 64:
-              {
-                requestId_ = input.readInt64();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 64
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 18: {
+              com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
+                      extensionRegistry);
+              if (resultsBuilder_ == null) {
+                ensureResultsIsMutable();
+                results_.add(m);
+              } else {
+                resultsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getTotalBilledTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 26
+            case 58: {
+              input.readMessage(
+                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 58
+            case 64: {
+              requestId_ = input.readInt64();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 64
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -748,30 +680,21 @@ public Builder mergeFrom(
       } // finally
       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.
@@ -779,8 +702,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 {
@@ -788,8 +710,6 @@ private void ensureResultsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -805,8 +725,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -822,8 +740,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -846,8 +762,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -856,8 +770,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());
@@ -868,8 +781,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -891,8 +802,6 @@ public Builder addResults(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRes
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -915,8 +824,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -936,8 +843,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -946,8 +851,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());
@@ -958,8 +862,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -968,11 +870,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);
@@ -980,8 +882,6 @@ public Builder addAllResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1000,8 +900,6 @@ public Builder clearResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1020,8 +918,6 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1034,8 +930,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.
@@ -1046,14 +940,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.
@@ -1061,9 +952,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 {
@@ -1071,8 +961,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1081,13 +969,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.
@@ -1097,14 +982,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.
@@ -1112,23 +993,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_;
@@ -1136,47 +1014,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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.
      * 
@@ -1197,15 +1062,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(); } else { @@ -1216,8 +1080,6 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1226,9 +1088,9 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo */ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && totalBilledTime_ != null - && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + totalBilledTime_ != null && + totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getTotalBilledTimeBuilder().mergeFrom(value); } else { totalBilledTime_ = value; @@ -1241,8 +1103,6 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1260,8 +1120,6 @@ public Builder clearTotalBilledTime() { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1274,8 +1132,6 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { return getTotalBilledTimeFieldBuilder().getBuilder(); } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1286,14 +1142,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.
      * 
@@ -1301,17 +1154,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_; @@ -1319,55 +1169,41 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> - speechAdaptationInfoBuilder_; + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_; /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public Builder setSpeechAdaptationInfo( - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1381,8 +1217,6 @@ public Builder setSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -1401,21 +1235,17 @@ public Builder setSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public Builder mergeSpeechAdaptationInfo( - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && speechAdaptationInfo_ != null - && speechAdaptationInfo_ - != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + speechAdaptationInfo_ != null && + speechAdaptationInfo_ != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -1428,8 +1258,6 @@ public Builder mergeSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -1447,42 +1275,33 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder - getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -1490,33 +1309,27 @@ public Builder clearSpeechAdaptationInfo() { * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), getParentForChildren(), isClean()); + speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), + getParentForChildren(), + isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_; + private long requestId_ ; /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; - * * @return The requestId. */ @java.lang.Override @@ -1524,35 +1337,29 @@ public long getRequestId() { return requestId_; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; - * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1561,9 +1368,9 @@ public Builder clearRequestId() { 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); } @@ -1573,12 +1380,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(); } @@ -1587,27 +1394,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1622,4 +1429,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java similarity index 79% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java index e98bffda311b..9e93219032fb 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/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.
    * 
@@ -116,51 +84,39 @@ public interface RecognizeResponseOrBuilder com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder(); /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder(); + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 8; - * * @return The requestId. */ long getRequestId(); diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java index ca33cbc211a7..6041c4903edb 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java @@ -1,75 +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; } - - 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_ = false; /** - * - * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -77,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool enable_speaker_diarization = 1; - * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -88,8 +67,6 @@ public boolean getEnableSpeakerDiarization() { public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_ = 0; /** - * - * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -97,7 +74,6 @@ public boolean getEnableSpeakerDiarization() {
    * 
* * int32 min_speaker_count = 2; - * * @return The minSpeakerCount. */ @java.lang.Override @@ -108,8 +84,6 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_ = 0; /** - * - * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -117,7 +91,6 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3; - * * @return The maxSpeakerCount. */ @java.lang.Override @@ -128,27 +101,21 @@ public int getMaxSpeakerCount() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_ = 0; /** - * - * *
    * 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=479 * @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; @@ -160,7 +127,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_); } @@ -183,16 +151,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -202,18 +174,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -226,7 +201,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; @@ -239,136 +215,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +350,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 @@ -402,11 +371,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig result = new com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -431,39 +397,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationC 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; @@ -471,8 +436,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()); } @@ -511,37 +475,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enableSpeakerDiarization_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - minSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - maxSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 40: - { - speakerTag_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enableSpeakerDiarization_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + minSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + maxSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 40: { + speakerTag_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -551,13 +510,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - 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
@@ -565,7 +521,6 @@ public Builder mergeFrom(
      * 
* * bool enable_speaker_diarization = 1; - * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -573,8 +528,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
@@ -582,20 +535,17 @@ 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; bitField0_ |= 0x00000001; 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
@@ -603,7 +553,6 @@ public Builder setEnableSpeakerDiarization(boolean value) {
      * 
* * bool enable_speaker_diarization = 1; - * * @return This builder for chaining. */ public Builder clearEnableSpeakerDiarization() { @@ -613,10 +562,8 @@ public Builder clearEnableSpeakerDiarization() { 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
@@ -624,7 +571,6 @@ public Builder clearEnableSpeakerDiarization() {
      * 
* * int32 min_speaker_count = 2; - * * @return The minSpeakerCount. */ @java.lang.Override @@ -632,8 +578,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
@@ -641,20 +585,17 @@ 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; bitField0_ |= 0x00000002; 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
@@ -662,7 +603,6 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2; - * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { @@ -672,10 +612,8 @@ public Builder clearMinSpeakerCount() { 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
@@ -683,7 +621,6 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; - * * @return The maxSpeakerCount. */ @java.lang.Override @@ -691,8 +628,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
@@ -700,20 +635,17 @@ 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; bitField0_ |= 0x00000004; 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
@@ -721,7 +653,6 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3; - * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { @@ -731,73 +662,58 @@ public Builder clearMaxSpeakerCount() { 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=479 * @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=479 * @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; bitField0_ |= 0x00000008; 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=479 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearSpeakerTag() { + @java.lang.Deprecated public Builder clearSpeakerTag() { bitField0_ = (bitField0_ & ~0x00000008); 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); } @@ -807,12 +723,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(); } @@ -821,27 +737,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -856,4 +772,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java similarity index 68% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java index 37f7409eca89..48953e669d2a 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/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=479 * @return The speakerTag. */ - @java.lang.Deprecated - int getSpeakerTag(); + @java.lang.Deprecated int getSpeakerTag(); } diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java similarity index 76% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java index 156b2694de08..4e7cd8399c91 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java +++ b/owl-bot-staging/java-speech/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,175 +27,154 @@ 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; } - - 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 interface ABNFGrammarOrBuilder - extends + public interface ABNFGrammarOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @return A list containing the abnfStrings. */ - java.util.List getAbnfStringsList(); + java.util.List + getAbnfStringsList(); /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @return The count of abnfStrings. */ int getAbnfStringsCount(); /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ java.lang.String getAbnfStrings(int index); /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - com.google.protobuf.ByteString getAbnfStringsBytes(int index); + com.google.protobuf.ByteString + getAbnfStringsBytes(int index); } - /** Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar} */ - public static final class ABNFGrammar extends com.google.protobuf.GeneratedMessageV3 - implements + /** + * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar} + */ + public static final class ABNFGrammar extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) ABNFGrammarOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ABNFGrammar.newBuilder() to construct. private ABNFGrammar(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ABNFGrammar() { abnfStrings_ = 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 ABNFGrammar(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_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_ABNFGrammar_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.class, - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder.class); } public static final int ABNF_STRINGS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList abnfStrings_; /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @return A list containing the abnfStrings. */ - public com.google.protobuf.ProtocolStringList getAbnfStringsList() { + public com.google.protobuf.ProtocolStringList + getAbnfStringsList() { return abnfStrings_; } /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @return The count of abnfStrings. */ public int getAbnfStringsCount() { return abnfStrings_.size(); } /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ @@ -221,24 +182,21 @@ public java.lang.String getAbnfStrings(int index) { return abnfStrings_.get(index); } /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - public com.google.protobuf.ByteString getAbnfStringsBytes(int index) { + public com.google.protobuf.ByteString + getAbnfStringsBytes(int index) { return abnfStrings_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,7 +208,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 < abnfStrings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, abnfStrings_.getRaw(i)); } @@ -279,15 +238,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.SpeechAdaptation.ABNFGrammar)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar other = - (com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) obj; + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar other = (com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) obj; - if (!getAbnfStringsList().equals(other.getAbnfStringsList())) return false; + if (!getAbnfStringsList() + .equals(other.getAbnfStringsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -309,94 +268,87 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar 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 @@ -405,34 +357,36 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_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_ABNFGrammar_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.class, - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -443,14 +397,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_SpeechAdaptation_ABNFGrammar_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor; } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar - getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getDefaultInstanceForType() { return com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance(); } @@ -465,18 +418,14 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result = - new com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar(this); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result = new com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result) { if (((bitField0_ & 0x00000001) != 0)) { abnfStrings_ = abnfStrings_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -484,8 +433,7 @@ private void buildPartialRepeatedFields( result.abnfStrings_ = abnfStrings_; } - private void buildPartial0( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result) { + private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result) { int from_bitField0_ = bitField0_; } @@ -493,52 +441,46 @@ private void buildPartial0( 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.SpeechAdaptation.ABNFGrammar) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar other) { - if (other - == com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar other) { + if (other == com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) return this; if (!other.abnfStrings_.isEmpty()) { if (abnfStrings_.isEmpty()) { abnfStrings_ = other.abnfStrings_; @@ -575,20 +517,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAbnfStringsIsMutable(); - abnfStrings_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAbnfStringsIsMutable(); + abnfStrings_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -598,58 +538,47 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList abnfStrings_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList abnfStrings_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAbnfStringsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { abnfStrings_ = new com.google.protobuf.LazyStringArrayList(abnfStrings_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @return A list containing the abnfStrings. */ - public com.google.protobuf.ProtocolStringList getAbnfStringsList() { + public com.google.protobuf.ProtocolStringList + getAbnfStringsList() { return abnfStrings_.getUnmodifiableView(); } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @return The count of abnfStrings. */ public int getAbnfStringsCount() { return abnfStrings_.size(); } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ @@ -657,95 +586,81 @@ public java.lang.String getAbnfStrings(int index) { return abnfStrings_.get(index); } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - public com.google.protobuf.ByteString getAbnfStringsBytes(int index) { + public com.google.protobuf.ByteString + getAbnfStringsBytes(int index) { return abnfStrings_.getByteString(index); } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param index The index to set the value at. * @param value The abnfStrings to set. * @return This builder for chaining. */ - public Builder setAbnfStrings(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAbnfStrings( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAbnfStringsIsMutable(); abnfStrings_.set(index, value); onChanged(); return this; } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param value The abnfStrings to add. * @return This builder for chaining. */ - public Builder addAbnfStrings(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAbnfStrings( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAbnfStringsIsMutable(); abnfStrings_.add(value); onChanged(); return this; } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param values The abnfStrings to add. * @return This builder for chaining. */ - public Builder addAllAbnfStrings(java.lang.Iterable values) { + public Builder addAllAbnfStrings( + java.lang.Iterable values) { ensureAbnfStringsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, abnfStrings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, abnfStrings_); onChanged(); return this; } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @return This builder for chaining. */ public Builder clearAbnfStrings() { @@ -755,29 +670,24 @@ public Builder clearAbnfStrings() { return this; } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param value The bytes of the abnfStrings to add. * @return This builder for chaining. */ - public Builder addAbnfStringsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAbnfStringsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAbnfStringsIsMutable(); abnfStrings_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -790,44 +700,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) - private static final com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar - DEFAULT_INSTANCE; - + private static final com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar(); } - public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar - getDefaultInstance() { + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ABNFGrammar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ABNFGrammar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -839,19 +746,16 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar - getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int PHRASE_SETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") 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
@@ -865,8 +769,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
@@ -876,13 +778,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
@@ -896,8 +796,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
@@ -911,8 +809,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
@@ -922,54 +818,43 @@ 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;
-
   @SuppressWarnings("serial")
   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. */ @@ -977,29 +862,23 @@ 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; - @SuppressWarnings("serial") 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
@@ -1014,8 +893,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
@@ -1026,13 +903,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
@@ -1047,8 +922,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
@@ -1063,8 +936,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
@@ -1083,8 +954,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr
   public static final int ABNF_GRAMMAR_FIELD_NUMBER = 4;
   private com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnfGrammar_;
   /**
-   *
-   *
    * 
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -1092,7 +961,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return Whether the abnfGrammar field is set. */ @java.lang.Override @@ -1100,8 +968,6 @@ public boolean hasAbnfGrammar() { return abnfGrammar_ != null; } /** - * - * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -1109,18 +975,13 @@ public boolean hasAbnfGrammar() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return The abnfGrammar. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getAbnfGrammar() { - return abnfGrammar_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() - : abnfGrammar_; + return abnfGrammar_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_; } /** - * - * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -1130,15 +991,11 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getAbnfGra
    * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder
-      getAbnfGrammarOrBuilder() {
-    return abnfGrammar_ == null
-        ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()
-        : abnfGrammar_;
+  public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder getAbnfGrammarOrBuilder() {
+    return abnfGrammar_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1150,7 +1007,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));
     }
@@ -1173,7 +1031,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;
@@ -1184,10 +1043,12 @@ 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));
     }
     if (abnfGrammar_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAbnfGrammar());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getAbnfGrammar());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1197,20 +1058,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.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 (hasAbnfGrammar() != other.hasAbnfGrammar()) return false;
     if (hasAbnfGrammar()) {
-      if (!getAbnfGrammar().equals(other.getAbnfGrammar())) return false;
+      if (!getAbnfGrammar()
+          .equals(other.getAbnfGrammar())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -1245,135 +1109,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1403,9 +1261,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 @@ -1424,18 +1282,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.SpeechAdaptation result) { if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -1464,8 +1318,9 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechAdaptation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000008) != 0)) { - result.abnfGrammar_ = - abnfGrammarBuilder_ == null ? abnfGrammar_ : abnfGrammarBuilder_.build(); + result.abnfGrammar_ = abnfGrammarBuilder_ == null + ? abnfGrammar_ + : abnfGrammarBuilder_.build(); } } @@ -1473,39 +1328,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechAdaptation re 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; @@ -1513,8 +1367,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()) { @@ -1533,10 +1386,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_); } @@ -1570,10 +1422,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_); } @@ -1608,52 +1459,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1p1beta1.PhraseSet m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); - if (phraseSetsBuilder_ == null) { - ensurePhraseSetsIsMutable(); - phraseSets_.add(m); - } else { - phraseSetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePhraseSetReferencesIsMutable(); - phraseSetReferences_.add(s); - break; - } // case 18 - case 26: - { - com.google.cloud.speech.v1p1beta1.CustomClass m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); - if (customClassesBuilder_ == null) { - ensureCustomClassesIsMutable(); - customClasses_.add(m); - } else { - customClassesBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - input.readMessage(getAbnfGrammarFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.speech.v1p1beta1.PhraseSet m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), + extensionRegistry); + if (phraseSetsBuilder_ == null) { + ensurePhraseSetsIsMutable(); + phraseSets_.add(m); + } else { + phraseSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePhraseSetReferencesIsMutable(); + phraseSetReferences_.add(s); + break; + } // case 18 + case 26: { + com.google.cloud.speech.v1p1beta1.CustomClass m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.CustomClass.parser(), + extensionRegistry); + if (customClassesBuilder_ == null) { + ensureCustomClassesIsMutable(); + customClasses_.add(m); + } else { + customClassesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + input.readMessage( + getAbnfGrammarFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1663,29 +1513,21 @@ public Builder mergeFrom( } // finally 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
@@ -1702,8 +1544,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
@@ -1720,8 +1560,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
@@ -1738,8 +1576,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
@@ -1748,7 +1584,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();
@@ -1762,8 +1599,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
@@ -1784,8 +1619,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
@@ -1808,8 +1641,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
@@ -1818,7 +1649,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();
@@ -1832,8 +1664,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
@@ -1854,8 +1684,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
@@ -1876,8 +1704,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
@@ -1890,7 +1716,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);
@@ -1898,8 +1725,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
@@ -1919,8 +1744,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
@@ -1940,8 +1763,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
@@ -1950,12 +1771,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
@@ -1964,16 +1784,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
@@ -1982,8 +1800,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 {
@@ -1991,8 +1809,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
@@ -2002,12 +1818,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
@@ -2016,13 +1830,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
@@ -2031,77 +1844,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. */ @@ -2109,95 +1906,76 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhraseSetReferences( + int index, java.lang.String value) { + if (value == null) { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPhraseSetReferences( + java.lang.String value) { + if (value == null) { 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() { @@ -2207,22 +1985,17 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPhraseSetReferencesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); @@ -2231,25 +2004,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
@@ -2267,8 +2033,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
@@ -2286,8 +2050,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
@@ -2305,8 +2067,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
@@ -2331,8 +2091,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
@@ -2354,8 +2112,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
@@ -2379,8 +2135,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
@@ -2405,8 +2159,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
@@ -2428,8 +2180,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
@@ -2451,8 +2201,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
@@ -2466,7 +2214,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);
@@ -2474,8 +2223,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
@@ -2496,8 +2243,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
@@ -2518,8 +2263,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
@@ -2534,8 +2277,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
@@ -2548,14 +2289,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
@@ -2565,8 +2303,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 {
@@ -2574,8 +2312,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
@@ -2586,12 +2322,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
@@ -2603,12 +2337,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
@@ -2618,22 +2350,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(),
@@ -2645,13 +2371,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBui
 
     private com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnfGrammar_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar,
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder,
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder>
-        abnfGrammarBuilder_;
+        com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder> abnfGrammarBuilder_;
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2659,15 +2380,12 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBui
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return Whether the abnfGrammar field is set. */ public boolean hasAbnfGrammar() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2675,21 +2393,16 @@ public boolean hasAbnfGrammar() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return The abnfGrammar. */ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getAbnfGrammar() { if (abnfGrammarBuilder_ == null) { - return abnfGrammar_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() - : abnfGrammar_; + return abnfGrammar_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_; } else { return abnfGrammarBuilder_.getMessage(); } } /** - * - * *
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2698,8 +2411,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getAbnfGra
      *
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
-    public Builder setAbnfGrammar(
-        com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar value) {
+    public Builder setAbnfGrammar(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar value) {
       if (abnfGrammarBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2713,8 +2425,6 @@ public Builder setAbnfGrammar(
       return this;
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2735,8 +2445,6 @@ public Builder setAbnfGrammar(
       return this;
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2745,14 +2453,11 @@ public Builder setAbnfGrammar(
      *
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
-    public Builder mergeAbnfGrammar(
-        com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar value) {
+    public Builder mergeAbnfGrammar(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar value) {
       if (abnfGrammarBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && abnfGrammar_ != null
-            && abnfGrammar_
-                != com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar
-                    .getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          abnfGrammar_ != null &&
+          abnfGrammar_ != com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) {
           getAbnfGrammarBuilder().mergeFrom(value);
         } else {
           abnfGrammar_ = value;
@@ -2765,8 +2470,6 @@ public Builder mergeAbnfGrammar(
       return this;
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2786,8 +2489,6 @@ public Builder clearAbnfGrammar() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2796,15 +2497,12 @@ public Builder clearAbnfGrammar() {
      *
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
-    public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder
-        getAbnfGrammarBuilder() {
+    public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder getAbnfGrammarBuilder() {
       bitField0_ |= 0x00000008;
       onChanged();
       return getAbnfGrammarFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2813,19 +2511,15 @@ public Builder clearAbnfGrammar() {
      *
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
-    public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder
-        getAbnfGrammarOrBuilder() {
+    public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder getAbnfGrammarOrBuilder() {
       if (abnfGrammarBuilder_ != null) {
         return abnfGrammarBuilder_.getMessageOrBuilder();
       } else {
-        return abnfGrammar_ == null
-            ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()
-            : abnfGrammar_;
+        return abnfGrammar_ == null ?
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_;
       }
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2835,24 +2529,21 @@ public Builder clearAbnfGrammar() {
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar,
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder,
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder>
+        com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder> 
         getAbnfGrammarFieldBuilder() {
       if (abnfGrammarBuilder_ == null) {
-        abnfGrammarBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar,
-                com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder,
-                com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder>(
-                getAbnfGrammar(), getParentForChildren(), isClean());
+        abnfGrammarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder>(
+                getAbnfGrammar(),
+                getParentForChildren(),
+                isClean());
         abnfGrammar_ = null;
       }
       return abnfGrammarBuilder_;
     }
-
     @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);
     }
 
@@ -2862,12 +2553,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();
   }
@@ -2876,27 +2567,27 @@ 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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  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 {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2911,4 +2602,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v1p1beta1.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java
similarity index 67%
rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java
rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java
index 25386dead1cf..2395ba4ad4ff 100644
--- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java
+++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java
@@ -1,84 +1,62 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License 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;
 
 /**
- *
- *
  * 
  * Information on speech adaptation use in results
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptationInfo} */ -public final class SpeechAdaptationInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpeechAdaptationInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) SpeechAdaptationInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpeechAdaptationInfo.newBuilder() to construct. private SpeechAdaptationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeechAdaptationInfo() { timeoutMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpeechAdaptationInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.class, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder.class); } public static final int ADAPTATION_TIMEOUT_FIELD_NUMBER = 1; private boolean adaptationTimeout_ = false; /** - * - * *
    * Whether there was a timeout when applying speech adaptation. If true,
    * adaptation had no effect in the response transcript.
    * 
* * bool adaptation_timeout = 1; - * * @return The adaptationTimeout. */ @java.lang.Override @@ -87,19 +65,15 @@ public boolean getAdaptationTimeout() { } public static final int TIMEOUT_MESSAGE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object timeoutMessage_ = ""; /** - * - * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; - * * @return The timeoutMessage. */ @java.lang.Override @@ -108,30 +82,30 @@ public java.lang.String getTimeoutMessage() { 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(); timeoutMessage_ = s; return s; } } /** - * - * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; - * * @return The bytes for timeoutMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getTimeoutMessageBytes() { + public com.google.protobuf.ByteString + getTimeoutMessageBytes() { java.lang.Object ref = timeoutMessage_; 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); timeoutMessage_ = b; return b; } else { @@ -140,7 +114,6 @@ public com.google.protobuf.ByteString getTimeoutMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -152,7 +125,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 (adaptationTimeout_ != false) { output.writeBool(1, adaptationTimeout_); } @@ -169,7 +143,8 @@ public int getSerializedSize() { size = 0; if (adaptationTimeout_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, adaptationTimeout_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, adaptationTimeout_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeoutMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, timeoutMessage_); @@ -182,16 +157,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.SpeechAdaptationInfo)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo other = - (com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) obj; + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo other = (com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) obj; - if (getAdaptationTimeout() != other.getAdaptationTimeout()) return false; - if (!getTimeoutMessage().equals(other.getTimeoutMessage())) return false; + if (getAdaptationTimeout() + != other.getAdaptationTimeout()) return false; + if (!getTimeoutMessage() + .equals(other.getTimeoutMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -204,7 +180,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADAPTATION_TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAdaptationTimeout()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAdaptationTimeout()); hash = (37 * hash) + TIMEOUT_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getTimeoutMessage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -213,136 +190,129 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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; } /** - * - * *
    * Information on speech adaptation use in results
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptationInfo} */ - 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.SpeechAdaptationInfo) com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.class, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -353,9 +323,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_SpeechAdaptationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; } @java.lang.Override @@ -374,11 +344,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo result = - new com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo result = new com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -397,39 +364,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInf 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.SpeechAdaptationInfo) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo)other); } else { super.mergeFrom(other); return this; @@ -437,8 +403,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo other) { - if (other == com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) return this; if (other.getAdaptationTimeout() != false) { setAdaptationTimeout(other.getAdaptationTimeout()); } @@ -473,25 +438,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - adaptationTimeout_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 34: - { - timeoutMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + adaptationTimeout_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 34: { + timeoutMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -501,20 +463,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean adaptationTimeout_; + private boolean adaptationTimeout_ ; /** - * - * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; - * * @return The adaptationTimeout. */ @java.lang.Override @@ -522,35 +480,29 @@ public boolean getAdaptationTimeout() { return adaptationTimeout_; } /** - * - * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; - * * @param value The adaptationTimeout to set. * @return This builder for chaining. */ public Builder setAdaptationTimeout(boolean value) { - + adaptationTimeout_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; - * * @return This builder for chaining. */ public Builder clearAdaptationTimeout() { @@ -562,21 +514,19 @@ public Builder clearAdaptationTimeout() { private java.lang.Object timeoutMessage_ = ""; /** - * - * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; - * * @return The timeoutMessage. */ public java.lang.String getTimeoutMessage() { java.lang.Object ref = timeoutMessage_; 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(); timeoutMessage_ = s; return s; @@ -585,22 +535,21 @@ public java.lang.String getTimeoutMessage() { } } /** - * - * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; - * * @return The bytes for timeoutMessage. */ - public com.google.protobuf.ByteString getTimeoutMessageBytes() { + public com.google.protobuf.ByteString + getTimeoutMessageBytes() { java.lang.Object ref = timeoutMessage_; 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); timeoutMessage_ = b; return b; } else { @@ -608,37 +557,30 @@ public com.google.protobuf.ByteString getTimeoutMessageBytes() { } } /** - * - * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; - * * @param value The timeoutMessage to set. * @return This builder for chaining. */ - public Builder setTimeoutMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTimeoutMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } timeoutMessage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; - * * @return This builder for chaining. */ public Builder clearTimeoutMessage() { @@ -648,31 +590,27 @@ public Builder clearTimeoutMessage() { return this; } /** - * - * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; - * * @param value The bytes for timeoutMessage to set. * @return This builder for chaining. */ - public Builder setTimeoutMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTimeoutMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); timeoutMessage_ = value; bitField0_ |= 0x00000002; 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); } @@ -682,12 +620,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) private static final com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo(); } @@ -696,27 +634,27 @@ public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechAdaptationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechAdaptationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -731,4 +669,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java similarity index 59% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java index bd5508cea1c6..0a1b98bbef2e 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.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/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface SpeechAdaptationInfoOrBuilder - extends +public interface SpeechAdaptationInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Whether there was a timeout when applying speech adaptation. If true,
    * adaptation had no effect in the response transcript.
    * 
* * bool adaptation_timeout = 1; - * * @return The adaptationTimeout. */ boolean getAdaptationTimeout(); /** - * - * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; - * * @return The timeoutMessage. */ java.lang.String getTimeoutMessage(); /** - * - * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; - * * @return The bytes for timeoutMessage. */ - com.google.protobuf.ByteString getTimeoutMessageBytes(); + com.google.protobuf.ByteString + getTimeoutMessageBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java similarity index 83% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java index 637902e79fb0..037c2dbd76f7 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java +++ b/owl-bot-staging/java-speech/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,11 +158,10 @@ 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);
 
   /**
-   *
-   *
    * 
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -217,13 +169,10 @@ public interface SpeechAdaptationOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return Whether the abnfGrammar field is set. */ boolean hasAbnfGrammar(); /** - * - * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -231,13 +180,10 @@ public interface SpeechAdaptationOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return The abnfGrammar. */ com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getAbnfGrammar(); /** - * - * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java
new file mode 100644
index 000000000000..0322b2c20ba1
--- /dev/null
+++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
similarity index 78%
rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
index 6ae937dad075..2d92e1404445 100644
--- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
+++ b/owl-bot-staging/java-speech/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,53 +11,48 @@
  *
  * 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
   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
@@ -90,15 +68,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
@@ -114,15 +90,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
@@ -138,7 +111,6 @@ public int getPhrasesCount() {
    * 
* * repeated string phrases = 1; - * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -146,8 +118,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
@@ -163,19 +133,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_ = 0F; /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -188,7 +156,6 @@ public com.google.protobuf.ByteString getPhrasesBytes(int index) {
    * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -197,7 +164,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +175,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)); } @@ -234,7 +201,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -244,17 +212,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -271,110 +240,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) + getUnknownFields().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.
@@ -382,32 +345,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -419,9 +383,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
@@ -440,18 +404,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v1p1beta1.SpeechContext result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.SpeechContext result) {
       if (((bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000001);
@@ -470,39 +430,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechContext resul
     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;
@@ -510,8 +469,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_;
@@ -551,26 +509,23 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensurePhrasesIsMutable();
-                phrases_.add(s);
-                break;
-              } // case 10
-            case 37:
-              {
-                boost_ = input.readFloat();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 37
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensurePhrasesIsMutable();
+              phrases_.add(s);
+              break;
+            } // case 10
+            case 37: {
+              boost_ = input.readFloat();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 37
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -580,21 +535,16 @@ public Builder mergeFrom(
       } // finally
       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
@@ -610,15 +560,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
@@ -634,15 +582,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
@@ -658,7 +603,6 @@ public int getPhrasesCount() {
      * 
* * repeated string phrases = 1; - * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -666,8 +610,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
@@ -683,16 +625,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
@@ -708,23 +648,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhrases( + int index, java.lang.String value) { + if (value == null) { 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
@@ -740,22 +676,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPhrases( + java.lang.String value) { + if (value == null) { 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
@@ -771,19 +703,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
@@ -799,7 +730,6 @@ public Builder addAllPhrases(java.lang.Iterable values) {
      * 
* * repeated string phrases = 1; - * * @return This builder for chaining. */ public Builder clearPhrases() { @@ -809,8 +739,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
@@ -826,14 +754,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPhrasesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePhrasesIsMutable(); phrases_.add(value); @@ -841,10 +767,8 @@ public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { 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
@@ -857,7 +781,6 @@ public Builder addPhrasesBytes(com.google.protobuf.ByteString value) {
      * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -865,8 +788,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
@@ -879,20 +800,17 @@ public float getBoost() {
      * 
* * float boost = 4; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000002; 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
@@ -905,7 +823,6 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; - * * @return This builder for chaining. */ public Builder clearBoost() { @@ -914,9 +831,9 @@ public Builder clearBoost() { 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); } @@ -926,12 +843,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(); } @@ -940,27 +857,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -975,4 +892,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java similarity index 85% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java index 9c1e1ba589d1..1daae97d3d7c 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java new file mode 100644 index 000000000000..e04be912f63d --- /dev/null +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java @@ -0,0 +1,441 @@ +// 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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_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\"\373\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\022S\n\026" + + "speech_adaptation_info\030\007 \001(\01323.google.cl" + + "oud.speech.v1p1beta1.SpeechAdaptationInf" + + "o\022\022\n\nrequest_id\030\010 \001(\003\"\376\002\n\034LongRunningRec" + + "ognizeResponse\022G\n\007results\030\002 \003(\01326.google" + + ".cloud.speech.v1p1beta1.SpeechRecognitio" + + "nResult\0224\n\021total_billed_time\030\003 \001(\0132\031.goo" + + "gle.protobuf.Duration\022L\n\routput_config\030\006" + + " \001(\01325.google.cloud.speech.v1p1beta1.Tra" + + "nscriptOutputConfig\022(\n\014output_error\030\007 \001(" + + "\0132\022.google.rpc.Status\022S\n\026speech_adaptati" + + "on_info\030\010 \001(\01323.google.cloud.speech.v1p1" + + "beta1.SpeechAdaptationInfo\022\022\n\nrequest_id" + + "\030\t \001(\003\"\203\002\n\034LongRunningRecognizeMetadata\022" + + "\030\n\020progress_percent\030\001 \001(\005\022.\n\nstart_time\030" + + "\002 \001(\0132\032.google.protobuf.Timestamp\0224\n\020las" + + "t_update_time\030\003 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022\020\n\003uri\030\004 \001(\tB\003\340A\003\022Q\n\routput_conf" + + "ig\030\005 \001(\01325.google.cloud.speech.v1p1beta1" + + ".TranscriptOutputConfigB\003\340A\003\"\336\003\n\032Streami" + + "ngRecognizeResponse\022!\n\005error\030\001 \001(\0132\022.goo" + + "gle.rpc.Status\022J\n\007results\030\002 \003(\01329.google" + + ".cloud.speech.v1p1beta1.StreamingRecogni" + + "tionResult\022d\n\021speech_event_type\030\004 \001(\0162I." + + "google.cloud.speech.v1p1beta1.StreamingR" + + "ecognizeResponse.SpeechEventType\0224\n\021tota" + + "l_billed_time\030\005 \001(\0132\031.google.protobuf.Du" + + "ration\022S\n\026speech_adaptation_info\030\t \001(\01323" + + ".google.cloud.speech.v1p1beta1.SpeechAda" + + "ptationInfo\022\022\n\nrequest_id\030\n \001(\003\"L\n\017Speec" + + "hEventType\022\034\n\030SPEECH_EVENT_UNSPECIFIED\020\000" + + "\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\371\001\n\032Stream" + + "ingRecognitionResult\022Q\n\014alternatives\030\001 \003" + + "(\0132;.google.cloud.speech.v1p1beta1.Speec" + + "hRecognitionAlternative\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\013chan" + + "nel_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A" + + "\003\"\321\001\n\027SpeechRecognitionResult\022Q\n\014alterna" + + "tives\030\001 \003(\0132;.google.cloud.speech.v1p1be" + + "ta1.SpeechRecognitionAlternative\022\023\n\013chan" + + "nel_tag\030\002 \001(\005\0222\n\017result_end_time\030\004 \001(\0132\031" + + ".google.protobuf.Duration\022\032\n\rlanguage_co" + + "de\030\005 \001(\tB\003\340A\003\"~\n\034SpeechRecognitionAltern" + + "ative\022\022\n\ntranscript\030\001 \001(\t\022\022\n\nconfidence\030" + + "\002 \001(\002\0226\n\005words\030\003 \003(\0132\'.google.cloud.spee" + + "ch.v1p1beta1.WordInfo\"\242\001\n\010WordInfo\022-\n\nst" + + "art_time\030\001 \001(\0132\031.google.protobuf.Duratio" + + "n\022+\n\010end_time\030\002 \001(\0132\031.google.protobuf.Du" + + "ration\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\003\"K\n\024SpeechAdap" + + "tationInfo\022\032\n\022adaptation_timeout\030\001 \001(\010\022\027" + + "\n\017timeout_message\030\004 \001(\t2\202\005\n\006Speech\022\245\001\n\tR" + + "ecognize\022/.google.cloud.speech.v1p1beta1" + + ".RecognizeRequest\0320.google.cloud.speech." + + "v1p1beta1.RecognizeResponse\"5\202\323\344\223\002 \"\033/v1" + + "p1beta1/speech:recognize:\001*\332A\014config,aud" + + "io\022\362\001\n\024LongRunningRecognize\022:.google.clo" + + "ud.speech.v1p1beta1.LongRunningRecognize" + + "Request\032\035.google.longrunning.Operation\"\177" + + "\202\323\344\223\002+\"&/v1p1beta1/speech:longrunningrec" + + "ognize:\001*\332A\014config,audio\312A<\n\034LongRunning" + + "RecognizeResponse\022\034LongRunningRecognizeM" + + "etadata\022\217\001\n\022StreamingRecognize\0228.google." + + "cloud.speech.v1p1beta1.StreamingRecogniz" + + "eRequest\0329.google.cloud.speech.v1p1beta1" + + ".StreamingRecognizeResponse\"\000(\0010\001\032I\312A\025sp" + + "eech.googleapis.com\322A.https://www.google" + + "apis.com/auth/cloud-platformB\200\001\n!com.goo" + + "gle.cloud.speech.v1p1beta1B\013SpeechProtoP" + + "\001ZCgoogle.golang.org/genproto/googleapis" + + "/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", "SpeechAdaptationInfo", "RequestId", }); + 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", "SpeechAdaptationInfo", "RequestId", }); + 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", "SpeechAdaptationInfo", "RequestId", }); + 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", }); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor, + new java.lang.String[] { "AdaptationTimeout", "TimeoutMessage", }); + 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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java similarity index 74% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java index e6ddb84c1de8..180eb2a0b33f 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") 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
@@ -83,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string transcript = 1; - * * @return The transcript. */ @java.lang.Override @@ -92,15 +69,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
@@ -109,15 +85,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 { @@ -128,8 +105,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_ = 0F; /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -141,7 +116,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -150,12 +124,9 @@ public float getConfidence() { } public static final int WORDS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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
@@ -169,8 +140,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
@@ -180,13 +149,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
@@ -200,8 +167,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
@@ -215,8 +180,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
@@ -226,12 +189,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;
@@ -243,7 +206,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_);
     }
@@ -266,10 +230,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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -279,18 +245,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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -305,7 +273,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();
@@ -316,136 +285,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -463,14 +425,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(); } @@ -485,18 +446,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result) { if (wordsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -508,8 +465,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result) { + private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.transcript_ = transcript_; @@ -523,39 +479,38 @@ private void buildPartial0( 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; @@ -563,9 +518,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_; bitField0_ |= 0x00000001; @@ -592,10 +545,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlte wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000004); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWordsFieldBuilder() - : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWordsFieldBuilder() : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -627,38 +579,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - transcript_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: - { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - case 26: - { - com.google.cloud.speech.v1p1beta1.WordInfo m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.WordInfo.parser(), extensionRegistry); - if (wordsBuilder_ == null) { - ensureWordsIsMutable(); - words_.add(m); - } else { - wordsBuilder_.addMessage(m); - } - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + transcript_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 26: { + com.google.cloud.speech.v1p1beta1.WordInfo m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.WordInfo.parser(), + extensionRegistry); + if (wordsBuilder_ == null) { + ensureWordsIsMutable(); + words_.add(m); + } else { + wordsBuilder_.addMessage(m); + } + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -668,13 +617,10 @@ public Builder mergeFrom( } // finally 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
@@ -683,13 +629,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; @@ -698,8 +644,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
@@ -708,14 +652,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 { @@ -723,8 +668,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
@@ -733,22 +676,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTranscript( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } transcript_ = value; bitField0_ |= 0x00000001; 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
@@ -757,7 +696,6 @@ public Builder setTranscript(java.lang.String value) {
      * 
* * string transcript = 1; - * * @return This builder for chaining. */ public Builder clearTranscript() { @@ -767,8 +705,6 @@ public Builder clearTranscript() { return this; } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -777,14 +713,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTranscriptBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); transcript_ = value; bitField0_ |= 0x00000001; @@ -792,10 +726,8 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { 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
@@ -807,7 +739,6 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -815,8 +746,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
@@ -828,20 +757,17 @@ public float getConfidence() {
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000002; 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
@@ -853,7 +779,6 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -864,24 +789,18 @@ public Builder clearConfidence() { } private java.util.List words_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000004; - } + } } 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
@@ -898,8 +817,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
@@ -916,8 +833,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
@@ -934,8 +849,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
@@ -944,7 +857,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();
@@ -958,8 +872,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
@@ -980,8 +892,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
@@ -1004,8 +914,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
@@ -1014,7 +922,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();
@@ -1028,8 +937,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
@@ -1038,7 +945,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());
@@ -1049,8 +957,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
@@ -1071,8 +977,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
@@ -1085,7 +989,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);
@@ -1093,8 +998,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
@@ -1114,8 +1017,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
@@ -1135,8 +1036,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
@@ -1145,12 +1044,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
@@ -1159,16 +1057,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
@@ -1177,8 +1073,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 {
@@ -1186,8 +1082,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
@@ -1197,12 +1091,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
@@ -1211,13 +1103,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
@@ -1226,30 +1117,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_ & 0x00000004) != 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_ & 0x00000004) != 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);
     }
 
@@ -1259,43 +1147,41 @@ 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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  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 {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1307,8 +1193,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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
similarity index 79%
rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
index 8b8eb60eb325..24dc349ab976 100644
--- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
+++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
similarity index 72%
rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
index 8068ee456a05..4b1ae85bc937 100644
--- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
+++ b/owl-bot-staging/java-speech/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,38 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") - 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`).
@@ -83,17 +60,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`).
@@ -101,18 +74,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`).
@@ -120,16 +89,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`).
@@ -137,16 +103,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`).
@@ -154,20 +117,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_ = 0; /** - * - * *
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -175,7 +135,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
    * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ @java.lang.Override @@ -186,15 +145,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 @@ -202,26 +158,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.
@@ -231,18 +180,13 @@ public com.google.protobuf.Duration getResultEndTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
-    return resultEndTime_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : resultEndTime_;
+    return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
-
   @SuppressWarnings("serial")
   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
@@ -250,7 +194,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ @java.lang.Override @@ -259,15 +202,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
@@ -275,15 +217,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 { @@ -292,7 +235,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -304,7 +246,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)); } @@ -327,13 +270,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_); @@ -346,21 +292,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -390,136 +339,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -542,9 +484,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 @@ -563,18 +505,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult result) { if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -592,8 +530,9 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRe result.channelTag_ = channelTag_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.resultEndTime_ = - resultEndTimeBuilder_ == null ? resultEndTime_ : resultEndTimeBuilder_.build(); + result.resultEndTime_ = resultEndTimeBuilder_ == null + ? resultEndTime_ + : resultEndTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.languageCode_ = languageCode_; @@ -604,39 +543,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRe 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; @@ -644,8 +582,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()) { @@ -664,10 +601,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_); } @@ -710,45 +646,42 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), - extensionRegistry); - if (alternativesBuilder_ == null) { - ensureAlternativesIsMutable(); - alternatives_.add(m); - } else { - alternativesBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: - { - channelTag_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 34: - { - input.readMessage(getResultEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), + extensionRegistry); + if (alternativesBuilder_ == null) { + ensureAlternativesIsMutable(); + alternatives_.add(m); + } else { + alternativesBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + channelTag_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 34: { + input.readMessage( + getResultEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -758,30 +691,21 @@ public Builder mergeFrom( } // finally 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`).
@@ -789,11 +713,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 { @@ -801,8 +723,6 @@ private void ensureAlternativesIsMutable() { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -810,8 +730,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) { @@ -821,8 +740,6 @@ public int getAlternativesCount() { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -830,11 +747,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 { @@ -842,8 +757,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -851,8 +764,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) { @@ -869,8 +781,6 @@ public Builder setAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -878,12 +788,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()); @@ -894,8 +802,6 @@ public Builder setAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -903,11 +809,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(); @@ -921,8 +825,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -930,8 +832,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) { @@ -948,8 +849,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -957,8 +856,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) { @@ -972,8 +870,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -981,12 +877,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()); @@ -997,8 +891,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1006,15 +898,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); @@ -1022,8 +913,6 @@ public Builder addAllAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1031,8 +920,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) { @@ -1045,8 +933,6 @@ public Builder clearAlternatives() { return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1054,8 +940,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) { @@ -1068,8 +953,6 @@ public Builder removeAlternatives(int index) { return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1077,16 +960,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`).
@@ -1094,20 +974,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`).
@@ -1115,12 +991,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 { @@ -1128,8 +1002,6 @@ public Builder removeAlternatives(int index) { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1137,18 +1009,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`).
@@ -1156,19 +1023,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`).
@@ -1176,35 +1038,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.
@@ -1212,7 +1068,6 @@ public Builder removeAlternatives(int index) {
      * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ @java.lang.Override @@ -1220,8 +1075,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.
@@ -1229,20 +1082,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1250,7 +1100,6 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; - * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1262,49 +1111,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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.
@@ -1326,8 +1162,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.
@@ -1335,7 +1169,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();
       } else {
@@ -1346,8 +1181,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.
@@ -1357,9 +1190,9 @@ public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForV
      */
     public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && resultEndTime_ != null
-            && resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          resultEndTime_ != null &&
+          resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndTimeBuilder().mergeFrom(value);
         } else {
           resultEndTime_ = value;
@@ -1372,8 +1205,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.
@@ -1392,8 +1223,6 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1407,8 +1236,6 @@ public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1420,14 +1247,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.
@@ -1436,17 +1260,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_;
@@ -1454,8 +1275,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
@@ -1463,13 +1282,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; @@ -1478,8 +1297,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
@@ -1487,14 +1304,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 { @@ -1502,8 +1320,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
@@ -1511,22 +1327,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000008; 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
@@ -1534,7 +1346,6 @@ 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() { @@ -1544,8 +1355,6 @@ public Builder clearLanguageCode() { 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
@@ -1553,23 +1362,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000008; 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); } @@ -1579,12 +1386,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(); } @@ -1593,27 +1400,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1628,4 +1435,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java similarity index 79% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java index b836a20e796b..55e3c978e3c9 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java new file mode 100644 index 000000000000..6e3a93b944e8 --- /dev/null +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java @@ -0,0 +1,162 @@ +// 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_SpeechAdaptation_ABNFGrammar_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_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}\"\322\002\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\022" + + "Q\n\014abnf_grammar\030\004 \001(\0132;.google.cloud.spe" + + "ech.v1p1beta1.SpeechAdaptation.ABNFGramm" + + "ar\032#\n\013ABNFGrammar\022\024\n\014abnf_strings\030\001 \003(\t\"" + + "\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", "AbnfGrammar", }); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor = + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor, + new java.lang.String[] { "AbnfStrings", }); + 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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java similarity index 68% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java index f88b8d2f1c25..08f9f8234503 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java +++ b/owl-bot-staging/java-speech/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,58 +11,52 @@
  *
  * 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;
   }
-
-  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 @@ -87,49 +64,34 @@ 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() { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 2; private boolean singleUtterance_ = false; /** - * - * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -152,7 +114,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB
    * 
* * bool single_utterance = 2; - * * @return The singleUtterance. */ @java.lang.Override @@ -163,8 +124,6 @@ public boolean getSingleUtterance() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 3; private boolean interimResults_ = false; /** - * - * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -173,7 +132,6 @@ public boolean getSingleUtterance() {
    * 
* * bool interim_results = 3; - * * @return The interimResults. */ @java.lang.Override @@ -182,7 +140,6 @@ public boolean getInterimResults() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,7 +151,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()); } @@ -214,13 +172,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -230,20 +191,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -260,113 +223,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) + getUnknownFields().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.
@@ -374,32 +331,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -415,14 +373,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();
     }
 
@@ -437,20 +394,18 @@ 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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result = new com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result) {
+    private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
+        result.config_ = configBuilder_ == null
+            ? config_
+            : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.singleUtterance_ = singleUtterance_;
@@ -464,39 +419,38 @@ private void buildPartial0(
     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;
@@ -504,9 +458,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());
       }
@@ -542,31 +494,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                singleUtterance_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 24:
-              {
-                interimResults_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              singleUtterance_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 24: {
+              interimResults_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -576,66 +526,46 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * 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) { @@ -651,16 +581,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) { @@ -674,23 +600,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 (((bitField0_ & 0x00000001) != 0) - && config_ != null - && config_ - != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + config_ != null && + config_ != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -703,16 +624,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -725,16 +642,12 @@ 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() { bitField0_ |= 0x00000001; @@ -742,59 +655,45 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuil 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
@@ -817,7 +716,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB
      * 
* * bool single_utterance = 2; - * * @return The singleUtterance. */ @java.lang.Override @@ -825,8 +723,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
@@ -849,20 +745,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -885,7 +778,6 @@ public Builder setSingleUtterance(boolean value) {
      * 
* * bool single_utterance = 2; - * * @return This builder for chaining. */ public Builder clearSingleUtterance() { @@ -895,10 +787,8 @@ public Builder clearSingleUtterance() { 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
@@ -907,7 +797,6 @@ public Builder clearSingleUtterance() {
      * 
* * bool interim_results = 3; - * * @return The interimResults. */ @java.lang.Override @@ -915,8 +804,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
@@ -925,20 +812,17 @@ 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -947,7 +831,6 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 3; - * * @return This builder for chaining. */ public Builder clearInterimResults() { @@ -956,9 +839,9 @@ public Builder clearInterimResults() { 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); } @@ -968,13 +851,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(); } @@ -983,27 +865,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1018,4 +900,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java index 40aa63db7d36..73a8d60b1e89 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java similarity index 73% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java index 6726065e8e16..d59885078a57 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java +++ b/owl-bot-staging/java-speech/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,38 +27,33 @@ 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
-  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`).
@@ -84,17 +61,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`).
@@ -102,18 +75,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`).
@@ -121,16 +90,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`).
@@ -138,16 +104,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`).
@@ -155,20 +118,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_ = false; /** - * - * *
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -178,7 +138,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
    * 
* * bool is_final = 2; - * * @return The isFinal. */ @java.lang.Override @@ -189,8 +148,6 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_ = 0F; /** - * - * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -200,7 +157,6 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; - * * @return The stability. */ @java.lang.Override @@ -211,15 +167,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 @@ -227,26 +180,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.
@@ -256,16 +202,12 @@ public com.google.protobuf.Duration getResultEndTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
-    return resultEndTime_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : resultEndTime_;
+    return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
   }
 
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_ = 0;
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -273,7 +215,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ @java.lang.Override @@ -282,12 +223,9 @@ public int getChannelTag() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; - @SuppressWarnings("serial") 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
@@ -295,7 +233,6 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ @java.lang.Override @@ -304,15 +241,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
@@ -320,15 +256,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 { @@ -337,7 +274,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -349,7 +285,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)); } @@ -378,19 +315,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_); @@ -403,24 +345,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -437,9 +384,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(); @@ -454,104 +403,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.
@@ -559,32 +500,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -609,14 +551,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();
     }
 
@@ -631,18 +572,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result) {
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -654,8 +591,7 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    private void buildPartial0(
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result) {
+    private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.isFinal_ = isFinal_;
@@ -664,8 +600,9 @@ private void buildPartial0(
         result.stability_ = stability_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.resultEndTime_ =
-            resultEndTimeBuilder_ == null ? resultEndTime_ : resultEndTimeBuilder_.build();
+        result.resultEndTime_ = resultEndTimeBuilder_ == null
+            ? resultEndTime_
+            : resultEndTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.channelTag_ = channelTag_;
@@ -679,39 +616,38 @@ private void buildPartial0(
     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;
@@ -719,9 +655,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()) {
@@ -740,10 +674,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_);
           }
@@ -792,57 +725,52 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(),
-                        extensionRegistry);
-                if (alternativesBuilder_ == null) {
-                  ensureAlternativesIsMutable();
-                  alternatives_.add(m);
-                } else {
-                  alternativesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 16:
-              {
-                isFinal_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 29:
-              {
-                stability_ = input.readFloat();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 29
-            case 34:
-              {
-                input.readMessage(getResultEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 40:
-              {
-                channelTag_ = input.readInt32();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-            case 50:
-              {
-                languageCode_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(),
+                      extensionRegistry);
+              if (alternativesBuilder_ == null) {
+                ensureAlternativesIsMutable();
+                alternatives_.add(m);
+              } else {
+                alternativesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 16: {
+              isFinal_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 29: {
+              stability_ = input.readFloat();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 29
+            case 34: {
+              input.readMessage(
+                  getResultEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 40: {
+              channelTag_ = input.readInt32();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            case 50: {
+              languageCode_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -852,30 +780,21 @@ public Builder mergeFrom(
       } // finally
       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`).
@@ -883,11 +802,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 { @@ -895,8 +812,6 @@ private void ensureAlternativesIsMutable() { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -904,8 +819,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) { @@ -915,8 +829,6 @@ public int getAlternativesCount() { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -924,11 +836,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 { @@ -936,8 +846,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -945,8 +853,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) { @@ -963,8 +870,6 @@ public Builder setAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -972,12 +877,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()); @@ -988,8 +891,6 @@ public Builder setAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -997,11 +898,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(); @@ -1015,8 +914,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1024,8 +921,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) { @@ -1042,8 +938,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1051,8 +945,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) { @@ -1066,8 +959,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1075,12 +966,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()); @@ -1091,8 +980,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1100,15 +987,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); @@ -1116,8 +1002,6 @@ public Builder addAllAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1125,8 +1009,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) { @@ -1139,8 +1022,6 @@ public Builder clearAlternatives() { return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1148,8 +1029,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) { @@ -1162,8 +1042,6 @@ public Builder removeAlternatives(int index) { return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1171,16 +1049,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`).
@@ -1188,20 +1063,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`).
@@ -1209,12 +1080,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 { @@ -1222,8 +1091,6 @@ public Builder removeAlternatives(int index) { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1231,18 +1098,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`).
@@ -1250,19 +1112,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`).
@@ -1270,35 +1127,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
@@ -1308,7 +1159,6 @@ public Builder removeAlternatives(int index) {
      * 
* * bool is_final = 2; - * * @return The isFinal. */ @java.lang.Override @@ -1316,8 +1166,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
@@ -1327,20 +1175,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1350,7 +1195,6 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; - * * @return This builder for chaining. */ public Builder clearIsFinal() { @@ -1360,10 +1204,8 @@ public Builder clearIsFinal() { 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
@@ -1373,7 +1215,6 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; - * * @return The stability. */ @java.lang.Override @@ -1381,8 +1222,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
@@ -1392,20 +1231,17 @@ public float getStability() {
      * 
* * float stability = 3; - * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; bitField0_ |= 0x00000004; 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
@@ -1415,7 +1251,6 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; - * * @return This builder for chaining. */ public Builder clearStability() { @@ -1427,49 +1262,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 ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * 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.
@@ -1491,8 +1313,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.
@@ -1500,7 +1320,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();
       } else {
@@ -1511,8 +1332,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.
@@ -1522,9 +1341,9 @@ public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForV
      */
     public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && resultEndTime_ != null
-            && resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          resultEndTime_ != null &&
+          resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndTimeBuilder().mergeFrom(value);
         } else {
           resultEndTime_ = value;
@@ -1537,8 +1356,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.
@@ -1557,8 +1374,6 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1572,8 +1387,6 @@ public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1585,14 +1398,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.
@@ -1601,26 +1411,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.
@@ -1628,7 +1433,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ @java.lang.Override @@ -1636,8 +1440,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.
@@ -1645,20 +1447,17 @@ 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1666,7 +1465,6 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; - * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1678,8 +1476,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
@@ -1687,13 +1483,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; @@ -1702,8 +1498,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
@@ -1711,14 +1505,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 { @@ -1726,8 +1521,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
@@ -1735,22 +1528,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000020; 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
@@ -1758,7 +1547,6 @@ 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() { @@ -1768,8 +1556,6 @@ public Builder clearLanguageCode() { 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
@@ -1777,23 +1563,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000020; 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); } @@ -1803,13 +1587,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(); } @@ -1818,27 +1601,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1853,4 +1636,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java similarity index 82% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java index 8a2935d3769e..3d6da9c0a6f4 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java index b7ab12b6c9c8..3d47de7e1678 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java +++ b/owl-bot-staging/java-speech/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,56 +14,52 @@
  *
  * 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;
   }
-
-  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;
     }
@@ -96,30 +75,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
@@ -127,7 +101,6 @@ public StreamingRequestCase getStreamingRequestCase() {
    * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; - * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -135,8 +108,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
@@ -144,19 +115,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
@@ -166,18 +134,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
@@ -190,7 +155,6 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getStreaming
    * 
* * bytes audio_content = 2; - * * @return Whether the audioContent field is set. */ @java.lang.Override @@ -198,8 +162,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
@@ -212,7 +174,6 @@ public boolean hasAudioContent() {
    * 
* * bytes audio_content = 2; - * * @return The audioContent. */ @java.lang.Override @@ -224,7 +185,6 @@ public com.google.protobuf.ByteString getAudioContent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,13 +196,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_); } getUnknownFields().writeTo(output); } @@ -254,14 +215,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -271,21 +231,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: @@ -319,104 +280,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
@@ -427,32 +380,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -466,9 +420,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
@@ -487,11 +441,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result = new com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -501,11 +452,11 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognizeR
       int from_bitField0_ = bitField0_;
     }
 
-    private void buildPartialOneofs(
-        com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result) {
+    private void buildPartialOneofs(com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result) {
       result.streamingRequestCase_ = streamingRequestCase_;
       result.streamingRequest_ = this.streamingRequest_;
-      if (streamingRequestCase_ == 1 && streamingConfigBuilder_ != null) {
+      if (streamingRequestCase_ == 1 &&
+          streamingConfigBuilder_ != null) {
         result.streamingRequest_ = streamingConfigBuilder_.build();
       }
     }
@@ -514,39 +465,38 @@ private void buildPartialOneofs(
     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;
@@ -554,23 +504,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.getUnknownFields());
       onChanged();
@@ -598,25 +544,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getStreamingConfigFieldBuilder().getBuilder(), extensionRegistry);
-                streamingRequestCase_ = 1;
-                break;
-              } // case 10
-            case 18:
-              {
-                streamingRequest_ = input.readBytes();
-                streamingRequestCase_ = 2;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getStreamingConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              streamingRequestCase_ = 1;
+              break;
+            } // case 10
+            case 18: {
+              streamingRequest_ = input.readBytes();
+              streamingRequestCase_ = 2;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -626,12 +571,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -644,13 +589,8 @@ public Builder clearStreamingRequest() {
     private int bitField0_;
 
     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
@@ -658,7 +598,6 @@ public Builder clearStreamingRequest() {
      * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; - * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -666,8 +605,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
@@ -675,7 +612,6 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; - * * @return The streamingConfig. */ @java.lang.Override @@ -693,8 +629,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
@@ -703,8 +637,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();
@@ -718,8 +651,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
@@ -740,8 +671,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
@@ -750,19 +679,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;
         }
@@ -778,8 +700,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
@@ -805,8 +725,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
@@ -815,13 +733,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
@@ -831,8 +746,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 {
@@ -843,8 +757,6 @@ public Builder clearStreamingConfig() {
       }
     }
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -854,20 +766,14 @@ 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());
@@ -879,8 +785,6 @@ public Builder clearStreamingConfig() {
     }
 
     /**
-     *
-     *
      * 
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -893,15 +797,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
@@ -914,7 +815,6 @@ public boolean hasAudioContent() {
      * 
* * bytes audio_content = 2; - * * @return The audioContent. */ public com.google.protobuf.ByteString getAudioContent() { @@ -924,8 +824,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
@@ -938,22 +836,17 @@ 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(); - } + if (value == null) { 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
@@ -966,7 +859,6 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 2; - * * @return This builder for chaining. */ public Builder clearAudioContent() { @@ -977,9 +869,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); } @@ -989,12 +881,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(); } @@ -1003,27 +895,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1038,4 +930,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java similarity index 78% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java index f6b61734f16b..e77bf66cfcba 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java similarity index 74% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java index fba0d2affa9b..0c9ad5afff96 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java +++ b/owl-bot-staging/java-speech/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,43 +61,39 @@ 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;
   }
-
-  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.
      * 
@@ -124,8 +102,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
@@ -143,8 +119,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * No speech event specified.
      * 
@@ -153,8 +127,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
@@ -169,6 +141,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(
@@ -193,43 +166,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();
@@ -237,7 +206,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;
@@ -257,15 +227,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 @@ -273,15 +240,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 @@ -289,8 +253,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.
@@ -304,12 +266,9 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -320,13 +279,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.
@@ -337,14 +293,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.
@@ -359,8 +312,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.
@@ -375,8 +326,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.
@@ -395,58 +344,38 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder get
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 4;
   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; * @return The speechEventType. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType - getSpeechEventType() { - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.forNumber( - speechEventType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.forNumber(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 @@ -454,26 +383,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.
@@ -483,22 +405,17 @@ public com.google.protobuf.Duration getTotalBilledTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
-    return totalBilledTime_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : totalBilledTime_;
+    return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_;
   }
 
   public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 9;
   private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_;
   /**
-   *
-   *
    * 
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -506,25 +423,18 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } /** - * - * *
    * Provides information on adaptation behavior in response
    * 
@@ -532,25 +442,19 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptatio * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 10; private long requestId_ = 0L; /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 10; - * * @return The requestId. */ @java.lang.Override @@ -559,7 +463,6 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -571,17 +474,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) { @@ -603,26 +504,28 @@ 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()); } if (speechAdaptationInfo_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSpeechAdaptationInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, requestId_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(10, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -632,29 +535,33 @@ 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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo() + .equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() != other.getRequestId()) return false; + if (getRequestId() + != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -685,111 +592,104 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } 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`
@@ -831,32 +731,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -889,14 +790,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,18 +811,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000002) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -934,24 +830,25 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    private void buildPartial0(
-        com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result) {
+    private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
+        result.error_ = errorBuilder_ == null
+            ? error_
+            : errorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.speechEventType_ = speechEventType_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.totalBilledTime_ =
-            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
+            ? totalBilledTime_
+            : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.speechAdaptationInfo_ =
-            speechAdaptationInfoBuilder_ == null
-                ? speechAdaptationInfo_
-                : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
+            ? speechAdaptationInfo_
+            : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.requestId_ = requestId_;
@@ -962,39 +859,38 @@ private void buildPartial0(
     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;
@@ -1002,9 +898,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());
       }
@@ -1026,10 +920,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognizeRes
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            resultsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getResultsFieldBuilder()
-                    : null;
+            resultsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getResultsFieldBuilder() : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -1073,58 +966,56 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.parser(),
-                        extensionRegistry);
-                if (resultsBuilder_ == null) {
-                  ensureResultsIsMutable();
-                  results_.add(m);
-                } else {
-                  resultsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 32:
-              {
-                speechEventType_ = input.readEnum();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 32
-            case 42:
-              {
-                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 42
-            case 74:
-              {
-                input.readMessage(
-                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 74
-            case 80:
-              {
-                requestId_ = input.readInt64();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 80
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getErrorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.parser(),
+                      extensionRegistry);
+              if (resultsBuilder_ == null) {
+                ensureResultsIsMutable();
+                results_.add(m);
+              } else {
+                resultsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 32: {
+              speechEventType_ = input.readEnum();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 32
+            case 42: {
+              input.readMessage(
+                  getTotalBilledTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 42
+            case 74: {
+              input.readMessage(
+                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 74
+            case 80: {
+              requestId_ = input.readInt64();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 80
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1134,38 +1025,30 @@ public Builder mergeFrom(
       } // finally
       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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * 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() { @@ -1176,8 +1059,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.
@@ -1199,8 +1080,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.
@@ -1208,7 +1087,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();
       } else {
@@ -1219,8 +1099,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.
@@ -1230,9 +1108,9 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
      */
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && error_ != null
-            && error_ != com.google.rpc.Status.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          error_ != null &&
+          error_ != com.google.rpc.Status.getDefaultInstance()) {
           getErrorBuilder().mergeFrom(value);
         } else {
           error_ = value;
@@ -1245,8 +1123,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.
@@ -1265,8 +1141,6 @@ public Builder clearError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1280,8 +1154,6 @@ public com.google.rpc.Status.Builder getErrorBuilder() {
       return getErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1293,12 +1165,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.
@@ -1307,40 +1178,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_ & 0x00000002) != 0)) {
-        results_ =
-            new java.util.ArrayList(
-                results_);
+        results_ = new java.util.ArrayList(results_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     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.
@@ -1350,8 +1213,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 {
@@ -1359,8 +1221,6 @@ private void ensureResultsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1378,8 +1238,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1397,8 +1255,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.
@@ -1423,8 +1279,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.
@@ -1435,8 +1289,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());
@@ -1447,8 +1300,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.
@@ -1472,8 +1323,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.
@@ -1498,8 +1347,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.
@@ -1521,8 +1368,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.
@@ -1533,8 +1378,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());
@@ -1545,8 +1389,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.
@@ -1557,11 +1399,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);
@@ -1569,8 +1411,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.
@@ -1591,8 +1431,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.
@@ -1613,8 +1451,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.
@@ -1629,8 +1465,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.
@@ -1640,17 +1474,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.
@@ -1660,9 +1491,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 {
@@ -1670,8 +1500,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.
@@ -1681,15 +1509,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.
@@ -1701,14 +1525,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.
@@ -1718,23 +1538,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_ & 0x00000002) != 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_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1742,33 +1559,22 @@ 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. */ @@ -1779,45 +1585,28 @@ public Builder setSpeechEventTypeValue(int value) { 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() { - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.forNumber( - speechEventType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType - .UNRECOGNIZED - : result; + public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.forNumber(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(); } @@ -1827,16 +1616,11 @@ public Builder setSpeechEventType( 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() { @@ -1848,49 +1632,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 ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * 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.
@@ -1912,8 +1683,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.
@@ -1921,7 +1690,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();
       } else {
@@ -1932,8 +1702,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.
@@ -1943,9 +1711,9 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo
      */
     public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       if (totalBilledTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && totalBilledTime_ != null
-            && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          totalBilledTime_ != null &&
+          totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getTotalBilledTimeBuilder().mergeFrom(value);
         } else {
           totalBilledTime_ = value;
@@ -1958,8 +1726,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.
@@ -1978,8 +1744,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.
@@ -1993,8 +1757,6 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() {
       return getTotalBilledTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -2006,14 +1768,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.
@@ -2022,17 +1781,14 @@ 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_;
@@ -2040,55 +1796,41 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
 
     private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo,
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder,
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>
-        speechAdaptationInfoBuilder_;
+        com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_;
     /**
-     *
-     *
      * 
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public Builder setSpeechAdaptationInfo( - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2102,8 +1844,6 @@ public Builder setSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -2122,21 +1862,17 @@ public Builder setSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public Builder mergeSpeechAdaptationInfo( - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && speechAdaptationInfo_ != null - && speechAdaptationInfo_ - != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + speechAdaptationInfo_ != null && + speechAdaptationInfo_ != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -2149,8 +1885,6 @@ public Builder mergeSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -2168,42 +1902,33 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder - getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -2211,33 +1936,27 @@ public Builder clearSpeechAdaptationInfo() { * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), getParentForChildren(), isClean()); + speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), + getParentForChildren(), + isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_; + private long requestId_ ; /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; - * * @return The requestId. */ @java.lang.Override @@ -2245,35 +1964,29 @@ public long getRequestId() { return requestId_; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; - * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -2282,9 +1995,9 @@ public Builder clearRequestId() { 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); } @@ -2294,13 +2007,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(); } @@ -2309,27 +2021,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2344,4 +2056,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java similarity index 83% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java index 5997fc2d431a..b1386d9a3fa9 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/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.
@@ -197,51 +146,39 @@ com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder getResults
   com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder(); + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 10; - * * @return The requestId. */ long getRequestId(); diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java index 615d5bf14767..e15a0b452024 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java +++ b/owl-bot-staging/java-speech/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,133 +13,114 @@
  *
  * 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;
   }
-
-  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_ = ""; @@ -164,43 +128,38 @@ 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object search_ = ""; /** - * - * *
      * What to replace. Max length is 100 characters.
      * 
* * string search = 1; - * * @return The search. */ @java.lang.Override @@ -209,29 +168,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 { @@ -240,18 +199,14 @@ public com.google.protobuf.ByteString getSearchBytes() { } public static final int REPLACE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object replace_ = ""; /** - * - * *
      * What to replace with. Max length is 100 characters.
      * 
* * string replace = 2; - * * @return The replace. */ @java.lang.Override @@ -260,29 +215,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 { @@ -293,14 +248,11 @@ public com.google.protobuf.ByteString getReplaceBytes() { public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; private boolean caseSensitive_ = false; /** - * - * *
      * Whether the search is case sensitive.
      * 
* * bool case_sensitive = 3; - * * @return The caseSensitive. */ @java.lang.Override @@ -309,7 +261,6 @@ public boolean getCaseSensitive() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -321,7 +272,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_); } @@ -347,7 +299,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -357,17 +310,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -384,102 +339,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) + getUnknownFields().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 @@ -489,42 +437,39 @@ 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() - private Builder() {} + // Construct using com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -536,14 +481,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(); } @@ -558,17 +502,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result = new com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result) { + private void buildPartial0(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.search_ = search_; @@ -585,52 +525,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -670,31 +604,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - search_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - replace_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - caseSensitive_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + search_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + replace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + caseSensitive_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -704,25 +634,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -731,21 +658,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 { @@ -753,35 +679,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSearch( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } search_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; - * * @return This builder for chaining. */ public Builder clearSearch() { @@ -791,21 +710,17 @@ public Builder clearSearch() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSearchBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); search_ = value; bitField0_ |= 0x00000001; @@ -815,20 +730,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; @@ -837,21 +750,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 { @@ -859,35 +771,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReplace( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } replace_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; - * * @return This builder for chaining. */ public Builder clearReplace() { @@ -897,21 +802,17 @@ public Builder clearReplace() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReplaceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); replace_ = value; bitField0_ |= 0x00000002; @@ -919,16 +820,13 @@ public Builder setReplaceBytes(com.google.protobuf.ByteString value) { return this; } - private boolean caseSensitive_; + private boolean caseSensitive_ ; /** - * - * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; - * * @return The caseSensitive. */ @java.lang.Override @@ -936,33 +834,27 @@ 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; - * * @return This builder for chaining. */ public Builder clearCaseSensitive() { @@ -971,7 +863,6 @@ public Builder clearCaseSensitive() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -984,44 +875,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1033,19 +921,16 @@ 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; - @SuppressWarnings("serial") 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"
@@ -1056,13 +941,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"
@@ -1073,14 +955,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"
@@ -1095,8 +974,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"
@@ -1111,8 +988,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"
@@ -1123,13 +998,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;
@@ -1141,7 +1015,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));
     }
@@ -1155,7 +1030,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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1165,15 +1041,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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -1195,104 +1071,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
@@ -1302,32 +1170,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1343,9 +1212,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
@@ -1364,18 +1233,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v1p1beta1.TranscriptNormalization result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.TranscriptNormalization result) {
       if (entriesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           entries_ = java.util.Collections.unmodifiableList(entries_);
@@ -1395,39 +1260,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.TranscriptNormaliza
     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;
@@ -1435,8 +1299,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()) {
@@ -1455,10 +1318,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_);
           }
@@ -1490,27 +1352,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.parser(),
-                        extensionRegistry);
-                if (entriesBuilder_ == null) {
-                  ensureEntriesIsMutable();
-                  entries_.add(m);
-                } else {
-                  entriesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.parser(),
+                      extensionRegistry);
+              if (entriesBuilder_ == null) {
+                ensureEntriesIsMutable();
+                entries_.add(m);
+              } else {
+                entriesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1520,30 +1380,21 @@ public Builder mergeFrom(
       } // finally
       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"
@@ -1551,11 +1402,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 { @@ -1563,8 +1412,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"
@@ -1572,8 +1419,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) { @@ -1583,8 +1429,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"
@@ -1592,8 +1436,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) { @@ -1603,8 +1446,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"
@@ -1612,8 +1453,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) { @@ -1630,8 +1470,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"
@@ -1639,12 +1477,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()); @@ -1655,8 +1491,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"
@@ -1664,11 +1498,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(); @@ -1682,8 +1514,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"
@@ -1691,8 +1521,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) { @@ -1709,8 +1538,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"
@@ -1718,8 +1545,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) { @@ -1733,8 +1559,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"
@@ -1742,12 +1566,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()); @@ -1758,8 +1580,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"
@@ -1767,16 +1587,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); @@ -1784,8 +1602,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"
@@ -1793,8 +1609,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) { @@ -1807,8 +1622,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"
@@ -1816,8 +1629,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) { @@ -1830,8 +1642,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"
@@ -1839,16 +1649,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"
@@ -1856,20 +1663,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"
@@ -1877,12 +1680,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 { @@ -1890,8 +1691,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"
@@ -1899,18 +1698,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"
@@ -1918,19 +1712,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"
@@ -1938,33 +1727,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); } @@ -1974,12 +1759,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(); } @@ -1988,27 +1773,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2023,4 +1808,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.TranscriptNormalization getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java similarity index 78% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java index 11549b4c3678..fa51b40b7003 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
similarity index 67%
rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
index 6fb07026dcf3..65a8b62eb71a 100644
--- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
+++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
@@ -1,81 +1,60 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License 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; } - - 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; } @@ -91,28 +70,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
@@ -120,15 +95,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
@@ -136,7 +108,6 @@ public boolean hasGcsUri() {
    * 
* * string gcs_uri = 1; - * * @return The gcsUri. */ public java.lang.String getGcsUri() { @@ -147,7 +118,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; @@ -156,8 +128,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
@@ -165,17 +135,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; } @@ -186,7 +157,6 @@ public com.google.protobuf.ByteString getGcsUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,7 +168,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_); } @@ -222,18 +193,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: @@ -263,136 +234,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -403,9 +367,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 @@ -424,11 +388,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result = new com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -438,8 +399,7 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.TranscriptOutputCon int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result) { + private void buildPartialOneofs(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result) { result.outputTypeCase_ = outputTypeCase_; result.outputType_ = this.outputType_; } @@ -448,39 +408,38 @@ private void buildPartialOneofs( 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; @@ -488,20 +447,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.getUnknownFields()); onChanged(); @@ -529,20 +485,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - outputTypeCase_ = 1; - outputType_ = s; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + outputTypeCase_ = 1; + outputType_ = s; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -552,12 +506,12 @@ public Builder mergeFrom( } // finally 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() { @@ -570,8 +524,6 @@ public Builder clearOutputType() { private int bitField0_; /** - * - * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -579,7 +531,6 @@ public Builder clearOutputType() {
      * 
* * string gcs_uri = 1; - * * @return Whether the gcsUri field is set. */ @java.lang.Override @@ -587,8 +538,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
@@ -596,7 +545,6 @@ public boolean hasGcsUri() {
      * 
* * string gcs_uri = 1; - * * @return The gcsUri. */ @java.lang.Override @@ -606,7 +554,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; @@ -617,8 +566,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
@@ -626,18 +573,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; } @@ -647,8 +595,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
@@ -656,22 +602,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGcsUri( + java.lang.String value) { + if (value == null) { 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
@@ -679,7 +621,6 @@ public Builder setGcsUri(java.lang.String value) {
      * 
* * string gcs_uri = 1; - * * @return This builder for chaining. */ public Builder clearGcsUri() { @@ -691,8 +632,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
@@ -700,23 +639,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGcsUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { 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); } @@ -726,12 +663,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(); } @@ -740,27 +677,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -775,4 +712,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java similarity index 61% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java index 102d1f01edf5..3733fac7b5f9 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java index 2145f8a07c4f..cdbcccc6ceb9 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java @@ -1,75 +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; } - - 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
@@ -82,10 +62,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 @@ -93,8 +70,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
@@ -107,21 +82,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
@@ -134,28 +102,21 @@ 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() { - return customClass_ == null - ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; } 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 @@ -163,14 +124,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 @@ -178,8 +136,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to be updated.
    * 
@@ -192,7 +148,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +159,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()); } @@ -221,10 +177,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,21 +192,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -275,136 +234,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -423,9 +375,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 @@ -444,11 +396,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -456,11 +405,14 @@ public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest buildPartial() private void buildPartial0(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.customClass_ = - customClassBuilder_ == null ? customClass_ : customClassBuilder_.build(); + result.customClass_ = customClassBuilder_ == null + ? customClass_ + : customClassBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -468,39 +420,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRe 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; @@ -508,8 +459,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()); } @@ -542,25 +492,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCustomClassFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -570,18 +521,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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
@@ -594,18 +539,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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -618,24 +558,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
@@ -648,9 +581,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) { @@ -666,8 +597,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
@@ -680,9 +609,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) { @@ -696,8 +623,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
@@ -710,15 +635,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 (((bitField0_ & 0x00000001) != 0) - && customClass_ != null - && customClass_ != com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + customClass_ != null && + customClass_ != com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -731,8 +654,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
@@ -745,9 +666,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -760,8 +679,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
@@ -774,9 +691,7 @@ 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() { bitField0_ |= 0x00000001; @@ -784,8 +699,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassBuild return getCustomClassFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -798,22 +711,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
@@ -826,22 +734,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_; @@ -849,47 +752,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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.
      * 
@@ -910,15 +800,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(); } else { @@ -929,8 +818,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -939,9 +826,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -954,8 +841,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -973,8 +858,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -987,8 +870,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -999,14 +880,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.
      * 
@@ -1014,24 +892,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); } @@ -1041,12 +916,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(); } @@ -1055,27 +930,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1090,4 +965,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java index debebb1437ec..5ffdf4623cc2 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java index afd2df61b155..1efe0649bd69 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java @@ -1,75 +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; } - - 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
@@ -82,10 +62,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 @@ -93,8 +70,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
@@ -107,21 +82,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
@@ -134,28 +102,21 @@ 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() { - return phraseSet_ == null - ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; } 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 @@ -163,14 +124,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 @@ -178,8 +136,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to be updated.
    * 
@@ -192,7 +148,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +159,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()); } @@ -221,10 +177,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,21 +192,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -275,136 +234,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -423,9 +375,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 @@ -444,11 +396,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -456,10 +405,14 @@ public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest buildPartial() { private void buildPartial0(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build(); + result.phraseSet_ = phraseSetBuilder_ == null + ? phraseSet_ + : phraseSetBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -467,39 +420,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequ 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; @@ -507,8 +459,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()); } @@ -541,25 +492,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getPhraseSetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -569,18 +521,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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
@@ -593,18 +539,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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -617,24 +558,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
@@ -647,9 +581,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) { @@ -665,8 +597,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
@@ -679,9 +609,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) { @@ -695,8 +623,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
@@ -709,15 +635,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 (((bitField0_ & 0x00000001) != 0) - && phraseSet_ != null - && phraseSet_ != com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + phraseSet_ != null && + phraseSet_ != com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -730,8 +654,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
@@ -744,9 +666,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -759,8 +679,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
@@ -773,9 +691,7 @@ 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() { bitField0_ |= 0x00000001; @@ -783,8 +699,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetBuilder() return getPhraseSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -797,22 +711,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
@@ -825,22 +734,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_; @@ -848,47 +752,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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.
      * 
@@ -909,15 +800,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(); } else { @@ -928,8 +818,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -938,9 +826,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -953,8 +841,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -972,8 +858,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -986,8 +870,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -998,14 +880,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.
      * 
@@ -1013,24 +892,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); } @@ -1040,12 +916,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(); } @@ -1054,27 +930,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1089,4 +965,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java index 5bb289426a97..ae3c2a999eb0 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java similarity index 76% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java index a8286eea3f95..4b5613106d6f 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java @@ -1,77 +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.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; } - - 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.
@@ -82,7 +61,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 @@ -90,8 +68,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.
@@ -102,7 +78,6 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Duration start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -110,8 +85,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.
@@ -131,8 +104,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.
@@ -143,7 +114,6 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -151,8 +121,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.
@@ -163,7 +131,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -171,8 +138,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.
@@ -190,18 +155,14 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
   }
 
   public static final int WORD_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object word_ = "";
   /**
-   *
-   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; - * * @return The word. */ @java.lang.Override @@ -210,29 +171,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 { @@ -243,8 +204,6 @@ public com.google.protobuf.ByteString getWordBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_ = 0F; /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -256,7 +215,6 @@ public com.google.protobuf.ByteString getWordBytes() {
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -267,8 +225,6 @@ public float getConfidence() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_ = 0; /** - * - * *
    * 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
@@ -278,7 +234,6 @@ public float getConfidence() {
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The speakerTag. */ @java.lang.Override @@ -287,7 +242,6 @@ public int getSpeakerTag() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -299,7 +253,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()); } @@ -325,19 +280,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -347,26 +306,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -389,7 +352,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) + getUnknownFields().hashCode(); @@ -397,136 +361,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -548,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_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 @@ -569,11 +527,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.WordInfo result = new com.google.cloud.speech.v1p1beta1.WordInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -581,10 +536,14 @@ public com.google.cloud.speech.v1p1beta1.WordInfo buildPartial() { private void buildPartial0(com.google.cloud.speech.v1p1beta1.WordInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.word_ = word_; @@ -601,39 +560,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.WordInfo result) { 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; @@ -685,43 +643,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - word_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 37: - { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000008; - break; - } // case 37 - case 40: - { - speakerTag_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + word_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 37: { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + case 40: { + speakerTag_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -731,18 +687,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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.
@@ -753,15 +703,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_time = 1; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -772,7 +719,6 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Duration start_time = 1; - * * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { @@ -783,8 +729,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.
@@ -810,8 +754,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.
@@ -823,7 +765,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();
       } else {
@@ -834,8 +777,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.
@@ -849,9 +790,9 @@ public Builder setStartTime(com.google.protobuf.Duration.Builder builderForValue
      */
     public Builder mergeStartTime(com.google.protobuf.Duration value) {
       if (startTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && startTime_ != null
-            && startTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          startTime_ != null &&
+          startTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getStartTimeBuilder().mergeFrom(value);
         } else {
           startTime_ = value;
@@ -864,8 +805,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.
@@ -888,8 +827,6 @@ public Builder clearStartTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -907,8 +844,6 @@ public com.google.protobuf.Duration.Builder getStartTimeBuilder() {
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -924,12 +859,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.
@@ -942,17 +876,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_;
@@ -960,13 +891,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.
@@ -977,15 +903,12 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Duration end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -996,7 +919,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Duration end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { @@ -1007,8 +929,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.
@@ -1034,8 +954,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.
@@ -1047,7 +965,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();
       } else {
@@ -1058,8 +977,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.
@@ -1073,9 +990,9 @@ public Builder setEndTime(com.google.protobuf.Duration.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Duration value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1088,8 +1005,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.
@@ -1112,8 +1027,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1131,8 +1044,6 @@ public com.google.protobuf.Duration.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1148,12 +1059,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.
@@ -1166,17 +1076,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_;
@@ -1184,20 +1091,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; @@ -1206,21 +1111,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 { @@ -1228,35 +1132,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWord( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } word_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @return This builder for chaining. */ public Builder clearWord() { @@ -1266,21 +1163,17 @@ public Builder clearWord() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); word_ = value; bitField0_ |= 0x00000004; @@ -1288,10 +1181,8 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) { 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
@@ -1303,7 +1194,6 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1311,8 +1201,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
@@ -1324,20 +1212,17 @@ public float getConfidence() {
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000008; 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
@@ -1349,7 +1234,6 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -1359,10 +1243,8 @@ public Builder clearConfidence() { 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
@@ -1372,7 +1254,6 @@ public Builder clearConfidence() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The speakerTag. */ @java.lang.Override @@ -1380,8 +1261,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
@@ -1391,20 +1270,17 @@ 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; bitField0_ |= 0x00000010; 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
@@ -1414,7 +1290,6 @@ public Builder setSpeakerTag(int value) {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSpeakerTag() { @@ -1423,9 +1298,9 @@ public Builder clearSpeakerTag() { 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); } @@ -1435,12 +1310,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(); } @@ -1449,27 +1324,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1484,4 +1359,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java similarity index 84% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java index 0bdb11ab40df..b811f0f3088d 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto similarity index 100% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto similarity index 100% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto similarity index 96% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto index 6a9bcaa9837a..945872618ed5 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto @@ -95,8 +95,8 @@ message PhraseSet { // boost will simply be ignored. Though `boost` can accept a wide range of // positive values, most use cases are best served // with values between 0 and 20. We recommend using a binary search approach - // to finding the optimal value for your use case. Speech recognition - // will skip PhraseSets with a boost value of 0. + // to finding the optimal value for your use case as well as adding + // phrases both with and without boost to your requests. float boost = 2; } @@ -113,8 +113,8 @@ message PhraseSet { // enabled, so negative boost will simply be ignored. Though `boost` can // accept a wide range of positive values, most use cases are best served with // values between 0 (exclusive) and 20. We recommend using a binary search - // approach to finding the optimal value for your use case. Speech recognition - // will skip PhraseSets with a boost value of 0. + // approach to finding the optimal value for your use case as well as adding + // phrases both with and without boost to your requests. float boost = 4; } diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetEndpoint.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/AsyncCreateCustomClass.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/AsyncCreateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/AsyncCreateCustomClass.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/AsyncCreateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClass.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClass.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/AsyncCreatePhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/AsyncCreatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/AsyncCreatePhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/AsyncCreatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClass.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClass.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/AsyncDeletePhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/AsyncDeletePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/AsyncDeletePhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/AsyncDeletePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetString.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetString.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/AsyncGetCustomClass.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/AsyncGetCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/AsyncGetCustomClass.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/AsyncGetCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClass.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClass.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassString.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassString.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/AsyncGetPhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/AsyncGetPhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/AsyncGetPhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/AsyncGetPhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetString.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetString.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClasses.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClasses.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClasses.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClasses.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClasses.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClasses.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClasses.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClasses.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesString.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesString.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSetPaged.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSetPaged.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSetPaged.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSetPaged.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetLocationname.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetLocationname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetLocationname.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetLocationname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetString.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetString.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClass.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClass.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetEndpoint.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognize.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognize.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognize.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognize.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/AsyncRecognize.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/AsyncRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/AsyncRecognize.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/AsyncRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognize.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognize.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/streamingrecognize/AsyncStreamingRecognize.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/streamingrecognize/AsyncStreamingRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/streamingrecognize/AsyncStreamingRecognize.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/streamingrecognize/AsyncStreamingRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java index bfeea92bfc4d..5cd92e22a6e4 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java +++ b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java @@ -32,6 +32,7 @@ import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; 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.v2.stub.SpeechStubSettings; diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/gapic_metadata.json b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/gapic_metadata.json similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/gapic_metadata.json rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/gapic_metadata.json diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/package-info.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/package-info.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/package-info.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/package-info.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechCallableFactory.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechCallableFactory.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechCallableFactory.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java index 00d92d8d8432..6930b03ab6c2 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java +++ b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java @@ -68,6 +68,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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechCallableFactory.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechCallableFactory.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechCallableFactory.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechCallableFactory.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java index 1a9d59fe1317..44cce61e86aa 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java +++ b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java @@ -32,6 +32,7 @@ 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.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeech.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeech.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeech.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeech.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeechImpl.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeechImpl.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeechImpl.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeechImpl.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientHttpJsonTest.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientHttpJsonTest.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientHttpJsonTest.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientHttpJsonTest.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientTest.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientTest.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientTest.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientTest.java diff --git a/owl-bot-staging/java-speech/v2/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java b/owl-bot-staging/java-speech/v2/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java new file mode 100644 index 000000000000..9d4c9c88b68d --- /dev/null +++ b/owl-bot-staging/java-speech/v2/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java @@ -0,0 +1,2207 @@ +package com.google.cloud.speech.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Enables speech transcription and resource management.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/speech/v2/cloud_speech.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SpeechGrpc { + + private SpeechGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.speech.v2.Speech"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateRecognizerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRecognizer", + requestType = com.google.cloud.speech.v2.CreateRecognizerRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateRecognizerMethod() { + io.grpc.MethodDescriptor getCreateRecognizerMethod; + if ((getCreateRecognizerMethod = SpeechGrpc.getCreateRecognizerMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getCreateRecognizerMethod = SpeechGrpc.getCreateRecognizerMethod) == null) { + SpeechGrpc.getCreateRecognizerMethod = getCreateRecognizerMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRecognizer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreateRecognizer")) + .build(); + } + } + } + return getCreateRecognizerMethod; + } + + private static volatile io.grpc.MethodDescriptor getListRecognizersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRecognizers", + requestType = com.google.cloud.speech.v2.ListRecognizersRequest.class, + responseType = com.google.cloud.speech.v2.ListRecognizersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListRecognizersMethod() { + io.grpc.MethodDescriptor getListRecognizersMethod; + if ((getListRecognizersMethod = SpeechGrpc.getListRecognizersMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getListRecognizersMethod = SpeechGrpc.getListRecognizersMethod) == null) { + SpeechGrpc.getListRecognizersMethod = getListRecognizersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRecognizers")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.ListRecognizersRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.ListRecognizersResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListRecognizers")) + .build(); + } + } + } + return getListRecognizersMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetRecognizerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRecognizer", + requestType = com.google.cloud.speech.v2.GetRecognizerRequest.class, + responseType = com.google.cloud.speech.v2.Recognizer.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetRecognizerMethod() { + io.grpc.MethodDescriptor getGetRecognizerMethod; + if ((getGetRecognizerMethod = SpeechGrpc.getGetRecognizerMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getGetRecognizerMethod = SpeechGrpc.getGetRecognizerMethod) == null) { + SpeechGrpc.getGetRecognizerMethod = getGetRecognizerMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRecognizer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.GetRecognizerRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.Recognizer.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetRecognizer")) + .build(); + } + } + } + return getGetRecognizerMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateRecognizerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateRecognizer", + requestType = com.google.cloud.speech.v2.UpdateRecognizerRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateRecognizerMethod() { + io.grpc.MethodDescriptor getUpdateRecognizerMethod; + if ((getUpdateRecognizerMethod = SpeechGrpc.getUpdateRecognizerMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUpdateRecognizerMethod = SpeechGrpc.getUpdateRecognizerMethod) == null) { + SpeechGrpc.getUpdateRecognizerMethod = getUpdateRecognizerMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRecognizer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdateRecognizer")) + .build(); + } + } + } + return getUpdateRecognizerMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteRecognizerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRecognizer", + requestType = com.google.cloud.speech.v2.DeleteRecognizerRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteRecognizerMethod() { + io.grpc.MethodDescriptor getDeleteRecognizerMethod; + if ((getDeleteRecognizerMethod = SpeechGrpc.getDeleteRecognizerMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getDeleteRecognizerMethod = SpeechGrpc.getDeleteRecognizerMethod) == null) { + SpeechGrpc.getDeleteRecognizerMethod = getDeleteRecognizerMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRecognizer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeleteRecognizer")) + .build(); + } + } + } + return getDeleteRecognizerMethod; + } + + private static volatile io.grpc.MethodDescriptor getUndeleteRecognizerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeleteRecognizer", + requestType = com.google.cloud.speech.v2.UndeleteRecognizerRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUndeleteRecognizerMethod() { + io.grpc.MethodDescriptor getUndeleteRecognizerMethod; + if ((getUndeleteRecognizerMethod = SpeechGrpc.getUndeleteRecognizerMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUndeleteRecognizerMethod = SpeechGrpc.getUndeleteRecognizerMethod) == null) { + SpeechGrpc.getUndeleteRecognizerMethod = getUndeleteRecognizerMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeleteRecognizer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UndeleteRecognizer")) + .build(); + } + } + } + return getUndeleteRecognizerMethod; + } + + private static volatile io.grpc.MethodDescriptor getRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Recognize", + requestType = com.google.cloud.speech.v2.RecognizeRequest.class, + responseType = com.google.cloud.speech.v2.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.v2.RecognizeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.RecognizeResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) + .build(); + } + } + } + return getRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor getStreamingRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", + requestType = com.google.cloud.speech.v2.StreamingRecognizeRequest.class, + responseType = com.google.cloud.speech.v2.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.v2.StreamingRecognizeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.StreamingRecognizeResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) + .build(); + } + } + } + return getStreamingRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor getBatchRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchRecognize", + requestType = com.google.cloud.speech.v2.BatchRecognizeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBatchRecognizeMethod() { + io.grpc.MethodDescriptor getBatchRecognizeMethod; + if ((getBatchRecognizeMethod = SpeechGrpc.getBatchRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getBatchRecognizeMethod = SpeechGrpc.getBatchRecognizeMethod) == null) { + SpeechGrpc.getBatchRecognizeMethod = getBatchRecognizeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("BatchRecognize")) + .build(); + } + } + } + return getBatchRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConfig", + requestType = com.google.cloud.speech.v2.GetConfigRequest.class, + responseType = com.google.cloud.speech.v2.Config.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetConfigMethod() { + io.grpc.MethodDescriptor getGetConfigMethod; + if ((getGetConfigMethod = SpeechGrpc.getGetConfigMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getGetConfigMethod = SpeechGrpc.getGetConfigMethod) == null) { + SpeechGrpc.getGetConfigMethod = getGetConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.GetConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.Config.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetConfig")) + .build(); + } + } + } + return getGetConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConfig", + requestType = com.google.cloud.speech.v2.UpdateConfigRequest.class, + responseType = com.google.cloud.speech.v2.Config.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateConfigMethod() { + io.grpc.MethodDescriptor getUpdateConfigMethod; + if ((getUpdateConfigMethod = SpeechGrpc.getUpdateConfigMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUpdateConfigMethod = SpeechGrpc.getUpdateConfigMethod) == null) { + SpeechGrpc.getUpdateConfigMethod = getUpdateConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.Config.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdateConfig")) + .build(); + } + } + } + return getUpdateConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", + requestType = com.google.cloud.speech.v2.CreateCustomClassRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateCustomClassMethod() { + io.grpc.MethodDescriptor getCreateCustomClassMethod; + if ((getCreateCustomClassMethod = SpeechGrpc.getCreateCustomClassMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getCreateCustomClassMethod = SpeechGrpc.getCreateCustomClassMethod) == null) { + SpeechGrpc.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.v2.CreateCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreateCustomClass")) + .build(); + } + } + } + return getCreateCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCustomClassesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", + requestType = com.google.cloud.speech.v2.ListCustomClassesRequest.class, + responseType = com.google.cloud.speech.v2.ListCustomClassesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCustomClassesMethod() { + io.grpc.MethodDescriptor getListCustomClassesMethod; + if ((getListCustomClassesMethod = SpeechGrpc.getListCustomClassesMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getListCustomClassesMethod = SpeechGrpc.getListCustomClassesMethod) == null) { + SpeechGrpc.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.v2.ListCustomClassesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.ListCustomClassesResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListCustomClasses")) + .build(); + } + } + } + return getListCustomClassesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", + requestType = com.google.cloud.speech.v2.GetCustomClassRequest.class, + responseType = com.google.cloud.speech.v2.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetCustomClassMethod() { + io.grpc.MethodDescriptor getGetCustomClassMethod; + if ((getGetCustomClassMethod = SpeechGrpc.getGetCustomClassMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getGetCustomClassMethod = SpeechGrpc.getGetCustomClassMethod) == null) { + SpeechGrpc.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.v2.GetCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.CustomClass.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetCustomClass")) + .build(); + } + } + } + return getGetCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", + requestType = com.google.cloud.speech.v2.UpdateCustomClassRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateCustomClassMethod() { + io.grpc.MethodDescriptor getUpdateCustomClassMethod; + if ((getUpdateCustomClassMethod = SpeechGrpc.getUpdateCustomClassMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUpdateCustomClassMethod = SpeechGrpc.getUpdateCustomClassMethod) == null) { + SpeechGrpc.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.v2.UpdateCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("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.v2.DeleteCustomClassRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteCustomClassMethod() { + io.grpc.MethodDescriptor getDeleteCustomClassMethod; + if ((getDeleteCustomClassMethod = SpeechGrpc.getDeleteCustomClassMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getDeleteCustomClassMethod = SpeechGrpc.getDeleteCustomClassMethod) == null) { + SpeechGrpc.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.v2.DeleteCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeleteCustomClass")) + .build(); + } + } + } + return getDeleteCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor getUndeleteCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeleteCustomClass", + requestType = com.google.cloud.speech.v2.UndeleteCustomClassRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUndeleteCustomClassMethod() { + io.grpc.MethodDescriptor getUndeleteCustomClassMethod; + if ((getUndeleteCustomClassMethod = SpeechGrpc.getUndeleteCustomClassMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUndeleteCustomClassMethod = SpeechGrpc.getUndeleteCustomClassMethod) == null) { + SpeechGrpc.getUndeleteCustomClassMethod = getUndeleteCustomClassMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeleteCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UndeleteCustomClass")) + .build(); + } + } + } + return getUndeleteCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", + requestType = com.google.cloud.speech.v2.CreatePhraseSetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreatePhraseSetMethod() { + io.grpc.MethodDescriptor getCreatePhraseSetMethod; + if ((getCreatePhraseSetMethod = SpeechGrpc.getCreatePhraseSetMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getCreatePhraseSetMethod = SpeechGrpc.getCreatePhraseSetMethod) == null) { + SpeechGrpc.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.v2.CreatePhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreatePhraseSet")) + .build(); + } + } + } + return getCreatePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getListPhraseSetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPhraseSets", + requestType = com.google.cloud.speech.v2.ListPhraseSetsRequest.class, + responseType = com.google.cloud.speech.v2.ListPhraseSetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListPhraseSetsMethod() { + io.grpc.MethodDescriptor getListPhraseSetsMethod; + if ((getListPhraseSetsMethod = SpeechGrpc.getListPhraseSetsMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getListPhraseSetsMethod = SpeechGrpc.getListPhraseSetsMethod) == null) { + SpeechGrpc.getListPhraseSetsMethod = getListPhraseSetsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.ListPhraseSetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.ListPhraseSetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListPhraseSets")) + .build(); + } + } + } + return getListPhraseSetsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetPhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", + requestType = com.google.cloud.speech.v2.GetPhraseSetRequest.class, + responseType = com.google.cloud.speech.v2.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetPhraseSetMethod() { + io.grpc.MethodDescriptor getGetPhraseSetMethod; + if ((getGetPhraseSetMethod = SpeechGrpc.getGetPhraseSetMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getGetPhraseSetMethod = SpeechGrpc.getGetPhraseSetMethod) == null) { + SpeechGrpc.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.v2.GetPhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetPhraseSet")) + .build(); + } + } + } + return getGetPhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", + requestType = com.google.cloud.speech.v2.UpdatePhraseSetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdatePhraseSetMethod() { + io.grpc.MethodDescriptor getUpdatePhraseSetMethod; + if ((getUpdatePhraseSetMethod = SpeechGrpc.getUpdatePhraseSetMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUpdatePhraseSetMethod = SpeechGrpc.getUpdatePhraseSetMethod) == null) { + SpeechGrpc.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.v2.UpdatePhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("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.v2.DeletePhraseSetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeletePhraseSetMethod() { + io.grpc.MethodDescriptor getDeletePhraseSetMethod; + if ((getDeletePhraseSetMethod = SpeechGrpc.getDeletePhraseSetMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getDeletePhraseSetMethod = SpeechGrpc.getDeletePhraseSetMethod) == null) { + SpeechGrpc.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.v2.DeletePhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeletePhraseSet")) + .build(); + } + } + } + return getDeletePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getUndeletePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeletePhraseSet", + requestType = com.google.cloud.speech.v2.UndeletePhraseSetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUndeletePhraseSetMethod() { + io.grpc.MethodDescriptor getUndeletePhraseSetMethod; + if ((getUndeletePhraseSetMethod = SpeechGrpc.getUndeletePhraseSetMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUndeletePhraseSetMethod = SpeechGrpc.getUndeletePhraseSetMethod) == null) { + SpeechGrpc.getUndeletePhraseSetMethod = getUndeletePhraseSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeletePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UndeletePhraseSet")) + .build(); + } + } + } + return getUndeletePhraseSetMethod; + } + + /** + * 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); + } + + /** + *
+   * Enables speech transcription and resource management.
+   * 
+ */ + public static abstract class SpeechImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void createRecognizer(com.google.cloud.speech.v2.CreateRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRecognizerMethod(), responseObserver); + } + + /** + *
+     * Lists Recognizers.
+     * 
+ */ + public void listRecognizers(com.google.cloud.speech.v2.ListRecognizersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRecognizersMethod(), responseObserver); + } + + /** + *
+     * Returns the requested
+     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
+     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
+     * exist.
+     * 
+ */ + public void getRecognizer(com.google.cloud.speech.v2.GetRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRecognizerMethod(), responseObserver); + } + + /** + *
+     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void updateRecognizer(com.google.cloud.speech.v2.UpdateRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateRecognizerMethod(), responseObserver); + } + + /** + *
+     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void deleteRecognizer(com.google.cloud.speech.v2.DeleteRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRecognizerMethod(), responseObserver); + } + + /** + *
+     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void undeleteRecognizer(com.google.cloud.speech.v2.UndeleteRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeleteRecognizerMethod(), responseObserver); + } + + /** + *
+     * Performs synchronous Speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize(com.google.cloud.speech.v2.RecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), 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); + } + + /** + *
+     * Performs batch asynchronous speech recognition: send a request with N
+     * audio files and receive a long running operation that can be polled to see
+     * when the transcriptions are finished.
+     * 
+ */ + public void batchRecognize(com.google.cloud.speech.v2.BatchRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchRecognizeMethod(), responseObserver); + } + + /** + *
+     * Returns the requested [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public void getConfig(com.google.cloud.speech.v2.GetConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConfigMethod(), responseObserver); + } + + /** + *
+     * Updates the [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public void updateConfig(com.google.cloud.speech.v2.UpdateConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConfigMethod(), responseObserver); + } + + /** + *
+     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void createCustomClass(com.google.cloud.speech.v2.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCustomClassMethod(), responseObserver); + } + + /** + *
+     * Lists CustomClasses.
+     * 
+ */ + public void listCustomClasses(com.google.cloud.speech.v2.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCustomClassesMethod(), responseObserver); + } + + /** + *
+     * Returns the requested
+     * [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void getCustomClass(com.google.cloud.speech.v2.GetCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCustomClassMethod(), responseObserver); + } + + /** + *
+     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void updateCustomClass(com.google.cloud.speech.v2.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCustomClassMethod(), responseObserver); + } + + /** + *
+     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void deleteCustomClass(com.google.cloud.speech.v2.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCustomClassMethod(), responseObserver); + } + + /** + *
+     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void undeleteCustomClass(com.google.cloud.speech.v2.UndeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeleteCustomClassMethod(), responseObserver); + } + + /** + *
+     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void createPhraseSet(com.google.cloud.speech.v2.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePhraseSetMethod(), responseObserver); + } + + /** + *
+     * Lists PhraseSets.
+     * 
+ */ + public void listPhraseSets(com.google.cloud.speech.v2.ListPhraseSetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPhraseSetsMethod(), responseObserver); + } + + /** + *
+     * Returns the requested
+     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void getPhraseSet(com.google.cloud.speech.v2.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPhraseSetMethod(), responseObserver); + } + + /** + *
+     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void updatePhraseSet(com.google.cloud.speech.v2.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePhraseSetMethod(), responseObserver); + } + + /** + *
+     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void deletePhraseSet(com.google.cloud.speech.v2.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePhraseSetMethod(), responseObserver); + } + + /** + *
+     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void undeletePhraseSet(com.google.cloud.speech.v2.UndeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeletePhraseSetMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateRecognizerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.CreateRecognizerRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_RECOGNIZER))) + .addMethod( + getListRecognizersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.ListRecognizersRequest, + com.google.cloud.speech.v2.ListRecognizersResponse>( + this, METHODID_LIST_RECOGNIZERS))) + .addMethod( + getGetRecognizerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.GetRecognizerRequest, + com.google.cloud.speech.v2.Recognizer>( + this, METHODID_GET_RECOGNIZER))) + .addMethod( + getUpdateRecognizerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UpdateRecognizerRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_RECOGNIZER))) + .addMethod( + getDeleteRecognizerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.DeleteRecognizerRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_RECOGNIZER))) + .addMethod( + getUndeleteRecognizerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UndeleteRecognizerRequest, + com.google.longrunning.Operation>( + this, METHODID_UNDELETE_RECOGNIZER))) + .addMethod( + getRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.RecognizeRequest, + com.google.cloud.speech.v2.RecognizeResponse>( + this, METHODID_RECOGNIZE))) + .addMethod( + getStreamingRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.speech.v2.StreamingRecognizeRequest, + com.google.cloud.speech.v2.StreamingRecognizeResponse>( + this, METHODID_STREAMING_RECOGNIZE))) + .addMethod( + getBatchRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.BatchRecognizeRequest, + com.google.longrunning.Operation>( + this, METHODID_BATCH_RECOGNIZE))) + .addMethod( + getGetConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.GetConfigRequest, + com.google.cloud.speech.v2.Config>( + this, METHODID_GET_CONFIG))) + .addMethod( + getUpdateConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UpdateConfigRequest, + com.google.cloud.speech.v2.Config>( + this, METHODID_UPDATE_CONFIG))) + .addMethod( + getCreateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.CreateCustomClassRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_CUSTOM_CLASS))) + .addMethod( + getListCustomClassesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.ListCustomClassesRequest, + com.google.cloud.speech.v2.ListCustomClassesResponse>( + this, METHODID_LIST_CUSTOM_CLASSES))) + .addMethod( + getGetCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.GetCustomClassRequest, + com.google.cloud.speech.v2.CustomClass>( + this, METHODID_GET_CUSTOM_CLASS))) + .addMethod( + getUpdateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UpdateCustomClassRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_CUSTOM_CLASS))) + .addMethod( + getDeleteCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.DeleteCustomClassRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_CUSTOM_CLASS))) + .addMethod( + getUndeleteCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UndeleteCustomClassRequest, + com.google.longrunning.Operation>( + this, METHODID_UNDELETE_CUSTOM_CLASS))) + .addMethod( + getCreatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.CreatePhraseSetRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_PHRASE_SET))) + .addMethod( + getListPhraseSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.ListPhraseSetsRequest, + com.google.cloud.speech.v2.ListPhraseSetsResponse>( + this, METHODID_LIST_PHRASE_SETS))) + .addMethod( + getGetPhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.GetPhraseSetRequest, + com.google.cloud.speech.v2.PhraseSet>( + this, METHODID_GET_PHRASE_SET))) + .addMethod( + getUpdatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UpdatePhraseSetRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_PHRASE_SET))) + .addMethod( + getDeletePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.DeletePhraseSetRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_PHRASE_SET))) + .addMethod( + getUndeletePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UndeletePhraseSetRequest, + com.google.longrunning.Operation>( + this, METHODID_UNDELETE_PHRASE_SET))) + .build(); + } + } + + /** + *
+   * Enables speech transcription and resource management.
+   * 
+ */ + 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); + } + + /** + *
+     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void createRecognizer(com.google.cloud.speech.v2.CreateRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRecognizerMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists Recognizers.
+     * 
+ */ + public void listRecognizers(com.google.cloud.speech.v2.ListRecognizersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRecognizersMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the requested
+     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
+     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
+     * exist.
+     * 
+ */ + public void getRecognizer(com.google.cloud.speech.v2.GetRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRecognizerMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void updateRecognizer(com.google.cloud.speech.v2.UpdateRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateRecognizerMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void deleteRecognizer(com.google.cloud.speech.v2.DeleteRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRecognizerMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void undeleteRecognizer(com.google.cloud.speech.v2.UndeleteRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeleteRecognizerMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Performs synchronous Speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize(com.google.cloud.speech.v2.RecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRecognizeMethod(), 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); + } + + /** + *
+     * Performs batch asynchronous speech recognition: send a request with N
+     * audio files and receive a long running operation that can be polled to see
+     * when the transcriptions are finished.
+     * 
+ */ + public void batchRecognize(com.google.cloud.speech.v2.BatchRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchRecognizeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the requested [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public void getConfig(com.google.cloud.speech.v2.GetConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public void updateConfig(com.google.cloud.speech.v2.UpdateConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void createCustomClass(com.google.cloud.speech.v2.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists CustomClasses.
+     * 
+ */ + public void listCustomClasses(com.google.cloud.speech.v2.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the requested
+     * [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void getCustomClass(com.google.cloud.speech.v2.GetCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void updateCustomClass(com.google.cloud.speech.v2.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void deleteCustomClass(com.google.cloud.speech.v2.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void undeleteCustomClass(com.google.cloud.speech.v2.UndeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeleteCustomClassMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void createPhraseSet(com.google.cloud.speech.v2.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists PhraseSets.
+     * 
+ */ + public void listPhraseSets(com.google.cloud.speech.v2.ListPhraseSetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPhraseSetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the requested
+     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void getPhraseSet(com.google.cloud.speech.v2.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void updatePhraseSet(com.google.cloud.speech.v2.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void deletePhraseSet(com.google.cloud.speech.v2.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void undeletePhraseSet(com.google.cloud.speech.v2.UndeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeletePhraseSetMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Enables speech transcription and resource management.
+   * 
+ */ + 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); + } + + /** + *
+     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.longrunning.Operation createRecognizer(com.google.cloud.speech.v2.CreateRecognizerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRecognizerMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists Recognizers.
+     * 
+ */ + public com.google.cloud.speech.v2.ListRecognizersResponse listRecognizers(com.google.cloud.speech.v2.ListRecognizersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRecognizersMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the requested
+     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
+     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.speech.v2.Recognizer getRecognizer(com.google.cloud.speech.v2.GetRecognizerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRecognizerMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.longrunning.Operation updateRecognizer(com.google.cloud.speech.v2.UpdateRecognizerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateRecognizerMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.longrunning.Operation deleteRecognizer(com.google.cloud.speech.v2.DeleteRecognizerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRecognizerMethod(), getCallOptions(), request); + } + + /** + *
+     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.longrunning.Operation undeleteRecognizer(com.google.cloud.speech.v2.UndeleteRecognizerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeleteRecognizerMethod(), getCallOptions(), request); + } + + /** + *
+     * Performs synchronous Speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.cloud.speech.v2.RecognizeResponse recognize(com.google.cloud.speech.v2.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRecognizeMethod(), getCallOptions(), request); + } + + /** + *
+     * Performs batch asynchronous speech recognition: send a request with N
+     * audio files and receive a long running operation that can be polled to see
+     * when the transcriptions are finished.
+     * 
+ */ + public com.google.longrunning.Operation batchRecognize(com.google.cloud.speech.v2.BatchRecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchRecognizeMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the requested [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public com.google.cloud.speech.v2.Config getConfig(com.google.cloud.speech.v2.GetConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public com.google.cloud.speech.v2.Config updateConfig(com.google.cloud.speech.v2.UpdateConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.longrunning.Operation createCustomClass(com.google.cloud.speech.v2.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists CustomClasses.
+     * 
+ */ + public com.google.cloud.speech.v2.ListCustomClassesResponse listCustomClasses(com.google.cloud.speech.v2.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCustomClassesMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the requested
+     * [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.cloud.speech.v2.CustomClass getCustomClass(com.google.cloud.speech.v2.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCustomClassMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.longrunning.Operation updateCustomClass(com.google.cloud.speech.v2.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.longrunning.Operation deleteCustomClass(com.google.cloud.speech.v2.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); + } + + /** + *
+     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.longrunning.Operation undeleteCustomClass(com.google.cloud.speech.v2.UndeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeleteCustomClassMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.longrunning.Operation createPhraseSet(com.google.cloud.speech.v2.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists PhraseSets.
+     * 
+ */ + public com.google.cloud.speech.v2.ListPhraseSetsResponse listPhraseSets(com.google.cloud.speech.v2.ListPhraseSetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPhraseSetsMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the requested
+     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.cloud.speech.v2.PhraseSet getPhraseSet(com.google.cloud.speech.v2.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.longrunning.Operation updatePhraseSet(com.google.cloud.speech.v2.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.longrunning.Operation deletePhraseSet(com.google.cloud.speech.v2.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.longrunning.Operation undeletePhraseSet(com.google.cloud.speech.v2.UndeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeletePhraseSetMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Enables speech transcription and resource management.
+   * 
+ */ + 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); + } + + /** + *
+     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createRecognizer( + com.google.cloud.speech.v2.CreateRecognizerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRecognizerMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists Recognizers.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listRecognizers( + com.google.cloud.speech.v2.ListRecognizersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRecognizersMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the requested
+     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
+     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getRecognizer( + com.google.cloud.speech.v2.GetRecognizerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRecognizerMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateRecognizer( + com.google.cloud.speech.v2.UpdateRecognizerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateRecognizerMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteRecognizer( + com.google.cloud.speech.v2.DeleteRecognizerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRecognizerMethod(), getCallOptions()), request); + } + + /** + *
+     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture undeleteRecognizer( + com.google.cloud.speech.v2.UndeleteRecognizerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeleteRecognizerMethod(), getCallOptions()), request); + } + + /** + *
+     * 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.v2.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); + } + + /** + *
+     * Performs batch asynchronous speech recognition: send a request with N
+     * audio files and receive a long running operation that can be polled to see
+     * when the transcriptions are finished.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture batchRecognize( + com.google.cloud.speech.v2.BatchRecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchRecognizeMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the requested [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getConfig( + com.google.cloud.speech.v2.GetConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateConfig( + com.google.cloud.speech.v2.UpdateConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createCustomClass( + com.google.cloud.speech.v2.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists CustomClasses.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCustomClasses( + com.google.cloud.speech.v2.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the requested
+     * [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getCustomClass( + com.google.cloud.speech.v2.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateCustomClass( + com.google.cloud.speech.v2.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteCustomClass( + com.google.cloud.speech.v2.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); + } + + /** + *
+     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture undeleteCustomClass( + com.google.cloud.speech.v2.UndeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeleteCustomClassMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createPhraseSet( + com.google.cloud.speech.v2.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists PhraseSets.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listPhraseSets( + com.google.cloud.speech.v2.ListPhraseSetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPhraseSetsMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the requested
+     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getPhraseSet( + com.google.cloud.speech.v2.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updatePhraseSet( + com.google.cloud.speech.v2.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deletePhraseSet( + com.google.cloud.speech.v2.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture undeletePhraseSet( + com.google.cloud.speech.v2.UndeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeletePhraseSetMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_RECOGNIZER = 0; + private static final int METHODID_LIST_RECOGNIZERS = 1; + private static final int METHODID_GET_RECOGNIZER = 2; + private static final int METHODID_UPDATE_RECOGNIZER = 3; + private static final int METHODID_DELETE_RECOGNIZER = 4; + private static final int METHODID_UNDELETE_RECOGNIZER = 5; + private static final int METHODID_RECOGNIZE = 6; + private static final int METHODID_BATCH_RECOGNIZE = 7; + private static final int METHODID_GET_CONFIG = 8; + private static final int METHODID_UPDATE_CONFIG = 9; + private static final int METHODID_CREATE_CUSTOM_CLASS = 10; + private static final int METHODID_LIST_CUSTOM_CLASSES = 11; + private static final int METHODID_GET_CUSTOM_CLASS = 12; + private static final int METHODID_UPDATE_CUSTOM_CLASS = 13; + private static final int METHODID_DELETE_CUSTOM_CLASS = 14; + private static final int METHODID_UNDELETE_CUSTOM_CLASS = 15; + private static final int METHODID_CREATE_PHRASE_SET = 16; + private static final int METHODID_LIST_PHRASE_SETS = 17; + private static final int METHODID_GET_PHRASE_SET = 18; + private static final int METHODID_UPDATE_PHRASE_SET = 19; + private static final int METHODID_DELETE_PHRASE_SET = 20; + private static final int METHODID_UNDELETE_PHRASE_SET = 21; + private static final int METHODID_STREAMING_RECOGNIZE = 22; + + 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_CREATE_RECOGNIZER: + serviceImpl.createRecognizer((com.google.cloud.speech.v2.CreateRecognizerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RECOGNIZERS: + serviceImpl.listRecognizers((com.google.cloud.speech.v2.ListRecognizersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_RECOGNIZER: + serviceImpl.getRecognizer((com.google.cloud.speech.v2.GetRecognizerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_RECOGNIZER: + serviceImpl.updateRecognizer((com.google.cloud.speech.v2.UpdateRecognizerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_RECOGNIZER: + serviceImpl.deleteRecognizer((com.google.cloud.speech.v2.DeleteRecognizerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNDELETE_RECOGNIZER: + serviceImpl.undeleteRecognizer((com.google.cloud.speech.v2.UndeleteRecognizerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RECOGNIZE: + serviceImpl.recognize((com.google.cloud.speech.v2.RecognizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_RECOGNIZE: + serviceImpl.batchRecognize((com.google.cloud.speech.v2.BatchRecognizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CONFIG: + serviceImpl.getConfig((com.google.cloud.speech.v2.GetConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONFIG: + serviceImpl.updateConfig((com.google.cloud.speech.v2.UpdateConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CUSTOM_CLASS: + serviceImpl.createCustomClass((com.google.cloud.speech.v2.CreateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CUSTOM_CLASSES: + serviceImpl.listCustomClasses((com.google.cloud.speech.v2.ListCustomClassesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CUSTOM_CLASS: + serviceImpl.getCustomClass((com.google.cloud.speech.v2.GetCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CUSTOM_CLASS: + serviceImpl.updateCustomClass((com.google.cloud.speech.v2.UpdateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CUSTOM_CLASS: + serviceImpl.deleteCustomClass((com.google.cloud.speech.v2.DeleteCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNDELETE_CUSTOM_CLASS: + serviceImpl.undeleteCustomClass((com.google.cloud.speech.v2.UndeleteCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_PHRASE_SET: + serviceImpl.createPhraseSet((com.google.cloud.speech.v2.CreatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_PHRASE_SETS: + serviceImpl.listPhraseSets((com.google.cloud.speech.v2.ListPhraseSetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_PHRASE_SET: + serviceImpl.getPhraseSet((com.google.cloud.speech.v2.GetPhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_PHRASE_SET: + serviceImpl.updatePhraseSet((com.google.cloud.speech.v2.UpdatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_PHRASE_SET: + serviceImpl.deletePhraseSet((com.google.cloud.speech.v2.DeletePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNDELETE_PHRASE_SET: + serviceImpl.undeletePhraseSet((com.google.cloud.speech.v2.UndeletePhraseSetRequest) 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.v2.CloudSpeechProto.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(getCreateRecognizerMethod()) + .addMethod(getListRecognizersMethod()) + .addMethod(getGetRecognizerMethod()) + .addMethod(getUpdateRecognizerMethod()) + .addMethod(getDeleteRecognizerMethod()) + .addMethod(getUndeleteRecognizerMethod()) + .addMethod(getRecognizeMethod()) + .addMethod(getStreamingRecognizeMethod()) + .addMethod(getBatchRecognizeMethod()) + .addMethod(getGetConfigMethod()) + .addMethod(getUpdateConfigMethod()) + .addMethod(getCreateCustomClassMethod()) + .addMethod(getListCustomClassesMethod()) + .addMethod(getGetCustomClassMethod()) + .addMethod(getUpdateCustomClassMethod()) + .addMethod(getDeleteCustomClassMethod()) + .addMethod(getUndeleteCustomClassMethod()) + .addMethod(getCreatePhraseSetMethod()) + .addMethod(getListPhraseSetsMethod()) + .addMethod(getGetPhraseSetMethod()) + .addMethod(getUpdatePhraseSetMethod()) + .addMethod(getDeletePhraseSetMethod()) + .addMethod(getUndeletePhraseSetMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java similarity index 64% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java index 82aaf8ce8a3a..0ad7af9e165f 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Automatically detected decoding parameters.
  * Supported for the following encodings:
@@ -37,46 +20,44 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.AutoDetectDecodingConfig}
  */
-public final class AutoDetectDecodingConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AutoDetectDecodingConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.AutoDetectDecodingConfig)
     AutoDetectDecodingConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AutoDetectDecodingConfig.newBuilder() to construct.
   private AutoDetectDecodingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private AutoDetectDecodingConfig() {}
+  private AutoDetectDecodingConfig() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AutoDetectDecodingConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.AutoDetectDecodingConfig.class,
-            com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder.class);
+            com.google.cloud.speech.v2.AutoDetectDecodingConfig.class, com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -88,7 +69,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 {
     getUnknownFields().writeTo(output);
   }
 
@@ -106,13 +88,12 @@ 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.v2.AutoDetectDecodingConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.AutoDetectDecodingConfig other =
-        (com.google.cloud.speech.v2.AutoDetectDecodingConfig) obj;
+    com.google.cloud.speech.v2.AutoDetectDecodingConfig other = (com.google.cloud.speech.v2.AutoDetectDecodingConfig) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -131,103 +112,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v2.AutoDetectDecodingConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v2.AutoDetectDecodingConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig 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;
   }
   /**
-   *
-   *
    * 
    * Automatically detected decoding parameters.
    * Supported for the following encodings:
@@ -244,32 +218,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.AutoDetectDecodingConfig}
    */
-  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.v2.AutoDetectDecodingConfig)
       com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.AutoDetectDecodingConfig.class,
-              com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder.class);
+              com.google.cloud.speech.v2.AutoDetectDecodingConfig.class, com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.AutoDetectDecodingConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -277,9 +252,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
     }
 
     @java.lang.Override
@@ -298,8 +273,7 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.AutoDetectDecodingConfig buildPartial() {
-      com.google.cloud.speech.v2.AutoDetectDecodingConfig result =
-          new com.google.cloud.speech.v2.AutoDetectDecodingConfig(this);
+      com.google.cloud.speech.v2.AutoDetectDecodingConfig result = new com.google.cloud.speech.v2.AutoDetectDecodingConfig(this);
       onBuilt();
       return result;
     }
@@ -308,39 +282,38 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig) {
-        return mergeFrom((com.google.cloud.speech.v2.AutoDetectDecodingConfig) other);
+        return mergeFrom((com.google.cloud.speech.v2.AutoDetectDecodingConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -348,8 +321,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.AutoDetectDecodingConfig other) {
-      if (other == com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance()) return this;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -376,13 +348,12 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -392,9 +363,9 @@ public Builder mergeFrom(
       } // finally
       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);
     }
 
@@ -404,12 +375,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.AutoDetectDecodingConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.AutoDetectDecodingConfig)
   private static final com.google.cloud.speech.v2.AutoDetectDecodingConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.AutoDetectDecodingConfig();
   }
@@ -418,27 +389,27 @@ public static com.google.cloud.speech.v2.AutoDetectDecodingConfig getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public AutoDetectDecodingConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public AutoDetectDecodingConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -453,4 +424,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v2.AutoDetectDecodingConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java
new file mode 100644
index 000000000000..a00b9e8f5df9
--- /dev/null
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java
@@ -0,0 +1,9 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/speech/v2/cloud_speech.proto
+
+package com.google.cloud.speech.v2;
+
+public interface AutoDetectDecodingConfigOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.AutoDetectDecodingConfig)
+    com.google.protobuf.MessageOrBuilder {
+}
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java
similarity index 77%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java
index 4cfda3d25d30..2759c33fcb35 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java
@@ -1,81 +1,60 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
- *
- *
  * 
  * Metadata about a single file in a batch for BatchRecognize.
  * 
* * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeFileMetadata} */ -public final class BatchRecognizeFileMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchRecognizeFileMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeFileMetadata) BatchRecognizeFileMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchRecognizeFileMetadata.newBuilder() to construct. private BatchRecognizeFileMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchRecognizeFileMetadata() {} + private BatchRecognizeFileMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchRecognizeFileMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.BatchRecognizeFileMetadata.class, - com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder.class); + com.google.cloud.speech.v2.BatchRecognizeFileMetadata.class, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.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 { URI(1), AUDIOSOURCE_NOT_SET(0); private final int value; - private AudioSourceCase(int value) { this.value = value; } @@ -91,48 +70,40 @@ public static AudioSourceCase valueOf(int value) { public static AudioSourceCase forNumber(int value) { switch (value) { - case 1: - return URI; - case 0: - return AUDIOSOURCE_NOT_SET; - default: - return null; + case 1: 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 URI_FIELD_NUMBER = 1; /** - * - * *
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; - * * @return Whether the uri field is set. */ public boolean hasUri() { return audioSourceCase_ == 1; } /** - * - * *
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; - * * @return The uri. */ public java.lang.String getUri() { @@ -143,7 +114,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_ == 1) { audioSource_ = s; @@ -152,24 +124,23 @@ public java.lang.String getUri() { } } /** - * - * *
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (audioSourceCase_ == 1) { 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_ == 1) { audioSource_ = b; } @@ -182,8 +153,6 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int CONFIG_FIELD_NUMBER = 4; private com.google.cloud.speech.v2.RecognitionConfig config_; /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -196,7 +165,6 @@ public com.google.protobuf.ByteString getUriBytes() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return Whether the config field is set. */ @java.lang.Override @@ -204,8 +172,6 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -218,18 +184,13 @@ public boolean hasConfig() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfig getConfig() { - return config_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; } /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -245,16 +206,12 @@ public com.google.cloud.speech.v2.RecognitionConfig getConfig() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder() {
-    return config_ == null
-        ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
-        : config_;
+    return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
   }
 
   public static final int CONFIG_MASK_FIELD_NUMBER = 5;
   private com.google.protobuf.FieldMask configMask_;
   /**
-   *
-   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -272,7 +229,6 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return Whether the configMask field is set. */ @java.lang.Override @@ -280,8 +236,6 @@ public boolean hasConfigMask() { return configMask_ != null; } /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -299,7 +253,6 @@ public boolean hasConfigMask() {
    * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return The configMask. */ @java.lang.Override @@ -307,8 +260,6 @@ public com.google.protobuf.FieldMask getConfigMask() { return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -333,7 +284,6 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -345,7 +295,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 (audioSourceCase_ == 1) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, audioSource_);
     }
@@ -368,10 +319,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, audioSource_);
     }
     if (config_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getConfig());
     }
     if (configMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getConfigMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getConfigMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -381,26 +334,28 @@ 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.v2.BatchRecognizeFileMetadata)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.BatchRecognizeFileMetadata other =
-        (com.google.cloud.speech.v2.BatchRecognizeFileMetadata) obj;
+    com.google.cloud.speech.v2.BatchRecognizeFileMetadata other = (com.google.cloud.speech.v2.BatchRecognizeFileMetadata) obj;
 
     if (hasConfig() != other.hasConfig()) return false;
     if (hasConfig()) {
-      if (!getConfig().equals(other.getConfig())) return false;
+      if (!getConfig()
+          .equals(other.getConfig())) return false;
     }
     if (hasConfigMask() != other.hasConfigMask()) return false;
     if (hasConfigMask()) {
-      if (!getConfigMask().equals(other.getConfigMask())) return false;
+      if (!getConfigMask()
+          .equals(other.getConfigMask())) return false;
     }
     if (!getAudioSourceCase().equals(other.getAudioSourceCase())) return false;
     switch (audioSourceCase_) {
       case 1:
-        if (!getUri().equals(other.getUri())) return false;
+        if (!getUri()
+            .equals(other.getUri())) return false;
         break;
       case 0:
       default:
@@ -438,136 +393,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata prototype) {
+  public static Builder newBuilder(com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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;
   }
   /**
-   *
-   *
    * 
    * Metadata about a single file in a batch for BatchRecognize.
    * 
* * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeFileMetadata} */ - 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.v2.BatchRecognizeFileMetadata) com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.BatchRecognizeFileMetadata.class, - com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder.class); + com.google.cloud.speech.v2.BatchRecognizeFileMetadata.class, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder.class); } // Construct using com.google.cloud.speech.v2.BatchRecognizeFileMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -588,9 +536,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; } @java.lang.Override @@ -609,11 +557,8 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata build() { @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeFileMetadata buildPartial() { - com.google.cloud.speech.v2.BatchRecognizeFileMetadata result = - new com.google.cloud.speech.v2.BatchRecognizeFileMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v2.BatchRecognizeFileMetadata result = new com.google.cloud.speech.v2.BatchRecognizeFileMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -622,10 +567,14 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata buildPartial() { private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeFileMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { - result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + result.config_ = configBuilder_ == null + ? config_ + : configBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.configMask_ = configMaskBuilder_ == null ? configMask_ : configMaskBuilder_.build(); + result.configMask_ = configMaskBuilder_ == null + ? configMask_ + : configMaskBuilder_.build(); } } @@ -638,39 +587,38 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.BatchRecognizeFileMet 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.v2.BatchRecognizeFileMetadata) { - return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeFileMetadata) other); + return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeFileMetadata)other); } else { super.mergeFrom(other); return this; @@ -678,8 +626,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeFileMetadata other) { - if (other == com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()) return this; if (other.hasConfig()) { mergeConfig(other.getConfig()); } @@ -687,17 +634,15 @@ public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeFileMetadata o mergeConfigMask(other.getConfigMask()); } switch (other.getAudioSourceCase()) { - case URI: - { - audioSourceCase_ = 1; - audioSource_ = other.audioSource_; - onChanged(); - break; - } - case AUDIOSOURCE_NOT_SET: - { - break; - } + case URI: { + audioSourceCase_ = 1; + audioSource_ = other.audioSource_; + onChanged(); + break; + } + case AUDIOSOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -725,32 +670,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - audioSourceCase_ = 1; - audioSource_ = s; - break; - } // case 10 - case 34: - { - input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 34 - case 42: - { - input.readMessage(getConfigMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + audioSourceCase_ = 1; + audioSource_ = s; + break; + } // case 10 + case 34: { + input.readMessage( + getConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: { + input.readMessage( + getConfigMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -760,12 +705,12 @@ public Builder mergeFrom( } // finally 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() { @@ -778,14 +723,11 @@ public Builder clearAudioSource() { private int bitField0_; /** - * - * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -793,14 +735,11 @@ public boolean hasUri() { return audioSourceCase_ == 1; } /** - * - * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -810,7 +749,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_ == 1) { audioSource_ = s; @@ -821,25 +761,24 @@ public java.lang.String getUri() { } } /** - * - * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; - * * @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_ == 1) { 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_ == 1) { audioSource_ = b; } @@ -849,35 +788,28 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } audioSourceCase_ = 1; audioSource_ = value; onChanged(); return this; } /** - * - * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -889,21 +821,17 @@ public Builder clearUri() { return this; } /** - * - * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); audioSourceCase_ = 1; audioSource_ = value; @@ -913,13 +841,8 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { private com.google.cloud.speech.v2.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, - com.google.cloud.speech.v2.RecognitionConfig.Builder, - com.google.cloud.speech.v2.RecognitionConfigOrBuilder> - configBuilder_; + com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> configBuilder_; /** - * - * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -932,15 +855,12 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -953,21 +873,16 @@ public boolean hasConfig() {
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return The config. */ public com.google.cloud.speech.v2.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -995,8 +910,6 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1010,7 +923,8 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
      *
      * .google.cloud.speech.v2.RecognitionConfig config = 4;
      */
-    public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
+    public Builder setConfig(
+        com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
       if (configBuilder_ == null) {
         config_ = builderForValue.build();
       } else {
@@ -1021,8 +935,6 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder bu
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1038,9 +950,9 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder bu
      */
     public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       if (configBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && config_ != null
-            && config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          config_ != null &&
+          config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
           getConfigBuilder().mergeFrom(value);
         } else {
           config_ = value;
@@ -1053,8 +965,6 @@ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1079,8 +989,6 @@ public Builder clearConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1100,8 +1008,6 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() {
       return getConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1119,14 +1025,11 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
       if (configBuilder_ != null) {
         return configBuilder_.getMessageOrBuilder();
       } else {
-        return config_ == null
-            ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
-            : config_;
+        return config_ == null ?
+            com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
       }
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1141,17 +1044,14 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * .google.cloud.speech.v2.RecognitionConfig config = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.RecognitionConfig,
-            com.google.cloud.speech.v2.RecognitionConfig.Builder,
-            com.google.cloud.speech.v2.RecognitionConfigOrBuilder>
+        com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> 
         getConfigFieldBuilder() {
       if (configBuilder_ == null) {
-        configBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v2.RecognitionConfig,
-                com.google.cloud.speech.v2.RecognitionConfig.Builder,
-                com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
-                getConfig(), getParentForChildren(), isClean());
+        configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
+                getConfig(),
+                getParentForChildren(),
+                isClean());
         config_ = null;
       }
       return configBuilder_;
@@ -1159,13 +1059,8 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
 
     private com.google.protobuf.FieldMask configMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
-        configMaskBuilder_;
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> configMaskBuilder_;
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1183,15 +1078,12 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return Whether the configMask field is set. */ public boolean hasConfigMask() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1209,21 +1101,16 @@ public boolean hasConfigMask() {
      * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return The configMask. */ public com.google.protobuf.FieldMask getConfigMask() { if (configMaskBuilder_ == null) { - return configMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : configMask_; + return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } else { return configMaskBuilder_.getMessage(); } } /** - * - * *
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1256,8 +1143,6 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1276,7 +1161,8 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask config_mask = 5;
      */
-    public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setConfigMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (configMaskBuilder_ == null) {
         configMask_ = builderForValue.build();
       } else {
@@ -1287,8 +1173,6 @@ public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1309,9 +1193,9 @@ public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       if (configMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && configMask_ != null
-            && configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          configMask_ != null &&
+          configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getConfigMaskBuilder().mergeFrom(value);
         } else {
           configMask_ = value;
@@ -1324,8 +1208,6 @@ public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1355,8 +1237,6 @@ public Builder clearConfigMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1381,8 +1261,6 @@ public com.google.protobuf.FieldMask.Builder getConfigMaskBuilder() {
       return getConfigMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1405,14 +1283,11 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
       if (configMaskBuilder_ != null) {
         return configMaskBuilder_.getMessageOrBuilder();
       } else {
-        return configMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : configMask_;
+        return configMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : configMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1432,24 +1307,21 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
      * .google.protobuf.FieldMask config_mask = 5;
      */
     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> 
         getConfigMaskFieldBuilder() {
       if (configMaskBuilder_ == null) {
-        configMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getConfigMask(), getParentForChildren(), isClean());
+        configMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getConfigMask(),
+                getParentForChildren(),
+                isClean());
         configMask_ = null;
       }
       return configMaskBuilder_;
     }
-
     @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);
     }
 
@@ -1459,12 +1331,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeFileMetadata)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeFileMetadata)
   private static final com.google.cloud.speech.v2.BatchRecognizeFileMetadata DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeFileMetadata();
   }
@@ -1473,27 +1345,27 @@ public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchRecognizeFileMetadata parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchRecognizeFileMetadata parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1508,4 +1380,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.speech.v2.BatchRecognizeFileMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java
similarity index 87%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java
index 8e666904d05e..0769802337de 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java
@@ -1,68 +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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
-public interface BatchRecognizeFileMetadataOrBuilder
-    extends
+public interface BatchRecognizeFileMetadataOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeFileMetadata)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; - * * @return Whether the uri field is set. */ boolean hasUri(); /** - * - * *
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -75,13 +49,10 @@ public interface BatchRecognizeFileMetadataOrBuilder
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -94,13 +65,10 @@ public interface BatchRecognizeFileMetadataOrBuilder
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return The config. */ com.google.cloud.speech.v2.RecognitionConfig getConfig(); /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -117,8 +85,6 @@ public interface BatchRecognizeFileMetadataOrBuilder
   com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -136,13 +102,10 @@ public interface BatchRecognizeFileMetadataOrBuilder
    * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return Whether the configMask field is set. */ boolean hasConfigMask(); /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -160,13 +123,10 @@ public interface BatchRecognizeFileMetadataOrBuilder
    * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return The configMask. */ com.google.protobuf.FieldMask getConfigMask(); /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java
similarity index 68%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java
index 17f5d8a3fbc3..cfb53bc3ef30 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java
@@ -1,85 +1,62 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
- *
- *
  * 
  * Final results for a single file.
  * 
* * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeFileResult} */ -public final class BatchRecognizeFileResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchRecognizeFileResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeFileResult) BatchRecognizeFileResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchRecognizeFileResult.newBuilder() to construct. private BatchRecognizeFileResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchRecognizeFileResult() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchRecognizeFileResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.BatchRecognizeFileResult.class, - com.google.cloud.speech.v2.BatchRecognizeFileResult.Builder.class); + com.google.cloud.speech.v2.BatchRecognizeFileResult.class, com.google.cloud.speech.v2.BatchRecognizeFileResult.Builder.class); } public static final int URI_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** - * - * *
    * The GCS URI to which recognition results were written.
    * 
* * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -88,29 +65,29 @@ 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; } } /** - * - * *
    * The GCS URI to which recognition results were written.
    * 
* * string uri = 1; - * * @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 { @@ -121,14 +98,11 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int ERROR_FIELD_NUMBER = 2; private com.google.rpc.Status error_; /** - * - * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; - * * @return Whether the error field is set. */ @java.lang.Override @@ -136,14 +110,11 @@ public boolean hasError() { return error_ != null; } /** - * - * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; - * * @return The error. */ @java.lang.Override @@ -151,8 +122,6 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** - * - * *
    * Error if one was encountered.
    * 
@@ -165,7 +134,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +145,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(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -197,7 +166,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (error_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getError()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -207,18 +177,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.v2.BatchRecognizeFileResult)) { return super.equals(obj); } - com.google.cloud.speech.v2.BatchRecognizeFileResult other = - (com.google.cloud.speech.v2.BatchRecognizeFileResult) obj; + com.google.cloud.speech.v2.BatchRecognizeFileResult other = (com.google.cloud.speech.v2.BatchRecognizeFileResult) obj; - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError().equals(other.getError())) return false; + if (!getError() + .equals(other.getError())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -243,135 +214,129 @@ public int hashCode() { } public static com.google.cloud.speech.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.BatchRecognizeFileResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.BatchRecognizeFileResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult 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; } /** - * - * *
    * Final results for a single file.
    * 
* * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeFileResult} */ - 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.v2.BatchRecognizeFileResult) com.google.cloud.speech.v2.BatchRecognizeFileResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.BatchRecognizeFileResult.class, - com.google.cloud.speech.v2.BatchRecognizeFileResult.Builder.class); + com.google.cloud.speech.v2.BatchRecognizeFileResult.class, com.google.cloud.speech.v2.BatchRecognizeFileResult.Builder.class); } // Construct using com.google.cloud.speech.v2.BatchRecognizeFileResult.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -386,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; } @java.lang.Override @@ -407,11 +372,8 @@ public com.google.cloud.speech.v2.BatchRecognizeFileResult build() { @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeFileResult buildPartial() { - com.google.cloud.speech.v2.BatchRecognizeFileResult result = - new com.google.cloud.speech.v2.BatchRecognizeFileResult(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v2.BatchRecognizeFileResult result = new com.google.cloud.speech.v2.BatchRecognizeFileResult(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -422,7 +384,9 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeFileResult r result.uri_ = uri_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + result.error_ = errorBuilder_ == null + ? error_ + : errorBuilder_.build(); } } @@ -430,39 +394,38 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeFileResult r 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.v2.BatchRecognizeFileResult) { - return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeFileResult) other); + return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeFileResult)other); } else { super.mergeFrom(other); return this; @@ -470,8 +433,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeFileResult other) { - if (other == com.google.cloud.speech.v2.BatchRecognizeFileResult.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v2.BatchRecognizeFileResult.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; bitField0_ |= 0x00000001; @@ -506,25 +468,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getErrorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -534,25 +495,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object uri_ = ""; /** - * - * *
      * The GCS URI to which recognition results were written.
      * 
* * string uri = 1; - * * @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; @@ -561,21 +519,20 @@ public java.lang.String getUri() { } } /** - * - * *
      * The GCS URI to which recognition results were written.
      * 
* * string uri = 1; - * * @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 { @@ -583,35 +540,28 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * The GCS URI to which recognition results were written.
      * 
* * string uri = 1; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The GCS URI to which recognition results were written.
      * 
* * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -621,21 +571,17 @@ public Builder clearUri() { return this; } /** - * - * *
      * The GCS URI to which recognition results were written.
      * 
* * string uri = 1; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000001; @@ -645,31 +591,24 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { 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_; /** - * - * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; - * * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; - * * @return The error. */ public com.google.rpc.Status getError() { @@ -680,8 +619,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
      * Error if one was encountered.
      * 
@@ -702,15 +639,14 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** - * - * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; */ - public Builder setError(com.google.rpc.Status.Builder builderForValue) { + public Builder setError( + com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); } else { @@ -721,8 +657,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * Error if one was encountered.
      * 
@@ -731,9 +665,9 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && error_ != null - && error_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + error_ != null && + error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; @@ -746,8 +680,6 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** - * - * *
      * Error if one was encountered.
      * 
@@ -765,8 +697,6 @@ public Builder clearError() { return this; } /** - * - * *
      * Error if one was encountered.
      * 
@@ -779,8 +709,6 @@ public com.google.rpc.Status.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** - * - * *
      * Error if one was encountered.
      * 
@@ -791,12 +719,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_; } } /** - * - * *
      * Error if one was encountered.
      * 
@@ -804,21 +731,21 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 2; */ 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_; } - @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); } @@ -828,12 +755,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeFileResult) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeFileResult) private static final com.google.cloud.speech.v2.BatchRecognizeFileResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeFileResult(); } @@ -842,27 +769,27 @@ public static com.google.cloud.speech.v2.BatchRecognizeFileResult getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRecognizeFileResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchRecognizeFileResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -877,4 +804,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.BatchRecognizeFileResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java similarity index 60% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java index 5ec2c3bdb67d..75094b397db2 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java @@ -1,80 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface BatchRecognizeFileResultOrBuilder - extends +public interface BatchRecognizeFileResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeFileResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The GCS URI to which recognition results were written.
    * 
* * string uri = 1; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * The GCS URI to which recognition results were written.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
    * Error if one was encountered.
    * 
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java similarity index 51% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java index cfac2e6b4760..d8db2e8bd21f 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Operation metadata for
  * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize].
@@ -28,177 +11,144 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeMetadata}
  */
-public final class BatchRecognizeMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchRecognizeMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeMetadata)
     BatchRecognizeMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchRecognizeMetadata.newBuilder() to construct.
   private BatchRecognizeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchRecognizeMetadata() {}
+  private BatchRecognizeMetadata() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchRecognizeMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 1:
         return internalGetTranscriptionMetadata();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.BatchRecognizeMetadata.class,
-            com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder.class);
+            com.google.cloud.speech.v2.BatchRecognizeMetadata.class, com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder.class);
   }
 
   public static final int TRANSCRIPTION_METADATA_FIELD_NUMBER = 1;
-
   private static final class TranscriptionMetadataDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
-        defaultEntry =
+        java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> defaultEntry =
             com.google.protobuf.MapEntry
-                .
-                    newDefaultInstance(
-                        com.google.cloud.speech.v2.CloudSpeechProto
-                            .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_descriptor,
-                        com.google.protobuf.WireFormat.FieldType.STRING,
-                        "",
-                        com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                        com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata
-                            .getDefaultInstance());
+            .newDefaultInstance(
+                com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.getDefaultInstance());
   }
-
   @SuppressWarnings("serial")
   private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
-      transcriptionMetadata_;
-
-  private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
-      internalGetTranscriptionMetadata() {
+      java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcriptionMetadata_;
+  private com.google.protobuf.MapField
+  internalGetTranscriptionMetadata() {
     if (transcriptionMetadata_ == null) {
       return com.google.protobuf.MapField.emptyMapField(
           TranscriptionMetadataDefaultEntryHolder.defaultEntry);
     }
     return transcriptionMetadata_;
   }
-
   public int getTranscriptionMetadataCount() {
     return internalGetTranscriptionMetadata().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Map from provided filename to the transcription metadata for that file.
    * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ @java.lang.Override - public boolean containsTranscriptionMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsTranscriptionMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetTranscriptionMetadata().getMap().containsKey(key); } - /** Use {@link #getTranscriptionMetadataMap()} instead. */ + /** + * Use {@link #getTranscriptionMetadataMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> - getTranscriptionMetadata() { + public java.util.Map getTranscriptionMetadata() { return getTranscriptionMetadataMap(); } /** - * - * *
    * Map from provided filename to the transcription metadata for that file.
    * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> - getTranscriptionMetadataMap() { + public java.util.Map getTranscriptionMetadataMap() { return internalGetTranscriptionMetadata().getMap(); } /** - * - * *
    * Map from provided filename to the transcription metadata for that file.
    * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ @java.lang.Override - public /* nullable */ com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata - getTranscriptionMetadataOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetTranscriptionMetadata().getMap(); + public /* nullable */ +com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTranscriptionMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Map from provided filename to the transcription metadata for that file.
    * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata - getTranscriptionMetadataOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetTranscriptionMetadata().getMap(); + public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTranscriptionMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -206,7 +156,6 @@ public boolean containsTranscriptionMetadata(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,8 +167,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetTranscriptionMetadata(), TranscriptionMetadataDefaultEntryHolder.defaultEntry, @@ -233,18 +184,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> - entry : internalGetTranscriptionMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> - transcriptionMetadata__ = - TranscriptionMetadataDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, transcriptionMetadata__); + for (java.util.Map.Entry entry + : internalGetTranscriptionMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + transcriptionMetadata__ = TranscriptionMetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, transcriptionMetadata__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -254,16 +202,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.v2.BatchRecognizeMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v2.BatchRecognizeMetadata other = - (com.google.cloud.speech.v2.BatchRecognizeMetadata) obj; + com.google.cloud.speech.v2.BatchRecognizeMetadata other = (com.google.cloud.speech.v2.BatchRecognizeMetadata) obj; - if (!internalGetTranscriptionMetadata().equals(other.internalGetTranscriptionMetadata())) - return false; + if (!internalGetTranscriptionMetadata().equals( + other.internalGetTranscriptionMetadata())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,103 +232,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.BatchRecognizeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.BatchRecognizeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata 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; } /** - * - * *
    * Operation metadata for
    * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize].
@@ -389,52 +329,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeMetadata}
    */
-  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.v2.BatchRecognizeMetadata)
       com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetTranscriptionMetadata();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetMutableTranscriptionMetadata();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.BatchRecognizeMetadata.class,
-              com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder.class);
+              com.google.cloud.speech.v2.BatchRecognizeMetadata.class, com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.BatchRecognizeMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -444,9 +387,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -465,11 +408,8 @@ public com.google.cloud.speech.v2.BatchRecognizeMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.BatchRecognizeMetadata buildPartial() {
-      com.google.cloud.speech.v2.BatchRecognizeMetadata result =
-          new com.google.cloud.speech.v2.BatchRecognizeMetadata(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.BatchRecognizeMetadata result = new com.google.cloud.speech.v2.BatchRecognizeMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -486,39 +426,38 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeMetadata res
     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.v2.BatchRecognizeMetadata) {
-        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeMetadata) other);
+        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -526,9 +465,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeMetadata other) {
-      if (other == com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance())
-        return this;
-      internalGetMutableTranscriptionMetadata().mergeFrom(other.internalGetTranscriptionMetadata());
+      if (other == com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance()) return this;
+      internalGetMutableTranscriptionMetadata().mergeFrom(
+          other.internalGetTranscriptionMetadata());
       bitField0_ |= 0x00000001;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -556,28 +495,21 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.protobuf.MapEntry<
-                        java.lang.String,
-                        com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
-                    transcriptionMetadata__ =
-                        input.readMessage(
-                            TranscriptionMetadataDefaultEntryHolder.defaultEntry.getParserForType(),
-                            extensionRegistry);
-                internalGetMutableTranscriptionMetadata()
-                    .getMutableMap()
-                    .put(transcriptionMetadata__.getKey(), transcriptionMetadata__.getValue());
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.protobuf.MapEntry
+              transcriptionMetadata__ = input.readMessage(
+                  TranscriptionMetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableTranscriptionMetadata().getMutableMap().put(
+                  transcriptionMetadata__.getKey(), transcriptionMetadata__.getValue());
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -587,15 +519,11 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
-        transcriptionMetadata_;
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
+        java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcriptionMetadata_;
+    private com.google.protobuf.MapField
         internalGetTranscriptionMetadata() {
       if (transcriptionMetadata_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
@@ -603,14 +531,11 @@ public Builder mergeFrom(
       }
       return transcriptionMetadata_;
     }
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
+    private com.google.protobuf.MapField
         internalGetMutableTranscriptionMetadata() {
       if (transcriptionMetadata_ == null) {
-        transcriptionMetadata_ =
-            com.google.protobuf.MapField.newMapField(
-                TranscriptionMetadataDefaultEntryHolder.defaultEntry);
+        transcriptionMetadata_ = com.google.protobuf.MapField.newMapField(
+            TranscriptionMetadataDefaultEntryHolder.defaultEntry);
       }
       if (!transcriptionMetadata_.isMutable()) {
         transcriptionMetadata_ = transcriptionMetadata_.copy();
@@ -619,181 +544,140 @@ public Builder mergeFrom(
       onChanged();
       return transcriptionMetadata_;
     }
-
     public int getTranscriptionMetadataCount() {
       return internalGetTranscriptionMetadata().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ @java.lang.Override - public boolean containsTranscriptionMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsTranscriptionMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetTranscriptionMetadata().getMap().containsKey(key); } - /** Use {@link #getTranscriptionMetadataMap()} instead. */ + /** + * Use {@link #getTranscriptionMetadataMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> - getTranscriptionMetadata() { + public java.util.Map getTranscriptionMetadata() { return getTranscriptionMetadataMap(); } /** - * - * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> - getTranscriptionMetadataMap() { + public java.util.Map getTranscriptionMetadataMap() { return internalGetTranscriptionMetadata().getMap(); } /** - * - * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ @java.lang.Override - public /* nullable */ com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata - getTranscriptionMetadataOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> - map = internalGetTranscriptionMetadata().getMap(); + public /* nullable */ +com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTranscriptionMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata - getTranscriptionMetadataOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> - map = internalGetTranscriptionMetadata().getMap(); + public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTranscriptionMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearTranscriptionMetadata() { bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableTranscriptionMetadata().getMutableMap().clear(); + internalGetMutableTranscriptionMetadata().getMutableMap() + .clear(); return this; } /** - * - * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ - public Builder removeTranscriptionMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableTranscriptionMetadata().getMutableMap().remove(key); + public Builder removeTranscriptionMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableTranscriptionMetadata().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> + public java.util.Map getMutableTranscriptionMetadata() { bitField0_ |= 0x00000001; return internalGetMutableTranscriptionMetadata().getMutableMap(); } /** - * - * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ public Builder putTranscriptionMetadata( java.lang.String key, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableTranscriptionMetadata().getMutableMap().put(key, value); + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableTranscriptionMetadata().getMutableMap() + .put(key, value); bitField0_ |= 0x00000001; return this; } /** - * - * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ public Builder putAllTranscriptionMetadata( - java.util.Map< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> - values) { - internalGetMutableTranscriptionMetadata().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableTranscriptionMetadata().getMutableMap() + .putAll(values); bitField0_ |= 0x00000001; 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); } @@ -803,12 +687,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeMetadata) private static final com.google.cloud.speech.v2.BatchRecognizeMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeMetadata(); } @@ -817,27 +701,27 @@ public static com.google.cloud.speech.v2.BatchRecognizeMetadata getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRecognizeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchRecognizeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -852,4 +736,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.BatchRecognizeMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java new file mode 100644 index 000000000000..3a87adc47c62 --- /dev/null +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java @@ -0,0 +1,63 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public interface BatchRecognizeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Map from provided filename to the transcription metadata for that file.
+   * 
+ * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + */ + int getTranscriptionMetadataCount(); + /** + *
+   * Map from provided filename to the transcription metadata for that file.
+   * 
+ * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + */ + boolean containsTranscriptionMetadata( + java.lang.String key); + /** + * Use {@link #getTranscriptionMetadataMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getTranscriptionMetadata(); + /** + *
+   * Map from provided filename to the transcription metadata for that file.
+   * 
+ * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + */ + java.util.Map + getTranscriptionMetadataMap(); + /** + *
+   * Map from provided filename to the transcription metadata for that file.
+   * 
+ * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + */ + /* nullable */ +com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue); + /** + *
+   * Map from provided filename to the transcription metadata for that file.
+   * 
+ * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + */ + com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrThrow( + java.lang.String key); +} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java similarity index 76% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java index 563a9d435667..865cc8a206b9 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeRequest}
  */
-public final class BatchRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchRecognizeRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeRequest)
     BatchRecognizeRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchRecognizeRequest.newBuilder() to construct.
   private BatchRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private BatchRecognizeRequest() {
     recognizer_ = "";
     files_ = java.util.Collections.emptyList();
@@ -46,45 +28,38 @@ private BatchRecognizeRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.BatchRecognizeRequest.class,
-            com.google.cloud.speech.v2.BatchRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v2.BatchRecognizeRequest.class, com.google.cloud.speech.v2.BatchRecognizeRequest.Builder.class);
   }
 
   public static final int RECOGNIZER_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object recognizer_ = "";
   /**
-   *
-   *
    * 
    * Required. Resource name of the recognizer to be used for ASR.
    * 
* - * - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The recognizer. */ @java.lang.Override @@ -93,31 +68,29 @@ public java.lang.String getRecognizer() { 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(); recognizer_ = s; return s; } } /** - * - * *
    * Required. Resource name of the recognizer to be used for ASR.
    * 
* - * - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for recognizer. */ @java.lang.Override - public com.google.protobuf.ByteString getRecognizerBytes() { + public com.google.protobuf.ByteString + getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -128,8 +101,6 @@ public com.google.protobuf.ByteString getRecognizerBytes() { public static final int CONFIG_FIELD_NUMBER = 4; private com.google.cloud.speech.v2.RecognitionConfig config_; /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -140,7 +111,6 @@ public com.google.protobuf.ByteString getRecognizerBytes() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return Whether the config field is set. */ @java.lang.Override @@ -148,8 +118,6 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -160,18 +128,13 @@ public boolean hasConfig() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfig getConfig() { - return config_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; } /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -185,16 +148,12 @@ public com.google.cloud.speech.v2.RecognitionConfig getConfig() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder() {
-    return config_ == null
-        ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
-        : config_;
+    return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
   }
 
   public static final int CONFIG_MASK_FIELD_NUMBER = 5;
   private com.google.protobuf.FieldMask configMask_;
   /**
-   *
-   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -212,7 +171,6 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return Whether the configMask field is set. */ @java.lang.Override @@ -220,8 +178,6 @@ public boolean hasConfigMask() { return configMask_ != null; } /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -239,7 +195,6 @@ public boolean hasConfigMask() {
    * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return The configMask. */ @java.lang.Override @@ -247,8 +202,6 @@ public com.google.protobuf.FieldMask getConfigMask() { return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -273,12 +226,9 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
   }
 
   public static final int FILES_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private java.util.List files_;
   /**
-   *
-   *
    * 
    * Audio files with file metadata for ASR.
    * 
@@ -290,8 +240,6 @@ public java.util.List get return files_; } /** - * - * *
    * Audio files with file metadata for ASR.
    * 
@@ -299,13 +247,11 @@ public java.util.List get * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ @java.lang.Override - public java.util.List + public java.util.List getFilesOrBuilderList() { return files_; } /** - * - * *
    * Audio files with file metadata for ASR.
    * 
@@ -317,8 +263,6 @@ public int getFilesCount() { return files_.size(); } /** - * - * *
    * Audio files with file metadata for ASR.
    * 
@@ -330,8 +274,6 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata getFiles(int index) return files_.get(index); } /** - * - * *
    * Audio files with file metadata for ASR.
    * 
@@ -345,7 +287,6 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -357,7 +298,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(recognizer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recognizer_); } @@ -383,13 +325,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, recognizer_); } for (int i = 0; i < files_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, files_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, files_.get(i)); } if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getConfig()); } if (configMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getConfigMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getConfigMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -399,24 +344,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.v2.BatchRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.BatchRecognizeRequest other = - (com.google.cloud.speech.v2.BatchRecognizeRequest) obj; + com.google.cloud.speech.v2.BatchRecognizeRequest other = (com.google.cloud.speech.v2.BatchRecognizeRequest) obj; - if (!getRecognizer().equals(other.getRecognizer())) return false; + if (!getRecognizer() + .equals(other.getRecognizer())) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } if (hasConfigMask() != other.hasConfigMask()) return false; if (hasConfigMask()) { - if (!getConfigMask().equals(other.getConfigMask())) return false; + if (!getConfigMask() + .equals(other.getConfigMask())) return false; } - if (!getFilesList().equals(other.getFilesList())) return false; + if (!getFilesList() + .equals(other.getFilesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -447,104 +395,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.BatchRecognizeRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.BatchRecognizeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.BatchRecognizeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.BatchRecognizeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest 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; } /** - * - * *
    * Request message for the
    * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize]
@@ -553,32 +494,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeRequest}
    */
-  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.v2.BatchRecognizeRequest)
       com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.BatchRecognizeRequest.class,
-              com.google.cloud.speech.v2.BatchRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v2.BatchRecognizeRequest.class, com.google.cloud.speech.v2.BatchRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.BatchRecognizeRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -605,9 +547,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -626,18 +568,14 @@ public com.google.cloud.speech.v2.BatchRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.BatchRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v2.BatchRecognizeRequest result =
-          new com.google.cloud.speech.v2.BatchRecognizeRequest(this);
+      com.google.cloud.speech.v2.BatchRecognizeRequest result = new com.google.cloud.speech.v2.BatchRecognizeRequest(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v2.BatchRecognizeRequest result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.BatchRecognizeRequest result) {
       if (filesBuilder_ == null) {
         if (((bitField0_ & 0x00000008) != 0)) {
           files_ = java.util.Collections.unmodifiableList(files_);
@@ -655,10 +593,14 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeRequest resu
         result.recognizer_ = recognizer_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
+        result.config_ = configBuilder_ == null
+            ? config_
+            : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.configMask_ = configMaskBuilder_ == null ? configMask_ : configMaskBuilder_.build();
+        result.configMask_ = configMaskBuilder_ == null
+            ? configMask_
+            : configMaskBuilder_.build();
       }
     }
 
@@ -666,39 +608,38 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeRequest resu
     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.v2.BatchRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -706,8 +647,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeRequest other) {
-      if (other == com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance()) return this;
       if (!other.getRecognizer().isEmpty()) {
         recognizer_ = other.recognizer_;
         bitField0_ |= 0x00000001;
@@ -737,10 +677,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeRequest other)
             filesBuilder_ = null;
             files_ = other.files_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            filesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getFilesFieldBuilder()
-                    : null;
+            filesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getFilesFieldBuilder() : null;
           } else {
             filesBuilder_.addAllMessages(other.files_);
           }
@@ -772,45 +711,44 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                recognizer_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 26:
-              {
-                com.google.cloud.speech.v2.BatchRecognizeFileMetadata m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.BatchRecognizeFileMetadata.parser(),
-                        extensionRegistry);
-                if (filesBuilder_ == null) {
-                  ensureFilesIsMutable();
-                  files_.add(m);
-                } else {
-                  filesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getConfigMaskFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 42
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              recognizer_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 26: {
+              com.google.cloud.speech.v2.BatchRecognizeFileMetadata m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.BatchRecognizeFileMetadata.parser(),
+                      extensionRegistry);
+              if (filesBuilder_ == null) {
+                ensureFilesIsMutable();
+                files_.add(m);
+              } else {
+                filesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getConfigMaskFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 42
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -820,27 +758,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object recognizer_ = "";
     /**
-     *
-     *
      * 
      * Required. Resource name of the recognizer to be used for ASR.
      * 
* - * - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The recognizer. */ public java.lang.String getRecognizer() { java.lang.Object ref = recognizer_; 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(); recognizer_ = s; return s; @@ -849,23 +782,20 @@ public java.lang.String getRecognizer() { } } /** - * - * *
      * Required. Resource name of the recognizer to be used for ASR.
      * 
* - * - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for recognizer. */ - public com.google.protobuf.ByteString getRecognizerBytes() { + public com.google.protobuf.ByteString + getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -873,39 +803,28 @@ public com.google.protobuf.ByteString getRecognizerBytes() { } } /** - * - * *
      * Required. Resource name of the recognizer to be used for ASR.
      * 
* - * - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizer(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecognizer( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } recognizer_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the recognizer to be used for ASR.
      * 
* - * - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearRecognizer() { @@ -915,23 +834,17 @@ public Builder clearRecognizer() { return this; } /** - * - * *
      * Required. Resource name of the recognizer to be used for ASR.
      * 
* - * - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizerBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecognizerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); recognizer_ = value; bitField0_ |= 0x00000001; @@ -941,13 +854,8 @@ public Builder setRecognizerBytes(com.google.protobuf.ByteString value) { private com.google.cloud.speech.v2.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, - com.google.cloud.speech.v2.RecognitionConfig.Builder, - com.google.cloud.speech.v2.RecognitionConfigOrBuilder> - configBuilder_; + com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> configBuilder_; /** - * - * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -958,15 +866,12 @@ public Builder setRecognizerBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -977,21 +882,16 @@ public boolean hasConfig() {
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return The config. */ public com.google.cloud.speech.v2.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1017,8 +917,6 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1030,7 +928,8 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
      *
      * .google.cloud.speech.v2.RecognitionConfig config = 4;
      */
-    public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
+    public Builder setConfig(
+        com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
       if (configBuilder_ == null) {
         config_ = builderForValue.build();
       } else {
@@ -1041,8 +940,6 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder bu
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1056,9 +953,9 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder bu
      */
     public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       if (configBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && config_ != null
-            && config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          config_ != null &&
+          config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
           getConfigBuilder().mergeFrom(value);
         } else {
           config_ = value;
@@ -1071,8 +968,6 @@ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1095,8 +990,6 @@ public Builder clearConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1114,8 +1007,6 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() {
       return getConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1131,14 +1022,11 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
       if (configBuilder_ != null) {
         return configBuilder_.getMessageOrBuilder();
       } else {
-        return config_ == null
-            ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
-            : config_;
+        return config_ == null ?
+            com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
       }
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1151,17 +1039,14 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * .google.cloud.speech.v2.RecognitionConfig config = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.RecognitionConfig,
-            com.google.cloud.speech.v2.RecognitionConfig.Builder,
-            com.google.cloud.speech.v2.RecognitionConfigOrBuilder>
+        com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> 
         getConfigFieldBuilder() {
       if (configBuilder_ == null) {
-        configBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v2.RecognitionConfig,
-                com.google.cloud.speech.v2.RecognitionConfig.Builder,
-                com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
-                getConfig(), getParentForChildren(), isClean());
+        configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
+                getConfig(),
+                getParentForChildren(),
+                isClean());
         config_ = null;
       }
       return configBuilder_;
@@ -1169,13 +1054,8 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
 
     private com.google.protobuf.FieldMask configMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
-        configMaskBuilder_;
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> configMaskBuilder_;
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1193,15 +1073,12 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return Whether the configMask field is set. */ public boolean hasConfigMask() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1219,21 +1096,16 @@ public boolean hasConfigMask() {
      * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return The configMask. */ public com.google.protobuf.FieldMask getConfigMask() { if (configMaskBuilder_ == null) { - return configMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : configMask_; + return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } else { return configMaskBuilder_.getMessage(); } } /** - * - * *
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1266,8 +1138,6 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1286,7 +1156,8 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask config_mask = 5;
      */
-    public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setConfigMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (configMaskBuilder_ == null) {
         configMask_ = builderForValue.build();
       } else {
@@ -1297,8 +1168,6 @@ public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1319,9 +1188,9 @@ public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       if (configMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && configMask_ != null
-            && configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          configMask_ != null &&
+          configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getConfigMaskBuilder().mergeFrom(value);
         } else {
           configMask_ = value;
@@ -1334,8 +1203,6 @@ public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1365,8 +1232,6 @@ public Builder clearConfigMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1391,8 +1256,6 @@ public com.google.protobuf.FieldMask.Builder getConfigMaskBuilder() {
       return getConfigMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1415,14 +1278,11 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
       if (configMaskBuilder_ != null) {
         return configMaskBuilder_.getMessageOrBuilder();
       } else {
-        return configMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : configMask_;
+        return configMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : configMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1442,42 +1302,32 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
      * .google.protobuf.FieldMask config_mask = 5;
      */
     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> 
         getConfigMaskFieldBuilder() {
       if (configMaskBuilder_ == null) {
-        configMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getConfigMask(), getParentForChildren(), isClean());
+        configMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getConfigMask(),
+                getParentForChildren(),
+                isClean());
         configMask_ = null;
       }
       return configMaskBuilder_;
     }
 
     private java.util.List files_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureFilesIsMutable() {
       if (!((bitField0_ & 0x00000008) != 0)) {
-        files_ =
-            new java.util.ArrayList(files_);
+        files_ = new java.util.ArrayList(files_);
         bitField0_ |= 0x00000008;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.BatchRecognizeFileMetadata,
-            com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder,
-            com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder>
-        filesBuilder_;
+        com.google.cloud.speech.v2.BatchRecognizeFileMetadata, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder> filesBuilder_;
 
     /**
-     *
-     *
      * 
      * Audio files with file metadata for ASR.
      * 
@@ -1492,8 +1342,6 @@ public java.util.List get } } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1508,8 +1356,6 @@ public int getFilesCount() { } } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1524,8 +1370,6 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata getFiles(int index) } } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1547,8 +1391,6 @@ public Builder setFiles( return this; } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1567,8 +1409,6 @@ public Builder setFiles( return this; } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1589,8 +1429,6 @@ public Builder addFiles(com.google.cloud.speech.v2.BatchRecognizeFileMetadata va return this; } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1612,8 +1450,6 @@ public Builder addFiles( return this; } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1632,8 +1468,6 @@ public Builder addFiles( return this; } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1652,8 +1486,6 @@ public Builder addFiles( return this; } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1661,11 +1493,11 @@ public Builder addFiles( * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ public Builder addAllFiles( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (filesBuilder_ == null) { ensureFilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, files_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, files_); onChanged(); } else { filesBuilder_.addAllMessages(values); @@ -1673,8 +1505,6 @@ public Builder addAllFiles( return this; } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1692,8 +1522,6 @@ public Builder clearFiles() { return this; } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1711,8 +1539,6 @@ public Builder removeFiles(int index) { return this; } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1724,8 +1550,6 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder getFilesBui return getFilesFieldBuilder().getBuilder(index); } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1735,22 +1559,19 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder getFilesBui public com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOrBuilder( int index) { if (filesBuilder_ == null) { - return files_.get(index); - } else { + return files_.get(index); } else { return filesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
* * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ - public java.util.List - getFilesOrBuilderList() { + public java.util.List + getFilesOrBuilderList() { if (filesBuilder_ != null) { return filesBuilder_.getMessageOrBuilderList(); } else { @@ -1758,8 +1579,6 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOr } } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1767,12 +1586,10 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOr * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder addFilesBuilder() { - return getFilesFieldBuilder() - .addBuilder(com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()); + return getFilesFieldBuilder().addBuilder( + com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()); } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1781,43 +1598,37 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder addFilesBui */ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder addFilesBuilder( int index) { - return getFilesFieldBuilder() - .addBuilder( - index, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()); + return getFilesFieldBuilder().addBuilder( + index, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()); } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
* * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ - public java.util.List - getFilesBuilderList() { + public java.util.List + getFilesBuilderList() { return getFilesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeFileMetadata, - com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder, - com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder> + com.google.cloud.speech.v2.BatchRecognizeFileMetadata, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder> getFilesFieldBuilder() { if (filesBuilder_ == null) { - filesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeFileMetadata, - com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder, - com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder>( - files_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + filesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.BatchRecognizeFileMetadata, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder>( + files_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); files_ = null; } return filesBuilder_; } - @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); } @@ -1827,12 +1638,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeRequest) private static final com.google.cloud.speech.v2.BatchRecognizeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeRequest(); } @@ -1841,27 +1652,27 @@ public static com.google.cloud.speech.v2.BatchRecognizeRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1876,4 +1687,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.BatchRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java similarity index 84% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java index 3c9471a9e2cf..e84825dedbfd 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java @@ -1,60 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface BatchRecognizeRequestOrBuilder - extends +public interface BatchRecognizeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the recognizer to be used for ASR.
    * 
* - * - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The recognizer. */ java.lang.String getRecognizer(); /** - * - * *
    * Required. Resource name of the recognizer to be used for ASR.
    * 
* - * - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for recognizer. */ - com.google.protobuf.ByteString getRecognizerBytes(); + com.google.protobuf.ByteString + getRecognizerBytes(); /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -65,13 +38,10 @@ public interface BatchRecognizeRequestOrBuilder
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -82,13 +52,10 @@ public interface BatchRecognizeRequestOrBuilder
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return The config. */ com.google.cloud.speech.v2.RecognitionConfig getConfig(); /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -103,8 +70,6 @@ public interface BatchRecognizeRequestOrBuilder
   com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -122,13 +87,10 @@ public interface BatchRecognizeRequestOrBuilder
    * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return Whether the configMask field is set. */ boolean hasConfigMask(); /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -146,13 +108,10 @@ public interface BatchRecognizeRequestOrBuilder
    * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return The configMask. */ com.google.protobuf.FieldMask getConfigMask(); /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -174,18 +133,15 @@ public interface BatchRecognizeRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * Audio files with file metadata for ASR.
    * 
* * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ - java.util.List getFilesList(); + java.util.List + getFilesList(); /** - * - * *
    * Audio files with file metadata for ASR.
    * 
@@ -194,8 +150,6 @@ public interface BatchRecognizeRequestOrBuilder */ com.google.cloud.speech.v2.BatchRecognizeFileMetadata getFiles(int index); /** - * - * *
    * Audio files with file metadata for ASR.
    * 
@@ -204,24 +158,21 @@ public interface BatchRecognizeRequestOrBuilder */ int getFilesCount(); /** - * - * *
    * Audio files with file metadata for ASR.
    * 
* * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ - java.util.List + java.util.List getFilesOrBuilderList(); /** - * - * *
    * Audio files with file metadata for ASR.
    * 
* * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ - com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOrBuilder(int index); + com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOrBuilder( + int index); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java similarity index 59% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java index 21d2081a3b6f..75fe5f37828b 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Response message for
  * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize] that is
@@ -29,92 +12,82 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeResponse}
  */
-public final class BatchRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchRecognizeResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeResponse)
     BatchRecognizeResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchRecognizeResponse.newBuilder() to construct.
   private BatchRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchRecognizeResponse() {}
+  private BatchRecognizeResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 1:
         return internalGetResults();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.BatchRecognizeResponse.class,
-            com.google.cloud.speech.v2.BatchRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v2.BatchRecognizeResponse.class, com.google.cloud.speech.v2.BatchRecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 1;
-
   private static final class ResultsDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
-        defaultEntry =
+        java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult> defaultEntry =
             com.google.protobuf.MapEntry
-                .
-                    newDefaultInstance(
-                        com.google.cloud.speech.v2.CloudSpeechProto
-                            .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_descriptor,
-                        com.google.protobuf.WireFormat.FieldType.STRING,
-                        "",
-                        com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                        com.google.cloud.speech.v2.BatchRecognizeFileResult.getDefaultInstance());
+            .newDefaultInstance(
+                com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                com.google.cloud.speech.v2.BatchRecognizeFileResult.getDefaultInstance());
   }
-
   @SuppressWarnings("serial")
   private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
-      results_;
-
-  private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
-      internalGetResults() {
+      java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult> results_;
+  private com.google.protobuf.MapField
+  internalGetResults() {
     if (results_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(ResultsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          ResultsDefaultEntryHolder.defaultEntry);
     }
     return results_;
   }
-
   public int getResultsCount() {
     return internalGetResults().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Map from filename to the final result for that file.
    * 
@@ -122,22 +95,20 @@ public int getResultsCount() { * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public boolean containsResults(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsResults( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetResults().getMap().containsKey(key); } - /** Use {@link #getResultsMap()} instead. */ + /** + * Use {@link #getResultsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getResults() { + public java.util.Map getResults() { return getResultsMap(); } /** - * - * *
    * Map from filename to the final result for that file.
    * 
@@ -145,13 +116,10 @@ public boolean containsResults(java.lang.String key) { * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public java.util.Map - getResultsMap() { + public java.util.Map getResultsMap() { return internalGetResults().getMap(); } /** - * - * *
    * Map from filename to the final result for that file.
    * 
@@ -159,20 +127,17 @@ public boolean containsResults(java.lang.String key) { * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public /* nullable */ com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( + public /* nullable */ +com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResults().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Map from filename to the final result for that file.
    * 
@@ -182,9 +147,7 @@ public boolean containsResults(java.lang.String key) { @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResults().getMap(); if (!map.containsKey(key)) { @@ -194,7 +157,6 @@ public com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,9 +168,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetResults(), ResultsDefaultEntryHolder.defaultEntry, 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetResults(), + ResultsDefaultEntryHolder.defaultEntry, + 1); getUnknownFields().writeTo(output); } @@ -218,17 +185,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry - entry : internalGetResults().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult> - results__ = - ResultsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, results__); + for (java.util.Map.Entry entry + : internalGetResults().getMap().entrySet()) { + com.google.protobuf.MapEntry + results__ = ResultsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, results__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -238,15 +203,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.v2.BatchRecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.BatchRecognizeResponse other = - (com.google.cloud.speech.v2.BatchRecognizeResponse) obj; + com.google.cloud.speech.v2.BatchRecognizeResponse other = (com.google.cloud.speech.v2.BatchRecognizeResponse) obj; - if (!internalGetResults().equals(other.internalGetResults())) return false; + if (!internalGetResults().equals( + other.internalGetResults())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,103 +233,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.BatchRecognizeResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.BatchRecognizeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse 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; } /** - * - * *
    * Response message for
    * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize] that is
@@ -373,52 +331,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeResponse}
    */
-  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.v2.BatchRecognizeResponse)
       com.google.cloud.speech.v2.BatchRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetResults();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetMutableResults();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.BatchRecognizeResponse.class,
-              com.google.cloud.speech.v2.BatchRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v2.BatchRecognizeResponse.class, com.google.cloud.speech.v2.BatchRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.BatchRecognizeResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -428,9 +389,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
@@ -449,11 +410,8 @@ public com.google.cloud.speech.v2.BatchRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.BatchRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v2.BatchRecognizeResponse result =
-          new com.google.cloud.speech.v2.BatchRecognizeResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.BatchRecognizeResponse result = new com.google.cloud.speech.v2.BatchRecognizeResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -470,39 +428,38 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeResponse res
     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.v2.BatchRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeResponse) other);
+        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -510,9 +467,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeResponse other) {
-      if (other == com.google.cloud.speech.v2.BatchRecognizeResponse.getDefaultInstance())
-        return this;
-      internalGetMutableResults().mergeFrom(other.internalGetResults());
+      if (other == com.google.cloud.speech.v2.BatchRecognizeResponse.getDefaultInstance()) return this;
+      internalGetMutableResults().mergeFrom(
+          other.internalGetResults());
       bitField0_ |= 0x00000001;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -540,27 +497,21 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.protobuf.MapEntry<
-                        java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
-                    results__ =
-                        input.readMessage(
-                            ResultsDefaultEntryHolder.defaultEntry.getParserForType(),
-                            extensionRegistry);
-                internalGetMutableResults()
-                    .getMutableMap()
-                    .put(results__.getKey(), results__.getValue());
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.protobuf.MapEntry
+              results__ = input.readMessage(
+                  ResultsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableResults().getMutableMap().put(
+                  results__.getKey(), results__.getValue());
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -570,27 +521,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
-        results_;
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
+        java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult> results_;
+    private com.google.protobuf.MapField
         internalGetResults() {
       if (results_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(ResultsDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(
+            ResultsDefaultEntryHolder.defaultEntry);
       }
       return results_;
     }
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
+    private com.google.protobuf.MapField
         internalGetMutableResults() {
       if (results_ == null) {
-        results_ = com.google.protobuf.MapField.newMapField(ResultsDefaultEntryHolder.defaultEntry);
+        results_ = com.google.protobuf.MapField.newMapField(
+            ResultsDefaultEntryHolder.defaultEntry);
       }
       if (!results_.isMutable()) {
         results_ = results_.copy();
@@ -599,13 +546,10 @@ public Builder mergeFrom(
       onChanged();
       return results_;
     }
-
     public int getResultsCount() {
       return internalGetResults().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Map from filename to the final result for that file.
      * 
@@ -613,22 +557,20 @@ public int getResultsCount() { * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public boolean containsResults(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsResults( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetResults().getMap().containsKey(key); } - /** Use {@link #getResultsMap()} instead. */ + /** + * Use {@link #getResultsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getResults() { + public java.util.Map getResults() { return getResultsMap(); } /** - * - * *
      * Map from filename to the final result for that file.
      * 
@@ -636,13 +578,10 @@ public boolean containsResults(java.lang.String key) { * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public java.util.Map - getResultsMap() { + public java.util.Map getResultsMap() { return internalGetResults().getMap(); } /** - * - * *
      * Map from filename to the final result for that file.
      * 
@@ -650,20 +589,17 @@ public boolean containsResults(java.lang.String key) { * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public /* nullable */ com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( + public /* nullable */ +com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResults().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Map from filename to the final result for that file.
      * 
@@ -673,9 +609,7 @@ public boolean containsResults(java.lang.String key) { @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResults().getMap(); if (!map.containsKey(key)) { @@ -683,29 +617,29 @@ public com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow( } return map.get(key); } - public Builder clearResults() { bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableResults().getMutableMap().clear(); + internalGetMutableResults().getMutableMap() + .clear(); return this; } /** - * - * *
      * Map from filename to the final result for that file.
      * 
* * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ - public Builder removeResults(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableResults().getMutableMap().remove(key); + public Builder removeResults( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableResults().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map getMutableResults() { @@ -713,8 +647,6 @@ public Builder removeResults(java.lang.String key) { return internalGetMutableResults().getMutableMap(); } /** - * - * *
      * Map from filename to the final result for that file.
      * 
@@ -722,20 +654,16 @@ public Builder removeResults(java.lang.String key) { * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ public Builder putResults( - java.lang.String key, com.google.cloud.speech.v2.BatchRecognizeFileResult value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableResults().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.speech.v2.BatchRecognizeFileResult value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableResults().getMutableMap() + .put(key, value); bitField0_ |= 0x00000001; return this; } /** - * - * *
      * Map from filename to the final result for that file.
      * 
@@ -743,15 +671,15 @@ public Builder putResults( * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ public Builder putAllResults( - java.util.Map - values) { - internalGetMutableResults().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableResults().getMutableMap() + .putAll(values); bitField0_ |= 0x00000001; 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); } @@ -761,12 +689,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeResponse) private static final com.google.cloud.speech.v2.BatchRecognizeResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeResponse(); } @@ -775,27 +703,27 @@ public static com.google.cloud.speech.v2.BatchRecognizeResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchRecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -810,4 +738,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.BatchRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java similarity index 60% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java index 26c78951aef5..941fa7e878f7 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface BatchRecognizeResponseOrBuilder - extends +public interface BatchRecognizeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Map from filename to the final result for that file.
    * 
@@ -34,21 +16,21 @@ public interface BatchRecognizeResponseOrBuilder */ int getResultsCount(); /** - * - * *
    * Map from filename to the final result for that file.
    * 
* * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ - boolean containsResults(java.lang.String key); - /** Use {@link #getResultsMap()} instead. */ + boolean containsResults( + java.lang.String key); + /** + * Use {@link #getResultsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getResults(); + java.util.Map + getResults(); /** - * - * *
    * Map from filename to the final result for that file.
    * 
@@ -56,10 +38,8 @@ public interface BatchRecognizeResponseOrBuilder * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ java.util.Map - getResultsMap(); + getResultsMap(); /** - * - * *
    * Map from filename to the final result for that file.
    * 
@@ -67,18 +47,17 @@ public interface BatchRecognizeResponseOrBuilder * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ /* nullable */ - com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( +com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue); +com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue); /** - * - * *
    * Map from filename to the final result for that file.
    * 
* * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ - com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow(java.lang.String key); + com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow( + java.lang.String key); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java index b16bc466813f..7d0584cd7927 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Metadata about transcription for a single file (for example, progress
  * percent).
@@ -28,59 +11,52 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata}
  */
-public final class BatchRecognizeTranscriptionMetadata
-    extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchRecognizeTranscriptionMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata)
     BatchRecognizeTranscriptionMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchRecognizeTranscriptionMetadata.newBuilder() to construct.
-  private BatchRecognizeTranscriptionMetadata(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private BatchRecognizeTranscriptionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private BatchRecognizeTranscriptionMetadata() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchRecognizeTranscriptionMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.class,
-            com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.Builder.class);
+            com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.class, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.Builder.class);
   }
 
   public static final int PROGRESS_PERCENT_FIELD_NUMBER = 1;
   private int progressPercent_ = 0;
   /**
-   *
-   *
    * 
    * How much of the file has been transcribed so far.
    * 
* * int32 progress_percent = 1; - * * @return The progressPercent. */ @java.lang.Override @@ -91,14 +67,11 @@ public int getProgressPercent() { public static final int ERROR_FIELD_NUMBER = 2; private com.google.rpc.Status error_; /** - * - * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; - * * @return Whether the error field is set. */ @java.lang.Override @@ -106,14 +79,11 @@ public boolean hasError() { return error_ != null; } /** - * - * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; - * * @return The error. */ @java.lang.Override @@ -121,8 +91,6 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** - * - * *
    * Error if one was encountered.
    * 
@@ -135,18 +103,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } public static final int URI_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** - * - * *
    * The GCS URI to which recognition results will be written.
    * 
* * string uri = 3; - * * @return The uri. */ @java.lang.Override @@ -155,29 +119,29 @@ 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; } } /** - * - * *
    * The GCS URI to which recognition results will be written.
    * 
* * string uri = 3; - * * @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 { @@ -186,7 +150,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,7 +161,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_); } @@ -218,10 +182,12 @@ 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 (error_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getError()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); @@ -234,20 +200,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.v2.BatchRecognizeTranscriptionMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata other = - (com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) obj; + com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata other = (com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) obj; - if (getProgressPercent() != other.getProgressPercent()) return false; + if (getProgressPercent() + != other.getProgressPercent()) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError().equals(other.getError())) return false; + if (!getError() + .equals(other.getError())) return false; } - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -273,104 +241,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata prototype) { + public static Builder newBuilder(com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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; } /** - * - * *
    * Metadata about transcription for a single file (for example, progress
    * percent).
@@ -378,32 +338,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata}
    */
-  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.v2.BatchRecognizeTranscriptionMetadata)
       com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.class,
-              com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.Builder.class);
+              com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.class, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -419,14 +380,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata
-        getDefaultInstanceForType() {
+    public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getDefaultInstanceForType() {
       return com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.getDefaultInstance();
     }
 
@@ -441,23 +401,21 @@ public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata buildPartial() {
-      com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata result =
-          new com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata result = new com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata result) {
+    private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.progressPercent_ = progressPercent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
+        result.error_ = errorBuilder_ == null
+            ? error_
+            : errorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.uri_ = uri_;
@@ -468,39 +426,38 @@ private void buildPartial0(
     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.v2.BatchRecognizeTranscriptionMetadata) {
-        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) other);
+        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -508,9 +465,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata other) {
-      if (other
-          == com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.getDefaultInstance()) return this;
       if (other.getProgressPercent() != 0) {
         setProgressPercent(other.getProgressPercent());
       }
@@ -548,31 +503,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                progressPercent_ = input.readInt32();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                uri_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              progressPercent_ = input.readInt32();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              input.readMessage(
+                  getErrorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              uri_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -582,19 +535,15 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private int progressPercent_;
+    private int progressPercent_ ;
     /**
-     *
-     *
      * 
      * How much of the file has been transcribed so far.
      * 
* * int32 progress_percent = 1; - * * @return The progressPercent. */ @java.lang.Override @@ -602,33 +551,27 @@ public int getProgressPercent() { return progressPercent_; } /** - * - * *
      * How much of the file has been transcribed so far.
      * 
* * int32 progress_percent = 1; - * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * How much of the file has been transcribed so far.
      * 
* * int32 progress_percent = 1; - * * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -640,31 +583,24 @@ public Builder clearProgressPercent() { 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_; /** - * - * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; - * * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; - * * @return The error. */ public com.google.rpc.Status getError() { @@ -675,8 +611,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
      * Error if one was encountered.
      * 
@@ -697,15 +631,14 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** - * - * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; */ - public Builder setError(com.google.rpc.Status.Builder builderForValue) { + public Builder setError( + com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); } else { @@ -716,8 +649,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * Error if one was encountered.
      * 
@@ -726,9 +657,9 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && error_ != null - && error_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + error_ != null && + error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; @@ -741,8 +672,6 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** - * - * *
      * Error if one was encountered.
      * 
@@ -760,8 +689,6 @@ public Builder clearError() { return this; } /** - * - * *
      * Error if one was encountered.
      * 
@@ -774,8 +701,6 @@ public com.google.rpc.Status.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** - * - * *
      * Error if one was encountered.
      * 
@@ -786,12 +711,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_; } } /** - * - * *
      * Error if one was encountered.
      * 
@@ -799,14 +723,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 2; */ 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_; @@ -814,20 +738,18 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { private java.lang.Object uri_ = ""; /** - * - * *
      * The GCS URI to which recognition results will be written.
      * 
* * string uri = 3; - * * @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; @@ -836,21 +758,20 @@ public java.lang.String getUri() { } } /** - * - * *
      * The GCS URI to which recognition results will be written.
      * 
* * string uri = 3; - * * @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 { @@ -858,35 +779,28 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * The GCS URI to which recognition results will be written.
      * 
* * string uri = 3; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The GCS URI to which recognition results will be written.
      * 
* * string uri = 3; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -896,30 +810,26 @@ public Builder clearUri() { return this; } /** - * - * *
      * The GCS URI to which recognition results will be written.
      * 
* * string uri = 3; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000004; 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); } @@ -929,43 +839,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) - private static final com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata(); } - public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata - getDefaultInstance() { + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRecognizeTranscriptionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchRecognizeTranscriptionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -977,8 +885,9 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata - getDefaultInstanceForType() { + public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java similarity index 63% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java index f2763466c9d6..3398c30c398a 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java @@ -1,68 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface BatchRecognizeTranscriptionMetadataOrBuilder - extends +public interface BatchRecognizeTranscriptionMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * How much of the file has been transcribed so far.
    * 
* * int32 progress_percent = 1; - * * @return The progressPercent. */ int getProgressPercent(); /** - * - * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
    * Error if one was encountered.
    * 
@@ -72,27 +45,22 @@ public interface BatchRecognizeTranscriptionMetadataOrBuilder com.google.rpc.StatusOrBuilder getErrorOrBuilder(); /** - * - * *
    * The GCS URI to which recognition results will be written.
    * 
* * string uri = 3; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * The GCS URI to which recognition results will be written.
    * 
* * string uri = 3; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java new file mode 100644 index 000000000000..9267d4ec1726 --- /dev/null +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java @@ -0,0 +1,1186 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public final class CloudSpeechProto { + private CloudSpeechProto() {} + 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_v2_CreateRecognizerRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_Recognizer_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_WordInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_Config_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_Config_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_CustomClass_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_PhraseSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_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/v2/cloud_speech.pr" + + "oto\022\026google.cloud.speech.v2\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\032#google/longrunni" + + "ng/operations.proto\032\036google/protobuf/dur" + + "ation.proto\032 google/protobuf/field_mask." + + "proto\032\037google/protobuf/timestamp.proto\032\027" + + "google/rpc/status.proto\"\276\001\n\027CreateRecogn" + + "izerRequest\022;\n\nrecognizer\030\001 \001(\0132\".google" + + ".cloud.speech.v2.RecognizerB\003\340A\002\022\025\n\rvali" + + "date_only\030\002 \001(\010\022\025\n\rrecognizer_id\030\003 \001(\t\0228" + + "\n\006parent\030\004 \001(\tB(\340A\002\372A\"\022 speech.googleapi" + + "s.com/Recognizer\"\343\014\n\021OperationMetadata\022/" + + "\n\013create_time\030\001 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022/\n\013update_time\030\002 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022\020\n\010resource\030\003 \001(\t\022\016\n\006me" + + "thod\030\004 \001(\t\022<\n\014kms_key_name\030\006 \001(\tB&\372A#\n!c" + + "loudkms.googleapis.com/CryptoKey\022K\n\024kms_" + + "key_version_name\030\007 \001(\tB-\372A*\n(cloudkms.go" + + "ogleapis.com/CryptoKeyVersion\022P\n\027batch_r" + + "ecognize_request\030\010 \001(\0132-.google.cloud.sp" + + "eech.v2.BatchRecognizeRequestH\000\022T\n\031creat" + + "e_recognizer_request\030\t \001(\0132/.google.clou" + + "d.speech.v2.CreateRecognizerRequestH\000\022T\n" + + "\031update_recognizer_request\030\n \001(\0132/.googl" + + "e.cloud.speech.v2.UpdateRecognizerReques" + + "tH\000\022T\n\031delete_recognizer_request\030\013 \001(\0132/" + + ".google.cloud.speech.v2.DeleteRecognizer" + + "RequestH\000\022X\n\033undelete_recognizer_request" + + "\030\014 \001(\01321.google.cloud.speech.v2.Undelete" + + "RecognizerRequestH\000\022W\n\033create_custom_cla" + + "ss_request\030\r \001(\01320.google.cloud.speech.v" + + "2.CreateCustomClassRequestH\000\022W\n\033update_c" + + "ustom_class_request\030\016 \001(\01320.google.cloud" + + ".speech.v2.UpdateCustomClassRequestH\000\022W\n" + + "\033delete_custom_class_request\030\017 \001(\01320.goo" + + "gle.cloud.speech.v2.DeleteCustomClassReq" + + "uestH\000\022[\n\035undelete_custom_class_request\030" + + "\020 \001(\01322.google.cloud.speech.v2.UndeleteC" + + "ustomClassRequestH\000\022S\n\031create_phrase_set" + + "_request\030\021 \001(\0132..google.cloud.speech.v2." + + "CreatePhraseSetRequestH\000\022S\n\031update_phras" + + "e_set_request\030\022 \001(\0132..google.cloud.speec" + + "h.v2.UpdatePhraseSetRequestH\000\022S\n\031delete_" + + "phrase_set_request\030\023 \001(\0132..google.cloud." + + "speech.v2.DeletePhraseSetRequestH\000\022W\n\033un" + + "delete_phrase_set_request\030\024 \001(\01320.google" + + ".cloud.speech.v2.UndeletePhraseSetReques" + + "tH\000\022L\n\025update_config_request\030\025 \001(\0132+.goo" + + "gle.cloud.speech.v2.UpdateConfigRequestH" + + "\000\022\030\n\020progress_percent\030\026 \001(\005\022R\n\030batch_rec" + + "ognize_metadata\030\027 \001(\0132..google.cloud.spe" + + "ech.v2.BatchRecognizeMetadataH\001B\t\n\007reque" + + "stB\n\n\010metadata\"\220\001\n\026ListRecognizersReques" + + "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goo" + + "gleapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(" + + "\010\"k\n\027ListRecognizersResponse\0227\n\013recogniz" + + "ers\030\001 \003(\0132\".google.cloud.speech.v2.Recog" + + "nizer\022\027\n\017next_page_token\030\002 \001(\t\"N\n\024GetRec" + + "ognizerRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n sp" + + "eech.googleapis.com/Recognizer\"\236\001\n\027Updat" + + "eRecognizerRequest\022;\n\nrecognizer\030\001 \001(\0132\"" + + ".google.cloud.speech.v2.RecognizerB\003\340A\002\022" + + "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + + "ieldMask\022\025\n\rvalidate_only\030\004 \001(\010\"\215\001\n\027Dele" + + "teRecognizerRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A" + + "\"\n speech.googleapis.com/Recognizer\022\025\n\rv" + + "alidate_only\030\002 \001(\010\022\025\n\rallow_missing\030\004 \001(" + + "\010\022\014\n\004etag\030\003 \001(\t\"x\n\031UndeleteRecognizerReq" + + "uest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n speech.googl" + + "eapis.com/Recognizer\022\025\n\rvalidate_only\030\003 " + + "\001(\010\022\014\n\004etag\030\004 \001(\t\"\276\007\n\nRecognizer\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\024\n\014display" + + "_name\030\003 \001(\t\022\022\n\005model\030\004 \001(\tB\003\340A\002\022\033\n\016langu" + + "age_codes\030\021 \003(\tB\003\340A\002\022M\n\032default_recognit" + + "ion_config\030\006 \001(\0132).google.cloud.speech.v" + + "2.RecognitionConfig\022H\n\013annotations\030\007 \003(\013" + + "23.google.cloud.speech.v2.Recognizer.Ann" + + "otationsEntry\022<\n\005state\030\010 \001(\0162(.google.cl" + + "oud.speech.v2.Recognizer.StateB\003\340A\003\0224\n\013c" + + "reate_time\030\t \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\013" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013expire_time\030\016 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\022\021\n\004etag\030\014 \001(\tB\003\340A\003\022\030\n\013reconc" + + "iling\030\r \001(\010B\003\340A\003\022?\n\014kms_key_name\030\017 \001(\tB)" + + "\340A\003\372A#\n!cloudkms.googleapis.com/CryptoKe" + + "y\022N\n\024kms_key_version_name\030\020 \001(\tB0\340A\003\372A*\n" + + "(cloudkms.googleapis.com/CryptoKeyVersio" + + "n\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"7\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\n\n\006ACTIVE\020\002\022\013\n\007DELETED\020\004:j\352Ag\n spe" + + "ech.googleapis.com/Recognizer\022@projects/" + + "{project}/locations/{location}/recognize" + + "rs/{recognizer}R\001\001\"\032\n\030AutoDetectDecoding" + + "Config\"\371\001\n\026ExplicitDecodingConfig\022S\n\010enc" + + "oding\030\001 \001(\0162<.google.cloud.speech.v2.Exp" + + "licitDecodingConfig.AudioEncodingB\003\340A\002\022\031" + + "\n\021sample_rate_hertz\030\002 \001(\005\022\033\n\023audio_chann" + + "el_count\030\003 \001(\005\"R\n\rAudioEncoding\022\036\n\032AUDIO" + + "_ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\t\n" + + "\005MULAW\020\002\022\010\n\004ALAW\020\003\"Z\n\030SpeakerDiarization" + + "Config\022\036\n\021min_speaker_count\030\002 \001(\005B\003\340A\002\022\036" + + "\n\021max_speaker_count\030\003 \001(\005B\003\340A\002\"\370\003\n\023Recog" + + "nitionFeatures\022\030\n\020profanity_filter\030\001 \001(\010" + + "\022 \n\030enable_word_time_offsets\030\002 \001(\010\022\036\n\026en" + + "able_word_confidence\030\003 \001(\010\022$\n\034enable_aut" + + "omatic_punctuation\030\004 \001(\010\022!\n\031enable_spoke" + + "n_punctuation\030\016 \001(\010\022\034\n\024enable_spoken_emo" + + "jis\030\017 \001(\010\022X\n\022multi_channel_mode\030\021 \001(\0162<." + + "google.cloud.speech.v2.RecognitionFeatur" + + "es.MultiChannelMode\022L\n\022diarization_confi" + + "g\030\t \001(\01320.google.cloud.speech.v2.Speaker" + + "DiarizationConfig\022\030\n\020max_alternatives\030\020 " + + "\001(\005\"\\\n\020MultiChannelMode\022\"\n\036MULTI_CHANNEL" + + "_MODE_UNSPECIFIED\020\000\022$\n SEPARATE_RECOGNIT" + + "ION_PER_CHANNEL\020\001\"\277\002\n\020SpeechAdaptation\022Q" + + "\n\013phrase_sets\030\001 \003(\0132<.google.cloud.speec" + + "h.v2.SpeechAdaptation.AdaptationPhraseSe" + + "t\022;\n\016custom_classes\030\002 \003(\0132#.google.cloud" + + ".speech.v2.CustomClass\032\232\001\n\023AdaptationPhr" + + "aseSet\022:\n\nphrase_set\030\001 \001(\tB$\372A!\n\037speech." + + "googleapis.com/PhraseSetH\000\022>\n\021inline_phr" + + "ase_set\030\002 \001(\0132!.google.cloud.speech.v2.P" + + "hraseSetH\000B\007\n\005value\"\311\002\n\021RecognitionConfi" + + "g\022P\n\024auto_decoding_config\030\007 \001(\01320.google" + + ".cloud.speech.v2.AutoDetectDecodingConfi" + + "gH\000\022R\n\030explicit_decoding_config\030\010 \001(\0132.." + + "google.cloud.speech.v2.ExplicitDecodingC" + + "onfigH\000\022=\n\010features\030\002 \001(\0132+.google.cloud" + + ".speech.v2.RecognitionFeatures\022<\n\nadapta" + + "tion\030\006 \001(\0132(.google.cloud.speech.v2.Spee" + + "chAdaptationB\021\n\017decoding_config\"\356\001\n\020Reco" + + "gnizeRequest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A\"" + + "\n speech.googleapis.com/Recognizer\0229\n\006co" + + "nfig\030\001 \001(\0132).google.cloud.speech.v2.Reco" + + "gnitionConfig\022/\n\013config_mask\030\010 \001(\0132\032.goo" + + "gle.protobuf.FieldMask\022\021\n\007content\030\005 \001(\014H" + + "\000\022\r\n\003uri\030\006 \001(\tH\000B\016\n\014audio_source\"W\n\033Reco" + + "gnitionResponseMetadata\0228\n\025total_billed_" + + "duration\030\006 \001(\0132\031.google.protobuf.Duratio" + + "n\"w\n\034SpeechRecognitionAlternative\022\022\n\ntra" + + "nscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022/\n\005wor" + + "ds\030\003 \003(\0132 .google.cloud.speech.v2.WordIn" + + "fo\"\243\001\n\010WordInfo\022/\n\014start_offset\030\001 \001(\0132\031." + + "google.protobuf.Duration\022-\n\nend_offset\030\002" + + " \001(\0132\031.google.protobuf.Duration\022\014\n\004word\030" + + "\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002\022\025\n\rspeaker_lab" + + "el\030\006 \001(\t\"\314\001\n\027SpeechRecognitionResult\022J\n\014" + + "alternatives\030\001 \003(\01324.google.cloud.speech" + + ".v2.SpeechRecognitionAlternative\022\023\n\013chan" + + "nel_tag\030\002 \001(\005\0224\n\021result_end_offset\030\004 \001(\013" + + "2\031.google.protobuf.Duration\022\032\n\rlanguage_" + + "code\030\005 \001(\tB\003\340A\003\"\234\001\n\021RecognizeResponse\022@\n" + + "\007results\030\003 \003(\0132/.google.cloud.speech.v2." + + "SpeechRecognitionResult\022E\n\010metadata\030\002 \001(" + + "\01323.google.cloud.speech.v2.RecognitionRe" + + "sponseMetadata\"\321\002\n\034StreamingRecognitionF" + + "eatures\022$\n\034enable_voice_activity_events\030" + + "\001 \001(\010\022\027\n\017interim_results\030\002 \001(\010\022i\n\026voice_" + + "activity_timeout\030\003 \001(\0132I.google.cloud.sp" + + "eech.v2.StreamingRecognitionFeatures.Voi" + + "ceActivityTimeout\032\206\001\n\024VoiceActivityTimeo" + + "ut\0227\n\024speech_start_timeout\030\001 \001(\0132\031.googl" + + "e.protobuf.Duration\0225\n\022speech_end_timeou" + + "t\030\002 \001(\0132\031.google.protobuf.Duration\"\337\001\n\032S" + + "treamingRecognitionConfig\022>\n\006config\030\001 \001(" + + "\0132).google.cloud.speech.v2.RecognitionCo" + + "nfigB\003\340A\002\022/\n\013config_mask\030\003 \001(\0132\032.google." + + "protobuf.FieldMask\022P\n\022streaming_features" + + "\030\002 \001(\01324.google.cloud.speech.v2.Streamin" + + "gRecognitionFeatures\"\317\001\n\031StreamingRecogn" + + "izeRequest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A\"\n " + + "speech.googleapis.com/Recognizer\022N\n\020stre" + + "aming_config\030\006 \001(\01322.google.cloud.speech" + + ".v2.StreamingRecognitionConfigH\000\022\017\n\005audi" + + "o\030\005 \001(\014H\000B\023\n\021streaming_request\"\204\002\n\025Batch" + + "RecognizeRequest\022<\n\nrecognizer\030\001 \001(\tB(\340A" + + "\002\372A\"\n speech.googleapis.com/Recognizer\0229" + + "\n\006config\030\004 \001(\0132).google.cloud.speech.v2." + + "RecognitionConfig\022/\n\013config_mask\030\005 \001(\0132\032" + + ".google.protobuf.FieldMask\022A\n\005files\030\003 \003(" + + "\01322.google.cloud.speech.v2.BatchRecogniz" + + "eFileMetadata\"\310\001\n\026BatchRecognizeResponse" + + "\022L\n\007results\030\001 \003(\0132;.google.cloud.speech." + + "v2.BatchRecognizeResponse.ResultsEntry\032`" + + "\n\014ResultsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001" + + "(\01320.google.cloud.speech.v2.BatchRecogni" + + "zeFileResult:\0028\001\"J\n\030BatchRecognizeFileRe" + + "sult\022\013\n\003uri\030\001 \001(\t\022!\n\005error\030\002 \001(\0132\022.googl" + + "e.rpc.Status\"o\n#BatchRecognizeTranscript" + + "ionMetadata\022\030\n\020progress_percent\030\001 \001(\005\022!\n" + + "\005error\030\002 \001(\0132\022.google.rpc.Status\022\013\n\003uri\030" + + "\003 \001(\t\"\376\001\n\026BatchRecognizeMetadata\022i\n\026tran" + + "scription_metadata\030\001 \003(\0132I.google.cloud." + + "speech.v2.BatchRecognizeMetadata.Transcr" + + "iptionMetadataEntry\032y\n\032TranscriptionMeta" + + "dataEntry\022\013\n\003key\030\001 \001(\t\022J\n\005value\030\002 \001(\0132;." + + "google.cloud.speech.v2.BatchRecognizeTra" + + "nscriptionMetadata:\0028\001\"\247\001\n\032BatchRecogniz" + + "eFileMetadata\022\r\n\003uri\030\001 \001(\tH\000\0229\n\006config\030\004" + + " \001(\0132).google.cloud.speech.v2.Recognitio" + + "nConfig\022/\n\013config_mask\030\005 \001(\0132\032.google.pr" + + "otobuf.FieldMaskB\016\n\014audio_source\"\364\001\n\032Str" + + "eamingRecognitionResult\022J\n\014alternatives\030" + + "\001 \003(\01324.google.cloud.speech.v2.SpeechRec" + + "ognitionAlternative\022\020\n\010is_final\030\002 \001(\010\022\021\n" + + "\tstability\030\003 \001(\002\0224\n\021result_end_offset\030\004 " + + "\001(\0132\031.google.protobuf.Duration\022\023\n\013channe" + + "l_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A\003\"" + + "\307\003\n\032StreamingRecognizeResponse\022C\n\007result" + + "s\030\006 \003(\01322.google.cloud.speech.v2.Streami" + + "ngRecognitionResult\022]\n\021speech_event_type" + + "\030\003 \001(\0162B.google.cloud.speech.v2.Streamin" + + "gRecognizeResponse.SpeechEventType\0226\n\023sp" + + "eech_event_offset\030\007 \001(\0132\031.google.protobu" + + "f.Duration\022E\n\010metadata\030\005 \001(\01323.google.cl" + + "oud.speech.v2.RecognitionResponseMetadat" + + "a\"\205\001\n\017SpeechEventType\022!\n\035SPEECH_EVENT_TY" + + "PE_UNSPECIFIED\020\000\022\033\n\027END_OF_SINGLE_UTTERA" + + "NCE\020\001\022\031\n\025SPEECH_ACTIVITY_BEGIN\020\002\022\027\n\023SPEE" + + "CH_ACTIVITY_END\020\003\"\345\001\n\006Config\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022?\n\014kms_key_name\030\002 \001(\tB)\340A\001\372A#\n!c" + + "loudkms.googleapis.com/CryptoKey\0224\n\013upda" + + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003:Q\352AN\n\034speech.googleapis.com/Confi" + + "g\022.projects/{project}/locations/{locatio" + + "n}/config\"F\n\020GetConfigRequest\0222\n\004name\030\001 " + + "\001(\tB$\340A\002\372A\036\n\034speech.googleapis.com/Confi" + + "g\"{\n\023UpdateConfigRequest\0223\n\006config\030\001 \001(\013" + + "2\036.google.cloud.speech.v2.ConfigB\003\340A\002\022/\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMask\"\240\007\n\013CustomClass\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\024\n\014display_name\030\004 \001(" + + "\t\022<\n\005items\030\005 \003(\0132-.google.cloud.speech.v" + + "2.CustomClass.ClassItem\022=\n\005state\030\017 \001(\0162)" + + ".google.cloud.speech.v2.CustomClass.Stat" + + "eB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013de" + + "lete_time\030\010 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0224\n\013expire_time\030\t \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022I\n\013annotations\030\n " + + "\003(\01324.google.cloud.speech.v2.CustomClass" + + ".AnnotationsEntry\022\021\n\004etag\030\013 \001(\tB\003\340A\003\022\030\n\013" + + "reconciling\030\014 \001(\010B\003\340A\003\022?\n\014kms_key_name\030\r" + + " \001(\tB)\340A\003\372A#\n!cloudkms.googleapis.com/Cr" + + "yptoKey\022N\n\024kms_key_version_name\030\016 \001(\tB0\340" + + "A\003\372A*\n(cloudkms.googleapis.com/CryptoKey" + + "Version\032\032\n\tClassItem\022\r\n\005value\030\001 \001(\t\0322\n\020A" + + "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\"7\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + + "\n\n\006ACTIVE\020\002\022\013\n\007DELETED\020\004:o\352Al\n!speech.go" + + "ogleapis.com/CustomClass\022Dprojects/{proj" + + "ect}/locations/{location}/customClasses/" + + "{custom_class}R\001\001\"\253\007\n\tPhraseSet\022\021\n\004name\030" + + "\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0229\n\007phrases\030" + + "\003 \003(\0132(.google.cloud.speech.v2.PhraseSet" + + ".Phrase\022\r\n\005boost\030\004 \001(\002\022\024\n\014display_name\030\005" + + " \001(\t\022;\n\005state\030\017 \001(\0162\'.google.cloud.speec" + + "h.v2.PhraseSet.StateB\003\340A\003\0224\n\013create_time" + + "\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "4\n\013update_time\030\007 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0224\n\013expire_ti" + + "me\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\022G\n\013annotations\030\n \003(\01322.google.cloud.sp" + + "eech.v2.PhraseSet.AnnotationsEntry\022\021\n\004et" + + "ag\030\013 \001(\tB\003\340A\003\022\030\n\013reconciling\030\014 \001(\010B\003\340A\003\022" + + "?\n\014kms_key_name\030\r \001(\tB)\340A\003\372A#\n!cloudkms." + + "googleapis.com/CryptoKey\022N\n\024kms_key_vers" + + "ion_name\030\016 \001(\tB0\340A\003\372A*\n(cloudkms.googlea" + + "pis.com/CryptoKeyVersion\032&\n\006Phrase\022\r\n\005va" + + "lue\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002\0322\n\020AnnotationsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\005" + + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\002" + + "\022\013\n\007DELETED\020\004:h\352Ae\n\037speech.googleapis.co" + + "m/PhraseSet\022?projects/{project}/location" + + "s/{location}/phraseSets/{phrase_set}R\001\001\"" + + "\305\001\n\030CreateCustomClassRequest\022>\n\014custom_c" + + "lass\030\001 \001(\0132#.google.cloud.speech.v2.Cust" + + "omClassB\003\340A\002\022\025\n\rvalidate_only\030\002 \001(\010\022\027\n\017c" + + "ustom_class_id\030\003 \001(\t\0229\n\006parent\030\004 \001(\tB)\340A" + + "\002\372A#\022!speech.googleapis.com/CustomClass\"" + + "\222\001\n\030ListCustomClassesRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + + "ocation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"q\n\031ListCust" + + "omClassesResponse\022;\n\016custom_classes\030\001 \003(" + + "\0132#.google.cloud.speech.v2.CustomClass\022\027" + + "\n\017next_page_token\030\002 \001(\t\"P\n\025GetCustomClas" + + "sRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.g" + + "oogleapis.com/CustomClass\"\242\001\n\030UpdateCust" + + "omClassRequest\022>\n\014custom_class\030\001 \001(\0132#.g" + + "oogle.cloud.speech.v2.CustomClassB\003\340A\002\022/" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMask\022\025\n\rvalidate_only\030\004 \001(\010\"\217\001\n\030Delet" + + "eCustomClassRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A" + + "#\n!speech.googleapis.com/CustomClass\022\025\n\r" + + "validate_only\030\002 \001(\010\022\025\n\rallow_missing\030\004 \001" + + "(\010\022\014\n\004etag\030\003 \001(\t\"z\n\032UndeleteCustomClassR" + + "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.goo" + + "gleapis.com/CustomClass\022\025\n\rvalidate_only" + + "\030\003 \001(\010\022\014\n\004etag\030\004 \001(\t\"\273\001\n\026CreatePhraseSet" + + "Request\022:\n\nphrase_set\030\001 \001(\0132!.google.clo" + + "ud.speech.v2.PhraseSetB\003\340A\002\022\025\n\rvalidate_" + + "only\030\002 \001(\010\022\025\n\rphrase_set_id\030\003 \001(\t\0227\n\006par" + + "ent\030\004 \001(\tB\'\340A\002\372A!\022\037speech.googleapis.com" + + "/PhraseSet\"\217\001\n\025ListPhraseSetsRequest\0229\n\006" + + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + + "ge_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"i\n\026" + + "ListPhraseSetsResponse\0226\n\013phrase_sets\030\001 " + + "\003(\0132!.google.cloud.speech.v2.PhraseSet\022\027" + + "\n\017next_page_token\030\002 \001(\t\"L\n\023GetPhraseSetR" + + "equest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.goo" + + "gleapis.com/PhraseSet\"\234\001\n\026UpdatePhraseSe" + + "tRequest\022:\n\nphrase_set\030\001 \001(\0132!.google.cl" + + "oud.speech.v2.PhraseSetB\003\340A\002\022/\n\013update_m" + + "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\022\025\n" + + "\rvalidate_only\030\004 \001(\010\"\213\001\n\026DeletePhraseSet" + + "Request\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.go" + + "ogleapis.com/PhraseSet\022\025\n\rvalidate_only\030" + + "\002 \001(\010\022\025\n\rallow_missing\030\004 \001(\010\022\014\n\004etag\030\003 \001" + + "(\t\"v\n\030UndeletePhraseSetRequest\0225\n\004name\030\001" + + " \001(\tB\'\340A\002\372A!\n\037speech.googleapis.com/Phra" + + "seSet\022\025\n\rvalidate_only\030\003 \001(\010\022\014\n\004etag\030\004 \001" + + "(\t2\277%\n\006Speech\022\354\001\n\020CreateRecognizer\022/.goo" + + "gle.cloud.speech.v2.CreateRecognizerRequ" + + "est\032\035.google.longrunning.Operation\"\207\001\202\323\344" + + "\223\002=\"//v2/{parent=projects/*/locations/*}" + + "/recognizers:\nrecognizer\332A\037parent,recogn" + + "izer,recognizer_id\312A\037\n\nRecognizer\022\021Opera" + + "tionMetadata\022\264\001\n\017ListRecognizers\022..googl" + + "e.cloud.speech.v2.ListRecognizersRequest" + + "\032/.google.cloud.speech.v2.ListRecognizer" + + "sResponse\"@\202\323\344\223\0021\022//v2/{parent=projects/" + + "*/locations/*}/recognizers\332A\006parent\022\241\001\n\r" + + "GetRecognizer\022,.google.cloud.speech.v2.G" + + "etRecognizerRequest\032\".google.cloud.speec" + + "h.v2.Recognizer\">\202\323\344\223\0021\022//v2/{name=proje" + + "cts/*/locations/*/recognizers/*}\332A\004name\022" + + "\356\001\n\020UpdateRecognizer\022/.google.cloud.spee" + + "ch.v2.UpdateRecognizerRequest\032\035.google.l" + + "ongrunning.Operation\"\211\001\202\323\344\223\002H2:/v2/{reco" + + "gnizer.name=projects/*/locations/*/recog" + + "nizers/*}:\nrecognizer\332A\026recognizer,updat" + + "e_mask\312A\037\n\nRecognizer\022\021OperationMetadata" + + "\022\304\001\n\020DeleteRecognizer\022/.google.cloud.spe" + + "ech.v2.DeleteRecognizerRequest\032\035.google." + + "longrunning.Operation\"`\202\323\344\223\0021*//v2/{name" + + "=projects/*/locations/*/recognizers/*}\332A" + + "\004name\312A\037\n\nRecognizer\022\021OperationMetadata\022" + + "\324\001\n\022UndeleteRecognizer\0221.google.cloud.sp" + + "eech.v2.UndeleteRecognizerRequest\032\035.goog" + + "le.longrunning.Operation\"l\202\323\344\223\002=\"8/v2/{n" + + "ame=projects/*/locations/*/recognizers/*" + + "}:undelete:\001*\332A\004name\312A\037\n\nRecognizer\022\021Ope" + + "rationMetadata\022\371\001\n\tRecognize\022(.google.cl" + + "oud.speech.v2.RecognizeRequest\032).google." + + "cloud.speech.v2.RecognizeResponse\"\226\001\202\323\344\223" + + "\002D\"?/v2/{recognizer=projects/*/locations" + + "/*/recognizers/*}:recognize:\001*\332A%recogni" + + "zer,config,config_mask,content\332A!recogni" + + "zer,config,config_mask,uri\022\201\001\n\022Streaming" + + "Recognize\0221.google.cloud.speech.v2.Strea" + + "mingRecognizeRequest\0322.google.cloud.spee" + + "ch.v2.StreamingRecognizeResponse\"\000(\0010\001\022\204" + + "\002\n\016BatchRecognize\022-.google.cloud.speech." + + "v2.BatchRecognizeRequest\032\035.google.longru" + + "nning.Operation\"\243\001\202\323\344\223\002I\"D/v2/{recognize" + + "r=projects/*/locations/*/recognizers/*}:" + + "batchRecognize:\001*\332A#recognizer,config,co" + + "nfig_mask,files\312A+\n\026BatchRecognizeRespon" + + "se\022\021OperationMetadata\022\216\001\n\tGetConfig\022(.go" + + "ogle.cloud.speech.v2.GetConfigRequest\032\036." + + "google.cloud.speech.v2.Config\"7\202\323\344\223\002*\022(/" + + "v2/{name=projects/*/locations/*/config}\332" + + "A\004name\022\261\001\n\014UpdateConfig\022+.google.cloud.s" + + "peech.v2.UpdateConfigRequest\032\036.google.cl" + + "oud.speech.v2.Config\"T\202\323\344\223\00292//v2/{confi" + + "g.name=projects/*/locations/*/config}:\006c" + + "onfig\332A\022config,update_mask\022\367\001\n\021CreateCus" + + "tomClass\0220.google.cloud.speech.v2.Create" + + "CustomClassRequest\032\035.google.longrunning." + + "Operation\"\220\001\202\323\344\223\002A\"1/v2/{parent=projects" + + "/*/locations/*}/customClasses:\014custom_cl" + + "ass\332A#parent,custom_class,custom_class_i" + + "d\312A \n\013CustomClass\022\021OperationMetadata\022\274\001\n" + + "\021ListCustomClasses\0220.google.cloud.speech" + + ".v2.ListCustomClassesRequest\0321.google.cl" + + "oud.speech.v2.ListCustomClassesResponse\"" + + "B\202\323\344\223\0023\0221/v2/{parent=projects/*/location" + + "s/*}/customClasses\332A\006parent\022\246\001\n\016GetCusto" + + "mClass\022-.google.cloud.speech.v2.GetCusto" + + "mClassRequest\032#.google.cloud.speech.v2.C" + + "ustomClass\"@\202\323\344\223\0023\0221/v2/{name=projects/*", + "/locations/*/customClasses/*}\332A\004name\022\371\001\n" + + "\021UpdateCustomClass\0220.google.cloud.speech" + + ".v2.UpdateCustomClassRequest\032\035.google.lo" + + "ngrunning.Operation\"\222\001\202\323\344\223\002N2>/v2/{custo" + + "m_class.name=projects/*/locations/*/cust" + + "omClasses/*}:\014custom_class\332A\030custom_clas" + + "s,update_mask\312A \n\013CustomClass\022\021Operation" + + "Metadata\022\311\001\n\021DeleteCustomClass\0220.google." + + "cloud.speech.v2.DeleteCustomClassRequest" + + "\032\035.google.longrunning.Operation\"c\202\323\344\223\0023*" + + "1/v2/{name=projects/*/locations/*/custom" + + "Classes/*}\332A\004name\312A \n\013CustomClass\022\021Opera" + + "tionMetadata\022\331\001\n\023UndeleteCustomClass\0222.g" + + "oogle.cloud.speech.v2.UndeleteCustomClas" + + "sRequest\032\035.google.longrunning.Operation\"" + + "o\202\323\344\223\002?\":/v2/{name=projects/*/locations/" + + "*/customClasses/*}:undelete:\001*\332A\004name\312A " + + "\n\013CustomClass\022\021OperationMetadata\022\350\001\n\017Cre" + + "atePhraseSet\022..google.cloud.speech.v2.Cr" + + "eatePhraseSetRequest\032\035.google.longrunnin" + + "g.Operation\"\205\001\202\323\344\223\002<\"./v2/{parent=projec" + + "ts/*/locations/*}/phraseSets:\nphrase_set" + + "\332A\037parent,phrase_set,phrase_set_id\312A\036\n\tP" + + "hraseSet\022\021OperationMetadata\022\260\001\n\016ListPhra" + + "seSets\022-.google.cloud.speech.v2.ListPhra" + + "seSetsRequest\032..google.cloud.speech.v2.L" + + "istPhraseSetsResponse\"?\202\323\344\223\0020\022./v2/{pare" + + "nt=projects/*/locations/*}/phraseSets\332A\006" + + "parent\022\235\001\n\014GetPhraseSet\022+.google.cloud.s" + + "peech.v2.GetPhraseSetRequest\032!.google.cl" + + "oud.speech.v2.PhraseSet\"=\202\323\344\223\0020\022./v2/{na" + + "me=projects/*/locations/*/phraseSets/*}\332" + + "A\004name\022\352\001\n\017UpdatePhraseSet\022..google.clou" + + "d.speech.v2.UpdatePhraseSetRequest\032\035.goo" + + "gle.longrunning.Operation\"\207\001\202\323\344\223\002G29/v2/" + + "{phrase_set.name=projects/*/locations/*/" + + "phraseSets/*}:\nphrase_set\332A\026phrase_set,u" + + "pdate_mask\312A\036\n\tPhraseSet\022\021OperationMetad" + + "ata\022\300\001\n\017DeletePhraseSet\022..google.cloud.s" + + "peech.v2.DeletePhraseSetRequest\032\035.google" + + ".longrunning.Operation\"^\202\323\344\223\0020*./v2/{nam" + + "e=projects/*/locations/*/phraseSets/*}\332A" + + "\004name\312A\036\n\tPhraseSet\022\021OperationMetadata\022\320" + + "\001\n\021UndeletePhraseSet\0220.google.cloud.spee" + + "ch.v2.UndeletePhraseSetRequest\032\035.google." + + "longrunning.Operation\"j\202\323\344\223\002<\"7/v2/{name" + + "=projects/*/locations/*/phraseSets/*}:un" + + "delete:\001*\332A\004name\312A\036\n\tPhraseSet\022\021Operatio" + + "nMetadata\032I\312A\025speech.googleapis.com\322A.ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "formB\223\003\n\032com.google.cloud.speech.v2B\020Clo" + + "udSpeechProtoP\001Z * Message representing the config for the Speech-to-Text API. This includes an * optional [KMS key](https://cloud.google.com/kms/docs/resource-hierarchy#keys) @@ -29,16 +12,15 @@ * * Protobuf type {@code google.cloud.speech.v2.Config} */ -public final class Config extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Config extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.Config) ConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Config.newBuilder() to construct. private Config(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Config() { name_ = ""; kmsKeyName_ = ""; @@ -46,37 +28,33 @@ private Config() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Config(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_Config_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Config_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_Config_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Config_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.Config.class, - com.google.cloud.speech.v2.Config.Builder.class); + com.google.cloud.speech.v2.Config.class, com.google.cloud.speech.v2.Config.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The name of the config resource. There is exactly one config
    * resource per project per location. The expected format is
@@ -84,7 +62,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -93,15 +70,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; } } /** - * - * *
    * Output only. The name of the config resource. There is exactly one config
    * resource per project per location. The expected format is
@@ -109,15 +85,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -126,12 +103,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** - * - * *
    * Optional. An optional [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -141,10 +115,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ @java.lang.Override @@ -153,15 +124,14 @@ public java.lang.String getKmsKeyName() { 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(); kmsKeyName_ = s; return s; } } /** - * - * *
    * Optional. An optional [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -171,18 +141,17 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -193,15 +162,11 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -209,15 +174,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -225,14 +186,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -240,7 +198,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,7 +209,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_); } @@ -278,7 +236,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kmsKeyName_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -288,18 +247,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.v2.Config)) { return super.equals(obj); } com.google.cloud.speech.v2.Config other = (com.google.cloud.speech.v2.Config) obj; - if (!getName().equals(other.getName())) return false; - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -325,103 +287,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.Config parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.Config parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.Config 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.v2.Config parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.speech.v2.Config parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.Config 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.v2.Config parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.Config 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.v2.Config 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.v2.Config 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.v2.Config 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.v2.Config 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.v2.Config 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.v2.Config 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.v2.Config 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 representing the config for the Speech-to-Text API. This includes an
    * optional [KMS key](https://cloud.google.com/kms/docs/resource-hierarchy#keys)
@@ -430,32 +386,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.Config}
    */
-  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.v2.Config)
       com.google.cloud.speech.v2.ConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_Config_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Config_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_Config_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Config_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.Config.class,
-              com.google.cloud.speech.v2.Config.Builder.class);
+              com.google.cloud.speech.v2.Config.class, com.google.cloud.speech.v2.Config.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.Config.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -471,9 +428,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_Config_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Config_descriptor;
     }
 
     @java.lang.Override
@@ -493,9 +450,7 @@ public com.google.cloud.speech.v2.Config build() {
     @java.lang.Override
     public com.google.cloud.speech.v2.Config buildPartial() {
       com.google.cloud.speech.v2.Config result = new com.google.cloud.speech.v2.Config(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -509,7 +464,9 @@ private void buildPartial0(com.google.cloud.speech.v2.Config result) {
         result.kmsKeyName_ = kmsKeyName_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
     }
 
@@ -517,39 +474,38 @@ private void buildPartial0(com.google.cloud.speech.v2.Config result) {
     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.v2.Config) {
-        return mergeFrom((com.google.cloud.speech.v2.Config) other);
+        return mergeFrom((com.google.cloud.speech.v2.Config)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -597,31 +553,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                kmsKeyName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              kmsKeyName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -631,13 +585,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The name of the config resource. There is exactly one config
      * resource per project per location. The expected format is
@@ -645,13 +596,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -660,8 +611,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The name of the config resource. There is exactly one config
      * resource per project per location. The expected format is
@@ -669,14 +618,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -684,8 +634,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The name of the config resource. There is exactly one config
      * resource per project per location. The expected format is
@@ -693,22 +641,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The name of the config resource. There is exactly one config
      * resource per project per location. The expected format is
@@ -716,7 +660,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -726,8 +669,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The name of the config resource. There is exactly one config
      * resource per project per location. The expected format is
@@ -735,14 +676,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -752,8 +691,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyName_ = ""; /** - * - * *
      * Optional. An optional [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -763,16 +700,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; 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(); kmsKeyName_ = s; return s; @@ -781,8 +716,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
      * Optional. An optional [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -792,17 +725,16 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -810,8 +742,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
      * Optional. An optional [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -821,25 +751,19 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. An optional [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -849,10 +773,7 @@ public Builder setKmsKeyName(java.lang.String value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -862,8 +783,6 @@ public Builder clearKmsKeyName() { return this; } /** - * - * *
      * Optional. An optional [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -873,17 +792,13 @@ public Builder clearKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00000002; @@ -893,58 +808,39 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -960,17 +856,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -981,21 +874,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1008,15 +897,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1029,15 +914,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1045,55 +926,43 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - @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); } @@ -1103,12 +972,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.Config) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.Config) private static final com.google.cloud.speech.v2.Config DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.Config(); } @@ -1117,27 +986,27 @@ public static com.google.cloud.speech.v2.Config getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Config parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Config parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1152,4 +1021,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.Config getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java similarity index 68% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java index 6d4dd82b7de2..882c277e0239 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ConfigOrBuilder - extends +public interface ConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.Config) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The name of the config resource. There is exactly one config
    * resource per project per location. The expected format is
@@ -33,13 +15,10 @@ public interface ConfigOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The name of the config resource. There is exactly one config
    * resource per project per location. The expected format is
@@ -47,14 +26,12 @@ public interface ConfigOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. An optional [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -64,16 +41,11 @@ public interface ConfigOrBuilder
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
    * Optional. An optional [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -83,49 +55,36 @@ public interface ConfigOrBuilder
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java similarity index 65% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java index 3c5619413afd..42e674391f4c 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [CreateCustomClass][google.cloud.speech.v2.Speech.CreateCustomClass] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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() {
     customClassId_ = "";
     parent_ = "";
@@ -45,43 +27,37 @@ 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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.CreateCustomClassRequest.class,
-            com.google.cloud.speech.v2.CreateCustomClassRequest.Builder.class);
+            com.google.cloud.speech.v2.CreateCustomClassRequest.class, com.google.cloud.speech.v2.CreateCustomClassRequest.Builder.class);
   }
 
   public static final int CUSTOM_CLASS_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.CustomClass customClass_;
   /**
-   *
-   *
    * 
    * Required. The CustomClass to create.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ @java.lang.Override @@ -89,54 +65,38 @@ public boolean hasCustomClass() { return customClass_ != null; } /** - * - * *
    * Required. The CustomClass to create.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ @java.lang.Override public com.google.cloud.speech.v2.CustomClass getCustomClass() { - return customClass_ == null - ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; } /** - * - * *
    * Required. The CustomClass to create.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder() { - return customClass_ == null - ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the CustomClass, but do not
    * actually create it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -145,12 +105,9 @@ public boolean getValidateOnly() { } public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object customClassId_ = ""; /** - * - * *
    * The ID to use for the CustomClass, which will become the final component of
    * the CustomClass's resource name.
@@ -159,7 +116,6 @@ public boolean getValidateOnly() {
    * 
* * string custom_class_id = 3; - * * @return The customClassId. */ @java.lang.Override @@ -168,15 +124,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; } } /** - * - * *
    * The ID to use for the CustomClass, which will become the final component of
    * the CustomClass's resource name.
@@ -185,15 +140,16 @@ public java.lang.String getCustomClassId() {
    * 
* * string custom_class_id = 3; - * * @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 { @@ -202,21 +158,15 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() { } public static final int PARENT_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The project and location where this CustomClass will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -225,32 +175,30 @@ 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 project and location where this CustomClass will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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 { @@ -259,7 +207,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -271,7 +218,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()); } @@ -294,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 (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customClassId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, customClassId_); @@ -313,21 +263,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.v2.CreateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.CreateCustomClassRequest other = - (com.google.cloud.speech.v2.CreateCustomClassRequest) obj; + com.google.cloud.speech.v2.CreateCustomClassRequest other = (com.google.cloud.speech.v2.CreateCustomClassRequest) obj; if (hasCustomClass() != other.hasCustomClass()) return false; if (hasCustomClass()) { - if (!getCustomClass().equals(other.getCustomClass())) return false; + if (!getCustomClass() + .equals(other.getCustomClass())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getCustomClassId().equals(other.getCustomClassId())) return false; - if (!getParent().equals(other.getParent())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getCustomClassId() + .equals(other.getCustomClassId())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -344,7 +297,8 @@ public int hashCode() { hash = (53 * hash) + getCustomClass().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + CUSTOM_CLASS_ID_FIELD_NUMBER; hash = (53 * hash) + getCustomClassId().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; @@ -355,103 +309,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.CreateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.CreateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.CreateCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.CreateCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.CreateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.CreateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [CreateCustomClass][google.cloud.speech.v2.Speech.CreateCustomClass] method.
@@ -459,32 +406,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.CreateCustomClassRequest)
       com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.CreateCustomClassRequest.class,
-              com.google.cloud.speech.v2.CreateCustomClassRequest.Builder.class);
+              com.google.cloud.speech.v2.CreateCustomClassRequest.class, com.google.cloud.speech.v2.CreateCustomClassRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.CreateCustomClassRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -501,9 +449,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
@@ -522,11 +470,8 @@ public com.google.cloud.speech.v2.CreateCustomClassRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.CreateCustomClassRequest buildPartial() {
-      com.google.cloud.speech.v2.CreateCustomClassRequest result =
-          new com.google.cloud.speech.v2.CreateCustomClassRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.CreateCustomClassRequest result = new com.google.cloud.speech.v2.CreateCustomClassRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -534,8 +479,9 @@ public com.google.cloud.speech.v2.CreateCustomClassRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.CreateCustomClassRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.customClass_ =
-            customClassBuilder_ == null ? customClass_ : customClassBuilder_.build();
+        result.customClass_ = customClassBuilder_ == null
+            ? customClass_
+            : customClassBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -552,39 +498,38 @@ private void buildPartial0(com.google.cloud.speech.v2.CreateCustomClassRequest r
     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.v2.CreateCustomClassRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.CreateCustomClassRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.CreateCustomClassRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -592,8 +537,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.CreateCustomClassRequest other) {
-      if (other == com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance()) return this;
       if (other.hasCustomClass()) {
         mergeCustomClass(other.getCustomClass());
       }
@@ -636,37 +580,34 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                customClassId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getCustomClassFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              customClassId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -676,63 +617,43 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.speech.v2.CustomClass customClass_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.CustomClass,
-            com.google.cloud.speech.v2.CustomClass.Builder,
-            com.google.cloud.speech.v2.CustomClassOrBuilder>
-        customClassBuilder_;
+        com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> customClassBuilder_;
     /**
-     *
-     *
      * 
      * Required. The CustomClass to create.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The CustomClass to create.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ public com.google.cloud.speech.v2.CustomClass getCustomClass() { if (customClassBuilder_ == null) { - return customClass_ == null - ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; } else { return customClassBuilder_.getMessage(); } } /** - * - * *
      * Required. The CustomClass to create.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass value) { if (customClassBuilder_ == null) { @@ -748,17 +669,14 @@ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass value) { return this; } /** - * - * *
      * Required. The CustomClass to create.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass.Builder builderForValue) { + public Builder setCustomClass( + com.google.cloud.speech.v2.CustomClass.Builder builderForValue) { if (customClassBuilder_ == null) { customClass_ = builderForValue.build(); } else { @@ -769,21 +687,17 @@ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass.Builder bui return this; } /** - * - * *
      * Required. The CustomClass to create.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCustomClass(com.google.cloud.speech.v2.CustomClass value) { if (customClassBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && customClass_ != null - && customClass_ != com.google.cloud.speech.v2.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + customClass_ != null && + customClass_ != com.google.cloud.speech.v2.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -796,15 +710,11 @@ public Builder mergeCustomClass(com.google.cloud.speech.v2.CustomClass value) { return this; } /** - * - * *
      * Required. The CustomClass to create.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCustomClass() { bitField0_ = (bitField0_ & ~0x00000001); @@ -817,15 +727,11 @@ public Builder clearCustomClass() { return this; } /** - * - * *
      * Required. The CustomClass to create.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassBuilder() { bitField0_ |= 0x00000001; @@ -833,64 +739,49 @@ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassBuilder() { return getCustomClassFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The CustomClass to create.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder() { if (customClassBuilder_ != null) { return customClassBuilder_.getMessageOrBuilder(); } else { - return customClass_ == null - ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? + com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; } } /** - * - * *
      * Required. The CustomClass to create.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, - com.google.cloud.speech.v2.CustomClass.Builder, - com.google.cloud.speech.v2.CustomClassOrBuilder> + com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> getCustomClassFieldBuilder() { if (customClassBuilder_ == null) { - customClassBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, - com.google.cloud.speech.v2.CustomClass.Builder, - com.google.cloud.speech.v2.CustomClassOrBuilder>( - getCustomClass(), getParentForChildren(), isClean()); + customClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder>( + getCustomClass(), + getParentForChildren(), + isClean()); customClass_ = null; } return customClassBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the CustomClass, but do not
      * actually create it.
      * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -898,35 +789,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the CustomClass, but do not
      * actually create it.
      * 
* * bool validate_only = 2; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the CustomClass, but do not
      * actually create it.
      * 
* * bool validate_only = 2; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -938,8 +823,6 @@ public Builder clearValidateOnly() { private java.lang.Object customClassId_ = ""; /** - * - * *
      * The ID to use for the CustomClass, which will become the final component of
      * the CustomClass's resource name.
@@ -948,13 +831,13 @@ public Builder clearValidateOnly() {
      * 
* * string custom_class_id = 3; - * * @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; @@ -963,8 +846,6 @@ public java.lang.String getCustomClassId() { } } /** - * - * *
      * The ID to use for the CustomClass, which will become the final component of
      * the CustomClass's resource name.
@@ -973,14 +854,15 @@ public java.lang.String getCustomClassId() {
      * 
* * string custom_class_id = 3; - * * @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 { @@ -988,8 +870,6 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() { } } /** - * - * *
      * The ID to use for the CustomClass, which will become the final component of
      * the CustomClass's resource name.
@@ -998,22 +878,18 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() {
      * 
* * string custom_class_id = 3; - * * @param value The customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomClassId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } customClassId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The ID to use for the CustomClass, which will become the final component of
      * the CustomClass's resource name.
@@ -1022,7 +898,6 @@ public Builder setCustomClassId(java.lang.String value) {
      * 
* * string custom_class_id = 3; - * * @return This builder for chaining. */ public Builder clearCustomClassId() { @@ -1032,8 +907,6 @@ public Builder clearCustomClassId() { return this; } /** - * - * *
      * The ID to use for the CustomClass, which will become the final component of
      * the CustomClass's resource name.
@@ -1042,14 +915,12 @@ public Builder clearCustomClassId() {
      * 
* * string custom_class_id = 3; - * * @param value The bytes for customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomClassIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customClassId_ = value; bitField0_ |= 0x00000004; @@ -1059,23 +930,19 @@ public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location where this CustomClass will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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; @@ -1084,24 +951,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location where this CustomClass will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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 { @@ -1109,41 +973,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location where this CustomClass will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. The project and location where this CustomClass will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1153,33 +1006,27 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The project and location where this CustomClass will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000008; 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); } @@ -1189,12 +1036,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.CreateCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.CreateCustomClassRequest) private static final com.google.cloud.speech.v2.CreateCustomClassRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.CreateCustomClassRequest(); } @@ -1203,27 +1050,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1238,4 +1085,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.CreateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java similarity index 59% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java index 4a356278c295..a787ee130a2a 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java @@ -1,86 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface CreateCustomClassRequestOrBuilder - extends +public interface CreateCustomClassRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.CreateCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The CustomClass to create.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ boolean hasCustomClass(); /** - * - * *
    * Required. The CustomClass to create.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ com.google.cloud.speech.v2.CustomClass getCustomClass(); /** - * - * *
    * Required. The CustomClass to create.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder(); /** - * - * *
    * If set, validate the request and preview the CustomClass, but do not
    * actually create it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * The ID to use for the CustomClass, which will become the final component of
    * the CustomClass's resource name.
@@ -89,13 +54,10 @@ public interface CreateCustomClassRequestOrBuilder
    * 
* * string custom_class_id = 3; - * * @return The customClassId. */ java.lang.String getCustomClassId(); /** - * - * *
    * The ID to use for the CustomClass, which will become the final component of
    * the CustomClass's resource name.
@@ -104,39 +66,30 @@ public interface CreateCustomClassRequestOrBuilder
    * 
* * string custom_class_id = 3; - * * @return The bytes for customClassId. */ - com.google.protobuf.ByteString getCustomClassIdBytes(); + com.google.protobuf.ByteString + getCustomClassIdBytes(); /** - * - * *
    * Required. The project and location where this CustomClass will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location where this CustomClass will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java similarity index 65% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java index 7414b3b497b8..81b996533df4 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [CreatePhraseSet][google.cloud.speech.v2.Speech.CreatePhraseSet] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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() {
     phraseSetId_ = "";
     parent_ = "";
@@ -45,43 +27,37 @@ 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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.CreatePhraseSetRequest.class,
-            com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder.class);
+            com.google.cloud.speech.v2.CreatePhraseSetRequest.class, com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder.class);
   }
 
   public static final int PHRASE_SET_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.PhraseSet phraseSet_;
   /**
-   *
-   *
    * 
    * Required. The PhraseSet to create.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -89,54 +65,38 @@ public boolean hasPhraseSet() { return phraseSet_ != null; } /** - * - * *
    * Required. The PhraseSet to create.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSet getPhraseSet() { - return phraseSet_ == null - ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; } /** - * - * *
    * Required. The PhraseSet to create.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder() { - return phraseSet_ == null - ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the PhraseSet, but do not
    * actually create it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -145,12 +105,9 @@ public boolean getValidateOnly() { } public static final int PHRASE_SET_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object phraseSetId_ = ""; /** - * - * *
    * The ID to use for the PhraseSet, which will become the final component of
    * the PhraseSet's resource name.
@@ -159,7 +116,6 @@ public boolean getValidateOnly() {
    * 
* * string phrase_set_id = 3; - * * @return The phraseSetId. */ @java.lang.Override @@ -168,15 +124,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; } } /** - * - * *
    * The ID to use for the PhraseSet, which will become the final component of
    * the PhraseSet's resource name.
@@ -185,15 +140,16 @@ public java.lang.String getPhraseSetId() {
    * 
* * string phrase_set_id = 3; - * * @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 { @@ -202,21 +158,15 @@ public com.google.protobuf.ByteString getPhraseSetIdBytes() { } public static final int PARENT_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The project and location where this PhraseSet will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -225,32 +175,30 @@ 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 project and location where this PhraseSet will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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 { @@ -259,7 +207,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -271,7 +218,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()); } @@ -294,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 (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phraseSetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, phraseSetId_); @@ -313,21 +263,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.v2.CreatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.CreatePhraseSetRequest other = - (com.google.cloud.speech.v2.CreatePhraseSetRequest) obj; + com.google.cloud.speech.v2.CreatePhraseSetRequest other = (com.google.cloud.speech.v2.CreatePhraseSetRequest) obj; if (hasPhraseSet() != other.hasPhraseSet()) return false; if (hasPhraseSet()) { - if (!getPhraseSet().equals(other.getPhraseSet())) return false; + if (!getPhraseSet() + .equals(other.getPhraseSet())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getPhraseSetId().equals(other.getPhraseSetId())) return false; - if (!getParent().equals(other.getParent())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getPhraseSetId() + .equals(other.getPhraseSetId())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -344,7 +297,8 @@ public int hashCode() { hash = (53 * hash) + getPhraseSet().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + PHRASE_SET_ID_FIELD_NUMBER; hash = (53 * hash) + getPhraseSetId().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; @@ -355,103 +309,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.CreatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.CreatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.CreatePhraseSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.CreatePhraseSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.CreatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.CreatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [CreatePhraseSet][google.cloud.speech.v2.Speech.CreatePhraseSet] method.
@@ -459,32 +406,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.CreatePhraseSetRequest)
       com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.CreatePhraseSetRequest.class,
-              com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder.class);
+              com.google.cloud.speech.v2.CreatePhraseSetRequest.class, com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.CreatePhraseSetRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -501,9 +449,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -522,11 +470,8 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.CreatePhraseSetRequest buildPartial() {
-      com.google.cloud.speech.v2.CreatePhraseSetRequest result =
-          new com.google.cloud.speech.v2.CreatePhraseSetRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.CreatePhraseSetRequest result = new com.google.cloud.speech.v2.CreatePhraseSetRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -534,7 +479,9 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.CreatePhraseSetRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build();
+        result.phraseSet_ = phraseSetBuilder_ == null
+            ? phraseSet_
+            : phraseSetBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -551,39 +498,38 @@ private void buildPartial0(com.google.cloud.speech.v2.CreatePhraseSetRequest res
     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.v2.CreatePhraseSetRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.CreatePhraseSetRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.CreatePhraseSetRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -591,8 +537,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.CreatePhraseSetRequest other) {
-      if (other == com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance()) return this;
       if (other.hasPhraseSet()) {
         mergePhraseSet(other.getPhraseSet());
       }
@@ -635,37 +580,34 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                phraseSetId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getPhraseSetFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              phraseSetId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -675,63 +617,43 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.speech.v2.PhraseSet phraseSet_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.PhraseSet,
-            com.google.cloud.speech.v2.PhraseSet.Builder,
-            com.google.cloud.speech.v2.PhraseSetOrBuilder>
-        phraseSetBuilder_;
+        com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> phraseSetBuilder_;
     /**
-     *
-     *
      * 
      * Required. The PhraseSet to create.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The PhraseSet to create.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ public com.google.cloud.speech.v2.PhraseSet getPhraseSet() { if (phraseSetBuilder_ == null) { - return phraseSet_ == null - ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; } else { return phraseSetBuilder_.getMessage(); } } /** - * - * *
      * Required. The PhraseSet to create.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetBuilder_ == null) { @@ -747,17 +669,14 @@ public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** - * - * *
      * Required. The PhraseSet to create.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { + public Builder setPhraseSet( + com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { if (phraseSetBuilder_ == null) { phraseSet_ = builderForValue.build(); } else { @@ -768,21 +687,17 @@ public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet.Builder builder return this; } /** - * - * *
      * Required. The PhraseSet to create.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && phraseSet_ != null - && phraseSet_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + phraseSet_ != null && + phraseSet_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -795,15 +710,11 @@ public Builder mergePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** - * - * *
      * Required. The PhraseSet to create.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPhraseSet() { bitField0_ = (bitField0_ & ~0x00000001); @@ -816,15 +727,11 @@ public Builder clearPhraseSet() { return this; } /** - * - * *
      * Required. The PhraseSet to create.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetBuilder() { bitField0_ |= 0x00000001; @@ -832,64 +739,49 @@ public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetBuilder() { return getPhraseSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The PhraseSet to create.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder() { if (phraseSetBuilder_ != null) { return phraseSetBuilder_.getMessageOrBuilder(); } else { - return phraseSet_ == null - ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? + com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; } } /** - * - * *
      * Required. The PhraseSet to create.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, - com.google.cloud.speech.v2.PhraseSet.Builder, - com.google.cloud.speech.v2.PhraseSetOrBuilder> + com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> getPhraseSetFieldBuilder() { if (phraseSetBuilder_ == null) { - phraseSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, - com.google.cloud.speech.v2.PhraseSet.Builder, - com.google.cloud.speech.v2.PhraseSetOrBuilder>( - getPhraseSet(), getParentForChildren(), isClean()); + phraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder>( + getPhraseSet(), + getParentForChildren(), + isClean()); phraseSet_ = null; } return phraseSetBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the PhraseSet, but do not
      * actually create it.
      * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -897,35 +789,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the PhraseSet, but do not
      * actually create it.
      * 
* * bool validate_only = 2; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the PhraseSet, but do not
      * actually create it.
      * 
* * bool validate_only = 2; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -937,8 +823,6 @@ public Builder clearValidateOnly() { private java.lang.Object phraseSetId_ = ""; /** - * - * *
      * The ID to use for the PhraseSet, which will become the final component of
      * the PhraseSet's resource name.
@@ -947,13 +831,13 @@ public Builder clearValidateOnly() {
      * 
* * string phrase_set_id = 3; - * * @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; @@ -962,8 +846,6 @@ public java.lang.String getPhraseSetId() { } } /** - * - * *
      * The ID to use for the PhraseSet, which will become the final component of
      * the PhraseSet's resource name.
@@ -972,14 +854,15 @@ public java.lang.String getPhraseSetId() {
      * 
* * string phrase_set_id = 3; - * * @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 { @@ -987,8 +870,6 @@ public com.google.protobuf.ByteString getPhraseSetIdBytes() { } } /** - * - * *
      * The ID to use for the PhraseSet, which will become the final component of
      * the PhraseSet's resource name.
@@ -997,22 +878,18 @@ public com.google.protobuf.ByteString getPhraseSetIdBytes() {
      * 
* * string phrase_set_id = 3; - * * @param value The phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhraseSetId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } phraseSetId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The ID to use for the PhraseSet, which will become the final component of
      * the PhraseSet's resource name.
@@ -1021,7 +898,6 @@ public Builder setPhraseSetId(java.lang.String value) {
      * 
* * string phrase_set_id = 3; - * * @return This builder for chaining. */ public Builder clearPhraseSetId() { @@ -1031,8 +907,6 @@ public Builder clearPhraseSetId() { return this; } /** - * - * *
      * The ID to use for the PhraseSet, which will become the final component of
      * the PhraseSet's resource name.
@@ -1041,14 +915,12 @@ public Builder clearPhraseSetId() {
      * 
* * string phrase_set_id = 3; - * * @param value The bytes for phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhraseSetIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); phraseSetId_ = value; bitField0_ |= 0x00000004; @@ -1058,23 +930,19 @@ public Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location where this PhraseSet will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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; @@ -1083,24 +951,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location where this PhraseSet will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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 { @@ -1108,41 +973,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location where this PhraseSet will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. The project and location where this PhraseSet will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1152,33 +1006,27 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The project and location where this PhraseSet will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000008; 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); } @@ -1188,12 +1036,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.CreatePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.CreatePhraseSetRequest) private static final com.google.cloud.speech.v2.CreatePhraseSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.CreatePhraseSetRequest(); } @@ -1202,27 +1050,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1237,4 +1085,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.CreatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java similarity index 58% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java index 862e79fa966f..b5990b5ce7a0 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java @@ -1,86 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface CreatePhraseSetRequestOrBuilder - extends +public interface CreatePhraseSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.CreatePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The PhraseSet to create.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** - * - * *
    * Required. The PhraseSet to create.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ com.google.cloud.speech.v2.PhraseSet getPhraseSet(); /** - * - * *
    * Required. The PhraseSet to create.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder(); /** - * - * *
    * If set, validate the request and preview the PhraseSet, but do not
    * actually create it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * The ID to use for the PhraseSet, which will become the final component of
    * the PhraseSet's resource name.
@@ -89,13 +54,10 @@ public interface CreatePhraseSetRequestOrBuilder
    * 
* * string phrase_set_id = 3; - * * @return The phraseSetId. */ java.lang.String getPhraseSetId(); /** - * - * *
    * The ID to use for the PhraseSet, which will become the final component of
    * the PhraseSet's resource name.
@@ -104,39 +66,30 @@ public interface CreatePhraseSetRequestOrBuilder
    * 
* * string phrase_set_id = 3; - * * @return The bytes for phraseSetId. */ - com.google.protobuf.ByteString getPhraseSetIdBytes(); + com.google.protobuf.ByteString + getPhraseSetIdBytes(); /** - * - * *
    * Required. The project and location where this PhraseSet will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location where this PhraseSet will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java similarity index 65% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java index f9a1139da8fd..1f373bf761f0 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [CreateRecognizer][google.cloud.speech.v2.Speech.CreateRecognizer] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.CreateRecognizerRequest}
  */
-public final class CreateRecognizerRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateRecognizerRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.CreateRecognizerRequest)
     CreateRecognizerRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateRecognizerRequest.newBuilder() to construct.
   private CreateRecognizerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateRecognizerRequest() {
     recognizerId_ = "";
     parent_ = "";
@@ -45,43 +27,37 @@ private CreateRecognizerRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateRecognizerRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.CreateRecognizerRequest.class,
-            com.google.cloud.speech.v2.CreateRecognizerRequest.Builder.class);
+            com.google.cloud.speech.v2.CreateRecognizerRequest.class, com.google.cloud.speech.v2.CreateRecognizerRequest.Builder.class);
   }
 
   public static final int RECOGNIZER_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.Recognizer recognizer_;
   /**
-   *
-   *
    * 
    * Required. The Recognizer to create.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the recognizer field is set. */ @java.lang.Override @@ -89,54 +65,38 @@ public boolean hasRecognizer() { return recognizer_ != null; } /** - * - * *
    * Required. The Recognizer to create.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The recognizer. */ @java.lang.Override public com.google.cloud.speech.v2.Recognizer getRecognizer() { - return recognizer_ == null - ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() - : recognizer_; + return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; } /** - * - * *
    * Required. The Recognizer to create.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder() { - return recognizer_ == null - ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() - : recognizer_; + return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the Recognizer, but do not
    * actually create it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -145,12 +105,9 @@ public boolean getValidateOnly() { } public static final int RECOGNIZER_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object recognizerId_ = ""; /** - * - * *
    * The ID to use for the Recognizer, which will become the final component of
    * the Recognizer's resource name.
@@ -159,7 +116,6 @@ public boolean getValidateOnly() {
    * 
* * string recognizer_id = 3; - * * @return The recognizerId. */ @java.lang.Override @@ -168,15 +124,14 @@ public java.lang.String getRecognizerId() { 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(); recognizerId_ = s; return s; } } /** - * - * *
    * The ID to use for the Recognizer, which will become the final component of
    * the Recognizer's resource name.
@@ -185,15 +140,16 @@ public java.lang.String getRecognizerId() {
    * 
* * string recognizer_id = 3; - * * @return The bytes for recognizerId. */ @java.lang.Override - public com.google.protobuf.ByteString getRecognizerIdBytes() { + public com.google.protobuf.ByteString + getRecognizerIdBytes() { java.lang.Object ref = recognizerId_; 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); recognizerId_ = b; return b; } else { @@ -202,21 +158,15 @@ public com.google.protobuf.ByteString getRecognizerIdBytes() { } public static final int PARENT_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The project and location where this Recognizer will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -225,32 +175,30 @@ 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 project and location where this Recognizer will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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 { @@ -259,7 +207,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -271,7 +218,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 (recognizer_ != null) { output.writeMessage(1, getRecognizer()); } @@ -294,10 +242,12 @@ public int getSerializedSize() { size = 0; if (recognizer_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRecognizer()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRecognizer()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recognizerId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, recognizerId_); @@ -313,21 +263,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.v2.CreateRecognizerRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.CreateRecognizerRequest other = - (com.google.cloud.speech.v2.CreateRecognizerRequest) obj; + com.google.cloud.speech.v2.CreateRecognizerRequest other = (com.google.cloud.speech.v2.CreateRecognizerRequest) obj; if (hasRecognizer() != other.hasRecognizer()) return false; if (hasRecognizer()) { - if (!getRecognizer().equals(other.getRecognizer())) return false; + if (!getRecognizer() + .equals(other.getRecognizer())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getRecognizerId().equals(other.getRecognizerId())) return false; - if (!getParent().equals(other.getParent())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getRecognizerId() + .equals(other.getRecognizerId())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -344,7 +297,8 @@ public int hashCode() { hash = (53 * hash) + getRecognizer().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + RECOGNIZER_ID_FIELD_NUMBER; hash = (53 * hash) + getRecognizerId().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; @@ -355,103 +309,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.CreateRecognizerRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.CreateRecognizerRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest 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; } /** - * - * *
    * Request message for the
    * [CreateRecognizer][google.cloud.speech.v2.Speech.CreateRecognizer] method.
@@ -459,32 +406,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.CreateRecognizerRequest}
    */
-  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.v2.CreateRecognizerRequest)
       com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.CreateRecognizerRequest.class,
-              com.google.cloud.speech.v2.CreateRecognizerRequest.Builder.class);
+              com.google.cloud.speech.v2.CreateRecognizerRequest.class, com.google.cloud.speech.v2.CreateRecognizerRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.CreateRecognizerRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -501,9 +449,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
@@ -522,11 +470,8 @@ public com.google.cloud.speech.v2.CreateRecognizerRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.CreateRecognizerRequest buildPartial() {
-      com.google.cloud.speech.v2.CreateRecognizerRequest result =
-          new com.google.cloud.speech.v2.CreateRecognizerRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.CreateRecognizerRequest result = new com.google.cloud.speech.v2.CreateRecognizerRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -534,7 +479,9 @@ public com.google.cloud.speech.v2.CreateRecognizerRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.CreateRecognizerRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.recognizer_ = recognizerBuilder_ == null ? recognizer_ : recognizerBuilder_.build();
+        result.recognizer_ = recognizerBuilder_ == null
+            ? recognizer_
+            : recognizerBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -551,39 +498,38 @@ private void buildPartial0(com.google.cloud.speech.v2.CreateRecognizerRequest re
     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.v2.CreateRecognizerRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.CreateRecognizerRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.CreateRecognizerRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -591,8 +537,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.CreateRecognizerRequest other) {
-      if (other == com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance()) return this;
       if (other.hasRecognizer()) {
         mergeRecognizer(other.getRecognizer());
       }
@@ -635,37 +580,34 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getRecognizerFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                recognizerId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getRecognizerFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              recognizerId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -675,63 +617,43 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.speech.v2.Recognizer recognizer_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.Recognizer,
-            com.google.cloud.speech.v2.Recognizer.Builder,
-            com.google.cloud.speech.v2.RecognizerOrBuilder>
-        recognizerBuilder_;
+        com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> recognizerBuilder_;
     /**
-     *
-     *
      * 
      * Required. The Recognizer to create.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the recognizer field is set. */ public boolean hasRecognizer() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The Recognizer to create.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The recognizer. */ public com.google.cloud.speech.v2.Recognizer getRecognizer() { if (recognizerBuilder_ == null) { - return recognizer_ == null - ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() - : recognizer_; + return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; } else { return recognizerBuilder_.getMessage(); } } /** - * - * *
      * Required. The Recognizer to create.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer value) { if (recognizerBuilder_ == null) { @@ -747,17 +669,14 @@ public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer value) { return this; } /** - * - * *
      * Required. The Recognizer to create.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { + public Builder setRecognizer( + com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { if (recognizerBuilder_ == null) { recognizer_ = builderForValue.build(); } else { @@ -768,21 +687,17 @@ public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer.Builder build return this; } /** - * - * *
      * Required. The Recognizer to create.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeRecognizer(com.google.cloud.speech.v2.Recognizer value) { if (recognizerBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && recognizer_ != null - && recognizer_ != com.google.cloud.speech.v2.Recognizer.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + recognizer_ != null && + recognizer_ != com.google.cloud.speech.v2.Recognizer.getDefaultInstance()) { getRecognizerBuilder().mergeFrom(value); } else { recognizer_ = value; @@ -795,15 +710,11 @@ public Builder mergeRecognizer(com.google.cloud.speech.v2.Recognizer value) { return this; } /** - * - * *
      * Required. The Recognizer to create.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRecognizer() { bitField0_ = (bitField0_ & ~0x00000001); @@ -816,15 +727,11 @@ public Builder clearRecognizer() { return this; } /** - * - * *
      * Required. The Recognizer to create.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.Recognizer.Builder getRecognizerBuilder() { bitField0_ |= 0x00000001; @@ -832,64 +739,49 @@ public com.google.cloud.speech.v2.Recognizer.Builder getRecognizerBuilder() { return getRecognizerFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Recognizer to create.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder() { if (recognizerBuilder_ != null) { return recognizerBuilder_.getMessageOrBuilder(); } else { - return recognizer_ == null - ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() - : recognizer_; + return recognizer_ == null ? + com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; } } /** - * - * *
      * Required. The Recognizer to create.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, - com.google.cloud.speech.v2.Recognizer.Builder, - com.google.cloud.speech.v2.RecognizerOrBuilder> + com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> getRecognizerFieldBuilder() { if (recognizerBuilder_ == null) { - recognizerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, - com.google.cloud.speech.v2.Recognizer.Builder, - com.google.cloud.speech.v2.RecognizerOrBuilder>( - getRecognizer(), getParentForChildren(), isClean()); + recognizerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder>( + getRecognizer(), + getParentForChildren(), + isClean()); recognizer_ = null; } return recognizerBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the Recognizer, but do not
      * actually create it.
      * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -897,35 +789,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the Recognizer, but do not
      * actually create it.
      * 
* * bool validate_only = 2; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the Recognizer, but do not
      * actually create it.
      * 
* * bool validate_only = 2; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -937,8 +823,6 @@ public Builder clearValidateOnly() { private java.lang.Object recognizerId_ = ""; /** - * - * *
      * The ID to use for the Recognizer, which will become the final component of
      * the Recognizer's resource name.
@@ -947,13 +831,13 @@ public Builder clearValidateOnly() {
      * 
* * string recognizer_id = 3; - * * @return The recognizerId. */ public java.lang.String getRecognizerId() { java.lang.Object ref = recognizerId_; 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(); recognizerId_ = s; return s; @@ -962,8 +846,6 @@ public java.lang.String getRecognizerId() { } } /** - * - * *
      * The ID to use for the Recognizer, which will become the final component of
      * the Recognizer's resource name.
@@ -972,14 +854,15 @@ public java.lang.String getRecognizerId() {
      * 
* * string recognizer_id = 3; - * * @return The bytes for recognizerId. */ - public com.google.protobuf.ByteString getRecognizerIdBytes() { + public com.google.protobuf.ByteString + getRecognizerIdBytes() { java.lang.Object ref = recognizerId_; 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); recognizerId_ = b; return b; } else { @@ -987,8 +870,6 @@ public com.google.protobuf.ByteString getRecognizerIdBytes() { } } /** - * - * *
      * The ID to use for the Recognizer, which will become the final component of
      * the Recognizer's resource name.
@@ -997,22 +878,18 @@ public com.google.protobuf.ByteString getRecognizerIdBytes() {
      * 
* * string recognizer_id = 3; - * * @param value The recognizerId to set. * @return This builder for chaining. */ - public Builder setRecognizerId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecognizerId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } recognizerId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The ID to use for the Recognizer, which will become the final component of
      * the Recognizer's resource name.
@@ -1021,7 +898,6 @@ public Builder setRecognizerId(java.lang.String value) {
      * 
* * string recognizer_id = 3; - * * @return This builder for chaining. */ public Builder clearRecognizerId() { @@ -1031,8 +907,6 @@ public Builder clearRecognizerId() { return this; } /** - * - * *
      * The ID to use for the Recognizer, which will become the final component of
      * the Recognizer's resource name.
@@ -1041,14 +915,12 @@ public Builder clearRecognizerId() {
      * 
* * string recognizer_id = 3; - * * @param value The bytes for recognizerId to set. * @return This builder for chaining. */ - public Builder setRecognizerIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecognizerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); recognizerId_ = value; bitField0_ |= 0x00000004; @@ -1058,23 +930,19 @@ public Builder setRecognizerIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location where this Recognizer will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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; @@ -1083,24 +951,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location where this Recognizer will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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 { @@ -1108,41 +973,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location where this Recognizer will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. The project and location where this Recognizer will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1152,33 +1006,27 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The project and location where this Recognizer will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000008; 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); } @@ -1188,12 +1036,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.CreateRecognizerRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.CreateRecognizerRequest) private static final com.google.cloud.speech.v2.CreateRecognizerRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.CreateRecognizerRequest(); } @@ -1202,27 +1050,27 @@ public static com.google.cloud.speech.v2.CreateRecognizerRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRecognizerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRecognizerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1237,4 +1085,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.CreateRecognizerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java similarity index 58% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java index 77aa7ec49b6a..ae28e33df050 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java @@ -1,86 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface CreateRecognizerRequestOrBuilder - extends +public interface CreateRecognizerRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.CreateRecognizerRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Recognizer to create.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the recognizer field is set. */ boolean hasRecognizer(); /** - * - * *
    * Required. The Recognizer to create.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The recognizer. */ com.google.cloud.speech.v2.Recognizer getRecognizer(); /** - * - * *
    * Required. The Recognizer to create.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder(); /** - * - * *
    * If set, validate the request and preview the Recognizer, but do not
    * actually create it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * The ID to use for the Recognizer, which will become the final component of
    * the Recognizer's resource name.
@@ -89,13 +54,10 @@ public interface CreateRecognizerRequestOrBuilder
    * 
* * string recognizer_id = 3; - * * @return The recognizerId. */ java.lang.String getRecognizerId(); /** - * - * *
    * The ID to use for the Recognizer, which will become the final component of
    * the Recognizer's resource name.
@@ -104,39 +66,30 @@ public interface CreateRecognizerRequestOrBuilder
    * 
* * string recognizer_id = 3; - * * @return The bytes for recognizerId. */ - com.google.protobuf.ByteString getRecognizerIdBytes(); + com.google.protobuf.ByteString + getRecognizerIdBytes(); /** - * - * *
    * Required. The project and location where this Recognizer will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location where this Recognizer will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java index 5fd33410c96d..3c0b408a3a4c 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * CustomClass for biasing in speech recognition. Used to define a set of words
  * or phrases that represents a common concept or theme likely to appear in your
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
     uid_ = "";
@@ -52,54 +34,51 @@ 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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_CustomClass_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 10:
         return internalGetAnnotations();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.CustomClass.class,
-            com.google.cloud.speech.v2.CustomClass.Builder.class);
+            com.google.cloud.speech.v2.CustomClass.class, com.google.cloud.speech.v2.CustomClass.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Set of states that define the lifecycle of a CustomClass.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.CustomClass.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified state.  This is only used/useful for distinguishing
      * unset values.
@@ -109,8 +88,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The normal and active state.
      * 
@@ -119,8 +96,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(2), /** - * - * *
      * This CustomClass has been deleted.
      * 
@@ -132,8 +107,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified state.  This is only used/useful for distinguishing
      * unset values.
@@ -143,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int STATE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * The normal and active state.
      * 
@@ -153,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 2; /** - * - * *
      * This CustomClass has been deleted.
      * 
@@ -163,6 +132,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETED_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -187,49 +157,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 2: - return ACTIVE; - case 4: - return DELETED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 2: return ACTIVE; + case 4: return DELETED; + 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< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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.v2.CustomClass.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -246,98 +216,84 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.speech.v2.CustomClass.State) } - public interface ClassItemOrBuilder - extends + public interface ClassItemOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.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.v2.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.v2.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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.CustomClass.ClassItem.class, - com.google.cloud.speech.v2.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v2.CustomClass.ClassItem.class, com.google.cloud.speech.v2.CustomClass.ClassItem.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** - * - * *
      * The class item's value.
      * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -346,29 +302,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 { @@ -377,7 +333,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -389,7 +344,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_); } @@ -413,15 +369,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.v2.CustomClass.ClassItem)) { return super.equals(obj); } - com.google.cloud.speech.v2.CustomClass.ClassItem other = - (com.google.cloud.speech.v2.CustomClass.ClassItem) obj; + com.google.cloud.speech.v2.CustomClass.ClassItem other = (com.google.cloud.speech.v2.CustomClass.ClassItem) obj; - if (!getValue().equals(other.getValue())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -441,93 +397,87 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.CustomClass.ClassItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.CustomClass.ClassItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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 @@ -537,41 +487,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * An item of the class.
      * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.CustomClass.ClassItem) com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.CustomClass.ClassItem.class, - com.google.cloud.speech.v2.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v2.CustomClass.ClassItem.class, com.google.cloud.speech.v2.CustomClass.ClassItem.Builder.class); } // Construct using com.google.cloud.speech.v2.CustomClass.ClassItem.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -581,9 +529,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; } @java.lang.Override @@ -602,11 +550,8 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem build() { @java.lang.Override public com.google.cloud.speech.v2.CustomClass.ClassItem buildPartial() { - com.google.cloud.speech.v2.CustomClass.ClassItem result = - new com.google.cloud.speech.v2.CustomClass.ClassItem(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v2.CustomClass.ClassItem result = new com.google.cloud.speech.v2.CustomClass.ClassItem(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -622,41 +567,38 @@ private void buildPartial0(com.google.cloud.speech.v2.CustomClass.ClassItem resu 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.v2.CustomClass.ClassItem) { - return mergeFrom((com.google.cloud.speech.v2.CustomClass.ClassItem) other); + return mergeFrom((com.google.cloud.speech.v2.CustomClass.ClassItem)other); } else { super.mergeFrom(other); return this; @@ -664,8 +606,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.CustomClass.ClassItem other) { - if (other == com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()) return this; if (!other.getValue().isEmpty()) { value_ = other.value_; bitField0_ |= 0x00000001; @@ -697,19 +638,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -719,25 +658,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -746,21 +682,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 { @@ -768,35 +703,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -806,28 +734,23 @@ public Builder clearValue() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -840,12 +763,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.CustomClass.ClassItem) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.CustomClass.ClassItem) private static final com.google.cloud.speech.v2.CustomClass.ClassItem DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.CustomClass.ClassItem(); } @@ -854,28 +777,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -890,15 +812,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.CustomClass.ClassItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The resource name of the CustomClass.
    * Format:
@@ -906,7 +826,6 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem getDefaultInstanceForTyp
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -915,15 +834,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; } } /** - * - * *
    * Output only. The resource name of the CustomClass.
    * Format:
@@ -931,15 +849,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -948,18 +867,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int UID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** - * - * *
    * Output only. System-assigned unique identifier for the CustomClass.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -968,29 +883,29 @@ public java.lang.String getUid() { 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(); uid_ = s; return s; } } /** - * - * *
    * Output only. System-assigned unique identifier for the CustomClass.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -999,19 +914,15 @@ public com.google.protobuf.ByteString getUidBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * User-settable, human-readable name for the CustomClass. Must be 63
    * characters or less.
    * 
* * string display_name = 4; - * * @return The displayName. */ @java.lang.Override @@ -1020,30 +931,30 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** - * - * *
    * User-settable, human-readable name for the CustomClass. Must be 63
    * characters or less.
    * 
* * string display_name = 4; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -1052,12 +963,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int ITEMS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private java.util.List items_; /** - * - * *
    * A collection of class items.
    * 
@@ -1069,8 +977,6 @@ public java.util.List getItems return items_; } /** - * - * *
    * A collection of class items.
    * 
@@ -1078,13 +984,11 @@ public java.util.List getItems * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ @java.lang.Override - public java.util.List + public java.util.List getItemsOrBuilderList() { return items_; } /** - * - * *
    * A collection of class items.
    * 
@@ -1096,8 +1000,6 @@ public int getItemsCount() { return items_.size(); } /** - * - * *
    * A collection of class items.
    * 
@@ -1109,8 +1011,6 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem getItems(int index) { return items_.get(index); } /** - * - * *
    * A collection of class items.
    * 
@@ -1118,61 +1018,45 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem getItems(int index) { * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ @java.lang.Override - public com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index) { + public com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder( + int index) { return items_.get(index); } public static final int STATE_FIELD_NUMBER = 15; private int state_ = 0; /** - * - * *
    * Output only. The CustomClass lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The CustomClass lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.speech.v2.CustomClass.State getState() { - com.google.cloud.speech.v2.CustomClass.State result = - com.google.cloud.speech.v2.CustomClass.State.forNumber(state_); + @java.lang.Override public com.google.cloud.speech.v2.CustomClass.State getState() { + com.google.cloud.speech.v2.CustomClass.State result = com.google.cloud.speech.v2.CustomClass.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.CustomClass.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1180,15 +1064,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1196,14 +1076,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1213,15 +1090,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1229,15 +1102,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -1245,14 +1114,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1262,15 +1128,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -1278,15 +1140,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -1294,14 +1152,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -1311,15 +1166,11 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ @java.lang.Override @@ -1327,15 +1178,11 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ @java.lang.Override @@ -1343,14 +1190,11 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -1358,35 +1202,32 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } public static final int ANNOTATIONS_FIELD_NUMBER = 10; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1396,21 +1237,20 @@ public int getAnnotationsCount() {
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public boolean containsAnnotations(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsAnnotations(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetAnnotations().getMap().containsKey(key);
   }
-  /** Use {@link #getAnnotationsMap()} instead. */
+  /**
+   * Use {@link #getAnnotationsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAnnotations() {
     return getAnnotationsMap();
   }
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1424,8 +1264,6 @@ public java.util.Map getAnnotationsMap() {
     return internalGetAnnotations().getMap();
   }
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1435,19 +1273,17 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getAnnotationsOrDefault(
+  public /* nullable */
+java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetAnnotations().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1457,11 +1293,11 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+  public java.lang.String getAnnotationsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1469,12 +1305,9 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
   }
 
   public static final int ETAG_FIELD_NUMBER = 11;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object etag_ = "";
   /**
-   *
-   *
    * 
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -1482,7 +1315,6 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ @java.lang.Override @@ -1491,15 +1323,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -1507,15 +1338,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -1526,15 +1358,12 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int RECONCILING_FIELD_NUMBER = 12; private boolean reconciling_ = false; /** - * - * *
    * Output only. Whether or not this CustomClass is in the process of being
    * updated.
    * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -1543,12 +1372,9 @@ public boolean getReconciling() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 13; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -1556,10 +1382,7 @@ public boolean getReconciling() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ @java.lang.Override @@ -1568,15 +1391,14 @@ public java.lang.String getKmsKeyName() { 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(); kmsKeyName_ = s; return s; } } /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -1584,18 +1406,17 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -1604,12 +1425,9 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER = 14; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyVersionName_ = ""; /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1617,10 +1435,7 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyVersionName. */ @java.lang.Override @@ -1629,15 +1444,14 @@ public java.lang.String getKmsKeyVersionName() { 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(); kmsKeyVersionName_ = s; return s; } } /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1645,18 +1459,17 @@ public java.lang.String getKmsKeyVersionName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyVersionName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -1665,7 +1478,6 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1677,7 +1489,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_); } @@ -1702,8 +1515,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (expireTime_ != null) { output.writeMessage(9, getExpireTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 10); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 10); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, etag_); } @@ -1738,35 +1555,41 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); } for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, items_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, items_.get(i)); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getExpireTime()); - } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, annotations__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getExpireTime()); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, annotations__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etag_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, reconciling_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, reconciling_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kmsKeyName_); @@ -1775,7 +1598,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, kmsKeyVersionName_); } if (state_ != com.google.cloud.speech.v2.CustomClass.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1785,39 +1609,52 @@ 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.v2.CustomClass)) { return super.equals(obj); } com.google.cloud.speech.v2.CustomClass other = (com.google.cloud.speech.v2.CustomClass) obj; - if (!getName().equals(other.getName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getItemsList().equals(other.getItemsList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getItemsList() + .equals(other.getItemsList())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; - } - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (getReconciling() != other.getReconciling()) return false; - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; - if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; + } + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (getReconciling() + != other.getReconciling()) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; + if (!getKmsKeyVersionName() + .equals(other.getKmsKeyVersionName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1864,7 +1701,8 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getKmsKeyName().hashCode(); hash = (37 * hash) + KMS_KEY_VERSION_NAME_FIELD_NUMBER; @@ -1874,104 +1712,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.CustomClass parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.CustomClass parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.CustomClass parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.CustomClass parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * CustomClass for biasing in speech recognition. Used to define a set of words
    * or phrases that represents a common concept or theme likely to appear in your
@@ -1980,52 +1811,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.CustomClass)
       com.google.cloud.speech.v2.CustomClassOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CustomClass_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 10:
           return internalGetAnnotations();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 10:
           return internalGetMutableAnnotations();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.CustomClass.class,
-              com.google.cloud.speech.v2.CustomClass.Builder.class);
+              com.google.cloud.speech.v2.CustomClass.class, com.google.cloud.speech.v2.CustomClass.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.CustomClass.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2070,9 +1904,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CustomClass_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_descriptor;
     }
 
     @java.lang.Override
@@ -2091,12 +1925,9 @@ public com.google.cloud.speech.v2.CustomClass build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.CustomClass buildPartial() {
-      com.google.cloud.speech.v2.CustomClass result =
-          new com.google.cloud.speech.v2.CustomClass(this);
+      com.google.cloud.speech.v2.CustomClass result = new com.google.cloud.speech.v2.CustomClass(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -2128,16 +1959,24 @@ private void buildPartial0(com.google.cloud.speech.v2.CustomClass result) {
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null
+            ? deleteTime_
+            : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build();
+        result.expireTime_ = expireTimeBuilder_ == null
+            ? expireTime_
+            : expireTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.annotations_ = internalGetAnnotations();
@@ -2161,39 +2000,38 @@ private void buildPartial0(com.google.cloud.speech.v2.CustomClass result) {
     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.v2.CustomClass) {
-        return mergeFrom((com.google.cloud.speech.v2.CustomClass) other);
+        return mergeFrom((com.google.cloud.speech.v2.CustomClass)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2235,10 +2073,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            itemsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getItemsFieldBuilder()
-                    : null;
+            itemsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getItemsFieldBuilder() : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -2259,7 +2096,8 @@ public Builder mergeFrom(com.google.cloud.speech.v2.CustomClass other) {
       if (other.hasExpireTime()) {
         mergeExpireTime(other.getExpireTime());
       }
-      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(
+          other.internalGetAnnotations());
       bitField0_ |= 0x00000200;
       if (!other.getEtag().isEmpty()) {
         etag_ = other.etag_;
@@ -2305,111 +2143,102 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                uid_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 34:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 34
-            case 42:
-              {
-                com.google.cloud.speech.v2.CustomClass.ClassItem m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.CustomClass.ClassItem.parser(),
-                        extensionRegistry);
-                if (itemsBuilder_ == null) {
-                  ensureItemsIsMutable();
-                  items_.add(m);
-                } else {
-                  itemsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 66
-            case 74:
-              {
-                input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 74
-            case 82:
-              {
-                com.google.protobuf.MapEntry annotations__ =
-                    input.readMessage(
-                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableAnnotations()
-                    .getMutableMap()
-                    .put(annotations__.getKey(), annotations__.getValue());
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 82
-            case 90:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 90
-            case 96:
-              {
-                reconciling_ = input.readBool();
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 96
-            case 106:
-              {
-                kmsKeyName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 106
-            case 114:
-              {
-                kmsKeyVersionName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 114
-            case 120:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 120
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              uid_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 34: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 34
+            case 42: {
+              com.google.cloud.speech.v2.CustomClass.ClassItem m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.CustomClass.ClassItem.parser(),
+                      extensionRegistry);
+              if (itemsBuilder_ == null) {
+                ensureItemsIsMutable();
+                items_.add(m);
+              } else {
+                itemsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getDeleteTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 66
+            case 74: {
+              input.readMessage(
+                  getExpireTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 74
+            case 82: {
+              com.google.protobuf.MapEntry
+              annotations__ = input.readMessage(
+                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableAnnotations().getMutableMap().put(
+                  annotations__.getKey(), annotations__.getValue());
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 82
+            case 90: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 90
+            case 96: {
+              reconciling_ = input.readBool();
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 96
+            case 106: {
+              kmsKeyName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 106
+            case 114: {
+              kmsKeyVersionName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 114
+            case 120: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 120
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2419,13 +2248,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name of the CustomClass.
      * Format:
@@ -2433,13 +2259,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -2448,8 +2274,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the CustomClass.
      * Format:
@@ -2457,14 +2281,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -2472,8 +2297,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the CustomClass.
      * Format:
@@ -2481,22 +2304,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the CustomClass.
      * Format:
@@ -2504,7 +2323,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2514,8 +2332,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name of the CustomClass.
      * Format:
@@ -2523,14 +2339,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2540,20 +2354,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. System-assigned unique identifier for the CustomClass.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; 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(); uid_ = s; return s; @@ -2562,21 +2374,20 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. System-assigned unique identifier for the CustomClass.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -2584,35 +2395,28 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. System-assigned unique identifier for the CustomClass.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. System-assigned unique identifier for the CustomClass.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { @@ -2622,21 +2426,17 @@ public Builder clearUid() { return this; } /** - * - * *
      * Output only. System-assigned unique identifier for the CustomClass.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000002; @@ -2646,21 +2446,19 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * User-settable, human-readable name for the CustomClass. Must be 63
      * characters or less.
      * 
* * string display_name = 4; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -2669,22 +2467,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * User-settable, human-readable name for the CustomClass. Must be 63
      * characters or less.
      * 
* * string display_name = 4; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -2692,37 +2489,30 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * User-settable, human-readable name for the CustomClass. Must be 63
      * characters or less.
      * 
* * string display_name = 4; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * User-settable, human-readable name for the CustomClass. Must be 63
      * characters or less.
      * 
* * string display_name = 4; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2732,22 +2522,18 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * User-settable, human-readable name for the CustomClass. Must be 63
      * characters or less.
      * 
* * string display_name = 4; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000004; @@ -2756,24 +2542,18 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } private java.util.List items_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass.ClassItem, - com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, - com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder> - itemsBuilder_; + com.google.cloud.speech.v2.CustomClass.ClassItem, com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder> itemsBuilder_; /** - * - * *
      * A collection of class items.
      * 
@@ -2788,8 +2568,6 @@ public java.util.List getItems } } /** - * - * *
      * A collection of class items.
      * 
@@ -2804,8 +2582,6 @@ public int getItemsCount() { } } /** - * - * *
      * A collection of class items.
      * 
@@ -2820,15 +2596,14 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem getItems(int index) { } } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public Builder setItems(int index, com.google.cloud.speech.v2.CustomClass.ClassItem value) { + public Builder setItems( + int index, com.google.cloud.speech.v2.CustomClass.ClassItem value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2842,8 +2617,6 @@ public Builder setItems(int index, com.google.cloud.speech.v2.CustomClass.ClassI return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -2862,8 +2635,6 @@ public Builder setItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -2884,15 +2655,14 @@ public Builder addItems(com.google.cloud.speech.v2.CustomClass.ClassItem value) return this; } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public Builder addItems(int index, com.google.cloud.speech.v2.CustomClass.ClassItem value) { + public Builder addItems( + int index, com.google.cloud.speech.v2.CustomClass.ClassItem value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2906,8 +2676,6 @@ public Builder addItems(int index, com.google.cloud.speech.v2.CustomClass.ClassI return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -2926,8 +2694,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -2946,8 +2712,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -2958,7 +2722,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); @@ -2966,8 +2731,6 @@ public Builder addAllItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -2985,8 +2748,6 @@ public Builder clearItems() { return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -3004,44 +2765,39 @@ public Builder removeItems(int index) { return this; } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder getItemsBuilder(int index) { + public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder getItemsBuilder( + int index) { return getItemsFieldBuilder().getBuilder(index); } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index) { + public com.google.cloud.speech.v2.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.v2.CustomClass.ClassItem items = 5; */ - public java.util.List - getItemsOrBuilderList() { + public java.util.List + getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { @@ -3049,8 +2805,6 @@ public com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuild } } /** - * - * *
      * A collection of class items.
      * 
@@ -3058,48 +2812,42 @@ public com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuild * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder addItemsBuilder() { - return getItemsFieldBuilder() - .addBuilder(com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()); + return getItemsFieldBuilder().addBuilder( + com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()); } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder addItemsBuilder(int index) { - return getItemsFieldBuilder() - .addBuilder(index, com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()); + public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()); } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public java.util.List - getItemsBuilderList() { + public java.util.List + getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass.ClassItem, - com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, - com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder> + com.google.cloud.speech.v2.CustomClass.ClassItem, com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { - itemsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass.ClassItem, - com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, - com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder>( - items_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.CustomClass.ClassItem, com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder>( + items_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); items_ = null; } return itemsBuilder_; @@ -3107,33 +2855,22 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder addItemsBuilder( private int state_ = 0; /** - * - * *
      * Output only. The CustomClass lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The CustomClass lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3144,35 +2881,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The CustomClass lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.speech.v2.CustomClass.State getState() { - com.google.cloud.speech.v2.CustomClass.State result = - com.google.cloud.speech.v2.CustomClass.State.forNumber(state_); + com.google.cloud.speech.v2.CustomClass.State result = com.google.cloud.speech.v2.CustomClass.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.CustomClass.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The CustomClass lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3186,16 +2912,11 @@ public Builder setState(com.google.cloud.speech.v2.CustomClass.State value) { return this; } /** - * - * *
      * Output only. The CustomClass lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -3207,58 +2928,39 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3274,17 +2976,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -3295,21 +2994,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3322,15 +3017,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -3343,15 +3034,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000020; @@ -3359,48 +3046,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3408,58 +3083,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3475,17 +3131,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3496,21 +3149,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3523,15 +3172,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3544,15 +3189,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000040; @@ -3560,48 +3201,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3609,58 +3238,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3676,17 +3286,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -3697,21 +3304,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -3724,15 +3327,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3745,15 +3344,11 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000080; @@ -3761,48 +3356,36 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -3810,58 +3393,39 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -3877,17 +3441,14 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -3898,21 +3459,17 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && expireTime_ != null - && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + expireTime_ != null && + expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -3925,15 +3482,11 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -3946,15 +3499,11 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000100; @@ -3962,55 +3511,43 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), + getParentForChildren(), + isClean()); expireTime_ = null; } return expireTimeBuilder_; } - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -4019,12 +3556,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } return annotations_; } - private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = - com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -4033,13 +3569,10 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { onChanged(); return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4049,21 +3582,20 @@ public int getAnnotationsCount() {
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public boolean containsAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetAnnotations().getMap().containsKey(key);
     }
-    /** Use {@link #getAnnotationsMap()} instead. */
+    /**
+     * Use {@link #getAnnotationsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAnnotations() {
       return getAnnotationsMap();
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4077,8 +3609,6 @@ public java.util.Map getAnnotationsMap() {
       return internalGetAnnotations().getMap();
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4088,19 +3618,17 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getAnnotationsOrDefault(
+    public /* nullable */
+java.lang.String getAnnotationsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetAnnotations().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4110,25 +3638,23 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+    public java.lang.String getAnnotationsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearAnnotations() {
       bitField0_ = (bitField0_ & ~0x00000200);
-      internalGetMutableAnnotations().getMutableMap().clear();
+      internalGetMutableAnnotations().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4137,22 +3663,23 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 10;
      */
-    public Builder removeAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableAnnotations().getMutableMap().remove(key);
+    public Builder removeAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableAnnotations().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableAnnotations() {
+    public java.util.Map
+        getMutableAnnotations() {
       bitField0_ |= 0x00000200;
       return internalGetMutableAnnotations().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4161,20 +3688,17 @@ public java.util.Map getMutableAnnotations()
      *
      * map<string, string> annotations = 10;
      */
-    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableAnnotations().getMutableMap().put(key, value);
+    public Builder putAnnotations(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableAnnotations().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000200;
       return this;
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4183,16 +3707,16 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> annotations = 10;
      */
-    public Builder putAllAnnotations(java.util.Map values) {
-      internalGetMutableAnnotations().getMutableMap().putAll(values);
+    public Builder putAllAnnotations(
+        java.util.Map values) {
+      internalGetMutableAnnotations().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000200;
       return this;
     }
 
     private java.lang.Object etag_ = "";
     /**
-     *
-     *
      * 
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4200,13 +3724,13 @@ public Builder putAllAnnotations(java.util.Map
      *
      * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
-     *
      * @return The etag.
      */
     public java.lang.String getEtag() {
       java.lang.Object ref = etag_;
       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();
         etag_ = s;
         return s;
@@ -4215,8 +3739,6 @@ public java.lang.String getEtag() {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4224,14 +3746,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -4239,8 +3762,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4248,22 +3769,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4271,7 +3788,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -4281,8 +3797,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4290,14 +3804,12 @@ public Builder clearEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000400; @@ -4305,17 +3817,14 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } - private boolean reconciling_; + private boolean reconciling_ ; /** - * - * *
      * Output only. Whether or not this CustomClass is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -4323,35 +3832,29 @@ public boolean getReconciling() { return reconciling_; } /** - * - * *
      * Output only. Whether or not this CustomClass is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** - * - * *
      * Output only. Whether or not this CustomClass is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -4363,8 +3866,6 @@ public Builder clearReconciling() { private java.lang.Object kmsKeyName_ = ""; /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4372,16 +3873,14 @@ public Builder clearReconciling() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; 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(); kmsKeyName_ = s; return s; @@ -4390,8 +3889,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4399,17 +3896,16 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -4417,8 +3913,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4426,25 +3920,19 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyName_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4452,10 +3940,7 @@ public Builder setKmsKeyName(java.lang.String value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -4465,8 +3950,6 @@ public Builder clearKmsKeyName() { return this; } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4474,17 +3957,13 @@ public Builder clearKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00001000; @@ -4494,8 +3973,6 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyVersionName_ = ""; /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4503,16 +3980,14 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyVersionName. */ public java.lang.String getKmsKeyVersionName() { java.lang.Object ref = kmsKeyVersionName_; 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(); kmsKeyVersionName_ = s; return s; @@ -4521,8 +3996,6 @@ public java.lang.String getKmsKeyVersionName() { } } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4530,17 +4003,16 @@ public java.lang.String getKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyVersionName. */ - public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -4548,8 +4020,6 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { } } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4557,25 +4027,19 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyVersionName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyVersionName_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4583,10 +4047,7 @@ public Builder setKmsKeyVersionName(java.lang.String value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { @@ -4596,8 +4057,6 @@ public Builder clearKmsKeyVersionName() { return this; } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4605,26 +4064,22 @@ public Builder clearKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyVersionNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyVersionName_ = value; bitField0_ |= 0x00002000; 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); } @@ -4634,12 +4089,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.CustomClass) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.CustomClass) private static final com.google.cloud.speech.v2.CustomClass DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.CustomClass(); } @@ -4648,27 +4103,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4683,4 +4138,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java similarity index 75% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java index b30eb892dc41..1104804e72bf 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface CustomClassOrBuilder - extends +public interface CustomClassOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.CustomClass) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the CustomClass.
    * Format:
@@ -33,13 +15,10 @@ public interface CustomClassOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the CustomClass.
    * Format:
@@ -47,76 +26,63 @@ public interface CustomClassOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. System-assigned unique identifier for the CustomClass.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. System-assigned unique identifier for the CustomClass.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * User-settable, human-readable name for the CustomClass. Must be 63
    * characters or less.
    * 
* * string display_name = 4; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * User-settable, human-readable name for the CustomClass. Must be 63
    * characters or less.
    * 
* * string display_name = 4; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - java.util.List getItemsList(); + java.util.List + getItemsList(); /** - * - * *
    * A collection of class items.
    * 
@@ -125,8 +91,6 @@ public interface CustomClassOrBuilder */ com.google.cloud.speech.v2.CustomClass.ClassItem getItems(int index); /** - * - * *
    * A collection of class items.
    * 
@@ -135,211 +99,152 @@ public interface CustomClassOrBuilder */ int getItemsCount(); /** - * - * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - java.util.List + java.util.List getItemsOrBuilderList(); /** - * - * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index); + com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder( + int index); /** - * - * *
    * Output only. The CustomClass lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The CustomClass lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.speech.v2.CustomClass.State getState(); /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * *
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -350,8 +255,6 @@ public interface CustomClassOrBuilder
    */
   int getAnnotationsCount();
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -360,13 +263,15 @@ public interface CustomClassOrBuilder
    *
    * map<string, string> annotations = 10;
    */
-  boolean containsAnnotations(java.lang.String key);
-  /** Use {@link #getAnnotationsMap()} instead. */
+  boolean containsAnnotations(
+      java.lang.String key);
+  /**
+   * Use {@link #getAnnotationsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getAnnotations();
+  java.util.Map
+  getAnnotations();
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -375,10 +280,9 @@ public interface CustomClassOrBuilder
    *
    * map<string, string> annotations = 10;
    */
-  java.util.Map getAnnotationsMap();
+  java.util.Map
+  getAnnotationsMap();
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -388,13 +292,11 @@ public interface CustomClassOrBuilder
    * map<string, string> annotations = 10;
    */
   /* nullable */
-  java.lang.String getAnnotationsOrDefault(
+java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -403,11 +305,10 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> annotations = 10;
    */
-  java.lang.String getAnnotationsOrThrow(java.lang.String key);
+  java.lang.String getAnnotationsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -415,13 +316,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -429,28 +327,23 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Output only. Whether or not this CustomClass is in the process of being
    * updated.
    * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ boolean getReconciling(); /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -458,16 +351,11 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -475,17 +363,13 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -493,16 +377,11 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyVersionName. */ java.lang.String getKmsKeyVersionName(); /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -510,11 +389,9 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyVersionName. */ - com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); + com.google.protobuf.ByteString + getKmsKeyVersionNameBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java similarity index 68% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java index f524a67060a1..5763f51d0eba 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [DeleteCustomClass][google.cloud.speech.v2.Speech.DeleteCustomClass] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
     etag_ = "";
@@ -45,47 +27,40 @@ private DeleteCustomClassRequest() {
 
   @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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.DeleteCustomClassRequest.class,
-            com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder.class);
+            com.google.cloud.speech.v2.DeleteCustomClassRequest.class, com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the CustomClass to delete.
    * 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 @@ -94,33 +69,31 @@ 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 CustomClass to delete.
    * 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 { @@ -131,15 +104,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the deleted CustomClass, but do
    * not actually delete it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -150,15 +120,12 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** - * - * *
    * If set to true, and the CustomClass is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -167,12 +134,9 @@ public boolean getAllowMissing() { } public static final int ETAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -180,7 +144,6 @@ public boolean getAllowMissing() {
    * 
* * string etag = 3; - * * @return The etag. */ @java.lang.Override @@ -189,15 +152,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -205,15 +167,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 3; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -222,7 +185,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,7 +196,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_); } @@ -260,13 +223,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -276,18 +241,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.v2.DeleteCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.DeleteCustomClassRequest other = - (com.google.cloud.speech.v2.DeleteCustomClassRequest) obj; + com.google.cloud.speech.v2.DeleteCustomClassRequest other = (com.google.cloud.speech.v2.DeleteCustomClassRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (getAllowMissing() != other.getAllowMissing()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -302,9 +270,11 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -313,103 +283,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.DeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.DeleteCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.DeleteCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.DeleteCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.DeleteCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.DeleteCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [DeleteCustomClass][google.cloud.speech.v2.Speech.DeleteCustomClass] method.
@@ -417,32 +380,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.DeleteCustomClassRequest)
       com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.DeleteCustomClassRequest.class,
-              com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder.class);
+              com.google.cloud.speech.v2.DeleteCustomClassRequest.class, com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.DeleteCustomClassRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -455,9 +419,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
@@ -476,11 +440,8 @@ public com.google.cloud.speech.v2.DeleteCustomClassRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.DeleteCustomClassRequest buildPartial() {
-      com.google.cloud.speech.v2.DeleteCustomClassRequest result =
-          new com.google.cloud.speech.v2.DeleteCustomClassRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.DeleteCustomClassRequest result = new com.google.cloud.speech.v2.DeleteCustomClassRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -505,39 +466,38 @@ private void buildPartial0(com.google.cloud.speech.v2.DeleteCustomClassRequest r
     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.v2.DeleteCustomClassRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.DeleteCustomClassRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.DeleteCustomClassRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -545,8 +505,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.DeleteCustomClassRequest other) {
-      if (other == com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -589,37 +548,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 26
-            case 32:
-              {
-                allowMissing_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 26
+            case 32: {
+              allowMissing_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -629,29 +583,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the CustomClass to delete.
      * 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; @@ -660,25 +609,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the CustomClass to delete.
      * 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 { @@ -686,43 +632,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the CustomClass to delete.
      * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the CustomClass to delete.
      * 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() { @@ -732,25 +667,19 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the CustomClass to delete.
      * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -758,17 +687,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the deleted CustomClass, but do
      * not actually delete it.
      * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -776,35 +702,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the deleted CustomClass, but do
      * not actually delete it.
      * 
* * bool validate_only = 2; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the deleted CustomClass, but do
      * not actually delete it.
      * 
* * bool validate_only = 2; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -814,17 +734,14 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_; + private boolean allowMissing_ ; /** - * - * *
      * If set to true, and the CustomClass is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -832,35 +749,29 @@ public boolean getAllowMissing() { return allowMissing_; } /** - * - * *
      * If set to true, and the CustomClass is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; - * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If set to true, and the CustomClass is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; - * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -872,8 +783,6 @@ public Builder clearAllowMissing() { private java.lang.Object etag_ = ""; /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -881,13 +790,13 @@ public Builder clearAllowMissing() {
      * 
* * string etag = 3; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -896,8 +805,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -905,14 +812,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 3; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -920,8 +828,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -929,22 +835,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 3; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -952,7 +854,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 3; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -962,8 +863,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -971,23 +870,21 @@ public Builder clearEtag() {
      * 
* * string etag = 3; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000008; 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,12 +894,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.DeleteCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.DeleteCustomClassRequest) private static final com.google.cloud.speech.v2.DeleteCustomClassRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.DeleteCustomClassRequest(); } @@ -1011,27 +908,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1046,4 +943,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.DeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java similarity index 63% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java index 5654d75a604d..8564ba1c46af 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java @@ -1,92 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface DeleteCustomClassRequestOrBuilder - extends +public interface DeleteCustomClassRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.DeleteCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the CustomClass to delete.
    * 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.String getName(); /** - * - * *
    * Required. The name of the CustomClass to delete.
    * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If set, validate the request and preview the deleted CustomClass, but do
    * not actually delete it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * If set to true, and the CustomClass is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ boolean getAllowMissing(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -94,13 +61,10 @@ public interface DeleteCustomClassRequestOrBuilder
    * 
* * string etag = 3; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -108,8 +72,8 @@ public interface DeleteCustomClassRequestOrBuilder
    * 
* * string etag = 3; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java similarity index 68% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java index 76fbfb88e5f5..af0e0d86ccd5 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [DeletePhraseSet][google.cloud.speech.v2.Speech.DeletePhraseSet] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
     etag_ = "";
@@ -45,46 +27,39 @@ private DeletePhraseSetRequest() {
 
   @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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.DeletePhraseSetRequest.class,
-            com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder.class);
+            com.google.cloud.speech.v2.DeletePhraseSetRequest.class, com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the PhraseSet 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 @@ -93,32 +68,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 PhraseSet 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 { @@ -129,15 +102,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the deleted PhraseSet, but do not
    * actually delete it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -148,15 +118,12 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** - * - * *
    * If set to true, and the PhraseSet is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -165,12 +132,9 @@ public boolean getAllowMissing() { } public static final int ETAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -178,7 +142,6 @@ public boolean getAllowMissing() {
    * 
* * string etag = 3; - * * @return The etag. */ @java.lang.Override @@ -187,15 +150,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -203,15 +165,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 3; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -220,7 +183,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,7 +194,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_); } @@ -258,13 +221,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -274,18 +239,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.v2.DeletePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.DeletePhraseSetRequest other = - (com.google.cloud.speech.v2.DeletePhraseSetRequest) obj; + com.google.cloud.speech.v2.DeletePhraseSetRequest other = (com.google.cloud.speech.v2.DeletePhraseSetRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (getAllowMissing() != other.getAllowMissing()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,9 +268,11 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -311,103 +281,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.DeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.DeletePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.DeletePhraseSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.DeletePhraseSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.DeletePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.DeletePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [DeletePhraseSet][google.cloud.speech.v2.Speech.DeletePhraseSet] method.
@@ -415,32 +378,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.DeletePhraseSetRequest)
       com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.DeletePhraseSetRequest.class,
-              com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder.class);
+              com.google.cloud.speech.v2.DeletePhraseSetRequest.class, com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.DeletePhraseSetRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -453,9 +417,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -474,11 +438,8 @@ public com.google.cloud.speech.v2.DeletePhraseSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.DeletePhraseSetRequest buildPartial() {
-      com.google.cloud.speech.v2.DeletePhraseSetRequest result =
-          new com.google.cloud.speech.v2.DeletePhraseSetRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.DeletePhraseSetRequest result = new com.google.cloud.speech.v2.DeletePhraseSetRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -503,39 +464,38 @@ private void buildPartial0(com.google.cloud.speech.v2.DeletePhraseSetRequest res
     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.v2.DeletePhraseSetRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.DeletePhraseSetRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.DeletePhraseSetRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -543,8 +503,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.DeletePhraseSetRequest other) {
-      if (other == com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -587,37 +546,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 26
-            case 32:
-              {
-                allowMissing_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 26
+            case 32: {
+              allowMissing_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -627,28 +581,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the PhraseSet 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; @@ -657,24 +606,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the PhraseSet 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 { @@ -682,41 +628,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the PhraseSet 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the PhraseSet 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() { @@ -726,24 +661,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the PhraseSet 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -751,17 +680,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the deleted PhraseSet, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -769,35 +695,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the deleted PhraseSet, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the deleted PhraseSet, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -807,17 +727,14 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_; + private boolean allowMissing_ ; /** - * - * *
      * If set to true, and the PhraseSet is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -825,35 +742,29 @@ public boolean getAllowMissing() { return allowMissing_; } /** - * - * *
      * If set to true, and the PhraseSet is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; - * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If set to true, and the PhraseSet is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; - * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -865,8 +776,6 @@ public Builder clearAllowMissing() { private java.lang.Object etag_ = ""; /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -874,13 +783,13 @@ public Builder clearAllowMissing() {
      * 
* * string etag = 3; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -889,8 +798,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -898,14 +805,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 3; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -913,8 +821,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -922,22 +828,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 3; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -945,7 +847,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 3; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -955,8 +856,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -964,23 +863,21 @@ public Builder clearEtag() {
      * 
* * string etag = 3; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000008; 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); } @@ -990,12 +887,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.DeletePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.DeletePhraseSetRequest) private static final com.google.cloud.speech.v2.DeletePhraseSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.DeletePhraseSetRequest(); } @@ -1004,27 +901,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1039,4 +936,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.DeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java similarity index 63% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java index 090a269f9461..dc82d1b9ad7f 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java @@ -1,90 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface DeletePhraseSetRequestOrBuilder - extends +public interface DeletePhraseSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.DeletePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the PhraseSet 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.String getName(); /** - * - * *
    * Required. The name of the PhraseSet 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If set, validate the request and preview the deleted PhraseSet, but do not
    * actually delete it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * If set to true, and the PhraseSet is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ boolean getAllowMissing(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -92,13 +59,10 @@ public interface DeletePhraseSetRequestOrBuilder
    * 
* * string etag = 3; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -106,8 +70,8 @@ public interface DeletePhraseSetRequestOrBuilder
    * 
* * string etag = 3; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java similarity index 68% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java index 13142e61a2cf..d089dc1ff61e 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [DeleteRecognizer][google.cloud.speech.v2.Speech.DeleteRecognizer] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.DeleteRecognizerRequest}
  */
-public final class DeleteRecognizerRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteRecognizerRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.DeleteRecognizerRequest)
     DeleteRecognizerRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteRecognizerRequest.newBuilder() to construct.
   private DeleteRecognizerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteRecognizerRequest() {
     name_ = "";
     etag_ = "";
@@ -45,46 +27,39 @@ private DeleteRecognizerRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteRecognizerRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.DeleteRecognizerRequest.class,
-            com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder.class);
+            com.google.cloud.speech.v2.DeleteRecognizerRequest.class, com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the Recognizer to delete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * - * 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 @@ -93,32 +68,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 Recognizer to delete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * - * 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 { @@ -129,15 +102,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the deleted Recognizer, but do not
    * actually delete it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -148,15 +118,12 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** - * - * *
    * If set to true, and the Recognizer is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -165,12 +132,9 @@ public boolean getAllowMissing() { } public static final int ETAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -178,7 +142,6 @@ public boolean getAllowMissing() {
    * 
* * string etag = 3; - * * @return The etag. */ @java.lang.Override @@ -187,15 +150,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -203,15 +165,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 3; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -220,7 +183,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,7 +194,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_); } @@ -258,13 +221,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -274,18 +239,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.v2.DeleteRecognizerRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.DeleteRecognizerRequest other = - (com.google.cloud.speech.v2.DeleteRecognizerRequest) obj; + com.google.cloud.speech.v2.DeleteRecognizerRequest other = (com.google.cloud.speech.v2.DeleteRecognizerRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (getAllowMissing() != other.getAllowMissing()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,9 +268,11 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -311,103 +281,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.DeleteRecognizerRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.DeleteRecognizerRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest 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; } /** - * - * *
    * Request message for the
    * [DeleteRecognizer][google.cloud.speech.v2.Speech.DeleteRecognizer] method.
@@ -415,32 +378,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.DeleteRecognizerRequest}
    */
-  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.v2.DeleteRecognizerRequest)
       com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.DeleteRecognizerRequest.class,
-              com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder.class);
+              com.google.cloud.speech.v2.DeleteRecognizerRequest.class, com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.DeleteRecognizerRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -453,9 +417,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
@@ -474,11 +438,8 @@ public com.google.cloud.speech.v2.DeleteRecognizerRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.DeleteRecognizerRequest buildPartial() {
-      com.google.cloud.speech.v2.DeleteRecognizerRequest result =
-          new com.google.cloud.speech.v2.DeleteRecognizerRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.DeleteRecognizerRequest result = new com.google.cloud.speech.v2.DeleteRecognizerRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -503,39 +464,38 @@ private void buildPartial0(com.google.cloud.speech.v2.DeleteRecognizerRequest re
     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.v2.DeleteRecognizerRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.DeleteRecognizerRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.DeleteRecognizerRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -543,8 +503,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.DeleteRecognizerRequest other) {
-      if (other == com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -587,37 +546,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 26
-            case 32:
-              {
-                allowMissing_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 26
+            case 32: {
+              allowMissing_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -627,28 +581,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the Recognizer to delete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * - * 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; @@ -657,24 +606,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the Recognizer to delete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * - * 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 { @@ -682,41 +628,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the Recognizer to delete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the Recognizer to delete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * - * 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() { @@ -726,24 +661,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the Recognizer to delete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -751,17 +680,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the deleted Recognizer, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -769,35 +695,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the deleted Recognizer, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the deleted Recognizer, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -807,17 +727,14 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_; + private boolean allowMissing_ ; /** - * - * *
      * If set to true, and the Recognizer is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -825,35 +742,29 @@ public boolean getAllowMissing() { return allowMissing_; } /** - * - * *
      * If set to true, and the Recognizer is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; - * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If set to true, and the Recognizer is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; - * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -865,8 +776,6 @@ public Builder clearAllowMissing() { private java.lang.Object etag_ = ""; /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -874,13 +783,13 @@ public Builder clearAllowMissing() {
      * 
* * string etag = 3; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -889,8 +798,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -898,14 +805,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 3; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -913,8 +821,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -922,22 +828,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 3; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -945,7 +847,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 3; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -955,8 +856,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -964,23 +863,21 @@ public Builder clearEtag() {
      * 
* * string etag = 3; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000008; 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); } @@ -990,12 +887,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.DeleteRecognizerRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.DeleteRecognizerRequest) private static final com.google.cloud.speech.v2.DeleteRecognizerRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.DeleteRecognizerRequest(); } @@ -1004,27 +901,27 @@ public static com.google.cloud.speech.v2.DeleteRecognizerRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRecognizerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRecognizerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1039,4 +936,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.DeleteRecognizerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java similarity index 63% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java index 929c1f8a9d5d..7c5e32245a21 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java @@ -1,90 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface DeleteRecognizerRequestOrBuilder - extends +public interface DeleteRecognizerRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.DeleteRecognizerRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the Recognizer to delete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * - * 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 Recognizer to delete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * - * 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(); /** - * - * *
    * If set, validate the request and preview the deleted Recognizer, but do not
    * actually delete it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * If set to true, and the Recognizer is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ boolean getAllowMissing(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -92,13 +59,10 @@ public interface DeleteRecognizerRequestOrBuilder
    * 
* * string etag = 3; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -106,8 +70,8 @@ public interface DeleteRecognizerRequestOrBuilder
    * 
* * string etag = 3; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java similarity index 68% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java index c72aaef3f952..b154198f542b 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java @@ -1,85 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Explicitly specified decoding parameters.
  * 
* * Protobuf type {@code google.cloud.speech.v2.ExplicitDecodingConfig} */ -public final class ExplicitDecodingConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExplicitDecodingConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ExplicitDecodingConfig) ExplicitDecodingConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExplicitDecodingConfig.newBuilder() to construct. private ExplicitDecodingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExplicitDecodingConfig() { encoding_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExplicitDecodingConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.ExplicitDecodingConfig.class, - com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder.class); + com.google.cloud.speech.v2.ExplicitDecodingConfig.class, com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder.class); } /** - * - * *
    * Supported audio data encodings.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding} */ - public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { + public enum AudioEncoding + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value. This value is unused.
      * 
@@ -88,8 +66,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ AUDIO_ENCODING_UNSPECIFIED(0), /** - * - * *
      * Headerless 16-bit signed little-endian PCM samples.
      * 
@@ -98,8 +74,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ LINEAR16(1), /** - * - * *
      * Headerless 8-bit companded mulaw samples.
      * 
@@ -108,8 +82,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ MULAW(2), /** - * - * *
      * Headerless 8-bit companded alaw samples.
      * 
@@ -121,8 +93,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value. This value is unused.
      * 
@@ -131,8 +101,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AUDIO_ENCODING_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Headerless 16-bit signed little-endian PCM samples.
      * 
@@ -141,8 +109,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LINEAR16_VALUE = 1; /** - * - * *
      * Headerless 8-bit companded mulaw samples.
      * 
@@ -151,8 +117,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MULAW_VALUE = 2; /** - * - * *
      * Headerless 8-bit companded alaw samples.
      * 
@@ -161,6 +125,7 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALAW_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -185,53 +150,50 @@ public static AudioEncoding valueOf(int value) { */ public static AudioEncoding forNumber(int value) { switch (value) { - case 0: - return AUDIO_ENCODING_UNSPECIFIED; - case 1: - return LINEAR16; - case 2: - return MULAW; - case 3: - return ALAW; - default: - return null; + case 0: return AUDIO_ENCODING_UNSPECIFIED; + case 1: return LINEAR16; + case 2: return MULAW; + case 3: return ALAW; + 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.v2.ExplicitDecodingConfig.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.speech.v2.ExplicitDecodingConfig.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; @@ -251,49 +213,32 @@ private AudioEncoding(int value) { public static final int ENCODING_FIELD_NUMBER = 1; private int encoding_ = 0; /** - * - * *
    * Required. Encoding of the audio data sent for recognition.
    * 
* - * - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override - public int getEncodingValue() { + @java.lang.Override public int getEncodingValue() { return encoding_; } /** - * - * *
    * Required. Encoding of the audio data sent for recognition.
    * 
* - * - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The encoding. */ - @java.lang.Override - public com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncoding() { - com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding result = - com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.forNumber(encoding_); - return result == null - ? com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncoding() { + com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding result = com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.forNumber(encoding_); + return result == null ? com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.UNRECOGNIZED : result; } public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; private int sampleRateHertz_ = 0; /** - * - * *
    * Sample rate in Hertz of the audio data sent for recognition. Valid
    * values are: 8000-48000. 16000 is optimal. For best results, set the
@@ -306,7 +251,6 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncodi
    * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -317,8 +261,6 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 3; private int audioChannelCount_ = 0; /** - * - * *
    * Number of channels present in the audio data sent for recognition.
    * Supported for the following encodings:
@@ -328,7 +270,6 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 3; - * * @return The audioChannelCount. */ @java.lang.Override @@ -337,7 +278,6 @@ public int getAudioChannelCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -349,11 +289,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.v2.ExplicitDecodingConfig.AudioEncoding - .AUDIO_ENCODING_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (encoding_ != com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { output.writeEnum(1, encoding_); } if (sampleRateHertz_ != 0) { @@ -371,17 +309,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (encoding_ - != com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding - .AUDIO_ENCODING_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, encoding_); + if (encoding_ != com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.AUDIO_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 (audioChannelCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, audioChannelCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, audioChannelCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -391,17 +329,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.v2.ExplicitDecodingConfig)) { return super.equals(obj); } - com.google.cloud.speech.v2.ExplicitDecodingConfig other = - (com.google.cloud.speech.v2.ExplicitDecodingConfig) obj; + com.google.cloud.speech.v2.ExplicitDecodingConfig other = (com.google.cloud.speech.v2.ExplicitDecodingConfig) obj; if (encoding_ != other.encoding_) return false; - if (getSampleRateHertz() != other.getSampleRateHertz()) return false; - if (getAudioChannelCount() != other.getAudioChannelCount()) return false; + if (getSampleRateHertz() + != other.getSampleRateHertz()) return false; + if (getAudioChannelCount() + != other.getAudioChannelCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -425,135 +364,129 @@ public int hashCode() { } public static com.google.cloud.speech.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ExplicitDecodingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ExplicitDecodingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig 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; } /** - * - * *
    * Explicitly specified decoding parameters.
    * 
* * Protobuf type {@code google.cloud.speech.v2.ExplicitDecodingConfig} */ - 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.v2.ExplicitDecodingConfig) com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.ExplicitDecodingConfig.class, - com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder.class); + com.google.cloud.speech.v2.ExplicitDecodingConfig.class, com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder.class); } // Construct using com.google.cloud.speech.v2.ExplicitDecodingConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -565,9 +498,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; } @java.lang.Override @@ -586,11 +519,8 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig build() { @java.lang.Override public com.google.cloud.speech.v2.ExplicitDecodingConfig buildPartial() { - com.google.cloud.speech.v2.ExplicitDecodingConfig result = - new com.google.cloud.speech.v2.ExplicitDecodingConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v2.ExplicitDecodingConfig result = new com.google.cloud.speech.v2.ExplicitDecodingConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -612,39 +542,38 @@ private void buildPartial0(com.google.cloud.speech.v2.ExplicitDecodingConfig res 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.v2.ExplicitDecodingConfig) { - return mergeFrom((com.google.cloud.speech.v2.ExplicitDecodingConfig) other); + return mergeFrom((com.google.cloud.speech.v2.ExplicitDecodingConfig)other); } else { super.mergeFrom(other); return this; @@ -652,8 +581,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.ExplicitDecodingConfig other) { - if (other == com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance()) return this; if (other.encoding_ != 0) { setEncodingValue(other.getEncodingValue()); } @@ -689,31 +617,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - encoding_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - sampleRateHertz_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - audioChannelCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + encoding_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + sampleRateHertz_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + audioChannelCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -723,38 +647,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int encoding_ = 0; /** - * - * *
      * Required. Encoding of the audio data sent for recognition.
      * 
* - * - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override - public int getEncodingValue() { + @java.lang.Override public int getEncodingValue() { return encoding_; } /** - * - * *
      * Required. Encoding of the audio data sent for recognition.
      * 
* - * - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. */ @@ -765,42 +677,28 @@ public Builder setEncodingValue(int value) { return this; } /** - * - * *
      * Required. Encoding of the audio data sent for recognition.
      * 
* - * - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The encoding. */ @java.lang.Override public com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncoding() { - com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding result = - com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.forNumber(encoding_); - return result == null - ? com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.UNRECOGNIZED - : result; + com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding result = com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.forNumber(encoding_); + return result == null ? com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.UNRECOGNIZED : result; } /** - * - * *
      * Required. Encoding of the audio data sent for recognition.
      * 
* - * - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The encoding to set. * @return This builder for chaining. */ - public Builder setEncoding( - com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding value) { + public Builder setEncoding(com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding value) { if (value == null) { throw new NullPointerException(); } @@ -810,16 +708,11 @@ public Builder setEncoding( return this; } /** - * - * *
      * Required. Encoding of the audio data sent for recognition.
      * 
* - * - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearEncoding() { @@ -829,10 +722,8 @@ public Builder clearEncoding() { return this; } - private int sampleRateHertz_; + private int sampleRateHertz_ ; /** - * - * *
      * Sample rate in Hertz of the audio data sent for recognition. Valid
      * values are: 8000-48000. 16000 is optimal. For best results, set the
@@ -845,7 +736,6 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -853,8 +743,6 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** - * - * *
      * Sample rate in Hertz of the audio data sent for recognition. Valid
      * values are: 8000-48000. 16000 is optimal. For best results, set the
@@ -867,20 +755,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Sample rate in Hertz of the audio data sent for recognition. Valid
      * values are: 8000-48000. 16000 is optimal. For best results, set the
@@ -893,7 +778,6 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; - * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { @@ -903,10 +787,8 @@ public Builder clearSampleRateHertz() { return this; } - private int audioChannelCount_; + private int audioChannelCount_ ; /** - * - * *
      * Number of channels present in the audio data sent for recognition.
      * Supported for the following encodings:
@@ -916,7 +798,6 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 3; - * * @return The audioChannelCount. */ @java.lang.Override @@ -924,8 +805,6 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** - * - * *
      * Number of channels present in the audio data sent for recognition.
      * Supported for the following encodings:
@@ -935,20 +814,17 @@ public int getAudioChannelCount() {
      * 
* * int32 audio_channel_count = 3; - * * @param value The audioChannelCount to set. * @return This builder for chaining. */ public Builder setAudioChannelCount(int value) { - + audioChannelCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Number of channels present in the audio data sent for recognition.
      * Supported for the following encodings:
@@ -958,7 +834,6 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 3; - * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { @@ -967,9 +842,9 @@ public Builder clearAudioChannelCount() { 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); } @@ -979,12 +854,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ExplicitDecodingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ExplicitDecodingConfig) private static final com.google.cloud.speech.v2.ExplicitDecodingConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ExplicitDecodingConfig(); } @@ -993,27 +868,27 @@ public static com.google.cloud.speech.v2.ExplicitDecodingConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExplicitDecodingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExplicitDecodingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1028,4 +903,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ExplicitDecodingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java similarity index 64% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java index 6ccfdbb1b03f..153b9dad6346 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java @@ -1,60 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ExplicitDecodingConfigOrBuilder - extends +public interface ExplicitDecodingConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ExplicitDecodingConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Encoding of the audio data sent for recognition.
    * 
* - * - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); /** - * - * *
    * Required. Encoding of the audio data sent for recognition.
    * 
* - * - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The encoding. */ com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncoding(); /** - * - * *
    * Sample rate in Hertz of the audio data sent for recognition. Valid
    * values are: 8000-48000. 16000 is optimal. For best results, set the
@@ -67,14 +39,11 @@ public interface ExplicitDecodingConfigOrBuilder
    * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ int getSampleRateHertz(); /** - * - * *
    * Number of channels present in the audio data sent for recognition.
    * Supported for the following encodings:
@@ -84,7 +53,6 @@ public interface ExplicitDecodingConfigOrBuilder
    * 
* * int32 audio_channel_count = 3; - * * @return The audioChannelCount. */ int getAudioChannelCount(); diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java similarity index 63% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java index 96ab9a86fc23..ed962b92dac6 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [GetConfig][google.cloud.speech.v2.Speech.GetConfig] method.
@@ -28,63 +11,55 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.GetConfigRequest}
  */
-public final class GetConfigRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetConfigRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.GetConfigRequest)
     GetConfigRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetConfigRequest.newBuilder() to construct.
   private GetConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetConfigRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetConfigRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.GetConfigRequest.class,
-            com.google.cloud.speech.v2.GetConfigRequest.Builder.class);
+            com.google.cloud.speech.v2.GetConfigRequest.class, com.google.cloud.speech.v2.GetConfigRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the config to retrieve. There is exactly one config
    * resource per project per location. The expected format is
    * `projects/{project}/locations/{location}/config`.
    * 
* - * - * 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 @@ -93,33 +68,31 @@ 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 config to retrieve. There is exactly one config
    * resource per project per location. The expected format is
    * `projects/{project}/locations/{location}/config`.
    * 
* - * - * 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 { @@ -128,7 +101,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,7 +112,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_); } @@ -164,15 +137,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.v2.GetConfigRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.GetConfigRequest other = - (com.google.cloud.speech.v2.GetConfigRequest) obj; + com.google.cloud.speech.v2.GetConfigRequest other = (com.google.cloud.speech.v2.GetConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -191,104 +164,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.GetConfigRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.GetConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.GetConfigRequest 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.v2.GetConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.GetConfigRequest 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.v2.GetConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.GetConfigRequest 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.v2.GetConfigRequest 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.v2.GetConfigRequest 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.v2.GetConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.GetConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.GetConfigRequest 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.v2.GetConfigRequest 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.v2.GetConfigRequest 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.v2.GetConfigRequest 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; } /** - * - * *
    * Request message for the
    * [GetConfig][google.cloud.speech.v2.Speech.GetConfig] method.
@@ -296,32 +262,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.GetConfigRequest}
    */
-  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.v2.GetConfigRequest)
       com.google.cloud.speech.v2.GetConfigRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.GetConfigRequest.class,
-              com.google.cloud.speech.v2.GetConfigRequest.Builder.class);
+              com.google.cloud.speech.v2.GetConfigRequest.class, com.google.cloud.speech.v2.GetConfigRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.GetConfigRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -331,9 +298,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
     }
 
     @java.lang.Override
@@ -352,11 +319,8 @@ public com.google.cloud.speech.v2.GetConfigRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.GetConfigRequest buildPartial() {
-      com.google.cloud.speech.v2.GetConfigRequest result =
-          new com.google.cloud.speech.v2.GetConfigRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.GetConfigRequest result = new com.google.cloud.speech.v2.GetConfigRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -372,39 +336,38 @@ private void buildPartial0(com.google.cloud.speech.v2.GetConfigRequest result) {
     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.v2.GetConfigRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.GetConfigRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.GetConfigRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -444,19 +407,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -466,29 +427,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the config to retrieve. There is exactly one config
      * resource per project per location. The expected format is
      * `projects/{project}/locations/{location}/config`.
      * 
* - * - * 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; @@ -497,25 +453,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the config to retrieve. There is exactly one config
      * resource per project per location. The expected format is
      * `projects/{project}/locations/{location}/config`.
      * 
* - * - * 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 { @@ -523,43 +476,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the config to retrieve. There is exactly one config
      * resource per project per location. The expected format is
      * `projects/{project}/locations/{location}/config`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the config to retrieve. There is exactly one config
      * resource per project per location. The expected format is
      * `projects/{project}/locations/{location}/config`.
      * 
* - * - * 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() { @@ -569,34 +511,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the config to retrieve. There is exactly one config
      * resource per project per location. The expected format is
      * `projects/{project}/locations/{location}/config`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -606,12 +542,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.GetConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.GetConfigRequest) private static final com.google.cloud.speech.v2.GetConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.GetConfigRequest(); } @@ -620,27 +556,27 @@ public static com.google.cloud.speech.v2.GetConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -655,4 +591,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.GetConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequestOrBuilder.java new file mode 100644 index 000000000000..2d89fa988a4a --- /dev/null +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public interface GetConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the config to retrieve. There is exactly one config
+   * resource per project per location. The expected format is
+   * `projects/{project}/locations/{location}/config`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the config to retrieve. There is exactly one config
+   * resource per project per location. The expected format is
+   * `projects/{project}/locations/{location}/config`.
+   * 
+ * + * 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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java similarity index 63% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java index caea196f7c23..dff71e658be2 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [GetCustomClass][google.cloud.speech.v2.Speech.GetCustomClass] method.
@@ -28,62 +11,54 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.GetCustomClassRequest.class,
-            com.google.cloud.speech.v2.GetCustomClassRequest.Builder.class);
+            com.google.cloud.speech.v2.GetCustomClassRequest.class, com.google.cloud.speech.v2.GetCustomClassRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the CustomClass to retrieve. The expected format is
    * `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 @@ -92,32 +67,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 CustomClass to retrieve. The expected format is
    * `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 { @@ -126,7 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,7 +110,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_); } @@ -162,15 +135,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.v2.GetCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.GetCustomClassRequest other = - (com.google.cloud.speech.v2.GetCustomClassRequest) obj; + com.google.cloud.speech.v2.GetCustomClassRequest other = (com.google.cloud.speech.v2.GetCustomClassRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,104 +162,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.GetCustomClassRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.GetCustomClassRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.GetCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.GetCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.GetCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.GetCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.GetCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.GetCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [GetCustomClass][google.cloud.speech.v2.Speech.GetCustomClass] method.
@@ -294,32 +260,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.GetCustomClassRequest)
       com.google.cloud.speech.v2.GetCustomClassRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.GetCustomClassRequest.class,
-              com.google.cloud.speech.v2.GetCustomClassRequest.Builder.class);
+              com.google.cloud.speech.v2.GetCustomClassRequest.class, com.google.cloud.speech.v2.GetCustomClassRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.GetCustomClassRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -329,9 +296,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
@@ -350,11 +317,8 @@ public com.google.cloud.speech.v2.GetCustomClassRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.GetCustomClassRequest buildPartial() {
-      com.google.cloud.speech.v2.GetCustomClassRequest result =
-          new com.google.cloud.speech.v2.GetCustomClassRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.GetCustomClassRequest result = new com.google.cloud.speech.v2.GetCustomClassRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -370,39 +334,38 @@ private void buildPartial0(com.google.cloud.speech.v2.GetCustomClassRequest resu
     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.v2.GetCustomClassRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.GetCustomClassRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.GetCustomClassRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -410,8 +373,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.GetCustomClassRequest other) {
-      if (other == com.google.cloud.speech.v2.GetCustomClassRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.GetCustomClassRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -443,19 +405,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -465,28 +425,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the CustomClass to retrieve. The expected format is
      * `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; @@ -495,24 +450,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the CustomClass to retrieve. The expected format is
      * `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 { @@ -520,41 +472,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the CustomClass to retrieve. The expected format is
      * `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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the CustomClass to retrieve. The expected format is
      * `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() { @@ -564,33 +505,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the CustomClass to retrieve. The expected format is
      * `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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -600,12 +535,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.GetCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.GetCustomClassRequest) private static final com.google.cloud.speech.v2.GetCustomClassRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.GetCustomClassRequest(); } @@ -614,27 +549,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,4 +584,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.GetCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java new file mode 100644 index 000000000000..802b65dfe8d3 --- /dev/null +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public interface GetCustomClassRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetCustomClassRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the CustomClass to retrieve. The expected format is
+   * `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 CustomClass to retrieve. The expected format is
+   * `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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java similarity index 63% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java index dc32063d3bfc..08a136073ad8 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [GetPhraseSet][google.cloud.speech.v2.Speech.GetPhraseSet] method.
@@ -28,62 +11,54 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.GetPhraseSetRequest.class,
-            com.google.cloud.speech.v2.GetPhraseSetRequest.Builder.class);
+            com.google.cloud.speech.v2.GetPhraseSetRequest.class, com.google.cloud.speech.v2.GetPhraseSetRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the PhraseSet to retrieve. The expected format is
    * `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 @@ -92,32 +67,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 PhraseSet to retrieve. The expected format is
    * `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 { @@ -126,7 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,7 +110,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_); } @@ -162,15 +135,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.v2.GetPhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.GetPhraseSetRequest other = - (com.google.cloud.speech.v2.GetPhraseSetRequest) obj; + com.google.cloud.speech.v2.GetPhraseSetRequest other = (com.google.cloud.speech.v2.GetPhraseSetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,104 +162,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.GetPhraseSetRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.GetPhraseSetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.GetPhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.GetPhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.GetPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.GetPhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [GetPhraseSet][google.cloud.speech.v2.Speech.GetPhraseSet] method.
@@ -294,32 +260,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.GetPhraseSetRequest)
       com.google.cloud.speech.v2.GetPhraseSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.GetPhraseSetRequest.class,
-              com.google.cloud.speech.v2.GetPhraseSetRequest.Builder.class);
+              com.google.cloud.speech.v2.GetPhraseSetRequest.class, com.google.cloud.speech.v2.GetPhraseSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.GetPhraseSetRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -329,9 +296,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -350,11 +317,8 @@ public com.google.cloud.speech.v2.GetPhraseSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.GetPhraseSetRequest buildPartial() {
-      com.google.cloud.speech.v2.GetPhraseSetRequest result =
-          new com.google.cloud.speech.v2.GetPhraseSetRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.GetPhraseSetRequest result = new com.google.cloud.speech.v2.GetPhraseSetRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -370,39 +334,38 @@ private void buildPartial0(com.google.cloud.speech.v2.GetPhraseSetRequest result
     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.v2.GetPhraseSetRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.GetPhraseSetRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.GetPhraseSetRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -442,19 +405,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -464,28 +425,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the PhraseSet to retrieve. The expected format is
      * `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; @@ -494,24 +450,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the PhraseSet to retrieve. The expected format is
      * `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 { @@ -519,41 +472,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the PhraseSet to retrieve. The expected format is
      * `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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the PhraseSet to retrieve. The expected format is
      * `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() { @@ -563,33 +505,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the PhraseSet to retrieve. The expected format is
      * `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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -599,12 +535,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.GetPhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.GetPhraseSetRequest) private static final com.google.cloud.speech.v2.GetPhraseSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.GetPhraseSetRequest(); } @@ -613,27 +549,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,4 +584,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.GetPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java new file mode 100644 index 000000000000..1d4c50701f84 --- /dev/null +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public interface GetPhraseSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetPhraseSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the PhraseSet to retrieve. The expected format is
+   * `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 PhraseSet to retrieve. The expected format is
+   * `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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java similarity index 63% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java index 83b03053f25c..fe8ce0b495e5 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [GetRecognizer][google.cloud.speech.v2.Speech.GetRecognizer] method.
@@ -28,62 +11,54 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.GetRecognizerRequest}
  */
-public final class GetRecognizerRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetRecognizerRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.GetRecognizerRequest)
     GetRecognizerRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetRecognizerRequest.newBuilder() to construct.
   private GetRecognizerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetRecognizerRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetRecognizerRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.GetRecognizerRequest.class,
-            com.google.cloud.speech.v2.GetRecognizerRequest.Builder.class);
+            com.google.cloud.speech.v2.GetRecognizerRequest.class, com.google.cloud.speech.v2.GetRecognizerRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the Recognizer to retrieve. The expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * 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 @@ -92,32 +67,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 Recognizer to retrieve. The expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * 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 { @@ -126,7 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,7 +110,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_); } @@ -162,15 +135,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.v2.GetRecognizerRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.GetRecognizerRequest other = - (com.google.cloud.speech.v2.GetRecognizerRequest) obj; + com.google.cloud.speech.v2.GetRecognizerRequest other = (com.google.cloud.speech.v2.GetRecognizerRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,104 +162,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.GetRecognizerRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.GetRecognizerRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.GetRecognizerRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest 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; } /** - * - * *
    * Request message for the
    * [GetRecognizer][google.cloud.speech.v2.Speech.GetRecognizer] method.
@@ -294,32 +260,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.GetRecognizerRequest}
    */
-  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.v2.GetRecognizerRequest)
       com.google.cloud.speech.v2.GetRecognizerRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.GetRecognizerRequest.class,
-              com.google.cloud.speech.v2.GetRecognizerRequest.Builder.class);
+              com.google.cloud.speech.v2.GetRecognizerRequest.class, com.google.cloud.speech.v2.GetRecognizerRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.GetRecognizerRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -329,9 +296,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
@@ -350,11 +317,8 @@ public com.google.cloud.speech.v2.GetRecognizerRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.GetRecognizerRequest buildPartial() {
-      com.google.cloud.speech.v2.GetRecognizerRequest result =
-          new com.google.cloud.speech.v2.GetRecognizerRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.GetRecognizerRequest result = new com.google.cloud.speech.v2.GetRecognizerRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -370,39 +334,38 @@ private void buildPartial0(com.google.cloud.speech.v2.GetRecognizerRequest resul
     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.v2.GetRecognizerRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.GetRecognizerRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.GetRecognizerRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -410,8 +373,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.GetRecognizerRequest other) {
-      if (other == com.google.cloud.speech.v2.GetRecognizerRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.GetRecognizerRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -443,19 +405,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -465,28 +425,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the Recognizer to retrieve. The expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * 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; @@ -495,24 +450,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the Recognizer to retrieve. The expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * 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 { @@ -520,41 +472,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the Recognizer to retrieve. The expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the Recognizer to retrieve. The expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * 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() { @@ -564,33 +505,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the Recognizer to retrieve. The expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -600,12 +535,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.GetRecognizerRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.GetRecognizerRequest) private static final com.google.cloud.speech.v2.GetRecognizerRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.GetRecognizerRequest(); } @@ -614,27 +549,27 @@ public static com.google.cloud.speech.v2.GetRecognizerRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRecognizerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRecognizerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,4 +584,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.GetRecognizerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java new file mode 100644 index 000000000000..de49eac1d47b --- /dev/null +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public interface GetRecognizerRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetRecognizerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the Recognizer to retrieve. The expected format is
+   * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the Recognizer to retrieve. The expected format is
+   * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
+   * 
+ * + * 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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java index d0147c4fff10..3745f8a25c27 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
@@ -45,46 +27,39 @@ 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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListCustomClassesRequest.class,
-            com.google.cloud.speech.v2.ListCustomClassesRequest.Builder.class);
+            com.google.cloud.speech.v2.ListCustomClassesRequest.class, com.google.cloud.speech.v2.ListCustomClassesRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The project and location of CustomClass resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 @@ -93,32 +68,30 @@ 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 project and location of CustomClass resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 { @@ -129,8 +102,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Number of results per requests. A valid page_size ranges from 0 to 20
    * inclusive. If the page_size is zero or unspecified, a page size of 5 will
@@ -139,7 +110,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -148,12 +118,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -164,7 +131,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -173,15 +139,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
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -192,15 +157,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 { @@ -211,14 +177,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int SHOW_DELETED_FIELD_NUMBER = 4; private boolean showDeleted_ = false; /** - * - * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ @java.lang.Override @@ -227,7 +190,6 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -239,7 +201,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_); } @@ -265,13 +228,15 @@ 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_); } if (showDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, showDeleted_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, showDeleted_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -281,18 +246,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.v2.ListCustomClassesRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListCustomClassesRequest other = - (com.google.cloud.speech.v2.ListCustomClassesRequest) obj; + com.google.cloud.speech.v2.ListCustomClassesRequest other = (com.google.cloud.speech.v2.ListCustomClassesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getShowDeleted() != other.getShowDeleted()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getShowDeleted() + != other.getShowDeleted()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -311,110 +279,104 @@ public int hashCode() { hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShowDeleted()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v2.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.v2.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.v2.ListCustomClassesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.ListCustomClassesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.ListCustomClassesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListCustomClassesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.ListCustomClassesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListCustomClassesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.
@@ -422,32 +384,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.ListCustomClassesRequest)
       com.google.cloud.speech.v2.ListCustomClassesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListCustomClassesRequest.class,
-              com.google.cloud.speech.v2.ListCustomClassesRequest.Builder.class);
+              com.google.cloud.speech.v2.ListCustomClassesRequest.class, com.google.cloud.speech.v2.ListCustomClassesRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListCustomClassesRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -460,9 +423,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
     }
 
     @java.lang.Override
@@ -481,11 +444,8 @@ public com.google.cloud.speech.v2.ListCustomClassesRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListCustomClassesRequest buildPartial() {
-      com.google.cloud.speech.v2.ListCustomClassesRequest result =
-          new com.google.cloud.speech.v2.ListCustomClassesRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.ListCustomClassesRequest result = new com.google.cloud.speech.v2.ListCustomClassesRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -510,39 +470,38 @@ private void buildPartial0(com.google.cloud.speech.v2.ListCustomClassesRequest r
     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.v2.ListCustomClassesRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.ListCustomClassesRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.ListCustomClassesRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -550,8 +509,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListCustomClassesRequest other) {
-      if (other == com.google.cloud.speech.v2.ListCustomClassesRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.ListCustomClassesRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -594,37 +552,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                pageSize_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                showDeleted_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              pageSize_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              pageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              showDeleted_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -634,28 +587,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The project and location of CustomClass resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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; @@ -664,24 +612,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location of CustomClass resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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 { @@ -689,41 +634,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location of CustomClass resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The project and location of CustomClass resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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() { @@ -733,24 +667,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The project and location of CustomClass resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -758,10 +686,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Number of results per requests. A valid page_size ranges from 0 to 20
      * inclusive. If the page_size is zero or unspecified, a page size of 5 will
@@ -770,7 +696,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -778,8 +703,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Number of results per requests. A valid page_size ranges from 0 to 20
      * inclusive. If the page_size is zero or unspecified, a page size of 5 will
@@ -788,20 +711,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Number of results per requests. A valid page_size ranges from 0 to 20
      * inclusive. If the page_size is zero or unspecified, a page size of 5 will
@@ -810,7 +730,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -822,8 +741,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous
      * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -834,13 +751,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 +766,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous
      * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -861,14 +776,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 +792,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous
      * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -888,22 +802,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous
      * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -914,7 +824,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -924,8 +833,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous
      * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -936,14 +843,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -951,16 +856,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private boolean showDeleted_; + private boolean showDeleted_ ; /** - * - * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ @java.lang.Override @@ -968,33 +870,27 @@ public boolean getShowDeleted() { return showDeleted_; } /** - * - * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; - * * @param value The showDeleted to set. * @return This builder for chaining. */ public Builder setShowDeleted(boolean value) { - + showDeleted_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; - * * @return This builder for chaining. */ public Builder clearShowDeleted() { @@ -1003,9 +899,9 @@ public Builder clearShowDeleted() { 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); } @@ -1015,12 +911,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListCustomClassesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListCustomClassesRequest) private static final com.google.cloud.speech.v2.ListCustomClassesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListCustomClassesRequest(); } @@ -1029,27 +925,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1064,4 +960,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ListCustomClassesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java similarity index 68% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java index 86ead68f92f1..9a7d873f753a 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListCustomClassesRequestOrBuilder - extends +public interface ListCustomClassesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListCustomClassesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location of CustomClass resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 project and location of CustomClass resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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(); /** - * - * *
    * Number of results per requests. A valid page_size ranges from 0 to 20
    * inclusive. If the page_size is zero or unspecified, a page size of 5 will
@@ -65,14 +38,11 @@ public interface ListCustomClassesRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -83,13 +53,10 @@ public interface ListCustomClassesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -100,20 +67,17 @@ public interface ListCustomClassesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ boolean getShowDeleted(); diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java index fa3c1ad11026..e71e0ce98404 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Response message for the
  * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
@@ -45,37 +27,33 @@ 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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListCustomClassesResponse.class,
-            com.google.cloud.speech.v2.ListCustomClassesResponse.Builder.class);
+            com.google.cloud.speech.v2.ListCustomClassesResponse.class, com.google.cloud.speech.v2.ListCustomClassesResponse.Builder.class);
   }
 
   public static final int CUSTOM_CLASSES_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List customClasses_;
   /**
-   *
-   *
    * 
    * The list of requested CustomClasses.
    * 
@@ -87,8 +65,6 @@ public java.util.List getCustomClassesLi return customClasses_; } /** - * - * *
    * The list of requested CustomClasses.
    * 
@@ -96,13 +72,11 @@ public java.util.List getCustomClassesLi * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCustomClassesOrBuilderList() { return customClasses_; } /** - * - * *
    * The list of requested CustomClasses.
    * 
@@ -114,8 +88,6 @@ public int getCustomClassesCount() { return customClasses_.size(); } /** - * - * *
    * The list of requested CustomClasses.
    * 
@@ -127,8 +99,6 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) { return customClasses_.get(index); } /** - * - * *
    * The list of requested CustomClasses.
    * 
@@ -136,17 +106,15 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) { * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ @java.lang.Override - public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index) { + public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder( + int index) { return customClasses_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -155,7 +123,6 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -164,15 +131,14 @@ 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][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -181,15 +147,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -198,7 +165,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +176,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)); } @@ -227,7 +194,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_); @@ -240,16 +208,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.v2.ListCustomClassesResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListCustomClassesResponse other = - (com.google.cloud.speech.v2.ListCustomClassesResponse) obj; + com.google.cloud.speech.v2.ListCustomClassesResponse other = (com.google.cloud.speech.v2.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -273,103 +242,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.ListCustomClassesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.ListCustomClassesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.ListCustomClassesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListCustomClassesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.ListCustomClassesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListCustomClassesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Response message for the
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.
@@ -377,32 +339,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.ListCustomClassesResponse)
       com.google.cloud.speech.v2.ListCustomClassesResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListCustomClassesResponse.class,
-              com.google.cloud.speech.v2.ListCustomClassesResponse.Builder.class);
+              com.google.cloud.speech.v2.ListCustomClassesResponse.class, com.google.cloud.speech.v2.ListCustomClassesResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListCustomClassesResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -419,9 +382,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
     }
 
     @java.lang.Override
@@ -440,18 +403,14 @@ public com.google.cloud.speech.v2.ListCustomClassesResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListCustomClassesResponse buildPartial() {
-      com.google.cloud.speech.v2.ListCustomClassesResponse result =
-          new com.google.cloud.speech.v2.ListCustomClassesResponse(this);
+      com.google.cloud.speech.v2.ListCustomClassesResponse result = new com.google.cloud.speech.v2.ListCustomClassesResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v2.ListCustomClassesResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.ListCustomClassesResponse result) {
       if (customClassesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           customClasses_ = java.util.Collections.unmodifiableList(customClasses_);
@@ -474,39 +433,38 @@ private void buildPartial0(com.google.cloud.speech.v2.ListCustomClassesResponse
     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.v2.ListCustomClassesResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.ListCustomClassesResponse) other);
+        return mergeFrom((com.google.cloud.speech.v2.ListCustomClassesResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -514,8 +472,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListCustomClassesResponse other) {
-      if (other == com.google.cloud.speech.v2.ListCustomClassesResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.ListCustomClassesResponse.getDefaultInstance()) return this;
       if (customClassesBuilder_ == null) {
         if (!other.customClasses_.isEmpty()) {
           if (customClasses_.isEmpty()) {
@@ -534,10 +491,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_);
           }
@@ -574,32 +530,30 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.speech.v2.CustomClass m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.CustomClass.parser(), extensionRegistry);
-                if (customClassesBuilder_ == null) {
-                  ensureCustomClassesIsMutable();
-                  customClasses_.add(m);
-                } else {
-                  customClassesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.speech.v2.CustomClass m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.CustomClass.parser(),
+                      extensionRegistry);
+              if (customClassesBuilder_ == null) {
+                ensureCustomClassesIsMutable();
+                customClasses_.add(m);
+              } else {
+                customClassesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              nextPageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -609,29 +563,21 @@ public Builder mergeFrom(
       } // finally
       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.v2.CustomClass,
-            com.google.cloud.speech.v2.CustomClass.Builder,
-            com.google.cloud.speech.v2.CustomClassOrBuilder>
-        customClassesBuilder_;
+        com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> customClassesBuilder_;
 
     /**
-     *
-     *
      * 
      * The list of requested CustomClasses.
      * 
@@ -646,8 +592,6 @@ public java.util.List getCustomClassesLi } } /** - * - * *
      * The list of requested CustomClasses.
      * 
@@ -662,8 +606,6 @@ public int getCustomClassesCount() { } } /** - * - * *
      * The list of requested CustomClasses.
      * 
@@ -678,15 +620,14 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) { } } /** - * - * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public Builder setCustomClasses(int index, com.google.cloud.speech.v2.CustomClass value) { + public Builder setCustomClasses( + int index, com.google.cloud.speech.v2.CustomClass value) { if (customClassesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -700,8 +641,6 @@ public Builder setCustomClasses(int index, com.google.cloud.speech.v2.CustomClas return this; } /** - * - * *
      * The list of requested CustomClasses.
      * 
@@ -720,8 +659,6 @@ public Builder setCustomClasses( return this; } /** - * - * *
      * The list of requested CustomClasses.
      * 
@@ -742,15 +679,14 @@ public Builder addCustomClasses(com.google.cloud.speech.v2.CustomClass value) { return this; } /** - * - * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public Builder addCustomClasses(int index, com.google.cloud.speech.v2.CustomClass value) { + public Builder addCustomClasses( + int index, com.google.cloud.speech.v2.CustomClass value) { if (customClassesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -764,8 +700,6 @@ public Builder addCustomClasses(int index, com.google.cloud.speech.v2.CustomClas return this; } /** - * - * *
      * The list of requested CustomClasses.
      * 
@@ -784,8 +718,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The list of requested CustomClasses.
      * 
@@ -804,8 +736,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The list of requested CustomClasses.
      * 
@@ -816,7 +746,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); @@ -824,8 +755,6 @@ public Builder addAllCustomClasses( return this; } /** - * - * *
      * The list of requested CustomClasses.
      * 
@@ -843,8 +772,6 @@ public Builder clearCustomClasses() { return this; } /** - * - * *
      * The list of requested CustomClasses.
      * 
@@ -862,44 +789,39 @@ public Builder removeCustomClasses(int index) { return this; } /** - * - * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassesBuilder(int index) { + public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassesBuilder( + int index) { return getCustomClassesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index) { + public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder( + int index) { if (customClassesBuilder_ == null) { - return customClasses_.get(index); - } else { + return customClasses_.get(index); } else { return customClassesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public java.util.List - getCustomClassesOrBuilderList() { + public java.util.List + getCustomClassesOrBuilderList() { if (customClassesBuilder_ != null) { return customClassesBuilder_.getMessageOrBuilderList(); } else { @@ -907,8 +829,6 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder } } /** - * - * *
      * The list of requested CustomClasses.
      * 
@@ -916,47 +836,38 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder() { - return getCustomClassesFieldBuilder() - .addBuilder(com.google.cloud.speech.v2.CustomClass.getDefaultInstance()); + return getCustomClassesFieldBuilder().addBuilder( + com.google.cloud.speech.v2.CustomClass.getDefaultInstance()); } /** - * - * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(int index) { - return getCustomClassesFieldBuilder() - .addBuilder(index, com.google.cloud.speech.v2.CustomClass.getDefaultInstance()); + public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder( + int index) { + return getCustomClassesFieldBuilder().addBuilder( + index, com.google.cloud.speech.v2.CustomClass.getDefaultInstance()); } /** - * - * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.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.v2.CustomClass, - com.google.cloud.speech.v2.CustomClass.Builder, - com.google.cloud.speech.v2.CustomClassOrBuilder> + com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> getCustomClassesFieldBuilder() { if (customClassesBuilder_ == null) { - customClassesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, - com.google.cloud.speech.v2.CustomClass.Builder, - com.google.cloud.speech.v2.CustomClassOrBuilder>( + customClassesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder>( customClasses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -968,8 +879,6 @@ public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(in private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -978,13 +887,13 @@ public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(in
      * 
* * 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; @@ -993,8 +902,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -1003,14 +910,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1018,8 +926,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -1028,22 +934,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -1052,7 +954,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1062,8 +963,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -1072,23 +971,21 @@ public Builder clearNextPageToken() {
      * 
* * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1098,12 +995,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListCustomClassesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListCustomClassesResponse) private static final com.google.cloud.speech.v2.ListCustomClassesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListCustomClassesResponse(); } @@ -1112,27 +1009,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1147,4 +1044,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.ListCustomClassesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java index 0177a87b7564..125a49023494 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListCustomClassesResponseOrBuilder - extends +public interface ListCustomClassesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListCustomClassesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of requested CustomClasses.
    * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - java.util.List getCustomClassesList(); + java.util.List + getCustomClassesList(); /** - * - * *
    * The list of requested CustomClasses.
    * 
@@ -44,8 +25,6 @@ public interface ListCustomClassesResponseOrBuilder */ com.google.cloud.speech.v2.CustomClass getCustomClasses(int index); /** - * - * *
    * The list of requested CustomClasses.
    * 
@@ -54,30 +33,25 @@ public interface ListCustomClassesResponseOrBuilder */ int getCustomClassesCount(); /** - * - * *
    * The list of requested CustomClasses.
    * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - java.util.List + java.util.List getCustomClassesOrBuilderList(); /** - * - * *
    * The list of requested CustomClasses.
    * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index); + com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -86,13 +60,10 @@ public interface ListCustomClassesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -101,8 +72,8 @@ public interface ListCustomClassesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java index 067383e3f289..e683c6220027 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.ListPhraseSetsRequest}
  */
-public final class ListPhraseSetsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListPhraseSetsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ListPhraseSetsRequest)
     ListPhraseSetsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListPhraseSetsRequest.newBuilder() to construct.
   private ListPhraseSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListPhraseSetsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -45,46 +27,39 @@ private ListPhraseSetsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListPhraseSetsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListPhraseSetsRequest.class,
-            com.google.cloud.speech.v2.ListPhraseSetsRequest.Builder.class);
+            com.google.cloud.speech.v2.ListPhraseSetsRequest.class, com.google.cloud.speech.v2.ListPhraseSetsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The project and location of PhraseSet resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 @@ -93,32 +68,30 @@ 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 project and location of PhraseSet resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 { @@ -129,8 +102,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of PhraseSets to return. The service may return fewer
    * than this value. If unspecified, at most 20 PhraseSets will be returned.
@@ -138,7 +109,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -147,12 +117,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -163,7 +130,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -172,15 +138,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
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -191,15 +156,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 { @@ -210,14 +176,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int SHOW_DELETED_FIELD_NUMBER = 4; private boolean showDeleted_ = false; /** - * - * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ @java.lang.Override @@ -226,7 +189,6 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,7 +200,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_); } @@ -264,13 +227,15 @@ 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_); } if (showDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, showDeleted_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, showDeleted_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -280,18 +245,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.v2.ListPhraseSetsRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListPhraseSetsRequest other = - (com.google.cloud.speech.v2.ListPhraseSetsRequest) obj; + com.google.cloud.speech.v2.ListPhraseSetsRequest other = (com.google.cloud.speech.v2.ListPhraseSetsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getShowDeleted() != other.getShowDeleted()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getShowDeleted() + != other.getShowDeleted()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -310,110 +278,104 @@ public int hashCode() { hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShowDeleted()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v2.ListPhraseSetsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.ListPhraseSetsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListPhraseSetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListPhraseSetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest 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; } /** - * - * *
    * Request message for the
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.
@@ -421,32 +383,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.ListPhraseSetsRequest}
    */
-  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.v2.ListPhraseSetsRequest)
       com.google.cloud.speech.v2.ListPhraseSetsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListPhraseSetsRequest.class,
-              com.google.cloud.speech.v2.ListPhraseSetsRequest.Builder.class);
+              com.google.cloud.speech.v2.ListPhraseSetsRequest.class, com.google.cloud.speech.v2.ListPhraseSetsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListPhraseSetsRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -459,9 +422,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -480,11 +443,8 @@ public com.google.cloud.speech.v2.ListPhraseSetsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListPhraseSetsRequest buildPartial() {
-      com.google.cloud.speech.v2.ListPhraseSetsRequest result =
-          new com.google.cloud.speech.v2.ListPhraseSetsRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.ListPhraseSetsRequest result = new com.google.cloud.speech.v2.ListPhraseSetsRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -509,39 +469,38 @@ private void buildPartial0(com.google.cloud.speech.v2.ListPhraseSetsRequest resu
     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.v2.ListPhraseSetsRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.ListPhraseSetsRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.ListPhraseSetsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -549,8 +508,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListPhraseSetsRequest other) {
-      if (other == com.google.cloud.speech.v2.ListPhraseSetsRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.ListPhraseSetsRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -593,37 +551,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                pageSize_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                showDeleted_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              pageSize_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              pageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              showDeleted_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -633,28 +586,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The project and location of PhraseSet resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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; @@ -663,24 +611,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location of PhraseSet resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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 { @@ -688,41 +633,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location of PhraseSet resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The project and location of PhraseSet resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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() { @@ -732,24 +666,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The project and location of PhraseSet resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -757,10 +685,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of PhraseSets to return. The service may return fewer
      * than this value. If unspecified, at most 20 PhraseSets will be returned.
@@ -768,7 +694,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -776,8 +701,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of PhraseSets to return. The service may return fewer
      * than this value. If unspecified, at most 20 PhraseSets will be returned.
@@ -785,20 +708,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of PhraseSets to return. The service may return fewer
      * than this value. If unspecified, at most 20 PhraseSets will be returned.
@@ -806,7 +726,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -818,8 +737,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous
      * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -830,13 +747,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; @@ -845,8 +762,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous
      * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -857,14 +772,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 { @@ -872,8 +788,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous
      * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -884,22 +798,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous
      * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -910,7 +820,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -920,8 +829,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous
      * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -932,14 +839,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -947,16 +852,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private boolean showDeleted_; + private boolean showDeleted_ ; /** - * - * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ @java.lang.Override @@ -964,33 +866,27 @@ public boolean getShowDeleted() { return showDeleted_; } /** - * - * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; - * * @param value The showDeleted to set. * @return This builder for chaining. */ public Builder setShowDeleted(boolean value) { - + showDeleted_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; - * * @return This builder for chaining. */ public Builder clearShowDeleted() { @@ -999,9 +895,9 @@ public Builder clearShowDeleted() { 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); } @@ -1011,12 +907,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListPhraseSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListPhraseSetsRequest) private static final com.google.cloud.speech.v2.ListPhraseSetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListPhraseSetsRequest(); } @@ -1025,27 +921,27 @@ public static com.google.cloud.speech.v2.ListPhraseSetsRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1060,4 +956,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ListPhraseSetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java index 0d0d9c9ab953..0aae9ecfa7be 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListPhraseSetsRequestOrBuilder - extends +public interface ListPhraseSetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListPhraseSetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location of PhraseSet resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 project and location of PhraseSet resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 PhraseSets to return. The service may return fewer
    * than this value. If unspecified, at most 20 PhraseSets will be returned.
@@ -64,14 +37,11 @@ public interface ListPhraseSetsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -82,13 +52,10 @@ public interface ListPhraseSetsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -99,20 +66,17 @@ public interface ListPhraseSetsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ boolean getShowDeleted(); diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java index b8ebfa5b3910..e216d41baa1c 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Response message for the
  * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.ListPhraseSetsResponse}
  */
-public final class ListPhraseSetsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListPhraseSetsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ListPhraseSetsResponse)
     ListPhraseSetsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListPhraseSetsResponse.newBuilder() to construct.
   private ListPhraseSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListPhraseSetsResponse() {
     phraseSets_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -45,37 +27,33 @@ private ListPhraseSetsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListPhraseSetsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListPhraseSetsResponse.class,
-            com.google.cloud.speech.v2.ListPhraseSetsResponse.Builder.class);
+            com.google.cloud.speech.v2.ListPhraseSetsResponse.class, com.google.cloud.speech.v2.ListPhraseSetsResponse.Builder.class);
   }
 
   public static final int PHRASE_SETS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List phraseSets_;
   /**
-   *
-   *
    * 
    * The list of requested PhraseSets.
    * 
@@ -87,8 +65,6 @@ public java.util.List getPhraseSetsList() return phraseSets_; } /** - * - * *
    * The list of requested PhraseSets.
    * 
@@ -96,13 +72,11 @@ public java.util.List getPhraseSetsList() * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPhraseSetsOrBuilderList() { return phraseSets_; } /** - * - * *
    * The list of requested PhraseSets.
    * 
@@ -114,8 +88,6 @@ public int getPhraseSetsCount() { return phraseSets_.size(); } /** - * - * *
    * The list of requested PhraseSets.
    * 
@@ -127,8 +99,6 @@ public com.google.cloud.speech.v2.PhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** - * - * *
    * The list of requested PhraseSets.
    * 
@@ -136,17 +106,15 @@ public com.google.cloud.speech.v2.PhraseSet getPhraseSets(int index) { * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ @java.lang.Override - public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) { + public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder( + int index) { return phraseSets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -155,7 +123,6 @@ public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(int
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -164,15 +131,14 @@ 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][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -181,15 +147,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -198,7 +165,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +176,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)); } @@ -227,7 +194,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_); @@ -240,16 +208,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.v2.ListPhraseSetsResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListPhraseSetsResponse other = - (com.google.cloud.speech.v2.ListPhraseSetsResponse) obj; + com.google.cloud.speech.v2.ListPhraseSetsResponse other = (com.google.cloud.speech.v2.ListPhraseSetsResponse) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -273,103 +242,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListPhraseSetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListPhraseSetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse 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; } /** - * - * *
    * Response message for the
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.
@@ -377,32 +339,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.ListPhraseSetsResponse}
    */
-  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.v2.ListPhraseSetsResponse)
       com.google.cloud.speech.v2.ListPhraseSetsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListPhraseSetsResponse.class,
-              com.google.cloud.speech.v2.ListPhraseSetsResponse.Builder.class);
+              com.google.cloud.speech.v2.ListPhraseSetsResponse.class, com.google.cloud.speech.v2.ListPhraseSetsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListPhraseSetsResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -419,9 +382,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -440,18 +403,14 @@ public com.google.cloud.speech.v2.ListPhraseSetsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListPhraseSetsResponse buildPartial() {
-      com.google.cloud.speech.v2.ListPhraseSetsResponse result =
-          new com.google.cloud.speech.v2.ListPhraseSetsResponse(this);
+      com.google.cloud.speech.v2.ListPhraseSetsResponse result = new com.google.cloud.speech.v2.ListPhraseSetsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v2.ListPhraseSetsResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.ListPhraseSetsResponse result) {
       if (phraseSetsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_);
@@ -474,39 +433,38 @@ private void buildPartial0(com.google.cloud.speech.v2.ListPhraseSetsResponse res
     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.v2.ListPhraseSetsResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.ListPhraseSetsResponse) other);
+        return mergeFrom((com.google.cloud.speech.v2.ListPhraseSetsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -514,8 +472,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListPhraseSetsResponse other) {
-      if (other == com.google.cloud.speech.v2.ListPhraseSetsResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.ListPhraseSetsResponse.getDefaultInstance()) return this;
       if (phraseSetsBuilder_ == null) {
         if (!other.phraseSets_.isEmpty()) {
           if (phraseSets_.isEmpty()) {
@@ -534,10 +491,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.ListPhraseSetsResponse 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_);
           }
@@ -574,32 +530,30 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.speech.v2.PhraseSet m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.PhraseSet.parser(), extensionRegistry);
-                if (phraseSetsBuilder_ == null) {
-                  ensurePhraseSetsIsMutable();
-                  phraseSets_.add(m);
-                } else {
-                  phraseSetsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.speech.v2.PhraseSet m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.PhraseSet.parser(),
+                      extensionRegistry);
+              if (phraseSetsBuilder_ == null) {
+                ensurePhraseSetsIsMutable();
+                phraseSets_.add(m);
+              } else {
+                phraseSetsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              nextPageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -609,28 +563,21 @@ public Builder mergeFrom(
       } // finally
       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.v2.PhraseSet,
-            com.google.cloud.speech.v2.PhraseSet.Builder,
-            com.google.cloud.speech.v2.PhraseSetOrBuilder>
-        phraseSetsBuilder_;
+        com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> phraseSetsBuilder_;
 
     /**
-     *
-     *
      * 
      * The list of requested PhraseSets.
      * 
@@ -645,8 +592,6 @@ public java.util.List getPhraseSetsList() } } /** - * - * *
      * The list of requested PhraseSets.
      * 
@@ -661,8 +606,6 @@ public int getPhraseSetsCount() { } } /** - * - * *
      * The list of requested PhraseSets.
      * 
@@ -677,15 +620,14 @@ public com.google.cloud.speech.v2.PhraseSet getPhraseSets(int index) { } } /** - * - * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public Builder setPhraseSets(int index, com.google.cloud.speech.v2.PhraseSet value) { + public Builder setPhraseSets( + int index, com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -699,8 +641,6 @@ public Builder setPhraseSets(int index, com.google.cloud.speech.v2.PhraseSet val return this; } /** - * - * *
      * The list of requested PhraseSets.
      * 
@@ -719,8 +659,6 @@ public Builder setPhraseSets( return this; } /** - * - * *
      * The list of requested PhraseSets.
      * 
@@ -741,15 +679,14 @@ public Builder addPhraseSets(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** - * - * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public Builder addPhraseSets(int index, com.google.cloud.speech.v2.PhraseSet value) { + public Builder addPhraseSets( + int index, com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -763,15 +700,14 @@ public Builder addPhraseSets(int index, com.google.cloud.speech.v2.PhraseSet val return this; } /** - * - * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public Builder addPhraseSets(com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { + public Builder addPhraseSets( + com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { if (phraseSetsBuilder_ == null) { ensurePhraseSetsIsMutable(); phraseSets_.add(builderForValue.build()); @@ -782,8 +718,6 @@ public Builder addPhraseSets(com.google.cloud.speech.v2.PhraseSet.Builder builde return this; } /** - * - * *
      * The list of requested PhraseSets.
      * 
@@ -802,8 +736,6 @@ public Builder addPhraseSets( return this; } /** - * - * *
      * The list of requested PhraseSets.
      * 
@@ -814,7 +746,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); @@ -822,8 +755,6 @@ public Builder addAllPhraseSets( return this; } /** - * - * *
      * The list of requested PhraseSets.
      * 
@@ -841,8 +772,6 @@ public Builder clearPhraseSets() { return this; } /** - * - * *
      * The list of requested PhraseSets.
      * 
@@ -860,44 +789,39 @@ public Builder removePhraseSets(int index) { return this; } /** - * - * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetsBuilder(int index) { + public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetsBuilder( + int index) { return getPhraseSetsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) { + public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder( + int index) { if (phraseSetsBuilder_ == null) { - return phraseSets_.get(index); - } else { + return phraseSets_.get(index); } else { return phraseSetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public java.util.List - getPhraseSetsOrBuilderList() { + public java.util.List + getPhraseSetsOrBuilderList() { if (phraseSetsBuilder_ != null) { return phraseSetsBuilder_.getMessageOrBuilderList(); } else { @@ -905,8 +829,6 @@ public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(int } } /** - * - * *
      * The list of requested PhraseSets.
      * 
@@ -914,47 +836,42 @@ public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(int * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ public com.google.cloud.speech.v2.PhraseSet.Builder addPhraseSetsBuilder() { - return getPhraseSetsFieldBuilder() - .addBuilder(com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()); + return getPhraseSetsFieldBuilder().addBuilder( + com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()); } /** - * - * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.PhraseSet.Builder addPhraseSetsBuilder(int index) { - return getPhraseSetsFieldBuilder() - .addBuilder(index, com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()); + public com.google.cloud.speech.v2.PhraseSet.Builder addPhraseSetsBuilder( + int index) { + return getPhraseSetsFieldBuilder().addBuilder( + index, com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()); } /** - * - * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.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.v2.PhraseSet, - com.google.cloud.speech.v2.PhraseSet.Builder, - com.google.cloud.speech.v2.PhraseSetOrBuilder> + com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> getPhraseSetsFieldBuilder() { if (phraseSetsBuilder_ == null) { - phraseSetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, - com.google.cloud.speech.v2.PhraseSet.Builder, - com.google.cloud.speech.v2.PhraseSetOrBuilder>( - phraseSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + phraseSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder>( + phraseSets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); phraseSets_ = null; } return phraseSetsBuilder_; @@ -962,8 +879,6 @@ public java.util.List getPhraseSet private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -972,13 +887,13 @@ public java.util.List getPhraseSet
      * 
* * 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; @@ -987,8 +902,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -997,14 +910,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1012,8 +926,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -1022,22 +934,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -1046,7 +954,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1056,8 +963,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -1066,23 +971,21 @@ public Builder clearNextPageToken() {
      * 
* * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1092,12 +995,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListPhraseSetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListPhraseSetsResponse) private static final com.google.cloud.speech.v2.ListPhraseSetsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListPhraseSetsResponse(); } @@ -1106,27 +1009,27 @@ public static com.google.cloud.speech.v2.ListPhraseSetsResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1141,4 +1044,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ListPhraseSetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java index 3d9cdca0eefa..aa3460bcc180 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListPhraseSetsResponseOrBuilder - extends +public interface ListPhraseSetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListPhraseSetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of requested PhraseSets.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - java.util.List getPhraseSetsList(); + java.util.List + getPhraseSetsList(); /** - * - * *
    * The list of requested PhraseSets.
    * 
@@ -44,8 +25,6 @@ public interface ListPhraseSetsResponseOrBuilder */ com.google.cloud.speech.v2.PhraseSet getPhraseSets(int index); /** - * - * *
    * The list of requested PhraseSets.
    * 
@@ -54,30 +33,25 @@ public interface ListPhraseSetsResponseOrBuilder */ int getPhraseSetsCount(); /** - * - * *
    * The list of requested PhraseSets.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - java.util.List + java.util.List getPhraseSetsOrBuilderList(); /** - * - * *
    * The list of requested PhraseSets.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index); + com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -86,13 +60,10 @@ public interface ListPhraseSetsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -101,8 +72,8 @@ public interface ListPhraseSetsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java index f5d19cdf4292..ad4edac0cd6c 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.ListRecognizersRequest}
  */
-public final class ListRecognizersRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListRecognizersRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ListRecognizersRequest)
     ListRecognizersRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListRecognizersRequest.newBuilder() to construct.
   private ListRecognizersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListRecognizersRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -45,46 +27,39 @@ private ListRecognizersRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListRecognizersRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListRecognizersRequest.class,
-            com.google.cloud.speech.v2.ListRecognizersRequest.Builder.class);
+            com.google.cloud.speech.v2.ListRecognizersRequest.class, com.google.cloud.speech.v2.ListRecognizersRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The project and location of Recognizers to list. The expected
    * format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 @@ -93,32 +68,30 @@ 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 project and location of Recognizers to list. The expected
    * format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 { @@ -129,8 +102,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of Recognizers to return. The service may return fewer
    * than this value. If unspecified, at most 20 Recognizers will be returned.
@@ -138,7 +109,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -147,12 +117,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -163,7 +130,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -172,15 +138,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
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -191,15 +156,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 { @@ -210,14 +176,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int SHOW_DELETED_FIELD_NUMBER = 4; private boolean showDeleted_ = false; /** - * - * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ @java.lang.Override @@ -226,7 +189,6 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,7 +200,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_); } @@ -264,13 +227,15 @@ 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_); } if (showDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, showDeleted_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, showDeleted_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -280,18 +245,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.v2.ListRecognizersRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListRecognizersRequest other = - (com.google.cloud.speech.v2.ListRecognizersRequest) obj; + com.google.cloud.speech.v2.ListRecognizersRequest other = (com.google.cloud.speech.v2.ListRecognizersRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getShowDeleted() != other.getShowDeleted()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getShowDeleted() + != other.getShowDeleted()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -310,110 +278,104 @@ public int hashCode() { hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShowDeleted()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListRecognizersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListRecognizersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest 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; } /** - * - * *
    * Request message for the
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.
@@ -421,32 +383,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.ListRecognizersRequest}
    */
-  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.v2.ListRecognizersRequest)
       com.google.cloud.speech.v2.ListRecognizersRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListRecognizersRequest.class,
-              com.google.cloud.speech.v2.ListRecognizersRequest.Builder.class);
+              com.google.cloud.speech.v2.ListRecognizersRequest.class, com.google.cloud.speech.v2.ListRecognizersRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListRecognizersRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -459,9 +422,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
     }
 
     @java.lang.Override
@@ -480,11 +443,8 @@ public com.google.cloud.speech.v2.ListRecognizersRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListRecognizersRequest buildPartial() {
-      com.google.cloud.speech.v2.ListRecognizersRequest result =
-          new com.google.cloud.speech.v2.ListRecognizersRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.ListRecognizersRequest result = new com.google.cloud.speech.v2.ListRecognizersRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -509,39 +469,38 @@ private void buildPartial0(com.google.cloud.speech.v2.ListRecognizersRequest res
     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.v2.ListRecognizersRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.ListRecognizersRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.ListRecognizersRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -549,8 +508,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListRecognizersRequest other) {
-      if (other == com.google.cloud.speech.v2.ListRecognizersRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.ListRecognizersRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -593,37 +551,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                pageSize_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                showDeleted_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              pageSize_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              pageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              showDeleted_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -633,28 +586,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The project and location of Recognizers to list. The expected
      * format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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; @@ -663,24 +611,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location of Recognizers to list. The expected
      * format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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 { @@ -688,41 +633,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location of Recognizers to list. The expected
      * format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The project and location of Recognizers to list. The expected
      * format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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() { @@ -732,24 +666,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The project and location of Recognizers to list. The expected
      * format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -757,10 +685,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of Recognizers to return. The service may return fewer
      * than this value. If unspecified, at most 20 Recognizers will be returned.
@@ -768,7 +694,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -776,8 +701,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of Recognizers to return. The service may return fewer
      * than this value. If unspecified, at most 20 Recognizers will be returned.
@@ -785,20 +708,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of Recognizers to return. The service may return fewer
      * than this value. If unspecified, at most 20 Recognizers will be returned.
@@ -806,7 +726,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -818,8 +737,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous
      * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -830,13 +747,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; @@ -845,8 +762,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous
      * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -857,14 +772,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 { @@ -872,8 +788,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous
      * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -884,22 +798,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous
      * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -910,7 +820,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -920,8 +829,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous
      * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -932,14 +839,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -947,16 +852,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private boolean showDeleted_; + private boolean showDeleted_ ; /** - * - * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ @java.lang.Override @@ -964,33 +866,27 @@ public boolean getShowDeleted() { return showDeleted_; } /** - * - * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; - * * @param value The showDeleted to set. * @return This builder for chaining. */ public Builder setShowDeleted(boolean value) { - + showDeleted_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; - * * @return This builder for chaining. */ public Builder clearShowDeleted() { @@ -999,9 +895,9 @@ public Builder clearShowDeleted() { 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); } @@ -1011,12 +907,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListRecognizersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListRecognizersRequest) private static final com.google.cloud.speech.v2.ListRecognizersRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListRecognizersRequest(); } @@ -1025,27 +921,27 @@ public static com.google.cloud.speech.v2.ListRecognizersRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRecognizersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRecognizersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1060,4 +956,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ListRecognizersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java similarity index 66% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java index 96ffdcaa9487..c3e14de54055 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListRecognizersRequestOrBuilder - extends +public interface ListRecognizersRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListRecognizersRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location of Recognizers to list. The expected
    * format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 project and location of Recognizers to list. The expected
    * format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 Recognizers to return. The service may return fewer
    * than this value. If unspecified, at most 20 Recognizers will be returned.
@@ -64,14 +37,11 @@ public interface ListRecognizersRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -82,13 +52,10 @@ public interface ListRecognizersRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -99,20 +66,17 @@ public interface ListRecognizersRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ boolean getShowDeleted(); diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java index e9195797bb14..959437a7ea20 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Response message for the
  * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.ListRecognizersResponse}
  */
-public final class ListRecognizersResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListRecognizersResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ListRecognizersResponse)
     ListRecognizersResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListRecognizersResponse.newBuilder() to construct.
   private ListRecognizersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListRecognizersResponse() {
     recognizers_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -45,37 +27,33 @@ private ListRecognizersResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListRecognizersResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListRecognizersResponse.class,
-            com.google.cloud.speech.v2.ListRecognizersResponse.Builder.class);
+            com.google.cloud.speech.v2.ListRecognizersResponse.class, com.google.cloud.speech.v2.ListRecognizersResponse.Builder.class);
   }
 
   public static final int RECOGNIZERS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List recognizers_;
   /**
-   *
-   *
    * 
    * The list of requested Recognizers.
    * 
@@ -87,8 +65,6 @@ public java.util.List getRecognizersList( return recognizers_; } /** - * - * *
    * The list of requested Recognizers.
    * 
@@ -96,13 +72,11 @@ public java.util.List getRecognizersList( * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRecognizersOrBuilderList() { return recognizers_; } /** - * - * *
    * The list of requested Recognizers.
    * 
@@ -114,8 +88,6 @@ public int getRecognizersCount() { return recognizers_.size(); } /** - * - * *
    * The list of requested Recognizers.
    * 
@@ -127,8 +99,6 @@ public com.google.cloud.speech.v2.Recognizer getRecognizers(int index) { return recognizers_.get(index); } /** - * - * *
    * The list of requested Recognizers.
    * 
@@ -136,17 +106,15 @@ public com.google.cloud.speech.v2.Recognizer getRecognizers(int index) { * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ @java.lang.Override - public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(int index) { + public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder( + int index) { return recognizers_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -155,7 +123,6 @@ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(in
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -164,15 +131,14 @@ 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][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -181,15 +147,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -198,7 +165,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +176,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 < recognizers_.size(); i++) { output.writeMessage(1, recognizers_.get(i)); } @@ -227,7 +194,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < recognizers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, recognizers_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, recognizers_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -240,16 +208,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.v2.ListRecognizersResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListRecognizersResponse other = - (com.google.cloud.speech.v2.ListRecognizersResponse) obj; + com.google.cloud.speech.v2.ListRecognizersResponse other = (com.google.cloud.speech.v2.ListRecognizersResponse) obj; - if (!getRecognizersList().equals(other.getRecognizersList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getRecognizersList() + .equals(other.getRecognizersList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -273,103 +242,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListRecognizersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListRecognizersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse 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; } /** - * - * *
    * Response message for the
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.
@@ -377,32 +339,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.ListRecognizersResponse}
    */
-  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.v2.ListRecognizersResponse)
       com.google.cloud.speech.v2.ListRecognizersResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListRecognizersResponse.class,
-              com.google.cloud.speech.v2.ListRecognizersResponse.Builder.class);
+              com.google.cloud.speech.v2.ListRecognizersResponse.class, com.google.cloud.speech.v2.ListRecognizersResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListRecognizersResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -419,9 +382,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
     }
 
     @java.lang.Override
@@ -440,18 +403,14 @@ public com.google.cloud.speech.v2.ListRecognizersResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListRecognizersResponse buildPartial() {
-      com.google.cloud.speech.v2.ListRecognizersResponse result =
-          new com.google.cloud.speech.v2.ListRecognizersResponse(this);
+      com.google.cloud.speech.v2.ListRecognizersResponse result = new com.google.cloud.speech.v2.ListRecognizersResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v2.ListRecognizersResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.ListRecognizersResponse result) {
       if (recognizersBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           recognizers_ = java.util.Collections.unmodifiableList(recognizers_);
@@ -474,39 +433,38 @@ private void buildPartial0(com.google.cloud.speech.v2.ListRecognizersResponse re
     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.v2.ListRecognizersResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.ListRecognizersResponse) other);
+        return mergeFrom((com.google.cloud.speech.v2.ListRecognizersResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -514,8 +472,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListRecognizersResponse other) {
-      if (other == com.google.cloud.speech.v2.ListRecognizersResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.ListRecognizersResponse.getDefaultInstance()) return this;
       if (recognizersBuilder_ == null) {
         if (!other.recognizers_.isEmpty()) {
           if (recognizers_.isEmpty()) {
@@ -534,10 +491,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.ListRecognizersResponse othe
             recognizersBuilder_ = null;
             recognizers_ = other.recognizers_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            recognizersBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getRecognizersFieldBuilder()
-                    : null;
+            recognizersBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getRecognizersFieldBuilder() : null;
           } else {
             recognizersBuilder_.addAllMessages(other.recognizers_);
           }
@@ -574,32 +530,30 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.speech.v2.Recognizer m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.Recognizer.parser(), extensionRegistry);
-                if (recognizersBuilder_ == null) {
-                  ensureRecognizersIsMutable();
-                  recognizers_.add(m);
-                } else {
-                  recognizersBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.speech.v2.Recognizer m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.Recognizer.parser(),
+                      extensionRegistry);
+              if (recognizersBuilder_ == null) {
+                ensureRecognizersIsMutable();
+                recognizers_.add(m);
+              } else {
+                recognizersBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              nextPageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -609,28 +563,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List recognizers_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureRecognizersIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         recognizers_ = new java.util.ArrayList(recognizers_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.Recognizer,
-            com.google.cloud.speech.v2.Recognizer.Builder,
-            com.google.cloud.speech.v2.RecognizerOrBuilder>
-        recognizersBuilder_;
+        com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> recognizersBuilder_;
 
     /**
-     *
-     *
      * 
      * The list of requested Recognizers.
      * 
@@ -645,8 +592,6 @@ public java.util.List getRecognizersList( } } /** - * - * *
      * The list of requested Recognizers.
      * 
@@ -661,8 +606,6 @@ public int getRecognizersCount() { } } /** - * - * *
      * The list of requested Recognizers.
      * 
@@ -677,15 +620,14 @@ public com.google.cloud.speech.v2.Recognizer getRecognizers(int index) { } } /** - * - * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public Builder setRecognizers(int index, com.google.cloud.speech.v2.Recognizer value) { + public Builder setRecognizers( + int index, com.google.cloud.speech.v2.Recognizer value) { if (recognizersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -699,8 +641,6 @@ public Builder setRecognizers(int index, com.google.cloud.speech.v2.Recognizer v return this; } /** - * - * *
      * The list of requested Recognizers.
      * 
@@ -719,8 +659,6 @@ public Builder setRecognizers( return this; } /** - * - * *
      * The list of requested Recognizers.
      * 
@@ -741,15 +679,14 @@ public Builder addRecognizers(com.google.cloud.speech.v2.Recognizer value) { return this; } /** - * - * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public Builder addRecognizers(int index, com.google.cloud.speech.v2.Recognizer value) { + public Builder addRecognizers( + int index, com.google.cloud.speech.v2.Recognizer value) { if (recognizersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -763,15 +700,14 @@ public Builder addRecognizers(int index, com.google.cloud.speech.v2.Recognizer v return this; } /** - * - * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public Builder addRecognizers(com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { + public Builder addRecognizers( + com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { if (recognizersBuilder_ == null) { ensureRecognizersIsMutable(); recognizers_.add(builderForValue.build()); @@ -782,8 +718,6 @@ public Builder addRecognizers(com.google.cloud.speech.v2.Recognizer.Builder buil return this; } /** - * - * *
      * The list of requested Recognizers.
      * 
@@ -802,8 +736,6 @@ public Builder addRecognizers( return this; } /** - * - * *
      * The list of requested Recognizers.
      * 
@@ -814,7 +746,8 @@ public Builder addAllRecognizers( java.lang.Iterable values) { if (recognizersBuilder_ == null) { ensureRecognizersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recognizers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recognizers_); onChanged(); } else { recognizersBuilder_.addAllMessages(values); @@ -822,8 +755,6 @@ public Builder addAllRecognizers( return this; } /** - * - * *
      * The list of requested Recognizers.
      * 
@@ -841,8 +772,6 @@ public Builder clearRecognizers() { return this; } /** - * - * *
      * The list of requested Recognizers.
      * 
@@ -860,44 +789,39 @@ public Builder removeRecognizers(int index) { return this; } /** - * - * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public com.google.cloud.speech.v2.Recognizer.Builder getRecognizersBuilder(int index) { + public com.google.cloud.speech.v2.Recognizer.Builder getRecognizersBuilder( + int index) { return getRecognizersFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(int index) { + public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder( + int index) { if (recognizersBuilder_ == null) { - return recognizers_.get(index); - } else { + return recognizers_.get(index); } else { return recognizersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public java.util.List - getRecognizersOrBuilderList() { + public java.util.List + getRecognizersOrBuilderList() { if (recognizersBuilder_ != null) { return recognizersBuilder_.getMessageOrBuilderList(); } else { @@ -905,8 +829,6 @@ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(in } } /** - * - * *
      * The list of requested Recognizers.
      * 
@@ -914,48 +836,42 @@ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(in * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ public com.google.cloud.speech.v2.Recognizer.Builder addRecognizersBuilder() { - return getRecognizersFieldBuilder() - .addBuilder(com.google.cloud.speech.v2.Recognizer.getDefaultInstance()); + return getRecognizersFieldBuilder().addBuilder( + com.google.cloud.speech.v2.Recognizer.getDefaultInstance()); } /** - * - * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public com.google.cloud.speech.v2.Recognizer.Builder addRecognizersBuilder(int index) { - return getRecognizersFieldBuilder() - .addBuilder(index, com.google.cloud.speech.v2.Recognizer.getDefaultInstance()); + public com.google.cloud.speech.v2.Recognizer.Builder addRecognizersBuilder( + int index) { + return getRecognizersFieldBuilder().addBuilder( + index, com.google.cloud.speech.v2.Recognizer.getDefaultInstance()); } /** - * - * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public java.util.List - getRecognizersBuilderList() { + public java.util.List + getRecognizersBuilderList() { return getRecognizersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, - com.google.cloud.speech.v2.Recognizer.Builder, - com.google.cloud.speech.v2.RecognizerOrBuilder> + com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> getRecognizersFieldBuilder() { if (recognizersBuilder_ == null) { - recognizersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, - com.google.cloud.speech.v2.Recognizer.Builder, - com.google.cloud.speech.v2.RecognizerOrBuilder>( - recognizers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + recognizersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder>( + recognizers_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); recognizers_ = null; } return recognizersBuilder_; @@ -963,8 +879,6 @@ public com.google.cloud.speech.v2.Recognizer.Builder addRecognizersBuilder(int i private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -973,13 +887,13 @@ public com.google.cloud.speech.v2.Recognizer.Builder addRecognizersBuilder(int i
      * 
* * 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; @@ -988,8 +902,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -998,14 +910,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1013,8 +926,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -1023,22 +934,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -1047,7 +954,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1057,8 +963,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -1067,23 +971,21 @@ public Builder clearNextPageToken() {
      * 
* * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1093,12 +995,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListRecognizersResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListRecognizersResponse) private static final com.google.cloud.speech.v2.ListRecognizersResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListRecognizersResponse(); } @@ -1107,27 +1009,27 @@ public static com.google.cloud.speech.v2.ListRecognizersResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRecognizersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRecognizersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1142,4 +1044,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ListRecognizersResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java index a1760558e343..d50723b13868 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListRecognizersResponseOrBuilder - extends +public interface ListRecognizersResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListRecognizersResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of requested Recognizers.
    * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - java.util.List getRecognizersList(); + java.util.List + getRecognizersList(); /** - * - * *
    * The list of requested Recognizers.
    * 
@@ -44,8 +25,6 @@ public interface ListRecognizersResponseOrBuilder */ com.google.cloud.speech.v2.Recognizer getRecognizers(int index); /** - * - * *
    * The list of requested Recognizers.
    * 
@@ -54,30 +33,25 @@ public interface ListRecognizersResponseOrBuilder */ int getRecognizersCount(); /** - * - * *
    * The list of requested Recognizers.
    * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - java.util.List + java.util.List getRecognizersOrBuilderList(); /** - * - * *
    * The list of requested Recognizers.
    * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(int index); + com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -86,13 +60,10 @@ public interface ListRecognizersResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -101,8 +72,8 @@ public interface ListRecognizersResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java index e6b4a2d3a67f..423fd08b48cf 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Represents the metadata of a long-running operation.
  * 
* * Protobuf type {@code google.cloud.speech.v2.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { resource_ = ""; method_ = ""; @@ -46,36 +28,33 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.OperationMetadata.class, - com.google.cloud.speech.v2.OperationMetadata.Builder.class); + com.google.cloud.speech.v2.OperationMetadata.class, com.google.cloud.speech.v2.OperationMetadata.Builder.class); } private int requestCase_ = 0; private java.lang.Object request_; - public enum RequestCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BATCH_RECOGNIZE_REQUEST(8), CREATE_RECOGNIZER_REQUEST(9), @@ -93,7 +72,6 @@ public enum RequestCase UPDATE_CONFIG_REQUEST(21), REQUEST_NOT_SET(0); private final int value; - private RequestCase(int value) { this.value = value; } @@ -109,61 +87,43 @@ public static RequestCase valueOf(int value) { public static RequestCase forNumber(int value) { switch (value) { - case 8: - return BATCH_RECOGNIZE_REQUEST; - case 9: - return CREATE_RECOGNIZER_REQUEST; - case 10: - return UPDATE_RECOGNIZER_REQUEST; - case 11: - return DELETE_RECOGNIZER_REQUEST; - case 12: - return UNDELETE_RECOGNIZER_REQUEST; - case 13: - return CREATE_CUSTOM_CLASS_REQUEST; - case 14: - return UPDATE_CUSTOM_CLASS_REQUEST; - case 15: - return DELETE_CUSTOM_CLASS_REQUEST; - case 16: - return UNDELETE_CUSTOM_CLASS_REQUEST; - case 17: - return CREATE_PHRASE_SET_REQUEST; - case 18: - return UPDATE_PHRASE_SET_REQUEST; - case 19: - return DELETE_PHRASE_SET_REQUEST; - case 20: - return UNDELETE_PHRASE_SET_REQUEST; - case 21: - return UPDATE_CONFIG_REQUEST; - case 0: - return REQUEST_NOT_SET; - default: - return null; + case 8: return BATCH_RECOGNIZE_REQUEST; + case 9: return CREATE_RECOGNIZER_REQUEST; + case 10: return UPDATE_RECOGNIZER_REQUEST; + case 11: return DELETE_RECOGNIZER_REQUEST; + case 12: return UNDELETE_RECOGNIZER_REQUEST; + case 13: return CREATE_CUSTOM_CLASS_REQUEST; + case 14: return UPDATE_CUSTOM_CLASS_REQUEST; + case 15: return DELETE_CUSTOM_CLASS_REQUEST; + case 16: return UNDELETE_CUSTOM_CLASS_REQUEST; + case 17: return CREATE_PHRASE_SET_REQUEST; + case 18: return UPDATE_PHRASE_SET_REQUEST; + case 19: return DELETE_PHRASE_SET_REQUEST; + case 20: return UNDELETE_PHRASE_SET_REQUEST; + case 21: return UPDATE_CONFIG_REQUEST; + case 0: return REQUEST_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } private int metadataCase_ = 0; private java.lang.Object metadata_; - public enum MetadataCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BATCH_RECOGNIZE_METADATA(23), METADATA_NOT_SET(0); private final int value; - private MetadataCase(int value) { this.value = value; } @@ -179,35 +139,30 @@ public static MetadataCase valueOf(int value) { public static MetadataCase forNumber(int value) { switch (value) { - case 23: - return BATCH_RECOGNIZE_METADATA; - case 0: - return METADATA_NOT_SET; - default: - return null; + case 23: return BATCH_RECOGNIZE_METADATA; + case 0: return METADATA_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public MetadataCase getMetadataCase() { - return MetadataCase.forNumber(metadataCase_); + public MetadataCase + getMetadataCase() { + return MetadataCase.forNumber( + metadataCase_); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -215,14 +170,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -230,8 +182,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time the operation was created.
    * 
@@ -246,14 +196,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * The time the operation was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -261,14 +208,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * The time the operation was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return The updateTime. */ @java.lang.Override @@ -276,8 +220,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The time the operation was last updated.
    * 
@@ -290,18 +232,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int RESOURCE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object resource_ = ""; /** - * - * *
    * The resource path for the target of the operation.
    * 
* * string resource = 3; - * * @return The resource. */ @java.lang.Override @@ -310,29 +248,29 @@ public java.lang.String getResource() { 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(); resource_ = s; return s; } } /** - * - * *
    * The resource path for the target of the operation.
    * 
* * string resource = 3; - * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; 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); resource_ = b; return b; } else { @@ -341,18 +279,14 @@ public com.google.protobuf.ByteString getResourceBytes() { } public static final int METHOD_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object method_ = ""; /** - * - * *
    * The method that triggered the operation.
    * 
* * string method = 4; - * * @return The method. */ @java.lang.Override @@ -361,29 +295,29 @@ public java.lang.String getMethod() { 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(); method_ = s; return s; } } /** - * - * *
    * The method that triggered the operation.
    * 
* * string method = 4; - * * @return The bytes for method. */ @java.lang.Override - public com.google.protobuf.ByteString getMethodBytes() { + public com.google.protobuf.ByteString + getMethodBytes() { java.lang.Object ref = method_; 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); method_ = b; return b; } else { @@ -392,12 +326,9 @@ public com.google.protobuf.ByteString getMethodBytes() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** - * - * *
    * The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -406,7 +337,6 @@ public com.google.protobuf.ByteString getMethodBytes() {
    * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } - * * @return The kmsKeyName. */ @java.lang.Override @@ -415,15 +345,14 @@ public java.lang.String getKmsKeyName() { 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(); kmsKeyName_ = s; return s; } } /** - * - * *
    * The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -432,15 +361,16 @@ public java.lang.String getKmsKeyName() {
    * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -449,12 +379,9 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyVersionName_ = ""; /** - * - * *
    * The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -463,7 +390,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
    * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } - * * @return The kmsKeyVersionName. */ @java.lang.Override @@ -472,15 +398,14 @@ public java.lang.String getKmsKeyVersionName() { 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(); kmsKeyVersionName_ = s; return s; } } /** - * - * *
    * The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -489,15 +414,16 @@ public java.lang.String getKmsKeyVersionName() {
    * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKeyVersionName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -507,14 +433,11 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { public static final int BATCH_RECOGNIZE_REQUEST_FIELD_NUMBER = 8; /** - * - * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; - * * @return Whether the batchRecognizeRequest field is set. */ @java.lang.Override @@ -522,26 +445,21 @@ public boolean hasBatchRecognizeRequest() { return requestCase_ == 8; } /** - * - * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; - * * @return The batchRecognizeRequest. */ @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeRequest getBatchRecognizeRequest() { if (requestCase_ == 8) { - return (com.google.cloud.speech.v2.BatchRecognizeRequest) request_; + return (com.google.cloud.speech.v2.BatchRecognizeRequest) request_; } return com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance(); } /** - * - * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
@@ -549,24 +467,20 @@ public com.google.cloud.speech.v2.BatchRecognizeRequest getBatchRecognizeRequest * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder - getBatchRecognizeRequestOrBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder getBatchRecognizeRequestOrBuilder() { if (requestCase_ == 8) { - return (com.google.cloud.speech.v2.BatchRecognizeRequest) request_; + return (com.google.cloud.speech.v2.BatchRecognizeRequest) request_; } return com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance(); } public static final int CREATE_RECOGNIZER_REQUEST_FIELD_NUMBER = 9; /** - * - * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; - * * @return Whether the createRecognizerRequest field is set. */ @java.lang.Override @@ -574,26 +488,21 @@ public boolean hasCreateRecognizerRequest() { return requestCase_ == 9; } /** - * - * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; - * * @return The createRecognizerRequest. */ @java.lang.Override public com.google.cloud.speech.v2.CreateRecognizerRequest getCreateRecognizerRequest() { if (requestCase_ == 9) { - return (com.google.cloud.speech.v2.CreateRecognizerRequest) request_; + return (com.google.cloud.speech.v2.CreateRecognizerRequest) request_; } return com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance(); } /** - * - * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
@@ -601,24 +510,20 @@ public com.google.cloud.speech.v2.CreateRecognizerRequest getCreateRecognizerReq * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ @java.lang.Override - public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder - getCreateRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder getCreateRecognizerRequestOrBuilder() { if (requestCase_ == 9) { - return (com.google.cloud.speech.v2.CreateRecognizerRequest) request_; + return (com.google.cloud.speech.v2.CreateRecognizerRequest) request_; } return com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance(); } public static final int UPDATE_RECOGNIZER_REQUEST_FIELD_NUMBER = 10; /** - * - * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; - * * @return Whether the updateRecognizerRequest field is set. */ @java.lang.Override @@ -626,26 +531,21 @@ public boolean hasUpdateRecognizerRequest() { return requestCase_ == 10; } /** - * - * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; - * * @return The updateRecognizerRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UpdateRecognizerRequest getUpdateRecognizerRequest() { if (requestCase_ == 10) { - return (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_; + return (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_; } return com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance(); } /** - * - * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
@@ -653,24 +553,20 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequest getUpdateRecognizerReq * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder - getUpdateRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder getUpdateRecognizerRequestOrBuilder() { if (requestCase_ == 10) { - return (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_; + return (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_; } return com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance(); } public static final int DELETE_RECOGNIZER_REQUEST_FIELD_NUMBER = 11; /** - * - * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; - * * @return Whether the deleteRecognizerRequest field is set. */ @java.lang.Override @@ -678,26 +574,21 @@ public boolean hasDeleteRecognizerRequest() { return requestCase_ == 11; } /** - * - * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; - * * @return The deleteRecognizerRequest. */ @java.lang.Override public com.google.cloud.speech.v2.DeleteRecognizerRequest getDeleteRecognizerRequest() { if (requestCase_ == 11) { - return (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_; + return (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_; } return com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance(); } /** - * - * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
@@ -705,25 +596,20 @@ public com.google.cloud.speech.v2.DeleteRecognizerRequest getDeleteRecognizerReq * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ @java.lang.Override - public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder - getDeleteRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder getDeleteRecognizerRequestOrBuilder() { if (requestCase_ == 11) { - return (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_; + return (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_; } return com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance(); } public static final int UNDELETE_RECOGNIZER_REQUEST_FIELD_NUMBER = 12; /** - * - * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; * @return Whether the undeleteRecognizerRequest field is set. */ @java.lang.Override @@ -731,53 +617,42 @@ public boolean hasUndeleteRecognizerRequest() { return requestCase_ == 12; } /** - * - * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; * @return The undeleteRecognizerRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UndeleteRecognizerRequest getUndeleteRecognizerRequest() { if (requestCase_ == 12) { - return (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_; + return (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_; } return com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance(); } /** - * - * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; */ @java.lang.Override - public com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder - getUndeleteRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder getUndeleteRecognizerRequestOrBuilder() { if (requestCase_ == 12) { - return (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_; + return (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_; } return com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance(); } public static final int CREATE_CUSTOM_CLASS_REQUEST_FIELD_NUMBER = 13; /** - * - * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * * @return Whether the createCustomClassRequest field is set. */ @java.lang.Override @@ -785,26 +660,21 @@ public boolean hasCreateCustomClassRequest() { return requestCase_ == 13; } /** - * - * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * * @return The createCustomClassRequest. */ @java.lang.Override public com.google.cloud.speech.v2.CreateCustomClassRequest getCreateCustomClassRequest() { if (requestCase_ == 13) { - return (com.google.cloud.speech.v2.CreateCustomClassRequest) request_; + return (com.google.cloud.speech.v2.CreateCustomClassRequest) request_; } return com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance(); } /** - * - * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
@@ -812,24 +682,20 @@ public com.google.cloud.speech.v2.CreateCustomClassRequest getCreateCustomClassR * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ @java.lang.Override - public com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder - getCreateCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder getCreateCustomClassRequestOrBuilder() { if (requestCase_ == 13) { - return (com.google.cloud.speech.v2.CreateCustomClassRequest) request_; + return (com.google.cloud.speech.v2.CreateCustomClassRequest) request_; } return com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance(); } public static final int UPDATE_CUSTOM_CLASS_REQUEST_FIELD_NUMBER = 14; /** - * - * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * * @return Whether the updateCustomClassRequest field is set. */ @java.lang.Override @@ -837,26 +703,21 @@ public boolean hasUpdateCustomClassRequest() { return requestCase_ == 14; } /** - * - * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * * @return The updateCustomClassRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UpdateCustomClassRequest getUpdateCustomClassRequest() { if (requestCase_ == 14) { - return (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_; + return (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_; } return com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance(); } /** - * - * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
@@ -864,24 +725,20 @@ public com.google.cloud.speech.v2.UpdateCustomClassRequest getUpdateCustomClassR * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder - getUpdateCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder getUpdateCustomClassRequestOrBuilder() { if (requestCase_ == 14) { - return (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_; + return (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_; } return com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance(); } public static final int DELETE_CUSTOM_CLASS_REQUEST_FIELD_NUMBER = 15; /** - * - * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * * @return Whether the deleteCustomClassRequest field is set. */ @java.lang.Override @@ -889,26 +746,21 @@ public boolean hasDeleteCustomClassRequest() { return requestCase_ == 15; } /** - * - * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * * @return The deleteCustomClassRequest. */ @java.lang.Override public com.google.cloud.speech.v2.DeleteCustomClassRequest getDeleteCustomClassRequest() { if (requestCase_ == 15) { - return (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_; + return (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_; } return com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance(); } /** - * - * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
@@ -916,25 +768,20 @@ public com.google.cloud.speech.v2.DeleteCustomClassRequest getDeleteCustomClassR * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ @java.lang.Override - public com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder - getDeleteCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder getDeleteCustomClassRequestOrBuilder() { if (requestCase_ == 15) { - return (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_; + return (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_; } return com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance(); } public static final int UNDELETE_CUSTOM_CLASS_REQUEST_FIELD_NUMBER = 16; /** - * - * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; * @return Whether the undeleteCustomClassRequest field is set. */ @java.lang.Override @@ -942,53 +789,42 @@ public boolean hasUndeleteCustomClassRequest() { return requestCase_ == 16; } /** - * - * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; * @return The undeleteCustomClassRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UndeleteCustomClassRequest getUndeleteCustomClassRequest() { if (requestCase_ == 16) { - return (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_; + return (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_; } return com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance(); } /** - * - * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; */ @java.lang.Override - public com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder - getUndeleteCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder getUndeleteCustomClassRequestOrBuilder() { if (requestCase_ == 16) { - return (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_; + return (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_; } return com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance(); } public static final int CREATE_PHRASE_SET_REQUEST_FIELD_NUMBER = 17; /** - * - * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; - * * @return Whether the createPhraseSetRequest field is set. */ @java.lang.Override @@ -996,26 +832,21 @@ public boolean hasCreatePhraseSetRequest() { return requestCase_ == 17; } /** - * - * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; - * * @return The createPhraseSetRequest. */ @java.lang.Override public com.google.cloud.speech.v2.CreatePhraseSetRequest getCreatePhraseSetRequest() { if (requestCase_ == 17) { - return (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_; } return com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance(); } /** - * - * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
@@ -1023,24 +854,20 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequest getCreatePhraseSetReque * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ @java.lang.Override - public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder - getCreatePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder getCreatePhraseSetRequestOrBuilder() { if (requestCase_ == 17) { - return (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_; } return com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance(); } public static final int UPDATE_PHRASE_SET_REQUEST_FIELD_NUMBER = 18; /** - * - * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; - * * @return Whether the updatePhraseSetRequest field is set. */ @java.lang.Override @@ -1048,26 +875,21 @@ public boolean hasUpdatePhraseSetRequest() { return requestCase_ == 18; } /** - * - * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; - * * @return The updatePhraseSetRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UpdatePhraseSetRequest getUpdatePhraseSetRequest() { if (requestCase_ == 18) { - return (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_; } return com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance(); } /** - * - * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
@@ -1075,24 +897,20 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequest getUpdatePhraseSetReque * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder - getUpdatePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder getUpdatePhraseSetRequestOrBuilder() { if (requestCase_ == 18) { - return (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_; } return com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance(); } public static final int DELETE_PHRASE_SET_REQUEST_FIELD_NUMBER = 19; /** - * - * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; - * * @return Whether the deletePhraseSetRequest field is set. */ @java.lang.Override @@ -1100,26 +918,21 @@ public boolean hasDeletePhraseSetRequest() { return requestCase_ == 19; } /** - * - * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; - * * @return The deletePhraseSetRequest. */ @java.lang.Override public com.google.cloud.speech.v2.DeletePhraseSetRequest getDeletePhraseSetRequest() { if (requestCase_ == 19) { - return (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_; } return com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance(); } /** - * - * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
@@ -1127,24 +940,20 @@ public com.google.cloud.speech.v2.DeletePhraseSetRequest getDeletePhraseSetReque * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ @java.lang.Override - public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder - getDeletePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder getDeletePhraseSetRequestOrBuilder() { if (requestCase_ == 19) { - return (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_; } return com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance(); } public static final int UNDELETE_PHRASE_SET_REQUEST_FIELD_NUMBER = 20; /** - * - * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * * @return Whether the undeletePhraseSetRequest field is set. */ @java.lang.Override @@ -1152,26 +961,21 @@ public boolean hasUndeletePhraseSetRequest() { return requestCase_ == 20; } /** - * - * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * * @return The undeletePhraseSetRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UndeletePhraseSetRequest getUndeletePhraseSetRequest() { if (requestCase_ == 20) { - return (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_; } return com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance(); } /** - * - * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
@@ -1179,24 +983,20 @@ public com.google.cloud.speech.v2.UndeletePhraseSetRequest getUndeletePhraseSetR * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ @java.lang.Override - public com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder - getUndeletePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder getUndeletePhraseSetRequestOrBuilder() { if (requestCase_ == 20) { - return (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_; } return com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance(); } public static final int UPDATE_CONFIG_REQUEST_FIELD_NUMBER = 21; /** - * - * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; - * * @return Whether the updateConfigRequest field is set. */ @java.lang.Override @@ -1204,26 +1004,21 @@ public boolean hasUpdateConfigRequest() { return requestCase_ == 21; } /** - * - * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; - * * @return The updateConfigRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UpdateConfigRequest getUpdateConfigRequest() { if (requestCase_ == 21) { - return (com.google.cloud.speech.v2.UpdateConfigRequest) request_; + return (com.google.cloud.speech.v2.UpdateConfigRequest) request_; } return com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance(); } /** - * - * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
@@ -1233,7 +1028,7 @@ public com.google.cloud.speech.v2.UpdateConfigRequest getUpdateConfigRequest() { @java.lang.Override public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRequestOrBuilder() { if (requestCase_ == 21) { - return (com.google.cloud.speech.v2.UpdateConfigRequest) request_; + return (com.google.cloud.speech.v2.UpdateConfigRequest) request_; } return com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance(); } @@ -1241,15 +1036,12 @@ public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRe public static final int PROGRESS_PERCENT_FIELD_NUMBER = 22; private int progressPercent_ = 0; /** - * - * *
    * The percent progress of the Operation. Values can range from 0-100. If the
    * value is 100, then the operation is finished.
    * 
* * int32 progress_percent = 22; - * * @return The progressPercent. */ @java.lang.Override @@ -1259,14 +1051,11 @@ public int getProgressPercent() { public static final int BATCH_RECOGNIZE_METADATA_FIELD_NUMBER = 23; /** - * - * *
    * Metadata specific to the BatchRecognize method.
    * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; - * * @return Whether the batchRecognizeMetadata field is set. */ @java.lang.Override @@ -1274,26 +1063,21 @@ public boolean hasBatchRecognizeMetadata() { return metadataCase_ == 23; } /** - * - * *
    * Metadata specific to the BatchRecognize method.
    * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; - * * @return The batchRecognizeMetadata. */ @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeMetadata getBatchRecognizeMetadata() { if (metadataCase_ == 23) { - return (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_; + return (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_; } return com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata specific to the BatchRecognize method.
    * 
@@ -1301,16 +1085,14 @@ public com.google.cloud.speech.v2.BatchRecognizeMetadata getBatchRecognizeMetada * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder - getBatchRecognizeMetadataOrBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder getBatchRecognizeMetadataOrBuilder() { if (metadataCase_ == 23) { - return (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_; + return (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_; } return com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1322,7 +1104,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -1399,10 +1182,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resource_); @@ -1417,82 +1202,68 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, kmsKeyVersionName_); } if (requestCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.cloud.speech.v2.BatchRecognizeRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.cloud.speech.v2.BatchRecognizeRequest) request_); } if (requestCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, (com.google.cloud.speech.v2.CreateRecognizerRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (com.google.cloud.speech.v2.CreateRecognizerRequest) request_); } if (requestCase_ == 10) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_); } if (requestCase_ == 11) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_); } if (requestCase_ == 12) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_); } if (requestCase_ == 13) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 13, (com.google.cloud.speech.v2.CreateCustomClassRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, (com.google.cloud.speech.v2.CreateCustomClassRequest) request_); } if (requestCase_ == 14) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 14, (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_); } if (requestCase_ == 15) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 15, (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_); } if (requestCase_ == 16) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 16, (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_); } if (requestCase_ == 17) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 17, (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_); } if (requestCase_ == 18) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 18, (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_); } if (requestCase_ == 19) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 19, (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_); } if (requestCase_ == 20) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 20, (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_); } if (requestCase_ == 21) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 21, (com.google.cloud.speech.v2.UpdateConfigRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, (com.google.cloud.speech.v2.UpdateConfigRequest) request_); } if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(22, progressPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(22, progressPercent_); } if (metadataCase_ == 23) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 23, (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1502,76 +1273,90 @@ 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.v2.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v2.OperationMetadata other = - (com.google.cloud.speech.v2.OperationMetadata) obj; + com.google.cloud.speech.v2.OperationMetadata other = (com.google.cloud.speech.v2.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!getResource().equals(other.getResource())) return false; - if (!getMethod().equals(other.getMethod())) return false; - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; - if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; - if (getProgressPercent() != other.getProgressPercent()) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!getResource() + .equals(other.getResource())) return false; + if (!getMethod() + .equals(other.getMethod())) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; + if (!getKmsKeyVersionName() + .equals(other.getKmsKeyVersionName())) return false; + if (getProgressPercent() + != other.getProgressPercent()) return false; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 8: - if (!getBatchRecognizeRequest().equals(other.getBatchRecognizeRequest())) return false; + if (!getBatchRecognizeRequest() + .equals(other.getBatchRecognizeRequest())) return false; break; case 9: - if (!getCreateRecognizerRequest().equals(other.getCreateRecognizerRequest())) return false; + if (!getCreateRecognizerRequest() + .equals(other.getCreateRecognizerRequest())) return false; break; case 10: - if (!getUpdateRecognizerRequest().equals(other.getUpdateRecognizerRequest())) return false; + if (!getUpdateRecognizerRequest() + .equals(other.getUpdateRecognizerRequest())) return false; break; case 11: - if (!getDeleteRecognizerRequest().equals(other.getDeleteRecognizerRequest())) return false; + if (!getDeleteRecognizerRequest() + .equals(other.getDeleteRecognizerRequest())) return false; break; case 12: - if (!getUndeleteRecognizerRequest().equals(other.getUndeleteRecognizerRequest())) - return false; + if (!getUndeleteRecognizerRequest() + .equals(other.getUndeleteRecognizerRequest())) return false; break; case 13: - if (!getCreateCustomClassRequest().equals(other.getCreateCustomClassRequest())) - return false; + if (!getCreateCustomClassRequest() + .equals(other.getCreateCustomClassRequest())) return false; break; case 14: - if (!getUpdateCustomClassRequest().equals(other.getUpdateCustomClassRequest())) - return false; + if (!getUpdateCustomClassRequest() + .equals(other.getUpdateCustomClassRequest())) return false; break; case 15: - if (!getDeleteCustomClassRequest().equals(other.getDeleteCustomClassRequest())) - return false; + if (!getDeleteCustomClassRequest() + .equals(other.getDeleteCustomClassRequest())) return false; break; case 16: - if (!getUndeleteCustomClassRequest().equals(other.getUndeleteCustomClassRequest())) - return false; + if (!getUndeleteCustomClassRequest() + .equals(other.getUndeleteCustomClassRequest())) return false; break; case 17: - if (!getCreatePhraseSetRequest().equals(other.getCreatePhraseSetRequest())) return false; + if (!getCreatePhraseSetRequest() + .equals(other.getCreatePhraseSetRequest())) return false; break; case 18: - if (!getUpdatePhraseSetRequest().equals(other.getUpdatePhraseSetRequest())) return false; + if (!getUpdatePhraseSetRequest() + .equals(other.getUpdatePhraseSetRequest())) return false; break; case 19: - if (!getDeletePhraseSetRequest().equals(other.getDeletePhraseSetRequest())) return false; + if (!getDeletePhraseSetRequest() + .equals(other.getDeletePhraseSetRequest())) return false; break; case 20: - if (!getUndeletePhraseSetRequest().equals(other.getUndeletePhraseSetRequest())) - return false; + if (!getUndeletePhraseSetRequest() + .equals(other.getUndeletePhraseSetRequest())) return false; break; case 21: - if (!getUpdateConfigRequest().equals(other.getUpdateConfigRequest())) return false; + if (!getUpdateConfigRequest() + .equals(other.getUpdateConfigRequest())) return false; break; case 0: default: @@ -1579,7 +1364,8 @@ public boolean equals(final java.lang.Object obj) { if (!getMetadataCase().equals(other.getMetadataCase())) return false; switch (metadataCase_) { case 23: - if (!getBatchRecognizeMetadata().equals(other.getBatchRecognizeMetadata())) return false; + if (!getBatchRecognizeMetadata() + .equals(other.getBatchRecognizeMetadata())) return false; break; case 0: default: @@ -1686,136 +1472,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.OperationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.OperationMetadata 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.v2.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.OperationMetadata 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.v2.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.OperationMetadata 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.v2.OperationMetadata 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.v2.OperationMetadata 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.v2.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.OperationMetadata 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.v2.OperationMetadata 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.v2.OperationMetadata 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.v2.OperationMetadata 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; } /** - * - * *
    * Represents the metadata of a long-running operation.
    * 
* * Protobuf type {@code google.cloud.speech.v2.OperationMetadata} */ - 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.v2.OperationMetadata) com.google.cloud.speech.v2.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.OperationMetadata.class, - com.google.cloud.speech.v2.OperationMetadata.Builder.class); + com.google.cloud.speech.v2.OperationMetadata.class, com.google.cloud.speech.v2.OperationMetadata.Builder.class); } // Construct using com.google.cloud.speech.v2.OperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1888,9 +1668,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; } @java.lang.Override @@ -1909,11 +1689,8 @@ public com.google.cloud.speech.v2.OperationMetadata build() { @java.lang.Override public com.google.cloud.speech.v2.OperationMetadata buildPartial() { - com.google.cloud.speech.v2.OperationMetadata result = - new com.google.cloud.speech.v2.OperationMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v2.OperationMetadata result = new com.google.cloud.speech.v2.OperationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -1922,10 +1699,14 @@ public com.google.cloud.speech.v2.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.speech.v2.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.resource_ = resource_; @@ -1947,51 +1728,66 @@ private void buildPartial0(com.google.cloud.speech.v2.OperationMetadata result) private void buildPartialOneofs(com.google.cloud.speech.v2.OperationMetadata result) { result.requestCase_ = requestCase_; result.request_ = this.request_; - if (requestCase_ == 8 && batchRecognizeRequestBuilder_ != null) { + if (requestCase_ == 8 && + batchRecognizeRequestBuilder_ != null) { result.request_ = batchRecognizeRequestBuilder_.build(); } - if (requestCase_ == 9 && createRecognizerRequestBuilder_ != null) { + if (requestCase_ == 9 && + createRecognizerRequestBuilder_ != null) { result.request_ = createRecognizerRequestBuilder_.build(); } - if (requestCase_ == 10 && updateRecognizerRequestBuilder_ != null) { + if (requestCase_ == 10 && + updateRecognizerRequestBuilder_ != null) { result.request_ = updateRecognizerRequestBuilder_.build(); } - if (requestCase_ == 11 && deleteRecognizerRequestBuilder_ != null) { + if (requestCase_ == 11 && + deleteRecognizerRequestBuilder_ != null) { result.request_ = deleteRecognizerRequestBuilder_.build(); } - if (requestCase_ == 12 && undeleteRecognizerRequestBuilder_ != null) { + if (requestCase_ == 12 && + undeleteRecognizerRequestBuilder_ != null) { result.request_ = undeleteRecognizerRequestBuilder_.build(); } - if (requestCase_ == 13 && createCustomClassRequestBuilder_ != null) { + if (requestCase_ == 13 && + createCustomClassRequestBuilder_ != null) { result.request_ = createCustomClassRequestBuilder_.build(); } - if (requestCase_ == 14 && updateCustomClassRequestBuilder_ != null) { + if (requestCase_ == 14 && + updateCustomClassRequestBuilder_ != null) { result.request_ = updateCustomClassRequestBuilder_.build(); } - if (requestCase_ == 15 && deleteCustomClassRequestBuilder_ != null) { + if (requestCase_ == 15 && + deleteCustomClassRequestBuilder_ != null) { result.request_ = deleteCustomClassRequestBuilder_.build(); } - if (requestCase_ == 16 && undeleteCustomClassRequestBuilder_ != null) { + if (requestCase_ == 16 && + undeleteCustomClassRequestBuilder_ != null) { result.request_ = undeleteCustomClassRequestBuilder_.build(); } - if (requestCase_ == 17 && createPhraseSetRequestBuilder_ != null) { + if (requestCase_ == 17 && + createPhraseSetRequestBuilder_ != null) { result.request_ = createPhraseSetRequestBuilder_.build(); } - if (requestCase_ == 18 && updatePhraseSetRequestBuilder_ != null) { + if (requestCase_ == 18 && + updatePhraseSetRequestBuilder_ != null) { result.request_ = updatePhraseSetRequestBuilder_.build(); } - if (requestCase_ == 19 && deletePhraseSetRequestBuilder_ != null) { + if (requestCase_ == 19 && + deletePhraseSetRequestBuilder_ != null) { result.request_ = deletePhraseSetRequestBuilder_.build(); } - if (requestCase_ == 20 && undeletePhraseSetRequestBuilder_ != null) { + if (requestCase_ == 20 && + undeletePhraseSetRequestBuilder_ != null) { result.request_ = undeletePhraseSetRequestBuilder_.build(); } - if (requestCase_ == 21 && updateConfigRequestBuilder_ != null) { + if (requestCase_ == 21 && + updateConfigRequestBuilder_ != null) { result.request_ = updateConfigRequestBuilder_.build(); } result.metadataCase_ = metadataCase_; result.metadata_ = this.metadata_; - if (metadataCase_ == 23 && batchRecognizeMetadataBuilder_ != null) { + if (metadataCase_ == 23 && + batchRecognizeMetadataBuilder_ != null) { result.metadata_ = batchRecognizeMetadataBuilder_.build(); } } @@ -2000,39 +1796,38 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.OperationMetadata res 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.v2.OperationMetadata) { - return mergeFrom((com.google.cloud.speech.v2.OperationMetadata) other); + return mergeFrom((com.google.cloud.speech.v2.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -2071,91 +1866,74 @@ public Builder mergeFrom(com.google.cloud.speech.v2.OperationMetadata other) { setProgressPercent(other.getProgressPercent()); } switch (other.getRequestCase()) { - case BATCH_RECOGNIZE_REQUEST: - { - mergeBatchRecognizeRequest(other.getBatchRecognizeRequest()); - break; - } - case CREATE_RECOGNIZER_REQUEST: - { - mergeCreateRecognizerRequest(other.getCreateRecognizerRequest()); - break; - } - case UPDATE_RECOGNIZER_REQUEST: - { - mergeUpdateRecognizerRequest(other.getUpdateRecognizerRequest()); - break; - } - case DELETE_RECOGNIZER_REQUEST: - { - mergeDeleteRecognizerRequest(other.getDeleteRecognizerRequest()); - break; - } - case UNDELETE_RECOGNIZER_REQUEST: - { - mergeUndeleteRecognizerRequest(other.getUndeleteRecognizerRequest()); - break; - } - case CREATE_CUSTOM_CLASS_REQUEST: - { - mergeCreateCustomClassRequest(other.getCreateCustomClassRequest()); - break; - } - case UPDATE_CUSTOM_CLASS_REQUEST: - { - mergeUpdateCustomClassRequest(other.getUpdateCustomClassRequest()); - break; - } - case DELETE_CUSTOM_CLASS_REQUEST: - { - mergeDeleteCustomClassRequest(other.getDeleteCustomClassRequest()); - break; - } - case UNDELETE_CUSTOM_CLASS_REQUEST: - { - mergeUndeleteCustomClassRequest(other.getUndeleteCustomClassRequest()); - break; - } - case CREATE_PHRASE_SET_REQUEST: - { - mergeCreatePhraseSetRequest(other.getCreatePhraseSetRequest()); - break; - } - case UPDATE_PHRASE_SET_REQUEST: - { - mergeUpdatePhraseSetRequest(other.getUpdatePhraseSetRequest()); - break; - } - case DELETE_PHRASE_SET_REQUEST: - { - mergeDeletePhraseSetRequest(other.getDeletePhraseSetRequest()); - break; - } - case UNDELETE_PHRASE_SET_REQUEST: - { - mergeUndeletePhraseSetRequest(other.getUndeletePhraseSetRequest()); - break; - } - case UPDATE_CONFIG_REQUEST: - { - mergeUpdateConfigRequest(other.getUpdateConfigRequest()); - break; - } - case REQUEST_NOT_SET: - { - break; - } + case BATCH_RECOGNIZE_REQUEST: { + mergeBatchRecognizeRequest(other.getBatchRecognizeRequest()); + break; + } + case CREATE_RECOGNIZER_REQUEST: { + mergeCreateRecognizerRequest(other.getCreateRecognizerRequest()); + break; + } + case UPDATE_RECOGNIZER_REQUEST: { + mergeUpdateRecognizerRequest(other.getUpdateRecognizerRequest()); + break; + } + case DELETE_RECOGNIZER_REQUEST: { + mergeDeleteRecognizerRequest(other.getDeleteRecognizerRequest()); + break; + } + case UNDELETE_RECOGNIZER_REQUEST: { + mergeUndeleteRecognizerRequest(other.getUndeleteRecognizerRequest()); + break; + } + case CREATE_CUSTOM_CLASS_REQUEST: { + mergeCreateCustomClassRequest(other.getCreateCustomClassRequest()); + break; + } + case UPDATE_CUSTOM_CLASS_REQUEST: { + mergeUpdateCustomClassRequest(other.getUpdateCustomClassRequest()); + break; + } + case DELETE_CUSTOM_CLASS_REQUEST: { + mergeDeleteCustomClassRequest(other.getDeleteCustomClassRequest()); + break; + } + case UNDELETE_CUSTOM_CLASS_REQUEST: { + mergeUndeleteCustomClassRequest(other.getUndeleteCustomClassRequest()); + break; + } + case CREATE_PHRASE_SET_REQUEST: { + mergeCreatePhraseSetRequest(other.getCreatePhraseSetRequest()); + break; + } + case UPDATE_PHRASE_SET_REQUEST: { + mergeUpdatePhraseSetRequest(other.getUpdatePhraseSetRequest()); + break; + } + case DELETE_PHRASE_SET_REQUEST: { + mergeDeletePhraseSetRequest(other.getDeletePhraseSetRequest()); + break; + } + case UNDELETE_PHRASE_SET_REQUEST: { + mergeUndeletePhraseSetRequest(other.getUndeletePhraseSetRequest()); + break; + } + case UPDATE_CONFIG_REQUEST: { + mergeUpdateConfigRequest(other.getUpdateConfigRequest()); + break; + } + case REQUEST_NOT_SET: { + break; + } } switch (other.getMetadataCase()) { - case BATCH_RECOGNIZE_METADATA: - { - mergeBatchRecognizeMetadata(other.getBatchRecognizeMetadata()); - break; - } - case METADATA_NOT_SET: - { - break; - } + case BATCH_RECOGNIZE_METADATA: { + mergeBatchRecognizeMetadata(other.getBatchRecognizeMetadata()); + break; + } + case METADATA_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2183,160 +1961,156 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - resource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - method_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: - { - kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 58: - { - kmsKeyVersionName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: - { - input.readMessage( - getBatchRecognizeRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 8; - break; - } // case 66 - case 74: - { - input.readMessage( - getCreateRecognizerRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 9; - break; - } // case 74 - case 82: - { - input.readMessage( - getUpdateRecognizerRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 10; - break; - } // case 82 - case 90: - { - input.readMessage( - getDeleteRecognizerRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 11; - break; - } // case 90 - case 98: - { - input.readMessage( - getUndeleteRecognizerRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 12; - break; - } // case 98 - case 106: - { - input.readMessage( - getCreateCustomClassRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 13; - break; - } // case 106 - case 114: - { - input.readMessage( - getUpdateCustomClassRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 14; - break; - } // case 114 - case 122: - { - input.readMessage( - getDeleteCustomClassRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 15; - break; - } // case 122 - case 130: - { - input.readMessage( - getUndeleteCustomClassRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 16; - break; - } // case 130 - case 138: - { - input.readMessage( - getCreatePhraseSetRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 17; - break; - } // case 138 - case 146: - { - input.readMessage( - getUpdatePhraseSetRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 18; - break; - } // case 146 - case 154: - { - input.readMessage( - getDeletePhraseSetRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 19; - break; - } // case 154 - case 162: - { - input.readMessage( - getUndeletePhraseSetRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 20; - break; - } // case 162 - case 170: - { - input.readMessage( - getUpdateConfigRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 21; - break; - } // case 170 - case 176: - { - progressPercent_ = input.readInt32(); - bitField0_ |= 0x00100000; - break; - } // case 176 - case 186: - { - input.readMessage( - getBatchRecognizeMetadataFieldBuilder().getBuilder(), extensionRegistry); - metadataCase_ = 23; - break; - } // case 186 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + method_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: { + kmsKeyVersionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: { + input.readMessage( + getBatchRecognizeRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 8; + break; + } // case 66 + case 74: { + input.readMessage( + getCreateRecognizerRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 9; + break; + } // case 74 + case 82: { + input.readMessage( + getUpdateRecognizerRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 10; + break; + } // case 82 + case 90: { + input.readMessage( + getDeleteRecognizerRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 11; + break; + } // case 90 + case 98: { + input.readMessage( + getUndeleteRecognizerRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 12; + break; + } // case 98 + case 106: { + input.readMessage( + getCreateCustomClassRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 13; + break; + } // case 106 + case 114: { + input.readMessage( + getUpdateCustomClassRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 14; + break; + } // case 114 + case 122: { + input.readMessage( + getDeleteCustomClassRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 15; + break; + } // case 122 + case 130: { + input.readMessage( + getUndeleteCustomClassRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 16; + break; + } // case 130 + case 138: { + input.readMessage( + getCreatePhraseSetRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 17; + break; + } // case 138 + case 146: { + input.readMessage( + getUpdatePhraseSetRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 18; + break; + } // case 146 + case 154: { + input.readMessage( + getDeletePhraseSetRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 19; + break; + } // case 154 + case 162: { + input.readMessage( + getUndeletePhraseSetRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 20; + break; + } // case 162 + case 170: { + input.readMessage( + getUpdateConfigRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 21; + break; + } // case 170 + case 176: { + progressPercent_ = input.readInt32(); + bitField0_ |= 0x00100000; + break; + } // case 176 + case 186: { + input.readMessage( + getBatchRecognizeMetadataFieldBuilder().getBuilder(), + extensionRegistry); + metadataCase_ = 23; + break; + } // case 186 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2346,12 +2120,12 @@ public Builder mergeFrom( } // finally return this; } - private int requestCase_ = 0; private java.lang.Object request_; - - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public Builder clearRequest() { @@ -2363,9 +2137,10 @@ public Builder clearRequest() { private int metadataCase_ = 0; private java.lang.Object metadata_; - - public MetadataCase getMetadataCase() { - return MetadataCase.forNumber(metadataCase_); + public MetadataCase + getMetadataCase() { + return MetadataCase.forNumber( + metadataCase_); } public Builder clearMetadata() { @@ -2379,47 +2154,34 @@ public Builder clearMetadata() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The time the operation was created.
      * 
@@ -2440,15 +2202,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2459,8 +2220,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -2469,9 +2228,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2484,8 +2243,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -2503,8 +2260,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -2517,8 +2272,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the operation was created.
      * 
@@ -2529,14 +2282,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time the operation was created.
      * 
@@ -2544,17 +2294,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2562,47 +2309,34 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * The time the operation was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The time the operation was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * The time the operation was last updated.
      * 
@@ -2623,15 +2357,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 2; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -2642,8 +2375,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time the operation was last updated.
      * 
@@ -2652,9 +2383,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -2667,8 +2398,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was last updated.
      * 
@@ -2686,8 +2415,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * The time the operation was last updated.
      * 
@@ -2700,8 +2427,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the operation was last updated.
      * 
@@ -2712,14 +2437,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * The time the operation was last updated.
      * 
@@ -2727,17 +2449,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2745,20 +2464,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object resource_ = ""; /** - * - * *
      * The resource path for the target of the operation.
      * 
* * string resource = 3; - * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; 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(); resource_ = s; return s; @@ -2767,21 +2484,20 @@ public java.lang.String getResource() { } } /** - * - * *
      * The resource path for the target of the operation.
      * 
* * string resource = 3; - * * @return The bytes for resource. */ - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; 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); resource_ = b; return b; } else { @@ -2789,35 +2505,28 @@ public com.google.protobuf.ByteString getResourceBytes() { } } /** - * - * *
      * The resource path for the target of the operation.
      * 
* * string resource = 3; - * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResource( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } resource_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The resource path for the target of the operation.
      * 
* * string resource = 3; - * * @return This builder for chaining. */ public Builder clearResource() { @@ -2827,21 +2536,17 @@ public Builder clearResource() { return this; } /** - * - * *
      * The resource path for the target of the operation.
      * 
* * string resource = 3; - * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resource_ = value; bitField0_ |= 0x00000004; @@ -2851,20 +2556,18 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { private java.lang.Object method_ = ""; /** - * - * *
      * The method that triggered the operation.
      * 
* * string method = 4; - * * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; 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(); method_ = s; return s; @@ -2873,21 +2576,20 @@ public java.lang.String getMethod() { } } /** - * - * *
      * The method that triggered the operation.
      * 
* * string method = 4; - * * @return The bytes for method. */ - public com.google.protobuf.ByteString getMethodBytes() { + public com.google.protobuf.ByteString + getMethodBytes() { java.lang.Object ref = method_; 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); method_ = b; return b; } else { @@ -2895,35 +2597,28 @@ public com.google.protobuf.ByteString getMethodBytes() { } } /** - * - * *
      * The method that triggered the operation.
      * 
* * string method = 4; - * * @param value The method to set. * @return This builder for chaining. */ - public Builder setMethod(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMethod( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } method_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The method that triggered the operation.
      * 
* * string method = 4; - * * @return This builder for chaining. */ public Builder clearMethod() { @@ -2933,21 +2628,17 @@ public Builder clearMethod() { return this; } /** - * - * *
      * The method that triggered the operation.
      * 
* * string method = 4; - * * @param value The bytes for method to set. * @return This builder for chaining. */ - public Builder setMethodBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMethodBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); method_ = value; bitField0_ |= 0x00000008; @@ -2957,8 +2648,6 @@ public Builder setMethodBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyName_ = ""; /** - * - * *
      * The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -2967,13 +2656,13 @@ public Builder setMethodBytes(com.google.protobuf.ByteString value) {
      * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } - * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; 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(); kmsKeyName_ = s; return s; @@ -2982,8 +2671,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
      * The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -2992,14 +2679,15 @@ public java.lang.String getKmsKeyName() {
      * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -3007,8 +2695,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
      * The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3017,22 +2703,18 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
      * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } - * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3041,7 +2723,6 @@ public Builder setKmsKeyName(java.lang.String value) {
      * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -3051,8 +2732,6 @@ public Builder clearKmsKeyName() { return this; } /** - * - * *
      * The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3061,14 +2740,12 @@ public Builder clearKmsKeyName() {
      * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00000010; @@ -3078,8 +2755,6 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyVersionName_ = ""; /** - * - * *
      * The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3088,13 +2763,13 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } - * * @return The kmsKeyVersionName. */ public java.lang.String getKmsKeyVersionName() { java.lang.Object ref = kmsKeyVersionName_; 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(); kmsKeyVersionName_ = s; return s; @@ -3103,8 +2778,6 @@ public java.lang.String getKmsKeyVersionName() { } } /** - * - * *
      * The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3113,14 +2786,15 @@ public java.lang.String getKmsKeyVersionName() {
      * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKeyVersionName. */ - public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -3128,8 +2802,6 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { } } /** - * - * *
      * The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3138,22 +2810,18 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() {
      * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } - * * @param value The kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyVersionName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyVersionName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3162,7 +2830,6 @@ public Builder setKmsKeyVersionName(java.lang.String value) {
      * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { @@ -3172,8 +2839,6 @@ public Builder clearKmsKeyVersionName() { return this; } /** - * - * *
      * The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3182,14 +2847,12 @@ public Builder clearKmsKeyVersionName() {
      * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyVersionNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyVersionName_ = value; bitField0_ |= 0x00000020; @@ -3198,19 +2861,13 @@ public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeRequest, - com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, - com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder> - batchRecognizeRequestBuilder_; + com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder> batchRecognizeRequestBuilder_; /** - * - * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; - * * @return Whether the batchRecognizeRequest field is set. */ @java.lang.Override @@ -3218,14 +2875,11 @@ public boolean hasBatchRecognizeRequest() { return requestCase_ == 8; } /** - * - * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; - * * @return The batchRecognizeRequest. */ @java.lang.Override @@ -3243,16 +2897,13 @@ public com.google.cloud.speech.v2.BatchRecognizeRequest getBatchRecognizeRequest } } /** - * - * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ - public Builder setBatchRecognizeRequest( - com.google.cloud.speech.v2.BatchRecognizeRequest value) { + public Builder setBatchRecognizeRequest(com.google.cloud.speech.v2.BatchRecognizeRequest value) { if (batchRecognizeRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3266,8 +2917,6 @@ public Builder setBatchRecognizeRequest( return this; } /** - * - * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
@@ -3286,24 +2935,18 @@ public Builder setBatchRecognizeRequest( return this; } /** - * - * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ - public Builder mergeBatchRecognizeRequest( - com.google.cloud.speech.v2.BatchRecognizeRequest value) { + public Builder mergeBatchRecognizeRequest(com.google.cloud.speech.v2.BatchRecognizeRequest value) { if (batchRecognizeRequestBuilder_ == null) { - if (requestCase_ == 8 - && request_ != com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.BatchRecognizeRequest.newBuilder( - (com.google.cloud.speech.v2.BatchRecognizeRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 8 && + request_ != com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.BatchRecognizeRequest.newBuilder((com.google.cloud.speech.v2.BatchRecognizeRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -3319,8 +2962,6 @@ public Builder mergeBatchRecognizeRequest( return this; } /** - * - * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
@@ -3344,21 +2985,16 @@ public Builder clearBatchRecognizeRequest() { return this; } /** - * - * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ - public com.google.cloud.speech.v2.BatchRecognizeRequest.Builder - getBatchRecognizeRequestBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeRequest.Builder getBatchRecognizeRequestBuilder() { return getBatchRecognizeRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
@@ -3366,8 +3002,7 @@ public Builder clearBatchRecognizeRequest() { * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder - getBatchRecognizeRequestOrBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder getBatchRecognizeRequestOrBuilder() { if ((requestCase_ == 8) && (batchRecognizeRequestBuilder_ != null)) { return batchRecognizeRequestBuilder_.getMessageOrBuilder(); } else { @@ -3378,8 +3013,6 @@ public Builder clearBatchRecognizeRequest() { } } /** - * - * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
@@ -3387,19 +3020,14 @@ public Builder clearBatchRecognizeRequest() { * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeRequest, - com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, - com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder> + com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder> getBatchRecognizeRequestFieldBuilder() { if (batchRecognizeRequestBuilder_ == null) { if (!(requestCase_ == 8)) { request_ = com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance(); } - batchRecognizeRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeRequest, - com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, - com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder>( + batchRecognizeRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder>( (com.google.cloud.speech.v2.BatchRecognizeRequest) request_, getParentForChildren(), isClean()); @@ -3411,19 +3039,13 @@ public Builder clearBatchRecognizeRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateRecognizerRequest, - com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, - com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder> - createRecognizerRequestBuilder_; + com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder> createRecognizerRequestBuilder_; /** - * - * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; - * * @return Whether the createRecognizerRequest field is set. */ @java.lang.Override @@ -3431,14 +3053,11 @@ public boolean hasCreateRecognizerRequest() { return requestCase_ == 9; } /** - * - * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; - * * @return The createRecognizerRequest. */ @java.lang.Override @@ -3456,16 +3075,13 @@ public com.google.cloud.speech.v2.CreateRecognizerRequest getCreateRecognizerReq } } /** - * - * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ - public Builder setCreateRecognizerRequest( - com.google.cloud.speech.v2.CreateRecognizerRequest value) { + public Builder setCreateRecognizerRequest(com.google.cloud.speech.v2.CreateRecognizerRequest value) { if (createRecognizerRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3479,8 +3095,6 @@ public Builder setCreateRecognizerRequest( return this; } /** - * - * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
@@ -3499,25 +3113,18 @@ public Builder setCreateRecognizerRequest( return this; } /** - * - * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ - public Builder mergeCreateRecognizerRequest( - com.google.cloud.speech.v2.CreateRecognizerRequest value) { + public Builder mergeCreateRecognizerRequest(com.google.cloud.speech.v2.CreateRecognizerRequest value) { if (createRecognizerRequestBuilder_ == null) { - if (requestCase_ == 9 - && request_ - != com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.CreateRecognizerRequest.newBuilder( - (com.google.cloud.speech.v2.CreateRecognizerRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 9 && + request_ != com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.CreateRecognizerRequest.newBuilder((com.google.cloud.speech.v2.CreateRecognizerRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -3533,8 +3140,6 @@ public Builder mergeCreateRecognizerRequest( return this; } /** - * - * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
@@ -3558,21 +3163,16 @@ public Builder clearCreateRecognizerRequest() { return this; } /** - * - * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ - public com.google.cloud.speech.v2.CreateRecognizerRequest.Builder - getCreateRecognizerRequestBuilder() { + public com.google.cloud.speech.v2.CreateRecognizerRequest.Builder getCreateRecognizerRequestBuilder() { return getCreateRecognizerRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
@@ -3580,8 +3180,7 @@ public Builder clearCreateRecognizerRequest() { * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ @java.lang.Override - public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder - getCreateRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder getCreateRecognizerRequestOrBuilder() { if ((requestCase_ == 9) && (createRecognizerRequestBuilder_ != null)) { return createRecognizerRequestBuilder_.getMessageOrBuilder(); } else { @@ -3592,8 +3191,6 @@ public Builder clearCreateRecognizerRequest() { } } /** - * - * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
@@ -3601,19 +3198,14 @@ public Builder clearCreateRecognizerRequest() { * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateRecognizerRequest, - com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, - com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder> + com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder> getCreateRecognizerRequestFieldBuilder() { if (createRecognizerRequestBuilder_ == null) { if (!(requestCase_ == 9)) { request_ = com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance(); } - createRecognizerRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateRecognizerRequest, - com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, - com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder>( + createRecognizerRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder>( (com.google.cloud.speech.v2.CreateRecognizerRequest) request_, getParentForChildren(), isClean()); @@ -3625,19 +3217,13 @@ public Builder clearCreateRecognizerRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateRecognizerRequest, - com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, - com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder> - updateRecognizerRequestBuilder_; + com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder> updateRecognizerRequestBuilder_; /** - * - * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; - * * @return Whether the updateRecognizerRequest field is set. */ @java.lang.Override @@ -3645,14 +3231,11 @@ public boolean hasUpdateRecognizerRequest() { return requestCase_ == 10; } /** - * - * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; - * * @return The updateRecognizerRequest. */ @java.lang.Override @@ -3670,16 +3253,13 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequest getUpdateRecognizerReq } } /** - * - * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ - public Builder setUpdateRecognizerRequest( - com.google.cloud.speech.v2.UpdateRecognizerRequest value) { + public Builder setUpdateRecognizerRequest(com.google.cloud.speech.v2.UpdateRecognizerRequest value) { if (updateRecognizerRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3693,8 +3273,6 @@ public Builder setUpdateRecognizerRequest( return this; } /** - * - * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
@@ -3713,25 +3291,18 @@ public Builder setUpdateRecognizerRequest( return this; } /** - * - * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ - public Builder mergeUpdateRecognizerRequest( - com.google.cloud.speech.v2.UpdateRecognizerRequest value) { + public Builder mergeUpdateRecognizerRequest(com.google.cloud.speech.v2.UpdateRecognizerRequest value) { if (updateRecognizerRequestBuilder_ == null) { - if (requestCase_ == 10 - && request_ - != com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.UpdateRecognizerRequest.newBuilder( - (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 10 && + request_ != com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.UpdateRecognizerRequest.newBuilder((com.google.cloud.speech.v2.UpdateRecognizerRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -3747,8 +3318,6 @@ public Builder mergeUpdateRecognizerRequest( return this; } /** - * - * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
@@ -3772,21 +3341,16 @@ public Builder clearUpdateRecognizerRequest() { return this; } /** - * - * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ - public com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder - getUpdateRecognizerRequestBuilder() { + public com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder getUpdateRecognizerRequestBuilder() { return getUpdateRecognizerRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
@@ -3794,8 +3358,7 @@ public Builder clearUpdateRecognizerRequest() { * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder - getUpdateRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder getUpdateRecognizerRequestOrBuilder() { if ((requestCase_ == 10) && (updateRecognizerRequestBuilder_ != null)) { return updateRecognizerRequestBuilder_.getMessageOrBuilder(); } else { @@ -3806,8 +3369,6 @@ public Builder clearUpdateRecognizerRequest() { } } /** - * - * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
@@ -3815,19 +3376,14 @@ public Builder clearUpdateRecognizerRequest() { * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateRecognizerRequest, - com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, - com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder> + com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder> getUpdateRecognizerRequestFieldBuilder() { if (updateRecognizerRequestBuilder_ == null) { if (!(requestCase_ == 10)) { request_ = com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance(); } - updateRecognizerRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateRecognizerRequest, - com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, - com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder>( + updateRecognizerRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder>( (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_, getParentForChildren(), isClean()); @@ -3839,19 +3395,13 @@ public Builder clearUpdateRecognizerRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteRecognizerRequest, - com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, - com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder> - deleteRecognizerRequestBuilder_; + com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder> deleteRecognizerRequestBuilder_; /** - * - * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; - * * @return Whether the deleteRecognizerRequest field is set. */ @java.lang.Override @@ -3859,14 +3409,11 @@ public boolean hasDeleteRecognizerRequest() { return requestCase_ == 11; } /** - * - * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; - * * @return The deleteRecognizerRequest. */ @java.lang.Override @@ -3884,16 +3431,13 @@ public com.google.cloud.speech.v2.DeleteRecognizerRequest getDeleteRecognizerReq } } /** - * - * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ - public Builder setDeleteRecognizerRequest( - com.google.cloud.speech.v2.DeleteRecognizerRequest value) { + public Builder setDeleteRecognizerRequest(com.google.cloud.speech.v2.DeleteRecognizerRequest value) { if (deleteRecognizerRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3907,8 +3451,6 @@ public Builder setDeleteRecognizerRequest( return this; } /** - * - * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
@@ -3927,25 +3469,18 @@ public Builder setDeleteRecognizerRequest( return this; } /** - * - * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ - public Builder mergeDeleteRecognizerRequest( - com.google.cloud.speech.v2.DeleteRecognizerRequest value) { + public Builder mergeDeleteRecognizerRequest(com.google.cloud.speech.v2.DeleteRecognizerRequest value) { if (deleteRecognizerRequestBuilder_ == null) { - if (requestCase_ == 11 - && request_ - != com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.DeleteRecognizerRequest.newBuilder( - (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 11 && + request_ != com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.DeleteRecognizerRequest.newBuilder((com.google.cloud.speech.v2.DeleteRecognizerRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -3961,8 +3496,6 @@ public Builder mergeDeleteRecognizerRequest( return this; } /** - * - * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
@@ -3986,21 +3519,16 @@ public Builder clearDeleteRecognizerRequest() { return this; } /** - * - * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ - public com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder - getDeleteRecognizerRequestBuilder() { + public com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder getDeleteRecognizerRequestBuilder() { return getDeleteRecognizerRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
@@ -4008,8 +3536,7 @@ public Builder clearDeleteRecognizerRequest() { * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ @java.lang.Override - public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder - getDeleteRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder getDeleteRecognizerRequestOrBuilder() { if ((requestCase_ == 11) && (deleteRecognizerRequestBuilder_ != null)) { return deleteRecognizerRequestBuilder_.getMessageOrBuilder(); } else { @@ -4020,8 +3547,6 @@ public Builder clearDeleteRecognizerRequest() { } } /** - * - * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
@@ -4029,19 +3554,14 @@ public Builder clearDeleteRecognizerRequest() { * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteRecognizerRequest, - com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, - com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder> + com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder> getDeleteRecognizerRequestFieldBuilder() { if (deleteRecognizerRequestBuilder_ == null) { if (!(requestCase_ == 11)) { request_ = com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance(); } - deleteRecognizerRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteRecognizerRequest, - com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, - com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder>( + deleteRecognizerRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder>( (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_, getParentForChildren(), isClean()); @@ -4053,20 +3573,13 @@ public Builder clearDeleteRecognizerRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, - com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, - com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder> - undeleteRecognizerRequestBuilder_; + com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder> undeleteRecognizerRequestBuilder_; /** - * - * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; * @return Whether the undeleteRecognizerRequest field is set. */ @java.lang.Override @@ -4074,15 +3587,11 @@ public boolean hasUndeleteRecognizerRequest() { return requestCase_ == 12; } /** - * - * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; * @return The undeleteRecognizerRequest. */ @java.lang.Override @@ -4100,17 +3609,13 @@ public com.google.cloud.speech.v2.UndeleteRecognizerRequest getUndeleteRecognize } } /** - * - * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; */ - public Builder setUndeleteRecognizerRequest( - com.google.cloud.speech.v2.UndeleteRecognizerRequest value) { + public Builder setUndeleteRecognizerRequest(com.google.cloud.speech.v2.UndeleteRecognizerRequest value) { if (undeleteRecognizerRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4124,14 +3629,11 @@ public Builder setUndeleteRecognizerRequest( return this; } /** - * - * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; */ public Builder setUndeleteRecognizerRequest( com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder builderForValue) { @@ -4145,26 +3647,18 @@ public Builder setUndeleteRecognizerRequest( return this; } /** - * - * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; */ - public Builder mergeUndeleteRecognizerRequest( - com.google.cloud.speech.v2.UndeleteRecognizerRequest value) { + public Builder mergeUndeleteRecognizerRequest(com.google.cloud.speech.v2.UndeleteRecognizerRequest value) { if (undeleteRecognizerRequestBuilder_ == null) { - if (requestCase_ == 12 - && request_ - != com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.UndeleteRecognizerRequest.newBuilder( - (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 12 && + request_ != com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.UndeleteRecognizerRequest.newBuilder((com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -4180,14 +3674,11 @@ public Builder mergeUndeleteRecognizerRequest( return this; } /** - * - * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; */ public Builder clearUndeleteRecognizerRequest() { if (undeleteRecognizerRequestBuilder_ == null) { @@ -4206,32 +3697,24 @@ public Builder clearUndeleteRecognizerRequest() { return this; } /** - * - * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; */ - public com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder - getUndeleteRecognizerRequestBuilder() { + public com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder getUndeleteRecognizerRequestBuilder() { return getUndeleteRecognizerRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; */ @java.lang.Override - public com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder - getUndeleteRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder getUndeleteRecognizerRequestOrBuilder() { if ((requestCase_ == 12) && (undeleteRecognizerRequestBuilder_ != null)) { return undeleteRecognizerRequestBuilder_.getMessageOrBuilder(); } else { @@ -4242,29 +3725,21 @@ public Builder clearUndeleteRecognizerRequest() { } } /** - * - * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, - com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, - com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder> + com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder> getUndeleteRecognizerRequestFieldBuilder() { if (undeleteRecognizerRequestBuilder_ == null) { if (!(requestCase_ == 12)) { request_ = com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance(); } - undeleteRecognizerRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, - com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, - com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder>( + undeleteRecognizerRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder>( (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_, getParentForChildren(), isClean()); @@ -4276,20 +3751,13 @@ public Builder clearUndeleteRecognizerRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateCustomClassRequest, - com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, - com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder> - createCustomClassRequestBuilder_; + com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder> createCustomClassRequestBuilder_; /** - * - * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * - * + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; * @return Whether the createCustomClassRequest field is set. */ @java.lang.Override @@ -4297,15 +3765,11 @@ public boolean hasCreateCustomClassRequest() { return requestCase_ == 13; } /** - * - * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * - * + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; * @return The createCustomClassRequest. */ @java.lang.Override @@ -4323,17 +3787,13 @@ public com.google.cloud.speech.v2.CreateCustomClassRequest getCreateCustomClassR } } /** - * - * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ - public Builder setCreateCustomClassRequest( - com.google.cloud.speech.v2.CreateCustomClassRequest value) { + public Builder setCreateCustomClassRequest(com.google.cloud.speech.v2.CreateCustomClassRequest value) { if (createCustomClassRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4347,14 +3807,11 @@ public Builder setCreateCustomClassRequest( return this; } /** - * - * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ public Builder setCreateCustomClassRequest( com.google.cloud.speech.v2.CreateCustomClassRequest.Builder builderForValue) { @@ -4368,26 +3825,18 @@ public Builder setCreateCustomClassRequest( return this; } /** - * - * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ - public Builder mergeCreateCustomClassRequest( - com.google.cloud.speech.v2.CreateCustomClassRequest value) { + public Builder mergeCreateCustomClassRequest(com.google.cloud.speech.v2.CreateCustomClassRequest value) { if (createCustomClassRequestBuilder_ == null) { - if (requestCase_ == 13 - && request_ - != com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.CreateCustomClassRequest.newBuilder( - (com.google.cloud.speech.v2.CreateCustomClassRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 13 && + request_ != com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.CreateCustomClassRequest.newBuilder((com.google.cloud.speech.v2.CreateCustomClassRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -4403,14 +3852,11 @@ public Builder mergeCreateCustomClassRequest( return this; } /** - * - * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ public Builder clearCreateCustomClassRequest() { if (createCustomClassRequestBuilder_ == null) { @@ -4429,32 +3875,24 @@ public Builder clearCreateCustomClassRequest() { return this; } /** - * - * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ - public com.google.cloud.speech.v2.CreateCustomClassRequest.Builder - getCreateCustomClassRequestBuilder() { + public com.google.cloud.speech.v2.CreateCustomClassRequest.Builder getCreateCustomClassRequestBuilder() { return getCreateCustomClassRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ @java.lang.Override - public com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder - getCreateCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder getCreateCustomClassRequestOrBuilder() { if ((requestCase_ == 13) && (createCustomClassRequestBuilder_ != null)) { return createCustomClassRequestBuilder_.getMessageOrBuilder(); } else { @@ -4465,29 +3903,21 @@ public Builder clearCreateCustomClassRequest() { } } /** - * - * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateCustomClassRequest, - com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, - com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder> + com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder> getCreateCustomClassRequestFieldBuilder() { if (createCustomClassRequestBuilder_ == null) { if (!(requestCase_ == 13)) { request_ = com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance(); } - createCustomClassRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateCustomClassRequest, - com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, - com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder>( + createCustomClassRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder>( (com.google.cloud.speech.v2.CreateCustomClassRequest) request_, getParentForChildren(), isClean()); @@ -4499,20 +3929,13 @@ public Builder clearCreateCustomClassRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateCustomClassRequest, - com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, - com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder> - updateCustomClassRequestBuilder_; + com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder> updateCustomClassRequestBuilder_; /** - * - * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * - * + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; * @return Whether the updateCustomClassRequest field is set. */ @java.lang.Override @@ -4520,15 +3943,11 @@ public boolean hasUpdateCustomClassRequest() { return requestCase_ == 14; } /** - * - * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * - * + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; * @return The updateCustomClassRequest. */ @java.lang.Override @@ -4546,17 +3965,13 @@ public com.google.cloud.speech.v2.UpdateCustomClassRequest getUpdateCustomClassR } } /** - * - * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ - public Builder setUpdateCustomClassRequest( - com.google.cloud.speech.v2.UpdateCustomClassRequest value) { + public Builder setUpdateCustomClassRequest(com.google.cloud.speech.v2.UpdateCustomClassRequest value) { if (updateCustomClassRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4570,14 +3985,11 @@ public Builder setUpdateCustomClassRequest( return this; } /** - * - * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ public Builder setUpdateCustomClassRequest( com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder builderForValue) { @@ -4591,26 +4003,18 @@ public Builder setUpdateCustomClassRequest( return this; } /** - * - * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ - public Builder mergeUpdateCustomClassRequest( - com.google.cloud.speech.v2.UpdateCustomClassRequest value) { + public Builder mergeUpdateCustomClassRequest(com.google.cloud.speech.v2.UpdateCustomClassRequest value) { if (updateCustomClassRequestBuilder_ == null) { - if (requestCase_ == 14 - && request_ - != com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.UpdateCustomClassRequest.newBuilder( - (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 14 && + request_ != com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.UpdateCustomClassRequest.newBuilder((com.google.cloud.speech.v2.UpdateCustomClassRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -4626,14 +4030,11 @@ public Builder mergeUpdateCustomClassRequest( return this; } /** - * - * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ public Builder clearUpdateCustomClassRequest() { if (updateCustomClassRequestBuilder_ == null) { @@ -4652,32 +4053,24 @@ public Builder clearUpdateCustomClassRequest() { return this; } /** - * - * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ - public com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder - getUpdateCustomClassRequestBuilder() { + public com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder getUpdateCustomClassRequestBuilder() { return getUpdateCustomClassRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder - getUpdateCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder getUpdateCustomClassRequestOrBuilder() { if ((requestCase_ == 14) && (updateCustomClassRequestBuilder_ != null)) { return updateCustomClassRequestBuilder_.getMessageOrBuilder(); } else { @@ -4688,29 +4081,21 @@ public Builder clearUpdateCustomClassRequest() { } } /** - * - * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateCustomClassRequest, - com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, - com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder> + com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder> getUpdateCustomClassRequestFieldBuilder() { if (updateCustomClassRequestBuilder_ == null) { if (!(requestCase_ == 14)) { request_ = com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance(); } - updateCustomClassRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateCustomClassRequest, - com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, - com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder>( + updateCustomClassRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder>( (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_, getParentForChildren(), isClean()); @@ -4722,20 +4107,13 @@ public Builder clearUpdateCustomClassRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteCustomClassRequest, - com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, - com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder> - deleteCustomClassRequestBuilder_; + com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder> deleteCustomClassRequestBuilder_; /** - * - * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * - * + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; * @return Whether the deleteCustomClassRequest field is set. */ @java.lang.Override @@ -4743,15 +4121,11 @@ public boolean hasDeleteCustomClassRequest() { return requestCase_ == 15; } /** - * - * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * - * + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; * @return The deleteCustomClassRequest. */ @java.lang.Override @@ -4769,17 +4143,13 @@ public com.google.cloud.speech.v2.DeleteCustomClassRequest getDeleteCustomClassR } } /** - * - * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ - public Builder setDeleteCustomClassRequest( - com.google.cloud.speech.v2.DeleteCustomClassRequest value) { + public Builder setDeleteCustomClassRequest(com.google.cloud.speech.v2.DeleteCustomClassRequest value) { if (deleteCustomClassRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4793,14 +4163,11 @@ public Builder setDeleteCustomClassRequest( return this; } /** - * - * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ public Builder setDeleteCustomClassRequest( com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder builderForValue) { @@ -4814,26 +4181,18 @@ public Builder setDeleteCustomClassRequest( return this; } /** - * - * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ - public Builder mergeDeleteCustomClassRequest( - com.google.cloud.speech.v2.DeleteCustomClassRequest value) { + public Builder mergeDeleteCustomClassRequest(com.google.cloud.speech.v2.DeleteCustomClassRequest value) { if (deleteCustomClassRequestBuilder_ == null) { - if (requestCase_ == 15 - && request_ - != com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.DeleteCustomClassRequest.newBuilder( - (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 15 && + request_ != com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.DeleteCustomClassRequest.newBuilder((com.google.cloud.speech.v2.DeleteCustomClassRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -4849,14 +4208,11 @@ public Builder mergeDeleteCustomClassRequest( return this; } /** - * - * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ public Builder clearDeleteCustomClassRequest() { if (deleteCustomClassRequestBuilder_ == null) { @@ -4875,32 +4231,24 @@ public Builder clearDeleteCustomClassRequest() { return this; } /** - * - * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ - public com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder - getDeleteCustomClassRequestBuilder() { + public com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder getDeleteCustomClassRequestBuilder() { return getDeleteCustomClassRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ @java.lang.Override - public com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder - getDeleteCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder getDeleteCustomClassRequestOrBuilder() { if ((requestCase_ == 15) && (deleteCustomClassRequestBuilder_ != null)) { return deleteCustomClassRequestBuilder_.getMessageOrBuilder(); } else { @@ -4911,29 +4259,21 @@ public Builder clearDeleteCustomClassRequest() { } } /** - * - * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteCustomClassRequest, - com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, - com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder> + com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder> getDeleteCustomClassRequestFieldBuilder() { if (deleteCustomClassRequestBuilder_ == null) { if (!(requestCase_ == 15)) { request_ = com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance(); } - deleteCustomClassRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteCustomClassRequest, - com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, - com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder>( + deleteCustomClassRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder>( (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_, getParentForChildren(), isClean()); @@ -4945,20 +4285,13 @@ public Builder clearDeleteCustomClassRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, - com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, - com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder> - undeleteCustomClassRequestBuilder_; + com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder> undeleteCustomClassRequestBuilder_; /** - * - * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; * @return Whether the undeleteCustomClassRequest field is set. */ @java.lang.Override @@ -4966,15 +4299,11 @@ public boolean hasUndeleteCustomClassRequest() { return requestCase_ == 16; } /** - * - * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; * @return The undeleteCustomClassRequest. */ @java.lang.Override @@ -4992,17 +4321,13 @@ public com.google.cloud.speech.v2.UndeleteCustomClassRequest getUndeleteCustomCl } } /** - * - * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; */ - public Builder setUndeleteCustomClassRequest( - com.google.cloud.speech.v2.UndeleteCustomClassRequest value) { + public Builder setUndeleteCustomClassRequest(com.google.cloud.speech.v2.UndeleteCustomClassRequest value) { if (undeleteCustomClassRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5016,14 +4341,11 @@ public Builder setUndeleteCustomClassRequest( return this; } /** - * - * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; */ public Builder setUndeleteCustomClassRequest( com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder builderForValue) { @@ -5037,26 +4359,18 @@ public Builder setUndeleteCustomClassRequest( return this; } /** - * - * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; */ - public Builder mergeUndeleteCustomClassRequest( - com.google.cloud.speech.v2.UndeleteCustomClassRequest value) { + public Builder mergeUndeleteCustomClassRequest(com.google.cloud.speech.v2.UndeleteCustomClassRequest value) { if (undeleteCustomClassRequestBuilder_ == null) { - if (requestCase_ == 16 - && request_ - != com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.UndeleteCustomClassRequest.newBuilder( - (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 16 && + request_ != com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.UndeleteCustomClassRequest.newBuilder((com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -5072,14 +4386,11 @@ public Builder mergeUndeleteCustomClassRequest( return this; } /** - * - * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; */ public Builder clearUndeleteCustomClassRequest() { if (undeleteCustomClassRequestBuilder_ == null) { @@ -5098,32 +4409,24 @@ public Builder clearUndeleteCustomClassRequest() { return this; } /** - * - * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; */ - public com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder - getUndeleteCustomClassRequestBuilder() { + public com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder getUndeleteCustomClassRequestBuilder() { return getUndeleteCustomClassRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; */ @java.lang.Override - public com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder - getUndeleteCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder getUndeleteCustomClassRequestOrBuilder() { if ((requestCase_ == 16) && (undeleteCustomClassRequestBuilder_ != null)) { return undeleteCustomClassRequestBuilder_.getMessageOrBuilder(); } else { @@ -5134,29 +4437,21 @@ public Builder clearUndeleteCustomClassRequest() { } } /** - * - * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, - com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, - com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder> + com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder> getUndeleteCustomClassRequestFieldBuilder() { if (undeleteCustomClassRequestBuilder_ == null) { if (!(requestCase_ == 16)) { request_ = com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance(); } - undeleteCustomClassRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, - com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, - com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder>( + undeleteCustomClassRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder>( (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_, getParentForChildren(), isClean()); @@ -5168,19 +4463,13 @@ public Builder clearUndeleteCustomClassRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreatePhraseSetRequest, - com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, - com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder> - createPhraseSetRequestBuilder_; + com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder> createPhraseSetRequestBuilder_; /** - * - * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; - * * @return Whether the createPhraseSetRequest field is set. */ @java.lang.Override @@ -5188,14 +4477,11 @@ public boolean hasCreatePhraseSetRequest() { return requestCase_ == 17; } /** - * - * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; - * * @return The createPhraseSetRequest. */ @java.lang.Override @@ -5213,16 +4499,13 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequest getCreatePhraseSetReque } } /** - * - * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ - public Builder setCreatePhraseSetRequest( - com.google.cloud.speech.v2.CreatePhraseSetRequest value) { + public Builder setCreatePhraseSetRequest(com.google.cloud.speech.v2.CreatePhraseSetRequest value) { if (createPhraseSetRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5236,8 +4519,6 @@ public Builder setCreatePhraseSetRequest( return this; } /** - * - * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
@@ -5256,24 +4537,18 @@ public Builder setCreatePhraseSetRequest( return this; } /** - * - * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ - public Builder mergeCreatePhraseSetRequest( - com.google.cloud.speech.v2.CreatePhraseSetRequest value) { + public Builder mergeCreatePhraseSetRequest(com.google.cloud.speech.v2.CreatePhraseSetRequest value) { if (createPhraseSetRequestBuilder_ == null) { - if (requestCase_ == 17 - && request_ != com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.CreatePhraseSetRequest.newBuilder( - (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 17 && + request_ != com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.CreatePhraseSetRequest.newBuilder((com.google.cloud.speech.v2.CreatePhraseSetRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -5289,8 +4564,6 @@ public Builder mergeCreatePhraseSetRequest( return this; } /** - * - * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
@@ -5314,21 +4587,16 @@ public Builder clearCreatePhraseSetRequest() { return this; } /** - * - * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ - public com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder - getCreatePhraseSetRequestBuilder() { + public com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder getCreatePhraseSetRequestBuilder() { return getCreatePhraseSetRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
@@ -5336,8 +4604,7 @@ public Builder clearCreatePhraseSetRequest() { * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ @java.lang.Override - public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder - getCreatePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder getCreatePhraseSetRequestOrBuilder() { if ((requestCase_ == 17) && (createPhraseSetRequestBuilder_ != null)) { return createPhraseSetRequestBuilder_.getMessageOrBuilder(); } else { @@ -5348,8 +4615,6 @@ public Builder clearCreatePhraseSetRequest() { } } /** - * - * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
@@ -5357,19 +4622,14 @@ public Builder clearCreatePhraseSetRequest() { * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreatePhraseSetRequest, - com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, - com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder> + com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder> getCreatePhraseSetRequestFieldBuilder() { if (createPhraseSetRequestBuilder_ == null) { if (!(requestCase_ == 17)) { request_ = com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance(); } - createPhraseSetRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreatePhraseSetRequest, - com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, - com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder>( + createPhraseSetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder>( (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_, getParentForChildren(), isClean()); @@ -5381,19 +4641,13 @@ public Builder clearCreatePhraseSetRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, - com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, - com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder> - updatePhraseSetRequestBuilder_; + com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder> updatePhraseSetRequestBuilder_; /** - * - * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; - * * @return Whether the updatePhraseSetRequest field is set. */ @java.lang.Override @@ -5401,14 +4655,11 @@ public boolean hasUpdatePhraseSetRequest() { return requestCase_ == 18; } /** - * - * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; - * * @return The updatePhraseSetRequest. */ @java.lang.Override @@ -5426,16 +4677,13 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequest getUpdatePhraseSetReque } } /** - * - * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ - public Builder setUpdatePhraseSetRequest( - com.google.cloud.speech.v2.UpdatePhraseSetRequest value) { + public Builder setUpdatePhraseSetRequest(com.google.cloud.speech.v2.UpdatePhraseSetRequest value) { if (updatePhraseSetRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5449,8 +4697,6 @@ public Builder setUpdatePhraseSetRequest( return this; } /** - * - * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
@@ -5469,24 +4715,18 @@ public Builder setUpdatePhraseSetRequest( return this; } /** - * - * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ - public Builder mergeUpdatePhraseSetRequest( - com.google.cloud.speech.v2.UpdatePhraseSetRequest value) { + public Builder mergeUpdatePhraseSetRequest(com.google.cloud.speech.v2.UpdatePhraseSetRequest value) { if (updatePhraseSetRequestBuilder_ == null) { - if (requestCase_ == 18 - && request_ != com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.UpdatePhraseSetRequest.newBuilder( - (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 18 && + request_ != com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.UpdatePhraseSetRequest.newBuilder((com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -5502,8 +4742,6 @@ public Builder mergeUpdatePhraseSetRequest( return this; } /** - * - * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
@@ -5527,21 +4765,16 @@ public Builder clearUpdatePhraseSetRequest() { return this; } /** - * - * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ - public com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder - getUpdatePhraseSetRequestBuilder() { + public com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder getUpdatePhraseSetRequestBuilder() { return getUpdatePhraseSetRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
@@ -5549,8 +4782,7 @@ public Builder clearUpdatePhraseSetRequest() { * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder - getUpdatePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder getUpdatePhraseSetRequestOrBuilder() { if ((requestCase_ == 18) && (updatePhraseSetRequestBuilder_ != null)) { return updatePhraseSetRequestBuilder_.getMessageOrBuilder(); } else { @@ -5561,8 +4793,6 @@ public Builder clearUpdatePhraseSetRequest() { } } /** - * - * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
@@ -5570,19 +4800,14 @@ public Builder clearUpdatePhraseSetRequest() { * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, - com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, - com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder> + com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder> getUpdatePhraseSetRequestFieldBuilder() { if (updatePhraseSetRequestBuilder_ == null) { if (!(requestCase_ == 18)) { request_ = com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance(); } - updatePhraseSetRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, - com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, - com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder>( + updatePhraseSetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder>( (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_, getParentForChildren(), isClean()); @@ -5594,19 +4819,13 @@ public Builder clearUpdatePhraseSetRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeletePhraseSetRequest, - com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, - com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder> - deletePhraseSetRequestBuilder_; + com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder> deletePhraseSetRequestBuilder_; /** - * - * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; - * * @return Whether the deletePhraseSetRequest field is set. */ @java.lang.Override @@ -5614,14 +4833,11 @@ public boolean hasDeletePhraseSetRequest() { return requestCase_ == 19; } /** - * - * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; - * * @return The deletePhraseSetRequest. */ @java.lang.Override @@ -5639,16 +4855,13 @@ public com.google.cloud.speech.v2.DeletePhraseSetRequest getDeletePhraseSetReque } } /** - * - * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ - public Builder setDeletePhraseSetRequest( - com.google.cloud.speech.v2.DeletePhraseSetRequest value) { + public Builder setDeletePhraseSetRequest(com.google.cloud.speech.v2.DeletePhraseSetRequest value) { if (deletePhraseSetRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5662,8 +4875,6 @@ public Builder setDeletePhraseSetRequest( return this; } /** - * - * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
@@ -5682,24 +4893,18 @@ public Builder setDeletePhraseSetRequest( return this; } /** - * - * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ - public Builder mergeDeletePhraseSetRequest( - com.google.cloud.speech.v2.DeletePhraseSetRequest value) { + public Builder mergeDeletePhraseSetRequest(com.google.cloud.speech.v2.DeletePhraseSetRequest value) { if (deletePhraseSetRequestBuilder_ == null) { - if (requestCase_ == 19 - && request_ != com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.DeletePhraseSetRequest.newBuilder( - (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 19 && + request_ != com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.DeletePhraseSetRequest.newBuilder((com.google.cloud.speech.v2.DeletePhraseSetRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -5715,8 +4920,6 @@ public Builder mergeDeletePhraseSetRequest( return this; } /** - * - * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
@@ -5740,21 +4943,16 @@ public Builder clearDeletePhraseSetRequest() { return this; } /** - * - * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ - public com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder - getDeletePhraseSetRequestBuilder() { + public com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder getDeletePhraseSetRequestBuilder() { return getDeletePhraseSetRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
@@ -5762,8 +4960,7 @@ public Builder clearDeletePhraseSetRequest() { * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ @java.lang.Override - public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder - getDeletePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder getDeletePhraseSetRequestOrBuilder() { if ((requestCase_ == 19) && (deletePhraseSetRequestBuilder_ != null)) { return deletePhraseSetRequestBuilder_.getMessageOrBuilder(); } else { @@ -5774,8 +4971,6 @@ public Builder clearDeletePhraseSetRequest() { } } /** - * - * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
@@ -5783,19 +4978,14 @@ public Builder clearDeletePhraseSetRequest() { * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeletePhraseSetRequest, - com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, - com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder> + com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder> getDeletePhraseSetRequestFieldBuilder() { if (deletePhraseSetRequestBuilder_ == null) { if (!(requestCase_ == 19)) { request_ = com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance(); } - deletePhraseSetRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeletePhraseSetRequest, - com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, - com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder>( + deletePhraseSetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder>( (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_, getParentForChildren(), isClean()); @@ -5807,20 +4997,13 @@ public Builder clearDeletePhraseSetRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, - com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, - com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder> - undeletePhraseSetRequestBuilder_; + com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder> undeletePhraseSetRequestBuilder_; /** - * - * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * - * + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; * @return Whether the undeletePhraseSetRequest field is set. */ @java.lang.Override @@ -5828,15 +5011,11 @@ public boolean hasUndeletePhraseSetRequest() { return requestCase_ == 20; } /** - * - * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * - * + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; * @return The undeletePhraseSetRequest. */ @java.lang.Override @@ -5854,17 +5033,13 @@ public com.google.cloud.speech.v2.UndeletePhraseSetRequest getUndeletePhraseSetR } } /** - * - * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ - public Builder setUndeletePhraseSetRequest( - com.google.cloud.speech.v2.UndeletePhraseSetRequest value) { + public Builder setUndeletePhraseSetRequest(com.google.cloud.speech.v2.UndeletePhraseSetRequest value) { if (undeletePhraseSetRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5878,14 +5053,11 @@ public Builder setUndeletePhraseSetRequest( return this; } /** - * - * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ public Builder setUndeletePhraseSetRequest( com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder builderForValue) { @@ -5899,26 +5071,18 @@ public Builder setUndeletePhraseSetRequest( return this; } /** - * - * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ - public Builder mergeUndeletePhraseSetRequest( - com.google.cloud.speech.v2.UndeletePhraseSetRequest value) { + public Builder mergeUndeletePhraseSetRequest(com.google.cloud.speech.v2.UndeletePhraseSetRequest value) { if (undeletePhraseSetRequestBuilder_ == null) { - if (requestCase_ == 20 - && request_ - != com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.UndeletePhraseSetRequest.newBuilder( - (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 20 && + request_ != com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.UndeletePhraseSetRequest.newBuilder((com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -5934,14 +5098,11 @@ public Builder mergeUndeletePhraseSetRequest( return this; } /** - * - * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ public Builder clearUndeletePhraseSetRequest() { if (undeletePhraseSetRequestBuilder_ == null) { @@ -5960,32 +5121,24 @@ public Builder clearUndeletePhraseSetRequest() { return this; } /** - * - * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ - public com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder - getUndeletePhraseSetRequestBuilder() { + public com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder getUndeletePhraseSetRequestBuilder() { return getUndeletePhraseSetRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ @java.lang.Override - public com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder - getUndeletePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder getUndeletePhraseSetRequestOrBuilder() { if ((requestCase_ == 20) && (undeletePhraseSetRequestBuilder_ != null)) { return undeletePhraseSetRequestBuilder_.getMessageOrBuilder(); } else { @@ -5996,29 +5149,21 @@ public Builder clearUndeletePhraseSetRequest() { } } /** - * - * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, - com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, - com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder> + com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder> getUndeletePhraseSetRequestFieldBuilder() { if (undeletePhraseSetRequestBuilder_ == null) { if (!(requestCase_ == 20)) { request_ = com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance(); } - undeletePhraseSetRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, - com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, - com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder>( + undeletePhraseSetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder>( (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_, getParentForChildren(), isClean()); @@ -6030,19 +5175,13 @@ public Builder clearUndeletePhraseSetRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateConfigRequest, - com.google.cloud.speech.v2.UpdateConfigRequest.Builder, - com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder> - updateConfigRequestBuilder_; + com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.UpdateConfigRequest.Builder, com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder> updateConfigRequestBuilder_; /** - * - * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; - * * @return Whether the updateConfigRequest field is set. */ @java.lang.Override @@ -6050,14 +5189,11 @@ public boolean hasUpdateConfigRequest() { return requestCase_ == 21; } /** - * - * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; - * * @return The updateConfigRequest. */ @java.lang.Override @@ -6075,8 +5211,6 @@ public com.google.cloud.speech.v2.UpdateConfigRequest getUpdateConfigRequest() { } } /** - * - * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -6097,8 +5231,6 @@ public Builder setUpdateConfigRequest(com.google.cloud.speech.v2.UpdateConfigReq return this; } /** - * - * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -6117,8 +5249,6 @@ public Builder setUpdateConfigRequest( return this; } /** - * - * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -6127,13 +5257,10 @@ public Builder setUpdateConfigRequest( */ public Builder mergeUpdateConfigRequest(com.google.cloud.speech.v2.UpdateConfigRequest value) { if (updateConfigRequestBuilder_ == null) { - if (requestCase_ == 21 - && request_ != com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.UpdateConfigRequest.newBuilder( - (com.google.cloud.speech.v2.UpdateConfigRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 21 && + request_ != com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.UpdateConfigRequest.newBuilder((com.google.cloud.speech.v2.UpdateConfigRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -6149,8 +5276,6 @@ public Builder mergeUpdateConfigRequest(com.google.cloud.speech.v2.UpdateConfigR return this; } /** - * - * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -6174,8 +5299,6 @@ public Builder clearUpdateConfigRequest() { return this; } /** - * - * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -6186,8 +5309,6 @@ public com.google.cloud.speech.v2.UpdateConfigRequest.Builder getUpdateConfigReq return getUpdateConfigRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -6195,8 +5316,7 @@ public com.google.cloud.speech.v2.UpdateConfigRequest.Builder getUpdateConfigReq * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder - getUpdateConfigRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRequestOrBuilder() { if ((requestCase_ == 21) && (updateConfigRequestBuilder_ != null)) { return updateConfigRequestBuilder_.getMessageOrBuilder(); } else { @@ -6207,8 +5327,6 @@ public com.google.cloud.speech.v2.UpdateConfigRequest.Builder getUpdateConfigReq } } /** - * - * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -6216,19 +5334,14 @@ public com.google.cloud.speech.v2.UpdateConfigRequest.Builder getUpdateConfigReq * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateConfigRequest, - com.google.cloud.speech.v2.UpdateConfigRequest.Builder, - com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder> + com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.UpdateConfigRequest.Builder, com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder> getUpdateConfigRequestFieldBuilder() { if (updateConfigRequestBuilder_ == null) { if (!(requestCase_ == 21)) { request_ = com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance(); } - updateConfigRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateConfigRequest, - com.google.cloud.speech.v2.UpdateConfigRequest.Builder, - com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder>( + updateConfigRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.UpdateConfigRequest.Builder, com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder>( (com.google.cloud.speech.v2.UpdateConfigRequest) request_, getParentForChildren(), isClean()); @@ -6239,17 +5352,14 @@ public com.google.cloud.speech.v2.UpdateConfigRequest.Builder getUpdateConfigReq return updateConfigRequestBuilder_; } - private int progressPercent_; + private int progressPercent_ ; /** - * - * *
      * The percent progress of the Operation. Values can range from 0-100. If the
      * value is 100, then the operation is finished.
      * 
* * int32 progress_percent = 22; - * * @return The progressPercent. */ @java.lang.Override @@ -6257,35 +5367,29 @@ public int getProgressPercent() { return progressPercent_; } /** - * - * *
      * The percent progress of the Operation. Values can range from 0-100. If the
      * value is 100, then the operation is finished.
      * 
* * int32 progress_percent = 22; - * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; bitField0_ |= 0x00100000; onChanged(); return this; } /** - * - * *
      * The percent progress of the Operation. Values can range from 0-100. If the
      * value is 100, then the operation is finished.
      * 
* * int32 progress_percent = 22; - * * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -6296,19 +5400,13 @@ public Builder clearProgressPercent() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeMetadata, - com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, - com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder> - batchRecognizeMetadataBuilder_; + com.google.cloud.speech.v2.BatchRecognizeMetadata, com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder> batchRecognizeMetadataBuilder_; /** - * - * *
      * Metadata specific to the BatchRecognize method.
      * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; - * * @return Whether the batchRecognizeMetadata field is set. */ @java.lang.Override @@ -6316,14 +5414,11 @@ public boolean hasBatchRecognizeMetadata() { return metadataCase_ == 23; } /** - * - * *
      * Metadata specific to the BatchRecognize method.
      * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; - * * @return The batchRecognizeMetadata. */ @java.lang.Override @@ -6341,16 +5436,13 @@ public com.google.cloud.speech.v2.BatchRecognizeMetadata getBatchRecognizeMetada } } /** - * - * *
      * Metadata specific to the BatchRecognize method.
      * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ - public Builder setBatchRecognizeMetadata( - com.google.cloud.speech.v2.BatchRecognizeMetadata value) { + public Builder setBatchRecognizeMetadata(com.google.cloud.speech.v2.BatchRecognizeMetadata value) { if (batchRecognizeMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6364,8 +5456,6 @@ public Builder setBatchRecognizeMetadata( return this; } /** - * - * *
      * Metadata specific to the BatchRecognize method.
      * 
@@ -6384,25 +5474,18 @@ public Builder setBatchRecognizeMetadata( return this; } /** - * - * *
      * Metadata specific to the BatchRecognize method.
      * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ - public Builder mergeBatchRecognizeMetadata( - com.google.cloud.speech.v2.BatchRecognizeMetadata value) { + public Builder mergeBatchRecognizeMetadata(com.google.cloud.speech.v2.BatchRecognizeMetadata value) { if (batchRecognizeMetadataBuilder_ == null) { - if (metadataCase_ == 23 - && metadata_ - != com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance()) { - metadata_ = - com.google.cloud.speech.v2.BatchRecognizeMetadata.newBuilder( - (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_) - .mergeFrom(value) - .buildPartial(); + if (metadataCase_ == 23 && + metadata_ != com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance()) { + metadata_ = com.google.cloud.speech.v2.BatchRecognizeMetadata.newBuilder((com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_) + .mergeFrom(value).buildPartial(); } else { metadata_ = value; } @@ -6418,8 +5501,6 @@ public Builder mergeBatchRecognizeMetadata( return this; } /** - * - * *
      * Metadata specific to the BatchRecognize method.
      * 
@@ -6443,21 +5524,16 @@ public Builder clearBatchRecognizeMetadata() { return this; } /** - * - * *
      * Metadata specific to the BatchRecognize method.
      * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ - public com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder - getBatchRecognizeMetadataBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder getBatchRecognizeMetadataBuilder() { return getBatchRecognizeMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata specific to the BatchRecognize method.
      * 
@@ -6465,8 +5541,7 @@ public Builder clearBatchRecognizeMetadata() { * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder - getBatchRecognizeMetadataOrBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder getBatchRecognizeMetadataOrBuilder() { if ((metadataCase_ == 23) && (batchRecognizeMetadataBuilder_ != null)) { return batchRecognizeMetadataBuilder_.getMessageOrBuilder(); } else { @@ -6477,8 +5552,6 @@ public Builder clearBatchRecognizeMetadata() { } } /** - * - * *
      * Metadata specific to the BatchRecognize method.
      * 
@@ -6486,19 +5559,14 @@ public Builder clearBatchRecognizeMetadata() { * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeMetadata, - com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, - com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder> + com.google.cloud.speech.v2.BatchRecognizeMetadata, com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder> getBatchRecognizeMetadataFieldBuilder() { if (batchRecognizeMetadataBuilder_ == null) { if (!(metadataCase_ == 23)) { metadata_ = com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance(); } - batchRecognizeMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeMetadata, - com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, - com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder>( + batchRecognizeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.BatchRecognizeMetadata, com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder>( (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_, getParentForChildren(), isClean()); @@ -6508,9 +5576,9 @@ public Builder clearBatchRecognizeMetadata() { onChanged(); return batchRecognizeMetadataBuilder_; } - @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); } @@ -6520,12 +5588,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.OperationMetadata) private static final com.google.cloud.speech.v2.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.OperationMetadata(); } @@ -6534,27 +5602,27 @@ public static com.google.cloud.speech.v2.OperationMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6569,4 +5637,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java similarity index 87% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java index 8baa2442726f..91aed4456f0c 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java @@ -1,55 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time the operation was created.
    * 
@@ -59,32 +35,24 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The time the operation was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The time the operation was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The time the operation was last updated.
    * 
@@ -94,58 +62,46 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * The resource path for the target of the operation.
    * 
* * string resource = 3; - * * @return The resource. */ java.lang.String getResource(); /** - * - * *
    * The resource path for the target of the operation.
    * 
* * string resource = 3; - * * @return The bytes for resource. */ - com.google.protobuf.ByteString getResourceBytes(); + com.google.protobuf.ByteString + getResourceBytes(); /** - * - * *
    * The method that triggered the operation.
    * 
* * string method = 4; - * * @return The method. */ java.lang.String getMethod(); /** - * - * *
    * The method that triggered the operation.
    * 
* * string method = 4; - * * @return The bytes for method. */ - com.google.protobuf.ByteString getMethodBytes(); + com.google.protobuf.ByteString + getMethodBytes(); /** - * - * *
    * The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -154,13 +110,10 @@ public interface OperationMetadataOrBuilder
    * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } - * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
    * The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -169,14 +122,12 @@ public interface OperationMetadataOrBuilder
    * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); /** - * - * *
    * The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -185,13 +136,10 @@ public interface OperationMetadataOrBuilder
    * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } - * * @return The kmsKeyVersionName. */ java.lang.String getKmsKeyVersionName(); /** - * - * *
    * The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -200,38 +148,30 @@ public interface OperationMetadataOrBuilder
    * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKeyVersionName. */ - com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); + com.google.protobuf.ByteString + getKmsKeyVersionNameBytes(); /** - * - * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; - * * @return Whether the batchRecognizeRequest field is set. */ boolean hasBatchRecognizeRequest(); /** - * - * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; - * * @return The batchRecognizeRequest. */ com.google.cloud.speech.v2.BatchRecognizeRequest getBatchRecognizeRequest(); /** - * - * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
@@ -241,32 +181,24 @@ public interface OperationMetadataOrBuilder com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder getBatchRecognizeRequestOrBuilder(); /** - * - * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; - * * @return Whether the createRecognizerRequest field is set. */ boolean hasCreateRecognizerRequest(); /** - * - * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; - * * @return The createRecognizerRequest. */ com.google.cloud.speech.v2.CreateRecognizerRequest getCreateRecognizerRequest(); /** - * - * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
@@ -276,32 +208,24 @@ public interface OperationMetadataOrBuilder com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder getCreateRecognizerRequestOrBuilder(); /** - * - * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; - * * @return Whether the updateRecognizerRequest field is set. */ boolean hasUpdateRecognizerRequest(); /** - * - * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; - * * @return The updateRecognizerRequest. */ com.google.cloud.speech.v2.UpdateRecognizerRequest getUpdateRecognizerRequest(); /** - * - * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
@@ -311,32 +235,24 @@ public interface OperationMetadataOrBuilder com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder getUpdateRecognizerRequestOrBuilder(); /** - * - * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; - * * @return Whether the deleteRecognizerRequest field is set. */ boolean hasDeleteRecognizerRequest(); /** - * - * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; - * * @return The deleteRecognizerRequest. */ com.google.cloud.speech.v2.DeleteRecognizerRequest getDeleteRecognizerRequest(); /** - * - * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
@@ -346,218 +262,159 @@ public interface OperationMetadataOrBuilder com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder getDeleteRecognizerRequestOrBuilder(); /** - * - * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; * @return Whether the undeleteRecognizerRequest field is set. */ boolean hasUndeleteRecognizerRequest(); /** - * - * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; * @return The undeleteRecognizerRequest. */ com.google.cloud.speech.v2.UndeleteRecognizerRequest getUndeleteRecognizerRequest(); /** - * - * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; */ - com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder - getUndeleteRecognizerRequestOrBuilder(); + com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder getUndeleteRecognizerRequestOrBuilder(); /** - * - * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * * @return Whether the createCustomClassRequest field is set. */ boolean hasCreateCustomClassRequest(); /** - * - * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * * @return The createCustomClassRequest. */ com.google.cloud.speech.v2.CreateCustomClassRequest getCreateCustomClassRequest(); /** - * - * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ - com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder - getCreateCustomClassRequestOrBuilder(); + com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder getCreateCustomClassRequestOrBuilder(); /** - * - * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * * @return Whether the updateCustomClassRequest field is set. */ boolean hasUpdateCustomClassRequest(); /** - * - * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * * @return The updateCustomClassRequest. */ com.google.cloud.speech.v2.UpdateCustomClassRequest getUpdateCustomClassRequest(); /** - * - * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ - com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder - getUpdateCustomClassRequestOrBuilder(); + com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder getUpdateCustomClassRequestOrBuilder(); /** - * - * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * * @return Whether the deleteCustomClassRequest field is set. */ boolean hasDeleteCustomClassRequest(); /** - * - * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * * @return The deleteCustomClassRequest. */ com.google.cloud.speech.v2.DeleteCustomClassRequest getDeleteCustomClassRequest(); /** - * - * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ - com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder - getDeleteCustomClassRequestOrBuilder(); + com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder getDeleteCustomClassRequestOrBuilder(); /** - * - * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; * @return Whether the undeleteCustomClassRequest field is set. */ boolean hasUndeleteCustomClassRequest(); /** - * - * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; * @return The undeleteCustomClassRequest. */ com.google.cloud.speech.v2.UndeleteCustomClassRequest getUndeleteCustomClassRequest(); /** - * - * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; */ - com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder - getUndeleteCustomClassRequestOrBuilder(); + com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder getUndeleteCustomClassRequestOrBuilder(); /** - * - * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; - * * @return Whether the createPhraseSetRequest field is set. */ boolean hasCreatePhraseSetRequest(); /** - * - * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; - * * @return The createPhraseSetRequest. */ com.google.cloud.speech.v2.CreatePhraseSetRequest getCreatePhraseSetRequest(); /** - * - * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
@@ -567,32 +424,24 @@ public interface OperationMetadataOrBuilder com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder getCreatePhraseSetRequestOrBuilder(); /** - * - * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; - * * @return Whether the updatePhraseSetRequest field is set. */ boolean hasUpdatePhraseSetRequest(); /** - * - * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; - * * @return The updatePhraseSetRequest. */ com.google.cloud.speech.v2.UpdatePhraseSetRequest getUpdatePhraseSetRequest(); /** - * - * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
@@ -602,32 +451,24 @@ public interface OperationMetadataOrBuilder com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder getUpdatePhraseSetRequestOrBuilder(); /** - * - * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; - * * @return Whether the deletePhraseSetRequest field is set. */ boolean hasDeletePhraseSetRequest(); /** - * - * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; - * * @return The deletePhraseSetRequest. */ com.google.cloud.speech.v2.DeletePhraseSetRequest getDeletePhraseSetRequest(); /** - * - * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
@@ -637,68 +478,51 @@ public interface OperationMetadataOrBuilder com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder getDeletePhraseSetRequestOrBuilder(); /** - * - * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * * @return Whether the undeletePhraseSetRequest field is set. */ boolean hasUndeletePhraseSetRequest(); /** - * - * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * * @return The undeletePhraseSetRequest. */ com.google.cloud.speech.v2.UndeletePhraseSetRequest getUndeletePhraseSetRequest(); /** - * - * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ - com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder - getUndeletePhraseSetRequestOrBuilder(); + com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder getUndeletePhraseSetRequestOrBuilder(); /** - * - * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; - * * @return Whether the updateConfigRequest field is set. */ boolean hasUpdateConfigRequest(); /** - * - * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; - * * @return The updateConfigRequest. */ com.google.cloud.speech.v2.UpdateConfigRequest getUpdateConfigRequest(); /** - * - * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
@@ -708,46 +532,35 @@ public interface OperationMetadataOrBuilder com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRequestOrBuilder(); /** - * - * *
    * The percent progress of the Operation. Values can range from 0-100. If the
    * value is 100, then the operation is finished.
    * 
* * int32 progress_percent = 22; - * * @return The progressPercent. */ int getProgressPercent(); /** - * - * *
    * Metadata specific to the BatchRecognize method.
    * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; - * * @return Whether the batchRecognizeMetadata field is set. */ boolean hasBatchRecognizeMetadata(); /** - * - * *
    * Metadata specific to the BatchRecognize method.
    * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; - * * @return The batchRecognizeMetadata. */ com.google.cloud.speech.v2.BatchRecognizeMetadata getBatchRecognizeMetadata(); /** - * - * *
    * Metadata specific to the BatchRecognize method.
    * 
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java index 4290bf1ac65f..3226de2b8914 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * PhraseSet for biasing in speech recognition. A PhraseSet is used to provide
  * "hints" to the speech recognizer to favor specific words and phrases in the
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
     uid_ = "";
@@ -52,54 +34,51 @@ 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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 10:
         return internalGetAnnotations();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.PhraseSet.class,
-            com.google.cloud.speech.v2.PhraseSet.Builder.class);
+            com.google.cloud.speech.v2.PhraseSet.class, com.google.cloud.speech.v2.PhraseSet.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Set of states that define the lifecycle of a PhraseSet.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.PhraseSet.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified state.  This is only used/useful for distinguishing
      * unset values.
@@ -109,8 +88,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The normal and active state.
      * 
@@ -119,8 +96,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(2), /** - * - * *
      * This PhraseSet has been deleted.
      * 
@@ -132,8 +107,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified state.  This is only used/useful for distinguishing
      * unset values.
@@ -143,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int STATE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * The normal and active state.
      * 
@@ -153,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 2; /** - * - * *
      * This PhraseSet has been deleted.
      * 
@@ -163,6 +132,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETED_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -187,49 +157,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 2: - return ACTIVE; - case 4: - return DELETED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 2: return ACTIVE; + case 4: return DELETED; + 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< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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.v2.PhraseSet.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -246,39 +216,31 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.speech.v2.PhraseSet.State) } - public interface PhraseOrBuilder - extends + public interface PhraseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.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
@@ -293,14 +255,11 @@ public interface PhraseOrBuilder
      * 
* * float boost = 2; - * * @return The boost. */ float getBoost(); } /** - * - * *
    * A Phrase contains words and phrase "hints" so that the speech recognition
    * is more likely to recognize them. This can be used to improve the accuracy
@@ -313,59 +272,53 @@ public interface PhraseOrBuilder
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.PhraseSet.Phrase.class,
-              com.google.cloud.speech.v2.PhraseSet.Phrase.Builder.class);
+              com.google.cloud.speech.v2.PhraseSet.Phrase.class, com.google.cloud.speech.v2.PhraseSet.Phrase.Builder.class);
     }
 
     public static final int VALUE_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object value_ = "";
     /**
-     *
-     *
      * 
      * The phrase itself.
      * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -374,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 { @@ -407,8 +360,6 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_ = 0F; /** - * - * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -423,7 +374,6 @@ public com.google.protobuf.ByteString getValueBytes() {
      * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -432,7 +382,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -444,7 +393,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_); } @@ -464,7 +414,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -474,17 +425,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.v2.PhraseSet.Phrase)) { return super.equals(obj); } - com.google.cloud.speech.v2.PhraseSet.Phrase other = - (com.google.cloud.speech.v2.PhraseSet.Phrase) obj; + com.google.cloud.speech.v2.PhraseSet.Phrase other = (com.google.cloud.speech.v2.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -499,100 +451,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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v2.PhraseSet.Phrase parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.PhraseSet.Phrase parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.PhraseSet.Phrase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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 @@ -602,8 +549,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A Phrase contains words and phrase "hints" so that the speech recognition
      * is more likely to recognize them. This can be used to improve the accuracy
@@ -616,33 +561,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.speech.v2.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.v2.PhraseSet.Phrase)
         com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.speech.v2.CloudSpeechProto
-            .internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.speech.v2.CloudSpeechProto
-            .internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable
+        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.speech.v2.PhraseSet.Phrase.class,
-                com.google.cloud.speech.v2.PhraseSet.Phrase.Builder.class);
+                com.google.cloud.speech.v2.PhraseSet.Phrase.class, com.google.cloud.speech.v2.PhraseSet.Phrase.Builder.class);
       }
 
       // Construct using com.google.cloud.speech.v2.PhraseSet.Phrase.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -653,9 +598,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.speech.v2.CloudSpeechProto
-            .internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
@@ -674,11 +619,8 @@ public com.google.cloud.speech.v2.PhraseSet.Phrase build() {
 
       @java.lang.Override
       public com.google.cloud.speech.v2.PhraseSet.Phrase buildPartial() {
-        com.google.cloud.speech.v2.PhraseSet.Phrase result =
-            new com.google.cloud.speech.v2.PhraseSet.Phrase(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.speech.v2.PhraseSet.Phrase result = new com.google.cloud.speech.v2.PhraseSet.Phrase(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -697,41 +639,38 @@ private void buildPartial0(com.google.cloud.speech.v2.PhraseSet.Phrase result) {
       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.v2.PhraseSet.Phrase) {
-          return mergeFrom((com.google.cloud.speech.v2.PhraseSet.Phrase) other);
+          return mergeFrom((com.google.cloud.speech.v2.PhraseSet.Phrase)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -774,25 +713,22 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  value_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 21:
-                {
-                  boost_ = input.readFloat();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 21
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                value_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 21: {
+                boost_ = input.readFloat();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 21
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -802,25 +738,22 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       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; @@ -829,21 +762,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 { @@ -851,35 +783,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The phrase itself.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -889,21 +814,17 @@ public Builder clearValue() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; @@ -911,10 +832,8 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { 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
@@ -929,7 +848,6 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) {
        * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -937,8 +855,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
@@ -953,20 +869,17 @@ public float getBoost() {
        * 
* * float boost = 2; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000002; 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
@@ -981,7 +894,6 @@ public Builder setBoost(float value) {
        * 
* * float boost = 2; - * * @return This builder for chaining. */ public Builder clearBoost() { @@ -990,7 +902,6 @@ public Builder clearBoost() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1003,12 +914,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.PhraseSet.Phrase) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.PhraseSet.Phrase) private static final com.google.cloud.speech.v2.PhraseSet.Phrase DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.PhraseSet.Phrase(); } @@ -1017,28 +928,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1053,22 +963,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.PhraseSet.Phrase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The resource name of the PhraseSet.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -1077,30 +984,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; } } /** - * - * *
    * Output only. The resource name of the PhraseSet.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1109,18 +1016,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int UID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** - * - * *
    * Output only. System-assigned unique identifier for the PhraseSet.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -1129,29 +1032,29 @@ public java.lang.String getUid() { 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(); uid_ = s; return s; } } /** - * - * *
    * Output only. System-assigned unique identifier for the PhraseSet.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -1160,12 +1063,9 @@ public com.google.protobuf.ByteString getUidBytes() { } public static final int PHRASES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List phrases_; /** - * - * *
    * A list of word and phrases.
    * 
@@ -1177,8 +1077,6 @@ public java.util.List getPhrasesLis return phrases_; } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1186,13 +1084,11 @@ public java.util.List getPhrasesLis * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ @java.lang.Override - public java.util.List + public java.util.List getPhrasesOrBuilderList() { return phrases_; } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1204,8 +1100,6 @@ public int getPhrasesCount() { return phrases_.size(); } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1217,8 +1111,6 @@ public com.google.cloud.speech.v2.PhraseSet.Phrase getPhrases(int index) { return phrases_.get(index); } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1226,15 +1118,14 @@ public com.google.cloud.speech.v2.PhraseSet.Phrase getPhrases(int index) { * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ @java.lang.Override - public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index) { + public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( + int index) { return phrases_.get(index); } public static final int BOOST_FIELD_NUMBER = 4; private float boost_ = 0F; /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -1244,7 +1135,6 @@ public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -1253,19 +1143,15 @@ public float getBoost() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * User-settable, human-readable name for the PhraseSet. Must be 63
    * characters or less.
    * 
* * string display_name = 5; - * * @return The displayName. */ @java.lang.Override @@ -1274,30 +1160,30 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** - * - * *
    * User-settable, human-readable name for the PhraseSet. Must be 63
    * characters or less.
    * 
* * string display_name = 5; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -1308,54 +1194,37 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int STATE_FIELD_NUMBER = 15; private int state_ = 0; /** - * - * *
    * Output only. The PhraseSet lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The PhraseSet lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.speech.v2.PhraseSet.State getState() { - com.google.cloud.speech.v2.PhraseSet.State result = - com.google.cloud.speech.v2.PhraseSet.State.forNumber(state_); + @java.lang.Override public com.google.cloud.speech.v2.PhraseSet.State getState() { + com.google.cloud.speech.v2.PhraseSet.State result = com.google.cloud.speech.v2.PhraseSet.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.PhraseSet.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1363,15 +1232,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1379,14 +1244,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1396,15 +1258,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1412,15 +1270,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -1428,14 +1282,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1445,15 +1296,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -1461,15 +1308,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -1477,14 +1320,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -1494,15 +1334,11 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ @java.lang.Override @@ -1510,15 +1346,11 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ @java.lang.Override @@ -1526,14 +1358,11 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -1541,35 +1370,32 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } public static final int ANNOTATIONS_FIELD_NUMBER = 10; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1579,21 +1405,20 @@ public int getAnnotationsCount() {
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public boolean containsAnnotations(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsAnnotations(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetAnnotations().getMap().containsKey(key);
   }
-  /** Use {@link #getAnnotationsMap()} instead. */
+  /**
+   * Use {@link #getAnnotationsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAnnotations() {
     return getAnnotationsMap();
   }
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1607,8 +1432,6 @@ public java.util.Map getAnnotationsMap() {
     return internalGetAnnotations().getMap();
   }
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1618,19 +1441,17 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getAnnotationsOrDefault(
+  public /* nullable */
+java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetAnnotations().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1640,11 +1461,11 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+  public java.lang.String getAnnotationsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1652,12 +1473,9 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
   }
 
   public static final int ETAG_FIELD_NUMBER = 11;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object etag_ = "";
   /**
-   *
-   *
    * 
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -1665,7 +1483,6 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ @java.lang.Override @@ -1674,15 +1491,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -1690,15 +1506,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -1709,15 +1526,12 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int RECONCILING_FIELD_NUMBER = 12; private boolean reconciling_ = false; /** - * - * *
    * Output only. Whether or not this PhraseSet is in the process of being
    * updated.
    * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -1726,12 +1540,9 @@ public boolean getReconciling() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 13; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -1739,10 +1550,7 @@ public boolean getReconciling() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ @java.lang.Override @@ -1751,15 +1559,14 @@ public java.lang.String getKmsKeyName() { 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(); kmsKeyName_ = s; return s; } } /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -1767,18 +1574,17 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -1787,12 +1593,9 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER = 14; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyVersionName_ = ""; /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1800,10 +1603,7 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyVersionName. */ @java.lang.Override @@ -1812,15 +1612,14 @@ public java.lang.String getKmsKeyVersionName() { 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(); kmsKeyVersionName_ = s; return s; } } /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1828,18 +1627,17 @@ public java.lang.String getKmsKeyVersionName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyVersionName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -1848,7 +1646,6 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1860,7 +1657,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_); } @@ -1888,8 +1686,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (expireTime_ != null) { output.writeMessage(9, getExpireTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 10); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 10); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, etag_); } @@ -1921,41 +1723,48 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } for (int i = 0; i < phrases_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, phrases_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, 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_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getExpireTime()); - } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, annotations__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getExpireTime()); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, annotations__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etag_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, reconciling_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, reconciling_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kmsKeyName_); @@ -1964,7 +1773,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, kmsKeyVersionName_); } if (state_ != com.google.cloud.speech.v2.PhraseSet.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1974,41 +1784,55 @@ 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.v2.PhraseSet)) { return super.equals(obj); } com.google.cloud.speech.v2.PhraseSet other = (com.google.cloud.speech.v2.PhraseSet) obj; - if (!getName().equals(other.getName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (!getPhrasesList().equals(other.getPhrasesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (!getPhrasesList() + .equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits(other.getBoost())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + != java.lang.Float.floatToIntBits( + other.getBoost())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; - } - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (getReconciling() != other.getReconciling()) return false; - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; - if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; + } + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (getReconciling() + != other.getReconciling()) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; + if (!getKmsKeyVersionName() + .equals(other.getKmsKeyVersionName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2029,7 +1853,8 @@ 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 = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; @@ -2057,7 +1882,8 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getKmsKeyName().hashCode(); hash = (37 * hash) + KMS_KEY_VERSION_NAME_FIELD_NUMBER; @@ -2067,103 +1893,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.PhraseSet parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.PhraseSet parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.PhraseSet parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.speech.v2.PhraseSet parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.PhraseSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * PhraseSet for biasing in speech recognition. A PhraseSet is used to provide
    * "hints" to the speech recognizer to favor specific words and phrases in the
@@ -2172,52 +1992,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.PhraseSet)
       com.google.cloud.speech.v2.PhraseSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 10:
           return internalGetAnnotations();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 10:
           return internalGetMutableAnnotations();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.PhraseSet.class,
-              com.google.cloud.speech.v2.PhraseSet.Builder.class);
+              com.google.cloud.speech.v2.PhraseSet.class, com.google.cloud.speech.v2.PhraseSet.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.PhraseSet.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2263,9 +2086,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
     }
 
     @java.lang.Override
@@ -2286,9 +2109,7 @@ public com.google.cloud.speech.v2.PhraseSet build() {
     public com.google.cloud.speech.v2.PhraseSet buildPartial() {
       com.google.cloud.speech.v2.PhraseSet result = new com.google.cloud.speech.v2.PhraseSet(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -2323,16 +2144,24 @@ private void buildPartial0(com.google.cloud.speech.v2.PhraseSet result) {
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null
+            ? deleteTime_
+            : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build();
+        result.expireTime_ = expireTimeBuilder_ == null
+            ? expireTime_
+            : expireTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
         result.annotations_ = internalGetAnnotations();
@@ -2356,39 +2185,38 @@ private void buildPartial0(com.google.cloud.speech.v2.PhraseSet result) {
     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.v2.PhraseSet) {
-        return mergeFrom((com.google.cloud.speech.v2.PhraseSet) other);
+        return mergeFrom((com.google.cloud.speech.v2.PhraseSet)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2425,10 +2253,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            phrasesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPhrasesFieldBuilder()
-                    : null;
+            phrasesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPhrasesFieldBuilder() : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -2457,7 +2284,8 @@ public Builder mergeFrom(com.google.cloud.speech.v2.PhraseSet other) {
       if (other.hasExpireTime()) {
         mergeExpireTime(other.getExpireTime());
       }
-      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(
+          other.internalGetAnnotations());
       bitField0_ |= 0x00000400;
       if (!other.getEtag().isEmpty()) {
         etag_ = other.etag_;
@@ -2503,116 +2331,107 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                uid_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                com.google.cloud.speech.v2.PhraseSet.Phrase m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.PhraseSet.Phrase.parser(), extensionRegistry);
-                if (phrasesBuilder_ == null) {
-                  ensurePhrasesIsMutable();
-                  phrases_.add(m);
-                } else {
-                  phrasesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            case 37:
-              {
-                boost_ = input.readFloat();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 37
-            case 42:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 66
-            case 74:
-              {
-                input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 74
-            case 82:
-              {
-                com.google.protobuf.MapEntry annotations__ =
-                    input.readMessage(
-                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableAnnotations()
-                    .getMutableMap()
-                    .put(annotations__.getKey(), annotations__.getValue());
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 82
-            case 90:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 90
-            case 96:
-              {
-                reconciling_ = input.readBool();
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 96
-            case 106:
-              {
-                kmsKeyName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 106
-            case 114:
-              {
-                kmsKeyVersionName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00004000;
-                break;
-              } // case 114
-            case 120:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 120
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              uid_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              com.google.cloud.speech.v2.PhraseSet.Phrase m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.PhraseSet.Phrase.parser(),
+                      extensionRegistry);
+              if (phrasesBuilder_ == null) {
+                ensurePhrasesIsMutable();
+                phrases_.add(m);
+              } else {
+                phrasesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            case 37: {
+              boost_ = input.readFloat();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 37
+            case 42: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getDeleteTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 66
+            case 74: {
+              input.readMessage(
+                  getExpireTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 74
+            case 82: {
+              com.google.protobuf.MapEntry
+              annotations__ = input.readMessage(
+                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableAnnotations().getMutableMap().put(
+                  annotations__.getKey(), annotations__.getValue());
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 82
+            case 90: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 90
+            case 96: {
+              reconciling_ = input.readBool();
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 96
+            case 106: {
+              kmsKeyName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 106
+            case 114: {
+              kmsKeyVersionName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00004000;
+              break;
+            } // case 114
+            case 120: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 120
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2622,26 +2441,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name of the PhraseSet.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -2650,22 +2466,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the PhraseSet.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -2673,37 +2488,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the PhraseSet.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the PhraseSet.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2713,22 +2521,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name of the PhraseSet.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2738,20 +2542,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. System-assigned unique identifier for the PhraseSet.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; 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(); uid_ = s; return s; @@ -2760,21 +2562,20 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. System-assigned unique identifier for the PhraseSet.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -2782,35 +2583,28 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. System-assigned unique identifier for the PhraseSet.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. System-assigned unique identifier for the PhraseSet.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { @@ -2820,21 +2614,17 @@ public Builder clearUid() { return this; } /** - * - * *
      * Output only. System-assigned unique identifier for the PhraseSet.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000002; @@ -2843,24 +2633,18 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { } private java.util.List phrases_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { phrases_ = new java.util.ArrayList(phrases_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet.Phrase, - com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, - com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder> - phrasesBuilder_; + com.google.cloud.speech.v2.PhraseSet.Phrase, com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder> phrasesBuilder_; /** - * - * *
      * A list of word and phrases.
      * 
@@ -2875,8 +2659,6 @@ public java.util.List getPhrasesLis } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -2891,8 +2673,6 @@ public int getPhrasesCount() { } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -2907,15 +2687,14 @@ public com.google.cloud.speech.v2.PhraseSet.Phrase getPhrases(int index) { } } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public Builder setPhrases(int index, com.google.cloud.speech.v2.PhraseSet.Phrase value) { + public Builder setPhrases( + int index, com.google.cloud.speech.v2.PhraseSet.Phrase value) { if (phrasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2929,8 +2708,6 @@ public Builder setPhrases(int index, com.google.cloud.speech.v2.PhraseSet.Phrase return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -2949,8 +2726,6 @@ public Builder setPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -2971,15 +2746,14 @@ public Builder addPhrases(com.google.cloud.speech.v2.PhraseSet.Phrase value) { return this; } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public Builder addPhrases(int index, com.google.cloud.speech.v2.PhraseSet.Phrase value) { + public Builder addPhrases( + int index, com.google.cloud.speech.v2.PhraseSet.Phrase value) { if (phrasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2993,15 +2767,14 @@ public Builder addPhrases(int index, com.google.cloud.speech.v2.PhraseSet.Phrase return this; } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public Builder addPhrases(com.google.cloud.speech.v2.PhraseSet.Phrase.Builder builderForValue) { + public Builder addPhrases( + com.google.cloud.speech.v2.PhraseSet.Phrase.Builder builderForValue) { if (phrasesBuilder_ == null) { ensurePhrasesIsMutable(); phrases_.add(builderForValue.build()); @@ -3012,8 +2785,6 @@ public Builder addPhrases(com.google.cloud.speech.v2.PhraseSet.Phrase.Builder bu return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -3032,8 +2803,6 @@ public Builder addPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -3044,7 +2813,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); @@ -3052,8 +2822,6 @@ public Builder addAllPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -3071,8 +2839,6 @@ public Builder clearPhrases() { return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -3090,44 +2856,39 @@ public Builder removePhrases(int index) { return this; } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder getPhrasesBuilder(int index) { + public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder getPhrasesBuilder( + int index) { return getPhrasesFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index) { + public com.google.cloud.speech.v2.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.v2.PhraseSet.Phrase phrases = 3; */ - public java.util.List - getPhrasesOrBuilderList() { + public java.util.List + getPhrasesOrBuilderList() { if (phrasesBuilder_ != null) { return phrasesBuilder_.getMessageOrBuilderList(); } else { @@ -3135,8 +2896,6 @@ public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -3144,57 +2903,49 @@ public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder addPhrasesBuilder() { - return getPhrasesFieldBuilder() - .addBuilder(com.google.cloud.speech.v2.PhraseSet.Phrase.getDefaultInstance()); + return getPhrasesFieldBuilder().addBuilder( + com.google.cloud.speech.v2.PhraseSet.Phrase.getDefaultInstance()); } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder addPhrasesBuilder(int index) { - return getPhrasesFieldBuilder() - .addBuilder(index, com.google.cloud.speech.v2.PhraseSet.Phrase.getDefaultInstance()); + public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder addPhrasesBuilder( + int index) { + return getPhrasesFieldBuilder().addBuilder( + index, com.google.cloud.speech.v2.PhraseSet.Phrase.getDefaultInstance()); } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public java.util.List - getPhrasesBuilderList() { + public java.util.List + getPhrasesBuilderList() { return getPhrasesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet.Phrase, - com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, - com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder> + com.google.cloud.speech.v2.PhraseSet.Phrase, com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder> getPhrasesFieldBuilder() { if (phrasesBuilder_ == null) { - phrasesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet.Phrase, - com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, - com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder>( - phrases_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + phrasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.PhraseSet.Phrase, com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder>( + phrases_, + ((bitField0_ & 0x00000004) != 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
@@ -3204,7 +2955,6 @@ public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder addPhrasesBuilder(int
      * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -3212,8 +2962,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
@@ -3223,20 +2971,17 @@ public float getBoost() {
      * 
* * float boost = 4; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000008; 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
@@ -3246,7 +2991,6 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; - * * @return This builder for chaining. */ public Builder clearBoost() { @@ -3258,21 +3002,19 @@ public Builder clearBoost() { private java.lang.Object displayName_ = ""; /** - * - * *
      * User-settable, human-readable name for the PhraseSet. Must be 63
      * characters or less.
      * 
* * string display_name = 5; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -3281,22 +3023,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * User-settable, human-readable name for the PhraseSet. Must be 63
      * characters or less.
      * 
* * string display_name = 5; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -3304,37 +3045,30 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * User-settable, human-readable name for the PhraseSet. Must be 63
      * characters or less.
      * 
* * string display_name = 5; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * User-settable, human-readable name for the PhraseSet. Must be 63
      * characters or less.
      * 
* * string display_name = 5; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -3344,22 +3078,18 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * User-settable, human-readable name for the PhraseSet. Must be 63
      * characters or less.
      * 
* * string display_name = 5; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000010; @@ -3369,33 +3099,22 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The PhraseSet lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The PhraseSet lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3406,35 +3125,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The PhraseSet lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSet.State getState() { - com.google.cloud.speech.v2.PhraseSet.State result = - com.google.cloud.speech.v2.PhraseSet.State.forNumber(state_); + com.google.cloud.speech.v2.PhraseSet.State result = com.google.cloud.speech.v2.PhraseSet.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.PhraseSet.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The PhraseSet lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3448,16 +3156,11 @@ public Builder setState(com.google.cloud.speech.v2.PhraseSet.State value) { return this; } /** - * - * *
      * Output only. The PhraseSet lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -3469,58 +3172,39 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3536,17 +3220,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -3557,21 +3238,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3584,15 +3261,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3605,15 +3278,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -3621,48 +3290,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3670,58 +3327,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3737,17 +3375,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3758,21 +3393,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3785,15 +3416,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3806,15 +3433,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -3822,48 +3445,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3871,58 +3482,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3938,17 +3530,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -3959,21 +3548,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -3986,15 +3571,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -4007,15 +3588,11 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -4023,48 +3600,36 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -4072,58 +3637,39 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -4139,17 +3685,14 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -4160,21 +3703,17 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && expireTime_ != null - && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + expireTime_ != null && + expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -4187,15 +3726,11 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000200); @@ -4208,15 +3743,11 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000200; @@ -4224,55 +3755,43 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), + getParentForChildren(), + isClean()); expireTime_ = null; } return expireTimeBuilder_; } - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -4281,12 +3800,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } return annotations_; } - private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = - com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -4295,13 +3813,10 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { onChanged(); return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4311,21 +3826,20 @@ public int getAnnotationsCount() {
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public boolean containsAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetAnnotations().getMap().containsKey(key);
     }
-    /** Use {@link #getAnnotationsMap()} instead. */
+    /**
+     * Use {@link #getAnnotationsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAnnotations() {
       return getAnnotationsMap();
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4339,8 +3853,6 @@ public java.util.Map getAnnotationsMap() {
       return internalGetAnnotations().getMap();
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4350,19 +3862,17 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getAnnotationsOrDefault(
+    public /* nullable */
+java.lang.String getAnnotationsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetAnnotations().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4372,25 +3882,23 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+    public java.lang.String getAnnotationsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearAnnotations() {
       bitField0_ = (bitField0_ & ~0x00000400);
-      internalGetMutableAnnotations().getMutableMap().clear();
+      internalGetMutableAnnotations().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4399,22 +3907,23 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 10;
      */
-    public Builder removeAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableAnnotations().getMutableMap().remove(key);
+    public Builder removeAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableAnnotations().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableAnnotations() {
+    public java.util.Map
+        getMutableAnnotations() {
       bitField0_ |= 0x00000400;
       return internalGetMutableAnnotations().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4423,20 +3932,17 @@ public java.util.Map getMutableAnnotations()
      *
      * map<string, string> annotations = 10;
      */
-    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableAnnotations().getMutableMap().put(key, value);
+    public Builder putAnnotations(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableAnnotations().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000400;
       return this;
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4445,16 +3951,16 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> annotations = 10;
      */
-    public Builder putAllAnnotations(java.util.Map values) {
-      internalGetMutableAnnotations().getMutableMap().putAll(values);
+    public Builder putAllAnnotations(
+        java.util.Map values) {
+      internalGetMutableAnnotations().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000400;
       return this;
     }
 
     private java.lang.Object etag_ = "";
     /**
-     *
-     *
      * 
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4462,13 +3968,13 @@ public Builder putAllAnnotations(java.util.Map
      *
      * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
-     *
      * @return The etag.
      */
     public java.lang.String getEtag() {
       java.lang.Object ref = etag_;
       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();
         etag_ = s;
         return s;
@@ -4477,8 +3983,6 @@ public java.lang.String getEtag() {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4486,14 +3990,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -4501,8 +4006,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4510,22 +4013,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4533,7 +4032,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -4543,8 +4041,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4552,14 +4048,12 @@ public Builder clearEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000800; @@ -4567,17 +4061,14 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } - private boolean reconciling_; + private boolean reconciling_ ; /** - * - * *
      * Output only. Whether or not this PhraseSet is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -4585,35 +4076,29 @@ public boolean getReconciling() { return reconciling_; } /** - * - * *
      * Output only. Whether or not this PhraseSet is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** - * - * *
      * Output only. Whether or not this PhraseSet is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -4625,8 +4110,6 @@ public Builder clearReconciling() { private java.lang.Object kmsKeyName_ = ""; /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4634,16 +4117,14 @@ public Builder clearReconciling() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; 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(); kmsKeyName_ = s; return s; @@ -4652,8 +4133,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4661,17 +4140,16 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -4679,8 +4157,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4688,25 +4164,19 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyName_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4714,10 +4184,7 @@ public Builder setKmsKeyName(java.lang.String value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -4727,8 +4194,6 @@ public Builder clearKmsKeyName() { return this; } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4736,17 +4201,13 @@ public Builder clearKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00002000; @@ -4756,8 +4217,6 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyVersionName_ = ""; /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4765,16 +4224,14 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyVersionName. */ public java.lang.String getKmsKeyVersionName() { java.lang.Object ref = kmsKeyVersionName_; 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(); kmsKeyVersionName_ = s; return s; @@ -4783,8 +4240,6 @@ public java.lang.String getKmsKeyVersionName() { } } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4792,17 +4247,16 @@ public java.lang.String getKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyVersionName. */ - public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -4810,8 +4264,6 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { } } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4819,25 +4271,19 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyVersionName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyVersionName_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4845,10 +4291,7 @@ public Builder setKmsKeyVersionName(java.lang.String value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { @@ -4858,8 +4301,6 @@ public Builder clearKmsKeyVersionName() { return this; } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4867,26 +4308,22 @@ public Builder clearKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyVersionNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyVersionName_ = value; bitField0_ |= 0x00004000; 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); } @@ -4896,12 +4333,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.PhraseSet) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.PhraseSet) private static final com.google.cloud.speech.v2.PhraseSet DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.PhraseSet(); } @@ -4910,27 +4347,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4945,4 +4382,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java similarity index 75% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java index 1989e818db78..8f448c93bd77 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface PhraseSetOrBuilder - extends +public interface PhraseSetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.PhraseSet) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the PhraseSet.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the PhraseSet.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. System-assigned unique identifier for the PhraseSet.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. System-assigned unique identifier for the PhraseSet.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - java.util.List getPhrasesList(); + java.util.List + getPhrasesList(); /** - * - * *
    * A list of word and phrases.
    * 
@@ -96,8 +67,6 @@ public interface PhraseSetOrBuilder */ com.google.cloud.speech.v2.PhraseSet.Phrase getPhrases(int index); /** - * - * *
    * A list of word and phrases.
    * 
@@ -106,30 +75,25 @@ public interface PhraseSetOrBuilder */ int getPhrasesCount(); /** - * - * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - java.util.List + java.util.List getPhrasesOrBuilderList(); /** - * - * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index); + com.google.cloud.speech.v2.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
@@ -139,222 +103,160 @@ public interface PhraseSetOrBuilder
    * 
* * float boost = 4; - * * @return The boost. */ float getBoost(); /** - * - * *
    * User-settable, human-readable name for the PhraseSet. Must be 63
    * characters or less.
    * 
* * string display_name = 5; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * User-settable, human-readable name for the PhraseSet. Must be 63
    * characters or less.
    * 
* * string display_name = 5; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. The PhraseSet lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The PhraseSet lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.speech.v2.PhraseSet.State getState(); /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * *
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -365,8 +267,6 @@ public interface PhraseSetOrBuilder
    */
   int getAnnotationsCount();
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -375,13 +275,15 @@ public interface PhraseSetOrBuilder
    *
    * map<string, string> annotations = 10;
    */
-  boolean containsAnnotations(java.lang.String key);
-  /** Use {@link #getAnnotationsMap()} instead. */
+  boolean containsAnnotations(
+      java.lang.String key);
+  /**
+   * Use {@link #getAnnotationsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getAnnotations();
+  java.util.Map
+  getAnnotations();
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -390,10 +292,9 @@ public interface PhraseSetOrBuilder
    *
    * map<string, string> annotations = 10;
    */
-  java.util.Map getAnnotationsMap();
+  java.util.Map
+  getAnnotationsMap();
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -403,13 +304,11 @@ public interface PhraseSetOrBuilder
    * map<string, string> annotations = 10;
    */
   /* nullable */
-  java.lang.String getAnnotationsOrDefault(
+java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -418,11 +317,10 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> annotations = 10;
    */
-  java.lang.String getAnnotationsOrThrow(java.lang.String key);
+  java.lang.String getAnnotationsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -430,13 +328,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -444,28 +339,23 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Output only. Whether or not this PhraseSet is in the process of being
    * updated.
    * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ boolean getReconciling(); /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -473,16 +363,11 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -490,17 +375,13 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -508,16 +389,11 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyVersionName. */ java.lang.String getKmsKeyVersionName(); /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -525,11 +401,9 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyVersionName. */ - com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); + com.google.protobuf.ByteString + getKmsKeyVersionNameBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java index 9968a0781200..5cca8f7c317d 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Provides information to the Recognizer that specifies how to process the
  * recognition request.
@@ -28,56 +11,52 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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() {}
+  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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.RecognitionConfig.class,
-            com.google.cloud.speech.v2.RecognitionConfig.Builder.class);
+            com.google.cloud.speech.v2.RecognitionConfig.class, com.google.cloud.speech.v2.RecognitionConfig.Builder.class);
   }
 
   private int decodingConfigCase_ = 0;
   private java.lang.Object decodingConfig_;
-
   public enum DecodingConfigCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     AUTO_DECODING_CONFIG(7),
     EXPLICIT_DECODING_CONFIG(8),
     DECODINGCONFIG_NOT_SET(0);
     private final int value;
-
     private DecodingConfigCase(int value) {
       this.value = value;
     }
@@ -93,37 +72,31 @@ public static DecodingConfigCase valueOf(int value) {
 
     public static DecodingConfigCase forNumber(int value) {
       switch (value) {
-        case 7:
-          return AUTO_DECODING_CONFIG;
-        case 8:
-          return EXPLICIT_DECODING_CONFIG;
-        case 0:
-          return DECODINGCONFIG_NOT_SET;
-        default:
-          return null;
+        case 7: return AUTO_DECODING_CONFIG;
+        case 8: return EXPLICIT_DECODING_CONFIG;
+        case 0: return DECODINGCONFIG_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public DecodingConfigCase getDecodingConfigCase() {
-    return DecodingConfigCase.forNumber(decodingConfigCase_);
+  public DecodingConfigCase
+  getDecodingConfigCase() {
+    return DecodingConfigCase.forNumber(
+        decodingConfigCase_);
   }
 
   public static final int AUTO_DECODING_CONFIG_FIELD_NUMBER = 7;
   /**
-   *
-   *
    * 
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
    * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; - * * @return Whether the autoDecodingConfig field is set. */ @java.lang.Override @@ -131,27 +104,22 @@ public boolean hasAutoDecodingConfig() { return decodingConfigCase_ == 7; } /** - * - * *
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
    * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; - * * @return The autoDecodingConfig. */ @java.lang.Override public com.google.cloud.speech.v2.AutoDetectDecodingConfig getAutoDecodingConfig() { if (decodingConfigCase_ == 7) { - return (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_; + return (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_; } return com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance(); } /** - * - * *
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
@@ -160,25 +128,21 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig getAutoDecodingConfig
    * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder
-      getAutoDecodingConfigOrBuilder() {
+  public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder getAutoDecodingConfigOrBuilder() {
     if (decodingConfigCase_ == 7) {
-      return (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_;
+       return (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_;
     }
     return com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance();
   }
 
   public static final int EXPLICIT_DECODING_CONFIG_FIELD_NUMBER = 8;
   /**
-   *
-   *
    * 
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
    * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; - * * @return Whether the explicitDecodingConfig field is set. */ @java.lang.Override @@ -186,27 +150,22 @@ public boolean hasExplicitDecodingConfig() { return decodingConfigCase_ == 8; } /** - * - * *
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
    * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; - * * @return The explicitDecodingConfig. */ @java.lang.Override public com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConfig() { if (decodingConfigCase_ == 8) { - return (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_; + return (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_; } return com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance(); } /** - * - * *
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -215,10 +174,9 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConf
    * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder
-      getExplicitDecodingConfigOrBuilder() {
+  public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder getExplicitDecodingConfigOrBuilder() {
     if (decodingConfigCase_ == 8) {
-      return (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_;
+       return (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_;
     }
     return com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance();
   }
@@ -226,14 +184,11 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConf
   public static final int FEATURES_FIELD_NUMBER = 2;
   private com.google.cloud.speech.v2.RecognitionFeatures features_;
   /**
-   *
-   *
    * 
    * Speech recognition features to enable.
    * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; - * * @return Whether the features field is set. */ @java.lang.Override @@ -241,25 +196,18 @@ public boolean hasFeatures() { return features_ != null; } /** - * - * *
    * Speech recognition features to enable.
    * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; - * * @return The features. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionFeatures getFeatures() { - return features_ == null - ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() - : features_; + return features_ == null ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() : features_; } /** - * - * *
    * Speech recognition features to enable.
    * 
@@ -268,23 +216,18 @@ public com.google.cloud.speech.v2.RecognitionFeatures getFeatures() { */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder getFeaturesOrBuilder() { - return features_ == null - ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() - : features_; + return features_ == null ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() : features_; } public static final int ADAPTATION_FIELD_NUMBER = 6; private com.google.cloud.speech.v2.SpeechAdaptation adaptation_; /** - * - * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
    * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; - * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -292,26 +235,19 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** - * - * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
    * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; - * * @return The adaptation. */ @java.lang.Override public com.google.cloud.speech.v2.SpeechAdaptation getAdaptation() { - return adaptation_ == null - ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() - : adaptation_; + return adaptation_ == null ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() : adaptation_; } /** - * - * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
@@ -321,13 +257,10 @@ public com.google.cloud.speech.v2.SpeechAdaptation getAdaptation() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v2.SpeechAdaptationOrBuilder getAdaptationOrBuilder() {
-    return adaptation_ == null
-        ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance()
-        : adaptation_;
+    return adaptation_ == null ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() : adaptation_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -339,7 +272,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 (features_ != null) {
       output.writeMessage(2, getFeatures());
     }
@@ -362,20 +296,20 @@ public int getSerializedSize() {
 
     size = 0;
     if (features_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFeatures());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getFeatures());
     }
     if (adaptation_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getAdaptation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, getAdaptation());
     }
     if (decodingConfigCase_ == 7) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              7, (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_);
     }
     if (decodingConfigCase_ == 8) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              8, (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -385,29 +319,32 @@ 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.v2.RecognitionConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.RecognitionConfig other =
-        (com.google.cloud.speech.v2.RecognitionConfig) obj;
+    com.google.cloud.speech.v2.RecognitionConfig other = (com.google.cloud.speech.v2.RecognitionConfig) obj;
 
     if (hasFeatures() != other.hasFeatures()) return false;
     if (hasFeatures()) {
-      if (!getFeatures().equals(other.getFeatures())) return false;
+      if (!getFeatures()
+          .equals(other.getFeatures())) 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 (!getDecodingConfigCase().equals(other.getDecodingConfigCase())) return false;
     switch (decodingConfigCase_) {
       case 7:
-        if (!getAutoDecodingConfig().equals(other.getAutoDecodingConfig())) return false;
+        if (!getAutoDecodingConfig()
+            .equals(other.getAutoDecodingConfig())) return false;
         break;
       case 8:
-        if (!getExplicitDecodingConfig().equals(other.getExplicitDecodingConfig())) return false;
+        if (!getExplicitDecodingConfig()
+            .equals(other.getExplicitDecodingConfig())) return false;
         break;
       case 0:
       default:
@@ -448,104 +385,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.speech.v2.RecognitionConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.speech.v2.RecognitionConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.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.v2.RecognitionConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.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.v2.RecognitionConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.RecognitionConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v2.RecognitionConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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
    * recognition request.
@@ -553,32 +483,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.RecognitionConfig)
       com.google.cloud.speech.v2.RecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.RecognitionConfig.class,
-              com.google.cloud.speech.v2.RecognitionConfig.Builder.class);
+              com.google.cloud.speech.v2.RecognitionConfig.class, com.google.cloud.speech.v2.RecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.RecognitionConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -605,9 +536,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
@@ -626,11 +557,8 @@ public com.google.cloud.speech.v2.RecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.RecognitionConfig buildPartial() {
-      com.google.cloud.speech.v2.RecognitionConfig result =
-          new com.google.cloud.speech.v2.RecognitionConfig(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.RecognitionConfig result = new com.google.cloud.speech.v2.RecognitionConfig(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -639,20 +567,26 @@ public com.google.cloud.speech.v2.RecognitionConfig buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.RecognitionConfig result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.features_ = featuresBuilder_ == null ? features_ : featuresBuilder_.build();
+        result.features_ = featuresBuilder_ == null
+            ? features_
+            : featuresBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.adaptation_ = adaptationBuilder_ == null ? adaptation_ : adaptationBuilder_.build();
+        result.adaptation_ = adaptationBuilder_ == null
+            ? adaptation_
+            : adaptationBuilder_.build();
       }
     }
 
     private void buildPartialOneofs(com.google.cloud.speech.v2.RecognitionConfig result) {
       result.decodingConfigCase_ = decodingConfigCase_;
       result.decodingConfig_ = this.decodingConfig_;
-      if (decodingConfigCase_ == 7 && autoDecodingConfigBuilder_ != null) {
+      if (decodingConfigCase_ == 7 &&
+          autoDecodingConfigBuilder_ != null) {
         result.decodingConfig_ = autoDecodingConfigBuilder_.build();
       }
-      if (decodingConfigCase_ == 8 && explicitDecodingConfigBuilder_ != null) {
+      if (decodingConfigCase_ == 8 &&
+          explicitDecodingConfigBuilder_ != null) {
         result.decodingConfig_ = explicitDecodingConfigBuilder_.build();
       }
     }
@@ -661,39 +595,38 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.RecognitionConfig res
     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.v2.RecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v2.RecognitionConfig) other);
+        return mergeFrom((com.google.cloud.speech.v2.RecognitionConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -709,20 +642,17 @@ public Builder mergeFrom(com.google.cloud.speech.v2.RecognitionConfig other) {
         mergeAdaptation(other.getAdaptation());
       }
       switch (other.getDecodingConfigCase()) {
-        case AUTO_DECODING_CONFIG:
-          {
-            mergeAutoDecodingConfig(other.getAutoDecodingConfig());
-            break;
-          }
-        case EXPLICIT_DECODING_CONFIG:
-          {
-            mergeExplicitDecodingConfig(other.getExplicitDecodingConfig());
-            break;
-          }
-        case DECODINGCONFIG_NOT_SET:
-          {
-            break;
-          }
+        case AUTO_DECODING_CONFIG: {
+          mergeAutoDecodingConfig(other.getAutoDecodingConfig());
+          break;
+        }
+        case EXPLICIT_DECODING_CONFIG: {
+          mergeExplicitDecodingConfig(other.getExplicitDecodingConfig());
+          break;
+        }
+        case DECODINGCONFIG_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -750,39 +680,40 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18:
-              {
-                input.readMessage(getFeaturesFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 18
-            case 50:
-              {
-                input.readMessage(getAdaptationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(
-                    getAutoDecodingConfigFieldBuilder().getBuilder(), extensionRegistry);
-                decodingConfigCase_ = 7;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(
-                    getExplicitDecodingConfigFieldBuilder().getBuilder(), extensionRegistry);
-                decodingConfigCase_ = 8;
-                break;
-              } // case 66
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 18: {
+              input.readMessage(
+                  getFeaturesFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 18
+            case 50: {
+              input.readMessage(
+                  getAdaptationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getAutoDecodingConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              decodingConfigCase_ = 7;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getExplicitDecodingConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              decodingConfigCase_ = 8;
+              break;
+            } // case 66
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -792,12 +723,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int decodingConfigCase_ = 0;
     private java.lang.Object decodingConfig_;
-
-    public DecodingConfigCase getDecodingConfigCase() {
-      return DecodingConfigCase.forNumber(decodingConfigCase_);
+    public DecodingConfigCase
+        getDecodingConfigCase() {
+      return DecodingConfigCase.forNumber(
+          decodingConfigCase_);
     }
 
     public Builder clearDecodingConfig() {
@@ -810,20 +741,14 @@ public Builder clearDecodingConfig() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.AutoDetectDecodingConfig,
-            com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder,
-            com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder>
-        autoDecodingConfigBuilder_;
+        com.google.cloud.speech.v2.AutoDetectDecodingConfig, com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder, com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder> autoDecodingConfigBuilder_;
     /**
-     *
-     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
      * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; - * * @return Whether the autoDecodingConfig field is set. */ @java.lang.Override @@ -831,15 +756,12 @@ public boolean hasAutoDecodingConfig() { return decodingConfigCase_ == 7; } /** - * - * *
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
      * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; - * * @return The autoDecodingConfig. */ @java.lang.Override @@ -857,8 +779,6 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig getAutoDecodingConfig } } /** - * - * *
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -866,8 +786,7 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig getAutoDecodingConfig
      *
      * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      */
-    public Builder setAutoDecodingConfig(
-        com.google.cloud.speech.v2.AutoDetectDecodingConfig value) {
+    public Builder setAutoDecodingConfig(com.google.cloud.speech.v2.AutoDetectDecodingConfig value) {
       if (autoDecodingConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -881,8 +800,6 @@ public Builder setAutoDecodingConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -902,8 +819,6 @@ public Builder setAutoDecodingConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -911,17 +826,12 @@ public Builder setAutoDecodingConfig(
      *
      * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      */
-    public Builder mergeAutoDecodingConfig(
-        com.google.cloud.speech.v2.AutoDetectDecodingConfig value) {
+    public Builder mergeAutoDecodingConfig(com.google.cloud.speech.v2.AutoDetectDecodingConfig value) {
       if (autoDecodingConfigBuilder_ == null) {
-        if (decodingConfigCase_ == 7
-            && decodingConfig_
-                != com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance()) {
-          decodingConfig_ =
-              com.google.cloud.speech.v2.AutoDetectDecodingConfig.newBuilder(
-                      (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (decodingConfigCase_ == 7 &&
+            decodingConfig_ != com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance()) {
+          decodingConfig_ = com.google.cloud.speech.v2.AutoDetectDecodingConfig.newBuilder((com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_)
+              .mergeFrom(value).buildPartial();
         } else {
           decodingConfig_ = value;
         }
@@ -937,8 +847,6 @@ public Builder mergeAutoDecodingConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -963,8 +871,6 @@ public Builder clearAutoDecodingConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -972,13 +878,10 @@ public Builder clearAutoDecodingConfig() {
      *
      * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      */
-    public com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder
-        getAutoDecodingConfigBuilder() {
+    public com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder getAutoDecodingConfigBuilder() {
       return getAutoDecodingConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -987,8 +890,7 @@ public Builder clearAutoDecodingConfig() {
      * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      */
     @java.lang.Override
-    public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder
-        getAutoDecodingConfigOrBuilder() {
+    public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder getAutoDecodingConfigOrBuilder() {
       if ((decodingConfigCase_ == 7) && (autoDecodingConfigBuilder_ != null)) {
         return autoDecodingConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -999,8 +901,6 @@ public Builder clearAutoDecodingConfig() {
       }
     }
     /**
-     *
-     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -1009,20 +909,14 @@ public Builder clearAutoDecodingConfig() {
      * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.AutoDetectDecodingConfig,
-            com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder,
-            com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder>
+        com.google.cloud.speech.v2.AutoDetectDecodingConfig, com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder, com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder> 
         getAutoDecodingConfigFieldBuilder() {
       if (autoDecodingConfigBuilder_ == null) {
         if (!(decodingConfigCase_ == 7)) {
-          decodingConfig_ =
-              com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance();
+          decodingConfig_ = com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance();
         }
-        autoDecodingConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v2.AutoDetectDecodingConfig,
-                com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder,
-                com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder>(
+        autoDecodingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v2.AutoDetectDecodingConfig, com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder, com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder>(
                 (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_,
                 getParentForChildren(),
                 isClean());
@@ -1034,20 +928,14 @@ public Builder clearAutoDecodingConfig() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.ExplicitDecodingConfig,
-            com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder,
-            com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder>
-        explicitDecodingConfigBuilder_;
+        com.google.cloud.speech.v2.ExplicitDecodingConfig, com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder, com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder> explicitDecodingConfigBuilder_;
     /**
-     *
-     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
      * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; - * * @return Whether the explicitDecodingConfig field is set. */ @java.lang.Override @@ -1055,15 +943,12 @@ public boolean hasExplicitDecodingConfig() { return decodingConfigCase_ == 8; } /** - * - * *
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
      * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; - * * @return The explicitDecodingConfig. */ @java.lang.Override @@ -1081,8 +966,6 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConf } } /** - * - * *
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1090,8 +973,7 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConf
      *
      * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      */
-    public Builder setExplicitDecodingConfig(
-        com.google.cloud.speech.v2.ExplicitDecodingConfig value) {
+    public Builder setExplicitDecodingConfig(com.google.cloud.speech.v2.ExplicitDecodingConfig value) {
       if (explicitDecodingConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1105,8 +987,6 @@ public Builder setExplicitDecodingConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1126,8 +1006,6 @@ public Builder setExplicitDecodingConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1135,17 +1013,12 @@ public Builder setExplicitDecodingConfig(
      *
      * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      */
-    public Builder mergeExplicitDecodingConfig(
-        com.google.cloud.speech.v2.ExplicitDecodingConfig value) {
+    public Builder mergeExplicitDecodingConfig(com.google.cloud.speech.v2.ExplicitDecodingConfig value) {
       if (explicitDecodingConfigBuilder_ == null) {
-        if (decodingConfigCase_ == 8
-            && decodingConfig_
-                != com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance()) {
-          decodingConfig_ =
-              com.google.cloud.speech.v2.ExplicitDecodingConfig.newBuilder(
-                      (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (decodingConfigCase_ == 8 &&
+            decodingConfig_ != com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance()) {
+          decodingConfig_ = com.google.cloud.speech.v2.ExplicitDecodingConfig.newBuilder((com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_)
+              .mergeFrom(value).buildPartial();
         } else {
           decodingConfig_ = value;
         }
@@ -1161,8 +1034,6 @@ public Builder mergeExplicitDecodingConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1187,8 +1058,6 @@ public Builder clearExplicitDecodingConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1196,13 +1065,10 @@ public Builder clearExplicitDecodingConfig() {
      *
      * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      */
-    public com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder
-        getExplicitDecodingConfigBuilder() {
+    public com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder getExplicitDecodingConfigBuilder() {
       return getExplicitDecodingConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1211,8 +1077,7 @@ public Builder clearExplicitDecodingConfig() {
      * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      */
     @java.lang.Override
-    public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder
-        getExplicitDecodingConfigOrBuilder() {
+    public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder getExplicitDecodingConfigOrBuilder() {
       if ((decodingConfigCase_ == 8) && (explicitDecodingConfigBuilder_ != null)) {
         return explicitDecodingConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -1223,8 +1088,6 @@ public Builder clearExplicitDecodingConfig() {
       }
     }
     /**
-     *
-     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1233,19 +1096,14 @@ public Builder clearExplicitDecodingConfig() {
      * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.ExplicitDecodingConfig,
-            com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder,
-            com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder>
+        com.google.cloud.speech.v2.ExplicitDecodingConfig, com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder, com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder> 
         getExplicitDecodingConfigFieldBuilder() {
       if (explicitDecodingConfigBuilder_ == null) {
         if (!(decodingConfigCase_ == 8)) {
           decodingConfig_ = com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance();
         }
-        explicitDecodingConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v2.ExplicitDecodingConfig,
-                com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder,
-                com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder>(
+        explicitDecodingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v2.ExplicitDecodingConfig, com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder, com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder>(
                 (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_,
                 getParentForChildren(),
                 isClean());
@@ -1258,47 +1116,34 @@ public Builder clearExplicitDecodingConfig() {
 
     private com.google.cloud.speech.v2.RecognitionFeatures features_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.RecognitionFeatures,
-            com.google.cloud.speech.v2.RecognitionFeatures.Builder,
-            com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder>
-        featuresBuilder_;
+        com.google.cloud.speech.v2.RecognitionFeatures, com.google.cloud.speech.v2.RecognitionFeatures.Builder, com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder> featuresBuilder_;
     /**
-     *
-     *
      * 
      * Speech recognition features to enable.
      * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; - * * @return Whether the features field is set. */ public boolean hasFeatures() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Speech recognition features to enable.
      * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; - * * @return The features. */ public com.google.cloud.speech.v2.RecognitionFeatures getFeatures() { if (featuresBuilder_ == null) { - return features_ == null - ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() - : features_; + return features_ == null ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() : features_; } else { return featuresBuilder_.getMessage(); } } /** - * - * *
      * Speech recognition features to enable.
      * 
@@ -1319,8 +1164,6 @@ public Builder setFeatures(com.google.cloud.speech.v2.RecognitionFeatures value) return this; } /** - * - * *
      * Speech recognition features to enable.
      * 
@@ -1339,8 +1182,6 @@ public Builder setFeatures( return this; } /** - * - * *
      * Speech recognition features to enable.
      * 
@@ -1349,9 +1190,9 @@ public Builder setFeatures( */ public Builder mergeFeatures(com.google.cloud.speech.v2.RecognitionFeatures value) { if (featuresBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && features_ != null - && features_ != com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + features_ != null && + features_ != com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance()) { getFeaturesBuilder().mergeFrom(value); } else { features_ = value; @@ -1364,8 +1205,6 @@ public Builder mergeFeatures(com.google.cloud.speech.v2.RecognitionFeatures valu return this; } /** - * - * *
      * Speech recognition features to enable.
      * 
@@ -1383,8 +1222,6 @@ public Builder clearFeatures() { return this; } /** - * - * *
      * Speech recognition features to enable.
      * 
@@ -1397,8 +1234,6 @@ public com.google.cloud.speech.v2.RecognitionFeatures.Builder getFeaturesBuilder return getFeaturesFieldBuilder().getBuilder(); } /** - * - * *
      * Speech recognition features to enable.
      * 
@@ -1409,14 +1244,11 @@ public com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder getFeaturesOrBuil if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilder(); } else { - return features_ == null - ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() - : features_; + return features_ == null ? + com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() : features_; } } /** - * - * *
      * Speech recognition features to enable.
      * 
@@ -1424,17 +1256,14 @@ public com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder getFeaturesOrBuil * .google.cloud.speech.v2.RecognitionFeatures features = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionFeatures, - com.google.cloud.speech.v2.RecognitionFeatures.Builder, - com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder> + com.google.cloud.speech.v2.RecognitionFeatures, com.google.cloud.speech.v2.RecognitionFeatures.Builder, com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionFeatures, - com.google.cloud.speech.v2.RecognitionFeatures.Builder, - com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder>( - getFeatures(), getParentForChildren(), isClean()); + featuresBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.RecognitionFeatures, com.google.cloud.speech.v2.RecognitionFeatures.Builder, com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder>( + getFeatures(), + getParentForChildren(), + isClean()); features_ = null; } return featuresBuilder_; @@ -1442,49 +1271,36 @@ public com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder getFeaturesOrBuil private com.google.cloud.speech.v2.SpeechAdaptation adaptation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.SpeechAdaptation, - com.google.cloud.speech.v2.SpeechAdaptation.Builder, - com.google.cloud.speech.v2.SpeechAdaptationOrBuilder> - adaptationBuilder_; + com.google.cloud.speech.v2.SpeechAdaptation, com.google.cloud.speech.v2.SpeechAdaptation.Builder, com.google.cloud.speech.v2.SpeechAdaptationOrBuilder> adaptationBuilder_; /** - * - * *
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
      * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; - * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
      * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; - * * @return The adaptation. */ public com.google.cloud.speech.v2.SpeechAdaptation getAdaptation() { if (adaptationBuilder_ == null) { - return adaptation_ == null - ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() - : adaptation_; + return adaptation_ == null ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() : adaptation_; } else { return adaptationBuilder_.getMessage(); } } /** - * - * *
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1506,8 +1322,6 @@ public Builder setAdaptation(com.google.cloud.speech.v2.SpeechAdaptation value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1527,8 +1341,6 @@ public Builder setAdaptation(
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1538,9 +1350,9 @@ public Builder setAdaptation(
      */
     public Builder mergeAdaptation(com.google.cloud.speech.v2.SpeechAdaptation value) {
       if (adaptationBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && adaptation_ != null
-            && adaptation_ != com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          adaptation_ != null &&
+          adaptation_ != com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance()) {
           getAdaptationBuilder().mergeFrom(value);
         } else {
           adaptation_ = value;
@@ -1553,8 +1365,6 @@ public Builder mergeAdaptation(com.google.cloud.speech.v2.SpeechAdaptation value
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1573,8 +1383,6 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1588,8 +1396,6 @@ public com.google.cloud.speech.v2.SpeechAdaptation.Builder getAdaptationBuilder(
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1601,14 +1407,11 @@ public com.google.cloud.speech.v2.SpeechAdaptationOrBuilder getAdaptationOrBuild
       if (adaptationBuilder_ != null) {
         return adaptationBuilder_.getMessageOrBuilder();
       } else {
-        return adaptation_ == null
-            ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance()
-            : adaptation_;
+        return adaptation_ == null ?
+            com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() : adaptation_;
       }
     }
     /**
-     *
-     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1617,24 +1420,21 @@ public com.google.cloud.speech.v2.SpeechAdaptationOrBuilder getAdaptationOrBuild
      * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.SpeechAdaptation,
-            com.google.cloud.speech.v2.SpeechAdaptation.Builder,
-            com.google.cloud.speech.v2.SpeechAdaptationOrBuilder>
+        com.google.cloud.speech.v2.SpeechAdaptation, com.google.cloud.speech.v2.SpeechAdaptation.Builder, com.google.cloud.speech.v2.SpeechAdaptationOrBuilder> 
         getAdaptationFieldBuilder() {
       if (adaptationBuilder_ == null) {
-        adaptationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v2.SpeechAdaptation,
-                com.google.cloud.speech.v2.SpeechAdaptation.Builder,
-                com.google.cloud.speech.v2.SpeechAdaptationOrBuilder>(
-                getAdaptation(), getParentForChildren(), isClean());
+        adaptationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v2.SpeechAdaptation, com.google.cloud.speech.v2.SpeechAdaptation.Builder, com.google.cloud.speech.v2.SpeechAdaptationOrBuilder>(
+                getAdaptation(),
+                getParentForChildren(),
+                isClean());
         adaptation_ = null;
       }
       return adaptationBuilder_;
     }
-
     @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);
     }
 
@@ -1644,12 +1444,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.RecognitionConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.RecognitionConfig)
   private static final com.google.cloud.speech.v2.RecognitionConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.RecognitionConfig();
   }
@@ -1658,27 +1458,27 @@ public static com.google.cloud.speech.v2.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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  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 {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1693,4 +1493,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v2.RecognitionConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java
similarity index 83%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java
index 62221365975b..b1dc2f84ec67 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
-public interface RecognitionConfigOrBuilder
-    extends
+public interface RecognitionConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.RecognitionConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
    * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; - * * @return Whether the autoDecodingConfig field is set. */ boolean hasAutoDecodingConfig(); /** - * - * *
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
    * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; - * * @return The autoDecodingConfig. */ com.google.cloud.speech.v2.AutoDetectDecodingConfig getAutoDecodingConfig(); /** - * - * *
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
@@ -62,34 +38,26 @@ public interface RecognitionConfigOrBuilder
   com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder getAutoDecodingConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
    * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; - * * @return Whether the explicitDecodingConfig field is set. */ boolean hasExplicitDecodingConfig(); /** - * - * *
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
    * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; - * * @return The explicitDecodingConfig. */ com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConfig(); /** - * - * *
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -100,32 +68,24 @@ public interface RecognitionConfigOrBuilder
   com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder getExplicitDecodingConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Speech recognition features to enable.
    * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; - * * @return Whether the features field is set. */ boolean hasFeatures(); /** - * - * *
    * Speech recognition features to enable.
    * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; - * * @return The features. */ com.google.cloud.speech.v2.RecognitionFeatures getFeatures(); /** - * - * *
    * Speech recognition features to enable.
    * 
@@ -135,34 +95,26 @@ public interface RecognitionConfigOrBuilder com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder getFeaturesOrBuilder(); /** - * - * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
    * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; - * * @return Whether the adaptation field is set. */ boolean hasAdaptation(); /** - * - * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
    * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; - * * @return The adaptation. */ com.google.cloud.speech.v2.SpeechAdaptation getAdaptation(); /** - * - * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java
similarity index 76%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java
index dc73e69ce7be..5cb5f781c74c 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java
@@ -1,85 +1,63 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
- *
- *
  * 
  * Available recognition features.
  * 
* * Protobuf type {@code google.cloud.speech.v2.RecognitionFeatures} */ -public final class RecognitionFeatures extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RecognitionFeatures extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.RecognitionFeatures) RecognitionFeaturesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RecognitionFeatures.newBuilder() to construct. private RecognitionFeatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RecognitionFeatures() { multiChannelMode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RecognitionFeatures(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.RecognitionFeatures.class, - com.google.cloud.speech.v2.RecognitionFeatures.Builder.class); + com.google.cloud.speech.v2.RecognitionFeatures.class, com.google.cloud.speech.v2.RecognitionFeatures.Builder.class); } /** - * - * *
    * Options for how to recognize multi-channel audio.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode} */ - public enum MultiChannelMode implements com.google.protobuf.ProtocolMessageEnum { + public enum MultiChannelMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value for the multi-channel mode. If the audio contains
      * multiple channels, only the first channel will be transcribed; other
@@ -90,8 +68,6 @@ public enum MultiChannelMode implements com.google.protobuf.ProtocolMessageEnum
      */
     MULTI_CHANNEL_MODE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * If selected, each channel in the provided audio is transcribed
      * independently. This cannot be selected if the selected
@@ -105,8 +81,6 @@ public enum MultiChannelMode implements com.google.protobuf.ProtocolMessageEnum
     ;
 
     /**
-     *
-     *
      * 
      * Default value for the multi-channel mode. If the audio contains
      * multiple channels, only the first channel will be transcribed; other
@@ -117,8 +91,6 @@ public enum MultiChannelMode implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int MULTI_CHANNEL_MODE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * If selected, each channel in the provided audio is transcribed
      * independently. This cannot be selected if the selected
@@ -129,6 +101,7 @@ public enum MultiChannelMode implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int SEPARATE_RECOGNITION_PER_CHANNEL_VALUE = 1;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -153,40 +126,38 @@ public static MultiChannelMode valueOf(int value) {
      */
     public static MultiChannelMode forNumber(int value) {
       switch (value) {
-        case 0:
-          return MULTI_CHANNEL_MODE_UNSPECIFIED;
-        case 1:
-          return SEPARATE_RECOGNITION_PER_CHANNEL;
-        default:
-          return null;
+        case 0: return MULTI_CHANNEL_MODE_UNSPECIFIED;
+        case 1: return SEPARATE_RECOGNITION_PER_CHANNEL;
+        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<
+        MultiChannelMode> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public MultiChannelMode findValueByNumber(int number) {
+              return MultiChannelMode.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public MultiChannelMode findValueByNumber(int number) {
-                return MultiChannelMode.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.v2.RecognitionFeatures.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -195,7 +166,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static MultiChannelMode 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;
@@ -215,8 +187,6 @@ private MultiChannelMode(int value) {
   public static final int PROFANITY_FILTER_FIELD_NUMBER = 1;
   private boolean profanityFilter_ = false;
   /**
-   *
-   *
    * 
    * If set to `true`, the server will attempt to filter out profanities,
    * replacing all but the initial character in each filtered word with
@@ -225,7 +195,6 @@ private MultiChannelMode(int value) {
    * 
* * bool profanity_filter = 1; - * * @return The profanityFilter. */ @java.lang.Override @@ -236,8 +205,6 @@ public boolean getProfanityFilter() { public static final int ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER = 2; private boolean enableWordTimeOffsets_ = false; /** - * - * *
    * If `true`, the top result includes a list of words and the start and end
    * time offsets (timestamps) for those words. If `false`, no word-level time
@@ -245,7 +212,6 @@ public boolean getProfanityFilter() {
    * 
* * bool enable_word_time_offsets = 2; - * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -256,8 +222,6 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 3; private boolean enableWordConfidence_ = false; /** - * - * *
    * If `true`, the top result includes a list of words and the confidence for
    * those words. If `false`, no word-level confidence information is returned.
@@ -265,7 +229,6 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 3; - * * @return The enableWordConfidence. */ @java.lang.Override @@ -276,8 +239,6 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 4; private boolean enableAutomaticPunctuation_ = false; /** - * - * *
    * If `true`, adds punctuation to recognition result hypotheses. This feature
    * is only available in select languages. The default `false` value does not
@@ -285,7 +246,6 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 4; - * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -296,8 +256,6 @@ public boolean getEnableAutomaticPunctuation() { public static final int ENABLE_SPOKEN_PUNCTUATION_FIELD_NUMBER = 14; private boolean enableSpokenPunctuation_ = false; /** - * - * *
    * The spoken punctuation behavior for the call. If `true`, replaces spoken
    * punctuation with the corresponding symbols in the request. For example,
@@ -307,7 +265,6 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * bool enable_spoken_punctuation = 14; - * * @return The enableSpokenPunctuation. */ @java.lang.Override @@ -318,8 +275,6 @@ public boolean getEnableSpokenPunctuation() { public static final int ENABLE_SPOKEN_EMOJIS_FIELD_NUMBER = 15; private boolean enableSpokenEmojis_ = false; /** - * - * *
    * The spoken emoji behavior for the call. If `true`, adds spoken emoji
    * formatting for the request. This will replace spoken emojis with the
@@ -328,7 +283,6 @@ public boolean getEnableSpokenPunctuation() {
    * 
* * bool enable_spoken_emojis = 15; - * * @return The enableSpokenEmojis. */ @java.lang.Override @@ -339,48 +293,32 @@ public boolean getEnableSpokenEmojis() { public static final int MULTI_CHANNEL_MODE_FIELD_NUMBER = 17; private int multiChannelMode_ = 0; /** - * - * *
    * Mode for recognizing multi-channel audio.
    * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; - * - * + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; * @return The enum numeric value on the wire for multiChannelMode. */ - @java.lang.Override - public int getMultiChannelModeValue() { + @java.lang.Override public int getMultiChannelModeValue() { return multiChannelMode_; } /** - * - * *
    * Mode for recognizing multi-channel audio.
    * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; - * - * + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; * @return The multiChannelMode. */ - @java.lang.Override - public com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode getMultiChannelMode() { - com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode result = - com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.forNumber( - multiChannelMode_); - return result == null - ? com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode getMultiChannelMode() { + com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode result = com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.forNumber(multiChannelMode_); + return result == null ? com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.UNRECOGNIZED : result; } public static final int DIARIZATION_CONFIG_FIELD_NUMBER = 9; private com.google.cloud.speech.v2.SpeakerDiarizationConfig diarizationConfig_; /** - * - * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -393,7 +331,6 @@ public com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode getMultiC
    * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; - * * @return Whether the diarizationConfig field is set. */ @java.lang.Override @@ -401,8 +338,6 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** - * - * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -415,18 +350,13 @@ public boolean hasDiarizationConfig() {
    * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; - * * @return The diarizationConfig. */ @java.lang.Override public com.google.cloud.speech.v2.SpeakerDiarizationConfig getDiarizationConfig() { - return diarizationConfig_ == null - ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() - : diarizationConfig_; + return diarizationConfig_ == null ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_; } /** - * - * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -441,18 +371,13 @@ public com.google.cloud.speech.v2.SpeakerDiarizationConfig getDiarizationConfig(
    * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder
-      getDiarizationConfigOrBuilder() {
-    return diarizationConfig_ == null
-        ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()
-        : diarizationConfig_;
+  public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
+    return diarizationConfig_ == null ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_;
   }
 
   public static final int MAX_ALTERNATIVES_FIELD_NUMBER = 16;
   private int maxAlternatives_ = 0;
   /**
-   *
-   *
    * 
    * Maximum number of recognition hypotheses to be returned.
    * The server may return fewer than `max_alternatives`.
@@ -461,7 +386,6 @@ public com.google.cloud.speech.v2.SpeakerDiarizationConfig getDiarizationConfig(
    * 
* * int32 max_alternatives = 16; - * * @return The maxAlternatives. */ @java.lang.Override @@ -470,7 +394,6 @@ public int getMaxAlternatives() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -482,7 +405,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 (profanityFilter_ != false) { output.writeBool(1, profanityFilter_); } @@ -507,10 +431,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxAlternatives_ != 0) { output.writeInt32(16, maxAlternatives_); } - if (multiChannelMode_ - != com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode - .MULTI_CHANNEL_MODE_UNSPECIFIED - .getNumber()) { + if (multiChannelMode_ != com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.MULTI_CHANNEL_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(17, multiChannelMode_); } getUnknownFields().writeTo(output); @@ -523,34 +444,40 @@ public int getSerializedSize() { size = 0; if (profanityFilter_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, profanityFilter_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, profanityFilter_); } if (enableWordTimeOffsets_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableWordTimeOffsets_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enableWordTimeOffsets_); } if (enableWordConfidence_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableWordConfidence_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, enableWordConfidence_); } if (enableAutomaticPunctuation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, enableAutomaticPunctuation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, enableAutomaticPunctuation_); } if (diarizationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDiarizationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getDiarizationConfig()); } if (enableSpokenPunctuation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, enableSpokenPunctuation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, enableSpokenPunctuation_); } if (enableSpokenEmojis_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, enableSpokenEmojis_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(15, enableSpokenEmojis_); } if (maxAlternatives_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(16, maxAlternatives_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(16, maxAlternatives_); } - if (multiChannelMode_ - != com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode - .MULTI_CHANNEL_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, multiChannelMode_); + if (multiChannelMode_ != com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.MULTI_CHANNEL_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(17, multiChannelMode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -560,26 +487,33 @@ 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.v2.RecognitionFeatures)) { return super.equals(obj); } - com.google.cloud.speech.v2.RecognitionFeatures other = - (com.google.cloud.speech.v2.RecognitionFeatures) obj; - - if (getProfanityFilter() != other.getProfanityFilter()) return false; - if (getEnableWordTimeOffsets() != other.getEnableWordTimeOffsets()) return false; - if (getEnableWordConfidence() != other.getEnableWordConfidence()) return false; - if (getEnableAutomaticPunctuation() != other.getEnableAutomaticPunctuation()) return false; - if (getEnableSpokenPunctuation() != other.getEnableSpokenPunctuation()) return false; - if (getEnableSpokenEmojis() != other.getEnableSpokenEmojis()) return false; + com.google.cloud.speech.v2.RecognitionFeatures other = (com.google.cloud.speech.v2.RecognitionFeatures) obj; + + if (getProfanityFilter() + != other.getProfanityFilter()) return false; + if (getEnableWordTimeOffsets() + != other.getEnableWordTimeOffsets()) return false; + if (getEnableWordConfidence() + != other.getEnableWordConfidence()) return false; + if (getEnableAutomaticPunctuation() + != other.getEnableAutomaticPunctuation()) return false; + if (getEnableSpokenPunctuation() + != other.getEnableSpokenPunctuation()) return false; + if (getEnableSpokenEmojis() + != other.getEnableSpokenEmojis()) return false; if (multiChannelMode_ != other.multiChannelMode_) 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 (getMaxAlternatives() != other.getMaxAlternatives()) return false; + if (getMaxAlternatives() + != other.getMaxAlternatives()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -592,17 +526,23 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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()); 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()); hash = (37 * hash) + ENABLE_SPOKEN_PUNCTUATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSpokenPunctuation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableSpokenPunctuation()); hash = (37 * hash) + ENABLE_SPOKEN_EMOJIS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSpokenEmojis()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableSpokenEmojis()); hash = (37 * hash) + MULTI_CHANNEL_MODE_FIELD_NUMBER; hash = (53 * hash) + multiChannelMode_; if (hasDiarizationConfig()) { @@ -616,136 +556,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.RecognitionFeatures parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.RecognitionFeatures parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.RecognitionFeatures 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.v2.RecognitionFeatures parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.RecognitionFeatures 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.v2.RecognitionFeatures parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.RecognitionFeatures 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.v2.RecognitionFeatures 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.v2.RecognitionFeatures 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.v2.RecognitionFeatures parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.RecognitionFeatures parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.RecognitionFeatures 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.v2.RecognitionFeatures 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.v2.RecognitionFeatures 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.v2.RecognitionFeatures 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; } /** - * - * *
    * Available recognition features.
    * 
* * Protobuf type {@code google.cloud.speech.v2.RecognitionFeatures} */ - 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.v2.RecognitionFeatures) com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.RecognitionFeatures.class, - com.google.cloud.speech.v2.RecognitionFeatures.Builder.class); + com.google.cloud.speech.v2.RecognitionFeatures.class, com.google.cloud.speech.v2.RecognitionFeatures.Builder.class); } // Construct using com.google.cloud.speech.v2.RecognitionFeatures.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -767,9 +701,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; } @java.lang.Override @@ -788,11 +722,8 @@ public com.google.cloud.speech.v2.RecognitionFeatures build() { @java.lang.Override public com.google.cloud.speech.v2.RecognitionFeatures buildPartial() { - com.google.cloud.speech.v2.RecognitionFeatures result = - new com.google.cloud.speech.v2.RecognitionFeatures(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v2.RecognitionFeatures result = new com.google.cloud.speech.v2.RecognitionFeatures(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -821,10 +752,9 @@ private void buildPartial0(com.google.cloud.speech.v2.RecognitionFeatures result result.multiChannelMode_ = multiChannelMode_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.diarizationConfig_ = - diarizationConfigBuilder_ == null - ? diarizationConfig_ - : diarizationConfigBuilder_.build(); + result.diarizationConfig_ = diarizationConfigBuilder_ == null + ? diarizationConfig_ + : diarizationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.maxAlternatives_ = maxAlternatives_; @@ -835,39 +765,38 @@ private void buildPartial0(com.google.cloud.speech.v2.RecognitionFeatures result 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.v2.RecognitionFeatures) { - return mergeFrom((com.google.cloud.speech.v2.RecognitionFeatures) other); + return mergeFrom((com.google.cloud.speech.v2.RecognitionFeatures)other); } else { super.mergeFrom(other); return this; @@ -929,68 +858,59 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - profanityFilter_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - enableWordTimeOffsets_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - enableWordConfidence_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - enableAutomaticPunctuation_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 74: - { - input.readMessage( - getDiarizationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 74 - case 112: - { - enableSpokenPunctuation_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 112 - case 120: - { - enableSpokenEmojis_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 120 - case 128: - { - maxAlternatives_ = input.readInt32(); - bitField0_ |= 0x00000100; - break; - } // case 128 - case 136: - { - multiChannelMode_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 136 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + profanityFilter_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + enableWordTimeOffsets_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + enableWordConfidence_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + enableAutomaticPunctuation_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 74: { + input.readMessage( + getDiarizationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 112: { + enableSpokenPunctuation_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 112 + case 120: { + enableSpokenEmojis_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 120 + case 128: { + maxAlternatives_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 128 + case 136: { + multiChannelMode_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 136 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1000,13 +920,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - 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 with
@@ -1015,7 +932,6 @@ public Builder mergeFrom(
      * 
* * bool profanity_filter = 1; - * * @return The profanityFilter. */ @java.lang.Override @@ -1023,8 +939,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 with
@@ -1033,20 +947,17 @@ public boolean getProfanityFilter() {
      * 
* * bool profanity_filter = 1; - * * @param value The profanityFilter to set. * @return This builder for chaining. */ public Builder setProfanityFilter(boolean value) { - + profanityFilter_ = value; bitField0_ |= 0x00000001; 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 with
@@ -1055,7 +966,6 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 1; - * * @return This builder for chaining. */ public Builder clearProfanityFilter() { @@ -1065,10 +975,8 @@ public Builder clearProfanityFilter() { return this; } - 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 `false`, no word-level time
@@ -1076,7 +984,6 @@ public Builder clearProfanityFilter() {
      * 
* * bool enable_word_time_offsets = 2; - * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -1084,8 +991,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 `false`, no word-level time
@@ -1093,20 +998,17 @@ public boolean getEnableWordTimeOffsets() {
      * 
* * bool enable_word_time_offsets = 2; - * * @param value The enableWordTimeOffsets to set. * @return This builder for chaining. */ public Builder setEnableWordTimeOffsets(boolean value) { - + enableWordTimeOffsets_ = value; bitField0_ |= 0x00000002; 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 `false`, no word-level time
@@ -1114,7 +1016,6 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 2; - * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { @@ -1124,10 +1025,8 @@ public Builder clearEnableWordTimeOffsets() { 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 information is returned.
@@ -1135,7 +1034,6 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 3; - * * @return The enableWordConfidence. */ @java.lang.Override @@ -1143,8 +1041,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 information is returned.
@@ -1152,20 +1048,17 @@ public boolean getEnableWordConfidence() {
      * 
* * bool enable_word_confidence = 3; - * * @param value The enableWordConfidence to set. * @return This builder for chaining. */ public Builder setEnableWordConfidence(boolean value) { - + enableWordConfidence_ = value; bitField0_ |= 0x00000004; 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 information is returned.
@@ -1173,7 +1066,6 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 3; - * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { @@ -1183,10 +1075,8 @@ public Builder clearEnableWordConfidence() { return this; } - private boolean enableAutomaticPunctuation_; + private boolean enableAutomaticPunctuation_ ; /** - * - * *
      * If `true`, adds punctuation to recognition result hypotheses. This feature
      * is only available in select languages. The default `false` value does not
@@ -1194,7 +1084,6 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 4; - * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -1202,8 +1091,6 @@ public boolean getEnableAutomaticPunctuation() { return enableAutomaticPunctuation_; } /** - * - * *
      * If `true`, adds punctuation to recognition result hypotheses. This feature
      * is only available in select languages. The default `false` value does not
@@ -1211,20 +1098,17 @@ public boolean getEnableAutomaticPunctuation() {
      * 
* * bool enable_automatic_punctuation = 4; - * * @param value The enableAutomaticPunctuation to set. * @return This builder for chaining. */ public Builder setEnableAutomaticPunctuation(boolean value) { - + enableAutomaticPunctuation_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * If `true`, adds punctuation to recognition result hypotheses. This feature
      * is only available in select languages. The default `false` value does not
@@ -1232,7 +1116,6 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 4; - * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { @@ -1242,10 +1125,8 @@ public Builder clearEnableAutomaticPunctuation() { return this; } - private boolean enableSpokenPunctuation_; + private boolean enableSpokenPunctuation_ ; /** - * - * *
      * The spoken punctuation behavior for the call. If `true`, replaces spoken
      * punctuation with the corresponding symbols in the request. For example,
@@ -1255,7 +1136,6 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * bool enable_spoken_punctuation = 14; - * * @return The enableSpokenPunctuation. */ @java.lang.Override @@ -1263,8 +1143,6 @@ public boolean getEnableSpokenPunctuation() { return enableSpokenPunctuation_; } /** - * - * *
      * The spoken punctuation behavior for the call. If `true`, replaces spoken
      * punctuation with the corresponding symbols in the request. For example,
@@ -1274,20 +1152,17 @@ public boolean getEnableSpokenPunctuation() {
      * 
* * bool enable_spoken_punctuation = 14; - * * @param value The enableSpokenPunctuation to set. * @return This builder for chaining. */ public Builder setEnableSpokenPunctuation(boolean value) { - + enableSpokenPunctuation_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * The spoken punctuation behavior for the call. If `true`, replaces spoken
      * punctuation with the corresponding symbols in the request. For example,
@@ -1297,7 +1172,6 @@ public Builder setEnableSpokenPunctuation(boolean value) {
      * 
* * bool enable_spoken_punctuation = 14; - * * @return This builder for chaining. */ public Builder clearEnableSpokenPunctuation() { @@ -1307,10 +1181,8 @@ public Builder clearEnableSpokenPunctuation() { return this; } - private boolean enableSpokenEmojis_; + private boolean enableSpokenEmojis_ ; /** - * - * *
      * The spoken emoji behavior for the call. If `true`, adds spoken emoji
      * formatting for the request. This will replace spoken emojis with the
@@ -1319,7 +1191,6 @@ public Builder clearEnableSpokenPunctuation() {
      * 
* * bool enable_spoken_emojis = 15; - * * @return The enableSpokenEmojis. */ @java.lang.Override @@ -1327,8 +1198,6 @@ public boolean getEnableSpokenEmojis() { return enableSpokenEmojis_; } /** - * - * *
      * The spoken emoji behavior for the call. If `true`, adds spoken emoji
      * formatting for the request. This will replace spoken emojis with the
@@ -1337,20 +1206,17 @@ public boolean getEnableSpokenEmojis() {
      * 
* * bool enable_spoken_emojis = 15; - * * @param value The enableSpokenEmojis to set. * @return This builder for chaining. */ public Builder setEnableSpokenEmojis(boolean value) { - + enableSpokenEmojis_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The spoken emoji behavior for the call. If `true`, adds spoken emoji
      * formatting for the request. This will replace spoken emojis with the
@@ -1359,7 +1225,6 @@ public Builder setEnableSpokenEmojis(boolean value) {
      * 
* * bool enable_spoken_emojis = 15; - * * @return This builder for chaining. */ public Builder clearEnableSpokenEmojis() { @@ -1371,31 +1236,22 @@ public Builder clearEnableSpokenEmojis() { private int multiChannelMode_ = 0; /** - * - * *
      * Mode for recognizing multi-channel audio.
      * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; - * - * + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; * @return The enum numeric value on the wire for multiChannelMode. */ - @java.lang.Override - public int getMultiChannelModeValue() { + @java.lang.Override public int getMultiChannelModeValue() { return multiChannelMode_; } /** - * - * *
      * Mode for recognizing multi-channel audio.
      * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; - * - * + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; * @param value The enum numeric value on the wire for multiChannelMode to set. * @return This builder for chaining. */ @@ -1406,41 +1262,28 @@ public Builder setMultiChannelModeValue(int value) { return this; } /** - * - * *
      * Mode for recognizing multi-channel audio.
      * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; - * - * + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; * @return The multiChannelMode. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode getMultiChannelMode() { - com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode result = - com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.forNumber( - multiChannelMode_); - return result == null - ? com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.UNRECOGNIZED - : result; + com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode result = com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.forNumber(multiChannelMode_); + return result == null ? com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.UNRECOGNIZED : result; } /** - * - * *
      * Mode for recognizing multi-channel audio.
      * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; - * - * + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; * @param value The multiChannelMode to set. * @return This builder for chaining. */ - public Builder setMultiChannelMode( - com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode value) { + public Builder setMultiChannelMode(com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode value) { if (value == null) { throw new NullPointerException(); } @@ -1450,15 +1293,11 @@ public Builder setMultiChannelMode( return this; } /** - * - * *
      * Mode for recognizing multi-channel audio.
      * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; - * - * + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; * @return This builder for chaining. */ public Builder clearMultiChannelMode() { @@ -1470,13 +1309,8 @@ public Builder clearMultiChannelMode() { private com.google.cloud.speech.v2.SpeakerDiarizationConfig diarizationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.SpeakerDiarizationConfig, - com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder, - com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder> - diarizationConfigBuilder_; + com.google.cloud.speech.v2.SpeakerDiarizationConfig, com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder> diarizationConfigBuilder_; /** - * - * *
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1489,15 +1323,12 @@ public Builder clearMultiChannelMode() {
      * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; - * * @return Whether the diarizationConfig field is set. */ public boolean hasDiarizationConfig() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1510,21 +1341,16 @@ public boolean hasDiarizationConfig() {
      * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; - * * @return The diarizationConfig. */ public com.google.cloud.speech.v2.SpeakerDiarizationConfig getDiarizationConfig() { if (diarizationConfigBuilder_ == null) { - return diarizationConfig_ == null - ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() - : diarizationConfig_; + return diarizationConfig_ == null ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_; } else { return diarizationConfigBuilder_.getMessage(); } } /** - * - * *
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1552,8 +1378,6 @@ public Builder setDiarizationConfig(com.google.cloud.speech.v2.SpeakerDiarizatio
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1579,8 +1403,6 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1594,13 +1416,11 @@ public Builder setDiarizationConfig(
      *
      * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9;
      */
-    public Builder mergeDiarizationConfig(
-        com.google.cloud.speech.v2.SpeakerDiarizationConfig value) {
+    public Builder mergeDiarizationConfig(com.google.cloud.speech.v2.SpeakerDiarizationConfig value) {
       if (diarizationConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000080) != 0)
-            && diarizationConfig_ != null
-            && diarizationConfig_
-                != com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000080) != 0) &&
+          diarizationConfig_ != null &&
+          diarizationConfig_ != com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()) {
           getDiarizationConfigBuilder().mergeFrom(value);
         } else {
           diarizationConfig_ = value;
@@ -1613,8 +1433,6 @@ public Builder mergeDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1639,8 +1457,6 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1654,15 +1470,12 @@ public Builder clearDiarizationConfig() {
      *
      * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9;
      */
-    public com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder
-        getDiarizationConfigBuilder() {
+    public com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder getDiarizationConfigBuilder() {
       bitField0_ |= 0x00000080;
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1676,19 +1489,15 @@ public Builder clearDiarizationConfig() {
      *
      * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9;
      */
-    public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder
-        getDiarizationConfigOrBuilder() {
+    public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
       if (diarizationConfigBuilder_ != null) {
         return diarizationConfigBuilder_.getMessageOrBuilder();
       } else {
-        return diarizationConfig_ == null
-            ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()
-            : diarizationConfig_;
+        return diarizationConfig_ == null ?
+            com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1703,26 +1512,21 @@ public Builder clearDiarizationConfig() {
      * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.SpeakerDiarizationConfig,
-            com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder,
-            com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder>
+        com.google.cloud.speech.v2.SpeakerDiarizationConfig, com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder> 
         getDiarizationConfigFieldBuilder() {
       if (diarizationConfigBuilder_ == null) {
-        diarizationConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v2.SpeakerDiarizationConfig,
-                com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder,
-                com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder>(
-                getDiarizationConfig(), getParentForChildren(), isClean());
+        diarizationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v2.SpeakerDiarizationConfig, com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder>(
+                getDiarizationConfig(),
+                getParentForChildren(),
+                isClean());
         diarizationConfig_ = null;
       }
       return diarizationConfigBuilder_;
     }
 
-    private int maxAlternatives_;
+    private int maxAlternatives_ ;
     /**
-     *
-     *
      * 
      * Maximum number of recognition hypotheses to be returned.
      * The server may return fewer than `max_alternatives`.
@@ -1731,7 +1535,6 @@ public Builder clearDiarizationConfig() {
      * 
* * int32 max_alternatives = 16; - * * @return The maxAlternatives. */ @java.lang.Override @@ -1739,8 +1542,6 @@ public int getMaxAlternatives() { return maxAlternatives_; } /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * The server may return fewer than `max_alternatives`.
@@ -1749,20 +1550,17 @@ public int getMaxAlternatives() {
      * 
* * int32 max_alternatives = 16; - * * @param value The maxAlternatives to set. * @return This builder for chaining. */ public Builder setMaxAlternatives(int value) { - + maxAlternatives_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * The server may return fewer than `max_alternatives`.
@@ -1771,7 +1569,6 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 16; - * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { @@ -1780,9 +1577,9 @@ public Builder clearMaxAlternatives() { 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); } @@ -1792,12 +1589,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.RecognitionFeatures) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.RecognitionFeatures) private static final com.google.cloud.speech.v2.RecognitionFeatures DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.RecognitionFeatures(); } @@ -1806,27 +1603,27 @@ public static com.google.cloud.speech.v2.RecognitionFeatures getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionFeatures parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionFeatures parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1841,4 +1638,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.RecognitionFeatures getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java similarity index 86% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java index 30c39ecf7014..8ec8d38ddcb2 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface RecognitionFeaturesOrBuilder - extends +public interface RecognitionFeaturesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.RecognitionFeatures) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * If set to `true`, the server will attempt to filter out profanities,
    * replacing all but the initial character in each filtered word with
@@ -34,14 +16,11 @@ public interface RecognitionFeaturesOrBuilder
    * 
* * bool profanity_filter = 1; - * * @return The profanityFilter. */ boolean getProfanityFilter(); /** - * - * *
    * If `true`, the top result includes a list of words and the start and end
    * time offsets (timestamps) for those words. If `false`, no word-level time
@@ -49,14 +28,11 @@ public interface RecognitionFeaturesOrBuilder
    * 
* * bool enable_word_time_offsets = 2; - * * @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 information is returned.
@@ -64,14 +40,11 @@ public interface RecognitionFeaturesOrBuilder
    * 
* * bool enable_word_confidence = 3; - * * @return The enableWordConfidence. */ boolean getEnableWordConfidence(); /** - * - * *
    * If `true`, adds punctuation to recognition result hypotheses. This feature
    * is only available in select languages. The default `false` value does not
@@ -79,14 +52,11 @@ public interface RecognitionFeaturesOrBuilder
    * 
* * bool enable_automatic_punctuation = 4; - * * @return The enableAutomaticPunctuation. */ boolean getEnableAutomaticPunctuation(); /** - * - * *
    * The spoken punctuation behavior for the call. If `true`, replaces spoken
    * punctuation with the corresponding symbols in the request. For example,
@@ -96,14 +66,11 @@ public interface RecognitionFeaturesOrBuilder
    * 
* * bool enable_spoken_punctuation = 14; - * * @return The enableSpokenPunctuation. */ boolean getEnableSpokenPunctuation(); /** - * - * *
    * The spoken emoji behavior for the call. If `true`, adds spoken emoji
    * formatting for the request. This will replace spoken emojis with the
@@ -112,41 +79,30 @@ public interface RecognitionFeaturesOrBuilder
    * 
* * bool enable_spoken_emojis = 15; - * * @return The enableSpokenEmojis. */ boolean getEnableSpokenEmojis(); /** - * - * *
    * Mode for recognizing multi-channel audio.
    * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; - * - * + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; * @return The enum numeric value on the wire for multiChannelMode. */ int getMultiChannelModeValue(); /** - * - * *
    * Mode for recognizing multi-channel audio.
    * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; - * - * + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; * @return The multiChannelMode. */ com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode getMultiChannelMode(); /** - * - * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -159,13 +115,10 @@ public interface RecognitionFeaturesOrBuilder
    * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; - * * @return Whether the diarizationConfig field is set. */ boolean hasDiarizationConfig(); /** - * - * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -178,13 +131,10 @@ public interface RecognitionFeaturesOrBuilder
    * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; - * * @return The diarizationConfig. */ com.google.cloud.speech.v2.SpeakerDiarizationConfig getDiarizationConfig(); /** - * - * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -201,8 +151,6 @@ public interface RecognitionFeaturesOrBuilder
   com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Maximum number of recognition hypotheses to be returned.
    * The server may return fewer than `max_alternatives`.
@@ -211,7 +159,6 @@ public interface RecognitionFeaturesOrBuilder
    * 
* * int32 max_alternatives = 16; - * * @return The maxAlternatives. */ int getMaxAlternatives(); diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java similarity index 65% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java index 68ee8f710800..31df72758f44 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java @@ -1,81 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Metadata about the recognition request and response.
  * 
* * Protobuf type {@code google.cloud.speech.v2.RecognitionResponseMetadata} */ -public final class RecognitionResponseMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RecognitionResponseMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.RecognitionResponseMetadata) RecognitionResponseMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RecognitionResponseMetadata.newBuilder() to construct. private RecognitionResponseMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private RecognitionResponseMetadata() {} + private RecognitionResponseMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RecognitionResponseMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.RecognitionResponseMetadata.class, - com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder.class); + com.google.cloud.speech.v2.RecognitionResponseMetadata.class, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder.class); } public static final int TOTAL_BILLED_DURATION_FIELD_NUMBER = 6; private com.google.protobuf.Duration totalBilledDuration_; /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_duration = 6; - * * @return Whether the totalBilledDuration field is set. */ @java.lang.Override @@ -83,25 +62,18 @@ public boolean hasTotalBilledDuration() { return totalBilledDuration_ != null; } /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_duration = 6; - * * @return The totalBilledDuration. */ @java.lang.Override public com.google.protobuf.Duration getTotalBilledDuration() { - return totalBilledDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledDuration_; + return totalBilledDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledDuration_; } /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -110,13 +82,10 @@ public com.google.protobuf.Duration getTotalBilledDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalBilledDurationOrBuilder() { - return totalBilledDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledDuration_; + return totalBilledDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledDuration_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,7 +97,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 (totalBilledDuration_ != null) { output.writeMessage(6, getTotalBilledDuration()); } @@ -142,7 +112,8 @@ public int getSerializedSize() { size = 0; if (totalBilledDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTotalBilledDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getTotalBilledDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -152,17 +123,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.v2.RecognitionResponseMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v2.RecognitionResponseMetadata other = - (com.google.cloud.speech.v2.RecognitionResponseMetadata) obj; + com.google.cloud.speech.v2.RecognitionResponseMetadata other = (com.google.cloud.speech.v2.RecognitionResponseMetadata) obj; if (hasTotalBilledDuration() != other.hasTotalBilledDuration()) return false; if (hasTotalBilledDuration()) { - if (!getTotalBilledDuration().equals(other.getTotalBilledDuration())) return false; + if (!getTotalBilledDuration() + .equals(other.getTotalBilledDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -185,136 +156,129 @@ public int hashCode() { } public static com.google.cloud.speech.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.RecognitionResponseMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.RecognitionResponseMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata prototype) { + public static Builder newBuilder(com.google.cloud.speech.v2.RecognitionResponseMetadata 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; } /** - * - * *
    * Metadata about the recognition request and response.
    * 
* * Protobuf type {@code google.cloud.speech.v2.RecognitionResponseMetadata} */ - 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.v2.RecognitionResponseMetadata) com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.RecognitionResponseMetadata.class, - com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder.class); + com.google.cloud.speech.v2.RecognitionResponseMetadata.class, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder.class); } // Construct using com.google.cloud.speech.v2.RecognitionResponseMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -328,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; } @java.lang.Override @@ -349,11 +313,8 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata build() { @java.lang.Override public com.google.cloud.speech.v2.RecognitionResponseMetadata buildPartial() { - com.google.cloud.speech.v2.RecognitionResponseMetadata result = - new com.google.cloud.speech.v2.RecognitionResponseMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v2.RecognitionResponseMetadata result = new com.google.cloud.speech.v2.RecognitionResponseMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -361,10 +322,9 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata buildPartial() { private void buildPartial0(com.google.cloud.speech.v2.RecognitionResponseMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.totalBilledDuration_ = - totalBilledDurationBuilder_ == null - ? totalBilledDuration_ - : totalBilledDurationBuilder_.build(); + result.totalBilledDuration_ = totalBilledDurationBuilder_ == null + ? totalBilledDuration_ + : totalBilledDurationBuilder_.build(); } } @@ -372,39 +332,38 @@ private void buildPartial0(com.google.cloud.speech.v2.RecognitionResponseMetadat 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.v2.RecognitionResponseMetadata) { - return mergeFrom((com.google.cloud.speech.v2.RecognitionResponseMetadata) other); + return mergeFrom((com.google.cloud.speech.v2.RecognitionResponseMetadata)other); } else { super.mergeFrom(other); return this; @@ -412,8 +371,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.RecognitionResponseMetadata other) { - if (other == com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) return this; if (other.hasTotalBilledDuration()) { mergeTotalBilledDuration(other.getTotalBilledDuration()); } @@ -443,20 +401,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 50: - { - input.readMessage( - getTotalBilledDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 50: { + input.readMessage( + getTotalBilledDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -466,52 +423,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Duration totalBilledDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - totalBilledDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledDurationBuilder_; /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_duration = 6; - * * @return Whether the totalBilledDuration field is set. */ public boolean hasTotalBilledDuration() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_duration = 6; - * * @return The totalBilledDuration. */ public com.google.protobuf.Duration getTotalBilledDuration() { if (totalBilledDurationBuilder_ == null) { - return totalBilledDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledDuration_; + return totalBilledDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledDuration_; } else { return totalBilledDurationBuilder_.getMessage(); } } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -532,15 +475,14 @@ public Builder setTotalBilledDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_duration = 6; */ - public Builder setTotalBilledDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledDurationBuilder_ == null) { totalBilledDuration_ = builderForValue.build(); } else { @@ -551,8 +493,6 @@ public Builder setTotalBilledDuration(com.google.protobuf.Duration.Builder build return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -561,9 +501,9 @@ public Builder setTotalBilledDuration(com.google.protobuf.Duration.Builder build */ public Builder mergeTotalBilledDuration(com.google.protobuf.Duration value) { if (totalBilledDurationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && totalBilledDuration_ != null - && totalBilledDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + totalBilledDuration_ != null && + totalBilledDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getTotalBilledDurationBuilder().mergeFrom(value); } else { totalBilledDuration_ = value; @@ -576,8 +516,6 @@ public Builder mergeTotalBilledDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -595,8 +533,6 @@ public Builder clearTotalBilledDuration() { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -609,8 +545,6 @@ public com.google.protobuf.Duration.Builder getTotalBilledDurationBuilder() { return getTotalBilledDurationFieldBuilder().getBuilder(); } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -621,14 +555,11 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledDurationOrBuilder() { if (totalBilledDurationBuilder_ != null) { return totalBilledDurationBuilder_.getMessageOrBuilder(); } else { - return totalBilledDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledDuration_; + return totalBilledDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : totalBilledDuration_; } } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -636,24 +567,21 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledDurationOrBuilder() { * .google.protobuf.Duration total_billed_duration = 6; */ 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> getTotalBilledDurationFieldBuilder() { if (totalBilledDurationBuilder_ == null) { - totalBilledDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getTotalBilledDuration(), getParentForChildren(), isClean()); + totalBilledDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTotalBilledDuration(), + getParentForChildren(), + isClean()); totalBilledDuration_ = null; } return totalBilledDurationBuilder_; } - @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); } @@ -663,12 +591,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.RecognitionResponseMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.RecognitionResponseMetadata) private static final com.google.cloud.speech.v2.RecognitionResponseMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.RecognitionResponseMetadata(); } @@ -677,27 +605,27 @@ public static com.google.cloud.speech.v2.RecognitionResponseMetadata getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionResponseMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionResponseMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -712,4 +640,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v2.RecognitionResponseMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java similarity index 61% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java index 255a0a27c77f..57a50491e2fe 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java @@ -1,55 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface RecognitionResponseMetadataOrBuilder - extends +public interface RecognitionResponseMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.RecognitionResponseMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_duration = 6; - * * @return Whether the totalBilledDuration field is set. */ boolean hasTotalBilledDuration(); /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_duration = 6; - * * @return The totalBilledDuration. */ com.google.protobuf.Duration getTotalBilledDuration(); /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java similarity index 78% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java index bde61a78d3dd..b2f131321dcc 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [Recognize][google.cloud.speech.v2.Speech.Recognize] method. Either
@@ -31,58 +14,53 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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() {
     recognizer_ = "";
   }
 
   @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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.RecognizeRequest.class,
-            com.google.cloud.speech.v2.RecognizeRequest.Builder.class);
+            com.google.cloud.speech.v2.RecognizeRequest.class, com.google.cloud.speech.v2.RecognizeRequest.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(5),
     URI(6),
     AUDIOSOURCE_NOT_SET(0);
     private final int value;
-
     private AudioSourceCase(int value) {
       this.value = value;
     }
@@ -98,43 +76,34 @@ public static AudioSourceCase valueOf(int value) {
 
     public static AudioSourceCase forNumber(int value) {
       switch (value) {
-        case 5:
-          return CONTENT;
-        case 6:
-          return URI;
-        case 0:
-          return AUDIOSOURCE_NOT_SET;
-        default:
-          return null;
+        case 5: return CONTENT;
+        case 6: 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 RECOGNIZER_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object recognizer_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the Recognizer to use during recognition. The
    * expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The recognizer. */ @java.lang.Override @@ -143,33 +112,31 @@ public java.lang.String getRecognizer() { 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(); recognizer_ = s; return s; } } /** - * - * *
    * Required. The name of the Recognizer to use during recognition. The
    * expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for recognizer. */ @java.lang.Override - public com.google.protobuf.ByteString getRecognizerBytes() { + public com.google.protobuf.ByteString + getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -180,8 +147,6 @@ public com.google.protobuf.ByteString getRecognizerBytes() { public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v2.RecognitionConfig config_; /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -192,7 +157,6 @@ public com.google.protobuf.ByteString getRecognizerBytes() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; - * * @return Whether the config field is set. */ @java.lang.Override @@ -200,8 +164,6 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -212,18 +174,13 @@ public boolean hasConfig() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; - * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfig getConfig() { - return config_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; } /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -237,16 +194,12 @@ public com.google.cloud.speech.v2.RecognitionConfig getConfig() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder() {
-    return config_ == null
-        ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
-        : config_;
+    return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
   }
 
   public static final int CONFIG_MASK_FIELD_NUMBER = 8;
   private com.google.protobuf.FieldMask configMask_;
   /**
-   *
-   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -264,7 +217,6 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * .google.protobuf.FieldMask config_mask = 8; - * * @return Whether the configMask field is set. */ @java.lang.Override @@ -272,8 +224,6 @@ public boolean hasConfigMask() { return configMask_ != null; } /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -291,7 +241,6 @@ public boolean hasConfigMask() {
    * 
* * .google.protobuf.FieldMask config_mask = 8; - * * @return The configMask. */ @java.lang.Override @@ -299,8 +248,6 @@ public com.google.protobuf.FieldMask getConfigMask() { return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -326,8 +273,6 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
 
   public static final int CONTENT_FIELD_NUMBER = 5;
   /**
-   *
-   *
    * 
    * The audio data bytes encoded as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -336,7 +281,6 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
    * 
* * bytes content = 5; - * * @return Whether the content field is set. */ @java.lang.Override @@ -344,8 +288,6 @@ public boolean hasContent() { return audioSourceCase_ == 5; } /** - * - * *
    * The audio data bytes encoded as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -354,7 +296,6 @@ public boolean hasContent() {
    * 
* * bytes content = 5; - * * @return The content. */ @java.lang.Override @@ -367,8 +308,6 @@ public com.google.protobuf.ByteString getContent() { public static final int URI_FIELD_NUMBER = 6; /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -381,15 +320,12 @@ public com.google.protobuf.ByteString getContent() {
    * 
* * string uri = 6; - * * @return Whether the uri field is set. */ public boolean hasUri() { return audioSourceCase_ == 6; } /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -402,7 +338,6 @@ public boolean hasUri() {
    * 
* * string uri = 6; - * * @return The uri. */ public java.lang.String getUri() { @@ -413,7 +348,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_ == 6) { audioSource_ = s; @@ -422,8 +358,6 @@ public java.lang.String getUri() { } } /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -436,17 +370,18 @@ public java.lang.String getUri() {
    * 
* * string uri = 6; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (audioSourceCase_ == 6) { 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_ == 6) { audioSource_ = b; } @@ -457,7 +392,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -469,7 +403,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()); } @@ -477,7 +412,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 3, recognizer_); } if (audioSourceCase_ == 5) { - output.writeBytes(5, (com.google.protobuf.ByteString) audioSource_); + output.writeBytes( + 5, (com.google.protobuf.ByteString) audioSource_); } if (audioSourceCase_ == 6) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, audioSource_); @@ -495,21 +431,23 @@ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recognizer_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, recognizer_); } if (audioSourceCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 5, (com.google.protobuf.ByteString) audioSource_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 5, (com.google.protobuf.ByteString) audioSource_); } if (audioSourceCase_ == 6) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, audioSource_); } if (configMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getConfigMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getConfigMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -519,30 +457,34 @@ 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.v2.RecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.RecognizeRequest other = - (com.google.cloud.speech.v2.RecognizeRequest) obj; + com.google.cloud.speech.v2.RecognizeRequest other = (com.google.cloud.speech.v2.RecognizeRequest) obj; - if (!getRecognizer().equals(other.getRecognizer())) return false; + if (!getRecognizer() + .equals(other.getRecognizer())) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } if (hasConfigMask() != other.hasConfigMask()) return false; if (hasConfigMask()) { - if (!getConfigMask().equals(other.getConfigMask())) return false; + if (!getConfigMask() + .equals(other.getConfigMask())) return false; } if (!getAudioSourceCase().equals(other.getAudioSourceCase())) return false; switch (audioSourceCase_) { case 5: - if (!getContent().equals(other.getContent())) return false; + if (!getContent() + .equals(other.getContent())) return false; break; case 6: - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; break; case 0: default: @@ -585,104 +527,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.RecognizeRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.RecognizeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.RecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.RecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.RecognizeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.RecognizeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [Recognize][google.cloud.speech.v2.Speech.Recognize] method. Either
@@ -693,32 +628,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.RecognizeRequest)
       com.google.cloud.speech.v2.RecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.RecognizeRequest.class,
-              com.google.cloud.speech.v2.RecognizeRequest.Builder.class);
+              com.google.cloud.speech.v2.RecognizeRequest.class, com.google.cloud.speech.v2.RecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.RecognizeRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -740,9 +676,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -761,11 +697,8 @@ public com.google.cloud.speech.v2.RecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.RecognizeRequest buildPartial() {
-      com.google.cloud.speech.v2.RecognizeRequest result =
-          new com.google.cloud.speech.v2.RecognizeRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.RecognizeRequest result = new com.google.cloud.speech.v2.RecognizeRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -777,10 +710,14 @@ private void buildPartial0(com.google.cloud.speech.v2.RecognizeRequest result) {
         result.recognizer_ = recognizer_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
+        result.config_ = configBuilder_ == null
+            ? config_
+            : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.configMask_ = configMaskBuilder_ == null ? configMask_ : configMaskBuilder_.build();
+        result.configMask_ = configMaskBuilder_ == null
+            ? configMask_
+            : configMaskBuilder_.build();
       }
     }
 
@@ -793,39 +730,38 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.RecognizeRequest resu
     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.v2.RecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.RecognizeRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.RecognizeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -846,22 +782,19 @@ public Builder mergeFrom(com.google.cloud.speech.v2.RecognizeRequest other) {
         mergeConfigMask(other.getConfigMask());
       }
       switch (other.getAudioSourceCase()) {
-        case CONTENT:
-          {
-            setContent(other.getContent());
-            break;
-          }
-        case URI:
-          {
-            audioSourceCase_ = 6;
-            audioSource_ = other.audioSource_;
-            onChanged();
-            break;
-          }
-        case AUDIOSOURCE_NOT_SET:
-          {
-            break;
-          }
+        case CONTENT: {
+          setContent(other.getContent());
+          break;
+        }
+        case URI: {
+          audioSourceCase_ = 6;
+          audioSource_ = other.audioSource_;
+          onChanged();
+          break;
+        }
+        case AUDIOSOURCE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -889,44 +822,42 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 10
-            case 26:
-              {
-                recognizer_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 26
-            case 42:
-              {
-                audioSource_ = input.readBytes();
-                audioSourceCase_ = 5;
-                break;
-              } // case 42
-            case 50:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                audioSourceCase_ = 6;
-                audioSource_ = s;
-                break;
-              } // case 50
-            case 66:
-              {
-                input.readMessage(getConfigMaskFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 66
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 10
+            case 26: {
+              recognizer_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 26
+            case 42: {
+              audioSource_ = input.readBytes();
+              audioSourceCase_ = 5;
+              break;
+            } // case 42
+            case 50: {
+              java.lang.String s = input.readStringRequireUtf8();
+              audioSourceCase_ = 6;
+              audioSource_ = s;
+              break;
+            } // case 50
+            case 66: {
+              input.readMessage(
+                  getConfigMaskFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 66
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -936,12 +867,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -955,24 +886,20 @@ public Builder clearAudioSource() {
 
     private java.lang.Object recognizer_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the Recognizer to use during recognition. The
      * expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The recognizer. */ public java.lang.String getRecognizer() { java.lang.Object ref = recognizer_; 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(); recognizer_ = s; return s; @@ -981,25 +908,22 @@ public java.lang.String getRecognizer() { } } /** - * - * *
      * Required. The name of the Recognizer to use during recognition. The
      * expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for recognizer. */ - public com.google.protobuf.ByteString getRecognizerBytes() { + public com.google.protobuf.ByteString + getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -1007,43 +931,32 @@ public com.google.protobuf.ByteString getRecognizerBytes() { } } /** - * - * *
      * Required. The name of the Recognizer to use during recognition. The
      * expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizer(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecognizer( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } recognizer_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the Recognizer to use during recognition. The
      * expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearRecognizer() { @@ -1053,25 +966,19 @@ public Builder clearRecognizer() { return this; } /** - * - * *
      * Required. The name of the Recognizer to use during recognition. The
      * expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizerBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecognizerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); recognizer_ = value; bitField0_ |= 0x00000001; @@ -1081,13 +988,8 @@ public Builder setRecognizerBytes(com.google.protobuf.ByteString value) { private com.google.cloud.speech.v2.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, - com.google.cloud.speech.v2.RecognitionConfig.Builder, - com.google.cloud.speech.v2.RecognitionConfigOrBuilder> - configBuilder_; + com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> configBuilder_; /** - * - * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1098,15 +1000,12 @@ public Builder setRecognizerBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; - * * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1117,21 +1016,16 @@ public boolean hasConfig() {
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; - * * @return The config. */ public com.google.cloud.speech.v2.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1157,8 +1051,6 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1170,7 +1062,8 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
      *
      * .google.cloud.speech.v2.RecognitionConfig config = 1;
      */
-    public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
+    public Builder setConfig(
+        com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
       if (configBuilder_ == null) {
         config_ = builderForValue.build();
       } else {
@@ -1181,8 +1074,6 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder bu
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1196,9 +1087,9 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder bu
      */
     public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       if (configBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && config_ != null
-            && config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          config_ != null &&
+          config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
           getConfigBuilder().mergeFrom(value);
         } else {
           config_ = value;
@@ -1211,8 +1102,6 @@ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1235,8 +1124,6 @@ public Builder clearConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1254,8 +1141,6 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() {
       return getConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1271,14 +1156,11 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
       if (configBuilder_ != null) {
         return configBuilder_.getMessageOrBuilder();
       } else {
-        return config_ == null
-            ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
-            : config_;
+        return config_ == null ?
+            com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
       }
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1291,17 +1173,14 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * .google.cloud.speech.v2.RecognitionConfig config = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.RecognitionConfig,
-            com.google.cloud.speech.v2.RecognitionConfig.Builder,
-            com.google.cloud.speech.v2.RecognitionConfigOrBuilder>
+        com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> 
         getConfigFieldBuilder() {
       if (configBuilder_ == null) {
-        configBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v2.RecognitionConfig,
-                com.google.cloud.speech.v2.RecognitionConfig.Builder,
-                com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
-                getConfig(), getParentForChildren(), isClean());
+        configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
+                getConfig(),
+                getParentForChildren(),
+                isClean());
         config_ = null;
       }
       return configBuilder_;
@@ -1309,13 +1188,8 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
 
     private com.google.protobuf.FieldMask configMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
-        configMaskBuilder_;
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> configMaskBuilder_;
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1333,15 +1207,12 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * .google.protobuf.FieldMask config_mask = 8; - * * @return Whether the configMask field is set. */ public boolean hasConfigMask() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1359,21 +1230,16 @@ public boolean hasConfigMask() {
      * 
* * .google.protobuf.FieldMask config_mask = 8; - * * @return The configMask. */ public com.google.protobuf.FieldMask getConfigMask() { if (configMaskBuilder_ == null) { - return configMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : configMask_; + return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } else { return configMaskBuilder_.getMessage(); } } /** - * - * *
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1406,8 +1272,6 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1426,7 +1290,8 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask config_mask = 8;
      */
-    public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setConfigMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (configMaskBuilder_ == null) {
         configMask_ = builderForValue.build();
       } else {
@@ -1437,8 +1302,6 @@ public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1459,9 +1322,9 @@ public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       if (configMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && configMask_ != null
-            && configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          configMask_ != null &&
+          configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getConfigMaskBuilder().mergeFrom(value);
         } else {
           configMask_ = value;
@@ -1474,8 +1337,6 @@ public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1505,8 +1366,6 @@ public Builder clearConfigMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1531,8 +1390,6 @@ public com.google.protobuf.FieldMask.Builder getConfigMaskBuilder() {
       return getConfigMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1555,14 +1412,11 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
       if (configMaskBuilder_ != null) {
         return configMaskBuilder_.getMessageOrBuilder();
       } else {
-        return configMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : configMask_;
+        return configMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : configMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1582,25 +1436,20 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
      * .google.protobuf.FieldMask config_mask = 8;
      */
     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> 
         getConfigMaskFieldBuilder() {
       if (configMaskBuilder_ == null) {
-        configMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getConfigMask(), getParentForChildren(), isClean());
+        configMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getConfigMask(),
+                getParentForChildren(),
+                isClean());
         configMask_ = null;
       }
       return configMaskBuilder_;
     }
 
     /**
-     *
-     *
      * 
      * The audio data bytes encoded as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -1609,15 +1458,12 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
      * 
* * bytes content = 5; - * * @return Whether the content field is set. */ public boolean hasContent() { return audioSourceCase_ == 5; } /** - * - * *
      * The audio data bytes encoded as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -1626,7 +1472,6 @@ public boolean hasContent() {
      * 
* * bytes content = 5; - * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -1636,8 +1481,6 @@ public com.google.protobuf.ByteString getContent() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * The audio data bytes encoded as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -1646,22 +1489,17 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 5; - * * @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(); - } + if (value == null) { throw new NullPointerException(); } audioSourceCase_ = 5; audioSource_ = value; onChanged(); return this; } /** - * - * *
      * The audio data bytes encoded as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -1670,7 +1508,6 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 5; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -1683,8 +1520,6 @@ public Builder clearContent() { } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1697,7 +1532,6 @@ public Builder clearContent() {
      * 
* * string uri = 6; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -1705,8 +1539,6 @@ public boolean hasUri() { return audioSourceCase_ == 6; } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1719,7 +1551,6 @@ public boolean hasUri() {
      * 
* * string uri = 6; - * * @return The uri. */ @java.lang.Override @@ -1729,7 +1560,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_ == 6) { audioSource_ = s; @@ -1740,8 +1572,6 @@ public java.lang.String getUri() { } } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1754,18 +1584,19 @@ public java.lang.String getUri() {
      * 
* * string uri = 6; - * * @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_ == 6) { 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_ == 6) { audioSource_ = b; } @@ -1775,8 +1606,6 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1789,22 +1618,18 @@ public com.google.protobuf.ByteString getUriBytes() {
      * 
* * string uri = 6; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } audioSourceCase_ = 6; audioSource_ = value; onChanged(); return this; } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1817,7 +1642,6 @@ public Builder setUri(java.lang.String value) {
      * 
* * string uri = 6; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -1829,8 +1653,6 @@ public Builder clearUri() { return this; } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1843,23 +1665,21 @@ public Builder clearUri() {
      * 
* * string uri = 6; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); audioSourceCase_ = 6; 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); } @@ -1869,12 +1689,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.RecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.RecognizeRequest) private static final com.google.cloud.speech.v2.RecognizeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.RecognizeRequest(); } @@ -1883,27 +1703,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1918,4 +1738,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java similarity index 87% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java index 9ee6e525fe6f..95e18c535b8d 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface RecognizeRequestOrBuilder - extends +public interface RecognizeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.RecognizeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the Recognizer to use during recognition. The
    * expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The recognizer. */ java.lang.String getRecognizer(); /** - * - * *
    * Required. The name of the Recognizer to use during recognition. The
    * expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for recognizer. */ - com.google.protobuf.ByteString getRecognizerBytes(); + com.google.protobuf.ByteString + getRecognizerBytes(); /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -69,13 +42,10 @@ public interface RecognizeRequestOrBuilder
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; - * * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -86,13 +56,10 @@ public interface RecognizeRequestOrBuilder
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; - * * @return The config. */ com.google.cloud.speech.v2.RecognitionConfig getConfig(); /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -107,8 +74,6 @@ public interface RecognizeRequestOrBuilder
   com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -126,13 +91,10 @@ public interface RecognizeRequestOrBuilder
    * 
* * .google.protobuf.FieldMask config_mask = 8; - * * @return Whether the configMask field is set. */ boolean hasConfigMask(); /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -150,13 +112,10 @@ public interface RecognizeRequestOrBuilder
    * 
* * .google.protobuf.FieldMask config_mask = 8; - * * @return The configMask. */ com.google.protobuf.FieldMask getConfigMask(); /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -178,8 +137,6 @@ public interface RecognizeRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * The audio data bytes encoded as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -188,13 +145,10 @@ public interface RecognizeRequestOrBuilder
    * 
* * bytes content = 5; - * * @return Whether the content field is set. */ boolean hasContent(); /** - * - * *
    * The audio data bytes encoded as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -203,14 +157,11 @@ public interface RecognizeRequestOrBuilder
    * 
* * bytes content = 5; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -223,13 +174,10 @@ public interface RecognizeRequestOrBuilder
    * 
* * string uri = 6; - * * @return Whether the uri field is set. */ boolean hasUri(); /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -242,13 +190,10 @@ public interface RecognizeRequestOrBuilder
    * 
* * string uri = 6; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -261,10 +206,10 @@ public interface RecognizeRequestOrBuilder
    * 
* * string uri = 6; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); public com.google.cloud.speech.v2.RecognizeRequest.AudioSourceCase getAudioSourceCase(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java index 98d3c7db0997..6c4951c641b0 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Response message for the
  * [Recognize][google.cloud.speech.v2.Speech.Recognize] method.
@@ -28,53 +11,48 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.RecognizeResponse.class,
-            com.google.cloud.speech.v2.RecognizeResponse.Builder.class);
+            com.google.cloud.speech.v2.RecognizeResponse.class, com.google.cloud.speech.v2.RecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to sequential
    * portions of audio.
@@ -87,8 +65,6 @@ public java.util.List getRes
     return results_;
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to sequential
    * portions of audio.
@@ -97,13 +73,11 @@ public java.util.List getRes
    * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
    */
   @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.
@@ -116,8 +90,6 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to sequential
    * portions of audio.
@@ -130,8 +102,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult getResults(int index)
     return results_.get(index);
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to sequential
    * portions of audio.
@@ -148,14 +118,11 @@ public com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrB
   public static final int METADATA_FIELD_NUMBER = 2;
   private com.google.cloud.speech.v2.RecognitionResponseMetadata metadata_;
   /**
-   *
-   *
    * 
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; - * * @return Whether the metadata field is set. */ @java.lang.Override @@ -163,25 +130,18 @@ public boolean hasMetadata() { return metadata_ != null; } /** - * - * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; - * * @return The metadata. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { - return metadata_ == null - ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; } /** - * - * *
    * Metadata about the recognition.
    * 
@@ -190,13 +150,10 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetadataOrBuilder() { - return metadata_ == null - ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,7 +165,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 (metadata_ != null) { output.writeMessage(2, getMetadata()); } @@ -225,10 +183,12 @@ public int getSerializedSize() { size = 0; if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMetadata()); } for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, results_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -238,18 +198,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.v2.RecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.RecognizeResponse other = - (com.google.cloud.speech.v2.RecognizeResponse) obj; + com.google.cloud.speech.v2.RecognizeResponse other = (com.google.cloud.speech.v2.RecognizeResponse) obj; - if (!getResultsList().equals(other.getResultsList())) return false; + if (!getResultsList() + .equals(other.getResultsList())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -275,104 +236,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.RecognizeResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.RecognizeResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.RecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.RecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.RecognizeResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.RecognizeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Response message for the
    * [Recognize][google.cloud.speech.v2.Speech.Recognize] method.
@@ -380,32 +334,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.RecognizeResponse)
       com.google.cloud.speech.v2.RecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.RecognizeResponse.class,
-              com.google.cloud.speech.v2.RecognizeResponse.Builder.class);
+              com.google.cloud.speech.v2.RecognizeResponse.class, com.google.cloud.speech.v2.RecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.RecognizeResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -426,9 +381,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
@@ -447,12 +402,9 @@ public com.google.cloud.speech.v2.RecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.RecognizeResponse buildPartial() {
-      com.google.cloud.speech.v2.RecognizeResponse result =
-          new com.google.cloud.speech.v2.RecognizeResponse(this);
+      com.google.cloud.speech.v2.RecognizeResponse result = new com.google.cloud.speech.v2.RecognizeResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -472,7 +424,9 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v2.RecognizeResp
     private void buildPartial0(com.google.cloud.speech.v2.RecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
+        result.metadata_ = metadataBuilder_ == null
+            ? metadata_
+            : metadataBuilder_.build();
       }
     }
 
@@ -480,39 +434,38 @@ private void buildPartial0(com.google.cloud.speech.v2.RecognizeResponse result)
     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.v2.RecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.RecognizeResponse) other);
+        return mergeFrom((com.google.cloud.speech.v2.RecognizeResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -539,10 +492,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_);
           }
@@ -577,33 +529,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18:
-              {
-                input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                com.google.cloud.speech.v2.SpeechRecognitionResult m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.SpeechRecognitionResult.parser(),
-                        extensionRegistry);
-                if (resultsBuilder_ == null) {
-                  ensureResultsIsMutable();
-                  results_.add(m);
-                } else {
-                  resultsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 18: {
+              input.readMessage(
+                  getMetadataFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              com.google.cloud.speech.v2.SpeechRecognitionResult m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.SpeechRecognitionResult.parser(),
+                      extensionRegistry);
+              if (resultsBuilder_ == null) {
+                ensureResultsIsMutable();
+                results_.add(m);
+              } else {
+                resultsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -613,29 +564,21 @@ public Builder mergeFrom(
       } // finally
       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.v2.SpeechRecognitionResult,
-            com.google.cloud.speech.v2.SpeechRecognitionResult.Builder,
-            com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder>
-        resultsBuilder_;
+        com.google.cloud.speech.v2.SpeechRecognitionResult, com.google.cloud.speech.v2.SpeechRecognitionResult.Builder, com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder> resultsBuilder_;
 
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -651,8 +594,6 @@ public java.util.List getRes
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -668,8 +609,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -685,8 +624,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -694,7 +631,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult getResults(int index)
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public Builder setResults(int index, com.google.cloud.speech.v2.SpeechRecognitionResult value) {
+    public Builder setResults(
+        int index, com.google.cloud.speech.v2.SpeechRecognitionResult value) {
       if (resultsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -708,8 +646,6 @@ public Builder setResults(int index, com.google.cloud.speech.v2.SpeechRecognitio
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -729,8 +665,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -752,8 +686,6 @@ public Builder addResults(com.google.cloud.speech.v2.SpeechRecognitionResult val
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -761,7 +693,8 @@ public Builder addResults(com.google.cloud.speech.v2.SpeechRecognitionResult val
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public Builder addResults(int index, com.google.cloud.speech.v2.SpeechRecognitionResult value) {
+    public Builder addResults(
+        int index, com.google.cloud.speech.v2.SpeechRecognitionResult value) {
       if (resultsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -775,8 +708,6 @@ public Builder addResults(int index, com.google.cloud.speech.v2.SpeechRecognitio
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -796,8 +727,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -817,8 +746,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -830,7 +757,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);
@@ -838,8 +766,6 @@ public Builder addAllResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -858,8 +784,6 @@ public Builder clearResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -878,8 +802,6 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -887,12 +809,11 @@ public Builder removeResults(int index) {
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder getResultsBuilder(int index) {
+    public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder getResultsBuilder(
+        int index) {
       return getResultsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -903,14 +824,11 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder getResultsBuil
     public com.google.cloud.speech.v2.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.
@@ -918,8 +836,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrB
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public java.util.List
-        getResultsOrBuilderList() {
+    public java.util.List 
+         getResultsOrBuilderList() {
       if (resultsBuilder_ != null) {
         return resultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -927,8 +845,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -937,12 +853,10 @@ public com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrB
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
     public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuilder() {
-      return getResultsFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder().addBuilder(
+          com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -950,14 +864,12 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuil
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuilder(int index) {
-      return getResultsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance());
+    public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuilder(
+        int index) {
+      return getResultsFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -965,23 +877,20 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuil
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public java.util.List
-        getResultsBuilderList() {
+    public java.util.List 
+         getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.SpeechRecognitionResult,
-            com.google.cloud.speech.v2.SpeechRecognitionResult.Builder,
-            com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder>
+        com.google.cloud.speech.v2.SpeechRecognitionResult, com.google.cloud.speech.v2.SpeechRecognitionResult.Builder, com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder> 
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v2.SpeechRecognitionResult,
-                com.google.cloud.speech.v2.SpeechRecognitionResult.Builder,
-                com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder>(
-                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v2.SpeechRecognitionResult, com.google.cloud.speech.v2.SpeechRecognitionResult.Builder, com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder>(
+                results_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -989,47 +898,34 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuil
 
     private com.google.cloud.speech.v2.RecognitionResponseMetadata metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.RecognitionResponseMetadata,
-            com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder,
-            com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder>
-        metadataBuilder_;
+        com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> metadataBuilder_;
     /**
-     *
-     *
      * 
      * Metadata about the recognition.
      * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; - * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Metadata about the recognition.
      * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; - * * @return The metadata. */ public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1050,8 +946,6 @@ public Builder setMetadata(com.google.cloud.speech.v2.RecognitionResponseMetadat return this; } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1070,8 +964,6 @@ public Builder setMetadata( return this; } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1080,10 +972,9 @@ public Builder setMetadata( */ public Builder mergeMetadata(com.google.cloud.speech.v2.RecognitionResponseMetadata value) { if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && metadata_ != null - && metadata_ - != com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + metadata_ != null && + metadata_ != com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; @@ -1096,8 +987,6 @@ public Builder mergeMetadata(com.google.cloud.speech.v2.RecognitionResponseMetad return this; } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1115,8 +1004,6 @@ public Builder clearMetadata() { return this; } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1129,8 +1016,6 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder getMetadat return getMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1141,14 +1026,11 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetada if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { - return metadata_ == null - ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? + com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; } } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1156,24 +1038,21 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetada * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionResponseMetadata, - com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, - com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> + com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionResponseMetadata, - com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, - com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); metadata_ = null; } return metadataBuilder_; } - @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); } @@ -1183,12 +1062,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.RecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.RecognizeResponse) private static final com.google.cloud.speech.v2.RecognizeResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.RecognizeResponse(); } @@ -1197,27 +1076,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1232,4 +1111,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java similarity index 75% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java index 8d6bea8f3a5d..494d96c78e8b 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface RecognizeResponseOrBuilder - extends +public interface RecognizeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.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.v2.SpeechRecognitionResult results = 3;
    */
-  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.v2.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.v2.SpeechRecognitionResult results = 3;
    */
-  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.v2.SpeechRecognitionResult results = 3;
    */
-  com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
+  com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; - * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** - * - * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; - * * @return The metadata. */ com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata(); /** - * - * *
    * Metadata about the recognition.
    * 
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java index 070ca69b04ab..f370142d2ee0 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * A Recognizer message. Stores recognition configuration and metadata.
  * 
* * Protobuf type {@code google.cloud.speech.v2.Recognizer} */ -public final class Recognizer extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Recognizer extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.Recognizer) RecognizerOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Recognizer.newBuilder() to construct. private Recognizer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Recognizer() { name_ = ""; uid_ = ""; @@ -51,54 +33,51 @@ private Recognizer() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Recognizer(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_Recognizer_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 7: return internalGetAnnotations(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.Recognizer.class, - com.google.cloud.speech.v2.Recognizer.Builder.class); + com.google.cloud.speech.v2.Recognizer.class, com.google.cloud.speech.v2.Recognizer.Builder.class); } /** - * - * *
    * Set of states that define the lifecycle of a Recognizer.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.Recognizer.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -107,8 +86,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The Recognizer is active and ready for use.
      * 
@@ -117,8 +94,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(2), /** - * - * *
      * This Recognizer has been deleted.
      * 
@@ -130,8 +105,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -140,8 +113,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The Recognizer is active and ready for use.
      * 
@@ -150,8 +121,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 2; /** - * - * *
      * This Recognizer has been deleted.
      * 
@@ -160,6 +129,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETED_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -184,49 +154,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 2: - return ACTIVE; - case 4: - return DELETED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 2: return ACTIVE; + case 4: return DELETED; + 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< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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.v2.Recognizer.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -244,19 +214,15 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The resource name of the Recognizer.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -265,30 +231,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; } } /** - * - * *
    * Output only. The resource name of the Recognizer.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -297,18 +263,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int UID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** - * - * *
    * Output only. System-assigned unique identifier for the Recognizer.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -317,29 +279,29 @@ public java.lang.String getUid() { 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(); uid_ = s; return s; } } /** - * - * *
    * Output only. System-assigned unique identifier for the Recognizer.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -348,19 +310,15 @@ public com.google.protobuf.ByteString getUidBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * User-settable, human-readable name for the Recognizer. Must be 63
    * characters or less.
    * 
* * string display_name = 3; - * * @return The displayName. */ @java.lang.Override @@ -369,30 +327,30 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** - * - * *
    * User-settable, human-readable name for the Recognizer. Must be 63
    * characters or less.
    * 
* * string display_name = 3; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -401,12 +359,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int MODEL_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Required. Which model to use for recognition requests. Select the model
    * best suited to your domain to get best results.
@@ -424,7 +379,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The model. */ @java.lang.Override @@ -433,15 +387,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; } } /** - * - * *
    * Required. Which model to use for recognition requests. Select the model
    * best suited to your domain to get best results.
@@ -459,15 +412,16 @@ public java.lang.String getModel() {
    * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -476,12 +430,9 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int LANGUAGE_CODES_FIELD_NUMBER = 17; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList languageCodes_; /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -498,15 +449,13 @@ public com.google.protobuf.ByteString getModelBytes() {
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getLanguageCodesList() { return languageCodes_; } /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -523,15 +472,12 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -548,7 +494,6 @@ public int getLanguageCodesCount() {
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -556,8 +501,6 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -574,19 +517,17 @@ public java.lang.String getLanguageCodes(int index) {
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } public static final int DEFAULT_RECOGNITION_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.speech.v2.RecognitionConfig defaultRecognitionConfig_; /** - * - * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -595,7 +536,6 @@ public com.google.protobuf.ByteString getLanguageCodesBytes(int index) {
    * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; - * * @return Whether the defaultRecognitionConfig field is set. */ @java.lang.Override @@ -603,8 +543,6 @@ public boolean hasDefaultRecognitionConfig() { return defaultRecognitionConfig_ != null; } /** - * - * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -613,18 +551,13 @@ public boolean hasDefaultRecognitionConfig() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; - * * @return The defaultRecognitionConfig. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfig getDefaultRecognitionConfig() { - return defaultRecognitionConfig_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : defaultRecognitionConfig_; + return defaultRecognitionConfig_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : defaultRecognitionConfig_; } /** - * - * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -635,43 +568,37 @@ public com.google.cloud.speech.v2.RecognitionConfig getDefaultRecognitionConfig(
    * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.RecognitionConfigOrBuilder
-      getDefaultRecognitionConfigOrBuilder() {
-    return defaultRecognitionConfig_ == null
-        ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
-        : defaultRecognitionConfig_;
+  public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getDefaultRecognitionConfigOrBuilder() {
+    return defaultRecognitionConfig_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : defaultRecognitionConfig_;
   }
 
   public static final int ANNOTATIONS_FIELD_NUMBER = 7;
-
   private static final class AnnotationsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry defaultEntry =
-        com.google.protobuf.MapEntry.newDefaultInstance(
-            com.google.cloud.speech.v2.CloudSpeechProto
-                .internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_descriptor,
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "",
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "");
+    static final com.google.protobuf.MapEntry<
+        java.lang.String, java.lang.String> defaultEntry =
+            com.google.protobuf.MapEntry
+            .newDefaultInstance(
+                com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "");
   }
-
   @SuppressWarnings("serial")
-  private com.google.protobuf.MapField annotations_;
-
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.String> annotations_;
   private com.google.protobuf.MapField
-      internalGetAnnotations() {
+  internalGetAnnotations() {
     if (annotations_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          AnnotationsDefaultEntryHolder.defaultEntry);
     }
     return annotations_;
   }
-
   public int getAnnotationsCount() {
     return internalGetAnnotations().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -681,21 +608,20 @@ public int getAnnotationsCount() {
    * map<string, string> annotations = 7;
    */
   @java.lang.Override
-  public boolean containsAnnotations(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsAnnotations(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetAnnotations().getMap().containsKey(key);
   }
-  /** Use {@link #getAnnotationsMap()} instead. */
+  /**
+   * Use {@link #getAnnotationsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAnnotations() {
     return getAnnotationsMap();
   }
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -709,8 +635,6 @@ public java.util.Map getAnnotationsMap() {
     return internalGetAnnotations().getMap();
   }
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -720,19 +644,17 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 7;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getAnnotationsOrDefault(
+  public /* nullable */
+java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetAnnotations().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -742,11 +664,11 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 7;
    */
   @java.lang.Override
-  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+  public java.lang.String getAnnotationsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -756,54 +678,37 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
   public static final int STATE_FIELD_NUMBER = 8;
   private int state_ = 0;
   /**
-   *
-   *
    * 
    * Output only. The Recognizer lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The Recognizer lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.speech.v2.Recognizer.State getState() { - com.google.cloud.speech.v2.Recognizer.State result = - com.google.cloud.speech.v2.Recognizer.State.forNumber(state_); + @java.lang.Override public com.google.cloud.speech.v2.Recognizer.State getState() { + com.google.cloud.speech.v2.Recognizer.State result = com.google.cloud.speech.v2.Recognizer.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.Recognizer.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -811,15 +716,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -827,14 +728,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -844,15 +742,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -860,15 +754,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -876,14 +766,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -893,15 +780,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -909,15 +792,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -925,14 +804,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -942,15 +818,11 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ @java.lang.Override @@ -958,15 +830,11 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ @java.lang.Override @@ -974,14 +842,11 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -989,12 +854,9 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 12; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -1002,7 +864,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ @java.lang.Override @@ -1011,15 +872,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -1027,15 +887,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -1046,15 +907,12 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int RECONCILING_FIELD_NUMBER = 13; private boolean reconciling_ = false; /** - * - * *
    * Output only. Whether or not this Recognizer is in the process of being
    * updated.
    * 
* * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -1063,12 +921,9 @@ public boolean getReconciling() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 15; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -1076,10 +931,7 @@ public boolean getReconciling() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ @java.lang.Override @@ -1088,15 +940,14 @@ public java.lang.String getKmsKeyName() { 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(); kmsKeyName_ = s; return s; } } /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -1104,18 +955,17 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -1124,12 +974,9 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER = 16; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyVersionName_ = ""; /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1137,10 +984,7 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyVersionName. */ @java.lang.Override @@ -1149,15 +993,14 @@ public java.lang.String getKmsKeyVersionName() { 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(); kmsKeyVersionName_ = s; return s; } } /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1165,18 +1008,17 @@ public java.lang.String getKmsKeyVersionName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyVersionName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -1185,7 +1027,6 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1197,7 +1038,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_); } @@ -1213,8 +1055,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (defaultRecognitionConfig_ != null) { output.writeMessage(6, getDefaultRecognitionConfig()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 7); if (state_ != com.google.cloud.speech.v2.Recognizer.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(8, state_); } @@ -1267,40 +1113,45 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, model_); } if (defaultRecognitionConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, getDefaultRecognitionConfig()); - } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, annotations__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDefaultRecognitionConfig()); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, annotations__); } if (state_ != com.google.cloud.speech.v2.Recognizer.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, etag_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, reconciling_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, reconciling_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getExpireTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, kmsKeyName_); @@ -1324,44 +1175,59 @@ 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.v2.Recognizer)) { return super.equals(obj); } com.google.cloud.speech.v2.Recognizer other = (com.google.cloud.speech.v2.Recognizer) obj; - if (!getName().equals(other.getName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getModel().equals(other.getModel())) return false; - if (!getLanguageCodesList().equals(other.getLanguageCodesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getModel() + .equals(other.getModel())) return false; + if (!getLanguageCodesList() + .equals(other.getLanguageCodesList())) return false; if (hasDefaultRecognitionConfig() != other.hasDefaultRecognitionConfig()) return false; if (hasDefaultRecognitionConfig()) { - if (!getDefaultRecognitionConfig().equals(other.getDefaultRecognitionConfig())) return false; + if (!getDefaultRecognitionConfig() + .equals(other.getDefaultRecognitionConfig())) return false; } - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; - } - if (!getEtag().equals(other.getEtag())) return false; - if (getReconciling() != other.getReconciling()) return false; - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; - if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; + } + if (!getEtag() + .equals(other.getEtag())) return false; + if (getReconciling() + != other.getReconciling()) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; + if (!getKmsKeyVersionName() + .equals(other.getKmsKeyVersionName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1414,7 +1280,8 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getKmsKeyName().hashCode(); hash = (37 * hash) + KMS_KEY_VERSION_NAME_FIELD_NUMBER; @@ -1424,155 +1291,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.Recognizer parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.Recognizer parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.Recognizer 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.v2.Recognizer parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.speech.v2.Recognizer parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.Recognizer 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.v2.Recognizer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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 Recognizer message. Stores recognition configuration and metadata.
    * 
* * Protobuf type {@code google.cloud.speech.v2.Recognizer} */ - 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.v2.Recognizer) com.google.cloud.speech.v2.RecognizerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_Recognizer_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 7: return internalGetAnnotations(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 7: return internalGetMutableAnnotations(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.Recognizer.class, - com.google.cloud.speech.v2.Recognizer.Builder.class); + com.google.cloud.speech.v2.Recognizer.class, com.google.cloud.speech.v2.Recognizer.Builder.class); } // Construct using com.google.cloud.speech.v2.Recognizer.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1618,9 +1482,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_Recognizer_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_descriptor; } @java.lang.Override @@ -1639,12 +1503,9 @@ public com.google.cloud.speech.v2.Recognizer build() { @java.lang.Override public com.google.cloud.speech.v2.Recognizer buildPartial() { - com.google.cloud.speech.v2.Recognizer result = - new com.google.cloud.speech.v2.Recognizer(this); + com.google.cloud.speech.v2.Recognizer result = new com.google.cloud.speech.v2.Recognizer(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1672,10 +1533,9 @@ private void buildPartial0(com.google.cloud.speech.v2.Recognizer result) { result.model_ = model_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.defaultRecognitionConfig_ = - defaultRecognitionConfigBuilder_ == null - ? defaultRecognitionConfig_ - : defaultRecognitionConfigBuilder_.build(); + result.defaultRecognitionConfig_ = defaultRecognitionConfigBuilder_ == null + ? defaultRecognitionConfig_ + : defaultRecognitionConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.annotations_ = internalGetAnnotations(); @@ -1685,16 +1545,24 @@ private void buildPartial0(com.google.cloud.speech.v2.Recognizer result) { result.state_ = state_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000400) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + result.deleteTime_ = deleteTimeBuilder_ == null + ? deleteTime_ + : deleteTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000800) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null + ? expireTime_ + : expireTimeBuilder_.build(); } if (((from_bitField0_ & 0x00001000) != 0)) { result.etag_ = etag_; @@ -1714,39 +1582,38 @@ private void buildPartial0(com.google.cloud.speech.v2.Recognizer result) { 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.v2.Recognizer) { - return mergeFrom((com.google.cloud.speech.v2.Recognizer) other); + return mergeFrom((com.google.cloud.speech.v2.Recognizer)other); } else { super.mergeFrom(other); return this; @@ -1788,7 +1655,8 @@ public Builder mergeFrom(com.google.cloud.speech.v2.Recognizer other) { if (other.hasDefaultRecognitionConfig()) { mergeDefaultRecognitionConfig(other.getDefaultRecognitionConfig()); } - internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + internalGetMutableAnnotations().mergeFrom( + other.internalGetAnnotations()); bitField0_ |= 0x00000040; if (other.state_ != 0) { setStateValue(other.getStateValue()); @@ -1849,117 +1717,107 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: - { - input.readMessage( - getDefaultRecognitionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - com.google.protobuf.MapEntry annotations__ = - input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableAnnotations() - .getMutableMap() - .put(annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 64: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 74: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: - { - input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 98: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 98 - case 104: - { - reconciling_ = input.readBool(); - bitField0_ |= 0x00002000; - break; - } // case 104 - case 114: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 114 - case 122: - { - kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; - break; - } // case 122 - case 130: - { - kmsKeyVersionName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; - break; - } // case 130 - case 138: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureLanguageCodesIsMutable(); - languageCodes_.add(s); - break; - } // case 138 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + input.readMessage( + getDefaultRecognitionConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + com.google.protobuf.MapEntry + annotations__ = input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableAnnotations().getMutableMap().put( + annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + input.readMessage( + getDeleteTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 98 + case 104: { + reconciling_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 104 + case 114: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 114 + case 122: { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: { + kmsKeyVersionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 138: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLanguageCodesIsMutable(); + languageCodes_.add(s); + break; + } // case 138 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1969,26 +1827,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the Recognizer.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1997,22 +1852,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the Recognizer.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -2020,37 +1874,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the Recognizer.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the Recognizer.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2060,22 +1907,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name of the Recognizer.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2085,20 +1928,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. System-assigned unique identifier for the Recognizer.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; 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(); uid_ = s; return s; @@ -2107,21 +1948,20 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. System-assigned unique identifier for the Recognizer.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -2129,35 +1969,28 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. System-assigned unique identifier for the Recognizer.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. System-assigned unique identifier for the Recognizer.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { @@ -2167,21 +2000,17 @@ public Builder clearUid() { return this; } /** - * - * *
      * Output only. System-assigned unique identifier for the Recognizer.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000002; @@ -2191,21 +2020,19 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * User-settable, human-readable name for the Recognizer. Must be 63
      * characters or less.
      * 
* * string display_name = 3; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -2214,22 +2041,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * User-settable, human-readable name for the Recognizer. Must be 63
      * characters or less.
      * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -2237,37 +2063,30 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * User-settable, human-readable name for the Recognizer. Must be 63
      * characters or less.
      * 
* * string display_name = 3; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * User-settable, human-readable name for the Recognizer. Must be 63
      * characters or less.
      * 
* * string display_name = 3; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2277,22 +2096,18 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * User-settable, human-readable name for the Recognizer. Must be 63
      * characters or less.
      * 
* * string display_name = 3; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000004; @@ -2302,8 +2117,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object model_ = ""; /** - * - * *
      * Required. Which model to use for recognition requests. Select the model
      * best suited to your domain to get best results.
@@ -2321,13 +2134,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -2336,8 +2149,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Required. Which model to use for recognition requests. Select the model
      * best suited to your domain to get best results.
@@ -2355,14 +2166,15 @@ public java.lang.String getModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -2370,8 +2182,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Required. Which model to use for recognition requests. Select the model
      * best suited to your domain to get best results.
@@ -2389,22 +2199,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. Which model to use for recognition requests. Select the model
      * best suited to your domain to get best results.
@@ -2422,7 +2228,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -2432,8 +2237,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Required. Which model to use for recognition requests. Select the model
      * best suited to your domain to get best results.
@@ -2451,14 +2254,12 @@ public Builder clearModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000008; @@ -2466,18 +2267,14 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList languageCodes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); bitField0_ |= 0x00000010; - } + } } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2494,15 +2291,13 @@ private void ensureLanguageCodesIsMutable() {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getLanguageCodesList() { return languageCodes_.getUnmodifiableView(); } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2519,15 +2314,12 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2544,7 +2336,6 @@ public int getLanguageCodesCount() {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -2552,8 +2343,6 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2570,16 +2359,14 @@ public java.lang.String getLanguageCodes(int index) {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2596,23 +2383,19 @@ public com.google.protobuf.ByteString getLanguageCodesBytes(int index) {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The languageCodes to set. * @return This builder for chaining. */ - public Builder setLanguageCodes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLanguageCodesIsMutable(); languageCodes_.set(index, 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.
@@ -2629,22 +2412,18 @@ public Builder setLanguageCodes(int index, java.lang.String value) {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLanguageCodes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLanguageCodesIsMutable(); languageCodes_.add(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.
@@ -2661,19 +2440,18 @@ public Builder addLanguageCodes(java.lang.String value) {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The languageCodes to add. * @return This builder for chaining. */ - public Builder addAllLanguageCodes(java.lang.Iterable values) { + public Builder addAllLanguageCodes( + java.lang.Iterable values) { ensureLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, languageCodes_); 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.
@@ -2690,7 +2468,6 @@ public Builder addAllLanguageCodes(java.lang.Iterable values)
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLanguageCodes() { @@ -2700,8 +2477,6 @@ public Builder clearLanguageCodes() { return this; } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2718,14 +2493,12 @@ public Builder clearLanguageCodes() {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLanguageCodesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLanguageCodesIsMutable(); languageCodes_.add(value); @@ -2735,13 +2508,8 @@ public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { private com.google.cloud.speech.v2.RecognitionConfig defaultRecognitionConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, - com.google.cloud.speech.v2.RecognitionConfig.Builder, - com.google.cloud.speech.v2.RecognitionConfigOrBuilder> - defaultRecognitionConfigBuilder_; + com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> defaultRecognitionConfigBuilder_; /** - * - * *
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2750,15 +2518,12 @@ public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; - * * @return Whether the defaultRecognitionConfig field is set. */ public boolean hasDefaultRecognitionConfig() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2767,21 +2532,16 @@ public boolean hasDefaultRecognitionConfig() {
      * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; - * * @return The defaultRecognitionConfig. */ public com.google.cloud.speech.v2.RecognitionConfig getDefaultRecognitionConfig() { if (defaultRecognitionConfigBuilder_ == null) { - return defaultRecognitionConfig_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : defaultRecognitionConfig_; + return defaultRecognitionConfig_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : defaultRecognitionConfig_; } else { return defaultRecognitionConfigBuilder_.getMessage(); } } /** - * - * *
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2805,8 +2565,6 @@ public Builder setDefaultRecognitionConfig(com.google.cloud.speech.v2.Recognitio
       return this;
     }
     /**
-     *
-     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2828,8 +2586,6 @@ public Builder setDefaultRecognitionConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2839,13 +2595,11 @@ public Builder setDefaultRecognitionConfig(
      *
      * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6;
      */
-    public Builder mergeDefaultRecognitionConfig(
-        com.google.cloud.speech.v2.RecognitionConfig value) {
+    public Builder mergeDefaultRecognitionConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       if (defaultRecognitionConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000020) != 0)
-            && defaultRecognitionConfig_ != null
-            && defaultRecognitionConfig_
-                != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000020) != 0) &&
+          defaultRecognitionConfig_ != null &&
+          defaultRecognitionConfig_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
           getDefaultRecognitionConfigBuilder().mergeFrom(value);
         } else {
           defaultRecognitionConfig_ = value;
@@ -2858,8 +2612,6 @@ public Builder mergeDefaultRecognitionConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2880,8 +2632,6 @@ public Builder clearDefaultRecognitionConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2891,15 +2641,12 @@ public Builder clearDefaultRecognitionConfig() {
      *
      * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6;
      */
-    public com.google.cloud.speech.v2.RecognitionConfig.Builder
-        getDefaultRecognitionConfigBuilder() {
+    public com.google.cloud.speech.v2.RecognitionConfig.Builder getDefaultRecognitionConfigBuilder() {
       bitField0_ |= 0x00000020;
       onChanged();
       return getDefaultRecognitionConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2909,19 +2656,15 @@ public Builder clearDefaultRecognitionConfig() {
      *
      * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6;
      */
-    public com.google.cloud.speech.v2.RecognitionConfigOrBuilder
-        getDefaultRecognitionConfigOrBuilder() {
+    public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getDefaultRecognitionConfigOrBuilder() {
       if (defaultRecognitionConfigBuilder_ != null) {
         return defaultRecognitionConfigBuilder_.getMessageOrBuilder();
       } else {
-        return defaultRecognitionConfig_ == null
-            ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
-            : defaultRecognitionConfig_;
+        return defaultRecognitionConfig_ == null ?
+            com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : defaultRecognitionConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2932,24 +2675,21 @@ public Builder clearDefaultRecognitionConfig() {
      * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.RecognitionConfig,
-            com.google.cloud.speech.v2.RecognitionConfig.Builder,
-            com.google.cloud.speech.v2.RecognitionConfigOrBuilder>
+        com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> 
         getDefaultRecognitionConfigFieldBuilder() {
       if (defaultRecognitionConfigBuilder_ == null) {
-        defaultRecognitionConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v2.RecognitionConfig,
-                com.google.cloud.speech.v2.RecognitionConfig.Builder,
-                com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
-                getDefaultRecognitionConfig(), getParentForChildren(), isClean());
+        defaultRecognitionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
+                getDefaultRecognitionConfig(),
+                getParentForChildren(),
+                isClean());
         defaultRecognitionConfig_ = null;
       }
       return defaultRecognitionConfigBuilder_;
     }
 
-    private com.google.protobuf.MapField annotations_;
-
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.String> annotations_;
     private com.google.protobuf.MapField
         internalGetAnnotations() {
       if (annotations_ == null) {
@@ -2958,12 +2698,11 @@ public Builder clearDefaultRecognitionConfig() {
       }
       return annotations_;
     }
-
     private com.google.protobuf.MapField
         internalGetMutableAnnotations() {
       if (annotations_ == null) {
-        annotations_ =
-            com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry);
+        annotations_ = com.google.protobuf.MapField.newMapField(
+            AnnotationsDefaultEntryHolder.defaultEntry);
       }
       if (!annotations_.isMutable()) {
         annotations_ = annotations_.copy();
@@ -2972,13 +2711,10 @@ public Builder clearDefaultRecognitionConfig() {
       onChanged();
       return annotations_;
     }
-
     public int getAnnotationsCount() {
       return internalGetAnnotations().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -2988,21 +2724,20 @@ public int getAnnotationsCount() {
      * map<string, string> annotations = 7;
      */
     @java.lang.Override
-    public boolean containsAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetAnnotations().getMap().containsKey(key);
     }
-    /** Use {@link #getAnnotationsMap()} instead. */
+    /**
+     * Use {@link #getAnnotationsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAnnotations() {
       return getAnnotationsMap();
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3016,8 +2751,6 @@ public java.util.Map getAnnotationsMap() {
       return internalGetAnnotations().getMap();
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3027,19 +2760,17 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 7;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getAnnotationsOrDefault(
+    public /* nullable */
+java.lang.String getAnnotationsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetAnnotations().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3049,25 +2780,23 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 7;
      */
     @java.lang.Override
-    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+    public java.lang.String getAnnotationsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearAnnotations() {
       bitField0_ = (bitField0_ & ~0x00000040);
-      internalGetMutableAnnotations().getMutableMap().clear();
+      internalGetMutableAnnotations().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3076,22 +2805,23 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 7;
      */
-    public Builder removeAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableAnnotations().getMutableMap().remove(key);
+    public Builder removeAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableAnnotations().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableAnnotations() {
+    public java.util.Map
+        getMutableAnnotations() {
       bitField0_ |= 0x00000040;
       return internalGetMutableAnnotations().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3100,20 +2830,17 @@ public java.util.Map getMutableAnnotations()
      *
      * map<string, string> annotations = 7;
      */
-    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableAnnotations().getMutableMap().put(key, value);
+    public Builder putAnnotations(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableAnnotations().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000040;
       return this;
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3122,41 +2849,32 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> annotations = 7;
      */
-    public Builder putAllAnnotations(java.util.Map values) {
-      internalGetMutableAnnotations().getMutableMap().putAll(values);
+    public Builder putAllAnnotations(
+        java.util.Map values) {
+      internalGetMutableAnnotations().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000040;
       return this;
     }
 
     private int state_ = 0;
     /**
-     *
-     *
      * 
      * Output only. The Recognizer lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The Recognizer lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3167,35 +2885,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The Recognizer lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.speech.v2.Recognizer.State getState() { - com.google.cloud.speech.v2.Recognizer.State result = - com.google.cloud.speech.v2.Recognizer.State.forNumber(state_); + com.google.cloud.speech.v2.Recognizer.State result = com.google.cloud.speech.v2.Recognizer.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.Recognizer.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The Recognizer lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3209,16 +2916,11 @@ public Builder setState(com.google.cloud.speech.v2.Recognizer.State value) { return this; } /** - * - * *
      * Output only. The Recognizer lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -3230,58 +2932,39 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3297,17 +2980,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -3318,21 +2998,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3345,15 +3021,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -3366,15 +3038,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000100; @@ -3382,48 +3050,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3431,58 +3087,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3498,17 +3135,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3519,21 +3153,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3546,15 +3176,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000200); @@ -3567,15 +3193,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000200; @@ -3583,48 +3205,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3632,58 +3242,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3699,17 +3290,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -3720,21 +3308,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -3747,15 +3331,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000400); @@ -3768,15 +3348,11 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000400; @@ -3784,48 +3360,36 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -3833,58 +3397,39 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -3900,17 +3445,14 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -3921,21 +3463,17 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && expireTime_ != null - && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) && + expireTime_ != null && + expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -3948,15 +3486,11 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000800); @@ -3969,15 +3503,11 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000800; @@ -3985,48 +3515,36 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), + getParentForChildren(), + isClean()); expireTime_ = null; } return expireTimeBuilder_; @@ -4034,8 +3552,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private java.lang.Object etag_ = ""; /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4043,13 +3559,13 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -4058,8 +3574,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4067,14 +3581,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -4082,8 +3597,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4091,22 +3604,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4114,7 +3623,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -4124,8 +3632,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4133,14 +3639,12 @@ public Builder clearEtag() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00001000; @@ -4148,17 +3652,14 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } - private boolean reconciling_; + private boolean reconciling_ ; /** - * - * *
      * Output only. Whether or not this Recognizer is in the process of being
      * updated.
      * 
* * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -4166,35 +3667,29 @@ public boolean getReconciling() { return reconciling_; } /** - * - * *
      * Output only. Whether or not this Recognizer is in the process of being
      * updated.
      * 
* * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** - * - * *
      * Output only. Whether or not this Recognizer is in the process of being
      * updated.
      * 
* * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -4206,8 +3701,6 @@ public Builder clearReconciling() { private java.lang.Object kmsKeyName_ = ""; /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4215,16 +3708,14 @@ public Builder clearReconciling() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; 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(); kmsKeyName_ = s; return s; @@ -4233,8 +3724,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4242,17 +3731,16 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -4260,8 +3748,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4269,25 +3755,19 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyName_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4295,10 +3775,7 @@ public Builder setKmsKeyName(java.lang.String value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -4308,8 +3785,6 @@ public Builder clearKmsKeyName() { return this; } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4317,17 +3792,13 @@ public Builder clearKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00004000; @@ -4337,8 +3808,6 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyVersionName_ = ""; /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4346,16 +3815,14 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyVersionName. */ public java.lang.String getKmsKeyVersionName() { java.lang.Object ref = kmsKeyVersionName_; 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(); kmsKeyVersionName_ = s; return s; @@ -4364,8 +3831,6 @@ public java.lang.String getKmsKeyVersionName() { } } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4373,17 +3838,16 @@ public java.lang.String getKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyVersionName. */ - public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -4391,8 +3855,6 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { } } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4400,25 +3862,19 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyVersionName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyVersionName_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4426,10 +3882,7 @@ public Builder setKmsKeyVersionName(java.lang.String value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { @@ -4439,8 +3892,6 @@ public Builder clearKmsKeyVersionName() { return this; } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4448,26 +3899,22 @@ public Builder clearKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyVersionNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyVersionName_ = value; bitField0_ |= 0x00008000; 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); } @@ -4477,12 +3924,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.Recognizer) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.Recognizer) private static final com.google.cloud.speech.v2.Recognizer DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.Recognizer(); } @@ -4491,27 +3938,27 @@ public static com.google.cloud.speech.v2.Recognizer getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Recognizer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Recognizer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4526,4 +3973,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.Recognizer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java similarity index 81% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java index 37ab04a4a79e..4e9732a7e29a 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java @@ -1,110 +1,77 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface RecognizerOrBuilder - extends +public interface RecognizerOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.Recognizer) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the Recognizer.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the Recognizer.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. System-assigned unique identifier for the Recognizer.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. System-assigned unique identifier for the Recognizer.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * User-settable, human-readable name for the Recognizer. Must be 63
    * characters or less.
    * 
* * string display_name = 3; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * User-settable, human-readable name for the Recognizer. Must be 63
    * characters or less.
    * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Required. Which model to use for recognition requests. Select the model
    * best suited to your domain to get best results.
@@ -122,13 +89,10 @@ public interface RecognizerOrBuilder
    * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Required. Which model to use for recognition requests. Select the model
    * best suited to your domain to get best results.
@@ -146,14 +110,12 @@ public interface RecognizerOrBuilder
    * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -170,13 +132,11 @@ public interface RecognizerOrBuilder
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the languageCodes. */ - java.util.List getLanguageCodesList(); + java.util.List + getLanguageCodesList(); /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -193,13 +153,10 @@ public interface RecognizerOrBuilder
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of languageCodes. */ int getLanguageCodesCount(); /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -216,14 +173,11 @@ public interface RecognizerOrBuilder
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ java.lang.String getLanguageCodes(int index); /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -240,15 +194,13 @@ public interface RecognizerOrBuilder
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - com.google.protobuf.ByteString getLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getLanguageCodesBytes(int index); /** - * - * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -257,13 +209,10 @@ public interface RecognizerOrBuilder
    * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; - * * @return Whether the defaultRecognitionConfig field is set. */ boolean hasDefaultRecognitionConfig(); /** - * - * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -272,13 +221,10 @@ public interface RecognizerOrBuilder
    * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; - * * @return The defaultRecognitionConfig. */ com.google.cloud.speech.v2.RecognitionConfig getDefaultRecognitionConfig(); /** - * - * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -291,8 +237,6 @@ public interface RecognizerOrBuilder
   com.google.cloud.speech.v2.RecognitionConfigOrBuilder getDefaultRecognitionConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -303,8 +247,6 @@ public interface RecognizerOrBuilder
    */
   int getAnnotationsCount();
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -313,13 +255,15 @@ public interface RecognizerOrBuilder
    *
    * map<string, string> annotations = 7;
    */
-  boolean containsAnnotations(java.lang.String key);
-  /** Use {@link #getAnnotationsMap()} instead. */
+  boolean containsAnnotations(
+      java.lang.String key);
+  /**
+   * Use {@link #getAnnotationsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getAnnotations();
+  java.util.Map
+  getAnnotations();
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -328,10 +272,9 @@ public interface RecognizerOrBuilder
    *
    * map<string, string> annotations = 7;
    */
-  java.util.Map getAnnotationsMap();
+  java.util.Map
+  getAnnotationsMap();
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -341,13 +284,11 @@ public interface RecognizerOrBuilder
    * map<string, string> annotations = 7;
    */
   /* nullable */
-  java.lang.String getAnnotationsOrDefault(
+java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -356,192 +297,137 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> annotations = 7;
    */
-  java.lang.String getAnnotationsOrThrow(java.lang.String key);
+  java.lang.String getAnnotationsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. The Recognizer lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The Recognizer lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.speech.v2.Recognizer.State getState(); /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -549,13 +435,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -563,28 +446,23 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Output only. Whether or not this Recognizer is in the process of being
    * updated.
    * 
* * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ boolean getReconciling(); /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -592,16 +470,11 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -609,17 +482,13 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -627,16 +496,11 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyVersionName. */ java.lang.String getKmsKeyVersionName(); /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -644,11 +508,9 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyVersionName. */ - com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); + com.google.protobuf.ByteString + getKmsKeyVersionNameBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java index 14b27c2a4f19..b318b60c5519 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java @@ -1,75 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Configuration to enable speaker diarization.
  * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeakerDiarizationConfig.class, - com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v2.SpeakerDiarizationConfig.class, com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder.class); } public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_ = 0; /** - * - * *
    * Required. Minimum number of speakers in the conversation. This range gives
    * you more flexibility by allowing the system to automatically determine the
@@ -79,7 +59,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The minSpeakerCount. */ @java.lang.Override @@ -90,8 +69,6 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_ = 0; /** - * - * *
    * Required. Maximum number of speakers in the conversation. Valid values are:
    * 1-6. Must be >= `min_speaker_count`. This range gives you more flexibility
@@ -100,7 +77,6 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The maxSpeakerCount. */ @java.lang.Override @@ -109,7 +85,6 @@ public int getMaxSpeakerCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,7 +96,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 (minSpeakerCount_ != 0) { output.writeInt32(2, minSpeakerCount_); } @@ -138,10 +114,12 @@ public int getSerializedSize() { size = 0; 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -151,16 +129,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.v2.SpeakerDiarizationConfig)) { return super.equals(obj); } - com.google.cloud.speech.v2.SpeakerDiarizationConfig other = - (com.google.cloud.speech.v2.SpeakerDiarizationConfig) obj; + com.google.cloud.speech.v2.SpeakerDiarizationConfig other = (com.google.cloud.speech.v2.SpeakerDiarizationConfig) obj; - if (getMinSpeakerCount() != other.getMinSpeakerCount()) return false; - if (getMaxSpeakerCount() != other.getMaxSpeakerCount()) return false; + if (getMinSpeakerCount() + != other.getMinSpeakerCount()) return false; + if (getMaxSpeakerCount() + != other.getMaxSpeakerCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,135 +161,129 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.SpeakerDiarizationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.SpeakerDiarizationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.SpeakerDiarizationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.SpeakerDiarizationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.SpeakerDiarizationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Configuration to enable speaker diarization.
    * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.SpeakerDiarizationConfig) com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeakerDiarizationConfig.class, - com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v2.SpeakerDiarizationConfig.class, com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder.class); } // Construct using com.google.cloud.speech.v2.SpeakerDiarizationConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,9 +294,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; } @java.lang.Override @@ -342,11 +315,8 @@ public com.google.cloud.speech.v2.SpeakerDiarizationConfig build() { @java.lang.Override public com.google.cloud.speech.v2.SpeakerDiarizationConfig buildPartial() { - com.google.cloud.speech.v2.SpeakerDiarizationConfig result = - new com.google.cloud.speech.v2.SpeakerDiarizationConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v2.SpeakerDiarizationConfig result = new com.google.cloud.speech.v2.SpeakerDiarizationConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -365,39 +335,38 @@ private void buildPartial0(com.google.cloud.speech.v2.SpeakerDiarizationConfig r 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.v2.SpeakerDiarizationConfig) { - return mergeFrom((com.google.cloud.speech.v2.SpeakerDiarizationConfig) other); + return mergeFrom((com.google.cloud.speech.v2.SpeakerDiarizationConfig)other); } else { super.mergeFrom(other); return this; @@ -405,8 +374,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.SpeakerDiarizationConfig other) { - if (other == com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()) return this; if (other.getMinSpeakerCount() != 0) { setMinSpeakerCount(other.getMinSpeakerCount()); } @@ -439,25 +407,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 16: - { - minSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 16 - case 24: - { - maxSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 16: { + minSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 16 + case 24: { + maxSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -467,13 +432,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int minSpeakerCount_; + private int minSpeakerCount_ ; /** - * - * *
      * Required. Minimum number of speakers in the conversation. This range gives
      * you more flexibility by allowing the system to automatically determine the
@@ -483,7 +445,6 @@ public Builder mergeFrom(
      * 
* * int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The minSpeakerCount. */ @java.lang.Override @@ -491,8 +452,6 @@ public int getMinSpeakerCount() { return minSpeakerCount_; } /** - * - * *
      * Required. Minimum number of speakers in the conversation. This range gives
      * you more flexibility by allowing the system to automatically determine the
@@ -502,20 +461,17 @@ public int getMinSpeakerCount() {
      * 
* * int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The minSpeakerCount to set. * @return This builder for chaining. */ public Builder setMinSpeakerCount(int value) { - + minSpeakerCount_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Minimum number of speakers in the conversation. This range gives
      * you more flexibility by allowing the system to automatically determine the
@@ -525,7 +481,6 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { @@ -535,10 +490,8 @@ public Builder clearMinSpeakerCount() { return this; } - private int maxSpeakerCount_; + private int maxSpeakerCount_ ; /** - * - * *
      * Required. Maximum number of speakers in the conversation. Valid values are:
      * 1-6. Must be >= `min_speaker_count`. This range gives you more flexibility
@@ -547,7 +500,6 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The maxSpeakerCount. */ @java.lang.Override @@ -555,8 +507,6 @@ public int getMaxSpeakerCount() { return maxSpeakerCount_; } /** - * - * *
      * Required. Maximum number of speakers in the conversation. Valid values are:
      * 1-6. Must be >= `min_speaker_count`. This range gives you more flexibility
@@ -565,20 +515,17 @@ public int getMaxSpeakerCount() {
      * 
* * int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The maxSpeakerCount to set. * @return This builder for chaining. */ public Builder setMaxSpeakerCount(int value) { - + maxSpeakerCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. Maximum number of speakers in the conversation. Valid values are:
      * 1-6. Must be >= `min_speaker_count`. This range gives you more flexibility
@@ -587,7 +534,6 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { @@ -596,9 +542,9 @@ public Builder clearMaxSpeakerCount() { 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); } @@ -608,12 +554,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.SpeakerDiarizationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.SpeakerDiarizationConfig) private static final com.google.cloud.speech.v2.SpeakerDiarizationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.SpeakerDiarizationConfig(); } @@ -622,27 +568,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,4 +603,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.SpeakerDiarizationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java similarity index 64% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java index 8b55c737a86b..36dd1f392509 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface SpeakerDiarizationConfigOrBuilder - extends +public interface SpeakerDiarizationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.SpeakerDiarizationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Minimum number of speakers in the conversation. This range gives
    * you more flexibility by allowing the system to automatically determine the
@@ -35,14 +17,11 @@ public interface SpeakerDiarizationConfigOrBuilder
    * 
* * int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The minSpeakerCount. */ int getMinSpeakerCount(); /** - * - * *
    * Required. Maximum number of speakers in the conversation. Valid values are:
    * 1-6. Must be >= `min_speaker_count`. This range gives you more flexibility
@@ -51,7 +30,6 @@ public interface SpeakerDiarizationConfigOrBuilder
    * 
* * int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The maxSpeakerCount. */ int getMaxSpeakerCount(); diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java index 17506874e78a..82f8bc88e348 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results. Phrase sets can be specified as an inline resource, or a
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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();
     customClasses_ = java.util.Collections.emptyList();
@@ -46,102 +28,84 @@ 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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.SpeechAdaptation.class,
-            com.google.cloud.speech.v2.SpeechAdaptation.Builder.class);
+            com.google.cloud.speech.v2.SpeechAdaptation.class, com.google.cloud.speech.v2.SpeechAdaptation.Builder.class);
   }
 
-  public interface AdaptationPhraseSetOrBuilder
-      extends
+  public interface AdaptationPhraseSetOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** - * - * *
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @return The phraseSet. */ java.lang.String getPhraseSet(); /** - * - * *
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for phraseSet. */ - com.google.protobuf.ByteString getPhraseSetBytes(); + com.google.protobuf.ByteString + getPhraseSetBytes(); /** - * - * *
      * An inline defined phrase set.
      * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; - * * @return Whether the inlinePhraseSet field is set. */ boolean hasInlinePhraseSet(); /** - * - * *
      * An inline defined phrase set.
      * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; - * * @return The inlinePhraseSet. */ com.google.cloud.speech.v2.PhraseSet getInlinePhraseSet(); /** - * - * *
      * An inline defined phrase set.
      * 
@@ -153,8 +117,6 @@ public interface AdaptationPhraseSetOrBuilder public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.ValueCase getValueCase(); } /** - * - * *
    * A biasing phrase set, which can be either a string referencing the name of
    * an existing phrase set resource, or an inline definition of a phrase set.
@@ -162,56 +124,52 @@ public interface AdaptationPhraseSetOrBuilder
    *
    * Protobuf type {@code google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet}
    */
-  public static final class AdaptationPhraseSet extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class AdaptationPhraseSet extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet)
       AdaptationPhraseSetOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use AdaptationPhraseSet.newBuilder() to construct.
     private AdaptationPhraseSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private AdaptationPhraseSet() {}
+    private AdaptationPhraseSet() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new AdaptationPhraseSet();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.class,
-              com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder.class);
+              com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.class, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder.class);
     }
 
     private int valueCase_ = 0;
     private java.lang.Object value_;
-
     public enum ValueCase
-        implements
-            com.google.protobuf.Internal.EnumLite,
+        implements com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       PHRASE_SET(1),
       INLINE_PHRASE_SET(2),
       VALUE_NOT_SET(0);
       private final int value;
-
       private ValueCase(int value) {
         this.value = value;
       }
@@ -227,52 +185,43 @@ public static ValueCase valueOf(int value) {
 
       public static ValueCase forNumber(int value) {
         switch (value) {
-          case 1:
-            return PHRASE_SET;
-          case 2:
-            return INLINE_PHRASE_SET;
-          case 0:
-            return VALUE_NOT_SET;
-          default:
-            return null;
+          case 1: return PHRASE_SET;
+          case 2: return INLINE_PHRASE_SET;
+          case 0: return VALUE_NOT_SET;
+          default: return null;
         }
       }
-
       public int getNumber() {
         return this.value;
       }
     };
 
-    public ValueCase getValueCase() {
-      return ValueCase.forNumber(valueCase_);
+    public ValueCase
+    getValueCase() {
+      return ValueCase.forNumber(
+          valueCase_);
     }
 
     public static final int PHRASE_SET_FIELD_NUMBER = 1;
     /**
-     *
-     *
      * 
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return valueCase_ == 1; } /** - * - * *
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @return The phraseSet. */ public java.lang.String getPhraseSet() { @@ -283,7 +232,8 @@ public java.lang.String getPhraseSet() { 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 (valueCase_ == 1) { value_ = s; @@ -292,25 +242,24 @@ public java.lang.String getPhraseSet() { } } /** - * - * *
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for phraseSet. */ - public com.google.protobuf.ByteString getPhraseSetBytes() { + public com.google.protobuf.ByteString + getPhraseSetBytes() { java.lang.Object ref = ""; if (valueCase_ == 1) { 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); if (valueCase_ == 1) { value_ = b; } @@ -322,14 +271,11 @@ public com.google.protobuf.ByteString getPhraseSetBytes() { public static final int INLINE_PHRASE_SET_FIELD_NUMBER = 2; /** - * - * *
      * An inline defined phrase set.
      * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; - * * @return Whether the inlinePhraseSet field is set. */ @java.lang.Override @@ -337,26 +283,21 @@ public boolean hasInlinePhraseSet() { return valueCase_ == 2; } /** - * - * *
      * An inline defined phrase set.
      * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; - * * @return The inlinePhraseSet. */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSet getInlinePhraseSet() { if (valueCase_ == 2) { - return (com.google.cloud.speech.v2.PhraseSet) value_; + return (com.google.cloud.speech.v2.PhraseSet) value_; } return com.google.cloud.speech.v2.PhraseSet.getDefaultInstance(); } /** - * - * *
      * An inline defined phrase set.
      * 
@@ -366,13 +307,12 @@ public com.google.cloud.speech.v2.PhraseSet getInlinePhraseSet() { @java.lang.Override public com.google.cloud.speech.v2.PhraseSetOrBuilder getInlinePhraseSetOrBuilder() { if (valueCase_ == 2) { - return (com.google.cloud.speech.v2.PhraseSet) value_; + return (com.google.cloud.speech.v2.PhraseSet) value_; } return com.google.cloud.speech.v2.PhraseSet.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -384,7 +324,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 (valueCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -404,9 +345,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (valueCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.speech.v2.PhraseSet) value_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.speech.v2.PhraseSet) value_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -416,21 +356,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.v2.SpeechAdaptation.AdaptationPhraseSet)) { return super.equals(obj); } - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet other = - (com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet) obj; + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet other = (com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet) obj; if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 1: - if (!getPhraseSet().equals(other.getPhraseSet())) return false; + if (!getPhraseSet() + .equals(other.getPhraseSet())) return false; break; case 2: - if (!getInlinePhraseSet().equals(other.getInlinePhraseSet())) return false; + if (!getInlinePhraseSet() + .equals(other.getInlinePhraseSet())) return false; break; case 0: default: @@ -464,95 +405,87 @@ public int hashCode() { } public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet - 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.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet prototype) { + public static Builder newBuilder(com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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 @@ -562,8 +495,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A biasing phrase set, which can be either a string referencing the name of
      * an existing phrase set resource, or an inline definition of a phrase set.
@@ -571,34 +502,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet}
      */
-    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.v2.SpeechAdaptation.AdaptationPhraseSet)
         com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.speech.v2.CloudSpeechProto
-            .internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.speech.v2.CloudSpeechProto
-            .internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable
+        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.class,
-                com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder.class);
+                com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.class, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.newBuilder()
-      private Builder() {}
+      // Construct using com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -612,14 +542,13 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.speech.v2.CloudSpeechProto
-            .internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet
-          getDefaultInstanceForType() {
+      public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getDefaultInstanceForType() {
         return com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance();
       }
 
@@ -634,26 +563,22 @@ public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet build() {
 
       @java.lang.Override
       public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet buildPartial() {
-        com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result =
-            new com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result = new com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         buildPartialOneofs(result);
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result) {
+      private void buildPartial0(com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result) {
         int from_bitField0_ = bitField0_;
       }
 
-      private void buildPartialOneofs(
-          com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result) {
+      private void buildPartialOneofs(com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result) {
         result.valueCase_ = valueCase_;
         result.value_ = this.value_;
-        if (valueCase_ == 2 && inlinePhraseSetBuilder_ != null) {
+        if (valueCase_ == 2 &&
+            inlinePhraseSetBuilder_ != null) {
           result.value_ = inlinePhraseSetBuilder_.build();
         }
       }
@@ -662,69 +587,60 @@ private void buildPartialOneofs(
       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.v2.SpeechAdaptation.AdaptationPhraseSet) {
-          return mergeFrom((com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet) other);
+          return mergeFrom((com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet other) {
-        if (other
-            == com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance())
-          return this;
+      public Builder mergeFrom(com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet other) {
+        if (other == com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance()) return this;
         switch (other.getValueCase()) {
-          case PHRASE_SET:
-            {
-              valueCase_ = 1;
-              value_ = other.value_;
-              onChanged();
-              break;
-            }
-          case INLINE_PHRASE_SET:
-            {
-              mergeInlinePhraseSet(other.getInlinePhraseSet());
-              break;
-            }
-          case VALUE_NOT_SET:
-            {
-              break;
-            }
+          case PHRASE_SET: {
+            valueCase_ = 1;
+            value_ = other.value_;
+            onChanged();
+            break;
+          }
+          case INLINE_PHRASE_SET: {
+            mergeInlinePhraseSet(other.getInlinePhraseSet());
+            break;
+          }
+          case VALUE_NOT_SET: {
+            break;
+          }
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -752,27 +668,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  java.lang.String s = input.readStringRequireUtf8();
-                  valueCase_ = 1;
-                  value_ = s;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  input.readMessage(
-                      getInlinePhraseSetFieldBuilder().getBuilder(), extensionRegistry);
-                  valueCase_ = 2;
-                  break;
-                } // case 18
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                java.lang.String s = input.readStringRequireUtf8();
+                valueCase_ = 1;
+                value_ = s;
+                break;
+              } // case 10
+              case 18: {
+                input.readMessage(
+                    getInlinePhraseSetFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                valueCase_ = 2;
+                break;
+              } // case 18
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -782,12 +696,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int valueCase_ = 0;
       private java.lang.Object value_;
-
-      public ValueCase getValueCase() {
-        return ValueCase.forNumber(valueCase_);
+      public ValueCase
+          getValueCase() {
+        return ValueCase.forNumber(
+            valueCase_);
       }
 
       public Builder clearValue() {
@@ -800,15 +714,12 @@ public Builder clearValue() {
       private int bitField0_;
 
       /**
-       *
-       *
        * 
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -816,15 +727,12 @@ public boolean hasPhraseSet() { return valueCase_ == 1; } /** - * - * *
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @return The phraseSet. */ @java.lang.Override @@ -834,7 +742,8 @@ public java.lang.String getPhraseSet() { 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(); if (valueCase_ == 1) { value_ = s; @@ -845,26 +754,25 @@ public java.lang.String getPhraseSet() { } } /** - * - * *
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for phraseSet. */ @java.lang.Override - public com.google.protobuf.ByteString getPhraseSetBytes() { + public com.google.protobuf.ByteString + getPhraseSetBytes() { java.lang.Object ref = ""; if (valueCase_ == 1) { 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); if (valueCase_ == 1) { value_ = b; } @@ -874,37 +782,30 @@ public com.google.protobuf.ByteString getPhraseSetBytes() { } } /** - * - * *
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @param value The phraseSet to set. * @return This builder for chaining. */ - public Builder setPhraseSet(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhraseSet( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } valueCase_ = 1; value_ = value; onChanged(); return this; } /** - * - * *
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearPhraseSet() { @@ -916,22 +817,18 @@ public Builder clearPhraseSet() { return this; } /** - * - * *
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for phraseSet to set. * @return This builder for chaining. */ - public Builder setPhraseSetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhraseSetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); valueCase_ = 1; value_ = value; @@ -940,19 +837,13 @@ public Builder setPhraseSetBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, - com.google.cloud.speech.v2.PhraseSet.Builder, - com.google.cloud.speech.v2.PhraseSetOrBuilder> - inlinePhraseSetBuilder_; + com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> inlinePhraseSetBuilder_; /** - * - * *
        * An inline defined phrase set.
        * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; - * * @return Whether the inlinePhraseSet field is set. */ @java.lang.Override @@ -960,14 +851,11 @@ public boolean hasInlinePhraseSet() { return valueCase_ == 2; } /** - * - * *
        * An inline defined phrase set.
        * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; - * * @return The inlinePhraseSet. */ @java.lang.Override @@ -985,8 +873,6 @@ public com.google.cloud.speech.v2.PhraseSet getInlinePhraseSet() { } } /** - * - * *
        * An inline defined phrase set.
        * 
@@ -1007,8 +893,6 @@ public Builder setInlinePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** - * - * *
        * An inline defined phrase set.
        * 
@@ -1027,8 +911,6 @@ public Builder setInlinePhraseSet( return this; } /** - * - * *
        * An inline defined phrase set.
        * 
@@ -1037,13 +919,10 @@ public Builder setInlinePhraseSet( */ public Builder mergeInlinePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { if (inlinePhraseSetBuilder_ == null) { - if (valueCase_ == 2 - && value_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { - value_ = - com.google.cloud.speech.v2.PhraseSet.newBuilder( - (com.google.cloud.speech.v2.PhraseSet) value_) - .mergeFrom(value) - .buildPartial(); + if (valueCase_ == 2 && + value_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { + value_ = com.google.cloud.speech.v2.PhraseSet.newBuilder((com.google.cloud.speech.v2.PhraseSet) value_) + .mergeFrom(value).buildPartial(); } else { value_ = value; } @@ -1059,8 +938,6 @@ public Builder mergeInlinePhraseSet(com.google.cloud.speech.v2.PhraseSet value) return this; } /** - * - * *
        * An inline defined phrase set.
        * 
@@ -1084,8 +961,6 @@ public Builder clearInlinePhraseSet() { return this; } /** - * - * *
        * An inline defined phrase set.
        * 
@@ -1096,8 +971,6 @@ public com.google.cloud.speech.v2.PhraseSet.Builder getInlinePhraseSetBuilder() return getInlinePhraseSetFieldBuilder().getBuilder(); } /** - * - * *
        * An inline defined phrase set.
        * 
@@ -1116,8 +989,6 @@ public com.google.cloud.speech.v2.PhraseSetOrBuilder getInlinePhraseSetOrBuilder } } /** - * - * *
        * An inline defined phrase set.
        * 
@@ -1125,27 +996,23 @@ public com.google.cloud.speech.v2.PhraseSetOrBuilder getInlinePhraseSetOrBuilder * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, - com.google.cloud.speech.v2.PhraseSet.Builder, - com.google.cloud.speech.v2.PhraseSetOrBuilder> + com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> getInlinePhraseSetFieldBuilder() { if (inlinePhraseSetBuilder_ == null) { if (!(valueCase_ == 2)) { value_ = com.google.cloud.speech.v2.PhraseSet.getDefaultInstance(); } - inlinePhraseSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, - com.google.cloud.speech.v2.PhraseSet.Builder, - com.google.cloud.speech.v2.PhraseSetOrBuilder>( - (com.google.cloud.speech.v2.PhraseSet) value_, getParentForChildren(), isClean()); + inlinePhraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder>( + (com.google.cloud.speech.v2.PhraseSet) value_, + getParentForChildren(), + isClean()); value_ = null; } valueCase_ = 2; onChanged(); return inlinePhraseSetBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1158,44 +1025,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet) - private static final com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet - DEFAULT_INSTANCE; - + private static final com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet(); } - public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet - getDefaultInstance() { + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdaptationPhraseSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdaptationPhraseSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1207,99 +1071,77 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet - getDefaultInstanceForType() { + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int PHRASE_SETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - phraseSets_; + private java.util.List phraseSets_; /** - * - * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ @java.lang.Override - public java.util.List - getPhraseSetsList() { + public java.util.List getPhraseSetsList() { return phraseSets_; } /** - * - * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder> + public java.util.List getPhraseSetsOrBuilderList() { return phraseSets_; } /** - * - * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ @java.lang.Override public int getPhraseSetsCount() { return phraseSets_.size(); } /** - * - * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ @java.lang.Override public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** - * - * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ @java.lang.Override - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder - getPhraseSetsOrBuilder(int index) { + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhraseSetsOrBuilder( + int index) { return phraseSets_.get(index); } public static final int CUSTOM_CLASSES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List customClasses_; /** - * - * *
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -1312,8 +1154,6 @@ public java.util.List getCustomClassesLi
     return customClasses_;
   }
   /**
-   *
-   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -1322,13 +1162,11 @@ public java.util.List getCustomClassesLi
    * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getCustomClassesOrBuilderList() {
     return customClasses_;
   }
   /**
-   *
-   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -1341,8 +1179,6 @@ public int getCustomClassesCount() {
     return customClasses_.size();
   }
   /**
-   *
-   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -1355,8 +1191,6 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) {
     return customClasses_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -1365,12 +1199,12 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) {
    * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index) {
+  public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(
+      int index) {
     return customClasses_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1382,7 +1216,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));
     }
@@ -1399,10 +1234,12 @@ 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));
     }
     for (int i = 0; i < customClasses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, customClasses_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, customClasses_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1412,16 +1249,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.v2.SpeechAdaptation)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.SpeechAdaptation other =
-        (com.google.cloud.speech.v2.SpeechAdaptation) obj;
+    com.google.cloud.speech.v2.SpeechAdaptation other = (com.google.cloud.speech.v2.SpeechAdaptation) obj;
 
-    if (!getPhraseSetsList().equals(other.getPhraseSetsList())) return false;
-    if (!getCustomClassesList().equals(other.getCustomClassesList())) return false;
+    if (!getPhraseSetsList()
+        .equals(other.getPhraseSetsList())) return false;
+    if (!getCustomClassesList()
+        .equals(other.getCustomClassesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -1446,104 +1284,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.speech.v2.SpeechAdaptation parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.speech.v2.SpeechAdaptation parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.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.v2.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.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.v2.SpeechAdaptation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.SpeechAdaptation parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v2.SpeechAdaptation parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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;
   }
   /**
-   *
-   *
    * 
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results. Phrase sets can be specified as an inline resource, or a
@@ -1552,32 +1383,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.SpeechAdaptation)
       com.google.cloud.speech.v2.SpeechAdaptationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.SpeechAdaptation.class,
-              com.google.cloud.speech.v2.SpeechAdaptation.Builder.class);
+              com.google.cloud.speech.v2.SpeechAdaptation.class, com.google.cloud.speech.v2.SpeechAdaptation.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.SpeechAdaptation.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1600,9 +1432,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
     }
 
     @java.lang.Override
@@ -1621,12 +1453,9 @@ public com.google.cloud.speech.v2.SpeechAdaptation build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.SpeechAdaptation buildPartial() {
-      com.google.cloud.speech.v2.SpeechAdaptation result =
-          new com.google.cloud.speech.v2.SpeechAdaptation(this);
+      com.google.cloud.speech.v2.SpeechAdaptation result = new com.google.cloud.speech.v2.SpeechAdaptation(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1660,39 +1489,38 @@ private void buildPartial0(com.google.cloud.speech.v2.SpeechAdaptation result) {
     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.v2.SpeechAdaptation) {
-        return mergeFrom((com.google.cloud.speech.v2.SpeechAdaptation) other);
+        return mergeFrom((com.google.cloud.speech.v2.SpeechAdaptation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1719,10 +1547,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_);
           }
@@ -1746,10 +1573,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.SpeechAdaptation other) {
             customClassesBuilder_ = null;
             customClasses_ = other.customClasses_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            customClassesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getCustomClassesFieldBuilder()
-                    : null;
+            customClassesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getCustomClassesFieldBuilder() : null;
           } else {
             customClassesBuilder_.addAllMessages(other.customClasses_);
           }
@@ -1781,40 +1607,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.parser(),
-                        extensionRegistry);
-                if (phraseSetsBuilder_ == null) {
-                  ensurePhraseSetsIsMutable();
-                  phraseSets_.add(m);
-                } else {
-                  phraseSetsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.cloud.speech.v2.CustomClass m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.CustomClass.parser(), extensionRegistry);
-                if (customClassesBuilder_ == null) {
-                  ensureCustomClassesIsMutable();
-                  customClasses_.add(m);
-                } else {
-                  customClassesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.parser(),
+                      extensionRegistry);
+              if (phraseSetsBuilder_ == null) {
+                ensurePhraseSetsIsMutable();
+                phraseSets_.add(m);
+              } else {
+                phraseSetsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              com.google.cloud.speech.v2.CustomClass m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.CustomClass.parser(),
+                      extensionRegistry);
+              if (customClassesBuilder_ == null) {
+                ensureCustomClassesIsMutable();
+                customClasses_.add(m);
+              } else {
+                customClassesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1824,39 +1648,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List
-        phraseSets_ = java.util.Collections.emptyList();
-
+    private java.util.List phraseSets_ =
+      java.util.Collections.emptyList();
     private void ensurePhraseSetsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        phraseSets_ =
-            new java.util.ArrayList<
-                com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet>(phraseSets_);
+        phraseSets_ = new java.util.ArrayList(phraseSets_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet,
-            com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder,
-            com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder>
-        phraseSetsBuilder_;
+        com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder> phraseSetsBuilder_;
 
     /**
-     *
-     *
      * 
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ - public java.util.List - getPhraseSetsList() { + public java.util.List getPhraseSetsList() { if (phraseSetsBuilder_ == null) { return java.util.Collections.unmodifiableList(phraseSets_); } else { @@ -1864,14 +1677,11 @@ private void ensurePhraseSetsIsMutable() { } } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ public int getPhraseSetsCount() { if (phraseSetsBuilder_ == null) { @@ -1881,17 +1691,13 @@ public int getPhraseSetsCount() { } } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getPhraseSets( - int index) { + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getPhraseSets(int index) { if (phraseSetsBuilder_ == null) { return phraseSets_.get(index); } else { @@ -1899,14 +1705,11 @@ public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getPhrase } } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ public Builder setPhraseSets( int index, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet value) { @@ -1923,18 +1726,14 @@ public Builder setPhraseSets( return this; } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ public Builder setPhraseSets( - int index, - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue) { + int index, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue) { if (phraseSetsBuilder_ == null) { ensurePhraseSetsIsMutable(); phraseSets_.set(index, builderForValue.build()); @@ -1945,17 +1744,13 @@ public Builder setPhraseSets( return this; } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ - public Builder addPhraseSets( - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet value) { + public Builder addPhraseSets(com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet value) { if (phraseSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1969,14 +1764,11 @@ public Builder addPhraseSets( return this; } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ public Builder addPhraseSets( int index, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet value) { @@ -1993,14 +1785,11 @@ public Builder addPhraseSets( return this; } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ public Builder addPhraseSets( com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue) { @@ -2014,18 +1803,14 @@ public Builder addPhraseSets( return this; } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ public Builder addPhraseSets( - int index, - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue) { + int index, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue) { if (phraseSetsBuilder_ == null) { ensurePhraseSetsIsMutable(); phraseSets_.add(index, builderForValue.build()); @@ -2036,22 +1821,18 @@ public Builder addPhraseSets( return this; } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ public Builder addAllPhraseSets( - java.lang.Iterable< - ? extends com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet> - values) { + 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); @@ -2059,14 +1840,11 @@ public Builder addAllPhraseSets( return this; } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ public Builder clearPhraseSets() { if (phraseSetsBuilder_ == null) { @@ -2079,14 +1857,11 @@ public Builder clearPhraseSets() { return this; } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ public Builder removePhraseSets(int index) { if (phraseSetsBuilder_ == null) { @@ -2099,50 +1874,39 @@ public Builder removePhraseSets(int index) { return this; } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder - getPhraseSetsBuilder(int index) { + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder getPhraseSetsBuilder( + int index) { return getPhraseSetsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder - getPhraseSetsOrBuilder(int index) { + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhraseSetsOrBuilder( + int index) { if (phraseSetsBuilder_ == null) { - return phraseSets_.get(index); - } else { + return phraseSets_.get(index); } else { return phraseSetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ - public java.util.List< - ? extends com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder> - getPhraseSetsOrBuilderList() { + public java.util.List + getPhraseSetsOrBuilderList() { if (phraseSetsBuilder_ != null) { return phraseSetsBuilder_.getMessageOrBuilderList(); } else { @@ -2150,90 +1914,67 @@ public Builder removePhraseSets(int index) { } } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder - addPhraseSetsBuilder() { - return getPhraseSetsFieldBuilder() - .addBuilder( - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance()); + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder addPhraseSetsBuilder() { + return getPhraseSetsFieldBuilder().addBuilder( + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance()); } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder - addPhraseSetsBuilder(int index) { - return getPhraseSetsFieldBuilder() - .addBuilder( - index, - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance()); + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder addPhraseSetsBuilder( + int index) { + return getPhraseSetsFieldBuilder().addBuilder( + index, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance()); } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet, - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder, - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder> + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder> getPhraseSetsFieldBuilder() { if (phraseSetsBuilder_ == null) { - phraseSetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet, - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder, - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder>( - phraseSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + phraseSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder>( + phraseSets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); phraseSets_ = null; } return phraseSetsBuilder_; } private java.util.List customClasses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCustomClassesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - customClasses_ = - new java.util.ArrayList(customClasses_); + customClasses_ = new java.util.ArrayList(customClasses_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, - com.google.cloud.speech.v2.CustomClass.Builder, - com.google.cloud.speech.v2.CustomClassOrBuilder> - customClassesBuilder_; + com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> customClassesBuilder_; /** - * - * *
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2249,8 +1990,6 @@ public java.util.List getCustomClassesLi
       }
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2266,8 +2005,6 @@ public int getCustomClassesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2283,8 +2020,6 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2292,7 +2027,8 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) {
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public Builder setCustomClasses(int index, com.google.cloud.speech.v2.CustomClass value) {
+    public Builder setCustomClasses(
+        int index, com.google.cloud.speech.v2.CustomClass value) {
       if (customClassesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2306,8 +2042,6 @@ public Builder setCustomClasses(int index, com.google.cloud.speech.v2.CustomClas
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2327,8 +2061,6 @@ public Builder setCustomClasses(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2350,8 +2082,6 @@ public Builder addCustomClasses(com.google.cloud.speech.v2.CustomClass value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2359,7 +2089,8 @@ public Builder addCustomClasses(com.google.cloud.speech.v2.CustomClass value) {
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public Builder addCustomClasses(int index, com.google.cloud.speech.v2.CustomClass value) {
+    public Builder addCustomClasses(
+        int index, com.google.cloud.speech.v2.CustomClass value) {
       if (customClassesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2373,8 +2104,6 @@ public Builder addCustomClasses(int index, com.google.cloud.speech.v2.CustomClas
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2394,8 +2123,6 @@ public Builder addCustomClasses(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2415,8 +2142,6 @@ public Builder addCustomClasses(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2428,7 +2153,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);
@@ -2436,8 +2162,6 @@ public Builder addAllCustomClasses(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2456,8 +2180,6 @@ public Builder clearCustomClasses() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2476,8 +2198,6 @@ public Builder removeCustomClasses(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2485,12 +2205,11 @@ public Builder removeCustomClasses(int index) {
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassesBuilder(int index) {
+    public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassesBuilder(
+        int index) {
       return getCustomClassesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2498,16 +2217,14 @@ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassesBuilder(in
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index) {
+    public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(
+        int index) {
       if (customClassesBuilder_ == null) {
-        return customClasses_.get(index);
-      } else {
+        return customClasses_.get(index);  } else {
         return customClassesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2515,8 +2232,8 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public java.util.List
-        getCustomClassesOrBuilderList() {
+    public java.util.List 
+         getCustomClassesOrBuilderList() {
       if (customClassesBuilder_ != null) {
         return customClassesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2524,8 +2241,6 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder
       }
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2534,12 +2249,10 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
     public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder() {
-      return getCustomClassesFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v2.CustomClass.getDefaultInstance());
+      return getCustomClassesFieldBuilder().addBuilder(
+          com.google.cloud.speech.v2.CustomClass.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2547,13 +2260,12 @@ public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder()
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(int index) {
-      return getCustomClassesFieldBuilder()
-          .addBuilder(index, com.google.cloud.speech.v2.CustomClass.getDefaultInstance());
+    public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(
+        int index) {
+      return getCustomClassesFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v2.CustomClass.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2561,22 +2273,16 @@ public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(in
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public java.util.List
-        getCustomClassesBuilderList() {
+    public java.util.List 
+         getCustomClassesBuilderList() {
       return getCustomClassesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.CustomClass,
-            com.google.cloud.speech.v2.CustomClass.Builder,
-            com.google.cloud.speech.v2.CustomClassOrBuilder>
+        com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> 
         getCustomClassesFieldBuilder() {
       if (customClassesBuilder_ == null) {
-        customClassesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v2.CustomClass,
-                com.google.cloud.speech.v2.CustomClass.Builder,
-                com.google.cloud.speech.v2.CustomClassOrBuilder>(
+        customClassesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder>(
                 customClasses_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -2585,9 +2291,9 @@ public com.google.cloud.speech.v2.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);
     }
 
@@ -2597,12 +2303,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.SpeechAdaptation)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.SpeechAdaptation)
   private static final com.google.cloud.speech.v2.SpeechAdaptation DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.SpeechAdaptation();
   }
@@ -2611,27 +2317,27 @@ public static com.google.cloud.speech.v2.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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  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 {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2646,4 +2352,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v2.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java
similarity index 71%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java
index 2c1d3322d7af..5a8fc16f2c29 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java
@@ -1,90 +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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
-public interface SpeechAdaptationOrBuilder
-    extends
+public interface SpeechAdaptationOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.SpeechAdaptation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ - java.util.List + java.util.List getPhraseSetsList(); /** - * - * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getPhraseSets(int index); /** - * - * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ int getPhraseSetsCount(); /** - * - * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ - java.util.List + java.util.List getPhraseSetsOrBuilderList(); /** - * - * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhraseSetsOrBuilder( int index); /** - * - * *
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -92,10 +59,9 @@ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhra
    *
    * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
    */
-  java.util.List getCustomClassesList();
+  java.util.List 
+      getCustomClassesList();
   /**
-   *
-   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -105,8 +71,6 @@ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhra
    */
   com.google.cloud.speech.v2.CustomClass getCustomClasses(int index);
   /**
-   *
-   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -116,8 +80,6 @@ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhra
    */
   int getCustomClassesCount();
   /**
-   *
-   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -125,11 +87,9 @@ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhra
    *
    * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
    */
-  java.util.List
+  java.util.List 
       getCustomClassesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -137,5 +97,6 @@ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhra
    *
    * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
    */
-  com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index);
+  com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(
+      int index);
 }
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java
similarity index 75%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java
index 342473af6b42..cbb909e06162 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
- *
- *
  * 
  * Alternative hypotheses (a.k.a. n-best list).
  * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.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,43 +26,38 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeechRecognitionAlternative.class, - com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v2.SpeechRecognitionAlternative.class, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder.class); } public static final int TRANSCRIPT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object transcript_ = ""; /** - * - * *
    * Transcript text representing the words that the user spoke.
    * 
* * string transcript = 1; - * * @return The transcript. */ @java.lang.Override @@ -89,29 +66,29 @@ 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.
    * 
* * 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 { @@ -122,8 +99,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_ = 0F; /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -136,7 +111,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -145,12 +119,9 @@ public float getConfidence() { } public static final int WORDS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List words_; /** - * - * *
    * A list of word-specific information for each recognized word.
    * When
@@ -165,8 +136,6 @@ public java.util.List getWordsList() {
     return words_;
   }
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -177,13 +146,11 @@ public java.util.List getWordsList() {
    * repeated .google.cloud.speech.v2.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.
    * When
@@ -198,8 +165,6 @@ public int getWordsCount() {
     return words_.size();
   }
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -214,8 +179,6 @@ public com.google.cloud.speech.v2.WordInfo getWords(int index) {
     return words_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -226,12 +189,12 @@ public com.google.cloud.speech.v2.WordInfo getWords(int index) {
    * repeated .google.cloud.speech.v2.WordInfo words = 3;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(int index) {
+  public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(
+      int index) {
     return words_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -243,7 +206,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_);
     }
@@ -266,10 +230,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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -279,18 +245,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.v2.SpeechRecognitionAlternative)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.SpeechRecognitionAlternative other =
-        (com.google.cloud.speech.v2.SpeechRecognitionAlternative) obj;
+    com.google.cloud.speech.v2.SpeechRecognitionAlternative other = (com.google.cloud.speech.v2.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -305,7 +273,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();
@@ -316,136 +285,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v2.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.v2.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.v2.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionAlternative parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionAlternative parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v2.SpeechRecognitionAlternative parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionAlternative parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v2.SpeechRecognitionAlternative parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.SpeechRecognitionAlternative prototype) {
+  public static Builder newBuilder(com.google.cloud.speech.v2.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.v2.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.v2.SpeechRecognitionAlternative) com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeechRecognitionAlternative.class, - com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v2.SpeechRecognitionAlternative.class, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder.class); } // Construct using com.google.cloud.speech.v2.SpeechRecognitionAlternative.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -463,9 +425,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; } @java.lang.Override @@ -484,18 +446,14 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative build() { @java.lang.Override public com.google.cloud.speech.v2.SpeechRecognitionAlternative buildPartial() { - com.google.cloud.speech.v2.SpeechRecognitionAlternative result = - new com.google.cloud.speech.v2.SpeechRecognitionAlternative(this); + com.google.cloud.speech.v2.SpeechRecognitionAlternative result = new com.google.cloud.speech.v2.SpeechRecognitionAlternative(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v2.SpeechRecognitionAlternative result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v2.SpeechRecognitionAlternative result) { if (wordsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -521,39 +479,38 @@ private void buildPartial0(com.google.cloud.speech.v2.SpeechRecognitionAlternati 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.v2.SpeechRecognitionAlternative) { - return mergeFrom((com.google.cloud.speech.v2.SpeechRecognitionAlternative) other); + return mergeFrom((com.google.cloud.speech.v2.SpeechRecognitionAlternative)other); } else { super.mergeFrom(other); return this; @@ -561,8 +518,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.SpeechRecognitionAlternative other) { - if (other == com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance()) return this; if (!other.getTranscript().isEmpty()) { transcript_ = other.transcript_; bitField0_ |= 0x00000001; @@ -589,10 +545,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.SpeechRecognitionAlternative wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000004); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWordsFieldBuilder() - : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWordsFieldBuilder() : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -624,38 +579,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - transcript_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: - { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - case 26: - { - com.google.cloud.speech.v2.WordInfo m = - input.readMessage( - com.google.cloud.speech.v2.WordInfo.parser(), extensionRegistry); - if (wordsBuilder_ == null) { - ensureWordsIsMutable(); - words_.add(m); - } else { - wordsBuilder_.addMessage(m); - } - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + transcript_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 26: { + com.google.cloud.speech.v2.WordInfo m = + input.readMessage( + com.google.cloud.speech.v2.WordInfo.parser(), + extensionRegistry); + if (wordsBuilder_ == null) { + ensureWordsIsMutable(); + words_.add(m); + } else { + wordsBuilder_.addMessage(m); + } + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -665,25 +617,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object transcript_ = ""; /** - * - * *
      * Transcript text representing the words that the user spoke.
      * 
* * 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; @@ -692,21 +641,20 @@ public java.lang.String getTranscript() { } } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * 
* * 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 { @@ -714,35 +662,28 @@ public com.google.protobuf.ByteString getTranscriptBytes() { } } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; - * * @param value The transcript to set. * @return This builder for chaining. */ - public Builder setTranscript(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTranscript( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } transcript_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; - * * @return This builder for chaining. */ public Builder clearTranscript() { @@ -752,21 +693,17 @@ public Builder clearTranscript() { return this; } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; - * * @param value The bytes for transcript to set. * @return This builder for chaining. */ - public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTranscriptBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); transcript_ = value; bitField0_ |= 0x00000001; @@ -774,10 +711,8 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { 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
@@ -790,7 +725,6 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -798,8 +732,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
@@ -812,20 +744,17 @@ public float getConfidence() {
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000002; 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
@@ -838,7 +767,6 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -849,24 +777,18 @@ public Builder clearConfidence() { } private java.util.List words_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.WordInfo, - com.google.cloud.speech.v2.WordInfo.Builder, - com.google.cloud.speech.v2.WordInfoOrBuilder> - wordsBuilder_; + com.google.cloud.speech.v2.WordInfo, com.google.cloud.speech.v2.WordInfo.Builder, com.google.cloud.speech.v2.WordInfoOrBuilder> wordsBuilder_; /** - * - * *
      * A list of word-specific information for each recognized word.
      * When
@@ -884,8 +806,6 @@ public java.util.List getWordsList() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -903,8 +823,6 @@ public int getWordsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -922,8 +840,6 @@ public com.google.cloud.speech.v2.WordInfo getWords(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -933,7 +849,8 @@ public com.google.cloud.speech.v2.WordInfo getWords(int index) {
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public Builder setWords(int index, com.google.cloud.speech.v2.WordInfo value) {
+    public Builder setWords(
+        int index, com.google.cloud.speech.v2.WordInfo value) {
       if (wordsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -947,8 +864,6 @@ public Builder setWords(int index, com.google.cloud.speech.v2.WordInfo value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -970,8 +885,6 @@ public Builder setWords(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -995,8 +908,6 @@ public Builder addWords(com.google.cloud.speech.v2.WordInfo value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1006,7 +917,8 @@ public Builder addWords(com.google.cloud.speech.v2.WordInfo value) {
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public Builder addWords(int index, com.google.cloud.speech.v2.WordInfo value) {
+    public Builder addWords(
+        int index, com.google.cloud.speech.v2.WordInfo value) {
       if (wordsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1020,8 +932,6 @@ public Builder addWords(int index, com.google.cloud.speech.v2.WordInfo value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1031,7 +941,8 @@ public Builder addWords(int index, com.google.cloud.speech.v2.WordInfo value) {
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public Builder addWords(com.google.cloud.speech.v2.WordInfo.Builder builderForValue) {
+    public Builder addWords(
+        com.google.cloud.speech.v2.WordInfo.Builder builderForValue) {
       if (wordsBuilder_ == null) {
         ensureWordsIsMutable();
         words_.add(builderForValue.build());
@@ -1042,8 +953,6 @@ public Builder addWords(com.google.cloud.speech.v2.WordInfo.Builder builderForVa
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1065,8 +974,6 @@ public Builder addWords(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1080,7 +987,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);
@@ -1088,8 +996,6 @@ public Builder addAllWords(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1110,8 +1016,6 @@ public Builder clearWords() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1132,8 +1036,6 @@ public Builder removeWords(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1143,12 +1045,11 @@ public Builder removeWords(int index) {
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v2.WordInfo.Builder getWordsBuilder(int index) {
+    public com.google.cloud.speech.v2.WordInfo.Builder getWordsBuilder(
+        int index) {
       return getWordsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1158,16 +1059,14 @@ public com.google.cloud.speech.v2.WordInfo.Builder getWordsBuilder(int index) {
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(int index) {
+    public com.google.cloud.speech.v2.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.
      * When
@@ -1177,8 +1076,8 @@ public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(int index)
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public java.util.List
-        getWordsOrBuilderList() {
+    public java.util.List 
+         getWordsOrBuilderList() {
       if (wordsBuilder_ != null) {
         return wordsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1186,8 +1085,6 @@ public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(int index)
       }
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1198,12 +1095,10 @@ public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(int index)
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
     public com.google.cloud.speech.v2.WordInfo.Builder addWordsBuilder() {
-      return getWordsFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v2.WordInfo.getDefaultInstance());
+      return getWordsFieldBuilder().addBuilder(
+          com.google.cloud.speech.v2.WordInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1213,13 +1108,12 @@ public com.google.cloud.speech.v2.WordInfo.Builder addWordsBuilder() {
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v2.WordInfo.Builder addWordsBuilder(int index) {
-      return getWordsFieldBuilder()
-          .addBuilder(index, com.google.cloud.speech.v2.WordInfo.getDefaultInstance());
+    public com.google.cloud.speech.v2.WordInfo.Builder addWordsBuilder(
+        int index) {
+      return getWordsFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v2.WordInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1229,29 +1123,27 @@ public com.google.cloud.speech.v2.WordInfo.Builder addWordsBuilder(int index) {
      *
      * repeated .google.cloud.speech.v2.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.v2.WordInfo,
-            com.google.cloud.speech.v2.WordInfo.Builder,
-            com.google.cloud.speech.v2.WordInfoOrBuilder>
+        com.google.cloud.speech.v2.WordInfo, com.google.cloud.speech.v2.WordInfo.Builder, com.google.cloud.speech.v2.WordInfoOrBuilder> 
         getWordsFieldBuilder() {
       if (wordsBuilder_ == null) {
-        wordsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v2.WordInfo,
-                com.google.cloud.speech.v2.WordInfo.Builder,
-                com.google.cloud.speech.v2.WordInfoOrBuilder>(
-                words_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+        wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v2.WordInfo, com.google.cloud.speech.v2.WordInfo.Builder, com.google.cloud.speech.v2.WordInfoOrBuilder>(
+                words_,
+                ((bitField0_ & 0x00000004) != 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);
     }
 
@@ -1261,12 +1153,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.SpeechRecognitionAlternative)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.SpeechRecognitionAlternative)
   private static final com.google.cloud.speech.v2.SpeechRecognitionAlternative DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.SpeechRecognitionAlternative();
   }
@@ -1275,27 +1167,27 @@ public static com.google.cloud.speech.v2.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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  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 {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1310,4 +1202,6 @@ public com.google.protobuf.Parser getParserForType
   public com.google.cloud.speech.v2.SpeechRecognitionAlternative getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java
similarity index 78%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java
index 74d278312ad9..e9317373e2e7 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java
@@ -1,56 +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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
-public interface SpeechRecognitionAlternativeOrBuilder
-    extends
+public interface SpeechRecognitionAlternativeOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.SpeechRecognitionAlternative)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Transcript text representing the words that the user spoke.
    * 
* * string transcript = 1; - * * @return The transcript. */ java.lang.String getTranscript(); /** - * - * *
    * Transcript text representing the words that the user spoke.
    * 
* * 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
@@ -63,14 +40,11 @@ public interface SpeechRecognitionAlternativeOrBuilder
    * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); /** - * - * *
    * A list of word-specific information for each recognized word.
    * When
@@ -80,10 +54,9 @@ public interface SpeechRecognitionAlternativeOrBuilder
    *
    * repeated .google.cloud.speech.v2.WordInfo words = 3;
    */
-  java.util.List getWordsList();
+  java.util.List 
+      getWordsList();
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -95,8 +68,6 @@ public interface SpeechRecognitionAlternativeOrBuilder
    */
   com.google.cloud.speech.v2.WordInfo getWords(int index);
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -108,8 +79,6 @@ public interface SpeechRecognitionAlternativeOrBuilder
    */
   int getWordsCount();
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -119,10 +88,9 @@ public interface SpeechRecognitionAlternativeOrBuilder
    *
    * repeated .google.cloud.speech.v2.WordInfo words = 3;
    */
-  java.util.List getWordsOrBuilderList();
+  java.util.List 
+      getWordsOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -132,5 +100,6 @@ public interface SpeechRecognitionAlternativeOrBuilder
    *
    * repeated .google.cloud.speech.v2.WordInfo words = 3;
    */
-  com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(int index);
+  com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(
+      int index);
 }
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java
similarity index 75%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java
index b5e0aa007fb5..5889b6527e92 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
- *
- *
  * 
  * A speech recognition result corresponding to a portion of the audio.
  * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.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,37 +26,33 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeechRecognitionResult.class, - com.google.cloud.speech.v2.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v2.SpeechRecognitionResult.class, com.google.cloud.speech.v2.SpeechRecognitionResult.Builder.class); } public static final int ALTERNATIVES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List alternatives_; /** - * - * *
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -84,13 +62,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.speech.v2.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. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -100,13 +75,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getAlternativesOrBuilderList() {
     return alternatives_;
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -120,8 +93,6 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -135,8 +106,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(i
     return alternatives_.get(index);
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -154,8 +123,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int CHANNEL_TAG_FIELD_NUMBER = 2;
   private int channelTag_ = 0;
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -164,7 +131,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ @java.lang.Override @@ -175,15 +141,12 @@ public int getChannelTag() { public static final int RESULT_END_OFFSET_FIELD_NUMBER = 4; private com.google.protobuf.Duration resultEndOffset_; /** - * - * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; - * * @return Whether the resultEndOffset field is set. */ @java.lang.Override @@ -191,26 +154,19 @@ public boolean hasResultEndOffset() { return resultEndOffset_ != null; } /** - * - * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; - * * @return The resultEndOffset. */ @java.lang.Override public com.google.protobuf.Duration getResultEndOffset() { - return resultEndOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : resultEndOffset_; + return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_; } /** - * - * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
@@ -220,18 +176,13 @@ public com.google.protobuf.Duration getResultEndOffset() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
-    return resultEndOffset_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : resultEndOffset_;
+    return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_;
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
-
   @SuppressWarnings("serial")
   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
@@ -239,7 +190,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ @java.lang.Override @@ -248,15 +198,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
@@ -264,15 +213,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 { @@ -281,7 +231,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,7 +242,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)); } @@ -316,13 +266,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 (resultEndOffset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResultEndOffset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getResultEndOffset()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, languageCode_); @@ -335,21 +288,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.v2.SpeechRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v2.SpeechRecognitionResult other = - (com.google.cloud.speech.v2.SpeechRecognitionResult) obj; + com.google.cloud.speech.v2.SpeechRecognitionResult other = (com.google.cloud.speech.v2.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 (hasResultEndOffset() != other.hasResultEndOffset()) return false; if (hasResultEndOffset()) { - if (!getResultEndOffset().equals(other.getResultEndOffset())) return false; + if (!getResultEndOffset() + .equals(other.getResultEndOffset())) return false; } - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -379,135 +335,129 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.SpeechRecognitionResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.SpeechRecognitionResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.SpeechRecognitionResult) com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeechRecognitionResult.class, - com.google.cloud.speech.v2.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v2.SpeechRecognitionResult.class, com.google.cloud.speech.v2.SpeechRecognitionResult.Builder.class); } // Construct using com.google.cloud.speech.v2.SpeechRecognitionResult.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -530,9 +480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; } @java.lang.Override @@ -551,18 +501,14 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult build() { @java.lang.Override public com.google.cloud.speech.v2.SpeechRecognitionResult buildPartial() { - com.google.cloud.speech.v2.SpeechRecognitionResult result = - new com.google.cloud.speech.v2.SpeechRecognitionResult(this); + com.google.cloud.speech.v2.SpeechRecognitionResult result = new com.google.cloud.speech.v2.SpeechRecognitionResult(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v2.SpeechRecognitionResult result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v2.SpeechRecognitionResult result) { if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -580,8 +526,9 @@ private void buildPartial0(com.google.cloud.speech.v2.SpeechRecognitionResult re result.channelTag_ = channelTag_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.resultEndOffset_ = - resultEndOffsetBuilder_ == null ? resultEndOffset_ : resultEndOffsetBuilder_.build(); + result.resultEndOffset_ = resultEndOffsetBuilder_ == null + ? resultEndOffset_ + : resultEndOffsetBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.languageCode_ = languageCode_; @@ -592,39 +539,38 @@ private void buildPartial0(com.google.cloud.speech.v2.SpeechRecognitionResult re 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.v2.SpeechRecognitionResult) { - return mergeFrom((com.google.cloud.speech.v2.SpeechRecognitionResult) other); + return mergeFrom((com.google.cloud.speech.v2.SpeechRecognitionResult)other); } else { super.mergeFrom(other); return this; @@ -632,8 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.SpeechRecognitionResult other) { - if (other == com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance()) return this; if (alternativesBuilder_ == null) { if (!other.alternatives_.isEmpty()) { if (alternatives_.isEmpty()) { @@ -652,10 +597,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_); } @@ -698,45 +642,42 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v2.SpeechRecognitionAlternative m = - input.readMessage( - com.google.cloud.speech.v2.SpeechRecognitionAlternative.parser(), - extensionRegistry); - if (alternativesBuilder_ == null) { - ensureAlternativesIsMutable(); - alternatives_.add(m); - } else { - alternativesBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: - { - channelTag_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 34: - { - input.readMessage(getResultEndOffsetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.speech.v2.SpeechRecognitionAlternative m = + input.readMessage( + com.google.cloud.speech.v2.SpeechRecognitionAlternative.parser(), + extensionRegistry); + if (alternativesBuilder_ == null) { + ensureAlternativesIsMutable(); + alternatives_.add(m); + } else { + alternativesBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + channelTag_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 34: { + input.readMessage( + getResultEndOffsetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -746,30 +687,21 @@ public Builder mergeFrom( } // finally 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.v2.SpeechRecognitionAlternative, - com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, - com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder> - alternativesBuilder_; + com.google.cloud.speech.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_; /** - * - * *
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -778,8 +710,7 @@ private void ensureAlternativesIsMutable() {
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List
-        getAlternativesList() {
+    public java.util.List getAlternativesList() {
       if (alternativesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(alternatives_);
       } else {
@@ -787,8 +718,6 @@ private void ensureAlternativesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -805,8 +734,6 @@ public int getAlternativesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -823,8 +750,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(i
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -848,8 +773,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -859,8 +782,7 @@ public Builder setAlternatives(
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder setAlternatives(
-        int index,
-        com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.set(index, builderForValue.build());
@@ -871,8 +793,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -895,8 +815,6 @@ public Builder addAlternatives(com.google.cloud.speech.v2.SpeechRecognitionAlter
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -920,8 +838,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -942,8 +858,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -953,8 +867,7 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder addAlternatives(
-        int index,
-        com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.add(index, builderForValue.build());
@@ -965,8 +878,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -976,11 +887,11 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v2.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);
@@ -988,8 +899,6 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1009,8 +918,6 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1030,8 +937,6 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1045,8 +950,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
       return getAlternativesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1055,17 +958,14 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder
-        getAlternativesOrBuilder(int index) {
+    public com.google.cloud.speech.v2.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. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1074,9 +974,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List<
-            ? extends com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>
-        getAlternativesOrBuilderList() {
+    public java.util.List 
+         getAlternativesOrBuilderList() {
       if (alternativesBuilder_ != null) {
         return alternativesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1084,8 +983,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1094,14 +991,11 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder
-        addAlternativesBuilder() {
-      return getAlternativesFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
+    public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAlternativesBuilder() {
+      return getAlternativesFieldBuilder().addBuilder(
+          com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1112,13 +1006,10 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
      */
     public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAlternativesBuilder(
         int index) {
-      return getAlternativesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
+      return getAlternativesFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1127,32 +1018,27 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAltern
      *
      * repeated .google.cloud.speech.v2.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.v2.SpeechRecognitionAlternative,
-            com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder,
-            com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>
+        com.google.cloud.speech.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder> 
         getAlternativesFieldBuilder() {
       if (alternativesBuilder_ == null) {
-        alternativesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v2.SpeechRecognitionAlternative,
-                com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder,
-                com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>(
-                alternatives_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        alternativesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.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.
@@ -1161,7 +1047,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAltern
      * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ @java.lang.Override @@ -1169,8 +1054,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.
@@ -1179,20 +1062,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1201,7 +1081,6 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; - * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1213,49 +1092,36 @@ public Builder clearChannelTag() { private com.google.protobuf.Duration resultEndOffset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - resultEndOffsetBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndOffsetBuilder_; /** - * - * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
      * 
* * .google.protobuf.Duration result_end_offset = 4; - * * @return Whether the resultEndOffset field is set. */ public boolean hasResultEndOffset() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
      * 
* * .google.protobuf.Duration result_end_offset = 4; - * * @return The resultEndOffset. */ public com.google.protobuf.Duration getResultEndOffset() { if (resultEndOffsetBuilder_ == null) { - return resultEndOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : resultEndOffset_; + return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_; } else { return resultEndOffsetBuilder_.getMessage(); } } /** - * - * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1277,8 +1143,6 @@ public Builder setResultEndOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1286,7 +1150,8 @@ public Builder setResultEndOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_offset = 4;
      */
-    public Builder setResultEndOffset(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndOffset(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndOffsetBuilder_ == null) {
         resultEndOffset_ = builderForValue.build();
       } else {
@@ -1297,8 +1162,6 @@ public Builder setResultEndOffset(com.google.protobuf.Duration.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1308,9 +1171,9 @@ public Builder setResultEndOffset(com.google.protobuf.Duration.Builder builderFo
      */
     public Builder mergeResultEndOffset(com.google.protobuf.Duration value) {
       if (resultEndOffsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && resultEndOffset_ != null
-            && resultEndOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          resultEndOffset_ != null &&
+          resultEndOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndOffsetBuilder().mergeFrom(value);
         } else {
           resultEndOffset_ = value;
@@ -1323,8 +1186,6 @@ public Builder mergeResultEndOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1343,8 +1204,6 @@ public Builder clearResultEndOffset() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1358,8 +1217,6 @@ public com.google.protobuf.Duration.Builder getResultEndOffsetBuilder() {
       return getResultEndOffsetFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1371,14 +1228,11 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
       if (resultEndOffsetBuilder_ != null) {
         return resultEndOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return resultEndOffset_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : resultEndOffset_;
+        return resultEndOffset_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_;
       }
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1387,17 +1241,14 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
      * .google.protobuf.Duration result_end_offset = 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> 
         getResultEndOffsetFieldBuilder() {
       if (resultEndOffsetBuilder_ == null) {
-        resultEndOffsetBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getResultEndOffset(), getParentForChildren(), isClean());
+        resultEndOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getResultEndOffset(),
+                getParentForChildren(),
+                isClean());
         resultEndOffset_ = null;
       }
       return resultEndOffsetBuilder_;
@@ -1405,8 +1256,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
 
     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
@@ -1414,13 +1263,13 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
      * 
* * 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; @@ -1429,8 +1278,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
@@ -1438,14 +1285,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 { @@ -1453,8 +1301,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
@@ -1462,22 +1308,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000008; 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
@@ -1485,7 +1327,6 @@ 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() { @@ -1495,8 +1336,6 @@ public Builder clearLanguageCode() { 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
@@ -1504,23 +1343,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000008; 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); } @@ -1530,12 +1367,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.SpeechRecognitionResult) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.SpeechRecognitionResult) private static final com.google.cloud.speech.v2.SpeechRecognitionResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.SpeechRecognitionResult(); } @@ -1544,27 +1381,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1579,4 +1416,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java similarity index 82% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java index e582591940dc..387b637fa897 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface SpeechRecognitionResultOrBuilder - extends +public interface SpeechRecognitionResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.SpeechRecognitionResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -34,10 +16,9 @@ public interface SpeechRecognitionResultOrBuilder
    *
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List getAlternativesList();
+  java.util.List 
+      getAlternativesList();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -48,8 +29,6 @@ public interface SpeechRecognitionResultOrBuilder
    */
   com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(int index);
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -60,8 +39,6 @@ public interface SpeechRecognitionResultOrBuilder
    */
   int getAlternativesCount();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -70,11 +47,9 @@ public interface SpeechRecognitionResultOrBuilder
    *
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List
+  java.util.List 
       getAlternativesOrBuilderList();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -87,8 +62,6 @@ com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlternatives
       int index);
 
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -97,40 +70,31 @@ com.google.cloud.speech.v2.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_offset = 4; - * * @return Whether the resultEndOffset field is set. */ boolean hasResultEndOffset(); /** - * - * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; - * * @return The resultEndOffset. */ com.google.protobuf.Duration getResultEndOffset(); /** - * - * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
@@ -141,8 +105,6 @@ com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlternatives
   com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder();
 
   /**
-   *
-   *
    * 
    * 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
@@ -150,13 +112,10 @@ com.google.cloud.speech.v2.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
@@ -164,8 +123,8 @@ com.google.cloud.speech.v2.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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java similarity index 73% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java index d12ec537ca84..87e64f6a743c 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java @@ -1,75 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Provides configuration information for the StreamingRecognize request.
  * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionConfig.class, - com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder.class); + com.google.cloud.speech.v2.StreamingRecognitionConfig.class, com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v2.RecognitionConfig config_; /** - * - * *
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -79,10 +59,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * of the Recognizer resource.
    * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ @java.lang.Override @@ -90,8 +67,6 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -101,21 +76,14 @@ public boolean hasConfig() {
    * of the Recognizer resource.
    * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfig getConfig() { - return config_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; } /** - * - * *
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -125,22 +93,16 @@ public com.google.cloud.speech.v2.RecognitionConfig getConfig() {
    * of the Recognizer resource.
    * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder() { - return config_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; } public static final int CONFIG_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask configMask_; /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -158,7 +120,6 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * .google.protobuf.FieldMask config_mask = 3; - * * @return Whether the configMask field is set. */ @java.lang.Override @@ -166,8 +127,6 @@ public boolean hasConfigMask() { return configMask_ != null; } /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -185,7 +144,6 @@ public boolean hasConfigMask() {
    * 
* * .google.protobuf.FieldMask config_mask = 3; - * * @return The configMask. */ @java.lang.Override @@ -193,8 +151,6 @@ public com.google.protobuf.FieldMask getConfigMask() { return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -221,15 +177,12 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
   public static final int STREAMING_FEATURES_FIELD_NUMBER = 2;
   private com.google.cloud.speech.v2.StreamingRecognitionFeatures streamingFeatures_;
   /**
-   *
-   *
    * 
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
    * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; - * * @return Whether the streamingFeatures field is set. */ @java.lang.Override @@ -237,26 +190,19 @@ public boolean hasStreamingFeatures() { return streamingFeatures_ != null; } /** - * - * *
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
    * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; - * * @return The streamingFeatures. */ @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognitionFeatures getStreamingFeatures() { - return streamingFeatures_ == null - ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() - : streamingFeatures_; + return streamingFeatures_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() : streamingFeatures_; } /** - * - * *
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
@@ -265,15 +211,11 @@ public com.google.cloud.speech.v2.StreamingRecognitionFeatures getStreamingFeatu
    * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder
-      getStreamingFeaturesOrBuilder() {
-    return streamingFeatures_ == null
-        ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()
-        : streamingFeatures_;
+  public com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder getStreamingFeaturesOrBuilder() {
+    return streamingFeatures_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() : streamingFeatures_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -285,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 {
     if (config_ != null) {
       output.writeMessage(1, getConfig());
     }
@@ -305,13 +248,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 (streamingFeatures_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStreamingFeatures());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getStreamingFeatures());
     }
     if (configMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConfigMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getConfigMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -321,25 +267,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.v2.StreamingRecognitionConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.StreamingRecognitionConfig other =
-        (com.google.cloud.speech.v2.StreamingRecognitionConfig) obj;
+    com.google.cloud.speech.v2.StreamingRecognitionConfig other = (com.google.cloud.speech.v2.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 (hasConfigMask() != other.hasConfigMask()) return false;
     if (hasConfigMask()) {
-      if (!getConfigMask().equals(other.getConfigMask())) return false;
+      if (!getConfigMask()
+          .equals(other.getConfigMask())) return false;
     }
     if (hasStreamingFeatures() != other.hasStreamingFeatures()) return false;
     if (hasStreamingFeatures()) {
-      if (!getStreamingFeatures().equals(other.getStreamingFeatures())) return false;
+      if (!getStreamingFeatures()
+          .equals(other.getStreamingFeatures())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -370,136 +318,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v2.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.v2.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.v2.StreamingRecognitionConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v2.StreamingRecognitionConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v2.StreamingRecognitionConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.StreamingRecognitionConfig prototype) {
+  public static Builder newBuilder(com.google.cloud.speech.v2.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 configuration information for the StreamingRecognize request.
    * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.StreamingRecognitionConfig) com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionConfig.class, - com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder.class); + com.google.cloud.speech.v2.StreamingRecognitionConfig.class, com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder.class); } // Construct using com.google.cloud.speech.v2.StreamingRecognitionConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -523,9 +464,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; } @java.lang.Override @@ -544,11 +485,8 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfig build() { @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognitionConfig buildPartial() { - com.google.cloud.speech.v2.StreamingRecognitionConfig result = - new com.google.cloud.speech.v2.StreamingRecognitionConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v2.StreamingRecognitionConfig result = new com.google.cloud.speech.v2.StreamingRecognitionConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -556,16 +494,19 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfig buildPartial() { private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + result.config_ = configBuilder_ == null + ? config_ + : configBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.configMask_ = configMaskBuilder_ == null ? configMask_ : configMaskBuilder_.build(); + result.configMask_ = configMaskBuilder_ == null + ? configMask_ + : configMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.streamingFeatures_ = - streamingFeaturesBuilder_ == null - ? streamingFeatures_ - : streamingFeaturesBuilder_.build(); + result.streamingFeatures_ = streamingFeaturesBuilder_ == null + ? streamingFeatures_ + : streamingFeaturesBuilder_.build(); } } @@ -573,39 +514,38 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionConfig 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.v2.StreamingRecognitionConfig) { - return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionConfig) other); + return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionConfig)other); } else { super.mergeFrom(other); return this; @@ -613,8 +553,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognitionConfig other) { - if (other == com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance()) return this; if (other.hasConfig()) { mergeConfig(other.getConfig()); } @@ -650,32 +589,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getStreamingFeaturesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - input.readMessage(getConfigMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getStreamingFeaturesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + input.readMessage( + getConfigMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -685,18 +625,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.speech.v2.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, - com.google.cloud.speech.v2.RecognitionConfig.Builder, - com.google.cloud.speech.v2.RecognitionConfigOrBuilder> - configBuilder_; + com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> configBuilder_; /** - * - * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -706,18 +640,13 @@ public Builder mergeFrom(
      * of the Recognizer resource.
      * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -727,24 +656,17 @@ public boolean hasConfig() {
      * of the Recognizer resource.
      * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ public com.google.cloud.speech.v2.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -754,9 +676,7 @@ public com.google.cloud.speech.v2.RecognitionConfig getConfig() {
      * of the Recognizer resource.
      * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) { if (configBuilder_ == null) { @@ -772,8 +692,6 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) { return this; } /** - * - * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -783,11 +701,10 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
      * of the Recognizer resource.
      * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) { + public Builder setConfig( + com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); } else { @@ -798,8 +715,6 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder bu return this; } /** - * - * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -809,15 +724,13 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder bu
      * of the Recognizer resource.
      * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) { if (configBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && config_ != null - && config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + config_ != null && + config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -830,8 +743,6 @@ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) { return this; } /** - * - * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -841,9 +752,7 @@ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
      * of the Recognizer resource.
      * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConfig() { bitField0_ = (bitField0_ & ~0x00000001); @@ -856,8 +765,6 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -867,9 +774,7 @@ public Builder clearConfig() {
      * of the Recognizer resource.
      * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() { bitField0_ |= 0x00000001; @@ -877,8 +782,6 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() { return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -888,22 +791,17 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() {
      * of the Recognizer resource.
      * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? + com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; } } /** - * - * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -913,22 +811,17 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * of the Recognizer resource.
      * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, - com.google.cloud.speech.v2.RecognitionConfig.Builder, - com.google.cloud.speech.v2.RecognitionConfigOrBuilder> + com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, - com.google.cloud.speech.v2.RecognitionConfig.Builder, - com.google.cloud.speech.v2.RecognitionConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; @@ -936,13 +829,8 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder( private com.google.protobuf.FieldMask configMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - configMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> configMaskBuilder_; /** - * - * *
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -960,15 +848,12 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * .google.protobuf.FieldMask config_mask = 3; - * * @return Whether the configMask field is set. */ public boolean hasConfigMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -986,21 +871,16 @@ public boolean hasConfigMask() {
      * 
* * .google.protobuf.FieldMask config_mask = 3; - * * @return The configMask. */ public com.google.protobuf.FieldMask getConfigMask() { if (configMaskBuilder_ == null) { - return configMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : configMask_; + return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } else { return configMaskBuilder_.getMessage(); } } /** - * - * *
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1033,8 +913,6 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1053,7 +931,8 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask config_mask = 3;
      */
-    public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setConfigMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (configMaskBuilder_ == null) {
         configMask_ = builderForValue.build();
       } else {
@@ -1064,8 +943,6 @@ public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1086,9 +963,9 @@ public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       if (configMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && configMask_ != null
-            && configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          configMask_ != null &&
+          configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getConfigMaskBuilder().mergeFrom(value);
         } else {
           configMask_ = value;
@@ -1101,8 +978,6 @@ public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1132,8 +1007,6 @@ public Builder clearConfigMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1158,8 +1031,6 @@ public com.google.protobuf.FieldMask.Builder getConfigMaskBuilder() {
       return getConfigMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1182,14 +1053,11 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
       if (configMaskBuilder_ != null) {
         return configMaskBuilder_.getMessageOrBuilder();
       } else {
-        return configMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : configMask_;
+        return configMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : configMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1209,17 +1077,14 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
      * .google.protobuf.FieldMask config_mask = 3;
      */
     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> 
         getConfigMaskFieldBuilder() {
       if (configMaskBuilder_ == null) {
-        configMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getConfigMask(), getParentForChildren(), isClean());
+        configMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getConfigMask(),
+                getParentForChildren(),
+                isClean());
         configMask_ = null;
       }
       return configMaskBuilder_;
@@ -1227,49 +1092,36 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
 
     private com.google.cloud.speech.v2.StreamingRecognitionFeatures streamingFeatures_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.StreamingRecognitionFeatures,
-            com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder,
-            com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder>
-        streamingFeaturesBuilder_;
+        com.google.cloud.speech.v2.StreamingRecognitionFeatures, com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder> streamingFeaturesBuilder_;
     /**
-     *
-     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
      * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; - * * @return Whether the streamingFeatures field is set. */ public boolean hasStreamingFeatures() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
      * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; - * * @return The streamingFeatures. */ public com.google.cloud.speech.v2.StreamingRecognitionFeatures getStreamingFeatures() { if (streamingFeaturesBuilder_ == null) { - return streamingFeatures_ == null - ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() - : streamingFeatures_; + return streamingFeatures_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() : streamingFeatures_; } else { return streamingFeaturesBuilder_.getMessage(); } } /** - * - * *
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1277,8 +1129,7 @@ public com.google.cloud.speech.v2.StreamingRecognitionFeatures getStreamingFeatu
      *
      * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
      */
-    public Builder setStreamingFeatures(
-        com.google.cloud.speech.v2.StreamingRecognitionFeatures value) {
+    public Builder setStreamingFeatures(com.google.cloud.speech.v2.StreamingRecognitionFeatures value) {
       if (streamingFeaturesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1292,8 +1143,6 @@ public Builder setStreamingFeatures(
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1313,8 +1162,6 @@ public Builder setStreamingFeatures(
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1322,13 +1169,11 @@ public Builder setStreamingFeatures(
      *
      * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
      */
-    public Builder mergeStreamingFeatures(
-        com.google.cloud.speech.v2.StreamingRecognitionFeatures value) {
+    public Builder mergeStreamingFeatures(com.google.cloud.speech.v2.StreamingRecognitionFeatures value) {
       if (streamingFeaturesBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && streamingFeatures_ != null
-            && streamingFeatures_
-                != com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          streamingFeatures_ != null &&
+          streamingFeatures_ != com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()) {
           getStreamingFeaturesBuilder().mergeFrom(value);
         } else {
           streamingFeatures_ = value;
@@ -1341,8 +1186,6 @@ public Builder mergeStreamingFeatures(
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1361,8 +1204,6 @@ public Builder clearStreamingFeatures() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1370,15 +1211,12 @@ public Builder clearStreamingFeatures() {
      *
      * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
      */
-    public com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder
-        getStreamingFeaturesBuilder() {
+    public com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder getStreamingFeaturesBuilder() {
       bitField0_ |= 0x00000004;
       onChanged();
       return getStreamingFeaturesFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1386,19 +1224,15 @@ public Builder clearStreamingFeatures() {
      *
      * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
      */
-    public com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder
-        getStreamingFeaturesOrBuilder() {
+    public com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder getStreamingFeaturesOrBuilder() {
       if (streamingFeaturesBuilder_ != null) {
         return streamingFeaturesBuilder_.getMessageOrBuilder();
       } else {
-        return streamingFeatures_ == null
-            ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()
-            : streamingFeatures_;
+        return streamingFeatures_ == null ?
+            com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() : streamingFeatures_;
       }
     }
     /**
-     *
-     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1407,24 +1241,21 @@ public Builder clearStreamingFeatures() {
      * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.StreamingRecognitionFeatures,
-            com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder,
-            com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder>
+        com.google.cloud.speech.v2.StreamingRecognitionFeatures, com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder> 
         getStreamingFeaturesFieldBuilder() {
       if (streamingFeaturesBuilder_ == null) {
-        streamingFeaturesBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v2.StreamingRecognitionFeatures,
-                com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder,
-                com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder>(
-                getStreamingFeatures(), getParentForChildren(), isClean());
+        streamingFeaturesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v2.StreamingRecognitionFeatures, com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder>(
+                getStreamingFeatures(),
+                getParentForChildren(),
+                isClean());
         streamingFeatures_ = null;
       }
       return streamingFeaturesBuilder_;
     }
-
     @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);
     }
 
@@ -1434,12 +1265,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognitionConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognitionConfig)
   private static final com.google.cloud.speech.v2.StreamingRecognitionConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognitionConfig();
   }
@@ -1448,27 +1279,27 @@ public static com.google.cloud.speech.v2.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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  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 {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1483,4 +1314,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.speech.v2.StreamingRecognitionConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java
similarity index 83%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java
index 8bdb2d81b5fe..0db3e5ea8b02 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
-public interface StreamingRecognitionConfigOrBuilder
-    extends
+public interface StreamingRecognitionConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognitionConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -35,16 +17,11 @@ public interface StreamingRecognitionConfigOrBuilder
    * of the Recognizer resource.
    * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -54,16 +31,11 @@ public interface StreamingRecognitionConfigOrBuilder
    * of the Recognizer resource.
    * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ com.google.cloud.speech.v2.RecognitionConfig getConfig(); /** - * - * *
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -73,15 +45,11 @@ public interface StreamingRecognitionConfigOrBuilder
    * of the Recognizer resource.
    * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(); /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -99,13 +67,10 @@ public interface StreamingRecognitionConfigOrBuilder
    * 
* * .google.protobuf.FieldMask config_mask = 3; - * * @return Whether the configMask field is set. */ boolean hasConfigMask(); /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -123,13 +88,10 @@ public interface StreamingRecognitionConfigOrBuilder
    * 
* * .google.protobuf.FieldMask config_mask = 3; - * * @return The configMask. */ com.google.protobuf.FieldMask getConfigMask(); /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -151,34 +113,26 @@ public interface StreamingRecognitionConfigOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
    * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; - * * @return Whether the streamingFeatures field is set. */ boolean hasStreamingFeatures(); /** - * - * *
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
    * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; - * * @return The streamingFeatures. */ com.google.cloud.speech.v2.StreamingRecognitionFeatures getStreamingFeatures(); /** - * - * *
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java
similarity index 66%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java
index dd8338d0ef11..179ccc742060 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java
@@ -1,78 +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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
- *
- *
  * 
  * Available recognition features specific to streaming recognition requests.
  * 
* * Protobuf type {@code google.cloud.speech.v2.StreamingRecognitionFeatures} */ -public final class StreamingRecognitionFeatures extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StreamingRecognitionFeatures extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.StreamingRecognitionFeatures) StreamingRecognitionFeaturesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StreamingRecognitionFeatures.newBuilder() to construct. private StreamingRecognitionFeatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StreamingRecognitionFeatures() {} + private StreamingRecognitionFeatures() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StreamingRecognitionFeatures(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.class, - com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder.class); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.class, com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder.class); } - public interface VoiceActivityTimeoutOrBuilder - extends + public interface VoiceActivityTimeoutOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -80,13 +59,10 @@ public interface VoiceActivityTimeoutOrBuilder
      * 
* * .google.protobuf.Duration speech_start_timeout = 1; - * * @return Whether the speechStartTimeout field is set. */ boolean hasSpeechStartTimeout(); /** - * - * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -94,13 +70,10 @@ public interface VoiceActivityTimeoutOrBuilder
      * 
* * .google.protobuf.Duration speech_start_timeout = 1; - * * @return The speechStartTimeout. */ com.google.protobuf.Duration getSpeechStartTimeout(); /** - * - * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -112,8 +85,6 @@ public interface VoiceActivityTimeoutOrBuilder
     com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder();
 
     /**
-     *
-     *
      * 
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -121,13 +92,10 @@ public interface VoiceActivityTimeoutOrBuilder
      * 
* * .google.protobuf.Duration speech_end_timeout = 2; - * * @return Whether the speechEndTimeout field is set. */ boolean hasSpeechEndTimeout(); /** - * - * *
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -135,13 +103,10 @@ public interface VoiceActivityTimeoutOrBuilder
      * 
* * .google.protobuf.Duration speech_end_timeout = 2; - * * @return The speechEndTimeout. */ com.google.protobuf.Duration getSpeechEndTimeout(); /** - * - * *
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -153,58 +118,52 @@ public interface VoiceActivityTimeoutOrBuilder
     com.google.protobuf.DurationOrBuilder getSpeechEndTimeoutOrBuilder();
   }
   /**
-   *
-   *
    * 
    * Events that a timeout can be set on for voice activity.
    * 
* * Protobuf type {@code google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout} */ - public static final class VoiceActivityTimeout extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class VoiceActivityTimeout extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) VoiceActivityTimeoutOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VoiceActivityTimeout.newBuilder() to construct. private VoiceActivityTimeout(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private VoiceActivityTimeout() {} + private VoiceActivityTimeout() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VoiceActivityTimeout(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.class, - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder - .class); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.class, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder.class); } public static final int SPEECH_START_TIMEOUT_FIELD_NUMBER = 1; private com.google.protobuf.Duration speechStartTimeout_; /** - * - * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -212,7 +171,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * .google.protobuf.Duration speech_start_timeout = 1; - * * @return Whether the speechStartTimeout field is set. */ @java.lang.Override @@ -220,8 +178,6 @@ public boolean hasSpeechStartTimeout() { return speechStartTimeout_ != null; } /** - * - * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -229,18 +185,13 @@ public boolean hasSpeechStartTimeout() {
      * 
* * .google.protobuf.Duration speech_start_timeout = 1; - * * @return The speechStartTimeout. */ @java.lang.Override public com.google.protobuf.Duration getSpeechStartTimeout() { - return speechStartTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : speechStartTimeout_; + return speechStartTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechStartTimeout_; } /** - * - * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -251,16 +202,12 @@ public com.google.protobuf.Duration getSpeechStartTimeout() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
-      return speechStartTimeout_ == null
-          ? com.google.protobuf.Duration.getDefaultInstance()
-          : speechStartTimeout_;
+      return speechStartTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechStartTimeout_;
     }
 
     public static final int SPEECH_END_TIMEOUT_FIELD_NUMBER = 2;
     private com.google.protobuf.Duration speechEndTimeout_;
     /**
-     *
-     *
      * 
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -268,7 +215,6 @@ public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
      * 
* * .google.protobuf.Duration speech_end_timeout = 2; - * * @return Whether the speechEndTimeout field is set. */ @java.lang.Override @@ -276,8 +222,6 @@ public boolean hasSpeechEndTimeout() { return speechEndTimeout_ != null; } /** - * - * *
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -285,18 +229,13 @@ public boolean hasSpeechEndTimeout() {
      * 
* * .google.protobuf.Duration speech_end_timeout = 2; - * * @return The speechEndTimeout. */ @java.lang.Override public com.google.protobuf.Duration getSpeechEndTimeout() { - return speechEndTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : speechEndTimeout_; + return speechEndTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEndTimeout_; } /** - * - * *
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -307,13 +246,10 @@ public com.google.protobuf.Duration getSpeechEndTimeout() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getSpeechEndTimeoutOrBuilder() {
-      return speechEndTimeout_ == null
-          ? com.google.protobuf.Duration.getDefaultInstance()
-          : speechEndTimeout_;
+      return speechEndTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEndTimeout_;
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -325,7 +261,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 (speechStartTimeout_ != null) {
         output.writeMessage(1, getSpeechStartTimeout());
       }
@@ -342,11 +279,12 @@ public int getSerializedSize() {
 
       size = 0;
       if (speechStartTimeout_ != null) {
-        size +=
-            com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSpeechStartTimeout());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, getSpeechStartTimeout());
       }
       if (speechEndTimeout_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpeechEndTimeout());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, getSpeechEndTimeout());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -356,23 +294,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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout)) {
+      if (!(obj instanceof com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout)) {
         return super.equals(obj);
       }
-      com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout other =
-          (com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) obj;
+      com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout other = (com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) obj;
 
       if (hasSpeechStartTimeout() != other.hasSpeechStartTimeout()) return false;
       if (hasSpeechStartTimeout()) {
-        if (!getSpeechStartTimeout().equals(other.getSpeechStartTimeout())) return false;
+        if (!getSpeechStartTimeout()
+            .equals(other.getSpeechStartTimeout())) return false;
       }
       if (hasSpeechEndTimeout() != other.hasSpeechEndTimeout()) return false;
       if (hasSpeechEndTimeout()) {
-        if (!getSpeechEndTimeout().equals(other.getSpeechEndTimeout())) return false;
+        if (!getSpeechEndTimeout()
+            .equals(other.getSpeechEndTimeout())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -398,101 +335,88 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseFrom(java.nio.ByteBuffer data)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseFrom(
-            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
+        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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseFrom(com.google.protobuf.ByteString data)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
+        com.google.protobuf.ByteString data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseFrom(
-            com.google.protobuf.ByteString data,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout 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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseFrom(
-            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
-
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout 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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout prototype) {
+    public static Builder newBuilder(com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout 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
@@ -502,44 +426,39 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * Events that a timeout can be set on for voice activity.
      * 
* - * Protobuf type {@code - * google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout} + * Protobuf type {@code google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout} */ - 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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.class, - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder - .class); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.class, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder.class); } - // Construct using - // com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.newBuilder() - private Builder() {} + // Construct using com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -558,22 +477,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; } @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - getDefaultInstanceForType() { - return com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - .getDefaultInstance(); + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getDefaultInstanceForType() { + return com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance(); } @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout build() { - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result = - buildPartial(); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -581,31 +497,24 @@ public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTime } @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - buildPartial() { - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result = - new com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout buildPartial() { + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result = new com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result) { + private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.speechStartTimeout_ = - speechStartTimeoutBuilder_ == null - ? speechStartTimeout_ - : speechStartTimeoutBuilder_.build(); + result.speechStartTimeout_ = speechStartTimeoutBuilder_ == null + ? speechStartTimeout_ + : speechStartTimeoutBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.speechEndTimeout_ = - speechEndTimeoutBuilder_ == null - ? speechEndTimeout_ - : speechEndTimeoutBuilder_.build(); + result.speechEndTimeout_ = speechEndTimeoutBuilder_ == null + ? speechEndTimeout_ + : speechEndTimeoutBuilder_.build(); } } @@ -613,55 +522,46 @@ private void buildPartial0( 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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) { - return mergeFrom( - (com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) other); + if (other instanceof com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) { + return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout other) { - if (other - == com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout other) { + if (other == com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance()) return this; if (other.hasSpeechStartTimeout()) { mergeSpeechStartTimeout(other.getSpeechStartTimeout()); } @@ -694,27 +594,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getSpeechStartTimeoutFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getSpeechEndTimeoutFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getSpeechStartTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSpeechEndTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -724,18 +623,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Duration speechStartTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - speechStartTimeoutBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> speechStartTimeoutBuilder_; /** - * - * *
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -743,15 +636,12 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Duration speech_start_timeout = 1; - * * @return Whether the speechStartTimeout field is set. */ public boolean hasSpeechStartTimeout() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -759,21 +649,16 @@ public boolean hasSpeechStartTimeout() {
        * 
* * .google.protobuf.Duration speech_start_timeout = 1; - * * @return The speechStartTimeout. */ public com.google.protobuf.Duration getSpeechStartTimeout() { if (speechStartTimeoutBuilder_ == null) { - return speechStartTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : speechStartTimeout_; + return speechStartTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechStartTimeout_; } else { return speechStartTimeoutBuilder_.getMessage(); } } /** - * - * *
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -796,8 +681,6 @@ public Builder setSpeechStartTimeout(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -806,7 +689,8 @@ public Builder setSpeechStartTimeout(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration speech_start_timeout = 1;
        */
-      public Builder setSpeechStartTimeout(com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setSpeechStartTimeout(
+          com.google.protobuf.Duration.Builder builderForValue) {
         if (speechStartTimeoutBuilder_ == null) {
           speechStartTimeout_ = builderForValue.build();
         } else {
@@ -817,8 +701,6 @@ public Builder setSpeechStartTimeout(com.google.protobuf.Duration.Builder builde
         return this;
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -829,9 +711,9 @@ public Builder setSpeechStartTimeout(com.google.protobuf.Duration.Builder builde
        */
       public Builder mergeSpeechStartTimeout(com.google.protobuf.Duration value) {
         if (speechStartTimeoutBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0)
-              && speechStartTimeout_ != null
-              && speechStartTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0) &&
+            speechStartTimeout_ != null &&
+            speechStartTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getSpeechStartTimeoutBuilder().mergeFrom(value);
           } else {
             speechStartTimeout_ = value;
@@ -844,8 +726,6 @@ public Builder mergeSpeechStartTimeout(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -865,8 +745,6 @@ public Builder clearSpeechStartTimeout() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -881,8 +759,6 @@ public com.google.protobuf.Duration.Builder getSpeechStartTimeoutBuilder() {
         return getSpeechStartTimeoutFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -895,14 +771,11 @@ public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
         if (speechStartTimeoutBuilder_ != null) {
           return speechStartTimeoutBuilder_.getMessageOrBuilder();
         } else {
-          return speechStartTimeout_ == null
-              ? com.google.protobuf.Duration.getDefaultInstance()
-              : speechStartTimeout_;
+          return speechStartTimeout_ == null ?
+              com.google.protobuf.Duration.getDefaultInstance() : speechStartTimeout_;
         }
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -912,17 +785,14 @@ public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
        * .google.protobuf.Duration speech_start_timeout = 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> 
           getSpeechStartTimeoutFieldBuilder() {
         if (speechStartTimeoutBuilder_ == null) {
-          speechStartTimeoutBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Duration,
-                  com.google.protobuf.Duration.Builder,
-                  com.google.protobuf.DurationOrBuilder>(
-                  getSpeechStartTimeout(), getParentForChildren(), isClean());
+          speechStartTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                  getSpeechStartTimeout(),
+                  getParentForChildren(),
+                  isClean());
           speechStartTimeout_ = null;
         }
         return speechStartTimeoutBuilder_;
@@ -930,13 +800,8 @@ public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
 
       private com.google.protobuf.Duration speechEndTimeout_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
-          speechEndTimeoutBuilder_;
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> speechEndTimeoutBuilder_;
       /**
-       *
-       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -944,15 +809,12 @@ public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
        * 
* * .google.protobuf.Duration speech_end_timeout = 2; - * * @return Whether the speechEndTimeout field is set. */ public boolean hasSpeechEndTimeout() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -960,21 +822,16 @@ public boolean hasSpeechEndTimeout() {
        * 
* * .google.protobuf.Duration speech_end_timeout = 2; - * * @return The speechEndTimeout. */ public com.google.protobuf.Duration getSpeechEndTimeout() { if (speechEndTimeoutBuilder_ == null) { - return speechEndTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : speechEndTimeout_; + return speechEndTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEndTimeout_; } else { return speechEndTimeoutBuilder_.getMessage(); } } /** - * - * *
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -997,8 +854,6 @@ public Builder setSpeechEndTimeout(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -1007,7 +862,8 @@ public Builder setSpeechEndTimeout(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration speech_end_timeout = 2;
        */
-      public Builder setSpeechEndTimeout(com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setSpeechEndTimeout(
+          com.google.protobuf.Duration.Builder builderForValue) {
         if (speechEndTimeoutBuilder_ == null) {
           speechEndTimeout_ = builderForValue.build();
         } else {
@@ -1018,8 +874,6 @@ public Builder setSpeechEndTimeout(com.google.protobuf.Duration.Builder builderF
         return this;
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -1030,9 +884,9 @@ public Builder setSpeechEndTimeout(com.google.protobuf.Duration.Builder builderF
        */
       public Builder mergeSpeechEndTimeout(com.google.protobuf.Duration value) {
         if (speechEndTimeoutBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0)
-              && speechEndTimeout_ != null
-              && speechEndTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0) &&
+            speechEndTimeout_ != null &&
+            speechEndTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getSpeechEndTimeoutBuilder().mergeFrom(value);
           } else {
             speechEndTimeout_ = value;
@@ -1045,8 +899,6 @@ public Builder mergeSpeechEndTimeout(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -1066,8 +918,6 @@ public Builder clearSpeechEndTimeout() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -1082,8 +932,6 @@ public com.google.protobuf.Duration.Builder getSpeechEndTimeoutBuilder() {
         return getSpeechEndTimeoutFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -1096,14 +944,11 @@ public com.google.protobuf.DurationOrBuilder getSpeechEndTimeoutOrBuilder() {
         if (speechEndTimeoutBuilder_ != null) {
           return speechEndTimeoutBuilder_.getMessageOrBuilder();
         } else {
-          return speechEndTimeout_ == null
-              ? com.google.protobuf.Duration.getDefaultInstance()
-              : speechEndTimeout_;
+          return speechEndTimeout_ == null ?
+              com.google.protobuf.Duration.getDefaultInstance() : speechEndTimeout_;
         }
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -1113,22 +958,18 @@ public com.google.protobuf.DurationOrBuilder getSpeechEndTimeoutOrBuilder() {
        * .google.protobuf.Duration speech_end_timeout = 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> 
           getSpeechEndTimeoutFieldBuilder() {
         if (speechEndTimeoutBuilder_ == null) {
-          speechEndTimeoutBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Duration,
-                  com.google.protobuf.Duration.Builder,
-                  com.google.protobuf.DurationOrBuilder>(
-                  getSpeechEndTimeout(), getParentForChildren(), isClean());
+          speechEndTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                  getSpeechEndTimeout(),
+                  getParentForChildren(),
+                  isClean());
           speechEndTimeout_ = null;
         }
         return speechEndTimeoutBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -1141,46 +982,41 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout)
-    private static final com.google.cloud.speech.v2.StreamingRecognitionFeatures
-            .VoiceActivityTimeout
-        DEFAULT_INSTANCE;
-
+    private static final com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE =
-          new com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout();
+      DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout();
     }
 
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        getDefaultInstance() {
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public VoiceActivityTimeout parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            Builder builder = newBuilder();
-            try {
-              builder.mergeFrom(input, extensionRegistry);
-            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-              throw e.setUnfinishedMessage(builder.buildPartial());
-            } catch (com.google.protobuf.UninitializedMessageException e) {
-              throw e.asInvalidProtocolBufferException()
-                  .setUnfinishedMessage(builder.buildPartial());
-            } catch (java.io.IOException e) {
-              throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                  .setUnfinishedMessage(builder.buildPartial());
-            }
-            return builder.buildPartial();
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public VoiceActivityTimeout parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        Builder builder = newBuilder();
+        try {
+          builder.mergeFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.setUnfinishedMessage(builder.buildPartial());
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+        } catch (java.io.IOException e) {
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(builder.buildPartial());
+        }
+        return builder.buildPartial();
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -1192,24 +1028,21 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        getDefaultInstanceForType() {
+    public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
   public static final int ENABLE_VOICE_ACTIVITY_EVENTS_FIELD_NUMBER = 1;
   private boolean enableVoiceActivityEvents_ = false;
   /**
-   *
-   *
    * 
    * If `true`, responses with voice activity speech events will be returned as
    * they are detected.
    * 
* * bool enable_voice_activity_events = 1; - * * @return The enableVoiceActivityEvents. */ @java.lang.Override @@ -1220,8 +1053,6 @@ public boolean getEnableVoiceActivityEvents() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 2; private boolean interimResults_ = false; /** - * - * *
    * Whether or not to stream interim results to the client. If set to true,
    * interim results will be streamed to the client. Otherwise, only the final
@@ -1229,7 +1060,6 @@ public boolean getEnableVoiceActivityEvents() {
    * 
* * bool interim_results = 2; - * * @return The interimResults. */ @java.lang.Override @@ -1238,21 +1068,15 @@ public boolean getInterimResults() { } public static final int VOICE_ACTIVITY_TIMEOUT_FIELD_NUMBER = 3; - private com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - voiceActivityTimeout_; + private com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voiceActivityTimeout_; /** - * - * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; * @return Whether the voiceActivityTimeout field is set. */ @java.lang.Override @@ -1260,52 +1084,34 @@ public boolean hasVoiceActivityTimeout() { return voiceActivityTimeout_ != null; } /** - * - * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; * @return The voiceActivityTimeout. */ @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - getVoiceActivityTimeout() { - return voiceActivityTimeout_ == null - ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - .getDefaultInstance() - : voiceActivityTimeout_; + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getVoiceActivityTimeout() { + return voiceActivityTimeout_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance() : voiceActivityTimeout_; } /** - * - * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; */ @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder - getVoiceActivityTimeoutOrBuilder() { - return voiceActivityTimeout_ == null - ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - .getDefaultInstance() - : voiceActivityTimeout_; + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder getVoiceActivityTimeoutOrBuilder() { + return voiceActivityTimeout_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance() : voiceActivityTimeout_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1317,7 +1123,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 (enableVoiceActivityEvents_ != false) { output.writeBool(1, enableVoiceActivityEvents_); } @@ -1337,14 +1144,16 @@ public int getSerializedSize() { size = 0; if (enableVoiceActivityEvents_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableVoiceActivityEvents_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableVoiceActivityEvents_); } if (interimResults_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, interimResults_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, interimResults_); } if (voiceActivityTimeout_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getVoiceActivityTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getVoiceActivityTimeout()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1354,19 +1163,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.v2.StreamingRecognitionFeatures)) { return super.equals(obj); } - com.google.cloud.speech.v2.StreamingRecognitionFeatures other = - (com.google.cloud.speech.v2.StreamingRecognitionFeatures) obj; + com.google.cloud.speech.v2.StreamingRecognitionFeatures other = (com.google.cloud.speech.v2.StreamingRecognitionFeatures) obj; - if (getEnableVoiceActivityEvents() != other.getEnableVoiceActivityEvents()) return false; - if (getInterimResults() != other.getInterimResults()) return false; + if (getEnableVoiceActivityEvents() + != other.getEnableVoiceActivityEvents()) return false; + if (getInterimResults() + != other.getInterimResults()) return false; if (hasVoiceActivityTimeout() != other.hasVoiceActivityTimeout()) return false; if (hasVoiceActivityTimeout()) { - if (!getVoiceActivityTimeout().equals(other.getVoiceActivityTimeout())) return false; + if (!getVoiceActivityTimeout() + .equals(other.getVoiceActivityTimeout())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1380,9 +1191,11 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_VOICE_ACTIVITY_EVENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVoiceActivityEvents()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableVoiceActivityEvents()); 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()); if (hasVoiceActivityTimeout()) { hash = (37 * hash) + VOICE_ACTIVITY_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getVoiceActivityTimeout().hashCode(); @@ -1393,136 +1206,129 @@ public int hashCode() { } public static com.google.cloud.speech.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.StreamingRecognitionFeatures parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.StreamingRecognitionFeatures parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures prototype) { + public static Builder newBuilder(com.google.cloud.speech.v2.StreamingRecognitionFeatures 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; } /** - * - * *
    * Available recognition features specific to streaming recognition requests.
    * 
* * Protobuf type {@code google.cloud.speech.v2.StreamingRecognitionFeatures} */ - 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.v2.StreamingRecognitionFeatures) com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.class, - com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder.class); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.class, com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder.class); } // Construct using com.google.cloud.speech.v2.StreamingRecognitionFeatures.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1538,9 +1344,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; } @java.lang.Override @@ -1559,11 +1365,8 @@ public com.google.cloud.speech.v2.StreamingRecognitionFeatures build() { @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognitionFeatures buildPartial() { - com.google.cloud.speech.v2.StreamingRecognitionFeatures result = - new com.google.cloud.speech.v2.StreamingRecognitionFeatures(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v2.StreamingRecognitionFeatures result = new com.google.cloud.speech.v2.StreamingRecognitionFeatures(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1577,10 +1380,9 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionFeatur result.interimResults_ = interimResults_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.voiceActivityTimeout_ = - voiceActivityTimeoutBuilder_ == null - ? voiceActivityTimeout_ - : voiceActivityTimeoutBuilder_.build(); + result.voiceActivityTimeout_ = voiceActivityTimeoutBuilder_ == null + ? voiceActivityTimeout_ + : voiceActivityTimeoutBuilder_.build(); } } @@ -1588,39 +1390,38 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionFeatur 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.v2.StreamingRecognitionFeatures) { - return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionFeatures) other); + return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionFeatures)other); } else { super.mergeFrom(other); return this; @@ -1628,8 +1429,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognitionFeatures other) { - if (other == com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()) return this; if (other.getEnableVoiceActivityEvents() != false) { setEnableVoiceActivityEvents(other.getEnableVoiceActivityEvents()); } @@ -1665,32 +1465,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enableVoiceActivityEvents_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - interimResults_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage( - getVoiceActivityTimeoutFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enableVoiceActivityEvents_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + interimResults_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getVoiceActivityTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1700,20 +1497,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean enableVoiceActivityEvents_; + private boolean enableVoiceActivityEvents_ ; /** - * - * *
      * If `true`, responses with voice activity speech events will be returned as
      * they are detected.
      * 
* * bool enable_voice_activity_events = 1; - * * @return The enableVoiceActivityEvents. */ @java.lang.Override @@ -1721,35 +1514,29 @@ public boolean getEnableVoiceActivityEvents() { return enableVoiceActivityEvents_; } /** - * - * *
      * If `true`, responses with voice activity speech events will be returned as
      * they are detected.
      * 
* * bool enable_voice_activity_events = 1; - * * @param value The enableVoiceActivityEvents to set. * @return This builder for chaining. */ public Builder setEnableVoiceActivityEvents(boolean value) { - + enableVoiceActivityEvents_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * If `true`, responses with voice activity speech events will be returned as
      * they are detected.
      * 
* * bool enable_voice_activity_events = 1; - * * @return This builder for chaining. */ public Builder clearEnableVoiceActivityEvents() { @@ -1759,10 +1546,8 @@ public Builder clearEnableVoiceActivityEvents() { return this; } - private boolean interimResults_; + private boolean interimResults_ ; /** - * - * *
      * Whether or not to stream interim results to the client. If set to true,
      * interim results will be streamed to the client. Otherwise, only the final
@@ -1770,7 +1555,6 @@ public Builder clearEnableVoiceActivityEvents() {
      * 
* * bool interim_results = 2; - * * @return The interimResults. */ @java.lang.Override @@ -1778,8 +1562,6 @@ public boolean getInterimResults() { return interimResults_; } /** - * - * *
      * Whether or not to stream interim results to the client. If set to true,
      * interim results will be streamed to the client. Otherwise, only the final
@@ -1787,20 +1569,17 @@ public boolean getInterimResults() {
      * 
* * bool interim_results = 2; - * * @param value The interimResults to set. * @return This builder for chaining. */ public Builder setInterimResults(boolean value) { - + interimResults_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Whether or not to stream interim results to the client. If set to true,
      * interim results will be streamed to the client. Otherwise, only the final
@@ -1808,7 +1587,6 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 2; - * * @return This builder for chaining. */ public Builder clearInterimResults() { @@ -1818,72 +1596,49 @@ public Builder clearInterimResults() { return this; } - private com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - voiceActivityTimeout_; + private com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voiceActivityTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder, - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder> - voiceActivityTimeoutBuilder_; + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder> voiceActivityTimeoutBuilder_; /** - * - * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; * @return Whether the voiceActivityTimeout field is set. */ public boolean hasVoiceActivityTimeout() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; * @return The voiceActivityTimeout. */ - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - getVoiceActivityTimeout() { + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getVoiceActivityTimeout() { if (voiceActivityTimeoutBuilder_ == null) { - return voiceActivityTimeout_ == null - ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - .getDefaultInstance() - : voiceActivityTimeout_; + return voiceActivityTimeout_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance() : voiceActivityTimeout_; } else { return voiceActivityTimeoutBuilder_.getMessage(); } } /** - * - * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; */ - public Builder setVoiceActivityTimeout( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout value) { + public Builder setVoiceActivityTimeout(com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout value) { if (voiceActivityTimeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1897,21 +1652,16 @@ public Builder setVoiceActivityTimeout( return this; } /** - * - * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; */ public Builder setVoiceActivityTimeout( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder - builderForValue) { + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder builderForValue) { if (voiceActivityTimeoutBuilder_ == null) { voiceActivityTimeout_ = builderForValue.build(); } else { @@ -1922,26 +1672,19 @@ public Builder setVoiceActivityTimeout( return this; } /** - * - * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; */ - public Builder mergeVoiceActivityTimeout( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout value) { + public Builder mergeVoiceActivityTimeout(com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout value) { if (voiceActivityTimeoutBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && voiceActivityTimeout_ != null - && voiceActivityTimeout_ - != com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - .getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + voiceActivityTimeout_ != null && + voiceActivityTimeout_ != com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance()) { getVoiceActivityTimeoutBuilder().mergeFrom(value); } else { voiceActivityTimeout_ = value; @@ -1954,17 +1697,13 @@ public Builder mergeVoiceActivityTimeout( return this; } /** - * - * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; */ public Builder clearVoiceActivityTimeout() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1977,82 +1716,61 @@ public Builder clearVoiceActivityTimeout() { return this; } /** - * - * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; */ - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder - getVoiceActivityTimeoutBuilder() { + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder getVoiceActivityTimeoutBuilder() { bitField0_ |= 0x00000004; onChanged(); return getVoiceActivityTimeoutFieldBuilder().getBuilder(); } /** - * - * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; */ - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder - getVoiceActivityTimeoutOrBuilder() { + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder getVoiceActivityTimeoutOrBuilder() { if (voiceActivityTimeoutBuilder_ != null) { return voiceActivityTimeoutBuilder_.getMessageOrBuilder(); } else { - return voiceActivityTimeout_ == null - ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - .getDefaultInstance() - : voiceActivityTimeout_; + return voiceActivityTimeout_ == null ? + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance() : voiceActivityTimeout_; } } /** - * - * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder, - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder> + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder> getVoiceActivityTimeoutFieldBuilder() { if (voiceActivityTimeoutBuilder_ == null) { - voiceActivityTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - .Builder, - com.google.cloud.speech.v2.StreamingRecognitionFeatures - .VoiceActivityTimeoutOrBuilder>( - getVoiceActivityTimeout(), getParentForChildren(), isClean()); + voiceActivityTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder>( + getVoiceActivityTimeout(), + getParentForChildren(), + isClean()); voiceActivityTimeout_ = null; } return voiceActivityTimeoutBuilder_; } - @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); } @@ -2062,12 +1780,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognitionFeatures) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognitionFeatures) private static final com.google.cloud.speech.v2.StreamingRecognitionFeatures DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognitionFeatures(); } @@ -2076,27 +1794,27 @@ public static com.google.cloud.speech.v2.StreamingRecognitionFeatures getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionFeatures parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionFeatures parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2111,4 +1829,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.speech.v2.StreamingRecognitionFeatures getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java similarity index 61% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java index 9774eb7bf4b7..661cdb647156 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java @@ -1,45 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface StreamingRecognitionFeaturesOrBuilder - extends +public interface StreamingRecognitionFeaturesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognitionFeatures) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * If `true`, responses with voice activity speech events will be returned as
    * they are detected.
    * 
* * bool enable_voice_activity_events = 1; - * * @return The enableVoiceActivityEvents. */ boolean getEnableVoiceActivityEvents(); /** - * - * *
    * Whether or not to stream interim results to the client. If set to true,
    * interim results will be streamed to the client. Otherwise, only the final
@@ -47,57 +26,40 @@ public interface StreamingRecognitionFeaturesOrBuilder
    * 
* * bool interim_results = 2; - * * @return The interimResults. */ boolean getInterimResults(); /** - * - * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; * @return Whether the voiceActivityTimeout field is set. */ boolean hasVoiceActivityTimeout(); /** - * - * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; * @return The voiceActivityTimeout. */ - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - getVoiceActivityTimeout(); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getVoiceActivityTimeout(); /** - * - * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; */ - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder - getVoiceActivityTimeoutOrBuilder(); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder getVoiceActivityTimeoutOrBuilder(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java similarity index 76% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java index 16ff53852eb0..6c95858ea1e5 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * 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.v2.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.v2.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,37 +27,33 @@ 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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.StreamingRecognitionResult.class,
-            com.google.cloud.speech.v2.StreamingRecognitionResult.Builder.class);
+            com.google.cloud.speech.v2.StreamingRecognitionResult.class, com.google.cloud.speech.v2.StreamingRecognitionResult.Builder.class);
   }
 
   public static final int ALTERNATIVES_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List alternatives_;
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -85,13 +63,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.speech.v2.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. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -101,13 +76,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getAlternativesOrBuilderList() {
     return alternatives_;
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -121,8 +94,6 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -136,8 +107,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(i
     return alternatives_.get(index);
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -155,8 +124,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int IS_FINAL_FIELD_NUMBER = 2;
   private boolean isFinal_ = false;
   /**
-   *
-   *
    * 
    * If `false`, this
    * [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
@@ -168,7 +135,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * bool is_final = 2; - * * @return The isFinal. */ @java.lang.Override @@ -179,8 +145,6 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_ = 0F; /** - * - * *
    * An estimate of the likelihood that the recognizer will not change its guess
    * about this interim result. Values range from 0.0 (completely unstable)
@@ -190,7 +154,6 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; - * * @return The stability. */ @java.lang.Override @@ -201,15 +164,12 @@ public float getStability() { public static final int RESULT_END_OFFSET_FIELD_NUMBER = 4; private com.google.protobuf.Duration resultEndOffset_; /** - * - * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; - * * @return Whether the resultEndOffset field is set. */ @java.lang.Override @@ -217,26 +177,19 @@ public boolean hasResultEndOffset() { return resultEndOffset_ != null; } /** - * - * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; - * * @return The resultEndOffset. */ @java.lang.Override public com.google.protobuf.Duration getResultEndOffset() { - return resultEndOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : resultEndOffset_; + return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_; } /** - * - * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
@@ -246,16 +199,12 @@ public com.google.protobuf.Duration getResultEndOffset() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
-    return resultEndOffset_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : resultEndOffset_;
+    return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_;
   }
 
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_ = 0;
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -264,7 +213,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
    * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ @java.lang.Override @@ -273,12 +221,9 @@ public int getChannelTag() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; - @SuppressWarnings("serial") 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
@@ -286,7 +231,6 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ @java.lang.Override @@ -295,15 +239,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
@@ -311,15 +254,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 { @@ -328,7 +272,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -340,7 +283,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)); } @@ -369,19 +313,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 (resultEndOffset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResultEndOffset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getResultEndOffset()); } 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_); @@ -394,24 +343,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.v2.StreamingRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v2.StreamingRecognitionResult other = - (com.google.cloud.speech.v2.StreamingRecognitionResult) obj; + com.google.cloud.speech.v2.StreamingRecognitionResult other = (com.google.cloud.speech.v2.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 (hasResultEndOffset() != other.hasResultEndOffset()) return false; if (hasResultEndOffset()) { - if (!getResultEndOffset().equals(other.getResultEndOffset())) return false; + if (!getResultEndOffset() + .equals(other.getResultEndOffset())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -428,9 +382,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 (hasResultEndOffset()) { hash = (37 * hash) + RESULT_END_OFFSET_FIELD_NUMBER; hash = (53 * hash) + getResultEndOffset().hashCode(); @@ -445,104 +401,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.StreamingRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.StreamingRecognitionResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.StreamingRecognitionResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.StreamingRecognitionResult prototype) { + public static Builder newBuilder(com.google.cloud.speech.v2.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.
@@ -550,32 +498,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.StreamingRecognitionResult)
       com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.StreamingRecognitionResult.class,
-              com.google.cloud.speech.v2.StreamingRecognitionResult.Builder.class);
+              com.google.cloud.speech.v2.StreamingRecognitionResult.class, com.google.cloud.speech.v2.StreamingRecognitionResult.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.StreamingRecognitionResult.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -600,9 +549,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
@@ -621,18 +570,14 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.StreamingRecognitionResult buildPartial() {
-      com.google.cloud.speech.v2.StreamingRecognitionResult result =
-          new com.google.cloud.speech.v2.StreamingRecognitionResult(this);
+      com.google.cloud.speech.v2.StreamingRecognitionResult result = new com.google.cloud.speech.v2.StreamingRecognitionResult(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v2.StreamingRecognitionResult result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.StreamingRecognitionResult result) {
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -653,8 +598,9 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionResult
         result.stability_ = stability_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.resultEndOffset_ =
-            resultEndOffsetBuilder_ == null ? resultEndOffset_ : resultEndOffsetBuilder_.build();
+        result.resultEndOffset_ = resultEndOffsetBuilder_ == null
+            ? resultEndOffset_
+            : resultEndOffsetBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.channelTag_ = channelTag_;
@@ -668,39 +614,38 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionResult
     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.v2.StreamingRecognitionResult) {
-        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionResult) other);
+        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionResult)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -708,8 +653,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognitionResult other) {
-      if (other == com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance()) return this;
       if (alternativesBuilder_ == null) {
         if (!other.alternatives_.isEmpty()) {
           if (alternatives_.isEmpty()) {
@@ -728,10 +672,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_);
           }
@@ -780,57 +723,52 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.speech.v2.SpeechRecognitionAlternative m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.SpeechRecognitionAlternative.parser(),
-                        extensionRegistry);
-                if (alternativesBuilder_ == null) {
-                  ensureAlternativesIsMutable();
-                  alternatives_.add(m);
-                } else {
-                  alternativesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 16:
-              {
-                isFinal_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 29:
-              {
-                stability_ = input.readFloat();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 29
-            case 34:
-              {
-                input.readMessage(getResultEndOffsetFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 40:
-              {
-                channelTag_ = input.readInt32();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-            case 50:
-              {
-                languageCode_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.speech.v2.SpeechRecognitionAlternative m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.SpeechRecognitionAlternative.parser(),
+                      extensionRegistry);
+              if (alternativesBuilder_ == null) {
+                ensureAlternativesIsMutable();
+                alternatives_.add(m);
+              } else {
+                alternativesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 16: {
+              isFinal_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 29: {
+              stability_ = input.readFloat();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 29
+            case 34: {
+              input.readMessage(
+                  getResultEndOffsetFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 40: {
+              channelTag_ = input.readInt32();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            case 50: {
+              languageCode_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -840,30 +778,21 @@ public Builder mergeFrom(
       } // finally
       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.v2.SpeechRecognitionAlternative,
-            com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder,
-            com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>
-        alternativesBuilder_;
+        com.google.cloud.speech.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_;
 
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -872,8 +801,7 @@ private void ensureAlternativesIsMutable() {
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List
-        getAlternativesList() {
+    public java.util.List getAlternativesList() {
       if (alternativesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(alternatives_);
       } else {
@@ -881,8 +809,6 @@ private void ensureAlternativesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -899,8 +825,6 @@ public int getAlternativesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -917,8 +841,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(i
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -942,8 +864,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -953,8 +873,7 @@ public Builder setAlternatives(
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder setAlternatives(
-        int index,
-        com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.set(index, builderForValue.build());
@@ -965,8 +884,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -989,8 +906,6 @@ public Builder addAlternatives(com.google.cloud.speech.v2.SpeechRecognitionAlter
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1014,8 +929,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1036,8 +949,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1047,8 +958,7 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder addAlternatives(
-        int index,
-        com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.add(index, builderForValue.build());
@@ -1059,8 +969,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1070,11 +978,11 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v2.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);
@@ -1082,8 +990,6 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1103,8 +1009,6 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1124,8 +1028,6 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1139,8 +1041,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
       return getAlternativesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1149,17 +1049,14 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder
-        getAlternativesOrBuilder(int index) {
+    public com.google.cloud.speech.v2.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. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1168,9 +1065,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List<
-            ? extends com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>
-        getAlternativesOrBuilderList() {
+    public java.util.List 
+         getAlternativesOrBuilderList() {
       if (alternativesBuilder_ != null) {
         return alternativesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1178,8 +1074,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1188,14 +1082,11 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder
-        addAlternativesBuilder() {
-      return getAlternativesFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
+    public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAlternativesBuilder() {
+      return getAlternativesFieldBuilder().addBuilder(
+          com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1206,13 +1097,10 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
      */
     public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAlternativesBuilder(
         int index) {
-      return getAlternativesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
+      return getAlternativesFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1221,32 +1109,27 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAltern
      *
      * repeated .google.cloud.speech.v2.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.v2.SpeechRecognitionAlternative,
-            com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder,
-            com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>
+        com.google.cloud.speech.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder> 
         getAlternativesFieldBuilder() {
       if (alternativesBuilder_ == null) {
-        alternativesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v2.SpeechRecognitionAlternative,
-                com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder,
-                com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>(
-                alternatives_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        alternativesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>(
+                alternatives_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         alternatives_ = null;
       }
       return alternativesBuilder_;
     }
 
-    private boolean isFinal_;
+    private boolean isFinal_ ;
     /**
-     *
-     *
      * 
      * If `false`, this
      * [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
@@ -1258,7 +1141,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAltern
      * 
* * bool is_final = 2; - * * @return The isFinal. */ @java.lang.Override @@ -1266,8 +1148,6 @@ public boolean getIsFinal() { return isFinal_; } /** - * - * *
      * If `false`, this
      * [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
@@ -1279,20 +1159,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If `false`, this
      * [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
@@ -1304,7 +1181,6 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; - * * @return This builder for chaining. */ public Builder clearIsFinal() { @@ -1314,10 +1190,8 @@ public Builder clearIsFinal() { 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 (completely unstable)
@@ -1327,7 +1201,6 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; - * * @return The stability. */ @java.lang.Override @@ -1335,8 +1208,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 (completely unstable)
@@ -1346,20 +1217,17 @@ public float getStability() {
      * 
* * float stability = 3; - * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; bitField0_ |= 0x00000004; 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 (completely unstable)
@@ -1369,7 +1237,6 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; - * * @return This builder for chaining. */ public Builder clearStability() { @@ -1381,49 +1248,36 @@ public Builder clearStability() { private com.google.protobuf.Duration resultEndOffset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - resultEndOffsetBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndOffsetBuilder_; /** - * - * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
      * 
* * .google.protobuf.Duration result_end_offset = 4; - * * @return Whether the resultEndOffset field is set. */ public boolean hasResultEndOffset() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
      * 
* * .google.protobuf.Duration result_end_offset = 4; - * * @return The resultEndOffset. */ public com.google.protobuf.Duration getResultEndOffset() { if (resultEndOffsetBuilder_ == null) { - return resultEndOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : resultEndOffset_; + return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_; } else { return resultEndOffsetBuilder_.getMessage(); } } /** - * - * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1445,8 +1299,6 @@ public Builder setResultEndOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1454,7 +1306,8 @@ public Builder setResultEndOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_offset = 4;
      */
-    public Builder setResultEndOffset(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndOffset(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndOffsetBuilder_ == null) {
         resultEndOffset_ = builderForValue.build();
       } else {
@@ -1465,8 +1318,6 @@ public Builder setResultEndOffset(com.google.protobuf.Duration.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1476,9 +1327,9 @@ public Builder setResultEndOffset(com.google.protobuf.Duration.Builder builderFo
      */
     public Builder mergeResultEndOffset(com.google.protobuf.Duration value) {
       if (resultEndOffsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && resultEndOffset_ != null
-            && resultEndOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          resultEndOffset_ != null &&
+          resultEndOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndOffsetBuilder().mergeFrom(value);
         } else {
           resultEndOffset_ = value;
@@ -1491,8 +1342,6 @@ public Builder mergeResultEndOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1511,8 +1360,6 @@ public Builder clearResultEndOffset() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1526,8 +1373,6 @@ public com.google.protobuf.Duration.Builder getResultEndOffsetBuilder() {
       return getResultEndOffsetFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1539,14 +1384,11 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
       if (resultEndOffsetBuilder_ != null) {
         return resultEndOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return resultEndOffset_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : resultEndOffset_;
+        return resultEndOffset_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_;
       }
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1555,26 +1397,21 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
      * .google.protobuf.Duration result_end_offset = 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> 
         getResultEndOffsetFieldBuilder() {
       if (resultEndOffsetBuilder_ == null) {
-        resultEndOffsetBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getResultEndOffset(), getParentForChildren(), isClean());
+        resultEndOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getResultEndOffset(),
+                getParentForChildren(),
+                isClean());
         resultEndOffset_ = null;
       }
       return resultEndOffsetBuilder_;
     }
 
-    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.
@@ -1583,7 +1420,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
      * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ @java.lang.Override @@ -1591,8 +1427,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.
@@ -1601,20 +1435,17 @@ 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1623,7 +1454,6 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; - * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1635,8 +1465,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
@@ -1644,13 +1472,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; @@ -1659,8 +1487,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
@@ -1668,14 +1494,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 { @@ -1683,8 +1510,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
@@ -1692,22 +1517,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000020; 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
@@ -1715,7 +1536,6 @@ 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() { @@ -1725,8 +1545,6 @@ public Builder clearLanguageCode() { 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
@@ -1734,23 +1552,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000020; 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); } @@ -1760,12 +1576,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognitionResult) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognitionResult) private static final com.google.cloud.speech.v2.StreamingRecognitionResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognitionResult(); } @@ -1774,27 +1590,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1809,4 +1625,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java similarity index 85% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java index 35f98cc5a427..f50e53c3c1bf 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface StreamingRecognitionResultOrBuilder - extends +public interface StreamingRecognitionResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognitionResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -34,10 +16,9 @@ public interface StreamingRecognitionResultOrBuilder
    *
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List getAlternativesList();
+  java.util.List 
+      getAlternativesList();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -48,8 +29,6 @@ public interface StreamingRecognitionResultOrBuilder
    */
   com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(int index);
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -60,8 +39,6 @@ public interface StreamingRecognitionResultOrBuilder
    */
   int getAlternativesCount();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -70,11 +47,9 @@ public interface StreamingRecognitionResultOrBuilder
    *
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List
+  java.util.List 
       getAlternativesOrBuilderList();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -87,8 +62,6 @@ com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlternatives
       int index);
 
   /**
-   *
-   *
    * 
    * If `false`, this
    * [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
@@ -100,14 +73,11 @@ com.google.cloud.speech.v2.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 (completely unstable)
@@ -117,40 +87,31 @@ com.google.cloud.speech.v2.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_offset = 4; - * * @return Whether the resultEndOffset field is set. */ boolean hasResultEndOffset(); /** - * - * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; - * * @return The resultEndOffset. */ com.google.protobuf.Duration getResultEndOffset(); /** - * - * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
@@ -161,8 +122,6 @@ com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlternatives
   com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder();
 
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -171,14 +130,11 @@ com.google.cloud.speech.v2.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
@@ -186,13 +142,10 @@ com.google.cloud.speech.v2.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
@@ -200,8 +153,8 @@ com.google.cloud.speech.v2.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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java index 8048e10c7fee..23fc00c1963d 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [StreamingRecognize][google.cloud.speech.v2.Speech.StreamingRecognize]
@@ -41,58 +24,53 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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() {
     recognizer_ = "";
   }
 
   @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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.StreamingRecognizeRequest.class,
-            com.google.cloud.speech.v2.StreamingRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v2.StreamingRecognizeRequest.class, com.google.cloud.speech.v2.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(6),
     AUDIO(5),
     STREAMINGREQUEST_NOT_SET(0);
     private final int value;
-
     private StreamingRequestCase(int value) {
       this.value = value;
     }
@@ -108,33 +86,27 @@ public static StreamingRequestCase valueOf(int value) {
 
     public static StreamingRequestCase forNumber(int value) {
       switch (value) {
-        case 6:
-          return STREAMING_CONFIG;
-        case 5:
-          return AUDIO;
-        case 0:
-          return STREAMINGREQUEST_NOT_SET;
-        default:
-          return null;
+        case 6: return STREAMING_CONFIG;
+        case 5: return AUDIO;
+        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 RECOGNIZER_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object recognizer_ = "";
   /**
-   *
-   *
    * 
    * Required. Streaming recognition should start with an initial request having
    * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -143,10 +115,7 @@ public StreamingRequestCase getStreamingRequestCase() {
    * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
    * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The recognizer. */ @java.lang.Override @@ -155,15 +124,14 @@ public java.lang.String getRecognizer() { 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(); recognizer_ = s; return s; } } /** - * - * *
    * Required. Streaming recognition should start with an initial request having
    * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -172,18 +140,17 @@ public java.lang.String getRecognizer() {
    * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
    * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for recognizer. */ @java.lang.Override - public com.google.protobuf.ByteString getRecognizerBytes() { + public com.google.protobuf.ByteString + getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -193,8 +160,6 @@ public com.google.protobuf.ByteString getRecognizerBytes() { public static final int STREAMING_CONFIG_FIELD_NUMBER = 6; /** - * - * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -202,7 +167,6 @@ public com.google.protobuf.ByteString getRecognizerBytes() {
    * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; - * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -210,8 +174,6 @@ public boolean hasStreamingConfig() { return streamingRequestCase_ == 6; } /** - * - * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -219,19 +181,16 @@ public boolean hasStreamingConfig() {
    * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; - * * @return The streamingConfig. */ @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognitionConfig getStreamingConfig() { if (streamingRequestCase_ == 6) { - return (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_; + return (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_; } return com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance(); } /** - * - * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -241,24 +200,20 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfig getStreamingConfig(
    * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder
-      getStreamingConfigOrBuilder() {
+  public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder() {
     if (streamingRequestCase_ == 6) {
-      return (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_;
+       return (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_;
     }
     return com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance();
   }
 
   public static final int AUDIO_FIELD_NUMBER = 5;
   /**
-   *
-   *
    * 
    * Inline audio bytes to be Recognized.
    * 
* * bytes audio = 5; - * * @return Whether the audio field is set. */ @java.lang.Override @@ -266,14 +221,11 @@ public boolean hasAudio() { return streamingRequestCase_ == 5; } /** - * - * *
    * Inline audio bytes to be Recognized.
    * 
* * bytes audio = 5; - * * @return The audio. */ @java.lang.Override @@ -285,7 +237,6 @@ public com.google.protobuf.ByteString getAudio() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -297,16 +248,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recognizer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, recognizer_); } if (streamingRequestCase_ == 5) { - output.writeBytes(5, (com.google.protobuf.ByteString) streamingRequest_); + output.writeBytes( + 5, (com.google.protobuf.ByteString) streamingRequest_); } if (streamingRequestCase_ == 6) { - output.writeMessage( - 6, (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_); + output.writeMessage(6, (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_); } getUnknownFields().writeTo(output); } @@ -321,14 +273,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, recognizer_); } if (streamingRequestCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 5, (com.google.protobuf.ByteString) streamingRequest_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 5, (com.google.protobuf.ByteString) streamingRequest_); } if (streamingRequestCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -338,22 +289,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.v2.StreamingRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.StreamingRecognizeRequest other = - (com.google.cloud.speech.v2.StreamingRecognizeRequest) obj; + com.google.cloud.speech.v2.StreamingRecognizeRequest other = (com.google.cloud.speech.v2.StreamingRecognizeRequest) obj; - if (!getRecognizer().equals(other.getRecognizer())) return false; + if (!getRecognizer() + .equals(other.getRecognizer())) return false; if (!getStreamingRequestCase().equals(other.getStreamingRequestCase())) return false; switch (streamingRequestCase_) { case 6: - if (!getStreamingConfig().equals(other.getStreamingConfig())) return false; + if (!getStreamingConfig() + .equals(other.getStreamingConfig())) return false; break; case 5: - if (!getAudio().equals(other.getAudio())) return false; + if (!getAudio() + .equals(other.getAudio())) return false; break; case 0: default: @@ -389,103 +342,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.StreamingRecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.StreamingRecognizeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.StreamingRecognizeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [StreamingRecognize][google.cloud.speech.v2.Speech.StreamingRecognize]
@@ -506,32 +452,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.StreamingRecognizeRequest)
       com.google.cloud.speech.v2.StreamingRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.StreamingRecognizeRequest.class,
-              com.google.cloud.speech.v2.StreamingRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v2.StreamingRecognizeRequest.class, com.google.cloud.speech.v2.StreamingRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.StreamingRecognizeRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -546,9 +493,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -567,11 +514,8 @@ public com.google.cloud.speech.v2.StreamingRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.StreamingRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v2.StreamingRecognizeRequest result =
-          new com.google.cloud.speech.v2.StreamingRecognizeRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.StreamingRecognizeRequest result = new com.google.cloud.speech.v2.StreamingRecognizeRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -587,7 +531,8 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognizeRequest
     private void buildPartialOneofs(com.google.cloud.speech.v2.StreamingRecognizeRequest result) {
       result.streamingRequestCase_ = streamingRequestCase_;
       result.streamingRequest_ = this.streamingRequest_;
-      if (streamingRequestCase_ == 6 && streamingConfigBuilder_ != null) {
+      if (streamingRequestCase_ == 6 &&
+          streamingConfigBuilder_ != null) {
         result.streamingRequest_ = streamingConfigBuilder_.build();
       }
     }
@@ -596,39 +541,38 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.StreamingRecognizeReq
     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.v2.StreamingRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognizeRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognizeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -636,28 +580,24 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognizeRequest other) {
-      if (other == com.google.cloud.speech.v2.StreamingRecognizeRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.StreamingRecognizeRequest.getDefaultInstance()) return this;
       if (!other.getRecognizer().isEmpty()) {
         recognizer_ = other.recognizer_;
         bitField0_ |= 0x00000001;
         onChanged();
       }
       switch (other.getStreamingRequestCase()) {
-        case STREAMING_CONFIG:
-          {
-            mergeStreamingConfig(other.getStreamingConfig());
-            break;
-          }
-        case AUDIO:
-          {
-            setAudio(other.getAudio());
-            break;
-          }
-        case STREAMINGREQUEST_NOT_SET:
-          {
-            break;
-          }
+        case STREAMING_CONFIG: {
+          mergeStreamingConfig(other.getStreamingConfig());
+          break;
+        }
+        case AUDIO: {
+          setAudio(other.getAudio());
+          break;
+        }
+        case STREAMINGREQUEST_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -685,31 +625,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 26:
-              {
-                recognizer_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 26
-            case 42:
-              {
-                streamingRequest_ = input.readBytes();
-                streamingRequestCase_ = 5;
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getStreamingConfigFieldBuilder().getBuilder(), extensionRegistry);
-                streamingRequestCase_ = 6;
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 26: {
+              recognizer_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 26
+            case 42: {
+              streamingRequest_ = input.readBytes();
+              streamingRequestCase_ = 5;
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getStreamingConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              streamingRequestCase_ = 6;
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -719,12 +657,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -738,8 +676,6 @@ public Builder clearStreamingRequest() {
 
     private java.lang.Object recognizer_ = "";
     /**
-     *
-     *
      * 
      * Required. Streaming recognition should start with an initial request having
      * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -748,16 +684,14 @@ public Builder clearStreamingRequest() {
      * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
      * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The recognizer. */ public java.lang.String getRecognizer() { java.lang.Object ref = recognizer_; 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(); recognizer_ = s; return s; @@ -766,8 +700,6 @@ public java.lang.String getRecognizer() { } } /** - * - * *
      * Required. Streaming recognition should start with an initial request having
      * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -776,17 +708,16 @@ public java.lang.String getRecognizer() {
      * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
      * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for recognizer. */ - public com.google.protobuf.ByteString getRecognizerBytes() { + public com.google.protobuf.ByteString + getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -794,8 +725,6 @@ public com.google.protobuf.ByteString getRecognizerBytes() { } } /** - * - * *
      * Required. Streaming recognition should start with an initial request having
      * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -804,25 +733,19 @@ public com.google.protobuf.ByteString getRecognizerBytes() {
      * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
      * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizer(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecognizer( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } recognizer_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Streaming recognition should start with an initial request having
      * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -831,10 +754,7 @@ public Builder setRecognizer(java.lang.String value) {
      * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
      * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearRecognizer() { @@ -844,8 +764,6 @@ public Builder clearRecognizer() { return this; } /** - * - * *
      * Required. Streaming recognition should start with an initial request having
      * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -854,17 +772,13 @@ public Builder clearRecognizer() {
      * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
      * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizerBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecognizerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); recognizer_ = value; bitField0_ |= 0x00000001; @@ -873,13 +787,8 @@ public Builder setRecognizerBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.StreamingRecognitionConfig, - com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder, - com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder> - streamingConfigBuilder_; + com.google.cloud.speech.v2.StreamingRecognitionConfig, com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder> streamingConfigBuilder_; /** - * - * *
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -887,7 +796,6 @@ public Builder setRecognizerBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; - * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -895,8 +803,6 @@ public boolean hasStreamingConfig() { return streamingRequestCase_ == 6; } /** - * - * *
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -904,7 +810,6 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; - * * @return The streamingConfig. */ @java.lang.Override @@ -922,8 +827,6 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfig getStreamingConfig( } } /** - * - * *
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -946,8 +849,6 @@ public Builder setStreamingConfig(com.google.cloud.speech.v2.StreamingRecognitio
       return this;
     }
     /**
-     *
-     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -968,8 +869,6 @@ public Builder setStreamingConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -978,17 +877,12 @@ public Builder setStreamingConfig(
      *
      * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6;
      */
-    public Builder mergeStreamingConfig(
-        com.google.cloud.speech.v2.StreamingRecognitionConfig value) {
+    public Builder mergeStreamingConfig(com.google.cloud.speech.v2.StreamingRecognitionConfig value) {
       if (streamingConfigBuilder_ == null) {
-        if (streamingRequestCase_ == 6
-            && streamingRequest_
-                != com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance()) {
-          streamingRequest_ =
-              com.google.cloud.speech.v2.StreamingRecognitionConfig.newBuilder(
-                      (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (streamingRequestCase_ == 6 &&
+            streamingRequest_ != com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance()) {
+          streamingRequest_ = com.google.cloud.speech.v2.StreamingRecognitionConfig.newBuilder((com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_)
+              .mergeFrom(value).buildPartial();
         } else {
           streamingRequest_ = value;
         }
@@ -1004,8 +898,6 @@ public Builder mergeStreamingConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -1031,8 +923,6 @@ public Builder clearStreamingConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -1041,13 +931,10 @@ public Builder clearStreamingConfig() {
      *
      * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6;
      */
-    public com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder
-        getStreamingConfigBuilder() {
+    public com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder getStreamingConfigBuilder() {
       return getStreamingConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -1057,8 +944,7 @@ public Builder clearStreamingConfig() {
      * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6;
      */
     @java.lang.Override
-    public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder
-        getStreamingConfigOrBuilder() {
+    public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder() {
       if ((streamingRequestCase_ == 6) && (streamingConfigBuilder_ != null)) {
         return streamingConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -1069,8 +955,6 @@ public Builder clearStreamingConfig() {
       }
     }
     /**
-     *
-     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -1080,20 +964,14 @@ public Builder clearStreamingConfig() {
      * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.StreamingRecognitionConfig,
-            com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder,
-            com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder>
+        com.google.cloud.speech.v2.StreamingRecognitionConfig, com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder> 
         getStreamingConfigFieldBuilder() {
       if (streamingConfigBuilder_ == null) {
         if (!(streamingRequestCase_ == 6)) {
-          streamingRequest_ =
-              com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance();
+          streamingRequest_ = com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance();
         }
-        streamingConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v2.StreamingRecognitionConfig,
-                com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder,
-                com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder>(
+        streamingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v2.StreamingRecognitionConfig, com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder>(
                 (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_,
                 getParentForChildren(),
                 isClean());
@@ -1105,28 +983,22 @@ public Builder clearStreamingConfig() {
     }
 
     /**
-     *
-     *
      * 
      * Inline audio bytes to be Recognized.
      * 
* * bytes audio = 5; - * * @return Whether the audio field is set. */ public boolean hasAudio() { return streamingRequestCase_ == 5; } /** - * - * *
      * Inline audio bytes to be Recognized.
      * 
* * bytes audio = 5; - * * @return The audio. */ public com.google.protobuf.ByteString getAudio() { @@ -1136,35 +1008,27 @@ public com.google.protobuf.ByteString getAudio() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * Inline audio bytes to be Recognized.
      * 
* * bytes audio = 5; - * * @param value The audio to set. * @return This builder for chaining. */ public Builder setAudio(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } streamingRequestCase_ = 5; streamingRequest_ = value; onChanged(); return this; } /** - * - * *
      * Inline audio bytes to be Recognized.
      * 
* * bytes audio = 5; - * * @return This builder for chaining. */ public Builder clearAudio() { @@ -1175,9 +1039,9 @@ public Builder clearAudio() { } 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); } @@ -1187,12 +1051,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognizeRequest) private static final com.google.cloud.speech.v2.StreamingRecognizeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognizeRequest(); } @@ -1201,27 +1065,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1236,4 +1100,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java index c3de2722e8fe..a59c3c0ccd2c 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface StreamingRecognizeRequestOrBuilder - extends +public interface StreamingRecognizeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Streaming recognition should start with an initial request having
    * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -34,16 +16,11 @@ public interface StreamingRecognizeRequestOrBuilder
    * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
    * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The recognizer. */ java.lang.String getRecognizer(); /** - * - * *
    * Required. Streaming recognition should start with an initial request having
    * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -52,17 +29,13 @@ public interface StreamingRecognizeRequestOrBuilder
    * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
    * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for recognizer. */ - com.google.protobuf.ByteString getRecognizerBytes(); + com.google.protobuf.ByteString + getRecognizerBytes(); /** - * - * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -70,13 +43,10 @@ public interface StreamingRecognizeRequestOrBuilder
    * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; - * * @return Whether the streamingConfig field is set. */ boolean hasStreamingConfig(); /** - * - * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -84,13 +54,10 @@ public interface StreamingRecognizeRequestOrBuilder
    * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; - * * @return The streamingConfig. */ com.google.cloud.speech.v2.StreamingRecognitionConfig getStreamingConfig(); /** - * - * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -102,30 +69,23 @@ public interface StreamingRecognizeRequestOrBuilder
   com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Inline audio bytes to be Recognized.
    * 
* * bytes audio = 5; - * * @return Whether the audio field is set. */ boolean hasAudio(); /** - * - * *
    * Inline audio bytes to be Recognized.
    * 
* * bytes audio = 5; - * * @return The audio. */ com.google.protobuf.ByteString getAudio(); - public com.google.cloud.speech.v2.StreamingRecognizeRequest.StreamingRequestCase - getStreamingRequestCase(); + public com.google.cloud.speech.v2.StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java similarity index 76% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java index 92f2afa89c93..5727dcf83280 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * `StreamingRecognizeResponse` is the only message returned to the client by
  * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -61,16 +44,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
@@ -78,43 +60,39 @@ 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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.StreamingRecognizeResponse.class,
-            com.google.cloud.speech.v2.StreamingRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v2.StreamingRecognizeResponse.class, com.google.cloud.speech.v2.StreamingRecognizeResponse.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Indicates the type of speech event.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType} */ - public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { + public enum SpeechEventType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * No speech event specified.
      * 
@@ -123,8 +101,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { */ SPEECH_EVENT_TYPE_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
@@ -138,8 +114,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
      */
     END_OF_SINGLE_UTTERANCE(1),
     /**
-     *
-     *
      * 
      * This event indicates that the server has detected the beginning of human
      * voice activity in the stream. This event can be returned multiple times
@@ -151,8 +125,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
      */
     SPEECH_ACTIVITY_BEGIN(2),
     /**
-     *
-     *
      * 
      * This event indicates that the server has detected the end of human voice
      * activity in the stream. This event can be returned multiple times if
@@ -167,8 +139,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * No speech event specified.
      * 
@@ -177,8 +147,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SPEECH_EVENT_TYPE_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
@@ -192,8 +160,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int END_OF_SINGLE_UTTERANCE_VALUE = 1;
     /**
-     *
-     *
      * 
      * This event indicates that the server has detected the beginning of human
      * voice activity in the stream. This event can be returned multiple times
@@ -205,8 +171,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SPEECH_ACTIVITY_BEGIN_VALUE = 2;
     /**
-     *
-     *
      * 
      * This event indicates that the server has detected the end of human voice
      * activity in the stream. This event can be returned multiple times if
@@ -218,6 +182,7 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SPEECH_ACTIVITY_END_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -242,47 +207,41 @@ public static SpeechEventType valueOf(int value) {
      */
     public static SpeechEventType forNumber(int value) {
       switch (value) {
-        case 0:
-          return SPEECH_EVENT_TYPE_UNSPECIFIED;
-        case 1:
-          return END_OF_SINGLE_UTTERANCE;
-        case 2:
-          return SPEECH_ACTIVITY_BEGIN;
-        case 3:
-          return SPEECH_ACTIVITY_END;
-        default:
-          return null;
+        case 0: return SPEECH_EVENT_TYPE_UNSPECIFIED;
+        case 1: return END_OF_SINGLE_UTTERANCE;
+        case 2: return SPEECH_ACTIVITY_BEGIN;
+        case 3: return SPEECH_ACTIVITY_END;
+        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.v2.StreamingRecognizeResponse.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.StreamingRecognizeResponse.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final SpeechEventType[] VALUES = values();
@@ -290,7 +249,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;
@@ -308,12 +268,9 @@ private SpeechEventType(int value) {
   }
 
   public static final int RESULTS_FIELD_NUMBER = 6;
-
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -331,8 +288,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.
@@ -346,13 +301,11 @@ public java.util.List get
    * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
    */
   @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.
@@ -370,8 +323,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.
@@ -389,8 +340,6 @@ public com.google.cloud.speech.v2.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.
@@ -412,55 +361,37 @@ public com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResults
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 3;
   private int speechEventType_ = 0;
   /**
-   *
-   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; * @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.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; * @return The speechEventType. */ - @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType - getSpeechEventType() { - com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType result = - com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.forNumber( - speechEventType_); - return result == null - ? com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.forNumber(speechEventType_); + return result == null ? com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; } public static final int SPEECH_EVENT_OFFSET_FIELD_NUMBER = 7; private com.google.protobuf.Duration speechEventOffset_; /** - * - * *
    * Time offset between the beginning of the audio and event emission.
    * 
* * .google.protobuf.Duration speech_event_offset = 7; - * * @return Whether the speechEventOffset field is set. */ @java.lang.Override @@ -468,25 +399,18 @@ public boolean hasSpeechEventOffset() { return speechEventOffset_ != null; } /** - * - * *
    * Time offset between the beginning of the audio and event emission.
    * 
* * .google.protobuf.Duration speech_event_offset = 7; - * * @return The speechEventOffset. */ @java.lang.Override public com.google.protobuf.Duration getSpeechEventOffset() { - return speechEventOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : speechEventOffset_; + return speechEventOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEventOffset_; } /** - * - * *
    * Time offset between the beginning of the audio and event emission.
    * 
@@ -495,22 +419,17 @@ public com.google.protobuf.Duration getSpeechEventOffset() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder() { - return speechEventOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : speechEventOffset_; + return speechEventOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEventOffset_; } public static final int METADATA_FIELD_NUMBER = 5; private com.google.cloud.speech.v2.RecognitionResponseMetadata metadata_; /** - * - * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; - * * @return Whether the metadata field is set. */ @java.lang.Override @@ -518,25 +437,18 @@ public boolean hasMetadata() { return metadata_ != null; } /** - * - * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; - * * @return The metadata. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { - return metadata_ == null - ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; } /** - * - * *
    * Metadata about the recognition.
    * 
@@ -545,13 +457,10 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetadataOrBuilder() { - return metadata_ == null - ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -563,11 +472,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (speechEventType_ - != com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType - .SPEECH_EVENT_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (speechEventType_ != com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, speechEventType_); } if (metadata_ != null) { @@ -588,20 +495,21 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (speechEventType_ - != com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType - .SPEECH_EVENT_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, speechEventType_); + if (speechEventType_ != com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, speechEventType_); } if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getMetadata()); } for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, results_.get(i)); } if (speechEventOffset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSpeechEventOffset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getSpeechEventOffset()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -611,23 +519,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.v2.StreamingRecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.StreamingRecognizeResponse other = - (com.google.cloud.speech.v2.StreamingRecognizeResponse) obj; + com.google.cloud.speech.v2.StreamingRecognizeResponse other = (com.google.cloud.speech.v2.StreamingRecognizeResponse) obj; - if (!getResultsList().equals(other.getResultsList())) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; if (speechEventType_ != other.speechEventType_) return false; if (hasSpeechEventOffset() != other.hasSpeechEventOffset()) return false; if (hasSpeechEventOffset()) { - if (!getSpeechEventOffset().equals(other.getSpeechEventOffset())) return false; + if (!getSpeechEventOffset() + .equals(other.getSpeechEventOffset())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -660,104 +570,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.StreamingRecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.StreamingRecognizeResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.StreamingRecognizeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.StreamingRecognizeResponse prototype) { + public static Builder newBuilder(com.google.cloud.speech.v2.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`
@@ -798,32 +700,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.StreamingRecognizeResponse)
       com.google.cloud.speech.v2.StreamingRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.StreamingRecognizeResponse.class,
-              com.google.cloud.speech.v2.StreamingRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v2.StreamingRecognizeResponse.class, com.google.cloud.speech.v2.StreamingRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.StreamingRecognizeResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -850,9 +753,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
@@ -871,18 +774,14 @@ public com.google.cloud.speech.v2.StreamingRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.StreamingRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v2.StreamingRecognizeResponse result =
-          new com.google.cloud.speech.v2.StreamingRecognizeResponse(this);
+      com.google.cloud.speech.v2.StreamingRecognizeResponse result = new com.google.cloud.speech.v2.StreamingRecognizeResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v2.StreamingRecognizeResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.StreamingRecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -900,13 +799,14 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognizeResponse
         result.speechEventType_ = speechEventType_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.speechEventOffset_ =
-            speechEventOffsetBuilder_ == null
-                ? speechEventOffset_
-                : speechEventOffsetBuilder_.build();
+        result.speechEventOffset_ = speechEventOffsetBuilder_ == null
+            ? speechEventOffset_
+            : speechEventOffsetBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
+        result.metadata_ = metadataBuilder_ == null
+            ? metadata_
+            : metadataBuilder_.build();
       }
     }
 
@@ -914,39 +814,38 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognizeResponse
     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.v2.StreamingRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognizeResponse) other);
+        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognizeResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -954,8 +853,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognizeResponse other) {
-      if (other == com.google.cloud.speech.v2.StreamingRecognizeResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.StreamingRecognizeResponse.getDefaultInstance()) return this;
       if (resultsBuilder_ == null) {
         if (!other.results_.isEmpty()) {
           if (results_.isEmpty()) {
@@ -974,10 +872,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_);
           }
@@ -1018,46 +915,44 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 24:
-              {
-                speechEventType_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 24
-            case 42:
-              {
-                input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 42
-            case 50:
-              {
-                com.google.cloud.speech.v2.StreamingRecognitionResult m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.StreamingRecognitionResult.parser(),
-                        extensionRegistry);
-                if (resultsBuilder_ == null) {
-                  ensureResultsIsMutable();
-                  results_.add(m);
-                } else {
-                  resultsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(
-                    getSpeechEventOffsetFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 58
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 24: {
+              speechEventType_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 24
+            case 42: {
+              input.readMessage(
+                  getMetadataFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 42
+            case 50: {
+              com.google.cloud.speech.v2.StreamingRecognitionResult m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.StreamingRecognitionResult.parser(),
+                      extensionRegistry);
+              if (resultsBuilder_ == null) {
+                ensureResultsIsMutable();
+                results_.add(m);
+              } else {
+                resultsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getSpeechEventOffsetFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 58
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1067,30 +962,21 @@ public Builder mergeFrom(
       } // finally
       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.v2.StreamingRecognitionResult,
-            com.google.cloud.speech.v2.StreamingRecognitionResult.Builder,
-            com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder>
-        resultsBuilder_;
+        com.google.cloud.speech.v2.StreamingRecognitionResult, com.google.cloud.speech.v2.StreamingRecognitionResult.Builder, com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder> resultsBuilder_;
 
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1111,8 +997,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.
@@ -1133,8 +1017,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1155,8 +1037,6 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult getResults(int inde
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1184,8 +1064,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.
@@ -1210,8 +1088,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.
@@ -1238,8 +1114,6 @@ public Builder addResults(com.google.cloud.speech.v2.StreamingRecognitionResult
       return this;
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1267,8 +1141,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.
@@ -1293,8 +1165,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.
@@ -1319,8 +1189,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.
@@ -1334,11 +1202,11 @@ public Builder addResults(
      * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
      */
     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);
@@ -1346,8 +1214,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.
@@ -1371,8 +1237,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.
@@ -1396,8 +1260,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.
@@ -1415,8 +1277,6 @@ public com.google.cloud.speech.v2.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.
@@ -1432,14 +1292,11 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder getResultsB
     public com.google.cloud.speech.v2.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.
@@ -1452,8 +1309,8 @@ public com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResults
      *
      * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
      */
-    public java.util.List
-        getResultsOrBuilderList() {
+    public java.util.List 
+         getResultsOrBuilderList() {
       if (resultsBuilder_ != null) {
         return resultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1461,8 +1318,6 @@ public com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResults
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1476,12 +1331,10 @@ public com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResults
      * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
      */
     public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsBuilder() {
-      return getResultsFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder().addBuilder(
+          com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1496,13 +1349,10 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsB
      */
     public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsBuilder(
         int index) {
-      return getResultsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1515,23 +1365,20 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsB
      *
      * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
      */
-    public java.util.List
-        getResultsBuilderList() {
+    public java.util.List 
+         getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.StreamingRecognitionResult,
-            com.google.cloud.speech.v2.StreamingRecognitionResult.Builder,
-            com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder>
+        com.google.cloud.speech.v2.StreamingRecognitionResult, com.google.cloud.speech.v2.StreamingRecognitionResult.Builder, com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder> 
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v2.StreamingRecognitionResult,
-                com.google.cloud.speech.v2.StreamingRecognitionResult.Builder,
-                com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder>(
-                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v2.StreamingRecognitionResult, com.google.cloud.speech.v2.StreamingRecognitionResult.Builder, com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder>(
+                results_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1539,33 +1386,22 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsB
 
     private int speechEventType_ = 0;
     /**
-     *
-     *
      * 
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; * @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.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; * @param value The enum numeric value on the wire for speechEventType to set. * @return This builder for chaining. */ @@ -1576,44 +1412,28 @@ public Builder setSpeechEventTypeValue(int value) { return this; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; * @return The speechEventType. */ @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType - getSpeechEventType() { - com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType result = - com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.forNumber( - speechEventType_); - return result == null - ? com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED - : result; + public com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.forNumber(speechEventType_); + return result == null ? com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; * @param value The speechEventType to set. * @return This builder for chaining. */ - public Builder setSpeechEventType( - com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType value) { + public Builder setSpeechEventType(com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType value) { if (value == null) { throw new NullPointerException(); } @@ -1623,16 +1443,11 @@ public Builder setSpeechEventType( return this; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; * @return This builder for chaining. */ public Builder clearSpeechEventType() { @@ -1644,47 +1459,34 @@ public Builder clearSpeechEventType() { private com.google.protobuf.Duration speechEventOffset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - speechEventOffsetBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> speechEventOffsetBuilder_; /** - * - * *
      * Time offset between the beginning of the audio and event emission.
      * 
* * .google.protobuf.Duration speech_event_offset = 7; - * * @return Whether the speechEventOffset field is set. */ public boolean hasSpeechEventOffset() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Time offset between the beginning of the audio and event emission.
      * 
* * .google.protobuf.Duration speech_event_offset = 7; - * * @return The speechEventOffset. */ public com.google.protobuf.Duration getSpeechEventOffset() { if (speechEventOffsetBuilder_ == null) { - return speechEventOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : speechEventOffset_; + return speechEventOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEventOffset_; } else { return speechEventOffsetBuilder_.getMessage(); } } /** - * - * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1705,15 +1507,14 @@ public Builder setSpeechEventOffset(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Time offset between the beginning of the audio and event emission.
      * 
* * .google.protobuf.Duration speech_event_offset = 7; */ - public Builder setSpeechEventOffset(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setSpeechEventOffset( + com.google.protobuf.Duration.Builder builderForValue) { if (speechEventOffsetBuilder_ == null) { speechEventOffset_ = builderForValue.build(); } else { @@ -1724,8 +1525,6 @@ public Builder setSpeechEventOffset(com.google.protobuf.Duration.Builder builder return this; } /** - * - * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1734,9 +1533,9 @@ public Builder setSpeechEventOffset(com.google.protobuf.Duration.Builder builder */ public Builder mergeSpeechEventOffset(com.google.protobuf.Duration value) { if (speechEventOffsetBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && speechEventOffset_ != null - && speechEventOffset_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + speechEventOffset_ != null && + speechEventOffset_ != com.google.protobuf.Duration.getDefaultInstance()) { getSpeechEventOffsetBuilder().mergeFrom(value); } else { speechEventOffset_ = value; @@ -1749,8 +1548,6 @@ public Builder mergeSpeechEventOffset(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1768,8 +1565,6 @@ public Builder clearSpeechEventOffset() { return this; } /** - * - * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1782,8 +1577,6 @@ public com.google.protobuf.Duration.Builder getSpeechEventOffsetBuilder() { return getSpeechEventOffsetFieldBuilder().getBuilder(); } /** - * - * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1794,14 +1587,11 @@ public com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder() { if (speechEventOffsetBuilder_ != null) { return speechEventOffsetBuilder_.getMessageOrBuilder(); } else { - return speechEventOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : speechEventOffset_; + return speechEventOffset_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : speechEventOffset_; } } /** - * - * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1809,17 +1599,14 @@ public com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder() { * .google.protobuf.Duration speech_event_offset = 7; */ 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> getSpeechEventOffsetFieldBuilder() { if (speechEventOffsetBuilder_ == null) { - speechEventOffsetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getSpeechEventOffset(), getParentForChildren(), isClean()); + speechEventOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getSpeechEventOffset(), + getParentForChildren(), + isClean()); speechEventOffset_ = null; } return speechEventOffsetBuilder_; @@ -1827,47 +1614,34 @@ public com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder() { private com.google.cloud.speech.v2.RecognitionResponseMetadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionResponseMetadata, - com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, - com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> - metadataBuilder_; + com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> metadataBuilder_; /** - * - * *
      * Metadata about the recognition.
      * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; - * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Metadata about the recognition.
      * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; - * * @return The metadata. */ public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1888,8 +1662,6 @@ public Builder setMetadata(com.google.cloud.speech.v2.RecognitionResponseMetadat return this; } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1908,8 +1680,6 @@ public Builder setMetadata( return this; } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1918,10 +1688,9 @@ public Builder setMetadata( */ public Builder mergeMetadata(com.google.cloud.speech.v2.RecognitionResponseMetadata value) { if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && metadata_ != null - && metadata_ - != com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + metadata_ != null && + metadata_ != com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; @@ -1934,8 +1703,6 @@ public Builder mergeMetadata(com.google.cloud.speech.v2.RecognitionResponseMetad return this; } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1953,8 +1720,6 @@ public Builder clearMetadata() { return this; } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1967,8 +1732,6 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder getMetadat return getMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1979,14 +1742,11 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetada if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { - return metadata_ == null - ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? + com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; } } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1994,24 +1754,21 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetada * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionResponseMetadata, - com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, - com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> + com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionResponseMetadata, - com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, - com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); metadata_ = null; } return metadataBuilder_; } - @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); } @@ -2021,12 +1778,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognizeResponse) private static final com.google.cloud.speech.v2.StreamingRecognizeResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognizeResponse(); } @@ -2035,27 +1792,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2070,4 +1827,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.StreamingRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java similarity index 84% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java index 5ebe124a6264..adfef06e80a3 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface StreamingRecognizeResponseOrBuilder - extends +public interface StreamingRecognizeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognizeResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -38,10 +20,9 @@ public interface StreamingRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
    */
-  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.
@@ -56,8 +37,6 @@ public interface StreamingRecognizeResponseOrBuilder
    */
   com.google.cloud.speech.v2.StreamingRecognitionResult getResults(int index);
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -72,8 +51,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.
@@ -86,11 +63,9 @@ public interface StreamingRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
    */
-  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.
@@ -103,62 +78,47 @@ public interface StreamingRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
    */
-  com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResultsOrBuilder(int index);
+  com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResultsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; * @return The enum numeric value on the wire for speechEventType. */ int getSpeechEventTypeValue(); /** - * - * *
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; * @return The speechEventType. */ com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType getSpeechEventType(); /** - * - * *
    * Time offset between the beginning of the audio and event emission.
    * 
* * .google.protobuf.Duration speech_event_offset = 7; - * * @return Whether the speechEventOffset field is set. */ boolean hasSpeechEventOffset(); /** - * - * *
    * Time offset between the beginning of the audio and event emission.
    * 
* * .google.protobuf.Duration speech_event_offset = 7; - * * @return The speechEventOffset. */ com.google.protobuf.Duration getSpeechEventOffset(); /** - * - * *
    * Time offset between the beginning of the audio and event emission.
    * 
@@ -168,32 +128,24 @@ public interface StreamingRecognizeResponseOrBuilder com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder(); /** - * - * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; - * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** - * - * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; - * * @return The metadata. */ com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata(); /** - * - * *
    * Metadata about the recognition.
    * 
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java index 9c3e52e2e108..b719cb328c62 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [UndeleteCustomClass][google.cloud.speech.v2.Speech.UndeleteCustomClass]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.UndeleteCustomClassRequest}
  */
-public final class UndeleteCustomClassRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UndeleteCustomClassRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.UndeleteCustomClassRequest)
     UndeleteCustomClassRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UndeleteCustomClassRequest.newBuilder() to construct.
   private UndeleteCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private UndeleteCustomClassRequest() {
     name_ = "";
     etag_ = "";
@@ -46,47 +28,40 @@ private UndeleteCustomClassRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UndeleteCustomClassRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UndeleteCustomClassRequest.class,
-            com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder.class);
+            com.google.cloud.speech.v2.UndeleteCustomClassRequest.class, com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the CustomClass to undelete.
    * 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 @@ -95,33 +70,31 @@ 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 CustomClass to undelete.
    * 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 { @@ -132,15 +105,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the undeleted CustomClass, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -149,12 +119,9 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -162,7 +129,6 @@ public boolean getValidateOnly() {
    * 
* * string etag = 4; - * * @return The etag. */ @java.lang.Override @@ -171,15 +137,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -187,15 +152,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 4; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -204,7 +170,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,7 +181,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_); } @@ -239,7 +205,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, etag_); @@ -252,17 +219,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.v2.UndeleteCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UndeleteCustomClassRequest other = - (com.google.cloud.speech.v2.UndeleteCustomClassRequest) obj; + com.google.cloud.speech.v2.UndeleteCustomClassRequest other = (com.google.cloud.speech.v2.UndeleteCustomClassRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -277,7 +246,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -286,104 +256,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UndeleteCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UndeleteCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v2.UndeleteCustomClassRequest 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; } /** - * - * *
    * Request message for the
    * [UndeleteCustomClass][google.cloud.speech.v2.Speech.UndeleteCustomClass]
@@ -392,32 +354,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.UndeleteCustomClassRequest}
    */
-  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.v2.UndeleteCustomClassRequest)
       com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UndeleteCustomClassRequest.class,
-              com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder.class);
+              com.google.cloud.speech.v2.UndeleteCustomClassRequest.class, com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UndeleteCustomClassRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -429,9 +392,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
@@ -450,11 +413,8 @@ public com.google.cloud.speech.v2.UndeleteCustomClassRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UndeleteCustomClassRequest buildPartial() {
-      com.google.cloud.speech.v2.UndeleteCustomClassRequest result =
-          new com.google.cloud.speech.v2.UndeleteCustomClassRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.UndeleteCustomClassRequest result = new com.google.cloud.speech.v2.UndeleteCustomClassRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -476,39 +436,38 @@ private void buildPartial0(com.google.cloud.speech.v2.UndeleteCustomClassRequest
     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.v2.UndeleteCustomClassRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UndeleteCustomClassRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.UndeleteCustomClassRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -516,8 +475,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UndeleteCustomClassRequest other) {
-      if (other == com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -557,31 +515,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 24:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 24
-            case 34:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 24: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 24
+            case 34: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -591,29 +545,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the CustomClass to undelete.
      * 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; @@ -622,25 +571,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the CustomClass to undelete.
      * 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 { @@ -648,43 +594,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the CustomClass to undelete.
      * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the CustomClass to undelete.
      * 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() { @@ -694,25 +629,19 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the CustomClass to undelete.
      * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -720,17 +649,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the undeleted CustomClass, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -738,35 +664,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the undeleted CustomClass, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the undeleted CustomClass, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -778,8 +698,6 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -787,13 +705,13 @@ public Builder clearValidateOnly() {
      * 
* * string etag = 4; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -802,8 +720,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -811,14 +727,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 4; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -826,8 +743,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -835,22 +750,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 4; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -858,7 +769,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 4; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -868,8 +778,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -877,23 +785,21 @@ public Builder clearEtag() {
      * 
* * string etag = 4; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -903,12 +809,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UndeleteCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UndeleteCustomClassRequest) private static final com.google.cloud.speech.v2.UndeleteCustomClassRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UndeleteCustomClassRequest(); } @@ -917,27 +823,27 @@ public static com.google.cloud.speech.v2.UndeleteCustomClassRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeleteCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeleteCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -952,4 +858,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.UndeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java similarity index 60% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java index 3f2932465fef..5cb508666745 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java @@ -1,78 +1,48 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UndeleteCustomClassRequestOrBuilder - extends +public interface UndeleteCustomClassRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UndeleteCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the CustomClass to undelete.
    * 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.String getName(); /** - * - * *
    * Required. The name of the CustomClass to undelete.
    * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If set, validate the request and preview the undeleted CustomClass, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -80,13 +50,10 @@ public interface UndeleteCustomClassRequestOrBuilder
    * 
* * string etag = 4; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -94,8 +61,8 @@ public interface UndeleteCustomClassRequestOrBuilder
    * 
* * string etag = 4; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java index 76616b3d3e23..abf4b2329690 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [UndeletePhraseSet][google.cloud.speech.v2.Speech.UndeletePhraseSet]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.UndeletePhraseSetRequest}
  */
-public final class UndeletePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UndeletePhraseSetRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.UndeletePhraseSetRequest)
     UndeletePhraseSetRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UndeletePhraseSetRequest.newBuilder() to construct.
   private UndeletePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private UndeletePhraseSetRequest() {
     name_ = "";
     etag_ = "";
@@ -46,46 +28,39 @@ private UndeletePhraseSetRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UndeletePhraseSetRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UndeletePhraseSetRequest.class,
-            com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder.class);
+            com.google.cloud.speech.v2.UndeletePhraseSetRequest.class, com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the PhraseSet to undelete.
    * 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 @@ -94,32 +69,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 PhraseSet to undelete.
    * 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 { @@ -130,15 +103,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the undeleted PhraseSet, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -147,12 +117,9 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -160,7 +127,6 @@ public boolean getValidateOnly() {
    * 
* * string etag = 4; - * * @return The etag. */ @java.lang.Override @@ -169,15 +135,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -185,15 +150,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 4; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -202,7 +168,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,7 +179,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_); } @@ -237,7 +203,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, etag_); @@ -250,17 +217,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.v2.UndeletePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UndeletePhraseSetRequest other = - (com.google.cloud.speech.v2.UndeletePhraseSetRequest) obj; + com.google.cloud.speech.v2.UndeletePhraseSetRequest other = (com.google.cloud.speech.v2.UndeletePhraseSetRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -275,7 +244,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -284,103 +254,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UndeletePhraseSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UndeletePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest 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; } /** - * - * *
    * Request message for the
    * [UndeletePhraseSet][google.cloud.speech.v2.Speech.UndeletePhraseSet]
@@ -389,32 +352,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.UndeletePhraseSetRequest}
    */
-  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.v2.UndeletePhraseSetRequest)
       com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UndeletePhraseSetRequest.class,
-              com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder.class);
+              com.google.cloud.speech.v2.UndeletePhraseSetRequest.class, com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UndeletePhraseSetRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -426,9 +390,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -447,11 +411,8 @@ public com.google.cloud.speech.v2.UndeletePhraseSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UndeletePhraseSetRequest buildPartial() {
-      com.google.cloud.speech.v2.UndeletePhraseSetRequest result =
-          new com.google.cloud.speech.v2.UndeletePhraseSetRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.UndeletePhraseSetRequest result = new com.google.cloud.speech.v2.UndeletePhraseSetRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -473,39 +434,38 @@ private void buildPartial0(com.google.cloud.speech.v2.UndeletePhraseSetRequest r
     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.v2.UndeletePhraseSetRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UndeletePhraseSetRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.UndeletePhraseSetRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -513,8 +473,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UndeletePhraseSetRequest other) {
-      if (other == com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -554,31 +513,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 24:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 24
-            case 34:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 24: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 24
+            case 34: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -588,28 +543,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the PhraseSet to undelete.
      * 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; @@ -618,24 +568,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the PhraseSet to undelete.
      * 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 { @@ -643,41 +590,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the PhraseSet to undelete.
      * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the PhraseSet to undelete.
      * 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() { @@ -687,24 +623,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the PhraseSet to undelete.
      * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -712,17 +642,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the undeleted PhraseSet, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -730,35 +657,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the undeleted PhraseSet, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the undeleted PhraseSet, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -770,8 +691,6 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -779,13 +698,13 @@ public Builder clearValidateOnly() {
      * 
* * string etag = 4; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -794,8 +713,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -803,14 +720,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 4; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -818,8 +736,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -827,22 +743,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 4; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -850,7 +762,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 4; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -860,8 +771,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -869,23 +778,21 @@ public Builder clearEtag() {
      * 
* * string etag = 4; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -895,12 +802,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UndeletePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UndeletePhraseSetRequest) private static final com.google.cloud.speech.v2.UndeletePhraseSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UndeletePhraseSetRequest(); } @@ -909,27 +816,27 @@ public static com.google.cloud.speech.v2.UndeletePhraseSetRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeletePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeletePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -944,4 +851,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.UndeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java similarity index 60% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java index 57ddba361792..2e93ee02b6f0 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java @@ -1,76 +1,46 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UndeletePhraseSetRequestOrBuilder - extends +public interface UndeletePhraseSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UndeletePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the PhraseSet to undelete.
    * 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.String getName(); /** - * - * *
    * Required. The name of the PhraseSet to undelete.
    * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If set, validate the request and preview the undeleted PhraseSet, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -78,13 +48,10 @@ public interface UndeletePhraseSetRequestOrBuilder
    * 
* * string etag = 4; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -92,8 +59,8 @@ public interface UndeletePhraseSetRequestOrBuilder
    * 
* * string etag = 4; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java index bda5cf7ddc37..0f4d5175bc86 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [UndeleteRecognizer][google.cloud.speech.v2.Speech.UndeleteRecognizer]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.UndeleteRecognizerRequest}
  */
-public final class UndeleteRecognizerRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UndeleteRecognizerRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.UndeleteRecognizerRequest)
     UndeleteRecognizerRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UndeleteRecognizerRequest.newBuilder() to construct.
   private UndeleteRecognizerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private UndeleteRecognizerRequest() {
     name_ = "";
     etag_ = "";
@@ -46,46 +28,39 @@ private UndeleteRecognizerRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UndeleteRecognizerRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UndeleteRecognizerRequest.class,
-            com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder.class);
+            com.google.cloud.speech.v2.UndeleteRecognizerRequest.class, com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the Recognizer to undelete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * - * 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 @@ -94,32 +69,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 Recognizer to undelete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * - * 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 { @@ -130,15 +103,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the undeleted Recognizer, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -147,12 +117,9 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -160,7 +127,6 @@ public boolean getValidateOnly() {
    * 
* * string etag = 4; - * * @return The etag. */ @java.lang.Override @@ -169,15 +135,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -185,15 +150,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 4; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -202,7 +168,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,7 +179,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_); } @@ -237,7 +203,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, etag_); @@ -250,17 +217,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.v2.UndeleteRecognizerRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UndeleteRecognizerRequest other = - (com.google.cloud.speech.v2.UndeleteRecognizerRequest) obj; + com.google.cloud.speech.v2.UndeleteRecognizerRequest other = (com.google.cloud.speech.v2.UndeleteRecognizerRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -275,7 +244,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -284,103 +254,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UndeleteRecognizerRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UndeleteRecognizerRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest 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; } /** - * - * *
    * Request message for the
    * [UndeleteRecognizer][google.cloud.speech.v2.Speech.UndeleteRecognizer]
@@ -389,32 +352,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.UndeleteRecognizerRequest}
    */
-  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.v2.UndeleteRecognizerRequest)
       com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UndeleteRecognizerRequest.class,
-              com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder.class);
+              com.google.cloud.speech.v2.UndeleteRecognizerRequest.class, com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UndeleteRecognizerRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -426,9 +390,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
@@ -447,11 +411,8 @@ public com.google.cloud.speech.v2.UndeleteRecognizerRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UndeleteRecognizerRequest buildPartial() {
-      com.google.cloud.speech.v2.UndeleteRecognizerRequest result =
-          new com.google.cloud.speech.v2.UndeleteRecognizerRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.UndeleteRecognizerRequest result = new com.google.cloud.speech.v2.UndeleteRecognizerRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -473,39 +434,38 @@ private void buildPartial0(com.google.cloud.speech.v2.UndeleteRecognizerRequest
     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.v2.UndeleteRecognizerRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UndeleteRecognizerRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.UndeleteRecognizerRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -513,8 +473,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UndeleteRecognizerRequest other) {
-      if (other == com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -554,31 +513,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 24:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 24
-            case 34:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 24: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 24
+            case 34: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -588,28 +543,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the Recognizer to undelete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * - * 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; @@ -618,24 +568,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the Recognizer to undelete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * - * 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 { @@ -643,41 +590,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the Recognizer to undelete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the Recognizer to undelete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * - * 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() { @@ -687,24 +623,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the Recognizer to undelete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -712,17 +642,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the undeleted Recognizer, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -730,35 +657,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the undeleted Recognizer, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the undeleted Recognizer, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -770,8 +691,6 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -779,13 +698,13 @@ public Builder clearValidateOnly() {
      * 
* * string etag = 4; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -794,8 +713,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -803,14 +720,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 4; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -818,8 +736,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -827,22 +743,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 4; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -850,7 +762,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 4; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -860,8 +771,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -869,23 +778,21 @@ public Builder clearEtag() {
      * 
* * string etag = 4; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -895,12 +802,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UndeleteRecognizerRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UndeleteRecognizerRequest) private static final com.google.cloud.speech.v2.UndeleteRecognizerRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UndeleteRecognizerRequest(); } @@ -909,27 +816,27 @@ public static com.google.cloud.speech.v2.UndeleteRecognizerRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeleteRecognizerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeleteRecognizerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -944,4 +851,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.UndeleteRecognizerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java similarity index 60% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java index a1a11469b1d1..cb43fb97d00d 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java @@ -1,76 +1,46 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UndeleteRecognizerRequestOrBuilder - extends +public interface UndeleteRecognizerRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UndeleteRecognizerRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the Recognizer to undelete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * - * 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 Recognizer to undelete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * - * 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(); /** - * - * *
    * If set, validate the request and preview the undeleted Recognizer, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -78,13 +48,10 @@ public interface UndeleteRecognizerRequestOrBuilder
    * 
* * string etag = 4; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -92,8 +59,8 @@ public interface UndeleteRecognizerRequestOrBuilder
    * 
* * string etag = 4; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java index fcf2dc0642c1..1d449cc5fca2 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [UpdateConfig][google.cloud.speech.v2.Speech.UpdateConfig] method.
@@ -28,58 +11,53 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.UpdateConfigRequest}
  */
-public final class UpdateConfigRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateConfigRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.UpdateConfigRequest)
     UpdateConfigRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateConfigRequest.newBuilder() to construct.
   private UpdateConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private UpdateConfigRequest() {}
+  private UpdateConfigRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateConfigRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UpdateConfigRequest.class,
-            com.google.cloud.speech.v2.UpdateConfigRequest.Builder.class);
+            com.google.cloud.speech.v2.UpdateConfigRequest.class, com.google.cloud.speech.v2.UpdateConfigRequest.Builder.class);
   }
 
   public static final int CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.Config config_;
   /**
-   *
-   *
    * 
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ @java.lang.Override @@ -87,17 +65,13 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ @java.lang.Override @@ -105,16 +79,13 @@ public com.google.cloud.speech.v2.Config getConfig() { return config_ == null ? com.google.cloud.speech.v2.Config.getDefaultInstance() : config_; } /** - * - * *
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v2.ConfigOrBuilder getConfigOrBuilder() { @@ -124,14 +95,11 @@ public com.google.cloud.speech.v2.ConfigOrBuilder getConfigOrBuilder() { 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 @@ -139,14 +107,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 @@ -154,8 +119,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to be updated.
    * 
@@ -168,7 +131,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,7 +142,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()); } @@ -197,10 +160,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 (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -210,21 +175,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.v2.UpdateConfigRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UpdateConfigRequest other = - (com.google.cloud.speech.v2.UpdateConfigRequest) obj; + com.google.cloud.speech.v2.UpdateConfigRequest other = (com.google.cloud.speech.v2.UpdateConfigRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -250,104 +216,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.UpdateConfigRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.UpdateConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UpdateConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest 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; } /** - * - * *
    * Request message for the
    * [UpdateConfig][google.cloud.speech.v2.Speech.UpdateConfig] method.
@@ -355,32 +314,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.UpdateConfigRequest}
    */
-  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.v2.UpdateConfigRequest)
       com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UpdateConfigRequest.class,
-              com.google.cloud.speech.v2.UpdateConfigRequest.Builder.class);
+              com.google.cloud.speech.v2.UpdateConfigRequest.class, com.google.cloud.speech.v2.UpdateConfigRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UpdateConfigRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -399,9 +359,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
     }
 
     @java.lang.Override
@@ -420,11 +380,8 @@ public com.google.cloud.speech.v2.UpdateConfigRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UpdateConfigRequest buildPartial() {
-      com.google.cloud.speech.v2.UpdateConfigRequest result =
-          new com.google.cloud.speech.v2.UpdateConfigRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.UpdateConfigRequest result = new com.google.cloud.speech.v2.UpdateConfigRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -432,10 +389,14 @@ public com.google.cloud.speech.v2.UpdateConfigRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.UpdateConfigRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
+        result.config_ = configBuilder_ == null
+            ? config_
+            : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null
+            ? updateMask_
+            : updateMaskBuilder_.build();
       }
     }
 
@@ -443,39 +404,38 @@ private void buildPartial0(com.google.cloud.speech.v2.UpdateConfigRequest result
     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.v2.UpdateConfigRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UpdateConfigRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.UpdateConfigRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -516,25 +476,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getUpdateMaskFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -544,44 +505,32 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.speech.v2.Config config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.Config,
-            com.google.cloud.speech.v2.Config.Builder,
-            com.google.cloud.speech.v2.ConfigOrBuilder>
-        configBuilder_;
+        com.google.cloud.speech.v2.Config, com.google.cloud.speech.v2.Config.Builder, com.google.cloud.speech.v2.ConfigOrBuilder> configBuilder_;
     /**
-     *
-     *
      * 
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ public com.google.cloud.speech.v2.Config getConfig() { @@ -592,16 +541,13 @@ public com.google.cloud.speech.v2.Config getConfig() { } } /** - * - * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConfig(com.google.cloud.speech.v2.Config value) { if (configBuilder_ == null) { @@ -617,18 +563,16 @@ public Builder setConfig(com.google.cloud.speech.v2.Config value) { return this; } /** - * - * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setConfig(com.google.cloud.speech.v2.Config.Builder builderForValue) { + public Builder setConfig( + com.google.cloud.speech.v2.Config.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); } else { @@ -639,22 +583,19 @@ public Builder setConfig(com.google.cloud.speech.v2.Config.Builder builderForVal return this; } /** - * - * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConfig(com.google.cloud.speech.v2.Config value) { if (configBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && config_ != null - && config_ != com.google.cloud.speech.v2.Config.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + config_ != null && + config_ != com.google.cloud.speech.v2.Config.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -667,16 +608,13 @@ public Builder mergeConfig(com.google.cloud.speech.v2.Config value) { return this; } /** - * - * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConfig() { bitField0_ = (bitField0_ & ~0x00000001); @@ -689,16 +627,13 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.Config.Builder getConfigBuilder() { bitField0_ |= 0x00000001; @@ -706,48 +641,40 @@ public com.google.cloud.speech.v2.Config.Builder getConfigBuilder() { return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.ConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? com.google.cloud.speech.v2.Config.getDefaultInstance() : config_; + return config_ == null ? + com.google.cloud.speech.v2.Config.getDefaultInstance() : config_; } } /** - * - * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Config, - com.google.cloud.speech.v2.Config.Builder, - com.google.cloud.speech.v2.ConfigOrBuilder> + com.google.cloud.speech.v2.Config, com.google.cloud.speech.v2.Config.Builder, com.google.cloud.speech.v2.ConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Config, - com.google.cloud.speech.v2.Config.Builder, - com.google.cloud.speech.v2.ConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.Config, com.google.cloud.speech.v2.Config.Builder, com.google.cloud.speech.v2.ConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; @@ -755,47 +682,34 @@ public com.google.cloud.speech.v2.ConfigOrBuilder getConfigOrBuilder() { 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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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.
      * 
@@ -816,15 +730,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(); } else { @@ -835,8 +748,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -845,9 +756,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -860,8 +771,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -879,8 +788,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -893,8 +800,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -905,14 +810,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.
      * 
@@ -920,24 +822,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); } @@ -947,12 +846,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UpdateConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UpdateConfigRequest) private static final com.google.cloud.speech.v2.UpdateConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UpdateConfigRequest(); } @@ -961,27 +860,27 @@ public static com.google.cloud.speech.v2.UpdateConfigRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -996,4 +895,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.UpdateConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java index 934ae4f143d3..336b01b5753f 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java @@ -1,99 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UpdateConfigRequestOrBuilder - extends +public interface UpdateConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UpdateConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ com.google.cloud.speech.v2.Config getConfig(); /** - * - * *
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v2.ConfigOrBuilder getConfigOrBuilder(); /** - * - * *
    * 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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java index 15ac97450832..8634ee573ae2 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [UpdateCustomClass][google.cloud.speech.v2.Speech.UpdateCustomClass] method.
@@ -28,49 +11,46 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UpdateCustomClassRequest.class,
-            com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder.class);
+            com.google.cloud.speech.v2.UpdateCustomClassRequest.class, com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder.class);
   }
 
   public static final int CUSTOM_CLASS_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.CustomClass customClass_;
   /**
-   *
-   *
    * 
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -78,10 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ @java.lang.Override @@ -89,8 +66,6 @@ public boolean hasCustomClass() { return customClass_ != null; } /** - * - * *
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -98,21 +73,14 @@ public boolean hasCustomClass() {
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ @java.lang.Override public com.google.cloud.speech.v2.CustomClass getCustomClass() { - return customClass_ == null - ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; } /** - * - * *
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -120,29 +88,22 @@ public com.google.cloud.speech.v2.CustomClass getCustomClass() {
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder() { - return customClass_ == null - ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -150,15 +111,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -166,8 +124,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
@@ -183,15 +139,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int VALIDATE_ONLY_FIELD_NUMBER = 4;
   private boolean validateOnly_ = false;
   /**
-   *
-   *
    * 
    * If set, validate the request and preview the updated CustomClass, but do
    * not actually update it.
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -200,7 +153,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,7 +164,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()); } @@ -232,13 +185,16 @@ 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()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -248,23 +204,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.v2.UpdateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UpdateCustomClassRequest other = - (com.google.cloud.speech.v2.UpdateCustomClassRequest) obj; + com.google.cloud.speech.v2.UpdateCustomClassRequest other = (com.google.cloud.speech.v2.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 (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,110 +243,104 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v2.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.v2.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.v2.UpdateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.UpdateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.UpdateCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UpdateCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.UpdateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UpdateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [UpdateCustomClass][google.cloud.speech.v2.Speech.UpdateCustomClass] method.
@@ -396,32 +348,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.UpdateCustomClassRequest)
       com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UpdateCustomClassRequest.class,
-              com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder.class);
+              com.google.cloud.speech.v2.UpdateCustomClassRequest.class, com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UpdateCustomClassRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -441,9 +394,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
@@ -462,11 +415,8 @@ public com.google.cloud.speech.v2.UpdateCustomClassRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UpdateCustomClassRequest buildPartial() {
-      com.google.cloud.speech.v2.UpdateCustomClassRequest result =
-          new com.google.cloud.speech.v2.UpdateCustomClassRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.UpdateCustomClassRequest result = new com.google.cloud.speech.v2.UpdateCustomClassRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -474,11 +424,14 @@ public com.google.cloud.speech.v2.UpdateCustomClassRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.UpdateCustomClassRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.customClass_ =
-            customClassBuilder_ == null ? customClass_ : customClassBuilder_.build();
+        result.customClass_ = customClassBuilder_ == null
+            ? customClass_
+            : customClassBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null
+            ? updateMask_
+            : updateMaskBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -489,39 +442,38 @@ private void buildPartial0(com.google.cloud.speech.v2.UpdateCustomClassRequest r
     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.v2.UpdateCustomClassRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UpdateCustomClassRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.UpdateCustomClassRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -529,8 +481,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UpdateCustomClassRequest other) {
-      if (other == com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance()) return this;
       if (other.hasCustomClass()) {
         mergeCustomClass(other.getCustomClass());
       }
@@ -566,31 +517,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 32:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getCustomClassFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getUpdateMaskFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 32: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -600,18 +551,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.speech.v2.CustomClass customClass_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.CustomClass,
-            com.google.cloud.speech.v2.CustomClass.Builder,
-            com.google.cloud.speech.v2.CustomClassOrBuilder>
-        customClassBuilder_;
+        com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> customClassBuilder_;
     /**
-     *
-     *
      * 
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -619,18 +564,13 @@ public Builder mergeFrom(
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -638,24 +578,17 @@ public boolean hasCustomClass() {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ public com.google.cloud.speech.v2.CustomClass getCustomClass() { if (customClassBuilder_ == null) { - return customClass_ == null - ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; } else { return customClassBuilder_.getMessage(); } } /** - * - * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -663,9 +596,7 @@ public com.google.cloud.speech.v2.CustomClass getCustomClass() {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass value) { if (customClassBuilder_ == null) { @@ -681,8 +612,6 @@ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass value) { return this; } /** - * - * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -690,11 +619,10 @@ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass value) {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass.Builder builderForValue) { + public Builder setCustomClass( + com.google.cloud.speech.v2.CustomClass.Builder builderForValue) { if (customClassBuilder_ == null) { customClass_ = builderForValue.build(); } else { @@ -705,8 +633,6 @@ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass.Builder bui return this; } /** - * - * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -714,15 +640,13 @@ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass.Builder bui
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCustomClass(com.google.cloud.speech.v2.CustomClass value) { if (customClassBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && customClass_ != null - && customClass_ != com.google.cloud.speech.v2.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + customClass_ != null && + customClass_ != com.google.cloud.speech.v2.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -735,8 +659,6 @@ public Builder mergeCustomClass(com.google.cloud.speech.v2.CustomClass value) { return this; } /** - * - * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -744,9 +666,7 @@ public Builder mergeCustomClass(com.google.cloud.speech.v2.CustomClass value) {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCustomClass() { bitField0_ = (bitField0_ & ~0x00000001); @@ -759,8 +679,6 @@ public Builder clearCustomClass() { return this; } /** - * - * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -768,9 +686,7 @@ public Builder clearCustomClass() {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassBuilder() { bitField0_ |= 0x00000001; @@ -778,8 +694,6 @@ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassBuilder() { return getCustomClassFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -787,22 +701,17 @@ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassBuilder() {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder() { if (customClassBuilder_ != null) { return customClassBuilder_.getMessageOrBuilder(); } else { - return customClass_ == null - ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? + com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; } } /** - * - * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -810,22 +719,17 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder()
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, - com.google.cloud.speech.v2.CustomClass.Builder, - com.google.cloud.speech.v2.CustomClassOrBuilder> + com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> getCustomClassFieldBuilder() { if (customClassBuilder_ == null) { - customClassBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, - com.google.cloud.speech.v2.CustomClass.Builder, - com.google.cloud.speech.v2.CustomClassOrBuilder>( - getCustomClass(), getParentForChildren(), isClean()); + customClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder>( + getCustomClass(), + getParentForChildren(), + isClean()); customClass_ = null; } return customClassBuilder_; @@ -833,49 +737,36 @@ public com.google.cloud.speech.v2.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. If empty, all fields are considered for
      * update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
      * 
* * .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. If empty, all fields are considered for
      * update.
@@ -897,8 +788,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
@@ -906,7 +795,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .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();
       } else {
@@ -917,8 +807,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
@@ -928,9 +816,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateMask_ != null
-            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateMask_ != null &&
+          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -943,8 +831,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
@@ -963,8 +849,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
@@ -978,8 +862,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
@@ -991,14 +873,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. If empty, all fields are considered for
      * update.
@@ -1007,33 +886,27 @@ 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_;
     }
 
-    private boolean validateOnly_;
+    private boolean validateOnly_ ;
     /**
-     *
-     *
      * 
      * If set, validate the request and preview the updated CustomClass, but do
      * not actually update it.
      * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -1041,35 +914,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the updated CustomClass, but do
      * not actually update it.
      * 
* * bool validate_only = 4; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the updated CustomClass, but do
      * not actually update it.
      * 
* * bool validate_only = 4; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1078,9 +945,9 @@ public Builder clearValidateOnly() { 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); } @@ -1090,12 +957,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UpdateCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UpdateCustomClassRequest) private static final com.google.cloud.speech.v2.UpdateCustomClassRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UpdateCustomClassRequest(); } @@ -1104,27 +971,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1139,4 +1006,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.UpdateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java index fcd686776acc..38d67c91c3d4 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UpdateCustomClassRequestOrBuilder - extends +public interface UpdateCustomClassRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UpdateCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -33,16 +15,11 @@ public interface UpdateCustomClassRequestOrBuilder
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ boolean hasCustomClass(); /** - * - * *
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -50,16 +27,11 @@ public interface UpdateCustomClassRequestOrBuilder
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ com.google.cloud.speech.v2.CustomClass getCustomClass(); /** - * - * *
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -67,41 +39,31 @@ public interface UpdateCustomClassRequestOrBuilder
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder(); /** - * - * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
@@ -112,15 +74,12 @@ public interface UpdateCustomClassRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * If set, validate the request and preview the updated CustomClass, but do
    * not actually update it.
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java similarity index 68% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java index 34f1dea70e2f..0308a920ff72 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [UpdatePhraseSet][google.cloud.speech.v2.Speech.UpdatePhraseSet] method.
@@ -28,59 +11,53 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UpdatePhraseSetRequest.class,
-            com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder.class);
+            com.google.cloud.speech.v2.UpdatePhraseSetRequest.class, com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder.class);
   }
 
   public static final int PHRASE_SET_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.PhraseSet phraseSet_;
   /**
-   *
-   *
    * 
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -88,58 +65,42 @@ public boolean hasPhraseSet() { return phraseSet_ != null; } /** - * - * *
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSet getPhraseSet() { - return phraseSet_ == null - ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; } /** - * - * *
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder() { - return phraseSet_ == null - ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -147,15 +108,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -163,8 +121,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -180,15 +136,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int VALIDATE_ONLY_FIELD_NUMBER = 4;
   private boolean validateOnly_ = false;
   /**
-   *
-   *
    * 
    * If set, validate the request and preview the updated PhraseSet, but do not
    * actually update it.
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -197,7 +150,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +161,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()); } @@ -229,13 +182,16 @@ 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()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -245,23 +201,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.v2.UpdatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UpdatePhraseSetRequest other = - (com.google.cloud.speech.v2.UpdatePhraseSetRequest) obj; + com.google.cloud.speech.v2.UpdatePhraseSetRequest other = (com.google.cloud.speech.v2.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 (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -282,110 +240,104 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v2.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.v2.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.v2.UpdatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.UpdatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.UpdatePhraseSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UpdatePhraseSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.UpdatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UpdatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [UpdatePhraseSet][google.cloud.speech.v2.Speech.UpdatePhraseSet] method.
@@ -393,32 +345,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.UpdatePhraseSetRequest)
       com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UpdatePhraseSetRequest.class,
-              com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder.class);
+              com.google.cloud.speech.v2.UpdatePhraseSetRequest.class, com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UpdatePhraseSetRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -438,9 +391,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -459,11 +412,8 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UpdatePhraseSetRequest buildPartial() {
-      com.google.cloud.speech.v2.UpdatePhraseSetRequest result =
-          new com.google.cloud.speech.v2.UpdatePhraseSetRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.UpdatePhraseSetRequest result = new com.google.cloud.speech.v2.UpdatePhraseSetRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -471,10 +421,14 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.UpdatePhraseSetRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build();
+        result.phraseSet_ = phraseSetBuilder_ == null
+            ? phraseSet_
+            : phraseSetBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null
+            ? updateMask_
+            : updateMaskBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -485,39 +439,38 @@ private void buildPartial0(com.google.cloud.speech.v2.UpdatePhraseSetRequest res
     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.v2.UpdatePhraseSetRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UpdatePhraseSetRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.UpdatePhraseSetRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -525,8 +478,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UpdatePhraseSetRequest other) {
-      if (other == com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance()) return this;
       if (other.hasPhraseSet()) {
         mergePhraseSet(other.getPhraseSet());
       }
@@ -562,31 +514,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 32:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getPhraseSetFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getUpdateMaskFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 32: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -596,69 +548,49 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.speech.v2.PhraseSet phraseSet_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.PhraseSet,
-            com.google.cloud.speech.v2.PhraseSet.Builder,
-            com.google.cloud.speech.v2.PhraseSetOrBuilder>
-        phraseSetBuilder_;
+        com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> phraseSetBuilder_;
     /**
-     *
-     *
      * 
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ public com.google.cloud.speech.v2.PhraseSet getPhraseSet() { if (phraseSetBuilder_ == null) { - return phraseSet_ == null - ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; } else { return phraseSetBuilder_.getMessage(); } } /** - * - * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetBuilder_ == null) { @@ -674,19 +606,16 @@ public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** - * - * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { + public Builder setPhraseSet( + com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { if (phraseSetBuilder_ == null) { phraseSet_ = builderForValue.build(); } else { @@ -697,23 +626,19 @@ public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet.Builder builder return this; } /** - * - * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && phraseSet_ != null - && phraseSet_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + phraseSet_ != null && + phraseSet_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -726,17 +651,13 @@ public Builder mergePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** - * - * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPhraseSet() { bitField0_ = (bitField0_ & ~0x00000001); @@ -749,17 +670,13 @@ public Builder clearPhraseSet() { return this; } /** - * - * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetBuilder() { bitField0_ |= 0x00000001; @@ -767,52 +684,40 @@ public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetBuilder() { return getPhraseSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder() { if (phraseSetBuilder_ != null) { return phraseSetBuilder_.getMessageOrBuilder(); } else { - return phraseSet_ == null - ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? + com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; } } /** - * - * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, - com.google.cloud.speech.v2.PhraseSet.Builder, - com.google.cloud.speech.v2.PhraseSetOrBuilder> + com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> getPhraseSetFieldBuilder() { if (phraseSetBuilder_ == null) { - phraseSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, - com.google.cloud.speech.v2.PhraseSet.Builder, - com.google.cloud.speech.v2.PhraseSetOrBuilder>( - getPhraseSet(), getParentForChildren(), isClean()); + phraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder>( + getPhraseSet(), + getParentForChildren(), + isClean()); phraseSet_ = null; } return phraseSetBuilder_; @@ -820,49 +725,36 @@ public com.google.cloud.speech.v2.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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
      * 
* * .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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -884,8 +776,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -893,7 +783,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .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();
       } else {
@@ -904,8 +795,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -915,9 +804,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateMask_ != null
-            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateMask_ != null &&
+          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -930,8 +819,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -950,8 +837,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -965,8 +850,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -978,14 +861,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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -994,33 +874,27 @@ 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_;
     }
 
-    private boolean validateOnly_;
+    private boolean validateOnly_ ;
     /**
-     *
-     *
      * 
      * If set, validate the request and preview the updated PhraseSet, but do not
      * actually update it.
      * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -1028,35 +902,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the updated PhraseSet, but do not
      * actually update it.
      * 
* * bool validate_only = 4; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the updated PhraseSet, but do not
      * actually update it.
      * 
* * bool validate_only = 4; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1065,9 +933,9 @@ public Builder clearValidateOnly() { 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); } @@ -1077,12 +945,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UpdatePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UpdatePhraseSetRequest) private static final com.google.cloud.speech.v2.UpdatePhraseSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UpdatePhraseSetRequest(); } @@ -1091,27 +959,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1126,4 +994,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.UpdatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java index c45c34e09307..216191fec0a8 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java @@ -1,104 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UpdatePhraseSetRequestOrBuilder - extends +public interface UpdatePhraseSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UpdatePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** - * - * *
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ com.google.cloud.speech.v2.PhraseSet getPhraseSet(); /** - * - * *
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder(); /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -109,15 +71,12 @@ public interface UpdatePhraseSetRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * If set, validate the request and preview the updated PhraseSet, but do not
    * actually update it.
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java index cdc3d817982a..c8155b5da2ac 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [UpdateRecognizer][google.cloud.speech.v2.Speech.UpdateRecognizer] method.
@@ -28,59 +11,53 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.UpdateRecognizerRequest}
  */
-public final class UpdateRecognizerRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateRecognizerRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.UpdateRecognizerRequest)
     UpdateRecognizerRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateRecognizerRequest.newBuilder() to construct.
   private UpdateRecognizerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private UpdateRecognizerRequest() {}
+  private UpdateRecognizerRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateRecognizerRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UpdateRecognizerRequest.class,
-            com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder.class);
+            com.google.cloud.speech.v2.UpdateRecognizerRequest.class, com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder.class);
   }
 
   public static final int RECOGNIZER_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.Recognizer recognizer_;
   /**
-   *
-   *
    * 
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the recognizer field is set. */ @java.lang.Override @@ -88,58 +65,42 @@ public boolean hasRecognizer() { return recognizer_ != null; } /** - * - * *
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The recognizer. */ @java.lang.Override public com.google.cloud.speech.v2.Recognizer getRecognizer() { - return recognizer_ == null - ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() - : recognizer_; + return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; } /** - * - * *
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder() { - return recognizer_ == null - ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() - : recognizer_; + return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -147,15 +108,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -163,8 +121,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
@@ -180,15 +136,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int VALIDATE_ONLY_FIELD_NUMBER = 4;
   private boolean validateOnly_ = false;
   /**
-   *
-   *
    * 
    * If set, validate the request and preview the updated Recognizer, but do not
    * actually update it.
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -197,7 +150,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +161,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 (recognizer_ != null) { output.writeMessage(1, getRecognizer()); } @@ -229,13 +182,16 @@ public int getSerializedSize() { size = 0; if (recognizer_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRecognizer()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRecognizer()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -245,23 +201,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.v2.UpdateRecognizerRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UpdateRecognizerRequest other = - (com.google.cloud.speech.v2.UpdateRecognizerRequest) obj; + com.google.cloud.speech.v2.UpdateRecognizerRequest other = (com.google.cloud.speech.v2.UpdateRecognizerRequest) obj; if (hasRecognizer() != other.hasRecognizer()) return false; if (hasRecognizer()) { - if (!getRecognizer().equals(other.getRecognizer())) return false; + if (!getRecognizer() + .equals(other.getRecognizer())) 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 (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -282,110 +240,104 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UpdateRecognizerRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UpdateRecognizerRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest 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; } /** - * - * *
    * Request message for the
    * [UpdateRecognizer][google.cloud.speech.v2.Speech.UpdateRecognizer] method.
@@ -393,32 +345,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.UpdateRecognizerRequest}
    */
-  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.v2.UpdateRecognizerRequest)
       com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UpdateRecognizerRequest.class,
-              com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder.class);
+              com.google.cloud.speech.v2.UpdateRecognizerRequest.class, com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UpdateRecognizerRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -438,9 +391,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
@@ -459,11 +412,8 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UpdateRecognizerRequest buildPartial() {
-      com.google.cloud.speech.v2.UpdateRecognizerRequest result =
-          new com.google.cloud.speech.v2.UpdateRecognizerRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.UpdateRecognizerRequest result = new com.google.cloud.speech.v2.UpdateRecognizerRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -471,10 +421,14 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.UpdateRecognizerRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.recognizer_ = recognizerBuilder_ == null ? recognizer_ : recognizerBuilder_.build();
+        result.recognizer_ = recognizerBuilder_ == null
+            ? recognizer_
+            : recognizerBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null
+            ? updateMask_
+            : updateMaskBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -485,39 +439,38 @@ private void buildPartial0(com.google.cloud.speech.v2.UpdateRecognizerRequest re
     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.v2.UpdateRecognizerRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UpdateRecognizerRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.UpdateRecognizerRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -525,8 +478,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UpdateRecognizerRequest other) {
-      if (other == com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance()) return this;
       if (other.hasRecognizer()) {
         mergeRecognizer(other.getRecognizer());
       }
@@ -562,31 +514,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getRecognizerFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 32:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getRecognizerFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getUpdateMaskFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 32: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -596,69 +548,49 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.speech.v2.Recognizer recognizer_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.Recognizer,
-            com.google.cloud.speech.v2.Recognizer.Builder,
-            com.google.cloud.speech.v2.RecognizerOrBuilder>
-        recognizerBuilder_;
+        com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> recognizerBuilder_;
     /**
-     *
-     *
      * 
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the recognizer field is set. */ public boolean hasRecognizer() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The recognizer. */ public com.google.cloud.speech.v2.Recognizer getRecognizer() { if (recognizerBuilder_ == null) { - return recognizer_ == null - ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() - : recognizer_; + return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; } else { return recognizerBuilder_.getMessage(); } } /** - * - * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer value) { if (recognizerBuilder_ == null) { @@ -674,19 +606,16 @@ public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer value) { return this; } /** - * - * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { + public Builder setRecognizer( + com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { if (recognizerBuilder_ == null) { recognizer_ = builderForValue.build(); } else { @@ -697,23 +626,19 @@ public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer.Builder build return this; } /** - * - * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeRecognizer(com.google.cloud.speech.v2.Recognizer value) { if (recognizerBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && recognizer_ != null - && recognizer_ != com.google.cloud.speech.v2.Recognizer.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + recognizer_ != null && + recognizer_ != com.google.cloud.speech.v2.Recognizer.getDefaultInstance()) { getRecognizerBuilder().mergeFrom(value); } else { recognizer_ = value; @@ -726,17 +651,13 @@ public Builder mergeRecognizer(com.google.cloud.speech.v2.Recognizer value) { return this; } /** - * - * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRecognizer() { bitField0_ = (bitField0_ & ~0x00000001); @@ -749,17 +670,13 @@ public Builder clearRecognizer() { return this; } /** - * - * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.Recognizer.Builder getRecognizerBuilder() { bitField0_ |= 0x00000001; @@ -767,52 +684,40 @@ public com.google.cloud.speech.v2.Recognizer.Builder getRecognizerBuilder() { return getRecognizerFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder() { if (recognizerBuilder_ != null) { return recognizerBuilder_.getMessageOrBuilder(); } else { - return recognizer_ == null - ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() - : recognizer_; + return recognizer_ == null ? + com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; } } /** - * - * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, - com.google.cloud.speech.v2.Recognizer.Builder, - com.google.cloud.speech.v2.RecognizerOrBuilder> + com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> getRecognizerFieldBuilder() { if (recognizerBuilder_ == null) { - recognizerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, - com.google.cloud.speech.v2.Recognizer.Builder, - com.google.cloud.speech.v2.RecognizerOrBuilder>( - getRecognizer(), getParentForChildren(), isClean()); + recognizerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder>( + getRecognizer(), + getParentForChildren(), + isClean()); recognizer_ = null; } return recognizerBuilder_; @@ -820,49 +725,36 @@ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder() { 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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
      * 
* * .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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -884,8 +776,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -893,7 +783,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .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();
       } else {
@@ -904,8 +795,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -915,9 +804,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateMask_ != null
-            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateMask_ != null &&
+          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -930,8 +819,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -950,8 +837,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -965,8 +850,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -978,14 +861,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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -994,33 +874,27 @@ 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_;
     }
 
-    private boolean validateOnly_;
+    private boolean validateOnly_ ;
     /**
-     *
-     *
      * 
      * If set, validate the request and preview the updated Recognizer, but do not
      * actually update it.
      * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -1028,35 +902,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the updated Recognizer, but do not
      * actually update it.
      * 
* * bool validate_only = 4; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the updated Recognizer, but do not
      * actually update it.
      * 
* * bool validate_only = 4; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1065,9 +933,9 @@ public Builder clearValidateOnly() { 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); } @@ -1077,12 +945,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UpdateRecognizerRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UpdateRecognizerRequest) private static final com.google.cloud.speech.v2.UpdateRecognizerRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UpdateRecognizerRequest(); } @@ -1091,27 +959,27 @@ public static com.google.cloud.speech.v2.UpdateRecognizerRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateRecognizerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateRecognizerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1126,4 +994,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.UpdateRecognizerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java index b2625dfe5eeb..4ee8739be893 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java @@ -1,104 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UpdateRecognizerRequestOrBuilder - extends +public interface UpdateRecognizerRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UpdateRecognizerRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the recognizer field is set. */ boolean hasRecognizer(); /** - * - * *
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The recognizer. */ com.google.cloud.speech.v2.Recognizer getRecognizer(); /** - * - * *
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder(); /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
@@ -109,15 +71,12 @@ public interface UpdateRecognizerRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * If set, validate the request and preview the updated Recognizer, but do not
    * actually update it.
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java similarity index 77% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java index d4d3f21f5b70..50feb29138ee 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Word-specific information for recognized words.
  * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = ""; speakerLabel_ = ""; @@ -44,35 +26,32 @@ private WordInfo() { @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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_WordInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.WordInfo.class, - com.google.cloud.speech.v2.WordInfo.Builder.class); + com.google.cloud.speech.v2.WordInfo.class, com.google.cloud.speech.v2.WordInfo.Builder.class); } public static final int START_OFFSET_FIELD_NUMBER = 1; private com.google.protobuf.Duration startOffset_; /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -83,7 +62,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.protobuf.Duration start_offset = 1; - * * @return Whether the startOffset field is set. */ @java.lang.Override @@ -91,8 +69,6 @@ public boolean hasStartOffset() { return startOffset_ != null; } /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -103,7 +79,6 @@ public boolean hasStartOffset() {
    * 
* * .google.protobuf.Duration start_offset = 1; - * * @return The startOffset. */ @java.lang.Override @@ -111,8 +86,6 @@ public com.google.protobuf.Duration getStartOffset() { return startOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startOffset_; } /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -132,8 +105,6 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
   public static final int END_OFFSET_FIELD_NUMBER = 2;
   private com.google.protobuf.Duration endOffset_;
   /**
-   *
-   *
    * 
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -144,7 +115,6 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
    * 
* * .google.protobuf.Duration end_offset = 2; - * * @return Whether the endOffset field is set. */ @java.lang.Override @@ -152,8 +122,6 @@ public boolean hasEndOffset() { return endOffset_ != null; } /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -164,7 +132,6 @@ public boolean hasEndOffset() {
    * 
* * .google.protobuf.Duration end_offset = 2; - * * @return The endOffset. */ @java.lang.Override @@ -172,8 +139,6 @@ public com.google.protobuf.Duration getEndOffset() { return endOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endOffset_; } /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -191,18 +156,14 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
   }
 
   public static final int WORD_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object word_ = "";
   /**
-   *
-   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; - * * @return The word. */ @java.lang.Override @@ -211,29 +172,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 { @@ -244,8 +205,6 @@ public com.google.protobuf.ByteString getWordBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_ = 0F; /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -258,7 +217,6 @@ public com.google.protobuf.ByteString getWordBytes() {
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -267,12 +225,9 @@ public float getConfidence() { } public static final int SPEAKER_LABEL_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object speakerLabel_ = ""; /** - * - * *
    * A distinct label is assigned for every speaker within the audio. This field
    * specifies which one of those speakers was detected to have spoken this
@@ -282,7 +237,6 @@ public float getConfidence() {
    * 
* * string speaker_label = 6; - * * @return The speakerLabel. */ @java.lang.Override @@ -291,15 +245,14 @@ public java.lang.String getSpeakerLabel() { 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(); speakerLabel_ = s; return s; } } /** - * - * *
    * A distinct label is assigned for every speaker within the audio. This field
    * specifies which one of those speakers was detected to have spoken this
@@ -309,15 +262,16 @@ public java.lang.String getSpeakerLabel() {
    * 
* * string speaker_label = 6; - * * @return The bytes for speakerLabel. */ @java.lang.Override - public com.google.protobuf.ByteString getSpeakerLabelBytes() { + public com.google.protobuf.ByteString + getSpeakerLabelBytes() { java.lang.Object ref = speakerLabel_; 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); speakerLabel_ = b; return b; } else { @@ -326,7 +280,6 @@ public com.google.protobuf.ByteString getSpeakerLabelBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -338,7 +291,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 (startOffset_ != null) { output.writeMessage(1, getStartOffset()); } @@ -364,16 +318,19 @@ public int getSerializedSize() { size = 0; if (startOffset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartOffset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartOffset()); } if (endOffset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndOffset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndOffset()); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(speakerLabel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, speakerLabel_); @@ -386,7 +343,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.v2.WordInfo)) { return super.equals(obj); @@ -395,16 +352,21 @@ public boolean equals(final java.lang.Object obj) { if (hasStartOffset() != other.hasStartOffset()) return false; if (hasStartOffset()) { - if (!getStartOffset().equals(other.getStartOffset())) return false; + if (!getStartOffset() + .equals(other.getStartOffset())) return false; } if (hasEndOffset() != other.hasEndOffset()) return false; if (hasEndOffset()) { - if (!getEndOffset().equals(other.getEndOffset())) return false; + if (!getEndOffset() + .equals(other.getEndOffset())) 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 (!getSpeakerLabel().equals(other.getSpeakerLabel())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; + if (!getSpeakerLabel() + .equals(other.getSpeakerLabel())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -427,7 +389,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_LABEL_FIELD_NUMBER; hash = (53 * hash) + getSpeakerLabel().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -435,135 +398,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.WordInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.WordInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.WordInfo parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.speech.v2.WordInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.WordInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.WordInfo) com.google.cloud.speech.v2.WordInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_WordInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.WordInfo.class, - com.google.cloud.speech.v2.WordInfo.Builder.class); + com.google.cloud.speech.v2.WordInfo.class, com.google.cloud.speech.v2.WordInfo.Builder.class); } // Construct using com.google.cloud.speech.v2.WordInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -585,9 +543,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_WordInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_WordInfo_descriptor; } @java.lang.Override @@ -607,9 +565,7 @@ public com.google.cloud.speech.v2.WordInfo build() { @java.lang.Override public com.google.cloud.speech.v2.WordInfo buildPartial() { com.google.cloud.speech.v2.WordInfo result = new com.google.cloud.speech.v2.WordInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -617,11 +573,14 @@ public com.google.cloud.speech.v2.WordInfo buildPartial() { private void buildPartial0(com.google.cloud.speech.v2.WordInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startOffset_ = - startOffsetBuilder_ == null ? startOffset_ : startOffsetBuilder_.build(); + result.startOffset_ = startOffsetBuilder_ == null + ? startOffset_ + : startOffsetBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endOffset_ = endOffsetBuilder_ == null ? endOffset_ : endOffsetBuilder_.build(); + result.endOffset_ = endOffsetBuilder_ == null + ? endOffset_ + : endOffsetBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.word_ = word_; @@ -638,39 +597,38 @@ private void buildPartial0(com.google.cloud.speech.v2.WordInfo result) { 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.v2.WordInfo) { - return mergeFrom((com.google.cloud.speech.v2.WordInfo) other); + return mergeFrom((com.google.cloud.speech.v2.WordInfo)other); } else { super.mergeFrom(other); return this; @@ -724,43 +682,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStartOffsetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndOffsetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - word_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 37: - { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000008; - break; - } // case 37 - case 50: - { - speakerLabel_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStartOffsetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndOffsetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + word_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 37: { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + case 50: { + speakerLabel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -770,18 +726,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Duration startOffset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - startOffsetBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> startOffsetBuilder_; /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -792,15 +742,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_offset = 1; - * * @return Whether the startOffset field is set. */ public boolean hasStartOffset() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -811,21 +758,16 @@ public boolean hasStartOffset() {
      * 
* * .google.protobuf.Duration start_offset = 1; - * * @return The startOffset. */ public com.google.protobuf.Duration getStartOffset() { if (startOffsetBuilder_ == null) { - return startOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : startOffset_; + return startOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startOffset_; } else { return startOffsetBuilder_.getMessage(); } } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -851,8 +793,6 @@ public Builder setStartOffset(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.
@@ -864,7 +804,8 @@ public Builder setStartOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration start_offset = 1;
      */
-    public Builder setStartOffset(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setStartOffset(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (startOffsetBuilder_ == null) {
         startOffset_ = builderForValue.build();
       } else {
@@ -875,8 +816,6 @@ public Builder setStartOffset(com.google.protobuf.Duration.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -890,9 +829,9 @@ public Builder setStartOffset(com.google.protobuf.Duration.Builder builderForVal
      */
     public Builder mergeStartOffset(com.google.protobuf.Duration value) {
       if (startOffsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && startOffset_ != null
-            && startOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          startOffset_ != null &&
+          startOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getStartOffsetBuilder().mergeFrom(value);
         } else {
           startOffset_ = value;
@@ -905,8 +844,6 @@ public Builder mergeStartOffset(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.
@@ -929,8 +866,6 @@ public Builder clearStartOffset() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -948,8 +883,6 @@ public com.google.protobuf.Duration.Builder getStartOffsetBuilder() {
       return getStartOffsetFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -965,14 +898,11 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
       if (startOffsetBuilder_ != null) {
         return startOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return startOffset_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : startOffset_;
+        return startOffset_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : startOffset_;
       }
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -985,17 +915,14 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
      * .google.protobuf.Duration start_offset = 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> 
         getStartOffsetFieldBuilder() {
       if (startOffsetBuilder_ == null) {
-        startOffsetBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getStartOffset(), getParentForChildren(), isClean());
+        startOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getStartOffset(),
+                getParentForChildren(),
+                isClean());
         startOffset_ = null;
       }
       return startOffsetBuilder_;
@@ -1003,13 +930,8 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
 
     private com.google.protobuf.Duration endOffset_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        endOffsetBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> endOffsetBuilder_;
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1020,15 +942,12 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
      * 
* * .google.protobuf.Duration end_offset = 2; - * * @return Whether the endOffset field is set. */ public boolean hasEndOffset() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1039,7 +958,6 @@ public boolean hasEndOffset() {
      * 
* * .google.protobuf.Duration end_offset = 2; - * * @return The endOffset. */ public com.google.protobuf.Duration getEndOffset() { @@ -1050,8 +968,6 @@ public com.google.protobuf.Duration getEndOffset() { } } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1077,8 +993,6 @@ public Builder setEndOffset(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.
@@ -1090,7 +1004,8 @@ public Builder setEndOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration end_offset = 2;
      */
-    public Builder setEndOffset(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setEndOffset(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (endOffsetBuilder_ == null) {
         endOffset_ = builderForValue.build();
       } else {
@@ -1101,8 +1016,6 @@ public Builder setEndOffset(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.
@@ -1116,9 +1029,9 @@ public Builder setEndOffset(com.google.protobuf.Duration.Builder builderForValue
      */
     public Builder mergeEndOffset(com.google.protobuf.Duration value) {
       if (endOffsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && endOffset_ != null
-            && endOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          endOffset_ != null &&
+          endOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getEndOffsetBuilder().mergeFrom(value);
         } else {
           endOffset_ = value;
@@ -1131,8 +1044,6 @@ public Builder mergeEndOffset(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.
@@ -1155,8 +1066,6 @@ public Builder clearEndOffset() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1174,8 +1083,6 @@ public com.google.protobuf.Duration.Builder getEndOffsetBuilder() {
       return getEndOffsetFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1191,12 +1098,11 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
       if (endOffsetBuilder_ != null) {
         return endOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return endOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endOffset_;
+        return endOffset_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : endOffset_;
       }
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1209,17 +1115,14 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
      * .google.protobuf.Duration end_offset = 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> 
         getEndOffsetFieldBuilder() {
       if (endOffsetBuilder_ == null) {
-        endOffsetBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getEndOffset(), getParentForChildren(), isClean());
+        endOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getEndOffset(),
+                getParentForChildren(),
+                isClean());
         endOffset_ = null;
       }
       return endOffsetBuilder_;
@@ -1227,20 +1130,18 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
 
     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; @@ -1249,21 +1150,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 { @@ -1271,35 +1171,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWord( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } word_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @return This builder for chaining. */ public Builder clearWord() { @@ -1309,21 +1202,17 @@ public Builder clearWord() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); word_ = value; bitField0_ |= 0x00000004; @@ -1331,10 +1220,8 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) { 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
@@ -1347,7 +1234,6 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1355,8 +1241,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
@@ -1369,20 +1253,17 @@ public float getConfidence() {
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000008; 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
@@ -1395,7 +1276,6 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -1407,8 +1287,6 @@ public Builder clearConfidence() { private java.lang.Object speakerLabel_ = ""; /** - * - * *
      * A distinct label is assigned for every speaker within the audio. This field
      * specifies which one of those speakers was detected to have spoken this
@@ -1418,13 +1296,13 @@ public Builder clearConfidence() {
      * 
* * string speaker_label = 6; - * * @return The speakerLabel. */ public java.lang.String getSpeakerLabel() { java.lang.Object ref = speakerLabel_; 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(); speakerLabel_ = s; return s; @@ -1433,8 +1311,6 @@ public java.lang.String getSpeakerLabel() { } } /** - * - * *
      * A distinct label is assigned for every speaker within the audio. This field
      * specifies which one of those speakers was detected to have spoken this
@@ -1444,14 +1320,15 @@ public java.lang.String getSpeakerLabel() {
      * 
* * string speaker_label = 6; - * * @return The bytes for speakerLabel. */ - public com.google.protobuf.ByteString getSpeakerLabelBytes() { + public com.google.protobuf.ByteString + getSpeakerLabelBytes() { java.lang.Object ref = speakerLabel_; 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); speakerLabel_ = b; return b; } else { @@ -1459,8 +1336,6 @@ public com.google.protobuf.ByteString getSpeakerLabelBytes() { } } /** - * - * *
      * A distinct label is assigned for every speaker within the audio. This field
      * specifies which one of those speakers was detected to have spoken this
@@ -1470,22 +1345,18 @@ public com.google.protobuf.ByteString getSpeakerLabelBytes() {
      * 
* * string speaker_label = 6; - * * @param value The speakerLabel to set. * @return This builder for chaining. */ - public Builder setSpeakerLabel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpeakerLabel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } speakerLabel_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * A distinct label is assigned for every speaker within the audio. This field
      * specifies which one of those speakers was detected to have spoken this
@@ -1495,7 +1366,6 @@ public Builder setSpeakerLabel(java.lang.String value) {
      * 
* * string speaker_label = 6; - * * @return This builder for chaining. */ public Builder clearSpeakerLabel() { @@ -1505,8 +1375,6 @@ public Builder clearSpeakerLabel() { return this; } /** - * - * *
      * A distinct label is assigned for every speaker within the audio. This field
      * specifies which one of those speakers was detected to have spoken this
@@ -1516,23 +1384,21 @@ public Builder clearSpeakerLabel() {
      * 
* * string speaker_label = 6; - * * @param value The bytes for speakerLabel to set. * @return This builder for chaining. */ - public Builder setSpeakerLabelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpeakerLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); speakerLabel_ = value; bitField0_ |= 0x00000010; 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); } @@ -1542,12 +1408,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.WordInfo) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.WordInfo) private static final com.google.cloud.speech.v2.WordInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.WordInfo(); } @@ -1556,27 +1422,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1591,4 +1457,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java similarity index 86% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java index c6c183016e20..c58cbf30568e 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface WordInfoOrBuilder - extends +public interface WordInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.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_offset = 1; - * * @return Whether the startOffset field is set. */ boolean hasStartOffset(); /** - * - * *
    * 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_offset = 1; - * * @return The startOffset. */ com.google.protobuf.Duration getStartOffset(); /** - * - * *
    * 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 getStartOffsetOrBuilder();
 
   /**
-   *
-   *
    * 
    * 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_offset = 2; - * * @return Whether the endOffset field is set. */ boolean hasEndOffset(); /** - * - * *
    * 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_offset = 2; - * * @return The endOffset. */ com.google.protobuf.Duration getEndOffset(); /** - * - * *
    * 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 getEndOffsetOrBuilder();
 
   /**
-   *
-   *
    * 
    * 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
@@ -163,14 +124,11 @@ public interface WordInfoOrBuilder
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); /** - * - * *
    * A distinct label is assigned for every speaker within the audio. This field
    * specifies which one of those speakers was detected to have spoken this
@@ -180,13 +138,10 @@ public interface WordInfoOrBuilder
    * 
* * string speaker_label = 6; - * * @return The speakerLabel. */ java.lang.String getSpeakerLabel(); /** - * - * *
    * A distinct label is assigned for every speaker within the audio. This field
    * specifies which one of those speakers was detected to have spoken this
@@ -196,8 +151,8 @@ public interface WordInfoOrBuilder
    * 
* * string speaker_label = 6; - * * @return The bytes for speakerLabel. */ - com.google.protobuf.ByteString getSpeakerLabelBytes(); + com.google.protobuf.ByteString + getSpeakerLabelBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto similarity index 100% rename from java-speech/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognize.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognize.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognizeLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognizeLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognizeLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognizeLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognize.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognize.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeRecognizernameRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeRecognizernameRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeRecognizernameRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeRecognizernameRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeStringRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeStringRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeStringRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeStringRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetEndpoint.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClass.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClass.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClassLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClassLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClassLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClassLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClass.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClass.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassStringCustomclassString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassStringCustomclassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassStringCustomclassString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassStringCustomclassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSet.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSet.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSetLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSetLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSetLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSetLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSet.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSet.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizerLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizerLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizerLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizerLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerLocationnameRecognizerString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerLocationnameRecognizerString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerLocationnameRecognizerString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerLocationnameRecognizerString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerStringRecognizerString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerStringRecognizerString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerStringRecognizerString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerStringRecognizerString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClass.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClass.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClassLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClassLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClassLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClassLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClass.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClass.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassCustomclassname.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassCustomclassname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassCustomclassname.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassCustomclassname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSet.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSet.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSetLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSetLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSetLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSetLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSet.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSet.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetPhrasesetname.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetPhrasesetname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetPhrasesetname.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetPhrasesetname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizerLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizerLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizerLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizerLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerRecognizername.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerRecognizername.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerRecognizername.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerRecognizername.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/AsyncGetConfig.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/AsyncGetConfig.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/AsyncGetConfig.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/AsyncGetConfig.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfig.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfig.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfig.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfig.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigConfigname.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigConfigname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigConfigname.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigConfigname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/AsyncGetCustomClass.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/AsyncGetCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/AsyncGetCustomClass.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/AsyncGetCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClass.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClass.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassCustomclassname.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassCustomclassname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassCustomclassname.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassCustomclassname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/AsyncGetPhraseSet.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/AsyncGetPhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/AsyncGetPhraseSet.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/AsyncGetPhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSet.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSet.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetPhrasesetname.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetPhrasesetname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetPhrasesetname.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetPhrasesetname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/AsyncGetRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/AsyncGetRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/AsyncGetRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/AsyncGetRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerRecognizername.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerRecognizername.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerRecognizername.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerRecognizername.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClasses.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClasses.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClasses.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClasses.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClassesPaged.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClassesPaged.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClassesPaged.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClassesPaged.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClasses.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClasses.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClasses.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClasses.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesLocationname.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesLocationname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesLocationname.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesLocationname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSets.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSets.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSets.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSets.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSetsPaged.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSetsPaged.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSetsPaged.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSetsPaged.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSets.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSets.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSets.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSets.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsLocationname.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsLocationname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsLocationname.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsLocationname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizers.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizers.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizers.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizers.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizersPaged.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizersPaged.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizersPaged.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizersPaged.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizers.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizers.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizers.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizers.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersLocationname.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersLocationname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersLocationname.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersLocationname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/AsyncRecognize.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/AsyncRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/AsyncRecognize.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/AsyncRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognize.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognize.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskBytestring.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskBytestring.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskBytestring.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskBytestring.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskBytestring.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskBytestring.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskBytestring.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskBytestring.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/streamingrecognize/AsyncStreamingRecognize.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/streamingrecognize/AsyncStreamingRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/streamingrecognize/AsyncStreamingRecognize.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/streamingrecognize/AsyncStreamingRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClass.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClass.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClassLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClassLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClassLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClassLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClass.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClass.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassCustomclassname.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassCustomclassname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassCustomclassname.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassCustomclassname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSet.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSet.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSetLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSetLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSetLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSetLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSet.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSet.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetPhrasesetname.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetPhrasesetname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetPhrasesetname.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetPhrasesetname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizerLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizerLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizerLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizerLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerRecognizername.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerRecognizername.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerRecognizername.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerRecognizername.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/AsyncUpdateConfig.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/AsyncUpdateConfig.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/AsyncUpdateConfig.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/AsyncUpdateConfig.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfig.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfig.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfig.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfig.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfigConfigFieldmask.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfigConfigFieldmask.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfigConfigFieldmask.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfigConfigFieldmask.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClass.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClass.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClassLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClassLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClassLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClassLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClass.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClass.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSet.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSet.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSetLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSetLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSetLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSetLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSet.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSet.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizerLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizerLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizerLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizerLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizerRecognizerFieldmask.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizerRecognizerFieldmask.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizerRecognizerFieldmask.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizerRecognizerFieldmask.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speechsettings/getrecognizer/SyncGetRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speechsettings/getrecognizer/SyncGetRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speechsettings/getrecognizer/SyncGetRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speechsettings/getrecognizer/SyncGetRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/stub/speechstubsettings/getrecognizer/SyncGetRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/stub/speechstubsettings/getrecognizer/SyncGetRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/stub/speechstubsettings/getrecognizer/SyncGetRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/stub/speechstubsettings/getrecognizer/SyncGetRecognizer.java From 84db4aba1cdbaa4c86479881dd4682c620c82605 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 24 Jan 2023 22:09:41 +0000 Subject: [PATCH 2/4] =?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 --- java-speech/README.md | 6 +- .../cloud/speech/v1/AdaptationClient.java | 0 .../cloud/speech/v1/AdaptationSettings.java | 1 - .../google/cloud/speech/v1/SpeechClient.java | 0 .../cloud/speech/v1/SpeechSettings.java | 1 - .../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 | 0 .../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 | 0 .../speech/v1p1beta1/AdaptationClient.java | 0 .../speech/v1p1beta1/AdaptationSettings.java | 1 - .../cloud/speech/v1p1beta1/SpeechClient.java | 0 .../speech/v1p1beta1/SpeechSettings.java | 1 - .../speech/v1p1beta1/gapic_metadata.json | 0 .../cloud/speech/v1p1beta1/package-info.java | 0 .../speech/v1p1beta1/stub/AdaptationStub.java | 0 .../stub/AdaptationStubSettings.java | 0 .../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 | 0 .../google/cloud/speech/v2/SpeechClient.java | 0 .../cloud/speech/v2/SpeechSettings.java | 1 - .../cloud/speech/v2/gapic_metadata.json | 0 .../google/cloud/speech/v2/package-info.java | 0 .../v2/stub/GrpcSpeechCallableFactory.java | 0 .../cloud/speech/v2/stub/GrpcSpeechStub.java | 1 - .../stub/HttpJsonSpeechCallableFactory.java | 0 .../speech/v2/stub/HttpJsonSpeechStub.java | 1 - .../cloud/speech/v2/stub/SpeechStub.java | 0 .../speech/v2/stub/SpeechStubSettings.java | 0 .../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 | 0 .../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 | 0 .../speech/v1p1beta1/SpeechClientTest.java | 0 .../google/cloud/speech/v2/MockSpeech.java | 0 .../cloud/speech/v2/MockSpeechImpl.java | 0 .../speech/v2/SpeechClientHttpJsonTest.java | 0 .../cloud/speech/v2/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 ++++ .../google/cloud/speech/v2/SpeechGrpc.java | 2830 +++++++++++++++++ .../speech/v1/CreateCustomClassRequest.java | 571 ++-- .../v1/CreateCustomClassRequestOrBuilder.java | 64 +- .../speech/v1/CreatePhraseSetRequest.java | 570 ++-- .../v1/CreatePhraseSetRequestOrBuilder.java | 64 +- .../google/cloud/speech/v1/CustomClass.java | 856 +++-- .../cloud/speech/v1/CustomClassName.java | 0 .../cloud/speech/v1/CustomClassOrBuilder.java | 54 +- .../speech/v1/DeleteCustomClassRequest.java | 353 +- .../v1/DeleteCustomClassRequestOrBuilder.java | 35 +- .../speech/v1/DeletePhraseSetRequest.java | 353 +- .../v1/DeletePhraseSetRequestOrBuilder.java | 56 + .../speech/v1/GetCustomClassRequest.java | 353 +- .../v1/GetCustomClassRequestOrBuilder.java | 56 + .../cloud/speech/v1/GetPhraseSetRequest.java | 346 +- .../v1/GetPhraseSetRequestOrBuilder.java | 35 +- .../speech/v1/ListCustomClassesRequest.java | 458 +-- .../v1/ListCustomClassesRequestOrBuilder.java | 47 +- .../speech/v1/ListCustomClassesResponse.java | 481 +-- .../ListCustomClassesResponseOrBuilder.java | 45 +- .../cloud/speech/v1/ListPhraseSetRequest.java | 454 +-- .../v1/ListPhraseSetRequestOrBuilder.java | 47 +- .../speech/v1/ListPhraseSetResponse.java | 485 +-- .../v1/ListPhraseSetResponseOrBuilder.java | 45 +- .../google/cloud/speech/v1/LocationName.java | 0 .../v1/LongRunningRecognizeMetadata.java | 542 ++-- ...LongRunningRecognizeMetadataOrBuilder.java | 46 +- .../v1/LongRunningRecognizeRequest.java | 693 ++-- .../LongRunningRecognizeRequestOrBuilder.java | 78 +- .../v1/LongRunningRecognizeResponse.java | 835 +++-- ...LongRunningRecognizeResponseOrBuilder.java | 71 +- .../com/google/cloud/speech/v1/PhraseSet.java | 854 +++-- .../google/cloud/speech/v1/PhraseSetName.java | 0 .../cloud/speech/v1/PhraseSetOrBuilder.java | 48 +- .../cloud/speech/v1/RecognitionAudio.java | 433 +-- .../speech/v1/RecognitionAudioOrBuilder.java | 36 +- .../cloud/speech/v1/RecognitionConfig.java | 1646 ++++++---- .../speech/v1/RecognitionConfigOrBuilder.java | 145 +- .../cloud/speech/v1/RecognitionMetadata.java | 1201 ++++--- .../v1/RecognitionMetadataOrBuilder.java | 93 +- .../cloud/speech/v1/RecognizeRequest.java | 539 ++-- .../speech/v1/RecognizeRequestOrBuilder.java | 110 + .../cloud/speech/v1/RecognizeResponse.java | 646 ++-- .../speech/v1/RecognizeResponseOrBuilder.java | 55 +- .../speech/v1/SpeakerDiarizationConfig.java | 431 ++- .../v1/SpeakerDiarizationConfigOrBuilder.java | 40 +- .../cloud/speech/v1/SpeechAdaptation.java | 1163 ++++--- .../cloud/speech/v1/SpeechAdaptationInfo.java | 357 ++- .../v1/SpeechAdaptationInfoOrBuilder.java | 30 +- .../speech/v1/SpeechAdaptationOrBuilder.java | 92 +- .../speech/v1/SpeechAdaptationProto.java | 311 ++ .../google/cloud/speech/v1/SpeechContext.java | 380 ++- .../speech/v1/SpeechContextOrBuilder.java | 39 +- .../google/cloud/speech/v1/SpeechProto.java | 495 +++ .../v1/SpeechRecognitionAlternative.java | 524 +-- ...SpeechRecognitionAlternativeOrBuilder.java | 49 +- .../speech/v1/SpeechRecognitionResult.java | 625 ++-- .../v1/SpeechRecognitionResultOrBuilder.java | 53 +- .../cloud/speech/v1/SpeechResourceProto.java | 155 + .../speech/v1/StreamingRecognitionConfig.java | 476 +-- .../StreamingRecognitionConfigOrBuilder.java | 44 +- .../speech/v1/StreamingRecognitionResult.java | 700 ++-- .../StreamingRecognitionResultOrBuilder.java | 59 +- .../speech/v1/StreamingRecognizeRequest.java | 459 +-- .../StreamingRecognizeRequestOrBuilder.java | 35 +- .../speech/v1/StreamingRecognizeResponse.java | 891 ++++-- .../StreamingRecognizeResponseOrBuilder.java | 75 +- .../speech/v1/TranscriptOutputConfig.java | 383 ++- .../v1/TranscriptOutputConfigOrBuilder.java | 30 +- .../speech/v1/UpdateCustomClassRequest.java | 491 +-- .../v1/UpdateCustomClassRequestOrBuilder.java | 46 +- .../speech/v1/UpdatePhraseSetRequest.java | 490 +-- .../v1/UpdatePhraseSetRequestOrBuilder.java | 46 +- .../com/google/cloud/speech/v1/WordInfo.java | 546 ++-- .../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 | 571 ++-- .../CreateCustomClassRequestOrBuilder.java | 64 +- .../v1p1beta1/CreatePhraseSetRequest.java | 570 ++-- .../CreatePhraseSetRequestOrBuilder.java | 64 +- .../cloud/speech/v1p1beta1/CustomClass.java | 863 +++-- .../speech/v1p1beta1/CustomClassName.java | 0 .../v1p1beta1/CustomClassOrBuilder.java | 54 +- .../v1p1beta1/DeleteCustomClassRequest.java | 356 ++- .../DeleteCustomClassRequestOrBuilder.java | 35 +- .../v1p1beta1/DeletePhraseSetRequest.java | 356 ++- .../DeletePhraseSetRequestOrBuilder.java | 56 + .../v1p1beta1/GetCustomClassRequest.java | 356 ++- .../GetCustomClassRequestOrBuilder.java | 56 + .../speech/v1p1beta1/GetPhraseSetRequest.java | 356 ++- .../GetPhraseSetRequestOrBuilder.java | 35 +- .../v1p1beta1/ListCustomClassesRequest.java | 461 +-- .../ListCustomClassesRequestOrBuilder.java | 47 +- .../v1p1beta1/ListCustomClassesResponse.java | 466 +-- .../ListCustomClassesResponseOrBuilder.java | 45 +- .../v1p1beta1/ListPhraseSetRequest.java | 461 +-- .../ListPhraseSetRequestOrBuilder.java | 47 +- .../v1p1beta1/ListPhraseSetResponse.java | 489 +-- .../ListPhraseSetResponseOrBuilder.java | 45 +- .../cloud/speech/v1p1beta1/LocationName.java | 0 .../LongRunningRecognizeMetadata.java | 718 +++-- ...LongRunningRecognizeMetadataOrBuilder.java | 66 +- .../LongRunningRecognizeRequest.java | 710 +++-- .../LongRunningRecognizeRequestOrBuilder.java | 78 +- .../LongRunningRecognizeResponse.java | 878 +++-- ...LongRunningRecognizeResponseOrBuilder.java | 74 +- .../cloud/speech/v1p1beta1/PhraseSet.java | 864 +++-- .../cloud/speech/v1p1beta1/PhraseSetName.java | 0 .../speech/v1p1beta1/PhraseSetOrBuilder.java | 48 +- .../speech/v1p1beta1/RecognitionAudio.java | 440 +-- .../v1p1beta1/RecognitionAudioOrBuilder.java | 36 +- .../speech/v1p1beta1/RecognitionConfig.java | 1943 +++++++---- .../v1p1beta1/RecognitionConfigOrBuilder.java | 188 +- .../speech/v1p1beta1/RecognitionMetadata.java | 1314 +++++--- .../RecognitionMetadataOrBuilder.java | 116 +- .../speech/v1p1beta1/RecognizeRequest.java | 541 ++-- .../v1p1beta1/RecognizeRequestOrBuilder.java | 110 + .../speech/v1p1beta1/RecognizeResponse.java | 667 ++-- .../v1p1beta1/RecognizeResponseOrBuilder.java | 58 +- .../v1p1beta1/SpeakerDiarizationConfig.java | 418 ++- .../SpeakerDiarizationConfigOrBuilder.java | 36 +- .../speech/v1p1beta1/SpeechAdaptation.java | 1189 ++++--- .../v1p1beta1/SpeechAdaptationInfo.java | 364 ++- .../SpeechAdaptationInfoOrBuilder.java | 30 +- .../v1p1beta1/SpeechAdaptationOrBuilder.java | 92 +- .../v1p1beta1/SpeechAdaptationProto.java | 318 ++ .../cloud/speech/v1p1beta1/SpeechContext.java | 389 ++- .../v1p1beta1/SpeechContextOrBuilder.java | 39 +- .../cloud/speech/v1p1beta1/SpeechProto.java | 513 +++ .../SpeechRecognitionAlternative.java | 545 ++-- ...SpeechRecognitionAlternativeOrBuilder.java | 48 +- .../v1p1beta1/SpeechRecognitionResult.java | 723 +++-- .../SpeechRecognitionResultOrBuilder.java | 67 +- .../speech/v1p1beta1/SpeechResourceProto.java | 190 ++ .../v1p1beta1/StreamingRecognitionConfig.java | 484 +-- .../StreamingRecognitionConfigOrBuilder.java | 44 +- .../v1p1beta1/StreamingRecognitionResult.java | 805 +++-- .../StreamingRecognitionResultOrBuilder.java | 73 +- .../v1p1beta1/StreamingRecognizeRequest.java | 470 +-- .../StreamingRecognizeRequestOrBuilder.java | 38 +- .../v1p1beta1/StreamingRecognizeResponse.java | 930 ++++-- .../StreamingRecognizeResponseOrBuilder.java | 77 +- .../v1p1beta1/TranscriptNormalization.java | 971 +++--- .../TranscriptNormalizationOrBuilder.java | 33 +- .../v1p1beta1/TranscriptOutputConfig.java | 389 ++- .../TranscriptOutputConfigOrBuilder.java | 33 +- .../v1p1beta1/UpdateCustomClassRequest.java | 491 +-- .../UpdateCustomClassRequestOrBuilder.java | 46 +- .../v1p1beta1/UpdatePhraseSetRequest.java | 490 +-- .../UpdatePhraseSetRequestOrBuilder.java | 46 +- .../cloud/speech/v1p1beta1/WordInfo.java | 553 ++-- .../speech/v1p1beta1/WordInfoOrBuilder.java | 49 +- .../cloud/speech/v1p1beta1/cloud_speech.proto | 0 .../v1p1beta1/cloud_speech_adaptation.proto | 0 .../cloud/speech/v1p1beta1/resource.proto | 0 .../speech/v2/AutoDetectDecodingConfig.java | 251 +- .../v2/AutoDetectDecodingConfigOrBuilder.java | 24 + .../speech/v2/BatchRecognizeFileMetadata.java | 572 ++-- .../BatchRecognizeFileMetadataOrBuilder.java | 46 +- .../speech/v2/BatchRecognizeFileResult.java | 403 ++- .../v2/BatchRecognizeFileResultOrBuilder.java | 35 +- .../speech/v2/BatchRecognizeMetadata.java | 584 ++-- .../v2/BatchRecognizeMetadataOrBuilder.java | 96 + .../speech/v2/BatchRecognizeRequest.java | 687 ++-- .../v2/BatchRecognizeRequestOrBuilder.java | 69 +- .../speech/v2/BatchRecognizeResponse.java | 504 +-- .../v2/BatchRecognizeResponseOrBuilder.java | 47 +- .../BatchRecognizeTranscriptionMetadata.java | 463 +-- ...cognizeTranscriptionMetadataOrBuilder.java | 38 +- .../cloud/speech/v2/CloudSpeechProto.java | 1346 ++++++++ .../com/google/cloud/speech/v2/Config.java | 545 ++-- .../google/cloud/speech/v2/ConfigName.java | 0 .../cloud/speech/v2/ConfigOrBuilder.java | 61 +- .../speech/v2/CreateCustomClassRequest.java | 607 ++-- .../v2/CreateCustomClassRequestOrBuilder.java | 67 +- .../speech/v2/CreatePhraseSetRequest.java | 606 ++-- .../v2/CreatePhraseSetRequestOrBuilder.java | 67 +- .../speech/v2/CreateRecognizerRequest.java | 606 ++-- .../v2/CreateRecognizerRequestOrBuilder.java | 67 +- .../google/cloud/speech/v2/CustomClass.java | 2161 ++++++++----- .../cloud/speech/v2/CustomClassName.java | 0 .../cloud/speech/v2/CustomClassOrBuilder.java | 221 +- .../speech/v2/DeleteCustomClassRequest.java | 497 +-- .../v2/DeleteCustomClassRequestOrBuilder.java | 50 +- .../speech/v2/DeletePhraseSetRequest.java | 497 +-- .../v2/DeletePhraseSetRequestOrBuilder.java | 50 +- .../speech/v2/DeleteRecognizerRequest.java | 497 +-- .../v2/DeleteRecognizerRequestOrBuilder.java | 50 +- .../speech/v2/ExplicitDecodingConfig.java | 493 +-- .../v2/ExplicitDecodingConfigOrBuilder.java | 38 +- .../cloud/speech/v2/GetConfigRequest.java | 346 +- .../speech/v2/GetConfigRequestOrBuilder.java | 58 + .../speech/v2/GetCustomClassRequest.java | 353 +- .../v2/GetCustomClassRequestOrBuilder.java | 56 + .../cloud/speech/v2/GetPhraseSetRequest.java | 346 +- .../v2/GetPhraseSetRequestOrBuilder.java | 56 + .../cloud/speech/v2/GetRecognizerRequest.java | 349 +- .../v2/GetRecognizerRequestOrBuilder.java | 56 + .../speech/v2/ListCustomClassesRequest.java | 494 +-- .../v2/ListCustomClassesRequestOrBuilder.java | 50 +- .../speech/v2/ListCustomClassesResponse.java | 481 +-- .../ListCustomClassesResponseOrBuilder.java | 45 +- .../speech/v2/ListPhraseSetsRequest.java | 494 +-- .../v2/ListPhraseSetsRequestOrBuilder.java | 50 +- .../speech/v2/ListPhraseSetsResponse.java | 485 +-- .../v2/ListPhraseSetsResponseOrBuilder.java | 45 +- .../speech/v2/ListRecognizersRequest.java | 494 +-- .../v2/ListRecognizersRequestOrBuilder.java | 50 +- .../speech/v2/ListRecognizersResponse.java | 486 +-- .../v2/ListRecognizersResponseOrBuilder.java | 45 +- .../google/cloud/speech/v2/LocationName.java | 0 .../cloud/speech/v2/OperationMetadata.java | 2660 +++++++++++----- .../speech/v2/OperationMetadataOrBuilder.java | 229 +- .../com/google/cloud/speech/v2/PhraseSet.java | 2231 ++++++++----- .../google/cloud/speech/v2/PhraseSetName.java | 0 .../cloud/speech/v2/PhraseSetOrBuilder.java | 224 +- .../cloud/speech/v2/RecognitionConfig.java | 696 ++-- .../speech/v2/RecognitionConfigOrBuilder.java | 50 +- .../cloud/speech/v2/RecognitionFeatures.java | 757 +++-- .../v2/RecognitionFeaturesOrBuilder.java | 59 +- .../v2/RecognitionResponseMetadata.java | 360 ++- .../RecognitionResponseMetadataOrBuilder.java | 26 +- .../cloud/speech/v2/RecognizeRequest.java | 716 +++-- .../speech/v2/RecognizeRequestOrBuilder.java | 69 +- .../cloud/speech/v2/RecognizeResponse.java | 495 +-- .../speech/v2/RecognizeResponseOrBuilder.java | 44 +- .../google/cloud/speech/v2/Recognizer.java | 1977 +++++++----- .../cloud/speech/v2/RecognizerName.java | 0 .../cloud/speech/v2/RecognizerOrBuilder.java | 238 +- .../speech/v2/SpeakerDiarizationConfig.java | 322 +- .../v2/SpeakerDiarizationConfigOrBuilder.java | 24 +- .../cloud/speech/v2/SpeechAdaptation.java | 1184 ++++--- .../speech/v2/SpeechAdaptationOrBuilder.java | 65 +- .../v2/SpeechRecognitionAlternative.java | 524 +-- ...SpeechRecognitionAlternativeOrBuilder.java | 49 +- .../speech/v2/SpeechRecognitionResult.java | 625 ++-- .../v2/SpeechRecognitionResultOrBuilder.java | 53 +- .../speech/v2/StreamingRecognitionConfig.java | 607 ++-- .../StreamingRecognitionConfigOrBuilder.java | 54 +- .../v2/StreamingRecognitionFeatures.java | 1078 ++++--- ...StreamingRecognitionFeaturesOrBuilder.java | 50 +- .../speech/v2/StreamingRecognitionResult.java | 700 ++-- .../StreamingRecognitionResultOrBuilder.java | 59 +- .../speech/v2/StreamingRecognizeRequest.java | 556 ++-- .../StreamingRecognizeRequestOrBuilder.java | 52 +- .../speech/v2/StreamingRecognizeResponse.java | 777 +++-- .../StreamingRecognizeResponseOrBuilder.java | 64 +- .../speech/v2/UndeleteCustomClassRequest.java | 464 +-- .../UndeleteCustomClassRequestOrBuilder.java | 47 +- .../speech/v2/UndeletePhraseSetRequest.java | 461 +-- .../v2/UndeletePhraseSetRequestOrBuilder.java | 47 +- .../speech/v2/UndeleteRecognizerRequest.java | 461 +-- .../UndeleteRecognizerRequestOrBuilder.java | 47 +- .../cloud/speech/v2/UpdateConfigRequest.java | 457 +-- .../v2/UpdateConfigRequestOrBuilder.java | 43 +- .../speech/v2/UpdateCustomClassRequest.java | 527 +-- .../v2/UpdateCustomClassRequestOrBuilder.java | 49 +- .../speech/v2/UpdatePhraseSetRequest.java | 526 +-- .../v2/UpdatePhraseSetRequestOrBuilder.java | 49 +- .../speech/v2/UpdateRecognizerRequest.java | 526 +-- .../v2/UpdateRecognizerRequestOrBuilder.java | 49 +- .../com/google/cloud/speech/v2/WordInfo.java | 592 ++-- .../cloud/speech/v2/WordInfoOrBuilder.java | 55 +- .../google/cloud/speech/v2/cloud_speech.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 | 0 .../SyncDeleteCustomClassCustomclassname.java | 0 .../SyncDeleteCustomClassString.java | 0 .../deletephraseset/AsyncDeletePhraseSet.java | 0 .../deletephraseset/SyncDeletePhraseSet.java | 0 .../SyncDeletePhraseSetPhrasesetname.java | 0 .../SyncDeletePhraseSetString.java | 0 .../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 .../speech/create/SyncCreateSetEndpoint.java | 0 .../AsyncLongRunningRecognize.java | 0 .../AsyncLongRunningRecognizeLRO.java | 0 .../SyncLongRunningRecognize.java | 0 ...nizeRecognitionconfigRecognitionaudio.java | 0 .../v1/speech/recognize/AsyncRecognize.java | 0 .../v1/speech/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 | 0 ...ateCustomClassStringCustomclassString.java | 0 .../createphraseset/AsyncCreatePhraseSet.java | 0 .../createphraseset/SyncCreatePhraseSet.java | 0 ...ePhraseSetLocationnamePhrasesetString.java | 0 ...cCreatePhraseSetStringPhrasesetString.java | 0 .../AsyncDeleteCustomClass.java | 0 .../SyncDeleteCustomClass.java | 0 .../SyncDeleteCustomClassCustomclassname.java | 0 .../SyncDeleteCustomClassString.java | 0 .../deletephraseset/AsyncDeletePhraseSet.java | 0 .../deletephraseset/SyncDeletePhraseSet.java | 0 .../SyncDeletePhraseSetPhrasesetname.java | 0 .../SyncDeletePhraseSetString.java | 0 .../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 .../speech/create/SyncCreateSetEndpoint.java | 0 .../AsyncLongRunningRecognize.java | 0 .../AsyncLongRunningRecognizeLRO.java | 0 .../SyncLongRunningRecognize.java | 0 ...nizeRecognitionconfigRecognitionaudio.java | 0 .../speech/recognize/AsyncRecognize.java | 0 .../speech/recognize/SyncRecognize.java | 0 ...nizeRecognitionconfigRecognitionaudio.java | 0 .../AsyncStreamingRecognize.java | 0 .../recognize/SyncRecognize.java | 0 .../createphraseset/SyncCreatePhraseSet.java | 0 .../recognize/SyncRecognize.java | 0 .../batchrecognize/AsyncBatchRecognize.java | 0 .../AsyncBatchRecognizeLRO.java | 0 .../batchrecognize/SyncBatchRecognize.java | 0 ...eldmaskListbatchrecognizefilemetadata.java | 0 ...eldmaskListbatchrecognizefilemetadata.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../speech/create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateCustomClass.java | 0 .../AsyncCreateCustomClassLRO.java | 0 .../SyncCreateCustomClass.java | 0 ...tomClassLocationnameCustomclassString.java | 0 ...ateCustomClassStringCustomclassString.java | 0 .../createphraseset/AsyncCreatePhraseSet.java | 0 .../AsyncCreatePhraseSetLRO.java | 0 .../createphraseset/SyncCreatePhraseSet.java | 0 ...ePhraseSetLocationnamePhrasesetString.java | 0 ...cCreatePhraseSetStringPhrasesetString.java | 0 .../AsyncCreateRecognizer.java | 0 .../AsyncCreateRecognizerLRO.java | 0 .../SyncCreateRecognizer.java | 0 ...ecognizerLocationnameRecognizerString.java | 0 ...reateRecognizerStringRecognizerString.java | 0 .../AsyncDeleteCustomClass.java | 0 .../AsyncDeleteCustomClassLRO.java | 0 .../SyncDeleteCustomClass.java | 0 .../SyncDeleteCustomClassCustomclassname.java | 0 .../SyncDeleteCustomClassString.java | 0 .../deletephraseset/AsyncDeletePhraseSet.java | 0 .../AsyncDeletePhraseSetLRO.java | 0 .../deletephraseset/SyncDeletePhraseSet.java | 0 .../SyncDeletePhraseSetPhrasesetname.java | 0 .../SyncDeletePhraseSetString.java | 0 .../AsyncDeleteRecognizer.java | 0 .../AsyncDeleteRecognizerLRO.java | 0 .../SyncDeleteRecognizer.java | 0 .../SyncDeleteRecognizerRecognizername.java | 0 .../SyncDeleteRecognizerString.java | 0 .../v2/speech/getconfig/AsyncGetConfig.java | 0 .../v2/speech/getconfig/SyncGetConfig.java | 0 .../getconfig/SyncGetConfigConfigname.java | 0 .../speech/getconfig/SyncGetConfigString.java | 0 .../getcustomclass/AsyncGetCustomClass.java | 0 .../getcustomclass/SyncGetCustomClass.java | 0 .../SyncGetCustomClassCustomclassname.java | 0 .../SyncGetCustomClassString.java | 0 .../getphraseset/AsyncGetPhraseSet.java | 0 .../speech/getphraseset/SyncGetPhraseSet.java | 0 .../SyncGetPhraseSetPhrasesetname.java | 0 .../getphraseset/SyncGetPhraseSetString.java | 0 .../getrecognizer/AsyncGetRecognizer.java | 0 .../getrecognizer/SyncGetRecognizer.java | 0 .../SyncGetRecognizerRecognizername.java | 0 .../SyncGetRecognizerString.java | 0 .../AsyncListCustomClasses.java | 0 .../AsyncListCustomClassesPaged.java | 0 .../SyncListCustomClasses.java | 0 .../SyncListCustomClassesLocationname.java | 0 .../SyncListCustomClassesString.java | 0 .../listphrasesets/AsyncListPhraseSets.java | 0 .../AsyncListPhraseSetsPaged.java | 0 .../listphrasesets/SyncListPhraseSets.java | 0 .../SyncListPhraseSetsLocationname.java | 0 .../SyncListPhraseSetsString.java | 0 .../listrecognizers/AsyncListRecognizers.java | 0 .../AsyncListRecognizersPaged.java | 0 .../listrecognizers/SyncListRecognizers.java | 0 .../SyncListRecognizersLocationname.java | 0 .../SyncListRecognizersString.java | 0 .../v2/speech/recognize/AsyncRecognize.java | 0 .../v2/speech/recognize/SyncRecognize.java | 0 ...eRecognitionconfigFieldmaskBytestring.java | 0 ...rnameRecognitionconfigFieldmaskString.java | 0 ...gRecognitionconfigFieldmaskBytestring.java | 0 ...tringRecognitionconfigFieldmaskString.java | 0 .../AsyncStreamingRecognize.java | 0 .../AsyncUndeleteCustomClass.java | 0 .../AsyncUndeleteCustomClassLRO.java | 0 .../SyncUndeleteCustomClass.java | 0 ...yncUndeleteCustomClassCustomclassname.java | 0 .../SyncUndeleteCustomClassString.java | 0 .../AsyncUndeletePhraseSet.java | 0 .../AsyncUndeletePhraseSetLRO.java | 0 .../SyncUndeletePhraseSet.java | 0 .../SyncUndeletePhraseSetPhrasesetname.java | 0 .../SyncUndeletePhraseSetString.java | 0 .../AsyncUndeleteRecognizer.java | 0 .../AsyncUndeleteRecognizerLRO.java | 0 .../SyncUndeleteRecognizer.java | 0 .../SyncUndeleteRecognizerRecognizername.java | 0 .../SyncUndeleteRecognizerString.java | 0 .../updateconfig/AsyncUpdateConfig.java | 0 .../speech/updateconfig/SyncUpdateConfig.java | 0 .../SyncUpdateConfigConfigFieldmask.java | 0 .../AsyncUpdateCustomClass.java | 0 .../AsyncUpdateCustomClassLRO.java | 0 .../SyncUpdateCustomClass.java | 0 ...UpdateCustomClassCustomclassFieldmask.java | 0 .../updatephraseset/AsyncUpdatePhraseSet.java | 0 .../AsyncUpdatePhraseSetLRO.java | 0 .../updatephraseset/SyncUpdatePhraseSet.java | 0 ...SyncUpdatePhraseSetPhrasesetFieldmask.java | 0 .../AsyncUpdateRecognizer.java | 0 .../AsyncUpdateRecognizerLRO.java | 0 .../SyncUpdateRecognizer.java | 0 ...ncUpdateRecognizerRecognizerFieldmask.java | 0 .../getrecognizer/SyncGetRecognizer.java | 0 .../getrecognizer/SyncGetRecognizer.java | 0 .../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 | 427 --- .../cloud/speech/v1/SpeechResourceProto.java | 135 - .../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 | 441 --- .../speech/v1p1beta1/SpeechResourceProto.java | 162 - .../google/cloud/speech/v2/SpeechGrpc.java | 2207 ------------- .../v2/AutoDetectDecodingConfigOrBuilder.java | 9 - .../v2/BatchRecognizeMetadataOrBuilder.java | 63 - .../cloud/speech/v2/CloudSpeechProto.java | 1186 ------- .../speech/v2/GetConfigRequestOrBuilder.java | 33 - .../v2/GetCustomClassRequestOrBuilder.java | 31 - .../v2/GetPhraseSetRequestOrBuilder.java | 31 - .../v2/GetRecognizerRequestOrBuilder.java | 31 - 585 files changed, 64992 insertions(+), 38963 deletions(-) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java (99%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java (99%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java (99%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java (99%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java (99%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java (99%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java (99%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java (99%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java (99%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/gapic_metadata.json (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/package-info.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechCallableFactory.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java (99%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechCallableFactory.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java (99%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeech.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeechImpl.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientTest.java (100%) create mode 100644 java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java create mode 100644 java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java create mode 100644 java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java create mode 100644 java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java create mode 100644 java-speech/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java (67%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java (65%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java (67%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java (65%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java (71%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java (66%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java (59%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java (62%) create mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java (62%) create mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java (66%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java (59%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java (70%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java (72%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java (67%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java (70%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java (69%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java (71%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java (66%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java (70%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java (74%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java (58%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java (51%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java (73%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java (84%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java (75%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java (72%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java (73%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java (79%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java (83%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java (94%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java (71%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java (76%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java (59%) create mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java (72%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java (80%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java (69%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java (64%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java (76%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java (68%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java (58%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java (82%) create mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContext.java (78%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java (85%) create mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternative.java (75%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java (78%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java (75%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java (83%) create mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfig.java (69%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java (76%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java (85%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java (72%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java (79%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java (75%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java (85%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java (67%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java (63%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java (69%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java (73%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java (69%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java (72%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java (76%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java (84%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java (67%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java (65%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java (67%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java (65%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java (72%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java (67%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java (59%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java (64%) create mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java (63%) create mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java (67%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java (59%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java (71%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java (73%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java (69%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java (71%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java (69%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java (71%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java (67%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java (66%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java (58%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java (51%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java (72%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java (83%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java (76%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java (74%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java (73%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java (79%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java (82%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java (93%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java (69%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java (69%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java (59%) create mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java (71%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java (79%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java (70%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java (68%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java (76%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java (67%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java (59%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java (83%) create mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java (78%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java (85%) create mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java (74%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java (79%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java (72%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java (79%) create mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java (68%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java (73%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java (82%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java (71%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java (78%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java (74%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java (83%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java (71%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java (78%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java (67%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java (61%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java (70%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java (72%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java (70%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java (72%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java (76%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java (84%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java (64%) create mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java (77%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java (87%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java (68%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java (60%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java (51%) create mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java (76%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java (84%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java (59%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java (60%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java (67%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java (63%) create mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Config.java (67%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java (68%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java (65%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java (59%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java (65%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java (58%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java (65%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java (58%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java (69%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java (75%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java (68%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java (63%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java (68%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java (63%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java (68%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java (63%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java (68%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java (64%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java (63%) create mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequestOrBuilder.java rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java (63%) create mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java (63%) create mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java (63%) create mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java (70%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java (68%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java (72%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java (70%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java (67%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java (72%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java (70%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java (66%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java (72%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java (72%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java (87%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java (70%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java (75%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java (70%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java (83%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java (76%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java (86%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java (65%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java (61%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java (78%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java (87%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java (72%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java (75%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java (71%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java (81%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java (69%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java (64%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java (72%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java (71%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java (75%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java (78%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java (75%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java (82%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java (73%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java (83%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java (66%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java (61%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java (76%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java (85%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java (70%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java (71%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java (76%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java (84%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java (67%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java (60%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java (67%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java (60%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java (67%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java (60%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java (69%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java (67%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java (67%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java (68%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java (69%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java (67%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java (69%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java (77%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java (86%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/AsyncCreateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/AsyncCreatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/AsyncDeletePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetString.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/AsyncGetCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassString.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/AsyncGetPhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetString.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClasses.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClasses.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesString.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSetPaged.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetLocationname.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetString.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognize.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognize.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/AsyncRecognize.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognize.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/streamingrecognize/AsyncStreamingRecognize.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/AsyncCreateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/AsyncCreatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/AsyncDeletePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetString.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/AsyncGetCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassString.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/AsyncGetPhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetString.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClasses.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClasses.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesString.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSetPaged.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetLocationname.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetString.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognize.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognize.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/AsyncRecognize.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognize.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/streamingrecognize/AsyncStreamingRecognize.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognize.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognizeLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognize.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeRecognizernameRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeStringRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClassLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassStringCustomclassString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSetLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizerLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerLocationnameRecognizerString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerStringRecognizerString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClass.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClassLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClass.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassCustomclassname.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSetLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetPhrasesetname.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizerLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerRecognizername.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/AsyncGetConfig.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfig.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigConfigname.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/AsyncGetCustomClass.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClass.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassCustomclassname.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/AsyncGetPhraseSet.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSet.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetPhrasesetname.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/AsyncGetRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerRecognizername.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClasses.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClassesPaged.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClasses.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesLocationname.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSets.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSetsPaged.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSets.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsLocationname.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizers.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizersPaged.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizers.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersLocationname.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/AsyncRecognize.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognize.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskBytestring.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskBytestring.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/streamingrecognize/AsyncStreamingRecognize.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClass.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClassLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClass.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassCustomclassname.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSetLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetPhrasesetname.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizerLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerRecognizername.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/AsyncUpdateConfig.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfig.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfigConfigFieldmask.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClassLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSetLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizerLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizerRecognizerFieldmask.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speechsettings/getrecognizer/SyncGetRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/stub/speechstubsettings/getrecognizer/SyncGetRecognizer.java (100%) delete mode 100644 owl-bot-staging/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java delete mode 100644 owl-bot-staging/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java delete mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java delete mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java delete mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java delete mode 100644 owl-bot-staging/java-speech/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java delete mode 100644 owl-bot-staging/java-speech/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java delete mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java delete mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java delete mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java delete mode 100644 owl-bot-staging/java-speech/v2/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java delete mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java delete mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java diff --git a/java-speech/README.md b/java-speech/README.md index e1bb5d473dbf..914ddaa4dfbd 100644 --- a/java-speech/README.md +++ b/java-speech/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-speech - 4.3.0 + 4.4.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-speech:4.3.0' +implementation 'com.google.cloud:google-cloud-speech:4.4.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.3.0" +libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.4.0" ``` ## Authentication diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java similarity index 99% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java index ef2af1fea060..88585863167f 100644 --- a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java +++ b/java-speech/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; diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java similarity index 99% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java index e9f6e4ac2293..410fbe1afbe6 100644 --- a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java +++ b/java-speech/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; diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java similarity index 99% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java index 45bd5bdce97f..881efcbe3130 100644 --- a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java +++ b/java-speech/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/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java similarity index 99% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java index 1735c61d96ae..2d1dc5eb7ee8 100644 --- a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java +++ b/java-speech/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.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java similarity index 99% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java index b92302cdf7ed..12186ff69359 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java +++ b/java-speech/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; diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java similarity index 99% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java index b7cd843849ec..a69615793095 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java +++ b/java-speech/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; diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java similarity index 99% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java index 526e244c2f61..8875ab91afdd 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java +++ b/java-speech/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/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java similarity index 99% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java index 2d68d09a22f4..f59d35f28317 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java +++ b/java-speech/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.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java similarity index 99% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java index 5cd92e22a6e4..bfeea92bfc4d 100644 --- a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java @@ -32,7 +32,6 @@ import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; 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.v2.stub.SpeechStubSettings; diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/gapic_metadata.json b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/gapic_metadata.json rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/gapic_metadata.json diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/package-info.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/package-info.java similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/package-info.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/package-info.java diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechCallableFactory.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechCallableFactory.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechCallableFactory.java diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java similarity index 99% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java index 6930b03ab6c2..00d92d8d8432 100644 --- a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java @@ -68,7 +68,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/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechCallableFactory.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechCallableFactory.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechCallableFactory.java diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java similarity index 99% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java index 44cce61e86aa..1a9d59fe1317 100644 --- a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java @@ -32,7 +32,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.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeech.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeech.java similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeech.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeech.java diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeechImpl.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeechImpl.java similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeechImpl.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeechImpl.java diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientHttpJsonTest.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientHttpJsonTest.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientHttpJsonTest.java diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientTest.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientTest.java similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientTest.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientTest.java diff --git a/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java b/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java new file mode 100644 index 000000000000..5a6d1e037728 --- /dev/null +++ b/java-speech/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/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java b/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java new file mode 100644 index 000000000000..846458da2c9f --- /dev/null +++ b/java-speech/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/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java b/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java new file mode 100644 index 000000000000..5a5395620967 --- /dev/null +++ b/java-speech/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/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java b/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java new file mode 100644 index 000000000000..c3bc87f0fa55 --- /dev/null +++ b/java-speech/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/java-speech/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java b/java-speech/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java new file mode 100644 index 000000000000..f70343dfe149 --- /dev/null +++ b/java-speech/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java @@ -0,0 +1,2830 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Enables speech transcription and resource management.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/speech/v2/cloud_speech.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SpeechGrpc { + + private SpeechGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.speech.v2.Speech"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.longrunning.Operation> + getCreateRecognizerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRecognizer", + requestType = com.google.cloud.speech.v2.CreateRecognizerRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.longrunning.Operation> + getCreateRecognizerMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.longrunning.Operation> + getCreateRecognizerMethod; + if ((getCreateRecognizerMethod = SpeechGrpc.getCreateRecognizerMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getCreateRecognizerMethod = SpeechGrpc.getCreateRecognizerMethod) == null) { + SpeechGrpc.getCreateRecognizerMethod = + getCreateRecognizerMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRecognizer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.CreateRecognizerRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreateRecognizer")) + .build(); + } + } + } + return getCreateRecognizerMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.ListRecognizersRequest, + com.google.cloud.speech.v2.ListRecognizersResponse> + getListRecognizersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRecognizers", + requestType = com.google.cloud.speech.v2.ListRecognizersRequest.class, + responseType = com.google.cloud.speech.v2.ListRecognizersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.ListRecognizersRequest, + com.google.cloud.speech.v2.ListRecognizersResponse> + getListRecognizersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.ListRecognizersRequest, + com.google.cloud.speech.v2.ListRecognizersResponse> + getListRecognizersMethod; + if ((getListRecognizersMethod = SpeechGrpc.getListRecognizersMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getListRecognizersMethod = SpeechGrpc.getListRecognizersMethod) == null) { + SpeechGrpc.getListRecognizersMethod = + getListRecognizersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRecognizers")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.ListRecognizersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.ListRecognizersResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListRecognizers")) + .build(); + } + } + } + return getListRecognizersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetRecognizerRequest, com.google.cloud.speech.v2.Recognizer> + getGetRecognizerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRecognizer", + requestType = com.google.cloud.speech.v2.GetRecognizerRequest.class, + responseType = com.google.cloud.speech.v2.Recognizer.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetRecognizerRequest, com.google.cloud.speech.v2.Recognizer> + getGetRecognizerMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetRecognizerRequest, com.google.cloud.speech.v2.Recognizer> + getGetRecognizerMethod; + if ((getGetRecognizerMethod = SpeechGrpc.getGetRecognizerMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getGetRecognizerMethod = SpeechGrpc.getGetRecognizerMethod) == null) { + SpeechGrpc.getGetRecognizerMethod = + getGetRecognizerMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRecognizer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.GetRecognizerRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.Recognizer.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetRecognizer")) + .build(); + } + } + } + return getGetRecognizerMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.longrunning.Operation> + getUpdateRecognizerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateRecognizer", + requestType = com.google.cloud.speech.v2.UpdateRecognizerRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.longrunning.Operation> + getUpdateRecognizerMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.longrunning.Operation> + getUpdateRecognizerMethod; + if ((getUpdateRecognizerMethod = SpeechGrpc.getUpdateRecognizerMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUpdateRecognizerMethod = SpeechGrpc.getUpdateRecognizerMethod) == null) { + SpeechGrpc.getUpdateRecognizerMethod = + getUpdateRecognizerMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRecognizer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.UpdateRecognizerRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdateRecognizer")) + .build(); + } + } + } + return getUpdateRecognizerMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.longrunning.Operation> + getDeleteRecognizerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRecognizer", + requestType = com.google.cloud.speech.v2.DeleteRecognizerRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.longrunning.Operation> + getDeleteRecognizerMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.longrunning.Operation> + getDeleteRecognizerMethod; + if ((getDeleteRecognizerMethod = SpeechGrpc.getDeleteRecognizerMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getDeleteRecognizerMethod = SpeechGrpc.getDeleteRecognizerMethod) == null) { + SpeechGrpc.getDeleteRecognizerMethod = + getDeleteRecognizerMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRecognizer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.DeleteRecognizerRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeleteRecognizer")) + .build(); + } + } + } + return getDeleteRecognizerMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.longrunning.Operation> + getUndeleteRecognizerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeleteRecognizer", + requestType = com.google.cloud.speech.v2.UndeleteRecognizerRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.longrunning.Operation> + getUndeleteRecognizerMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.longrunning.Operation> + getUndeleteRecognizerMethod; + if ((getUndeleteRecognizerMethod = SpeechGrpc.getUndeleteRecognizerMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUndeleteRecognizerMethod = SpeechGrpc.getUndeleteRecognizerMethod) == null) { + SpeechGrpc.getUndeleteRecognizerMethod = + getUndeleteRecognizerMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeleteRecognizer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.UndeleteRecognizerRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UndeleteRecognizer")) + .build(); + } + } + } + return getUndeleteRecognizerMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.RecognizeRequest, com.google.cloud.speech.v2.RecognizeResponse> + getRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Recognize", + requestType = com.google.cloud.speech.v2.RecognizeRequest.class, + responseType = com.google.cloud.speech.v2.RecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.RecognizeRequest, com.google.cloud.speech.v2.RecognizeResponse> + getRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.RecognizeRequest, + com.google.cloud.speech.v2.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.v2.RecognizeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.RecognizeResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) + .build(); + } + } + } + return getRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.StreamingRecognizeRequest, + com.google.cloud.speech.v2.StreamingRecognizeResponse> + getStreamingRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", + requestType = com.google.cloud.speech.v2.StreamingRecognizeRequest.class, + responseType = com.google.cloud.speech.v2.StreamingRecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.StreamingRecognizeRequest, + com.google.cloud.speech.v2.StreamingRecognizeResponse> + getStreamingRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.StreamingRecognizeRequest, + com.google.cloud.speech.v2.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.v2.StreamingRecognizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.StreamingRecognizeResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) + .build(); + } + } + } + return getStreamingRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.longrunning.Operation> + getBatchRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchRecognize", + requestType = com.google.cloud.speech.v2.BatchRecognizeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.longrunning.Operation> + getBatchRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.longrunning.Operation> + getBatchRecognizeMethod; + if ((getBatchRecognizeMethod = SpeechGrpc.getBatchRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getBatchRecognizeMethod = SpeechGrpc.getBatchRecognizeMethod) == null) { + SpeechGrpc.getBatchRecognizeMethod = + getBatchRecognizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.BatchRecognizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("BatchRecognize")) + .build(); + } + } + } + return getBatchRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetConfigRequest, com.google.cloud.speech.v2.Config> + getGetConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConfig", + requestType = com.google.cloud.speech.v2.GetConfigRequest.class, + responseType = com.google.cloud.speech.v2.Config.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetConfigRequest, com.google.cloud.speech.v2.Config> + getGetConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetConfigRequest, com.google.cloud.speech.v2.Config> + getGetConfigMethod; + if ((getGetConfigMethod = SpeechGrpc.getGetConfigMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getGetConfigMethod = SpeechGrpc.getGetConfigMethod) == null) { + SpeechGrpc.getGetConfigMethod = + getGetConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.GetConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.Config.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetConfig")) + .build(); + } + } + } + return getGetConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.Config> + getUpdateConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConfig", + requestType = com.google.cloud.speech.v2.UpdateConfigRequest.class, + responseType = com.google.cloud.speech.v2.Config.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.Config> + getUpdateConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.Config> + getUpdateConfigMethod; + if ((getUpdateConfigMethod = SpeechGrpc.getUpdateConfigMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUpdateConfigMethod = SpeechGrpc.getUpdateConfigMethod) == null) { + SpeechGrpc.getUpdateConfigMethod = + getUpdateConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.Config.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdateConfig")) + .build(); + } + } + } + return getUpdateConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.longrunning.Operation> + getCreateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", + requestType = com.google.cloud.speech.v2.CreateCustomClassRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.longrunning.Operation> + getCreateCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.longrunning.Operation> + getCreateCustomClassMethod; + if ((getCreateCustomClassMethod = SpeechGrpc.getCreateCustomClassMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getCreateCustomClassMethod = SpeechGrpc.getCreateCustomClassMethod) == null) { + SpeechGrpc.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.v2.CreateCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreateCustomClass")) + .build(); + } + } + } + return getCreateCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.ListCustomClassesRequest, + com.google.cloud.speech.v2.ListCustomClassesResponse> + getListCustomClassesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", + requestType = com.google.cloud.speech.v2.ListCustomClassesRequest.class, + responseType = com.google.cloud.speech.v2.ListCustomClassesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.ListCustomClassesRequest, + com.google.cloud.speech.v2.ListCustomClassesResponse> + getListCustomClassesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.ListCustomClassesRequest, + com.google.cloud.speech.v2.ListCustomClassesResponse> + getListCustomClassesMethod; + if ((getListCustomClassesMethod = SpeechGrpc.getListCustomClassesMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getListCustomClassesMethod = SpeechGrpc.getListCustomClassesMethod) == null) { + SpeechGrpc.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.v2.ListCustomClassesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.ListCustomClassesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListCustomClasses")) + .build(); + } + } + } + return getListCustomClassesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetCustomClassRequest, com.google.cloud.speech.v2.CustomClass> + getGetCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", + requestType = com.google.cloud.speech.v2.GetCustomClassRequest.class, + responseType = com.google.cloud.speech.v2.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetCustomClassRequest, com.google.cloud.speech.v2.CustomClass> + getGetCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetCustomClassRequest, + com.google.cloud.speech.v2.CustomClass> + getGetCustomClassMethod; + if ((getGetCustomClassMethod = SpeechGrpc.getGetCustomClassMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getGetCustomClassMethod = SpeechGrpc.getGetCustomClassMethod) == null) { + SpeechGrpc.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.v2.GetCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.CustomClass.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetCustomClass")) + .build(); + } + } + } + return getGetCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.longrunning.Operation> + getUpdateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", + requestType = com.google.cloud.speech.v2.UpdateCustomClassRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.longrunning.Operation> + getUpdateCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.longrunning.Operation> + getUpdateCustomClassMethod; + if ((getUpdateCustomClassMethod = SpeechGrpc.getUpdateCustomClassMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUpdateCustomClassMethod = SpeechGrpc.getUpdateCustomClassMethod) == null) { + SpeechGrpc.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.v2.UpdateCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdateCustomClass")) + .build(); + } + } + } + return getUpdateCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.longrunning.Operation> + getDeleteCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCustomClass", + requestType = com.google.cloud.speech.v2.DeleteCustomClassRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.longrunning.Operation> + getDeleteCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.longrunning.Operation> + getDeleteCustomClassMethod; + if ((getDeleteCustomClassMethod = SpeechGrpc.getDeleteCustomClassMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getDeleteCustomClassMethod = SpeechGrpc.getDeleteCustomClassMethod) == null) { + SpeechGrpc.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.v2.DeleteCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeleteCustomClass")) + .build(); + } + } + } + return getDeleteCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.longrunning.Operation> + getUndeleteCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeleteCustomClass", + requestType = com.google.cloud.speech.v2.UndeleteCustomClassRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.longrunning.Operation> + getUndeleteCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.longrunning.Operation> + getUndeleteCustomClassMethod; + if ((getUndeleteCustomClassMethod = SpeechGrpc.getUndeleteCustomClassMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUndeleteCustomClassMethod = SpeechGrpc.getUndeleteCustomClassMethod) == null) { + SpeechGrpc.getUndeleteCustomClassMethod = + getUndeleteCustomClassMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UndeleteCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.UndeleteCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SpeechMethodDescriptorSupplier("UndeleteCustomClass")) + .build(); + } + } + } + return getUndeleteCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.longrunning.Operation> + getCreatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", + requestType = com.google.cloud.speech.v2.CreatePhraseSetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.longrunning.Operation> + getCreatePhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.longrunning.Operation> + getCreatePhraseSetMethod; + if ((getCreatePhraseSetMethod = SpeechGrpc.getCreatePhraseSetMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getCreatePhraseSetMethod = SpeechGrpc.getCreatePhraseSetMethod) == null) { + SpeechGrpc.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.v2.CreatePhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreatePhraseSet")) + .build(); + } + } + } + return getCreatePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.ListPhraseSetsRequest, + com.google.cloud.speech.v2.ListPhraseSetsResponse> + getListPhraseSetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPhraseSets", + requestType = com.google.cloud.speech.v2.ListPhraseSetsRequest.class, + responseType = com.google.cloud.speech.v2.ListPhraseSetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.ListPhraseSetsRequest, + com.google.cloud.speech.v2.ListPhraseSetsResponse> + getListPhraseSetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.ListPhraseSetsRequest, + com.google.cloud.speech.v2.ListPhraseSetsResponse> + getListPhraseSetsMethod; + if ((getListPhraseSetsMethod = SpeechGrpc.getListPhraseSetsMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getListPhraseSetsMethod = SpeechGrpc.getListPhraseSetsMethod) == null) { + SpeechGrpc.getListPhraseSetsMethod = + getListPhraseSetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.ListPhraseSetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.ListPhraseSetsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListPhraseSets")) + .build(); + } + } + } + return getListPhraseSetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetPhraseSetRequest, com.google.cloud.speech.v2.PhraseSet> + getGetPhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", + requestType = com.google.cloud.speech.v2.GetPhraseSetRequest.class, + responseType = com.google.cloud.speech.v2.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetPhraseSetRequest, com.google.cloud.speech.v2.PhraseSet> + getGetPhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetPhraseSetRequest, com.google.cloud.speech.v2.PhraseSet> + getGetPhraseSetMethod; + if ((getGetPhraseSetMethod = SpeechGrpc.getGetPhraseSetMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getGetPhraseSetMethod = SpeechGrpc.getGetPhraseSetMethod) == null) { + SpeechGrpc.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.v2.GetPhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetPhraseSet")) + .build(); + } + } + } + return getGetPhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.longrunning.Operation> + getUpdatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", + requestType = com.google.cloud.speech.v2.UpdatePhraseSetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.longrunning.Operation> + getUpdatePhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.longrunning.Operation> + getUpdatePhraseSetMethod; + if ((getUpdatePhraseSetMethod = SpeechGrpc.getUpdatePhraseSetMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUpdatePhraseSetMethod = SpeechGrpc.getUpdatePhraseSetMethod) == null) { + SpeechGrpc.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.v2.UpdatePhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdatePhraseSet")) + .build(); + } + } + } + return getUpdatePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.longrunning.Operation> + getDeletePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePhraseSet", + requestType = com.google.cloud.speech.v2.DeletePhraseSetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.longrunning.Operation> + getDeletePhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.longrunning.Operation> + getDeletePhraseSetMethod; + if ((getDeletePhraseSetMethod = SpeechGrpc.getDeletePhraseSetMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getDeletePhraseSetMethod = SpeechGrpc.getDeletePhraseSetMethod) == null) { + SpeechGrpc.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.v2.DeletePhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeletePhraseSet")) + .build(); + } + } + } + return getDeletePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.longrunning.Operation> + getUndeletePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeletePhraseSet", + requestType = com.google.cloud.speech.v2.UndeletePhraseSetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.longrunning.Operation> + getUndeletePhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.longrunning.Operation> + getUndeletePhraseSetMethod; + if ((getUndeletePhraseSetMethod = SpeechGrpc.getUndeletePhraseSetMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUndeletePhraseSetMethod = SpeechGrpc.getUndeletePhraseSetMethod) == null) { + SpeechGrpc.getUndeletePhraseSetMethod = + getUndeletePhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeletePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.UndeletePhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UndeletePhraseSet")) + .build(); + } + } + } + return getUndeletePhraseSetMethod; + } + + /** 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); + } + + /** + * + * + *
+   * Enables speech transcription and resource management.
+   * 
+ */ + public abstract static class SpeechImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void createRecognizer( + com.google.cloud.speech.v2.CreateRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateRecognizerMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Recognizers.
+     * 
+ */ + public void listRecognizers( + com.google.cloud.speech.v2.ListRecognizersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRecognizersMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested
+     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
+     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
+     * exist.
+     * 
+ */ + public void getRecognizer( + com.google.cloud.speech.v2.GetRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetRecognizerMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void updateRecognizer( + com.google.cloud.speech.v2.UpdateRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateRecognizerMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void deleteRecognizer( + com.google.cloud.speech.v2.DeleteRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteRecognizerMethod(), responseObserver); + } + + /** + * + * + *
+     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void undeleteRecognizer( + com.google.cloud.speech.v2.UndeleteRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUndeleteRecognizerMethod(), responseObserver); + } + + /** + * + * + *
+     * Performs synchronous Speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize( + com.google.cloud.speech.v2.RecognizeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), 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); + } + + /** + * + * + *
+     * Performs batch asynchronous speech recognition: send a request with N
+     * audio files and receive a long running operation that can be polled to see
+     * when the transcriptions are finished.
+     * 
+ */ + public void batchRecognize( + com.google.cloud.speech.v2.BatchRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchRecognizeMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public void getConfig( + com.google.cloud.speech.v2.GetConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public void updateConfig( + com.google.cloud.speech.v2.UpdateConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void createCustomClass( + com.google.cloud.speech.v2.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists CustomClasses.
+     * 
+ */ + public void listCustomClasses( + com.google.cloud.speech.v2.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCustomClassesMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested
+     * [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void getCustomClass( + com.google.cloud.speech.v2.GetCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void updateCustomClass( + com.google.cloud.speech.v2.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void deleteCustomClass( + com.google.cloud.speech.v2.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void undeleteCustomClass( + com.google.cloud.speech.v2.UndeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUndeleteCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void createPhraseSet( + com.google.cloud.speech.v2.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists PhraseSets.
+     * 
+ */ + public void listPhraseSets( + com.google.cloud.speech.v2.ListPhraseSetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPhraseSetsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested
+     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void getPhraseSet( + com.google.cloud.speech.v2.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void updatePhraseSet( + com.google.cloud.speech.v2.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdatePhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void deletePhraseSet( + com.google.cloud.speech.v2.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void undeletePhraseSet( + com.google.cloud.speech.v2.UndeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUndeletePhraseSetMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateRecognizerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.CreateRecognizerRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_RECOGNIZER))) + .addMethod( + getListRecognizersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.ListRecognizersRequest, + com.google.cloud.speech.v2.ListRecognizersResponse>( + this, METHODID_LIST_RECOGNIZERS))) + .addMethod( + getGetRecognizerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.GetRecognizerRequest, + com.google.cloud.speech.v2.Recognizer>(this, METHODID_GET_RECOGNIZER))) + .addMethod( + getUpdateRecognizerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UpdateRecognizerRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_RECOGNIZER))) + .addMethod( + getDeleteRecognizerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.DeleteRecognizerRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_RECOGNIZER))) + .addMethod( + getUndeleteRecognizerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UndeleteRecognizerRequest, + com.google.longrunning.Operation>(this, METHODID_UNDELETE_RECOGNIZER))) + .addMethod( + getRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.RecognizeRequest, + com.google.cloud.speech.v2.RecognizeResponse>(this, METHODID_RECOGNIZE))) + .addMethod( + getStreamingRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.speech.v2.StreamingRecognizeRequest, + com.google.cloud.speech.v2.StreamingRecognizeResponse>( + this, METHODID_STREAMING_RECOGNIZE))) + .addMethod( + getBatchRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.BatchRecognizeRequest, + com.google.longrunning.Operation>(this, METHODID_BATCH_RECOGNIZE))) + .addMethod( + getGetConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.GetConfigRequest, + com.google.cloud.speech.v2.Config>(this, METHODID_GET_CONFIG))) + .addMethod( + getUpdateConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UpdateConfigRequest, + com.google.cloud.speech.v2.Config>(this, METHODID_UPDATE_CONFIG))) + .addMethod( + getCreateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.CreateCustomClassRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_CUSTOM_CLASS))) + .addMethod( + getListCustomClassesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.ListCustomClassesRequest, + com.google.cloud.speech.v2.ListCustomClassesResponse>( + this, METHODID_LIST_CUSTOM_CLASSES))) + .addMethod( + getGetCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.GetCustomClassRequest, + com.google.cloud.speech.v2.CustomClass>(this, METHODID_GET_CUSTOM_CLASS))) + .addMethod( + getUpdateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UpdateCustomClassRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_CUSTOM_CLASS))) + .addMethod( + getDeleteCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.DeleteCustomClassRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_CUSTOM_CLASS))) + .addMethod( + getUndeleteCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UndeleteCustomClassRequest, + com.google.longrunning.Operation>(this, METHODID_UNDELETE_CUSTOM_CLASS))) + .addMethod( + getCreatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.CreatePhraseSetRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_PHRASE_SET))) + .addMethod( + getListPhraseSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.ListPhraseSetsRequest, + com.google.cloud.speech.v2.ListPhraseSetsResponse>( + this, METHODID_LIST_PHRASE_SETS))) + .addMethod( + getGetPhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.GetPhraseSetRequest, + com.google.cloud.speech.v2.PhraseSet>(this, METHODID_GET_PHRASE_SET))) + .addMethod( + getUpdatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UpdatePhraseSetRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_PHRASE_SET))) + .addMethod( + getDeletePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.DeletePhraseSetRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_PHRASE_SET))) + .addMethod( + getUndeletePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UndeletePhraseSetRequest, + com.google.longrunning.Operation>(this, METHODID_UNDELETE_PHRASE_SET))) + .build(); + } + } + + /** + * + * + *
+   * Enables speech transcription and resource management.
+   * 
+ */ + 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); + } + + /** + * + * + *
+     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void createRecognizer( + com.google.cloud.speech.v2.CreateRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRecognizerMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Recognizers.
+     * 
+ */ + public void listRecognizers( + com.google.cloud.speech.v2.ListRecognizersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRecognizersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested
+     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
+     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
+     * exist.
+     * 
+ */ + public void getRecognizer( + com.google.cloud.speech.v2.GetRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRecognizerMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void updateRecognizer( + com.google.cloud.speech.v2.UpdateRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateRecognizerMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void deleteRecognizer( + com.google.cloud.speech.v2.DeleteRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRecognizerMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void undeleteRecognizer( + com.google.cloud.speech.v2.UndeleteRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeleteRecognizerMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Performs synchronous Speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize( + com.google.cloud.speech.v2.RecognizeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRecognizeMethod(), 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); + } + + /** + * + * + *
+     * Performs batch asynchronous speech recognition: send a request with N
+     * audio files and receive a long running operation that can be polled to see
+     * when the transcriptions are finished.
+     * 
+ */ + public void batchRecognize( + com.google.cloud.speech.v2.BatchRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchRecognizeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public void getConfig( + com.google.cloud.speech.v2.GetConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates the [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public void updateConfig( + com.google.cloud.speech.v2.UpdateConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void createCustomClass( + com.google.cloud.speech.v2.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists CustomClasses.
+     * 
+ */ + public void listCustomClasses( + com.google.cloud.speech.v2.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested
+     * [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void getCustomClass( + com.google.cloud.speech.v2.GetCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void updateCustomClass( + com.google.cloud.speech.v2.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void deleteCustomClass( + com.google.cloud.speech.v2.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void undeleteCustomClass( + com.google.cloud.speech.v2.UndeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeleteCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void createPhraseSet( + com.google.cloud.speech.v2.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists PhraseSets.
+     * 
+ */ + public void listPhraseSets( + com.google.cloud.speech.v2.ListPhraseSetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPhraseSetsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested
+     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void getPhraseSet( + com.google.cloud.speech.v2.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void updatePhraseSet( + com.google.cloud.speech.v2.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void deletePhraseSet( + com.google.cloud.speech.v2.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void undeletePhraseSet( + com.google.cloud.speech.v2.UndeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeletePhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Enables speech transcription and resource management.
+   * 
+ */ + 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); + } + + /** + * + * + *
+     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.longrunning.Operation createRecognizer( + com.google.cloud.speech.v2.CreateRecognizerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRecognizerMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Recognizers.
+     * 
+ */ + public com.google.cloud.speech.v2.ListRecognizersResponse listRecognizers( + com.google.cloud.speech.v2.ListRecognizersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRecognizersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested
+     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
+     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.speech.v2.Recognizer getRecognizer( + com.google.cloud.speech.v2.GetRecognizerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRecognizerMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.longrunning.Operation updateRecognizer( + com.google.cloud.speech.v2.UpdateRecognizerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateRecognizerMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.longrunning.Operation deleteRecognizer( + com.google.cloud.speech.v2.DeleteRecognizerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRecognizerMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.longrunning.Operation undeleteRecognizer( + com.google.cloud.speech.v2.UndeleteRecognizerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeleteRecognizerMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Performs synchronous Speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.cloud.speech.v2.RecognizeResponse recognize( + com.google.cloud.speech.v2.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRecognizeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Performs batch asynchronous speech recognition: send a request with N
+     * audio files and receive a long running operation that can be polled to see
+     * when the transcriptions are finished.
+     * 
+ */ + public com.google.longrunning.Operation batchRecognize( + com.google.cloud.speech.v2.BatchRecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchRecognizeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public com.google.cloud.speech.v2.Config getConfig( + com.google.cloud.speech.v2.GetConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public com.google.cloud.speech.v2.Config updateConfig( + com.google.cloud.speech.v2.UpdateConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.longrunning.Operation createCustomClass( + com.google.cloud.speech.v2.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists CustomClasses.
+     * 
+ */ + public com.google.cloud.speech.v2.ListCustomClassesResponse listCustomClasses( + com.google.cloud.speech.v2.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCustomClassesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested
+     * [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.cloud.speech.v2.CustomClass getCustomClass( + com.google.cloud.speech.v2.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.longrunning.Operation updateCustomClass( + com.google.cloud.speech.v2.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.longrunning.Operation deleteCustomClass( + com.google.cloud.speech.v2.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.longrunning.Operation undeleteCustomClass( + com.google.cloud.speech.v2.UndeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeleteCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.longrunning.Operation createPhraseSet( + com.google.cloud.speech.v2.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists PhraseSets.
+     * 
+ */ + public com.google.cloud.speech.v2.ListPhraseSetsResponse listPhraseSets( + com.google.cloud.speech.v2.ListPhraseSetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPhraseSetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested
+     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.cloud.speech.v2.PhraseSet getPhraseSet( + com.google.cloud.speech.v2.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.longrunning.Operation updatePhraseSet( + com.google.cloud.speech.v2.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.longrunning.Operation deletePhraseSet( + com.google.cloud.speech.v2.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.longrunning.Operation undeletePhraseSet( + com.google.cloud.speech.v2.UndeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeletePhraseSetMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Enables speech transcription and resource management.
+   * 
+ */ + 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); + } + + /** + * + * + *
+     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createRecognizer(com.google.cloud.speech.v2.CreateRecognizerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRecognizerMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Recognizers.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v2.ListRecognizersResponse> + listRecognizers(com.google.cloud.speech.v2.ListRecognizersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRecognizersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested
+     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
+     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getRecognizer(com.google.cloud.speech.v2.GetRecognizerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRecognizerMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateRecognizer(com.google.cloud.speech.v2.UpdateRecognizerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateRecognizerMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteRecognizer(com.google.cloud.speech.v2.DeleteRecognizerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRecognizerMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + undeleteRecognizer(com.google.cloud.speech.v2.UndeleteRecognizerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeleteRecognizerMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * 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.v2.RecognizeResponse> + recognize(com.google.cloud.speech.v2.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Performs batch asynchronous speech recognition: send a request with N
+     * audio files and receive a long running operation that can be polled to see
+     * when the transcriptions are finished.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + batchRecognize(com.google.cloud.speech.v2.BatchRecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchRecognizeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getConfig(com.google.cloud.speech.v2.GetConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateConfig(com.google.cloud.speech.v2.UpdateConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createCustomClass(com.google.cloud.speech.v2.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists CustomClasses.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v2.ListCustomClassesResponse> + listCustomClasses(com.google.cloud.speech.v2.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested
+     * [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v2.CustomClass> + getCustomClass(com.google.cloud.speech.v2.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateCustomClass(com.google.cloud.speech.v2.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteCustomClass(com.google.cloud.speech.v2.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + undeleteCustomClass(com.google.cloud.speech.v2.UndeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeleteCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createPhraseSet(com.google.cloud.speech.v2.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists PhraseSets.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v2.ListPhraseSetsResponse> + listPhraseSets(com.google.cloud.speech.v2.ListPhraseSetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPhraseSetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested
+     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getPhraseSet(com.google.cloud.speech.v2.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updatePhraseSet(com.google.cloud.speech.v2.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deletePhraseSet(com.google.cloud.speech.v2.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + undeletePhraseSet(com.google.cloud.speech.v2.UndeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeletePhraseSetMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_RECOGNIZER = 0; + private static final int METHODID_LIST_RECOGNIZERS = 1; + private static final int METHODID_GET_RECOGNIZER = 2; + private static final int METHODID_UPDATE_RECOGNIZER = 3; + private static final int METHODID_DELETE_RECOGNIZER = 4; + private static final int METHODID_UNDELETE_RECOGNIZER = 5; + private static final int METHODID_RECOGNIZE = 6; + private static final int METHODID_BATCH_RECOGNIZE = 7; + private static final int METHODID_GET_CONFIG = 8; + private static final int METHODID_UPDATE_CONFIG = 9; + private static final int METHODID_CREATE_CUSTOM_CLASS = 10; + private static final int METHODID_LIST_CUSTOM_CLASSES = 11; + private static final int METHODID_GET_CUSTOM_CLASS = 12; + private static final int METHODID_UPDATE_CUSTOM_CLASS = 13; + private static final int METHODID_DELETE_CUSTOM_CLASS = 14; + private static final int METHODID_UNDELETE_CUSTOM_CLASS = 15; + private static final int METHODID_CREATE_PHRASE_SET = 16; + private static final int METHODID_LIST_PHRASE_SETS = 17; + private static final int METHODID_GET_PHRASE_SET = 18; + private static final int METHODID_UPDATE_PHRASE_SET = 19; + private static final int METHODID_DELETE_PHRASE_SET = 20; + private static final int METHODID_UNDELETE_PHRASE_SET = 21; + private static final int METHODID_STREAMING_RECOGNIZE = 22; + + 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_CREATE_RECOGNIZER: + serviceImpl.createRecognizer( + (com.google.cloud.speech.v2.CreateRecognizerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RECOGNIZERS: + serviceImpl.listRecognizers( + (com.google.cloud.speech.v2.ListRecognizersRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_RECOGNIZER: + serviceImpl.getRecognizer( + (com.google.cloud.speech.v2.GetRecognizerRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_RECOGNIZER: + serviceImpl.updateRecognizer( + (com.google.cloud.speech.v2.UpdateRecognizerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_RECOGNIZER: + serviceImpl.deleteRecognizer( + (com.google.cloud.speech.v2.DeleteRecognizerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNDELETE_RECOGNIZER: + serviceImpl.undeleteRecognizer( + (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RECOGNIZE: + serviceImpl.recognize( + (com.google.cloud.speech.v2.RecognizeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_BATCH_RECOGNIZE: + serviceImpl.batchRecognize( + (com.google.cloud.speech.v2.BatchRecognizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CONFIG: + serviceImpl.getConfig( + (com.google.cloud.speech.v2.GetConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONFIG: + serviceImpl.updateConfig( + (com.google.cloud.speech.v2.UpdateConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CUSTOM_CLASS: + serviceImpl.createCustomClass( + (com.google.cloud.speech.v2.CreateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CUSTOM_CLASSES: + serviceImpl.listCustomClasses( + (com.google.cloud.speech.v2.ListCustomClassesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CUSTOM_CLASS: + serviceImpl.getCustomClass( + (com.google.cloud.speech.v2.GetCustomClassRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CUSTOM_CLASS: + serviceImpl.updateCustomClass( + (com.google.cloud.speech.v2.UpdateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CUSTOM_CLASS: + serviceImpl.deleteCustomClass( + (com.google.cloud.speech.v2.DeleteCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNDELETE_CUSTOM_CLASS: + serviceImpl.undeleteCustomClass( + (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_PHRASE_SET: + serviceImpl.createPhraseSet( + (com.google.cloud.speech.v2.CreatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_PHRASE_SETS: + serviceImpl.listPhraseSets( + (com.google.cloud.speech.v2.ListPhraseSetsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_PHRASE_SET: + serviceImpl.getPhraseSet( + (com.google.cloud.speech.v2.GetPhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_PHRASE_SET: + serviceImpl.updatePhraseSet( + (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_PHRASE_SET: + serviceImpl.deletePhraseSet( + (com.google.cloud.speech.v2.DeletePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNDELETE_PHRASE_SET: + serviceImpl.undeletePhraseSet( + (com.google.cloud.speech.v2.UndeletePhraseSetRequest) 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.v2.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.v2.CloudSpeechProto.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(getCreateRecognizerMethod()) + .addMethod(getListRecognizersMethod()) + .addMethod(getGetRecognizerMethod()) + .addMethod(getUpdateRecognizerMethod()) + .addMethod(getDeleteRecognizerMethod()) + .addMethod(getUndeleteRecognizerMethod()) + .addMethod(getRecognizeMethod()) + .addMethod(getStreamingRecognizeMethod()) + .addMethod(getBatchRecognizeMethod()) + .addMethod(getGetConfigMethod()) + .addMethod(getUpdateConfigMethod()) + .addMethod(getCreateCustomClassMethod()) + .addMethod(getListCustomClassesMethod()) + .addMethod(getGetCustomClassMethod()) + .addMethod(getUpdateCustomClassMethod()) + .addMethod(getDeleteCustomClassMethod()) + .addMethod(getUndeleteCustomClassMethod()) + .addMethod(getCreatePhraseSetMethod()) + .addMethod(getListPhraseSetsMethod()) + .addMethod(getGetPhraseSetMethod()) + .addMethod(getUpdatePhraseSetMethod()) + .addMethod(getDeletePhraseSetMethod()) + .addMethod(getUndeletePhraseSetMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java index 6d91dd3a2692..406224f1174c 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource where this custom class will be created. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -63,7 +85,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -72,14 +97,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`
@@ -90,17 +116,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 { @@ -109,9 +136,12 @@ public java.lang.String getParent() { } public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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.
@@ -120,6 +150,7 @@ public java.lang.String getParent() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The customClassId. */ @java.lang.Override @@ -128,14 +159,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.
@@ -144,16 +176,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 { @@ -164,11 +195,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 @@ -176,30 +212,44 @@ 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() { - return customClass_ == null ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() + : customClass_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,8 +261,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_); } @@ -238,8 +287,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,21 +297,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -290,129 +336,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +480,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 @@ -449,8 +501,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.CreateCustomClassRequest result = + new com.google.cloud.speech.v1.CreateCustomClassRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -464,9 +519,8 @@ private void buildPartial0(com.google.cloud.speech.v1.CreateCustomClassRequest r result.customClassId_ = customClassId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.customClass_ = customClassBuilder_ == null - ? customClass_ - : customClassBuilder_.build(); + result.customClass_ = + customClassBuilder_ == null ? customClass_ : customClassBuilder_.build(); } } @@ -474,38 +528,39 @@ private void buildPartial0(com.google.cloud.speech.v1.CreateCustomClassRequest r 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; @@ -513,7 +568,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_; bitField0_ |= 0x00000001; @@ -553,29 +609,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - customClassId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getCustomClassFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + customClassId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -585,10 +643,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -599,14 +660,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; @@ -615,6 +678,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -625,16 +690,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 { @@ -642,6 +708,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -652,19 +720,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -675,7 +749,10 @@ 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() { @@ -685,6 +762,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -695,13 +774,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -711,6 +794,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.
@@ -719,13 +804,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; @@ -734,6 +819,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.
@@ -742,15 +829,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 { @@ -758,6 +844,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.
@@ -766,18 +854,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomClassId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } customClassId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -786,6 +878,7 @@ public Builder setCustomClassId(
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCustomClassId() { @@ -795,6 +888,8 @@ public Builder clearCustomClassId() { return this; } /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -803,12 +898,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); customClassId_ = value; bitField0_ |= 0x00000002; @@ -818,39 +915,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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) { @@ -866,14 +982,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(); } else { @@ -884,17 +1003,21 @@ 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 (((bitField0_ & 0x00000004) != 0) && - customClass_ != null && - customClass_ != com.google.cloud.speech.v1.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && customClass_ != null + && customClass_ != com.google.cloud.speech.v1.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -907,11 +1030,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -924,11 +1051,15 @@ 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() { bitField0_ |= 0x00000004; @@ -936,43 +1067,55 @@ public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassBuilder() { 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); } @@ -982,12 +1125,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(); } @@ -996,27 +1139,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1031,6 +1174,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CreateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java index f9dbb4e979ea..14ccf162cb13 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java index 1fdc00c99f4f..5fc91b3d7289 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource where this phrase set will be created. Format:
    * `projects/{project}/locations/{location}/phraseSets`
@@ -63,7 +85,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -72,14 +97,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`
@@ -90,17 +116,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 { @@ -109,9 +136,12 @@ public java.lang.String getParent() { } public static final int PHRASE_SET_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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.
@@ -120,6 +150,7 @@ public java.lang.String getParent() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The phraseSetId. */ @java.lang.Override @@ -128,14 +159,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.
@@ -144,16 +176,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 { @@ -164,11 +195,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 @@ -176,30 +212,44 @@ 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() { - return phraseSet_ == null ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() + : phraseSet_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,8 +261,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_); } @@ -238,8 +287,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,21 +297,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -290,129 +336,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +480,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 @@ -449,8 +501,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.CreatePhraseSetRequest result = + new com.google.cloud.speech.v1.CreatePhraseSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -464,9 +519,7 @@ private void buildPartial0(com.google.cloud.speech.v1.CreatePhraseSetRequest res result.phraseSetId_ = phraseSetId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.phraseSet_ = phraseSetBuilder_ == null - ? phraseSet_ - : phraseSetBuilder_.build(); + result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build(); } } @@ -474,38 +527,39 @@ private void buildPartial0(com.google.cloud.speech.v1.CreatePhraseSetRequest res 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; @@ -513,7 +567,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_; bitField0_ |= 0x00000001; @@ -553,29 +608,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - phraseSetId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getPhraseSetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + phraseSetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -585,10 +642,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -599,14 +659,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; @@ -615,6 +677,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -625,16 +689,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 { @@ -642,6 +707,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -652,19 +719,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -675,7 +748,10 @@ 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() { @@ -685,6 +761,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -695,13 +773,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -711,6 +793,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.
@@ -719,13 +803,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; @@ -734,6 +818,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.
@@ -742,15 +828,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 { @@ -758,6 +843,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.
@@ -766,18 +853,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhraseSetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } phraseSetId_ = value; bitField0_ |= 0x00000002; 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.
@@ -786,6 +877,7 @@ public Builder setPhraseSetId(
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPhraseSetId() { @@ -795,6 +887,8 @@ public Builder clearPhraseSetId() { return this; } /** + * + * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -803,12 +897,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); phraseSetId_ = value; bitField0_ |= 0x00000002; @@ -818,39 +914,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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) { @@ -866,14 +981,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(); } else { @@ -884,17 +1002,21 @@ 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 (((bitField0_ & 0x00000004) != 0) && - phraseSet_ != null && - phraseSet_ != com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && phraseSet_ != null + && phraseSet_ != com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -907,11 +1029,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -924,11 +1050,15 @@ 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() { bitField0_ |= 0x00000004; @@ -936,43 +1066,55 @@ public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetBuilder() { 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); } @@ -982,12 +1124,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(); } @@ -996,27 +1138,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1031,6 +1173,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CreatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java index 913da08c2410..f8fffaec1d9b 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java similarity index 71% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java index e8de5865b8f1..44124e3d80a2 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java +++ b/java-speech/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,107 +47,122 @@ 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;
   }
-  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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** + * + * *
      * The class item's value.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -138,29 +171,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 { @@ -169,6 +202,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,8 +214,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_); } @@ -205,15 +238,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,87 +266,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 @@ -323,39 +362,41 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -365,9 +406,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 @@ -386,8 +427,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.CustomClass.ClassItem result = + new com.google.cloud.speech.v1.CustomClass.ClassItem(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -403,38 +447,41 @@ private void buildPartial0(com.google.cloud.speech.v1.CustomClass.ClassItem resu 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; @@ -442,7 +489,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_; bitField0_ |= 0x00000001; @@ -474,17 +522,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -494,22 +544,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -518,20 +571,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 { @@ -539,28 +593,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -570,23 +631,28 @@ public Builder clearValue() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -599,12 +665,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(); } @@ -613,27 +679,28 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,18 +715,21 @@ 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -668,29 +738,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 { @@ -699,15 +769,19 @@ public java.lang.String getName() { } public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -716,30 +790,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 { @@ -748,9 +822,12 @@ public java.lang.String getCustomClassId() { } public static final int ITEMS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List items_; /** + * + * *
    * A collection of class items.
    * 
@@ -762,6 +839,8 @@ public java.util.List getItems return items_; } /** + * + * *
    * A collection of class items.
    * 
@@ -769,11 +848,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.
    * 
@@ -785,6 +866,8 @@ public int getItemsCount() { return items_.size(); } /** + * + * *
    * A collection of class items.
    * 
@@ -796,6 +879,8 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem getItems(int index) { return items_.get(index); } /** + * + * *
    * A collection of class items.
    * 
@@ -803,12 +888,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; @@ -820,8 +905,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_); } @@ -847,8 +931,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -858,19 +941,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -895,97 +975,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
@@ -994,33 +1081,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1038,9 +1124,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
@@ -1059,9 +1145,12 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1092,38 +1181,39 @@ private void buildPartial0(com.google.cloud.speech.v1.CustomClass result) {
     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;
@@ -1160,9 +1250,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            itemsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getItemsFieldBuilder() : null;
+            itemsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getItemsFieldBuilder()
+                    : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -1194,35 +1285,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              customClassId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              com.google.cloud.speech.v1.CustomClass.ClassItem m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.CustomClass.ClassItem.parser(),
-                      extensionRegistry);
-              if (itemsBuilder_ == null) {
-                ensureItemsIsMutable();
-                items_.add(m);
-              } else {
-                itemsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                customClassId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                com.google.cloud.speech.v1.CustomClass.ClassItem m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1.CustomClass.ClassItem.parser(),
+                        extensionRegistry);
+                if (itemsBuilder_ == null) {
+                  ensureItemsIsMutable();
+                  items_.add(m);
+                } else {
+                  itemsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1232,22 +1327,25 @@ public Builder mergeFrom(
       } // finally
       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; @@ -1256,20 +1354,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 { @@ -1277,28 +1376,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1308,17 +1414,21 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1328,19 +1438,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; @@ -1349,21 +1461,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 { @@ -1371,30 +1484,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomClassId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } customClassId_ = value; bitField0_ |= 0x00000002; 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() { @@ -1404,18 +1524,22 @@ public Builder clearCustomClassId() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); customClassId_ = value; bitField0_ |= 0x00000002; @@ -1424,18 +1548,24 @@ public Builder setCustomClassIdBytes( } private java.util.List items_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000004; - } + } } 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.
      * 
@@ -1450,6 +1580,8 @@ public java.util.List getItems } } /** + * + * *
      * A collection of class items.
      * 
@@ -1464,6 +1596,8 @@ public int getItemsCount() { } } /** + * + * *
      * A collection of class items.
      * 
@@ -1478,14 +1612,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(); @@ -1499,6 +1634,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1517,6 +1654,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1537,14 +1676,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(); @@ -1558,6 +1698,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1576,6 +1718,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1594,6 +1738,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1604,8 +1750,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); @@ -1613,6 +1758,8 @@ public Builder addAllItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1630,6 +1777,8 @@ public Builder clearItems() { return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1647,39 +1796,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 { @@ -1687,6 +1841,8 @@ public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuild } } /** + * + * *
      * A collection of class items.
      * 
@@ -1694,49 +1850,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_ & 0x00000004) != 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_ & 0x00000004) != 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); } @@ -1746,12 +1908,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(); } @@ -1760,27 +1922,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1795,6 +1957,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java similarity index 100% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java index d22bd6cc0b5e..a32a11ff4e57 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java similarity index 66% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java index d867ebd6f041..4cd036fca68a 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java @@ -1,57 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -62,7 +84,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -71,14 +96,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}`
@@ -89,17 +115,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 { @@ -108,6 +135,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -119,8 +147,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_); } @@ -144,15 +171,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,129 +199,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -304,9 +337,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 @@ -325,8 +358,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.DeleteCustomClassRequest result = + new com.google.cloud.speech.v1.DeleteCustomClassRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -342,38 +378,39 @@ private void buildPartial0(com.google.cloud.speech.v1.DeleteCustomClassRequest r 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; @@ -381,7 +418,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_; bitField0_ |= 0x00000001; @@ -413,17 +451,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -433,10 +473,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -447,14 +490,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; @@ -463,6 +508,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -473,16 +520,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 { @@ -490,6 +538,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -500,19 +550,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -523,7 +579,10 @@ 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() { @@ -533,6 +592,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -543,22 +604,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -568,12 +633,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(); } @@ -582,27 +647,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -617,6 +682,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.DeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java index a534c8411380..9fdb35391b70 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java similarity index 62% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java index f39cb0f17a14..4d25db7465c7 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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; + @SuppressWarnings("serial") 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 @@ -66,30 +91,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 { @@ -98,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +137,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_); } @@ -134,15 +161,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,129 +189,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,9 +327,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 @@ -315,8 +348,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.DeletePhraseSetRequest result = + new com.google.cloud.speech.v1.DeletePhraseSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -332,38 +368,39 @@ private void buildPartial0(com.google.cloud.speech.v1.DeletePhraseSetRequest res 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; @@ -371,7 +408,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_; bitField0_ |= 0x00000001; @@ -403,17 +441,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,23 +463,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -448,21 +493,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 { @@ -470,30 +518,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -503,27 +562,33 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -533,12 +598,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(); } @@ -547,27 +612,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -582,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.DeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java new file mode 100644 index 000000000000..acfe28df3c0d --- /dev/null +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java similarity index 62% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java index fea2579924f3..2febfb796ae4 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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; + @SuppressWarnings("serial") 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 @@ -66,30 +91,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 { @@ -98,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +137,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_); } @@ -134,15 +161,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,130 +188,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,9 +327,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 @@ -315,8 +348,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.GetCustomClassRequest result = + new com.google.cloud.speech.v1.GetCustomClassRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -332,38 +368,39 @@ private void buildPartial0(com.google.cloud.speech.v1.GetCustomClassRequest resu 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; @@ -371,7 +408,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_; bitField0_ |= 0x00000001; @@ -403,17 +441,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,23 +463,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -448,21 +493,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 { @@ -470,30 +518,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -503,27 +562,33 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -533,12 +598,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(); } @@ -547,27 +612,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -582,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.GetCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java new file mode 100644 index 000000000000..73e1fc4cca40 --- /dev/null +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java similarity index 66% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java index b76f8f8c6820..33160c7f7863 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java @@ -1,57 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -62,7 +84,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -71,14 +96,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}`
@@ -89,17 +115,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 { @@ -108,6 +135,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -119,8 +147,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_); } @@ -144,15 +171,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -171,130 +198,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -304,9 +337,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 @@ -325,8 +358,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.GetPhraseSetRequest result = + new com.google.cloud.speech.v1.GetPhraseSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -342,38 +378,39 @@ private void buildPartial0(com.google.cloud.speech.v1.GetPhraseSetRequest result 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; @@ -413,17 +450,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -433,10 +472,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -447,14 +489,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; @@ -463,6 +507,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -473,16 +519,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 { @@ -490,6 +537,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -500,19 +549,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -523,7 +578,10 @@ 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() { @@ -533,6 +591,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -543,22 +603,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -568,12 +632,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(); } @@ -582,27 +646,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -617,6 +681,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.GetPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java index a7aa5beacb2e..84f560a798b3 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java similarity index 70% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java index b135c1117a81..f880b405cd2a 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -63,7 +85,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -72,14 +97,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`
@@ -90,17 +116,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 { @@ -111,6 +138,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * 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
@@ -119,6 +148,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -127,9 +157,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -138,6 +171,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -146,14 +180,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.
@@ -162,16 +197,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 { @@ -180,6 +214,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +226,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_); } @@ -215,8 +249,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_); @@ -229,19 +262,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,129 +296,135 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -399,9 +436,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 @@ -420,8 +457,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.ListCustomClassesRequest result = + new com.google.cloud.speech.v1.ListCustomClassesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -443,38 +483,39 @@ private void buildPartial0(com.google.cloud.speech.v1.ListCustomClassesRequest r 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; @@ -482,7 +523,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_; bitField0_ |= 0x00000001; @@ -522,27 +564,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -552,10 +598,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -566,14 +615,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; @@ -582,6 +633,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -592,16 +645,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 { @@ -609,6 +663,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -619,19 +675,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -642,7 +704,10 @@ 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() { @@ -652,6 +717,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -662,13 +729,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -676,8 +747,10 @@ public Builder setParentBytes( 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
@@ -686,6 +759,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -693,6 +767,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
@@ -701,17 +777,20 @@ 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; bitField0_ |= 0x00000002; 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
@@ -720,6 +799,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -731,6 +811,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.
@@ -739,13 +821,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; @@ -754,6 +836,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -762,15 +846,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 { @@ -778,6 +861,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -786,18 +871,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -806,6 +895,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -815,6 +905,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -823,21 +915,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -847,12 +941,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(); } @@ -861,27 +955,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +990,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.ListCustomClassesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java index 5e2d443bfaad..8644a10667d2 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java similarity index 72% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java index 1d187f70614c..a12356f80bc4 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private java.util.List customClasses_; /** + * + * *
    * The custom classes.
    * 
@@ -64,6 +86,8 @@ public java.util.List getCustomClassesLi return customClasses_; } /** + * + * *
    * The custom classes.
    * 
@@ -71,11 +95,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.
    * 
@@ -87,6 +113,8 @@ public int getCustomClassesCount() { return customClasses_.size(); } /** + * + * *
    * The custom classes.
    * 
@@ -98,6 +126,8 @@ public com.google.cloud.speech.v1.CustomClass getCustomClasses(int index) { return customClasses_.get(index); } /** + * + * *
    * The custom classes.
    * 
@@ -105,21 +135,24 @@ 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; + @SuppressWarnings("serial") 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 @@ -128,30 +161,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 { @@ -160,6 +193,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +205,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)); } @@ -189,8 +222,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_); @@ -203,17 +235,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,129 +268,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +413,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 @@ -397,14 +434,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1.ListCustomClassesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1.ListCustomClassesResponse result) { if (customClassesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { customClasses_ = java.util.Collections.unmodifiableList(customClasses_); @@ -427,38 +468,39 @@ private void buildPartial0(com.google.cloud.speech.v1.ListCustomClassesResponse 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; @@ -466,7 +508,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()) { @@ -485,9 +528,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_); } @@ -524,30 +568,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1.CustomClass m = - input.readMessage( - com.google.cloud.speech.v1.CustomClass.parser(), - extensionRegistry); - if (customClassesBuilder_ == null) { - ensureCustomClassesIsMutable(); - customClasses_.add(m); - } else { - customClassesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.speech.v1.CustomClass m = + input.readMessage( + com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry); + if (customClassesBuilder_ == null) { + ensureCustomClassesIsMutable(); + customClasses_.add(m); + } else { + customClassesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,21 +603,29 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -586,6 +640,8 @@ public java.util.List getCustomClassesLi } } /** + * + * *
      * The custom classes.
      * 
@@ -600,6 +656,8 @@ public int getCustomClassesCount() { } } /** + * + * *
      * The custom classes.
      * 
@@ -614,14 +672,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(); @@ -635,6 +694,8 @@ public Builder setCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -653,6 +714,8 @@ public Builder setCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -673,14 +736,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(); @@ -694,6 +758,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -712,6 +778,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -730,6 +798,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -740,8 +810,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); @@ -749,6 +818,8 @@ public Builder addAllCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -766,6 +837,8 @@ public Builder clearCustomClasses() { return this; } /** + * + * *
      * The custom classes.
      * 
@@ -783,39 +856,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 { @@ -823,6 +901,8 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder } } /** + * + * *
      * The custom classes.
      * 
@@ -830,38 +910,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(), @@ -873,19 +962,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; @@ -894,21 +985,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 { @@ -916,30 +1008,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -949,27 +1048,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -979,12 +1082,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(); } @@ -993,27 +1096,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1028,6 +1131,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.ListCustomClassesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java index 59b5c44f8cf4..187213b4a1cc 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java similarity index 70% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java index 40f7a9b35b96..279e1256747e 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -63,7 +85,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -72,14 +97,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}`
@@ -90,17 +116,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 { @@ -111,6 +138,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * 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
@@ -119,6 +148,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -127,9 +157,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -138,6 +171,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -146,14 +180,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.
@@ -162,16 +197,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 { @@ -180,6 +214,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +226,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_); } @@ -215,8 +249,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_); @@ -229,19 +262,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,130 +295,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -399,9 +436,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 @@ -420,8 +457,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.ListPhraseSetRequest result = + new com.google.cloud.speech.v1.ListPhraseSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -443,38 +483,39 @@ private void buildPartial0(com.google.cloud.speech.v1.ListPhraseSetRequest resul 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; @@ -482,7 +523,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_; bitField0_ |= 0x00000001; @@ -522,27 +564,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -552,10 +598,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -566,14 +615,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; @@ -582,6 +633,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -592,16 +645,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 { @@ -609,6 +663,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -619,19 +675,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -642,7 +704,10 @@ 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() { @@ -652,6 +717,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -662,13 +729,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -676,8 +747,10 @@ public Builder setParentBytes( 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
@@ -686,6 +759,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -693,6 +767,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
@@ -701,17 +777,20 @@ 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; bitField0_ |= 0x00000002; 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
@@ -720,6 +799,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -731,6 +811,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.
@@ -739,13 +821,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; @@ -754,6 +836,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -762,15 +846,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 { @@ -778,6 +861,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -786,18 +871,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -806,6 +895,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -815,6 +905,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -823,21 +915,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -847,12 +941,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(); } @@ -861,27 +955,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +990,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.ListPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java index 0077943458ba..21e2b44cf07c 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java similarity index 71% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java index 86740efe5c81..ce02bef96807 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private java.util.List phraseSets_; /** + * + * *
    * The phrase set.
    * 
@@ -64,6 +86,8 @@ public java.util.List getPhraseSetsList() return phraseSets_; } /** + * + * *
    * The phrase set.
    * 
@@ -71,11 +95,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.
    * 
@@ -87,6 +113,8 @@ public int getPhraseSetsCount() { return phraseSets_.size(); } /** + * + * *
    * The phrase set.
    * 
@@ -98,6 +126,8 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** + * + * *
    * The phrase set.
    * 
@@ -105,21 +135,24 @@ 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; + @SuppressWarnings("serial") 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 @@ -128,30 +161,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 { @@ -160,6 +193,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +205,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)); } @@ -189,8 +222,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_); @@ -203,17 +235,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -236,130 +267,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +413,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 @@ -397,14 +434,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1.ListPhraseSetResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1.ListPhraseSetResponse result) { if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -427,38 +468,39 @@ private void buildPartial0(com.google.cloud.speech.v1.ListPhraseSetResponse resu 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; @@ -466,7 +508,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()) { @@ -485,9 +528,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_); } @@ -524,30 +568,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1.PhraseSet m = - input.readMessage( - com.google.cloud.speech.v1.PhraseSet.parser(), - extensionRegistry); - if (phraseSetsBuilder_ == null) { - ensurePhraseSetsIsMutable(); - phraseSets_.add(m); - } else { - phraseSetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.speech.v1.PhraseSet m = + input.readMessage( + com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry); + if (phraseSetsBuilder_ == null) { + ensurePhraseSetsIsMutable(); + phraseSets_.add(m); + } else { + phraseSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,21 +603,28 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -586,6 +639,8 @@ public java.util.List getPhraseSetsList() } } /** + * + * *
      * The phrase set.
      * 
@@ -600,6 +655,8 @@ public int getPhraseSetsCount() { } } /** + * + * *
      * The phrase set.
      * 
@@ -614,14 +671,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(); @@ -635,6 +693,8 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -653,6 +713,8 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -673,14 +735,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(); @@ -694,14 +757,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()); @@ -712,6 +776,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -730,6 +796,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -740,8 +808,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); @@ -749,6 +816,8 @@ public Builder addAllPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -766,6 +835,8 @@ public Builder clearPhraseSets() { return this; } /** + * + * *
      * The phrase set.
      * 
@@ -783,39 +854,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 { @@ -823,6 +899,8 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder( } } /** + * + * *
      * The phrase set.
      * 
@@ -830,42 +908,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_; @@ -873,19 +956,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; @@ -894,21 +979,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 { @@ -916,30 +1002,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -949,27 +1042,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -979,12 +1076,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(); } @@ -993,27 +1090,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1028,6 +1125,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.ListPhraseSetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java index 8f78e4160d41..4b06b62509dc 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java similarity index 100% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java similarity index 70% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java index e88617c106db..0ac185cf74f7 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java +++ b/java-speech/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,53 +29,58 @@
  *
  * 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;
   }
-  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_ = 0;
   /**
+   *
+   *
    * 
    * 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 @@ -69,11 +91,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 @@ -81,11 +106,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 @@ -93,6 +121,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Time when the request was received.
    * 
@@ -107,11 +137,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 @@ -119,18 +152,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.
    * 
@@ -139,19 +179,25 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } public static final int URI_FIELD_NUMBER = 4; + @SuppressWarnings("serial") 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 @@ -160,30 +206,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 { @@ -192,6 +238,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,8 +250,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_); } @@ -227,16 +273,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_); @@ -249,27 +292,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -299,96 +339,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
@@ -397,33 +445,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -444,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_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
@@ -465,8 +512,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v1.LongRunningRecognizeMetadata result =
+          new com.google.cloud.speech.v1.LongRunningRecognizeMetadata(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -477,14 +527,11 @@ private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeMetada
         result.progressPercent_ = progressPercent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null
-            ? startTime_
-            : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.lastUpdateTime_ = lastUpdateTimeBuilder_ == null
-            ? lastUpdateTime_
-            : lastUpdateTimeBuilder_.build();
+        result.lastUpdateTime_ =
+            lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.uri_ = uri_;
@@ -495,38 +542,39 @@ private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeMetada
     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;
@@ -534,7 +582,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());
       }
@@ -575,36 +624,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              progressPercent_ = input.readInt32();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              input.readMessage(
-                  getStartTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getLastUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              uri_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                progressPercent_ = input.readInt32();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                uri_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -614,16 +664,20 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    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 @@ -631,29 +685,35 @@ 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; bitField0_ |= 0x00000001; 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() { @@ -665,24 +725,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -693,6 +762,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Time when the request was received.
      * 
@@ -713,14 +784,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(); } else { @@ -731,6 +803,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -739,9 +813,9 @@ public Builder setStartTime( */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -754,6 +828,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -771,6 +847,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -783,6 +861,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the request was received.
      * 
@@ -793,11 +873,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.
      * 
@@ -805,14 +886,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_; @@ -820,34 +904,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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.
      * 
@@ -868,14 +965,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(); } else { @@ -886,6 +984,8 @@ public Builder setLastUpdateTime( return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -894,9 +994,9 @@ public Builder setLastUpdateTime( */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - lastUpdateTime_ != null && - lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && lastUpdateTime_ != null + && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; @@ -909,6 +1009,8 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -926,6 +1028,8 @@ public Builder clearLastUpdateTime() { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -938,6 +1042,8 @@ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { return getLastUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -948,11 +1054,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.
      * 
@@ -960,14 +1069,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_; @@ -975,19 +1087,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; @@ -996,21 +1110,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 { @@ -1018,30 +1133,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uri_ = value; bitField0_ |= 0x00000008; 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() { @@ -1051,27 +1173,31 @@ public Builder clearUri() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000008; 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); } @@ -1081,12 +1207,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(); } @@ -1095,27 +1221,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; 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.LongRunningRecognizeMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java similarity index 74% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java index ccedbf890615..2b8a33c7f5ef 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java similarity index 58% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java index 848c9c5dcfb1..71531d95df77 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java +++ b/java-speech/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,52 +28,58 @@
  *
  * 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;
   }
-  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 @@ -64,39 +87,57 @@ 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() { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } 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 @@ -104,37 +145,55 @@ 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() { - return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } 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 @@ -142,30 +201,44 @@ 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() { - return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +250,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()); } @@ -198,16 +270,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -217,27 +286,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -268,96 +335,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.
@@ -365,33 +440,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -415,9 +489,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
@@ -436,8 +510,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v1.LongRunningRecognizeRequest result =
+          new com.google.cloud.speech.v1.LongRunningRecognizeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -445,19 +522,14 @@ public com.google.cloud.speech.v1.LongRunningRecognizeRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.config_ = configBuilder_ == null
-            ? config_
-            : configBuilder_.build();
+        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.audio_ = audioBuilder_ == null
-            ? audio_
-            : audioBuilder_.build();
+        result.audio_ = audioBuilder_ == null ? audio_ : audioBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.outputConfig_ = outputConfigBuilder_ == null
-            ? outputConfig_
-            : outputConfigBuilder_.build();
+        result.outputConfig_ =
+            outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
       }
     }
 
@@ -465,38 +537,39 @@ private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeReques
     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;
@@ -504,7 +577,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());
       }
@@ -540,33 +614,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getAudioFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 34: {
-              input.readMessage(
-                  getOutputConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getAudioFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 34:
+              {
+                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -576,46 +648,66 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * 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) { @@ -631,15 +723,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(); } else { @@ -650,18 +745,22 @@ 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 (((bitField0_ & 0x00000001) != 0) && - config_ != null && - config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && config_ != null + && config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -674,12 +773,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -692,12 +795,16 @@ 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() { bitField0_ |= 0x00000001; @@ -705,38 +812,50 @@ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { 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_; @@ -744,39 +863,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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) { @@ -792,14 +930,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(); } else { @@ -810,17 +951,21 @@ 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 (((bitField0_ & 0x00000002) != 0) && - audio_ != null && - audio_ != com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && audio_ != null + && audio_ != com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) { getAudioBuilder().mergeFrom(value); } else { audio_ = value; @@ -833,11 +978,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -850,11 +999,15 @@ 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() { bitField0_ |= 0x00000002; @@ -862,36 +1015,48 @@ public com.google.cloud.speech.v1.RecognitionAudio.Builder getAudioBuilder() { 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_; @@ -899,39 +1064,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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) { @@ -947,11 +1131,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) { @@ -965,17 +1153,22 @@ 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 (((bitField0_ & 0x00000004) != 0) && - outputConfig_ != null && - outputConfig_ != com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -988,11 +1181,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1005,11 +1202,15 @@ 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() { bitField0_ |= 0x00000004; @@ -1017,43 +1218,55 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig.Builder getOutputConfig 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); } @@ -1063,12 +1276,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(); } @@ -1077,27 +1290,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1112,6 +1325,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v1.LongRunningRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java index fe890f69a390..3a4e90c85d6f 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java similarity index 73% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java index dfe8f2186768..e9effc5e23ac 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java +++ b/java-speech/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,48 +31,53 @@
  *
  * 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;
   }
-  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;
+
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -68,6 +90,8 @@ public java.util.List getRes
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -76,11 +100,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.
@@ -93,6 +119,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -105,6 +133,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.
@@ -121,11 +151,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 @@ -133,18 +166,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.
    * 
@@ -153,17 +193,22 @@ public com.google.protobuf.Duration getTotalBilledTime() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } 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 @@ -171,18 +216,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.
    * 
@@ -191,17 +243,22 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig() { */ @java.lang.Override public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { - return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } 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 @@ -209,11 +266,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 @@ -221,6 +281,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.
    * 
@@ -235,11 +297,14 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 8; private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_; /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -247,18 +312,25 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
@@ -266,19 +338,25 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; */ @java.lang.Override - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 9; private long requestId_ = 0L; /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 9; + * * @return The requestId. */ @java.lang.Override @@ -287,6 +365,7 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -298,8 +377,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)); } @@ -328,28 +406,23 @@ 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()); } if (speechAdaptationInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSpeechAdaptationInfo()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, requestId_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -359,37 +432,32 @@ 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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo() - .equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() - != other.getRequestId()) return false; + if (getRequestId() != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -422,104 +490,111 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } 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`
@@ -530,33 +605,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -593,9 +667,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
@@ -614,14 +688,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v1.LongRunningRecognizeResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v1.LongRunningRecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -636,24 +714,22 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1.LongRunningRe
     private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
-            ? totalBilledTime_
-            : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ =
+            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.outputConfig_ = outputConfigBuilder_ == null
-            ? outputConfig_
-            : outputConfigBuilder_.build();
+        result.outputConfig_ =
+            outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.outputError_ = outputErrorBuilder_ == null
-            ? outputError_
-            : outputErrorBuilder_.build();
+        result.outputError_ =
+            outputErrorBuilder_ == null ? outputError_ : outputErrorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
-            ? speechAdaptationInfo_
-            : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ =
+            speechAdaptationInfoBuilder_ == null
+                ? speechAdaptationInfo_
+                : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.requestId_ = requestId_;
@@ -664,38 +740,39 @@ private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeRespon
     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;
@@ -703,7 +780,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()) {
@@ -722,9 +800,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_);
           }
@@ -771,58 +850,58 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18: {
-              com.google.cloud.speech.v1.SpeechRecognitionResult m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
-                      extensionRegistry);
-              if (resultsBuilder_ == null) {
-                ensureResultsIsMutable();
-                results_.add(m);
-              } else {
-                resultsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getTotalBilledTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 26
-            case 50: {
-              input.readMessage(
-                  getOutputConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getOutputErrorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 66
-            case 72: {
-              requestId_ = input.readInt64();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 72
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 18:
+              {
+                com.google.cloud.speech.v1.SpeechRecognitionResult m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
+                        extensionRegistry);
+                if (resultsBuilder_ == null) {
+                  ensureResultsIsMutable();
+                  results_.add(m);
+                } else {
+                  resultsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+            case 50:
+              {
+                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getOutputErrorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(
+                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 66
+            case 72:
+              {
+                requestId_ = input.readInt64();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 72
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -832,21 +911,29 @@ public Builder mergeFrom(
       } // finally
       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.
@@ -862,6 +949,8 @@ public java.util.List getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -877,6 +966,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -892,6 +983,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -899,8 +992,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();
@@ -914,6 +1006,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -933,6 +1027,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -954,6 +1050,8 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -961,8 +1059,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();
@@ -976,6 +1073,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -995,6 +1094,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1014,6 +1115,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1025,8 +1128,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);
@@ -1034,6 +1136,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1052,6 +1156,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1070,6 +1176,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1077,11 +1185,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.
@@ -1092,11 +1201,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.
@@ -1104,8 +1216,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 {
@@ -1113,6 +1225,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1121,10 +1235,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.
@@ -1132,12 +1248,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.
@@ -1145,20 +1263,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_;
@@ -1166,34 +1287,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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.
      * 
@@ -1214,14 +1348,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(); } else { @@ -1232,6 +1367,8 @@ public Builder setTotalBilledTime( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1240,9 +1377,9 @@ public Builder setTotalBilledTime( */ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - totalBilledTime_ != null && - totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && totalBilledTime_ != null + && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getTotalBilledTimeBuilder().mergeFrom(value); } else { totalBilledTime_ = value; @@ -1255,6 +1392,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1272,6 +1411,8 @@ public Builder clearTotalBilledTime() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1284,6 +1425,8 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { return getTotalBilledTimeFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1294,11 +1437,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.
      * 
@@ -1306,14 +1452,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_; @@ -1321,34 +1470,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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.
      * 
@@ -1369,6 +1531,8 @@ public Builder setOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1387,6 +1551,8 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1395,9 +1561,10 @@ public Builder setOutputConfig( */ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - outputConfig_ != null && - outputConfig_ != com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -1410,6 +1577,8 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConf return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1427,6 +1596,8 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1439,6 +1610,8 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig.Builder getOutputConfig return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1449,11 +1622,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.
      * 
@@ -1461,14 +1637,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_; @@ -1476,24 +1655,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 ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * 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() { @@ -1504,6 +1690,8 @@ public com.google.rpc.Status getOutputError() { } } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1524,14 +1712,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(); } else { @@ -1542,6 +1731,8 @@ public Builder setOutputError( return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1550,9 +1741,9 @@ public Builder setOutputError( */ public Builder mergeOutputError(com.google.rpc.Status value) { if (outputErrorBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - outputError_ != null && - outputError_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && outputError_ != null + && outputError_ != com.google.rpc.Status.getDefaultInstance()) { getOutputErrorBuilder().mergeFrom(value); } else { outputError_ = value; @@ -1565,6 +1756,8 @@ public Builder mergeOutputError(com.google.rpc.Status value) { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1582,6 +1775,8 @@ public Builder clearOutputError() { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1594,6 +1789,8 @@ public com.google.rpc.Status.Builder getOutputErrorBuilder() { return getOutputErrorFieldBuilder().getBuilder(); } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1604,11 +1801,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.
      * 
@@ -1616,14 +1814,15 @@ 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_; @@ -1631,34 +1830,47 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_; + com.google.cloud.speech.v1.SpeechAdaptationInfo, + com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> + speechAdaptationInfoBuilder_; /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1679,6 +1891,8 @@ public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptati return this; } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1697,17 +1911,21 @@ public Builder setSpeechAdaptationInfo( return this; } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo( + com.google.cloud.speech.v1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - speechAdaptationInfo_ != null && - speechAdaptationInfo_ != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && speechAdaptationInfo_ != null + && speechAdaptationInfo_ + != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -1720,6 +1938,8 @@ public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdapta return this; } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1737,33 +1957,42 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder + getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null ? - com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1771,27 +2000,33 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptat * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1.SpeechAdaptationInfo, + com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), - getParentForChildren(), - isClean()); + speechAdaptationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.SpeechAdaptationInfo, + com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), getParentForChildren(), isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_ ; + private long requestId_; /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; + * * @return The requestId. */ @java.lang.Override @@ -1799,29 +2034,35 @@ public long getRequestId() { return requestId_; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; + * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1830,9 +2071,9 @@ public Builder clearRequestId() { 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); } @@ -1842,12 +2083,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(); } @@ -1856,27 +2097,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1891,6 +2132,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.speech.v1.LongRunningRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java similarity index 84% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java index 1faf564a96a8..38e77a1cc96c 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java +++ b/java-speech/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.
    * 
@@ -138,24 +186,32 @@ com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder( com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder(); /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
@@ -165,12 +221,15 @@ com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder( com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 9; + * * @return The requestId. */ long getRequestId(); diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java similarity index 75% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java index 97cb160ce457..6587e7bb6196 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java +++ b/java-speech/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,54 +45,63 @@ 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;
   }
-  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
@@ -88,11 +115,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
@@ -121,53 +151,59 @@ 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;
     }
-    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;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object value_ = "";
     /**
+     *
+     *
      * 
      * The phrase itself.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -176,29 +212,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 { @@ -209,6 +245,8 @@ public java.lang.String getValue() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_ = 0F; /** + * + * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -222,6 +260,7 @@ public java.lang.String getValue() {
      * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -230,6 +269,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -241,8 +281,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_); } @@ -262,8 +301,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -273,18 +311,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -299,95 +336,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) + getUnknownFields().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 @@ -397,6 +439,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
@@ -425,33 +469,33 @@ 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()
-      private Builder() {
+      private Builder() {}
 
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -462,9 +506,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
@@ -483,8 +527,11 @@ 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);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.speech.v1.PhraseSet.Phrase result =
+            new com.google.cloud.speech.v1.PhraseSet.Phrase(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -503,38 +550,41 @@ private void buildPartial0(com.google.cloud.speech.v1.PhraseSet.Phrase result) {
       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;
@@ -577,22 +627,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                value_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 21: {
-                boost_ = input.readFloat();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 21
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  value_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 21:
+                {
+                  boost_ = input.readFloat();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 21
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -602,22 +655,25 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       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; @@ -626,20 +682,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 { @@ -647,28 +704,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -678,17 +742,21 @@ public Builder clearValue() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; @@ -696,8 +764,10 @@ public Builder setValueBytes( 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
@@ -711,6 +781,7 @@ public Builder setValueBytes(
        * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -718,6 +789,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
@@ -731,17 +804,20 @@ public float getBoost() {
        * 
* * float boost = 2; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000002; 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
@@ -755,6 +831,7 @@ public Builder setBoost(float value) {
        * 
* * float boost = 2; + * * @return This builder for chaining. */ public Builder clearBoost() { @@ -763,6 +840,7 @@ public Builder clearBoost() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -775,12 +853,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(); } @@ -789,27 +867,28 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -824,18 +903,21 @@ 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -844,29 +926,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 { @@ -875,9 +957,12 @@ public java.lang.String getName() { } public static final int PHRASES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List phrases_; /** + * + * *
    * A list of word and phrases.
    * 
@@ -889,6 +974,8 @@ public java.util.List getPhrasesLis return phrases_; } /** + * + * *
    * A list of word and phrases.
    * 
@@ -896,11 +983,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.
    * 
@@ -912,6 +1001,8 @@ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -923,6 +1014,8 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase getPhrases(int index) { return phrases_.get(index); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -930,14 +1023,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_ = 0F; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -951,6 +1045,7 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -959,6 +1054,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -970,8 +1066,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_); } @@ -994,12 +1089,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1009,20 +1102,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1041,104 +1131,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) + getUnknownFields().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.
@@ -1146,33 +1241,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1190,9 +1284,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
@@ -1213,7 +1307,9 @@ public com.google.cloud.speech.v1.PhraseSet build() {
     public com.google.cloud.speech.v1.PhraseSet buildPartial() {
       com.google.cloud.speech.v1.PhraseSet result = new com.google.cloud.speech.v1.PhraseSet(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1244,38 +1340,39 @@ private void buildPartial0(com.google.cloud.speech.v1.PhraseSet result) {
     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;
@@ -1307,9 +1404,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            phrasesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPhrasesFieldBuilder() : null;
+            phrasesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPhrasesFieldBuilder()
+                    : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -1344,35 +1442,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              com.google.cloud.speech.v1.PhraseSet.Phrase m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.PhraseSet.Phrase.parser(),
-                      extensionRegistry);
-              if (phrasesBuilder_ == null) {
-                ensurePhrasesIsMutable();
-                phrases_.add(m);
-              } else {
-                phrasesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            case 37: {
-              boost_ = input.readFloat();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 37
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.cloud.speech.v1.PhraseSet.Phrase m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1.PhraseSet.Phrase.parser(), extensionRegistry);
+                if (phrasesBuilder_ == null) {
+                  ensurePhrasesIsMutable();
+                  phrases_.add(m);
+                } else {
+                  phrasesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            case 37:
+              {
+                boost_ = input.readFloat();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 37
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1382,22 +1483,25 @@ public Builder mergeFrom(
       } // finally
       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; @@ -1406,20 +1510,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 { @@ -1427,28 +1532,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1458,17 +1570,21 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1477,18 +1593,24 @@ public Builder setNameBytes( } private java.util.List phrases_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { phrases_ = new java.util.ArrayList(phrases_); bitField0_ |= 0x00000002; - } + } } 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.
      * 
@@ -1503,6 +1625,8 @@ public java.util.List getPhrasesLis } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1517,6 +1641,8 @@ public int getPhrasesCount() { } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1531,14 +1657,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(); @@ -1552,6 +1679,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1570,6 +1699,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1590,14 +1721,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(); @@ -1611,14 +1743,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()); @@ -1629,6 +1762,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1647,6 +1782,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1657,8 +1794,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); @@ -1666,6 +1802,8 @@ public Builder addAllPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1683,6 +1821,8 @@ public Builder clearPhrases() { return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1700,39 +1840,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 { @@ -1740,6 +1885,8 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1747,49 +1894,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_ & 0x00000002) != 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_ & 0x00000002) != 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
@@ -1803,6 +1958,7 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder(
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -1810,6 +1966,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
@@ -1823,17 +1981,20 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000004; 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
@@ -1847,6 +2008,7 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { @@ -1855,9 +2017,9 @@ public Builder clearBoost() { 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); } @@ -1867,12 +2029,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(); } @@ -1881,27 +2043,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1916,6 +2078,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java similarity index 100% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java similarity index 72% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java index c57c3c5d692d..39857ed50248 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java similarity index 73% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java index 2f024eabd65d..359a12656d5b 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java +++ b/java-speech/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,52 +30,56 @@
  *
  * 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;
   }
-  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;
     }
@@ -74,25 +95,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
@@ -100,6 +126,7 @@ public int getNumber() {
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ @java.lang.Override @@ -107,6 +134,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
@@ -114,6 +143,7 @@ public boolean hasContent() {
    * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -126,6 +156,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).
@@ -137,12 +169,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).
@@ -154,6 +189,7 @@ public boolean hasUri() {
    * 
* * string uri = 2; + * * @return The uri. */ public java.lang.String getUri() { @@ -164,8 +200,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; @@ -174,6 +209,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).
@@ -185,18 +222,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; } @@ -207,6 +243,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,11 +255,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_); @@ -237,9 +272,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_); @@ -252,22 +287,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: @@ -300,97 +334,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
@@ -400,33 +441,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -437,9 +477,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
@@ -458,8 +498,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v1.RecognitionAudio result =
+          new com.google.cloud.speech.v1.RecognitionAudio(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -478,38 +521,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v1.RecognitionAudio resu
     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;
@@ -519,19 +563,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.getUnknownFields());
       onChanged();
@@ -559,23 +606,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              audioSource_ = input.readBytes();
-              audioSourceCase_ = 1;
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              audioSourceCase_ = 2;
-              audioSource_ = s;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                audioSource_ = input.readBytes();
+                audioSourceCase_ = 1;
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                audioSourceCase_ = 2;
+                audioSource_ = s;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -585,12 +635,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -603,6 +653,8 @@ public Builder clearAudioSource() {
     private int bitField0_;
 
     /**
+     *
+     *
      * 
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -610,12 +662,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
@@ -623,6 +678,7 @@ public boolean hasContent() {
      * 
* * bytes content = 1; + * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -632,6 +688,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
@@ -639,17 +697,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(); } + if (value == null) { + 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
@@ -657,6 +720,7 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -669,6 +733,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).
@@ -680,6 +746,7 @@ public Builder clearContent() {
      * 
* * string uri = 2; + * * @return Whether the uri field is set. */ @java.lang.Override @@ -687,6 +754,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).
@@ -698,6 +767,7 @@ public boolean hasUri() {
      * 
* * string uri = 2; + * * @return The uri. */ @java.lang.Override @@ -707,8 +777,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; @@ -719,6 +788,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).
@@ -730,19 +801,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; } @@ -752,6 +822,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).
@@ -763,18 +835,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUri(java.lang.String value) { + if (value == null) { + 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).
@@ -786,6 +862,7 @@ public Builder setUri(
      * 
* * string uri = 2; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -797,6 +874,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).
@@ -808,21 +887,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + 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); } @@ -832,12 +913,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(); } @@ -846,27 +927,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -881,6 +962,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionAudio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java similarity index 79% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java index 4347fb6f5a58..b8330aa93016 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java similarity index 83% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java index edeacb7e360d..8bf3511d1e87 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java +++ b/java-speech/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,30 +48,33 @@ 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;
   }
-  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
@@ -79,9 +100,10 @@ protected java.lang.Object newInstance(
    *
    * 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.
      * 
@@ -90,6 +112,8 @@ public enum AudioEncoding */ ENCODING_UNSPECIFIED(0), /** + * + * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -98,6 +122,8 @@ public enum AudioEncoding */ LINEAR16(1), /** + * + * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -111,6 +137,8 @@ public enum AudioEncoding
      */
     FLAC(2),
     /**
+     *
+     *
      * 
      * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
      * 
@@ -119,6 +147,8 @@ public enum AudioEncoding */ MULAW(3), /** + * + * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -127,6 +157,8 @@ public enum AudioEncoding */ AMR(4), /** + * + * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -135,6 +167,8 @@ public enum AudioEncoding */ AMR_WB(5), /** + * + * *
      * Opus encoded audio frames in Ogg container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)).
@@ -145,6 +179,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
@@ -165,6 +201,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
@@ -178,6 +216,8 @@ public enum AudioEncoding
     ;
 
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -186,6 +226,8 @@ public enum AudioEncoding */ public static final int ENCODING_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -194,6 +236,8 @@ public enum AudioEncoding */ public static final int LINEAR16_VALUE = 1; /** + * + * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -207,6 +251,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.
      * 
@@ -215,6 +261,8 @@ public enum AudioEncoding */ public static final int MULAW_VALUE = 3; /** + * + * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -223,6 +271,8 @@ public enum AudioEncoding */ public static final int AMR_VALUE = 4; /** + * + * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -231,6 +281,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)).
@@ -241,6 +293,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
@@ -261,6 +315,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
@@ -271,7 +327,6 @@ public enum AudioEncoding
      */
     public static final int WEBM_OPUS_VALUE = 9;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -296,55 +351,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;
@@ -364,6 +425,8 @@ private AudioEncoding(int value) {
   public static final int ENCODING_FIELD_NUMBER = 1;
   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
@@ -371,12 +434,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
@@ -384,16 +451,23 @@ 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() { - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.forNumber(encoding_); - return result == null ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding() { + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.forNumber(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_ = 0; /** + * + * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -405,6 +479,7 @@ private AudioEncoding(int value) {
    * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -415,6 +490,8 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 7; private int audioChannelCount_ = 0; /** + * + * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -427,6 +504,7 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ @java.lang.Override @@ -437,6 +515,8 @@ public int getAudioChannelCount() { public static final int ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER = 12; private boolean enableSeparateRecognitionPerChannel_ = false; /** + * + * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -447,6 +527,7 @@ public int getAudioChannelCount() {
    * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -455,9 +536,12 @@ public boolean getEnableSeparateRecognitionPerChannel() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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.
@@ -468,6 +552,7 @@ public boolean getEnableSeparateRecognitionPerChannel() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ @java.lang.Override @@ -476,14 +561,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.
@@ -494,16 +580,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 { @@ -512,9 +597,12 @@ public java.lang.String getLanguageCode() { } public static final int ALTERNATIVE_LANGUAGE_CODES_FIELD_NUMBER = 18; + @SuppressWarnings("serial") 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,
@@ -531,13 +619,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,
@@ -554,12 +644,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,
@@ -576,6 +669,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. */ @@ -583,6 +677,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,
@@ -599,17 +695,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_ = 0; /** + * + * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -620,6 +718,7 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
    * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ @java.lang.Override @@ -630,6 +729,8 @@ public int getMaxAlternatives() { public static final int PROFANITY_FILTER_FIELD_NUMBER = 5; private boolean profanityFilter_ = false; /** + * + * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -638,6 +739,7 @@ public int getMaxAlternatives() {
    * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ @java.lang.Override @@ -648,6 +750,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
@@ -657,6 +761,7 @@ public boolean getProfanityFilter() {
    * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -664,6 +769,8 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -673,13 +780,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
@@ -692,13 +804,18 @@ public com.google.cloud.speech.v1.SpeechAdaptation getAdaptation() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v1.SpeechAdaptationOrBuilder getAdaptationOrBuilder() {
-    return adaptation_ == null ? com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance() : adaptation_;
+    return adaptation_ == null
+        ? com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance()
+        : adaptation_;
   }
 
   public static final int SPEECH_CONTEXTS_FIELD_NUMBER = 6;
+
   @SuppressWarnings("serial")
   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
@@ -714,6 +831,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
@@ -725,11 +844,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
@@ -745,6 +866,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
@@ -760,6 +883,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
@@ -771,14 +896,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_ = false;
   /**
+   *
+   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -787,6 +913,7 @@ public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -797,6 +924,8 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 15; private boolean enableWordConfidence_ = false; /** + * + * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -804,6 +933,7 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -814,6 +944,8 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 11; private boolean enableAutomaticPunctuation_ = false; /** + * + * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -822,6 +954,7 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -832,6 +965,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
@@ -843,6 +978,7 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ @java.lang.Override @@ -850,6 +986,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
@@ -861,13 +999,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
@@ -882,12 +1025,16 @@ public com.google.protobuf.BoolValue getEnableSpokenPunctuation() {
    */
   @java.lang.Override
   public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilder() {
-    return enableSpokenPunctuation_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenPunctuation_;
+    return enableSpokenPunctuation_ == null
+        ? com.google.protobuf.BoolValue.getDefaultInstance()
+        : enableSpokenPunctuation_;
   }
 
   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
@@ -897,6 +1044,7 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ @java.lang.Override @@ -904,6 +1052,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
@@ -913,13 +1063,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
@@ -932,12 +1087,16 @@ public com.google.protobuf.BoolValue getEnableSpokenEmojis() {
    */
   @java.lang.Override
   public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
-    return enableSpokenEmojis_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenEmojis_;
+    return enableSpokenEmojis_ == null
+        ? com.google.protobuf.BoolValue.getDefaultInstance()
+        : enableSpokenEmojis_;
   }
 
   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.
@@ -950,6 +1109,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 @@ -957,6 +1117,8 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -969,13 +1131,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.
@@ -990,18 +1157,24 @@ 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() {
-    return diarizationConfig_ == null ? com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_;
+  public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder
+      getDiarizationConfigOrBuilder() {
+    return diarizationConfig_ == null
+        ? com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance()
+        : diarizationConfig_;
   }
 
   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 @@ -1009,18 +1182,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.
    * 
@@ -1029,13 +1209,18 @@ public com.google.cloud.speech.v1.RecognitionMetadata getMetadata() { */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() + : metadata_; } public static final int MODEL_FIELD_NUMBER = 13; + @SuppressWarnings("serial") 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
@@ -1091,6 +1276,7 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil
    * 
* * string model = 13; + * * @return The model. */ @java.lang.Override @@ -1099,14 +1285,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
@@ -1162,16 +1349,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 { @@ -1182,6 +1368,8 @@ public java.lang.String getModel() { public static final int USE_ENHANCED_FIELD_NUMBER = 14; private boolean useEnhanced_ = false; /** + * + * *
    * 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
@@ -1193,6 +1381,7 @@ public java.lang.String getModel() {
    * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ @java.lang.Override @@ -1201,6 +1390,7 @@ public boolean getUseEnhanced() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1212,9 +1402,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) { @@ -1257,7 +1448,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()); @@ -1280,59 +1472,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; @@ -1343,20 +1528,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1366,65 +1549,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1443,8 +1611,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) { @@ -1454,8 +1623,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(); @@ -1465,14 +1633,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(); @@ -1492,104 +1657,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) + getUnknownFields().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.
@@ -1597,33 +1768,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1678,9 +1848,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
@@ -1699,9 +1869,12 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1747,9 +1920,7 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognitionConfig result)
         result.profanityFilter_ = profanityFilter_;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.adaptation_ = adaptationBuilder_ == null
-            ? adaptation_
-            : adaptationBuilder_.build();
+        result.adaptation_ = adaptationBuilder_ == null ? adaptation_ : adaptationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
         result.enableWordTimeOffsets_ = enableWordTimeOffsets_;
@@ -1761,24 +1932,25 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognitionConfig result)
         result.enableAutomaticPunctuation_ = enableAutomaticPunctuation_;
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.enableSpokenPunctuation_ = enableSpokenPunctuationBuilder_ == null
-            ? enableSpokenPunctuation_
-            : enableSpokenPunctuationBuilder_.build();
+        result.enableSpokenPunctuation_ =
+            enableSpokenPunctuationBuilder_ == null
+                ? enableSpokenPunctuation_
+                : enableSpokenPunctuationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.enableSpokenEmojis_ = enableSpokenEmojisBuilder_ == null
-            ? enableSpokenEmojis_
-            : enableSpokenEmojisBuilder_.build();
+        result.enableSpokenEmojis_ =
+            enableSpokenEmojisBuilder_ == null
+                ? enableSpokenEmojis_
+                : enableSpokenEmojisBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.diarizationConfig_ = diarizationConfigBuilder_ == null
-            ? diarizationConfig_
-            : diarizationConfigBuilder_.build();
+        result.diarizationConfig_ =
+            diarizationConfigBuilder_ == null
+                ? diarizationConfig_
+                : diarizationConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00010000) != 0)) {
-        result.metadata_ = metadataBuilder_ == null
-            ? metadata_
-            : metadataBuilder_.build();
+        result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
       }
       if (((from_bitField0_ & 0x00020000) != 0)) {
         result.model_ = model_;
@@ -1792,38 +1964,39 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognitionConfig result)
     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;
@@ -1886,9 +2059,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.RecognitionConfig other) {
             speechContextsBuilder_ = null;
             speechContexts_ = other.speechContexts_;
             bitField0_ = (bitField0_ & ~0x00000200);
-            speechContextsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSpeechContextsFieldBuilder() : null;
+            speechContextsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSpeechContextsFieldBuilder()
+                    : null;
           } else {
             speechContextsBuilder_.addAllMessages(other.speechContexts_);
           }
@@ -1949,126 +2123,138 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              encoding_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 16: {
-              sampleRateHertz_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              languageCode_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 26
-            case 32: {
-              maxAlternatives_ = input.readInt32();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 32
-            case 40: {
-              profanityFilter_ = input.readBool();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 40
-            case 50: {
-              com.google.cloud.speech.v1.SpeechContext m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.SpeechContext.parser(),
-                      extensionRegistry);
-              if (speechContextsBuilder_ == null) {
-                ensureSpeechContextsIsMutable();
-                speechContexts_.add(m);
-              } else {
-                speechContextsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 50
-            case 56: {
-              audioChannelCount_ = input.readInt32();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 56
-            case 64: {
-              enableWordTimeOffsets_ = input.readBool();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 64
-            case 74: {
-              input.readMessage(
-                  getMetadataFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00010000;
-              break;
-            } // case 74
-            case 88: {
-              enableAutomaticPunctuation_ = input.readBool();
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 88
-            case 96: {
-              enableSeparateRecognitionPerChannel_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 96
-            case 106: {
-              model_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00020000;
-              break;
-            } // case 106
-            case 112: {
-              useEnhanced_ = input.readBool();
-              bitField0_ |= 0x00040000;
-              break;
-            } // case 112
-            case 120: {
-              enableWordConfidence_ = input.readBool();
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 120
-            case 146: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureAlternativeLanguageCodesIsMutable();
-              alternativeLanguageCodes_.add(s);
-              break;
-            } // case 146
-            case 154: {
-              input.readMessage(
-                  getDiarizationConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00008000;
-              break;
-            } // case 154
-            case 162: {
-              input.readMessage(
-                  getAdaptationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 162
-            case 178: {
-              input.readMessage(
-                  getEnableSpokenPunctuationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 178
-            case 186: {
-              input.readMessage(
-                  getEnableSpokenEmojisFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00004000;
-              break;
-            } // case 186
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                encoding_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 16:
+              {
+                sampleRateHertz_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                languageCode_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 26
+            case 32:
+              {
+                maxAlternatives_ = input.readInt32();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 32
+            case 40:
+              {
+                profanityFilter_ = input.readBool();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 40
+            case 50:
+              {
+                com.google.cloud.speech.v1.SpeechContext m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1.SpeechContext.parser(), extensionRegistry);
+                if (speechContextsBuilder_ == null) {
+                  ensureSpeechContextsIsMutable();
+                  speechContexts_.add(m);
+                } else {
+                  speechContextsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 50
+            case 56:
+              {
+                audioChannelCount_ = input.readInt32();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 56
+            case 64:
+              {
+                enableWordTimeOffsets_ = input.readBool();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 64
+            case 74:
+              {
+                input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00010000;
+                break;
+              } // case 74
+            case 88:
+              {
+                enableAutomaticPunctuation_ = input.readBool();
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 88
+            case 96:
+              {
+                enableSeparateRecognitionPerChannel_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 96
+            case 106:
+              {
+                model_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00020000;
+                break;
+              } // case 106
+            case 112:
+              {
+                useEnhanced_ = input.readBool();
+                bitField0_ |= 0x00040000;
+                break;
+              } // case 112
+            case 120:
+              {
+                enableWordConfidence_ = input.readBool();
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 120
+            case 146:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureAlternativeLanguageCodesIsMutable();
+                alternativeLanguageCodes_.add(s);
+                break;
+              } // case 146
+            case 154:
+              {
+                input.readMessage(
+                    getDiarizationConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00008000;
+                break;
+              } // case 154
+            case 162:
+              {
+                input.readMessage(getAdaptationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 162
+            case 178:
+              {
+                input.readMessage(
+                    getEnableSpokenPunctuationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 178
+            case 186:
+              {
+                input.readMessage(
+                    getEnableSpokenEmojisFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00004000;
+                break;
+              } // case 186
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2078,10 +2264,13 @@ public Builder mergeFrom(
       } // finally
       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
@@ -2089,12 +2278,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
@@ -2102,6 +2295,7 @@ 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. */ @@ -2112,6 +2306,8 @@ public Builder setEncodingValue(int value) { return this; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2119,14 +2315,20 @@ 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() { - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.forNumber(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.forNumber(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
@@ -2134,6 +2336,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. */ @@ -2147,6 +2350,8 @@ public Builder setEncoding(com.google.cloud.speech.v1.RecognitionConfig.AudioEnc return this; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2154,6 +2359,7 @@ 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() { @@ -2163,8 +2369,10 @@ public Builder clearEncoding() { 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.
@@ -2176,6 +2384,7 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -2183,6 +2392,8 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2194,17 +2405,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2216,6 +2430,7 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; + * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { @@ -2225,8 +2440,10 @@ public Builder clearSampleRateHertz() { return this; } - private int audioChannelCount_ ; + private int audioChannelCount_; /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2239,6 +2456,7 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ @java.lang.Override @@ -2246,6 +2464,8 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2258,17 +2478,20 @@ 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2281,6 +2504,7 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 7; + * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { @@ -2290,8 +2514,10 @@ public Builder clearAudioChannelCount() { 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
@@ -2302,6 +2528,7 @@ public Builder clearAudioChannelCount() {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -2309,6 +2536,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
@@ -2319,17 +2548,20 @@ 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; bitField0_ |= 0x00000008; 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
@@ -2340,6 +2572,7 @@ public Builder setEnableSeparateRecognitionPerChannel(boolean value) {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return This builder for chaining. */ public Builder clearEnableSeparateRecognitionPerChannel() { @@ -2351,6 +2584,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.
@@ -2361,13 +2596,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; @@ -2376,6 +2611,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.
@@ -2386,15 +2623,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 { @@ -2402,6 +2638,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.
@@ -2412,18 +2650,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000010; 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.
@@ -2434,6 +2676,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -2443,6 +2686,8 @@ public Builder clearLanguageCode() { return this; } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2453,12 +2698,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000010; @@ -2466,14 +2713,19 @@ public Builder setLanguageCodeBytes( 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_ & 0x00000020) != 0)) { - alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); + alternativeLanguageCodes_ = + new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); bitField0_ |= 0x00000020; - } + } } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2490,13 +2742,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,
@@ -2513,12 +2767,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,
@@ -2535,6 +2792,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. */ @@ -2542,6 +2800,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,
@@ -2558,14 +2818,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,
@@ -2582,19 +2844,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setAlternativeLanguageCodes(int index, java.lang.String value) { + if (value == null) { + 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,
@@ -2611,18 +2877,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) { - if (value == null) { throw new NullPointerException(); } + public Builder addAlternativeLanguageCodes(java.lang.String value) { + if (value == null) { + 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,
@@ -2639,18 +2909,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,
@@ -2667,6 +2938,7 @@ public Builder addAllAlternativeLanguageCodes(
      * 
* * repeated string alternative_language_codes = 18; + * * @return This builder for chaining. */ public Builder clearAlternativeLanguageCodes() { @@ -2676,6 +2948,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,
@@ -2692,12 +2966,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); @@ -2705,8 +2981,10 @@ public Builder addAlternativeLanguageCodesBytes( return this; } - private int maxAlternatives_ ; + private int maxAlternatives_; /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2717,6 +2995,7 @@ public Builder addAlternativeLanguageCodesBytes(
      * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ @java.lang.Override @@ -2724,6 +3003,8 @@ public int getMaxAlternatives() { return maxAlternatives_; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2734,17 +3015,20 @@ 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2755,6 +3039,7 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 4; + * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { @@ -2764,8 +3049,10 @@ public Builder clearMaxAlternatives() { 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
@@ -2774,6 +3061,7 @@ public Builder clearMaxAlternatives() {
      * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ @java.lang.Override @@ -2781,6 +3069,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
@@ -2789,17 +3079,20 @@ 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; bitField0_ |= 0x00000080; 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
@@ -2808,6 +3101,7 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 5; + * * @return This builder for chaining. */ public Builder clearProfanityFilter() { @@ -2819,8 +3113,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
@@ -2830,12 +3129,15 @@ public Builder clearProfanityFilter() {
      * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -2845,16 +3147,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
@@ -2879,6 +3186,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
@@ -2901,6 +3210,8 @@ public Builder setAdaptation(
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -2913,9 +3224,9 @@ public Builder setAdaptation(
      */
     public Builder mergeAdaptation(com.google.cloud.speech.v1.SpeechAdaptation value) {
       if (adaptationBuilder_ == null) {
-        if (((bitField0_ & 0x00000100) != 0) &&
-          adaptation_ != null &&
-          adaptation_ != com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000100) != 0)
+            && adaptation_ != null
+            && adaptation_ != com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance()) {
           getAdaptationBuilder().mergeFrom(value);
         } else {
           adaptation_ = value;
@@ -2928,6 +3239,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
@@ -2949,6 +3262,8 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -2965,6 +3280,8 @@ public com.google.cloud.speech.v1.SpeechAdaptation.Builder getAdaptationBuilder(
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -2979,11 +3296,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
@@ -2995,32 +3315,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_ & 0x00000200) != 0)) {
-        speechContexts_ = new java.util.ArrayList(speechContexts_);
+        speechContexts_ =
+            new java.util.ArrayList(speechContexts_);
         bitField0_ |= 0x00000200;
-       }
+      }
     }
 
     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
@@ -3039,6 +3369,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
@@ -3057,6 +3389,8 @@ public int getSpeechContextsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3075,6 +3409,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
@@ -3085,8 +3421,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();
@@ -3100,6 +3435,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
@@ -3122,6 +3459,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
@@ -3146,6 +3485,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
@@ -3156,8 +3497,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();
@@ -3171,6 +3511,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
@@ -3193,6 +3535,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
@@ -3215,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
@@ -3229,8 +3575,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);
@@ -3238,6 +3583,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
@@ -3259,6 +3606,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
@@ -3280,6 +3629,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
@@ -3290,11 +3641,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
@@ -3305,14 +3657,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
@@ -3323,8 +3677,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 {
@@ -3332,6 +3686,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
@@ -3343,10 +3699,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
@@ -3357,12 +3715,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
@@ -3373,16 +3732,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_ & 0x00000200) != 0),
                 getParentForChildren(),
@@ -3392,8 +3757,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
@@ -3402,6 +3769,7 @@ public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder
      * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -3409,6 +3777,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
@@ -3417,17 +3787,20 @@ 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; bitField0_ |= 0x00000400; 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
@@ -3436,6 +3809,7 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 8; + * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { @@ -3445,8 +3819,10 @@ public Builder clearEnableWordTimeOffsets() { 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
@@ -3454,6 +3830,7 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -3461,6 +3838,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
@@ -3468,17 +3847,20 @@ 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; bitField0_ |= 0x00000800; 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
@@ -3486,6 +3868,7 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 15; + * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { @@ -3495,8 +3878,10 @@ public Builder clearEnableWordConfidence() { 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
@@ -3505,6 +3890,7 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -3512,6 +3898,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
@@ -3520,17 +3908,20 @@ 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; bitField0_ |= 0x00001000; onChanged(); return this; } /** + * + * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3539,6 +3930,7 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 11; + * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { @@ -3550,8 +3942,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
@@ -3563,12 +3960,15 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ public boolean hasEnableSpokenPunctuation() { return ((bitField0_ & 0x00002000) != 0); } /** + * + * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3580,16 +3980,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
@@ -3616,6 +4021,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
@@ -3640,6 +4047,8 @@ public Builder setEnableSpokenPunctuation(
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3654,9 +4063,9 @@ public Builder setEnableSpokenPunctuation(
      */
     public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value) {
       if (enableSpokenPunctuationBuilder_ == null) {
-        if (((bitField0_ & 0x00002000) != 0) &&
-          enableSpokenPunctuation_ != null &&
-          enableSpokenPunctuation_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
+        if (((bitField0_ & 0x00002000) != 0)
+            && enableSpokenPunctuation_ != null
+            && enableSpokenPunctuation_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
           getEnableSpokenPunctuationBuilder().mergeFrom(value);
         } else {
           enableSpokenPunctuation_ = value;
@@ -3669,6 +4078,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
@@ -3692,6 +4103,8 @@ public Builder clearEnableSpokenPunctuation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3710,6 +4123,8 @@ public com.google.protobuf.BoolValue.Builder getEnableSpokenPunctuationBuilder()
       return getEnableSpokenPunctuationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3726,11 +4141,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
@@ -3744,14 +4162,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_;
@@ -3759,8 +4180,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
@@ -3770,12 +4196,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 ((bitField0_ & 0x00004000) != 0); } /** + * + * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3785,16 +4214,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
@@ -3819,6 +4253,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
@@ -3829,8 +4265,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();
       } else {
@@ -3841,6 +4276,8 @@ public Builder setEnableSpokenEmojis(
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3853,9 +4290,9 @@ public Builder setEnableSpokenEmojis(
      */
     public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       if (enableSpokenEmojisBuilder_ == null) {
-        if (((bitField0_ & 0x00004000) != 0) &&
-          enableSpokenEmojis_ != null &&
-          enableSpokenEmojis_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
+        if (((bitField0_ & 0x00004000) != 0)
+            && enableSpokenEmojis_ != null
+            && enableSpokenEmojis_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
           getEnableSpokenEmojisBuilder().mergeFrom(value);
         } else {
           enableSpokenEmojis_ = value;
@@ -3868,6 +4305,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
@@ -3889,6 +4328,8 @@ public Builder clearEnableSpokenEmojis() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3905,6 +4346,8 @@ public com.google.protobuf.BoolValue.Builder getEnableSpokenEmojisBuilder() {
       return getEnableSpokenEmojisFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3919,11 +4362,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
@@ -3935,14 +4381,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_;
@@ -3950,8 +4399,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.
@@ -3964,12 +4418,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 ((bitField0_ & 0x00008000) != 0); } /** + * + * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -3982,16 +4439,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.
@@ -4019,6 +4481,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.
@@ -4044,6 +4508,8 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4057,11 +4523,13 @@ 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 (((bitField0_ & 0x00008000) != 0) &&
-          diarizationConfig_ != null &&
-          diarizationConfig_ != com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00008000) != 0)
+            && diarizationConfig_ != null
+            && diarizationConfig_
+                != com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance()) {
           getDiarizationConfigBuilder().mergeFrom(value);
         } else {
           diarizationConfig_ = value;
@@ -4074,6 +4542,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.
@@ -4098,6 +4568,8 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4111,12 +4583,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() {
       bitField0_ |= 0x00008000;
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4130,15 +4605,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.
@@ -4153,14 +4632,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_;
@@ -4168,34 +4650,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 ((bitField0_ & 0x00010000) != 0); } /** + * + * *
      * 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.
      * 
@@ -4216,6 +4711,8 @@ public Builder setMetadata(com.google.cloud.speech.v1.RecognitionMetadata value) return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4234,6 +4731,8 @@ public Builder setMetadata( return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4242,9 +4741,9 @@ public Builder setMetadata( */ public Builder mergeMetadata(com.google.cloud.speech.v1.RecognitionMetadata value) { if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) && - metadata_ != null && - metadata_ != com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00010000) != 0) + && metadata_ != null + && metadata_ != com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; @@ -4257,6 +4756,8 @@ public Builder mergeMetadata(com.google.cloud.speech.v1.RecognitionMetadata valu return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4274,6 +4775,8 @@ public Builder clearMetadata() { return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4286,6 +4789,8 @@ public com.google.cloud.speech.v1.RecognitionMetadata.Builder getMetadataBuilder return getMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4296,11 +4801,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.
      * 
@@ -4308,14 +4816,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_; @@ -4323,6 +4834,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
@@ -4378,13 +4891,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; @@ -4393,6 +4906,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
@@ -4448,15 +4963,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 { @@ -4464,6 +4978,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
@@ -4519,18 +5035,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00020000; 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
@@ -4586,6 +5106,7 @@ public Builder setModel(
      * 
* * string model = 13; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -4595,6 +5116,8 @@ public Builder clearModel() { 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
@@ -4650,12 +5173,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00020000; @@ -4663,8 +5188,10 @@ public Builder setModelBytes( 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
@@ -4676,6 +5203,7 @@ public Builder setModelBytes(
      * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ @java.lang.Override @@ -4683,6 +5211,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
@@ -4694,17 +5224,20 @@ 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; bitField0_ |= 0x00040000; 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
@@ -4716,6 +5249,7 @@ public Builder setUseEnhanced(boolean value) {
      * 
* * bool use_enhanced = 14; + * * @return This builder for chaining. */ public Builder clearUseEnhanced() { @@ -4724,9 +5258,9 @@ public Builder clearUseEnhanced() { 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); } @@ -4736,12 +5270,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(); } @@ -4750,27 +5284,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4785,6 +5319,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java similarity index 94% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java index dc92690ff25c..323d1dbc34f4 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java +++ b/java-speech/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.
@@ -59,11 +86,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
@@ -74,11 +104,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.
@@ -89,10 +122,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.
@@ -103,12 +139,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,
@@ -125,11 +163,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,
@@ -146,10 +186,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,
@@ -166,11 +209,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,
@@ -187,13 +233,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
@@ -204,11 +252,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
@@ -217,11 +268,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
@@ -231,10 +285,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
@@ -244,10 +301,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
@@ -261,6 +321,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
@@ -271,9 +333,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
@@ -286,6 +349,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
@@ -298,6 +363,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
@@ -308,9 +375,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
@@ -321,10 +390,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
@@ -333,11 +403,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
@@ -345,11 +418,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
@@ -358,11 +434,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
@@ -374,10 +453,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
@@ -389,10 +471,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
@@ -408,6 +493,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
@@ -417,10 +504,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
@@ -430,10 +520,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
@@ -447,6 +540,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.
@@ -459,10 +554,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.
@@ -475,10 +573,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.
@@ -495,24 +596,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.
    * 
@@ -522,6 +631,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
@@ -577,10 +688,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
@@ -636,12 +750,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
@@ -653,6 +769,7 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ boolean getUseEnhanced(); diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java similarity index 71% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java index 6f469e5762cd..67310e166c44 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java +++ b/java-speech/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,30 +50,33 @@ 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; } - 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.
@@ -62,9 +84,10 @@ protected java.lang.Object newInstance(
    *
    * 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.
@@ -74,6 +97,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
@@ -85,6 +110,8 @@ public enum InteractionType
      */
     DISCUSSION(1),
     /**
+     *
+     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -94,6 +121,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.
@@ -103,6 +132,8 @@ public enum InteractionType
      */
     PHONE_CALL(3),
     /**
+     *
+     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -111,6 +142,8 @@ public enum InteractionType */ VOICEMAIL(4), /** + * + * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -119,6 +152,8 @@ public enum InteractionType */ PROFESSIONALLY_PRODUCED(5), /** + * + * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -127,6 +162,8 @@ public enum InteractionType */ VOICE_SEARCH(6), /** + * + * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -135,6 +172,8 @@ public enum InteractionType */ VOICE_COMMAND(7), /** + * + * *
      * Transcribe speech to text to create a written document, such as a
      * text-message, email or report.
@@ -147,6 +186,8 @@ public enum InteractionType
     ;
 
     /**
+     *
+     *
      * 
      * Use case is either unknown or is something other than one of the other
      * values below.
@@ -156,6 +197,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
@@ -167,6 +210,8 @@ public enum InteractionType
      */
     public static final int DISCUSSION_VALUE = 1;
     /**
+     *
+     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -176,6 +221,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.
@@ -185,6 +232,8 @@ public enum InteractionType
      */
     public static final int PHONE_CALL_VALUE = 3;
     /**
+     *
+     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -193,6 +242,8 @@ public enum InteractionType */ public static final int VOICEMAIL_VALUE = 4; /** + * + * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -201,6 +252,8 @@ public enum InteractionType */ public static final int PROFESSIONALLY_PRODUCED_VALUE = 5; /** + * + * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -209,6 +262,8 @@ public enum InteractionType */ public static final int VOICE_SEARCH_VALUE = 6; /** + * + * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -217,6 +272,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.
@@ -226,7 +283,6 @@ public enum InteractionType
      */
     public static final int DICTATION_VALUE = 8;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -251,45 +307,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);
     }
 
@@ -298,8 +363,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;
@@ -317,15 +381,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.
      * 
@@ -334,6 +401,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
@@ -344,6 +413,8 @@ public enum MicrophoneDistance
      */
     NEARFIELD(1),
     /**
+     *
+     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -352,6 +423,8 @@ public enum MicrophoneDistance */ MIDFIELD(2), /** + * + * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -363,6 +436,8 @@ public enum MicrophoneDistance ; /** + * + * *
      * Audio type is not known.
      * 
@@ -371,6 +446,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
@@ -381,6 +458,8 @@ public enum MicrophoneDistance
      */
     public static final int NEARFIELD_VALUE = 1;
     /**
+     *
+     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -389,6 +468,8 @@ public enum MicrophoneDistance */ public static final int MIDFIELD_VALUE = 2; /** + * + * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -397,7 +478,6 @@ public enum MicrophoneDistance */ public static final int FARFIELD_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -422,11 +502,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; } } @@ -434,28 +519,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); } @@ -464,8 +549,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; @@ -483,15 +567,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.
      * 
@@ -500,6 +587,8 @@ public enum OriginalMediaType */ ORIGINAL_MEDIA_TYPE_UNSPECIFIED(0), /** + * + * *
      * The speech data is an audio recording.
      * 
@@ -508,6 +597,8 @@ public enum OriginalMediaType */ AUDIO(1), /** + * + * *
      * The speech data originally recorded on a video.
      * 
@@ -519,6 +610,8 @@ public enum OriginalMediaType ; /** + * + * *
      * Unknown original media type.
      * 
@@ -527,6 +620,8 @@ public enum OriginalMediaType */ public static final int ORIGINAL_MEDIA_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The speech data is an audio recording.
      * 
@@ -535,6 +630,8 @@ public enum OriginalMediaType */ public static final int AUDIO_VALUE = 1; /** + * + * *
      * The speech data originally recorded on a video.
      * 
@@ -543,7 +640,6 @@ public enum OriginalMediaType */ public static final int VIDEO_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -568,10 +664,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; } } @@ -579,28 +679,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); } @@ -609,8 +709,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; @@ -628,15 +727,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.
      * 
@@ -645,6 +747,8 @@ public enum RecordingDeviceType */ RECORDING_DEVICE_TYPE_UNSPECIFIED(0), /** + * + * *
      * Speech was recorded on a smartphone.
      * 
@@ -653,6 +757,8 @@ public enum RecordingDeviceType */ SMARTPHONE(1), /** + * + * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -661,6 +767,8 @@ public enum RecordingDeviceType */ PC(2), /** + * + * *
      * Speech was recorded over a phone line.
      * 
@@ -669,6 +777,8 @@ public enum RecordingDeviceType */ PHONE_LINE(3), /** + * + * *
      * Speech was recorded in a vehicle.
      * 
@@ -677,6 +787,8 @@ public enum RecordingDeviceType */ VEHICLE(4), /** + * + * *
      * Speech was recorded outdoors.
      * 
@@ -685,6 +797,8 @@ public enum RecordingDeviceType */ OTHER_OUTDOOR_DEVICE(5), /** + * + * *
      * Speech was recorded indoors.
      * 
@@ -696,6 +810,8 @@ public enum RecordingDeviceType ; /** + * + * *
      * The recording device is unknown.
      * 
@@ -704,6 +820,8 @@ public enum RecordingDeviceType */ public static final int RECORDING_DEVICE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Speech was recorded on a smartphone.
      * 
@@ -712,6 +830,8 @@ public enum RecordingDeviceType */ public static final int SMARTPHONE_VALUE = 1; /** + * + * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -720,6 +840,8 @@ public enum RecordingDeviceType */ public static final int PC_VALUE = 2; /** + * + * *
      * Speech was recorded over a phone line.
      * 
@@ -728,6 +850,8 @@ public enum RecordingDeviceType */ public static final int PHONE_LINE_VALUE = 3; /** + * + * *
      * Speech was recorded in a vehicle.
      * 
@@ -736,6 +860,8 @@ public enum RecordingDeviceType */ public static final int VEHICLE_VALUE = 4; /** + * + * *
      * Speech was recorded outdoors.
      * 
@@ -744,6 +870,8 @@ public enum RecordingDeviceType */ public static final int OTHER_OUTDOOR_DEVICE_VALUE = 5; /** + * + * *
      * Speech was recorded indoors.
      * 
@@ -752,7 +880,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( @@ -777,14 +904,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; } } @@ -792,28 +927,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); } @@ -822,8 +957,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; @@ -843,32 +977,45 @@ private RecordingDeviceType(int value) { public static final int INTERACTION_TYPE_FIELD_NUMBER = 1; 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; + * * @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() { - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.forNumber(interactionType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInteractionType() { + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.forNumber(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_ = 0; /** + * + * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -877,6 +1024,7 @@ private RecordingDeviceType(int value) {
    * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -887,85 +1035,133 @@ public int getIndustryNaicsCodeOfAudio() { public static final int MICROPHONE_DISTANCE_FIELD_NUMBER = 4; 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; + * + * * @return The microphoneDistance. */ - @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.forNumber(microphoneDistance_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.forNumber( + 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_ = 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; + * + * * @return The originalMediaType. */ - @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.forNumber(originalMediaType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.forNumber( + 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_ = 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; + * + * * @return The recordingDeviceType. */ - @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.forNumber(recordingDeviceType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType + getRecordingDeviceType() { + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.forNumber( + recordingDeviceType_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED + : result; } public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER = 7; + @SuppressWarnings("serial") 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
@@ -973,6 +1169,7 @@ public int getIndustryNaicsCodeOfAudio() {
    * 
* * string recording_device_name = 7; + * * @return The recordingDeviceName. */ @java.lang.Override @@ -981,14 +1178,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
@@ -996,16 +1194,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 { @@ -1014,9 +1211,12 @@ public java.lang.String getRecordingDeviceName() { } public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER = 8; + @SuppressWarnings("serial") 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`.
@@ -1025,6 +1225,7 @@ public java.lang.String getRecordingDeviceName() {
    * 
* * string original_mime_type = 8; + * * @return The originalMimeType. */ @java.lang.Override @@ -1033,14 +1234,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`.
@@ -1049,16 +1251,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 { @@ -1067,15 +1268,19 @@ public java.lang.String getOriginalMimeType() { } public static final int AUDIO_TOPIC_FIELD_NUMBER = 10; + @SuppressWarnings("serial") 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 @@ -1084,30 +1289,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 { @@ -1116,6 +1321,7 @@ public java.lang.String getAudioTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1127,21 +1333,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_)) { @@ -1162,25 +1379,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_); @@ -1199,25 +1423,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1250,130 +1471,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1390,9 +1617,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 @@ -1411,8 +1638,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.RecognitionMetadata result = + new com.google.cloud.speech.v1.RecognitionMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1449,38 +1679,39 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognitionMetadata result 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; @@ -1545,52 +1776,61 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - interactionType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 24: { - industryNaicsCodeOfAudio_ = input.readUInt32(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 32: { - microphoneDistance_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 40: { - originalMediaType_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 48: { - recordingDeviceType_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 58: { - recordingDeviceName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: { - originalMimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 82: { - audioTopic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + interactionType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 24: + { + industryNaicsCodeOfAudio_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: + { + microphoneDistance_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: + { + originalMediaType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: + { + recordingDeviceType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: + { + recordingDeviceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + originalMimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 82: + { + audioTopic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1600,26 +1840,36 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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. */ @@ -1630,28 +1880,41 @@ public Builder setInteractionTypeValue(int value) { 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() { - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.forNumber(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.forNumber( + 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(); } @@ -1661,11 +1924,15 @@ public Builder setInteractionType(com.google.cloud.speech.v1.RecognitionMetadata 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() { @@ -1675,8 +1942,10 @@ public Builder clearInteractionType() { 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
@@ -1685,6 +1954,7 @@ public Builder clearInteractionType() {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1692,6 +1962,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
@@ -1700,17 +1972,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1719,6 +1994,7 @@ public Builder setIndustryNaicsCodeOfAudio(int value) {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return This builder for chaining. */ public Builder clearIndustryNaicsCodeOfAudio() { @@ -1730,22 +2006,31 @@ 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. */ @@ -1756,28 +2041,42 @@ public Builder setMicrophoneDistanceValue(int value) { 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() { - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.forNumber(microphoneDistance_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; + public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance + getMicrophoneDistance() { + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.forNumber( + 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(); } @@ -1787,11 +2086,15 @@ public Builder setMicrophoneDistance(com.google.cloud.speech.v1.RecognitionMetad 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() { @@ -1803,22 +2106,31 @@ 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. */ @@ -1829,28 +2141,41 @@ public Builder setOriginalMediaTypeValue(int value) { 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() { - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.forNumber(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.forNumber( + 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(); } @@ -1860,11 +2185,15 @@ public Builder setOriginalMediaType(com.google.cloud.speech.v1.RecognitionMetada 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() { @@ -1876,22 +2205,33 @@ 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. */ @@ -1902,28 +2242,44 @@ public Builder setRecordingDeviceTypeValue(int value) { 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() { - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.forNumber(recordingDeviceType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; + public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType + getRecordingDeviceType() { + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.forNumber( + 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(); } @@ -1933,11 +2289,16 @@ public Builder setRecordingDeviceType(com.google.cloud.speech.v1.RecognitionMeta 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() { @@ -1949,6 +2310,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
@@ -1956,13 +2319,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; @@ -1971,6 +2334,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
@@ -1978,15 +2343,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 { @@ -1994,6 +2358,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
@@ -2001,18 +2367,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecordingDeviceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } recordingDeviceName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2020,6 +2390,7 @@ public Builder setRecordingDeviceName(
      * 
* * string recording_device_name = 7; + * * @return This builder for chaining. */ public Builder clearRecordingDeviceName() { @@ -2029,6 +2400,8 @@ public Builder clearRecordingDeviceName() { return this; } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2036,12 +2409,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecordingDeviceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); recordingDeviceName_ = value; bitField0_ |= 0x00000020; @@ -2051,6 +2426,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`.
@@ -2059,13 +2436,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; @@ -2074,6 +2451,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`.
@@ -2082,15 +2461,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 { @@ -2098,6 +2476,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`.
@@ -2106,18 +2486,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setOriginalMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } originalMimeType_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2126,6 +2510,7 @@ public Builder setOriginalMimeType(
      * 
* * string original_mime_type = 8; + * * @return This builder for chaining. */ public Builder clearOriginalMimeType() { @@ -2135,6 +2520,8 @@ public Builder clearOriginalMimeType() { return this; } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2143,12 +2530,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setOriginalMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); originalMimeType_ = value; bitField0_ |= 0x00000040; @@ -2158,19 +2547,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; @@ -2179,21 +2570,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 { @@ -2201,30 +2593,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setAudioTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } audioTopic_ = value; bitField0_ |= 0x00000080; 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() { @@ -2234,27 +2633,31 @@ public Builder clearAudioTopic() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setAudioTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); audioTopic_ = value; bitField0_ |= 0x00000080; 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); } @@ -2264,12 +2667,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(); } @@ -2278,27 +2681,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2313,6 +2716,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java similarity index 76% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java index 5b3a0073fc09..bd7b23985e30 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java similarity index 59% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java index 1e69cbf4d513..09e4d70b8582 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java @@ -1,61 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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 @@ -63,39 +86,57 @@ 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() { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } 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 @@ -103,30 +144,44 @@ 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() { - return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,8 +193,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()); } @@ -156,12 +210,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -171,22 +223,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -212,130 +263,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -354,9 +411,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 @@ -375,8 +432,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.RecognizeRequest result = + new com.google.cloud.speech.v1.RecognizeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -384,14 +444,10 @@ public com.google.cloud.speech.v1.RecognizeRequest buildPartial() { private void buildPartial0(com.google.cloud.speech.v1.RecognizeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.config_ = configBuilder_ == null - ? config_ - : configBuilder_.build(); + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.audio_ = audioBuilder_ == null - ? audio_ - : audioBuilder_.build(); + result.audio_ = audioBuilder_ == null ? audio_ : audioBuilder_.build(); } } @@ -399,38 +455,39 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognizeRequest result) { 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; @@ -471,26 +528,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getAudioFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getAudioFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,46 +556,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * 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) { @@ -555,15 +631,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(); } else { @@ -574,18 +653,22 @@ 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 (((bitField0_ & 0x00000001) != 0) && - config_ != null && - config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && config_ != null + && config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -598,12 +681,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -616,12 +703,16 @@ 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() { bitField0_ |= 0x00000001; @@ -629,38 +720,50 @@ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { 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_; @@ -668,39 +771,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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) { @@ -716,14 +838,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(); } else { @@ -734,17 +859,21 @@ 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 (((bitField0_ & 0x00000002) != 0) && - audio_ != null && - audio_ != com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && audio_ != null + && audio_ != com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) { getAudioBuilder().mergeFrom(value); } else { audio_ = value; @@ -757,11 +886,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -774,11 +907,15 @@ 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() { bitField0_ |= 0x00000002; @@ -786,43 +923,55 @@ public com.google.cloud.speech.v1.RecognitionAudio.Builder getAudioBuilder() { 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); } @@ -832,12 +981,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(); } @@ -846,27 +995,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -881,6 +1030,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java new file mode 100644 index 000000000000..df0bfe2abf0f --- /dev/null +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java similarity index 72% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java index 3a4609c04b81..1e903b6aecc6 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java +++ b/java-speech/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,48 +29,53 @@
  *
  * 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;
   }
-  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;
+
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -66,6 +88,8 @@ public java.util.List getRes
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -74,11 +98,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.
@@ -91,6 +117,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -103,6 +131,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.
@@ -119,11 +149,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 @@ -131,18 +164,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.
    * 
@@ -151,17 +191,22 @@ public com.google.protobuf.Duration getTotalBilledTime() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 7; private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_; /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -169,18 +214,25 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } /** + * + * *
    * Provides information on adaptation behavior in response
    * 
@@ -188,19 +240,25 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; */ @java.lang.Override - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 8; private long requestId_ = 0L; /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 8; + * * @return The requestId. */ @java.lang.Override @@ -209,6 +267,7 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,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)); } @@ -244,20 +302,17 @@ 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 (speechAdaptationInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getSpeechAdaptationInfo()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, requestId_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -267,27 +322,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.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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo() - .equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() - != other.getRequestId()) return false; + if (getRequestId() != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -312,104 +364,110 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; 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`
@@ -418,33 +476,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -471,9 +528,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
@@ -492,9 +549,12 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -514,14 +574,14 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1.RecognizeResp
     private void buildPartial0(com.google.cloud.speech.v1.RecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
-            ? totalBilledTime_
-            : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ =
+            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
-            ? speechAdaptationInfo_
-            : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ =
+            speechAdaptationInfoBuilder_ == null
+                ? speechAdaptationInfo_
+                : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.requestId_ = requestId_;
@@ -532,38 +592,39 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognizeResponse result)
     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;
@@ -590,9 +651,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_);
           }
@@ -633,44 +695,46 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18: {
-              com.google.cloud.speech.v1.SpeechRecognitionResult m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
-                      extensionRegistry);
-              if (resultsBuilder_ == null) {
-                ensureResultsIsMutable();
-                results_.add(m);
-              } else {
-                resultsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getTotalBilledTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 26
-            case 58: {
-              input.readMessage(
-                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 58
-            case 64: {
-              requestId_ = input.readInt64();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 64
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 18:
+              {
+                com.google.cloud.speech.v1.SpeechRecognitionResult m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
+                        extensionRegistry);
+                if (resultsBuilder_ == null) {
+                  ensureResultsIsMutable();
+                  results_.add(m);
+                } else {
+                  resultsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+            case 58:
+              {
+                input.readMessage(
+                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 58
+            case 64:
+              {
+                requestId_ = input.readInt64();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 64
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -680,21 +744,29 @@ public Builder mergeFrom(
       } // finally
       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.
@@ -710,6 +782,8 @@ public java.util.List getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -725,6 +799,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -740,6 +816,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -747,8 +825,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();
@@ -762,6 +839,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -781,6 +860,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -802,6 +883,8 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -809,8 +892,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();
@@ -824,6 +906,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -843,6 +927,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -862,6 +948,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -873,8 +961,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);
@@ -882,6 +969,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -900,6 +989,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -918,6 +1009,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -925,11 +1018,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.
@@ -940,11 +1034,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.
@@ -952,8 +1049,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 {
@@ -961,6 +1058,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -969,10 +1068,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.
@@ -980,12 +1081,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.
@@ -993,20 +1096,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_;
@@ -1014,34 +1120,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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.
      * 
@@ -1062,14 +1181,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(); } else { @@ -1080,6 +1200,8 @@ public Builder setTotalBilledTime( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1088,9 +1210,9 @@ public Builder setTotalBilledTime( */ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - totalBilledTime_ != null && - totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && totalBilledTime_ != null + && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getTotalBilledTimeBuilder().mergeFrom(value); } else { totalBilledTime_ = value; @@ -1103,6 +1225,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1120,6 +1244,8 @@ public Builder clearTotalBilledTime() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1132,6 +1258,8 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { return getTotalBilledTimeFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1142,11 +1270,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.
      * 
@@ -1154,14 +1285,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_; @@ -1169,34 +1303,47 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_; + com.google.cloud.speech.v1.SpeechAdaptationInfo, + com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> + speechAdaptationInfoBuilder_; /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1217,6 +1364,8 @@ public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptati return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1235,17 +1384,21 @@ public Builder setSpeechAdaptationInfo( return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo( + com.google.cloud.speech.v1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - speechAdaptationInfo_ != null && - speechAdaptationInfo_ != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && speechAdaptationInfo_ != null + && speechAdaptationInfo_ + != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -1258,6 +1411,8 @@ public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdapta return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1275,33 +1430,42 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder + getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null ? - com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1309,27 +1473,33 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptat * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1.SpeechAdaptationInfo, + com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), - getParentForChildren(), - isClean()); + speechAdaptationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.SpeechAdaptationInfo, + com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), getParentForChildren(), isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_ ; + private long requestId_; /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; + * * @return The requestId. */ @java.lang.Override @@ -1337,29 +1507,35 @@ public long getRequestId() { return requestId_; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; + * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1368,9 +1544,9 @@ public Builder clearRequestId() { 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); } @@ -1380,12 +1556,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(); } @@ -1394,27 +1570,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1429,6 +1605,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java similarity index 80% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java index abeea15f5484..47f347663cae 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java +++ b/java-speech/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.
    * 
@@ -84,24 +116,32 @@ com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder( com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder(); /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** + * + * *
    * Provides information on adaptation behavior in response
    * 
@@ -111,12 +151,15 @@ com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder( com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 8; + * * @return The requestId. */ long getRequestId(); diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java similarity index 69% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java index a3625012a50b..b73e5b4f202b 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java @@ -1,55 +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; /** + * + * *
  * 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; } - 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_ = false; /** + * + * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -57,6 +77,7 @@ protected java.lang.Object newInstance(
    * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -67,6 +88,8 @@ public boolean getEnableSpeakerDiarization() { public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_ = 0; /** + * + * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -74,6 +97,7 @@ public boolean getEnableSpeakerDiarization() {
    * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -84,6 +108,8 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_ = 0; /** + * + * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -91,6 +117,7 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -101,21 +128,27 @@ public int getMaxSpeakerCount() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_ = 0; /** + * + * *
    * 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=456 + * 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=456 * @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; @@ -127,8 +160,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_); } @@ -151,20 +183,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,21 +202,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -201,8 +226,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; @@ -215,129 +239,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +380,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 @@ -371,8 +401,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.SpeakerDiarizationConfig result = + new com.google.cloud.speech.v1.SpeakerDiarizationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -397,38 +430,39 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeakerDiarizationConfig r 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; @@ -436,7 +470,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()); } @@ -475,32 +510,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableSpeakerDiarization_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - minSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - maxSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 40: { - speakerTag_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableSpeakerDiarization_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + minSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + maxSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 40: + { + speakerTag_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -510,10 +550,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - 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
@@ -521,6 +564,7 @@ public Builder mergeFrom(
      * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -528,6 +572,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
@@ -535,17 +581,20 @@ 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; bitField0_ |= 0x00000001; 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
@@ -553,6 +602,7 @@ public Builder setEnableSpeakerDiarization(boolean value) {
      * 
* * bool enable_speaker_diarization = 1; + * * @return This builder for chaining. */ public Builder clearEnableSpeakerDiarization() { @@ -562,8 +612,10 @@ public Builder clearEnableSpeakerDiarization() { 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
@@ -571,6 +623,7 @@ public Builder clearEnableSpeakerDiarization() {
      * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -578,6 +631,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
@@ -585,17 +640,20 @@ 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; bitField0_ |= 0x00000002; 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
@@ -603,6 +661,7 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2; + * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { @@ -612,8 +671,10 @@ public Builder clearMinSpeakerCount() { 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
@@ -621,6 +682,7 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -628,6 +690,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
@@ -635,17 +699,20 @@ 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; bitField0_ |= 0x00000004; 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
@@ -653,6 +720,7 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3; + * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { @@ -662,58 +730,73 @@ public Builder clearMaxSpeakerCount() { 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=456 + * 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=456 * @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=456 + * 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=456 * @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; bitField0_ |= 0x00000008; 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=456 + * 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=456 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearSpeakerTag() { + @java.lang.Deprecated + public Builder clearSpeakerTag() { bitField0_ = (bitField0_ & ~0x00000008); 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); } @@ -723,12 +806,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(); } @@ -737,27 +820,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -772,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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java similarity index 64% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java index 0da15ac5a99d..d754b4e464ec 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java +++ b/java-speech/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=456 + * 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=456 * @return The speakerTag. */ - @java.lang.Deprecated int getSpeakerTag(); + @java.lang.Deprecated + int getSpeakerTag(); } diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java similarity index 76% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java index 1c4672f85a6d..526bd25894c3 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java +++ b/java-speech/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,154 +45,175 @@ 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; } - 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 interface ABNFGrammarOrBuilder extends + public interface ABNFGrammarOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @return A list containing the abnfStrings. */ - java.util.List - getAbnfStringsList(); + java.util.List getAbnfStringsList(); /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @return The count of abnfStrings. */ int getAbnfStringsCount(); /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ java.lang.String getAbnfStrings(int index); /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - com.google.protobuf.ByteString - getAbnfStringsBytes(int index); + com.google.protobuf.ByteString getAbnfStringsBytes(int index); } - /** - * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar} - */ - public static final class ABNFGrammar extends - com.google.protobuf.GeneratedMessageV3 implements + /** Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar} */ + public static final class ABNFGrammar extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) ABNFGrammarOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ABNFGrammar.newBuilder() to construct. private ABNFGrammar(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ABNFGrammar() { abnfStrings_ = 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 ABNFGrammar(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_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_ABNFGrammar_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.class, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.class, + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder.class); } public static final int ABNF_STRINGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList abnfStrings_; /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @return A list containing the abnfStrings. */ - public com.google.protobuf.ProtocolStringList - getAbnfStringsList() { + public com.google.protobuf.ProtocolStringList getAbnfStringsList() { return abnfStrings_; } /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @return The count of abnfStrings. */ public int getAbnfStringsCount() { return abnfStrings_.size(); } /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ @@ -182,21 +221,24 @@ public java.lang.String getAbnfStrings(int index) { return abnfStrings_.get(index); } /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - public com.google.protobuf.ByteString - getAbnfStringsBytes(int index) { + public com.google.protobuf.ByteString getAbnfStringsBytes(int index) { return abnfStrings_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,8 +250,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 < abnfStrings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, abnfStrings_.getRaw(i)); } @@ -238,15 +279,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.SpeechAdaptation.ABNFGrammar)) { return super.equals(obj); } - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar other = (com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) obj; + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar other = + (com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) obj; - if (!getAbnfStringsList() - .equals(other.getAbnfStringsList())) return false; + if (!getAbnfStringsList().equals(other.getAbnfStringsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,87 +309,94 @@ public int hashCode() { } public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar 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.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar 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 @@ -357,36 +405,34 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_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_ABNFGrammar_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.class, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.class, + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -397,9 +443,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_ABNFGrammar_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_descriptor; } @java.lang.Override @@ -418,14 +464,18 @@ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar buildPartial() { - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar result = new com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar(this); + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar result = + new com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar result) { if (((bitField0_ & 0x00000001) != 0)) { abnfStrings_ = abnfStrings_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -441,38 +491,41 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGramm 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.SpeechAdaptation.ABNFGrammar) { - return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar)other); + return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) other); } else { super.mergeFrom(other); return this; @@ -480,7 +533,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar other) { - if (other == com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) + return this; if (!other.abnfStrings_.isEmpty()) { if (abnfStrings_.isEmpty()) { abnfStrings_ = other.abnfStrings_; @@ -517,18 +571,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAbnfStringsIsMutable(); - abnfStrings_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAbnfStringsIsMutable(); + abnfStrings_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -538,47 +594,58 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList abnfStrings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList abnfStrings_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAbnfStringsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { abnfStrings_ = new com.google.protobuf.LazyStringArrayList(abnfStrings_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @return A list containing the abnfStrings. */ - public com.google.protobuf.ProtocolStringList - getAbnfStringsList() { + public com.google.protobuf.ProtocolStringList getAbnfStringsList() { return abnfStrings_.getUnmodifiableView(); } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @return The count of abnfStrings. */ public int getAbnfStringsCount() { return abnfStrings_.size(); } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ @@ -586,81 +653,95 @@ public java.lang.String getAbnfStrings(int index) { return abnfStrings_.get(index); } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - public com.google.protobuf.ByteString - getAbnfStringsBytes(int index) { + public com.google.protobuf.ByteString getAbnfStringsBytes(int index) { return abnfStrings_.getByteString(index); } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param index The index to set the value at. * @param value The abnfStrings to set. * @return This builder for chaining. */ - public Builder setAbnfStrings( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAbnfStrings(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAbnfStringsIsMutable(); abnfStrings_.set(index, value); onChanged(); return this; } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param value The abnfStrings to add. * @return This builder for chaining. */ - public Builder addAbnfStrings( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAbnfStrings(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAbnfStringsIsMutable(); abnfStrings_.add(value); onChanged(); return this; } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param values The abnfStrings to add. * @return This builder for chaining. */ - public Builder addAllAbnfStrings( - java.lang.Iterable values) { + public Builder addAllAbnfStrings(java.lang.Iterable values) { ensureAbnfStringsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, abnfStrings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, abnfStrings_); onChanged(); return this; } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @return This builder for chaining. */ public Builder clearAbnfStrings() { @@ -670,24 +751,29 @@ public Builder clearAbnfStrings() { return this; } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param value The bytes of the abnfStrings to add. * @return This builder for chaining. */ - public Builder addAbnfStringsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAbnfStringsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAbnfStringsIsMutable(); abnfStrings_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -700,12 +786,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) private static final com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar(); } @@ -714,27 +800,28 @@ public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ABNFGrammar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ABNFGrammar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -749,13 +836,15 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int PHRASE_SETS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") 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
@@ -769,6 +858,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
@@ -778,11 +869,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
@@ -796,6 +889,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
@@ -809,6 +904,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
@@ -818,43 +915,54 @@ 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;
+
   @SuppressWarnings("serial")
   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. */ @@ -862,23 +970,29 @@ 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; + @SuppressWarnings("serial") 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
@@ -893,6 +1007,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
@@ -903,11 +1019,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
@@ -922,6 +1040,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
@@ -936,6 +1056,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
@@ -946,14 +1068,15 @@ 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);
   }
 
   public static final int ABNF_GRAMMAR_FIELD_NUMBER = 4;
   private com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnfGrammar_;
   /**
+   *
+   *
    * 
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -961,6 +1084,7 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder
    * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return Whether the abnfGrammar field is set. */ @java.lang.Override @@ -968,6 +1092,8 @@ public boolean hasAbnfGrammar() { return abnfGrammar_ != null; } /** + * + * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -975,13 +1101,18 @@ public boolean hasAbnfGrammar() {
    * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return The abnfGrammar. */ @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getAbnfGrammar() { - return abnfGrammar_ == null ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_; + return abnfGrammar_ == null + ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() + : abnfGrammar_; } /** + * + * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -991,11 +1122,15 @@ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getAbnfGrammar()
    * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder getAbnfGrammarOrBuilder() {
-    return abnfGrammar_ == null ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_;
+  public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder
+      getAbnfGrammarOrBuilder() {
+    return abnfGrammar_ == null
+        ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()
+        : abnfGrammar_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1007,8 +1142,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));
     }
@@ -1031,8 +1165,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;
@@ -1043,12 +1176,10 @@ 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));
     }
     if (abnfGrammar_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getAbnfGrammar());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAbnfGrammar());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1058,23 +1189,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.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 (hasAbnfGrammar() != other.hasAbnfGrammar()) return false;
     if (hasAbnfGrammar()) {
-      if (!getAbnfGrammar()
-          .equals(other.getAbnfGrammar())) return false;
+      if (!getAbnfGrammar().equals(other.getAbnfGrammar())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -1108,130 +1236,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1261,9 +1395,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 @@ -1282,9 +1416,12 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1318,9 +1455,8 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1.SpeechAdaptat private void buildPartial0(com.google.cloud.speech.v1.SpeechAdaptation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000008) != 0)) { - result.abnfGrammar_ = abnfGrammarBuilder_ == null - ? abnfGrammar_ - : abnfGrammarBuilder_.build(); + result.abnfGrammar_ = + abnfGrammarBuilder_ == null ? abnfGrammar_ : abnfGrammarBuilder_.build(); } } @@ -1328,38 +1464,39 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechAdaptation result) { 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; @@ -1386,9 +1523,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_); } @@ -1422,9 +1560,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_); } @@ -1459,51 +1598,52 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1.PhraseSet m = - input.readMessage( - com.google.cloud.speech.v1.PhraseSet.parser(), - extensionRegistry); - if (phraseSetsBuilder_ == null) { - ensurePhraseSetsIsMutable(); - phraseSets_.add(m); - } else { - phraseSetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensurePhraseSetReferencesIsMutable(); - phraseSetReferences_.add(s); - break; - } // case 18 - case 26: { - com.google.cloud.speech.v1.CustomClass m = - input.readMessage( - com.google.cloud.speech.v1.CustomClass.parser(), - extensionRegistry); - if (customClassesBuilder_ == null) { - ensureCustomClassesIsMutable(); - customClasses_.add(m); - } else { - customClassesBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: { - input.readMessage( - getAbnfGrammarFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.speech.v1.PhraseSet m = + input.readMessage( + com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry); + if (phraseSetsBuilder_ == null) { + ensurePhraseSetsIsMutable(); + phraseSets_.add(m); + } else { + phraseSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePhraseSetReferencesIsMutable(); + phraseSetReferences_.add(s); + break; + } // case 18 + case 26: + { + com.google.cloud.speech.v1.CustomClass m = + input.readMessage( + com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry); + if (customClassesBuilder_ == null) { + ensureCustomClassesIsMutable(); + customClasses_.add(m); + } else { + customClassesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage(getAbnfGrammarFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1513,21 +1653,28 @@ public Builder mergeFrom( } // finally 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
@@ -1544,6 +1691,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
@@ -1560,6 +1709,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
@@ -1576,6 +1727,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
@@ -1584,8 +1737,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();
@@ -1599,6 +1751,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
@@ -1619,6 +1773,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
@@ -1641,6 +1797,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
@@ -1649,8 +1807,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();
@@ -1664,6 +1821,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
@@ -1672,8 +1831,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());
@@ -1684,6 +1842,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
@@ -1704,6 +1864,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
@@ -1716,8 +1878,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);
@@ -1725,6 +1886,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
@@ -1744,6 +1907,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
@@ -1763,6 +1928,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
@@ -1771,11 +1938,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
@@ -1784,14 +1952,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
@@ -1800,8 +1970,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 {
@@ -1809,6 +1979,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
@@ -1818,10 +1990,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
@@ -1830,12 +2004,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
@@ -1844,61 +2019,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. */ @@ -1906,76 +2096,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhraseSetReferences(int index, java.lang.String value) { + if (value == null) { + 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addPhraseSetReferences(java.lang.String value) { + if (value == null) { + 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() { @@ -1985,17 +2194,22 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addPhraseSetReferencesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); @@ -2004,18 +2218,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
@@ -2033,6 +2254,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
@@ -2050,6 +2273,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
@@ -2067,6 +2292,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
@@ -2076,8 +2303,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();
@@ -2091,6 +2317,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
@@ -2112,6 +2340,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
@@ -2135,6 +2365,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
@@ -2144,8 +2376,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();
@@ -2159,6 +2390,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
@@ -2180,6 +2413,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
@@ -2201,6 +2436,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
@@ -2214,8 +2451,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);
@@ -2223,6 +2459,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
@@ -2243,6 +2481,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
@@ -2263,6 +2503,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
@@ -2272,11 +2514,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
@@ -2286,14 +2529,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
@@ -2303,8 +2548,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 {
@@ -2312,6 +2557,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
@@ -2322,10 +2569,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
@@ -2335,12 +2584,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
@@ -2350,16 +2600,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(),
@@ -2371,8 +2627,13 @@ public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(
 
     private com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnfGrammar_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder> abnfGrammarBuilder_;
+            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar,
+            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder,
+            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder>
+        abnfGrammarBuilder_;
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2380,12 +2641,15 @@ public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(
      * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return Whether the abnfGrammar field is set. */ public boolean hasAbnfGrammar() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2393,16 +2657,21 @@ public boolean hasAbnfGrammar() {
      * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return The abnfGrammar. */ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getAbnfGrammar() { if (abnfGrammarBuilder_ == null) { - return abnfGrammar_ == null ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_; + return abnfGrammar_ == null + ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() + : abnfGrammar_; } else { return abnfGrammarBuilder_.getMessage(); } } /** + * + * *
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2425,6 +2694,8 @@ public Builder setAbnfGrammar(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGr
       return this;
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2445,6 +2716,8 @@ public Builder setAbnfGrammar(
       return this;
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2455,9 +2728,10 @@ public Builder setAbnfGrammar(
      */
     public Builder mergeAbnfGrammar(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar value) {
       if (abnfGrammarBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          abnfGrammar_ != null &&
-          abnfGrammar_ != com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && abnfGrammar_ != null
+            && abnfGrammar_
+                != com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) {
           getAbnfGrammarBuilder().mergeFrom(value);
         } else {
           abnfGrammar_ = value;
@@ -2470,6 +2744,8 @@ public Builder mergeAbnfGrammar(com.google.cloud.speech.v1.SpeechAdaptation.ABNF
       return this;
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2489,6 +2765,8 @@ public Builder clearAbnfGrammar() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2503,6 +2781,8 @@ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder getAbnfGr
       return getAbnfGrammarFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2511,15 +2791,19 @@ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder getAbnfGr
      *
      * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
-    public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder getAbnfGrammarOrBuilder() {
+    public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder
+        getAbnfGrammarOrBuilder() {
       if (abnfGrammarBuilder_ != null) {
         return abnfGrammarBuilder_.getMessageOrBuilder();
       } else {
-        return abnfGrammar_ == null ?
-            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_;
+        return abnfGrammar_ == null
+            ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()
+            : abnfGrammar_;
       }
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2529,21 +2813,24 @@ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder getAbnfG
      * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder> 
+            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar,
+            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder,
+            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder>
         getAbnfGrammarFieldBuilder() {
       if (abnfGrammarBuilder_ == null) {
-        abnfGrammarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder>(
-                getAbnfGrammar(),
-                getParentForChildren(),
-                isClean());
+        abnfGrammarBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar,
+                com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder,
+                com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder>(
+                getAbnfGrammar(), getParentForChildren(), isClean());
         abnfGrammar_ = null;
       }
       return abnfGrammarBuilder_;
     }
+
     @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);
     }
 
@@ -2553,12 +2840,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();
   }
@@ -2567,27 +2854,27 @@ 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 {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  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 {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2602,6 +2889,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v1.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java
similarity index 68%
rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java
rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java
index 30c16d3b25ce..b0420ecba70f 100644
--- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java
+++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java
@@ -1,62 +1,84 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License 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;
 
 /**
+ *
+ *
  * 
  * Information on speech adaptation use in results
  * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptationInfo} */ -public final class SpeechAdaptationInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechAdaptationInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechAdaptationInfo) SpeechAdaptationInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechAdaptationInfo.newBuilder() to construct. private SpeechAdaptationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechAdaptationInfo() { timeoutMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechAdaptationInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptationInfo.class, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptationInfo.class, + com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder.class); } public static final int ADAPTATION_TIMEOUT_FIELD_NUMBER = 1; private boolean adaptationTimeout_ = false; /** + * + * *
    * Whether there was a timeout when applying speech adaptation. If true,
    * adaptation had no effect in the response transcript.
    * 
* * bool adaptation_timeout = 1; + * * @return The adaptationTimeout. */ @java.lang.Override @@ -65,15 +87,19 @@ public boolean getAdaptationTimeout() { } public static final int TIMEOUT_MESSAGE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object timeoutMessage_ = ""; /** + * + * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; + * * @return The timeoutMessage. */ @java.lang.Override @@ -82,30 +108,30 @@ public java.lang.String getTimeoutMessage() { 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(); timeoutMessage_ = s; return s; } } /** + * + * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; + * * @return The bytes for timeoutMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getTimeoutMessageBytes() { + public com.google.protobuf.ByteString getTimeoutMessageBytes() { java.lang.Object ref = timeoutMessage_; 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); timeoutMessage_ = b; return b; } else { @@ -114,6 +140,7 @@ public java.lang.String getTimeoutMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -125,8 +152,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 (adaptationTimeout_ != false) { output.writeBool(1, adaptationTimeout_); } @@ -143,8 +169,7 @@ public int getSerializedSize() { size = 0; if (adaptationTimeout_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, adaptationTimeout_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, adaptationTimeout_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeoutMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, timeoutMessage_); @@ -157,17 +182,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.SpeechAdaptationInfo)) { return super.equals(obj); } - com.google.cloud.speech.v1.SpeechAdaptationInfo other = (com.google.cloud.speech.v1.SpeechAdaptationInfo) obj; + com.google.cloud.speech.v1.SpeechAdaptationInfo other = + (com.google.cloud.speech.v1.SpeechAdaptationInfo) obj; - if (getAdaptationTimeout() - != other.getAdaptationTimeout()) return false; - if (!getTimeoutMessage() - .equals(other.getTimeoutMessage())) return false; + if (getAdaptationTimeout() != other.getAdaptationTimeout()) return false; + if (!getTimeoutMessage().equals(other.getTimeoutMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -180,8 +204,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADAPTATION_TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAdaptationTimeout()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAdaptationTimeout()); hash = (37 * hash) + TIMEOUT_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getTimeoutMessage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -189,130 +212,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.SpeechAdaptationInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.SpeechAdaptationInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.SpeechAdaptationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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; } /** + * + * *
    * Information on speech adaptation use in results
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptationInfo} */ - 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.SpeechAdaptationInfo) com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptationInfo.class, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptationInfo.class, + com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechAdaptationInfo.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +352,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_SpeechAdaptationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; } @java.lang.Override @@ -344,8 +373,11 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfo build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptationInfo buildPartial() { - com.google.cloud.speech.v1.SpeechAdaptationInfo result = new com.google.cloud.speech.v1.SpeechAdaptationInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.SpeechAdaptationInfo result = + new com.google.cloud.speech.v1.SpeechAdaptationInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -364,38 +396,39 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechAdaptationInfo resul 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.SpeechAdaptationInfo) { - return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptationInfo)other); + return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptationInfo) other); } else { super.mergeFrom(other); return this; @@ -403,7 +436,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.SpeechAdaptationInfo other) { - if (other == com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) + return this; if (other.getAdaptationTimeout() != false) { setAdaptationTimeout(other.getAdaptationTimeout()); } @@ -438,22 +472,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - adaptationTimeout_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 34: { - timeoutMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + adaptationTimeout_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 34: + { + timeoutMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -463,16 +500,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean adaptationTimeout_ ; + private boolean adaptationTimeout_; /** + * + * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; + * * @return The adaptationTimeout. */ @java.lang.Override @@ -480,29 +521,35 @@ public boolean getAdaptationTimeout() { return adaptationTimeout_; } /** + * + * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; + * * @param value The adaptationTimeout to set. * @return This builder for chaining. */ public Builder setAdaptationTimeout(boolean value) { - + adaptationTimeout_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; + * * @return This builder for chaining. */ public Builder clearAdaptationTimeout() { @@ -514,19 +561,21 @@ public Builder clearAdaptationTimeout() { private java.lang.Object timeoutMessage_ = ""; /** + * + * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; + * * @return The timeoutMessage. */ public java.lang.String getTimeoutMessage() { java.lang.Object ref = timeoutMessage_; 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(); timeoutMessage_ = s; return s; @@ -535,21 +584,22 @@ public java.lang.String getTimeoutMessage() { } } /** + * + * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; + * * @return The bytes for timeoutMessage. */ - public com.google.protobuf.ByteString - getTimeoutMessageBytes() { + public com.google.protobuf.ByteString getTimeoutMessageBytes() { java.lang.Object ref = timeoutMessage_; 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); timeoutMessage_ = b; return b; } else { @@ -557,30 +607,37 @@ public java.lang.String getTimeoutMessage() { } } /** + * + * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; + * * @param value The timeoutMessage to set. * @return This builder for chaining. */ - public Builder setTimeoutMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTimeoutMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } timeoutMessage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; + * * @return This builder for chaining. */ public Builder clearTimeoutMessage() { @@ -590,27 +647,31 @@ public Builder clearTimeoutMessage() { return this; } /** + * + * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; + * * @param value The bytes for timeoutMessage to set. * @return This builder for chaining. */ - public Builder setTimeoutMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTimeoutMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); timeoutMessage_ = value; bitField0_ |= 0x00000002; 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); } @@ -620,12 +681,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.SpeechAdaptationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechAdaptationInfo) private static final com.google.cloud.speech.v1.SpeechAdaptationInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.SpeechAdaptationInfo(); } @@ -634,27 +695,27 @@ public static com.google.cloud.speech.v1.SpeechAdaptationInfo getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechAdaptationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechAdaptationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -669,6 +730,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechAdaptationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java similarity index 58% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java index 7be8c26b1e8b..da65be18b760 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.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/cloud_speech.proto package com.google.cloud.speech.v1; -public interface SpeechAdaptationInfoOrBuilder extends +public interface SpeechAdaptationInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechAdaptationInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Whether there was a timeout when applying speech adaptation. If true,
    * adaptation had no effect in the response transcript.
    * 
* * bool adaptation_timeout = 1; + * * @return The adaptationTimeout. */ boolean getAdaptationTimeout(); /** + * + * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; + * * @return The timeoutMessage. */ java.lang.String getTimeoutMessage(); /** + * + * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; + * * @return The bytes for timeoutMessage. */ - com.google.protobuf.ByteString - getTimeoutMessageBytes(); + com.google.protobuf.ByteString getTimeoutMessageBytes(); } diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java similarity index 82% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java index 97607d1d668f..af5aec644d5e 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java +++ b/java-speech/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,10 +205,11 @@ 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);
 
   /**
+   *
+   *
    * 
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -169,10 +217,13 @@ com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(
    * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return Whether the abnfGrammar field is set. */ boolean hasAbnfGrammar(); /** + * + * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -180,10 +231,13 @@ com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(
    * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return The abnfGrammar. */ com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getAbnfGrammar(); /** + * + * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java
new file mode 100644
index 000000000000..081817d7ecba
--- /dev/null
+++ b/java-speech/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,48 +28,53 @@
  *
  * 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;
   }
-  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;
+
   @SuppressWarnings("serial")
   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
@@ -68,13 +90,15 @@ protected java.lang.Object newInstance(
    * 
* * 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
@@ -90,12 +114,15 @@ protected java.lang.Object newInstance(
    * 
* * 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
@@ -111,6 +138,7 @@ public int getPhrasesCount() {
    * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -118,6 +146,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
@@ -133,17 +163,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_ = 0F; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -156,6 +188,7 @@ public java.lang.String getPhrases(int index) {
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -164,6 +197,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +209,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)); } @@ -201,8 +234,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -212,18 +244,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -240,104 +270,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) + getUnknownFields().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.
@@ -345,33 +381,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -383,9 +418,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
@@ -404,9 +439,12 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -430,38 +468,39 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechContext result) {
     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;
@@ -509,23 +548,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensurePhrasesIsMutable();
-              phrases_.add(s);
-              break;
-            } // case 10
-            case 37: {
-              boost_ = input.readFloat();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 37
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensurePhrasesIsMutable();
+                phrases_.add(s);
+                break;
+              } // case 10
+            case 37:
+              {
+                boost_ = input.readFloat();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 37
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -535,16 +577,21 @@ public Builder mergeFrom(
       } // finally
       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
@@ -560,13 +607,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
@@ -582,12 +631,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
@@ -603,6 +655,7 @@ public int getPhrasesCount() {
      * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -610,6 +663,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
@@ -625,14 +680,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
@@ -648,19 +705,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhrases(int index, java.lang.String value) { + if (value == null) { + 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
@@ -676,18 +737,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) { - if (value == null) { throw new NullPointerException(); } + public Builder addPhrases(java.lang.String value) { + if (value == null) { + 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
@@ -703,18 +768,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
@@ -730,6 +796,7 @@ public Builder addAllPhrases(
      * 
* * repeated string phrases = 1; + * * @return This builder for chaining. */ public Builder clearPhrases() { @@ -739,6 +806,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
@@ -754,12 +823,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensurePhrasesIsMutable(); phrases_.add(value); @@ -767,8 +838,10 @@ public Builder addPhrasesBytes( 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
@@ -781,6 +854,7 @@ public Builder addPhrasesBytes(
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -788,6 +862,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
@@ -800,17 +876,20 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000002; 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
@@ -823,6 +902,7 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { @@ -831,9 +911,9 @@ public Builder clearBoost() { 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); } @@ -843,12 +923,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(); } @@ -857,27 +937,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -892,6 +972,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java similarity index 85% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java index 97fbd87c39aa..a529f04289b7 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java +++ b/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java new file mode 100644 index 000000000000..00b8954f454a --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java @@ -0,0 +1,495 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_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\"\355\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\022L\n\026speech_adaptation_info\030\007 " + + "\001(\0132,.google.cloud.speech.v1.SpeechAdapt" + + "ationInfo\022\022\n\nrequest_id\030\010 \001(\003\"\351\002\n\034LongRu" + + "nningRecognizeResponse\022@\n\007results\030\002 \003(\0132" + + "/.google.cloud.speech.v1.SpeechRecogniti" + + "onResult\0224\n\021total_billed_time\030\003 \001(\0132\031.go" + + "ogle.protobuf.Duration\022E\n\routput_config\030" + + "\006 \001(\0132..google.cloud.speech.v1.Transcrip" + + "tOutputConfig\022(\n\014output_error\030\007 \001(\0132\022.go" + + "ogle.rpc.Status\022L\n\026speech_adaptation_inf" + + "o\030\010 \001(\0132,.google.cloud.speech.v1.SpeechA" + + "daptationInfo\022\022\n\nrequest_id\030\t \001(\003\"\260\001\n\034Lo" + + "ngRunningRecognizeMetadata\022\030\n\020progress_p" + + "ercent\030\001 \001(\005\022.\n\nstart_time\030\002 \001(\0132\032.googl" + + "e.protobuf.Timestamp\0224\n\020last_update_time" + + "\030\003 \001(\0132\032.google.protobuf.Timestamp\022\020\n\003ur" + + "i\030\004 \001(\tB\003\340A\003\"\311\003\n\032StreamingRecognizeRespo" + + "nse\022!\n\005error\030\001 \001(\0132\022.google.rpc.Status\022C" + + "\n\007results\030\002 \003(\01322.google.cloud.speech.v1" + + ".StreamingRecognitionResult\022]\n\021speech_ev" + + "ent_type\030\004 \001(\0162B.google.cloud.speech.v1." + + "StreamingRecognizeResponse.SpeechEventTy" + + "pe\0224\n\021total_billed_time\030\005 \001(\0132\031.google.p" + + "rotobuf.Duration\022L\n\026speech_adaptation_in" + + "fo\030\t \001(\0132,.google.cloud.speech.v1.Speech" + + "AdaptationInfo\022\022\n\nrequest_id\030\n \001(\003\"L\n\017Sp" + + "eechEventType\022\034\n\030SPEECH_EVENT_UNSPECIFIE" + + "D\020\000\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\362\001\n\032Str" + + "eamingRecognitionResult\022J\n\014alternatives\030" + + "\001 \003(\01324.google.cloud.speech.v1.SpeechRec" + + "ognitionAlternative\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\"\312\001" + + "\n\027SpeechRecognitionResult\022J\n\014alternative" + + "s\030\001 \003(\01324.google.cloud.speech.v1.SpeechR" + + "ecognitionAlternative\022\023\n\013channel_tag\030\002 \001" + + "(\005\0222\n\017result_end_time\030\004 \001(\0132\031.google.pro" + + "tobuf.Duration\022\032\n\rlanguage_code\030\005 \001(\tB\003\340" + + "A\003\"w\n\034SpeechRecognitionAlternative\022\022\n\ntr" + + "anscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022/\n\005wo" + + "rds\030\003 \003(\0132 .google.cloud.speech.v1.WordI" + + "nfo\"\242\001\n\010WordInfo\022-\n\nstart_time\030\001 \001(\0132\031.g" + + "oogle.protobuf.Duration\022+\n\010end_time\030\002 \001(" + + "\0132\031.google.protobuf.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\003\"K\n\024SpeechAdaptationInfo\022\032\n\022adap" + + "tation_timeout\030\001 \001(\010\022\027\n\017timeout_message\030" + + "\004 \001(\t2\321\004\n\006Speech\022\220\001\n\tRecognize\022(.google." + + "cloud.speech.v1.RecognizeRequest\032).googl" + + "e.cloud.speech.v1.RecognizeResponse\".\202\323\344" + + "\223\002\031\"\024/v1/speech:recognize:\001*\332A\014config,au" + + "dio\022\344\001\n\024LongRunningRecognize\0223.google.cl" + + "oud.speech.v1.LongRunningRecognizeReques" + + "t\032\035.google.longrunning.Operation\"x\202\323\344\223\002$" + + "\"\037/v1/speech:longrunningrecognize:\001*\332A\014c" + + "onfig,audio\312A<\n\034LongRunningRecognizeResp" + + "onse\022\034LongRunningRecognizeMetadata\022\201\001\n\022S" + + "treamingRecognize\0221.google.cloud.speech." + + "v1.StreamingRecognizeRequest\0322.google.cl" + + "oud.speech.v1.StreamingRecognizeResponse" + + "\"\000(\0010\001\032I\312A\025speech.googleapis.com\322A.https" + + "://www.googleapis.com/auth/cloud-platfor" + + "mBr\n\032com.google.cloud.speech.v1B\013SpeechP" + + "rotoP\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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") 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
@@ -61,6 +83,7 @@ protected java.lang.Object newInstance(
    * 
* * string transcript = 1; + * * @return The transcript. */ @java.lang.Override @@ -69,14 +92,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
@@ -85,16 +109,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 { @@ -105,6 +128,8 @@ public java.lang.String getTranscript() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_ = 0F; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -116,6 +141,7 @@ public java.lang.String getTranscript() {
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -124,9 +150,12 @@ public float getConfidence() { } public static final int WORDS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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
@@ -140,6 +169,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
@@ -149,11 +180,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
@@ -167,6 +200,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
@@ -180,6 +215,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
@@ -189,12 +226,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;
@@ -206,8 +243,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_);
     }
@@ -230,12 +266,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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -245,20 +279,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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -273,8 +305,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();
@@ -285,129 +316,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,9 +463,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 @@ -446,14 +484,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1.SpeechRecognitionAlternative result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1.SpeechRecognitionAlternative result) { if (wordsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -479,38 +521,39 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechRecognitionAlternati 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; @@ -518,7 +561,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_; bitField0_ |= 0x00000001; @@ -545,9 +589,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.SpeechRecognitionAlternative wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000004); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWordsFieldBuilder() : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWordsFieldBuilder() + : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -579,35 +624,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - transcript_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - case 26: { - com.google.cloud.speech.v1.WordInfo m = - input.readMessage( - com.google.cloud.speech.v1.WordInfo.parser(), - extensionRegistry); - if (wordsBuilder_ == null) { - ensureWordsIsMutable(); - words_.add(m); - } else { - wordsBuilder_.addMessage(m); - } - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + transcript_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 26: + { + com.google.cloud.speech.v1.WordInfo m = + input.readMessage( + com.google.cloud.speech.v1.WordInfo.parser(), extensionRegistry); + if (wordsBuilder_ == null) { + ensureWordsIsMutable(); + words_.add(m); + } else { + wordsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -617,10 +665,13 @@ public Builder mergeFrom( } // finally 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
@@ -629,13 +680,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; @@ -644,6 +695,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
@@ -652,15 +705,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 { @@ -668,6 +720,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
@@ -676,18 +730,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranscript(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } transcript_ = value; bitField0_ |= 0x00000001; 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
@@ -696,6 +754,7 @@ public Builder setTranscript(
      * 
* * string transcript = 1; + * * @return This builder for chaining. */ public Builder clearTranscript() { @@ -705,6 +764,8 @@ public Builder clearTranscript() { return this; } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -713,12 +774,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); transcript_ = value; bitField0_ |= 0x00000001; @@ -726,8 +789,10 @@ public Builder setTranscriptBytes( 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
@@ -739,6 +804,7 @@ public Builder setTranscriptBytes(
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -746,6 +812,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
@@ -757,17 +825,20 @@ public float getConfidence() {
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000002; 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
@@ -779,6 +850,7 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -789,18 +861,24 @@ public Builder clearConfidence() { } private java.util.List words_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000004; - } + } } 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
@@ -817,6 +895,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
@@ -833,6 +913,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
@@ -849,6 +931,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
@@ -857,8 +941,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();
@@ -872,6 +955,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
@@ -892,6 +977,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
@@ -914,6 +1001,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
@@ -922,8 +1011,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();
@@ -937,6 +1025,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
@@ -945,8 +1035,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());
@@ -957,6 +1046,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
@@ -977,6 +1068,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
@@ -989,8 +1082,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);
@@ -998,6 +1090,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
@@ -1017,6 +1111,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
@@ -1036,6 +1132,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
@@ -1044,11 +1142,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
@@ -1057,14 +1156,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
@@ -1073,8 +1174,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 {
@@ -1082,6 +1183,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
@@ -1091,10 +1194,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
@@ -1103,12 +1208,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
@@ -1117,27 +1223,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_ & 0x00000004) != 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_ & 0x00000004) != 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);
     }
 
@@ -1147,12 +1255,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();
   }
@@ -1161,27 +1269,27 @@ 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 {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  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 {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1196,6 +1304,4 @@ public com.google.protobuf.Parser getParserForType
   public com.google.cloud.speech.v1.SpeechRecognitionAlternative getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
similarity index 78%
rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
index 90fecb6d97c4..058f60aa9d01 100644
--- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
+++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
similarity index 75%
rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
index 35e9bd85f0b2..cec60f257c60 100644
--- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
+++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private java.util.List alternatives_; /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -63,10 +85,13 @@ protected java.lang.Object newInstance(
    * 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`).
@@ -77,11 +102,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`).
@@ -96,6 +123,8 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -110,6 +139,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`).
@@ -128,6 +159,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int CHANNEL_TAG_FIELD_NUMBER = 2;
   private int channelTag_ = 0;
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -135,6 +168,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -145,12 +179,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 @@ -158,19 +195,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.
@@ -180,13 +224,18 @@ public com.google.protobuf.Duration getResultEndTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
-    return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
+    return resultEndTime_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : resultEndTime_;
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
+
   @SuppressWarnings("serial")
   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
@@ -194,6 +243,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -202,14 +252,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
@@ -217,16 +268,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 { @@ -235,6 +285,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,8 +297,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)); } @@ -270,16 +320,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_); @@ -292,24 +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.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,129 +383,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -484,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_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 @@ -505,14 +555,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1.SpeechRecognitionResult result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1.SpeechRecognitionResult result) { if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -530,9 +584,8 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechRecognitionResult re result.channelTag_ = channelTag_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.resultEndTime_ = resultEndTimeBuilder_ == null - ? resultEndTime_ - : resultEndTimeBuilder_.build(); + result.resultEndTime_ = + resultEndTimeBuilder_ == null ? resultEndTime_ : resultEndTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.languageCode_ = languageCode_; @@ -543,38 +596,39 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechRecognitionResult re 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; @@ -582,7 +636,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()) { @@ -601,9 +656,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_); } @@ -646,42 +702,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1.SpeechRecognitionAlternative m = - input.readMessage( - com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), - extensionRegistry); - if (alternativesBuilder_ == null) { - ensureAlternativesIsMutable(); - alternatives_.add(m); - } else { - alternativesBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: { - channelTag_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 34: { - input.readMessage( - getResultEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.speech.v1.SpeechRecognitionAlternative m = + input.readMessage( + com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), + extensionRegistry); + if (alternativesBuilder_ == null) { + ensureAlternativesIsMutable(); + alternatives_.add(m); + } else { + alternativesBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + channelTag_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 34: + { + input.readMessage(getResultEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -691,21 +750,30 @@ public Builder mergeFrom( } // finally 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`).
@@ -715,7 +783,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 {
@@ -723,6 +792,8 @@ public java.util.List g
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -740,6 +811,8 @@ public int getAlternativesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -757,6 +830,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`).
@@ -781,6 +856,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -791,7 +868,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());
@@ -802,6 +880,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -825,6 +905,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`).
@@ -849,6 +931,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -870,6 +954,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -880,7 +966,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());
@@ -891,6 +978,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -901,11 +990,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);
@@ -913,6 +1002,8 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -933,6 +1024,8 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -953,6 +1046,8 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -967,6 +1062,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`).
@@ -976,14 +1073,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`).
@@ -993,8 +1093,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 {
@@ -1002,6 +1103,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1011,11 +1114,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`).
@@ -1027,10 +1133,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`).
@@ -1040,27 +1149,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.
@@ -1068,6 +1182,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -1075,6 +1190,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.
@@ -1082,17 +1199,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1100,6 +1220,7 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; + * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1111,36 +1232,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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.
@@ -1162,6 +1296,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.
@@ -1169,8 +1305,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();
       } else {
@@ -1181,6 +1316,8 @@ public Builder setResultEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1190,9 +1327,9 @@ public Builder setResultEndTime(
      */
     public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          resultEndTime_ != null &&
-          resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && resultEndTime_ != null
+            && resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndTimeBuilder().mergeFrom(value);
         } else {
           resultEndTime_ = value;
@@ -1205,6 +1342,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.
@@ -1223,6 +1362,8 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1236,6 +1377,8 @@ public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1247,11 +1390,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.
@@ -1260,14 +1406,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_;
@@ -1275,6 +1424,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
@@ -1282,13 +1433,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; @@ -1297,6 +1448,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
@@ -1304,15 +1457,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 { @@ -1320,6 +1472,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
@@ -1327,18 +1481,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000008; 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
@@ -1346,6 +1504,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1355,6 +1514,8 @@ public Builder clearLanguageCode() { 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
@@ -1362,21 +1523,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000008; 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); } @@ -1386,12 +1549,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(); } @@ -1400,27 +1563,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1435,6 +1598,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java similarity index 83% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java index aa2bef7b69e6..50085b974066 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java +++ b/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java new file mode 100644 index 000000000000..9e47f5d5edee --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java @@ -0,0 +1,155 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_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}\"\275\002\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.CustomClass\022J\n" + + "\014abnf_grammar\030\004 \001(\01324.google.cloud.speec" + + "h.v1.SpeechAdaptation.ABNFGrammar\032#\n\013ABN" + + "FGrammar\022\024\n\014abnf_strings\030\001 \003(\tBz\n\032com.go" + + "ogle.cloud.speech.v1B\023SpeechResourceProt" + + "oP\001Z * Provides information to the recognizer that specifies how to process the * request. @@ -11,52 +28,58 @@ * * 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; } - 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 @@ -64,34 +87,49 @@ 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() { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 2; private boolean singleUtterance_ = false; /** + * + * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -114,6 +152,7 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ @java.lang.Override @@ -124,6 +163,8 @@ public boolean getSingleUtterance() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 3; private boolean interimResults_ = false; /** + * + * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -132,6 +173,7 @@ public boolean getSingleUtterance() {
    * 
* * bool interim_results = 3; + * * @return The interimResults. */ @java.lang.Override @@ -140,6 +182,7 @@ public boolean getInterimResults() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +194,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()); } @@ -172,16 +214,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -191,22 +230,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,107 +260,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) + getUnknownFields().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.
@@ -331,33 +374,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -373,9 +415,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
@@ -394,8 +436,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v1.StreamingRecognitionConfig result =
+          new com.google.cloud.speech.v1.StreamingRecognitionConfig(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -403,9 +448,7 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognitionConfig result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.config_ = configBuilder_ == null
-            ? config_
-            : configBuilder_.build();
+        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.singleUtterance_ = singleUtterance_;
@@ -419,38 +462,39 @@ private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognitionConfig
     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;
@@ -458,7 +502,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());
       }
@@ -494,29 +539,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              singleUtterance_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 24: {
-              interimResults_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                singleUtterance_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 24:
+              {
+                interimResults_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -526,46 +573,66 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * 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) { @@ -581,15 +648,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(); } else { @@ -600,18 +670,22 @@ 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 (((bitField0_ & 0x00000001) != 0) && - config_ != null && - config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && config_ != null + && config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -624,12 +698,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -642,12 +720,16 @@ 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() { bitField0_ |= 0x00000001; @@ -655,45 +737,59 @@ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { 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
@@ -716,6 +812,7 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ @java.lang.Override @@ -723,6 +820,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
@@ -745,17 +844,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -778,6 +880,7 @@ public Builder setSingleUtterance(boolean value) {
      * 
* * bool single_utterance = 2; + * * @return This builder for chaining. */ public Builder clearSingleUtterance() { @@ -787,8 +890,10 @@ public Builder clearSingleUtterance() { 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
@@ -797,6 +902,7 @@ public Builder clearSingleUtterance() {
      * 
* * bool interim_results = 3; + * * @return The interimResults. */ @java.lang.Override @@ -804,6 +910,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
@@ -812,17 +920,20 @@ 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -831,6 +942,7 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 3; + * * @return This builder for chaining. */ public Builder clearInterimResults() { @@ -839,9 +951,9 @@ public Builder clearInterimResults() { 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); } @@ -851,12 +963,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(); } @@ -865,27 +977,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -900,6 +1012,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java index 8c5cfecdc1c5..7b3064599957 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java similarity index 76% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java index 8b0f758aa248..1ee89c35cdc8 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java +++ b/java-speech/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,33 +45,37 @@ 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;
   }
-  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;
+
   @SuppressWarnings("serial")
   private java.util.List alternatives_;
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -64,10 +86,13 @@ protected java.lang.Object newInstance(
    * 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`).
@@ -78,11 +103,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`).
@@ -97,6 +124,8 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -111,6 +140,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`).
@@ -129,6 +160,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int IS_FINAL_FIELD_NUMBER = 2;
   private boolean isFinal_ = false;
   /**
+   *
+   *
    * 
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -138,6 +171,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -148,6 +182,8 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_ = 0F; /** + * + * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -157,6 +193,7 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -167,12 +204,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 @@ -180,19 +220,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.
@@ -202,12 +249,16 @@ public com.google.protobuf.Duration getResultEndTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
-    return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
+    return resultEndTime_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : resultEndTime_;
   }
 
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_ = 0;
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -215,6 +266,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -223,9 +275,12 @@ public int getChannelTag() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") 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
@@ -233,6 +288,7 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -241,14 +297,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
@@ -256,16 +313,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 { @@ -274,6 +330,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,8 +342,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)); } @@ -315,24 +371,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_); @@ -345,29 +396,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -384,11 +430,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(); @@ -403,96 +447,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.
@@ -500,33 +552,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -551,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_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
@@ -572,14 +623,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v1.StreamingRecognitionResult result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v1.StreamingRecognitionResult result) {
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -600,9 +655,8 @@ private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognitionResult
         result.stability_ = stability_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.resultEndTime_ = resultEndTimeBuilder_ == null
-            ? resultEndTime_
-            : resultEndTimeBuilder_.build();
+        result.resultEndTime_ =
+            resultEndTimeBuilder_ == null ? resultEndTime_ : resultEndTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.channelTag_ = channelTag_;
@@ -616,38 +670,39 @@ private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognitionResult
     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;
@@ -655,7 +710,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()) {
@@ -674,9 +730,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_);
           }
@@ -725,52 +782,57 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.speech.v1.SpeechRecognitionAlternative m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(),
-                      extensionRegistry);
-              if (alternativesBuilder_ == null) {
-                ensureAlternativesIsMutable();
-                alternatives_.add(m);
-              } else {
-                alternativesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 16: {
-              isFinal_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 29: {
-              stability_ = input.readFloat();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 29
-            case 34: {
-              input.readMessage(
-                  getResultEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 40: {
-              channelTag_ = input.readInt32();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 40
-            case 50: {
-              languageCode_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.speech.v1.SpeechRecognitionAlternative m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(),
+                        extensionRegistry);
+                if (alternativesBuilder_ == null) {
+                  ensureAlternativesIsMutable();
+                  alternatives_.add(m);
+                } else {
+                  alternativesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 16:
+              {
+                isFinal_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 29:
+              {
+                stability_ = input.readFloat();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 29
+            case 34:
+              {
+                input.readMessage(getResultEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 40:
+              {
+                channelTag_ = input.readInt32();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+            case 50:
+              {
+                languageCode_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -780,21 +842,30 @@ public Builder mergeFrom(
       } // finally
       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`).
@@ -804,7 +875,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 {
@@ -812,6 +884,8 @@ public java.util.List g
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -829,6 +903,8 @@ public int getAlternativesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -846,6 +922,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`).
@@ -870,6 +948,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -880,7 +960,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());
@@ -891,6 +972,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -914,6 +997,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`).
@@ -938,6 +1023,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -959,6 +1046,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -969,7 +1058,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());
@@ -980,6 +1070,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -990,11 +1082,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);
@@ -1002,6 +1094,8 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1022,6 +1116,8 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1042,6 +1138,8 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1056,6 +1154,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`).
@@ -1065,14 +1165,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`).
@@ -1082,8 +1185,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 {
@@ -1091,6 +1195,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1100,11 +1206,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`).
@@ -1116,10 +1225,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`).
@@ -1129,27 +1241,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
@@ -1159,6 +1276,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -1166,6 +1284,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
@@ -1175,17 +1295,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1195,6 +1318,7 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; + * * @return This builder for chaining. */ public Builder clearIsFinal() { @@ -1204,8 +1328,10 @@ public Builder clearIsFinal() { 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
@@ -1215,6 +1341,7 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -1222,6 +1349,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
@@ -1231,17 +1360,20 @@ public float getStability() {
      * 
* * float stability = 3; + * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; bitField0_ |= 0x00000004; 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
@@ -1251,6 +1383,7 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; + * * @return This builder for chaining. */ public Builder clearStability() { @@ -1262,36 +1395,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 ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * 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.
@@ -1313,6 +1459,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.
@@ -1320,8 +1468,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();
       } else {
@@ -1332,6 +1479,8 @@ public Builder setResultEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1341,9 +1490,9 @@ public Builder setResultEndTime(
      */
     public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          resultEndTime_ != null &&
-          resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && resultEndTime_ != null
+            && resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndTimeBuilder().mergeFrom(value);
         } else {
           resultEndTime_ = value;
@@ -1356,6 +1505,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.
@@ -1374,6 +1525,8 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1387,6 +1540,8 @@ public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1398,11 +1553,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.
@@ -1411,21 +1569,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.
@@ -1433,6 +1596,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -1440,6 +1604,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.
@@ -1447,17 +1613,20 @@ 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1465,6 +1634,7 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; + * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1476,6 +1646,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
@@ -1483,13 +1655,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; @@ -1498,6 +1670,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
@@ -1505,15 +1679,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 { @@ -1521,6 +1694,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
@@ -1528,18 +1703,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000020; 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
@@ -1547,6 +1726,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1556,6 +1736,8 @@ public Builder clearLanguageCode() { 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,21 +1745,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000020; 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); } @@ -1587,12 +1771,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(); } @@ -1601,27 +1785,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1636,6 +1820,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java similarity index 85% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java index c44aa1077a0d..21ef917f18b9 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java similarity index 72% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java index 66731bd86572..d72b525f59ea 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java +++ b/java-speech/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,52 +31,56 @@
  *
  * 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;
   }
-  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;
     }
@@ -75,25 +96,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
@@ -101,6 +127,7 @@ public int getNumber() {
    * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -108,6 +135,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
@@ -115,16 +144,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
@@ -134,15 +166,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
@@ -155,6 +190,7 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreami
    * 
* * bytes audio_content = 2; + * * @return Whether the audioContent field is set. */ @java.lang.Override @@ -162,6 +198,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
@@ -174,6 +212,7 @@ public boolean hasAudioContent() {
    * 
* * bytes audio_content = 2; + * * @return The audioContent. */ @java.lang.Override @@ -185,6 +224,7 @@ public com.google.protobuf.ByteString getAudioContent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,14 +236,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_); } getUnknownFields().writeTo(output); } @@ -215,13 +254,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -231,22 +271,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: @@ -280,96 +319,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
@@ -380,33 +426,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -420,9 +465,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
@@ -441,8 +486,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v1.StreamingRecognizeRequest result =
+          new com.google.cloud.speech.v1.StreamingRecognizeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -455,8 +503,7 @@ private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognizeRequest
     private void buildPartialOneofs(com.google.cloud.speech.v1.StreamingRecognizeRequest result) {
       result.streamingRequestCase_ = streamingRequestCase_;
       result.streamingRequest_ = this.streamingRequest_;
-      if (streamingRequestCase_ == 1 &&
-          streamingConfigBuilder_ != null) {
+      if (streamingRequestCase_ == 1 && streamingConfigBuilder_ != null) {
         result.streamingRequest_ = streamingConfigBuilder_.build();
       }
     }
@@ -465,38 +512,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v1.StreamingRecognizeReq
     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;
@@ -504,19 +552,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.getUnknownFields());
       onChanged();
@@ -544,24 +596,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getStreamingConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              streamingRequestCase_ = 1;
-              break;
-            } // case 10
-            case 18: {
-              streamingRequest_ = input.readBytes();
-              streamingRequestCase_ = 2;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getStreamingConfigFieldBuilder().getBuilder(), extensionRegistry);
+                streamingRequestCase_ = 1;
+                break;
+              } // case 10
+            case 18:
+              {
+                streamingRequest_ = input.readBytes();
+                streamingRequestCase_ = 2;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -571,12 +624,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -589,8 +642,13 @@ public Builder clearStreamingRequest() {
     private int bitField0_;
 
     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
@@ -598,6 +656,7 @@ public Builder clearStreamingRequest() {
      * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -605,6 +664,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
@@ -612,6 +673,7 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return The streamingConfig. */ @java.lang.Override @@ -629,6 +691,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
@@ -651,6 +715,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
@@ -671,6 +737,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
@@ -679,12 +747,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;
         }
@@ -700,6 +773,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
@@ -725,6 +800,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
@@ -733,10 +810,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
@@ -746,7 +826,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 {
@@ -757,6 +838,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
@@ -766,14 +849,20 @@ 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());
@@ -785,6 +874,8 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreami
     }
 
     /**
+     *
+     *
      * 
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -797,12 +888,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
@@ -815,6 +909,7 @@ public boolean hasAudioContent() {
      * 
* * bytes audio_content = 2; + * * @return The audioContent. */ public com.google.protobuf.ByteString getAudioContent() { @@ -824,6 +919,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
@@ -836,17 +933,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(); } + if (value == null) { + 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
@@ -859,6 +961,7 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 2; + * * @return This builder for chaining. */ public Builder clearAudioContent() { @@ -869,9 +972,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); } @@ -881,12 +984,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(); } @@ -895,27 +998,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -930,6 +1033,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java index 28ed92b158ab..13fc461c9e7b 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java similarity index 75% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java index 9a06793de786..d35855eadc79 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java +++ b/java-speech/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,39 +79,43 @@ 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;
   }
-  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.
      * 
@@ -102,6 +124,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
@@ -119,6 +143,8 @@ public enum SpeechEventType
     ;
 
     /**
+     *
+     *
      * 
      * No speech event specified.
      * 
@@ -127,6 +153,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
@@ -141,7 +169,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(
@@ -166,39 +193,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();
@@ -206,8 +237,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;
@@ -227,12 +257,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 @@ -240,12 +273,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 @@ -253,6 +289,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.
@@ -266,9 +304,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -283,6 +324,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.
@@ -293,11 +336,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.
@@ -312,6 +357,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.
@@ -326,6 +373,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.
@@ -344,38 +393,56 @@ public com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResults
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 4;
   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; + * + * * @return The speechEventType. */ - @java.lang.Override public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.forNumber(speechEventType_); - return result == null ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.forNumber( + 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 @@ -383,19 +450,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.
@@ -405,17 +479,22 @@ public com.google.protobuf.Duration getTotalBilledTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
-    return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_;
+    return totalBilledTime_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : totalBilledTime_;
   }
 
   public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 9;
   private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_;
   /**
+   *
+   *
    * 
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -423,18 +502,25 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } /** + * + * *
    * Provides information on adaptation behavior in response
    * 
@@ -442,19 +528,25 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; */ @java.lang.Override - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 10; private long requestId_ = 0L; /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 10; + * * @return The requestId. */ @java.lang.Override @@ -463,6 +555,7 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -474,15 +567,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) { @@ -504,28 +599,26 @@ 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()); } if (speechAdaptationInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getSpeechAdaptationInfo()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, requestId_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -535,33 +628,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.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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo() - .equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() - != other.getRequestId()) return false; + if (getRequestId() != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -592,104 +681,111 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } 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`
@@ -731,33 +827,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -790,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
@@ -811,14 +906,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v1.StreamingRecognizeResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v1.StreamingRecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000002) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -833,22 +932,20 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1.StreamingReco
     private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.error_ = errorBuilder_ == null
-            ? error_
-            : errorBuilder_.build();
+        result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.speechEventType_ = speechEventType_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
-            ? totalBilledTime_
-            : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ =
+            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
-            ? speechAdaptationInfo_
-            : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ =
+            speechAdaptationInfoBuilder_ == null
+                ? speechAdaptationInfo_
+                : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.requestId_ = requestId_;
@@ -859,38 +956,39 @@ private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognizeResponse
     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;
@@ -898,7 +996,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());
       }
@@ -920,9 +1019,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognizeResponse o
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            resultsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResultsFieldBuilder() : null;
+            resultsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResultsFieldBuilder()
+                    : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -966,56 +1066,58 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getErrorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              com.google.cloud.speech.v1.StreamingRecognitionResult m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.StreamingRecognitionResult.parser(),
-                      extensionRegistry);
-              if (resultsBuilder_ == null) {
-                ensureResultsIsMutable();
-                results_.add(m);
-              } else {
-                resultsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            case 32: {
-              speechEventType_ = input.readEnum();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 32
-            case 42: {
-              input.readMessage(
-                  getTotalBilledTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 42
-            case 74: {
-              input.readMessage(
-                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 74
-            case 80: {
-              requestId_ = input.readInt64();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 80
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.cloud.speech.v1.StreamingRecognitionResult m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1.StreamingRecognitionResult.parser(),
+                        extensionRegistry);
+                if (resultsBuilder_ == null) {
+                  ensureResultsIsMutable();
+                  results_.add(m);
+                } else {
+                  resultsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            case 32:
+              {
+                speechEventType_ = input.readEnum();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 32
+            case 42:
+              {
+                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 42
+            case 74:
+              {
+                input.readMessage(
+                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 74
+            case 80:
+              {
+                requestId_ = input.readInt64();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 80
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1025,30 +1127,38 @@ public Builder mergeFrom(
       } // finally
       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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * 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() { @@ -1059,6 +1169,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.
@@ -1080,6 +1192,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.
@@ -1087,8 +1201,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();
       } else {
@@ -1099,6 +1212,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1108,9 +1223,9 @@ public Builder setError(
      */
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          error_ != null &&
-          error_ != com.google.rpc.Status.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && error_ != null
+            && error_ != com.google.rpc.Status.getDefaultInstance()) {
           getErrorBuilder().mergeFrom(value);
         } else {
           error_ = value;
@@ -1123,6 +1238,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.
@@ -1141,6 +1258,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1154,6 +1273,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() {
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1165,11 +1286,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.
@@ -1178,32 +1300,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_ & 0x00000002) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(
+                results_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     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.
@@ -1221,6 +1351,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.
@@ -1238,6 +1370,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1255,6 +1389,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.
@@ -1279,6 +1415,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.
@@ -1300,6 +1438,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.
@@ -1323,6 +1463,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.
@@ -1347,6 +1489,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.
@@ -1368,6 +1512,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.
@@ -1389,6 +1535,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.
@@ -1399,11 +1547,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);
@@ -1411,6 +1559,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.
@@ -1431,6 +1581,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.
@@ -1451,6 +1603,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.
@@ -1465,6 +1619,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.
@@ -1477,11 +1633,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.
@@ -1491,8 +1650,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 {
@@ -1500,6 +1659,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.
@@ -1510,10 +1671,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.
@@ -1525,10 +1688,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.
@@ -1538,20 +1704,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_ & 0x00000002) != 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_ & 0x00000002) != 0), getParentForChildren(), isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1559,22 +1728,33 @@ 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. */ @@ -1585,28 +1765,44 @@ public Builder setSpeechEventTypeValue(int value) { 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() { - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.forNumber(speechEventType_); - return result == null ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.forNumber( + 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(); } @@ -1616,11 +1812,16 @@ public Builder setSpeechEventType(com.google.cloud.speech.v1.StreamingRecognizeR 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() { @@ -1632,36 +1833,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 ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * 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.
@@ -1683,6 +1897,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.
@@ -1690,8 +1906,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();
       } else {
@@ -1702,6 +1917,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.
@@ -1711,9 +1928,9 @@ public Builder setTotalBilledTime(
      */
     public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       if (totalBilledTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          totalBilledTime_ != null &&
-          totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && totalBilledTime_ != null
+            && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getTotalBilledTimeBuilder().mergeFrom(value);
         } else {
           totalBilledTime_ = value;
@@ -1726,6 +1943,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.
@@ -1744,6 +1963,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.
@@ -1757,6 +1978,8 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() {
       return getTotalBilledTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1768,11 +1991,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.
@@ -1781,14 +2007,17 @@ 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_;
@@ -1796,34 +2025,47 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
 
     private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_;
+            com.google.cloud.speech.v1.SpeechAdaptationInfo,
+            com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder,
+            com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>
+        speechAdaptationInfoBuilder_;
     /**
+     *
+     *
      * 
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1844,6 +2086,8 @@ public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptati return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1862,17 +2106,21 @@ public Builder setSpeechAdaptationInfo( return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo( + com.google.cloud.speech.v1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - speechAdaptationInfo_ != null && - speechAdaptationInfo_ != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && speechAdaptationInfo_ != null + && speechAdaptationInfo_ + != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -1885,6 +2133,8 @@ public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdapta return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1902,33 +2152,42 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder + getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null ? - com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1936,27 +2195,33 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptat * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1.SpeechAdaptationInfo, + com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), - getParentForChildren(), - isClean()); + speechAdaptationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.SpeechAdaptationInfo, + com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), getParentForChildren(), isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_ ; + private long requestId_; /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; + * * @return The requestId. */ @java.lang.Override @@ -1964,29 +2229,35 @@ public long getRequestId() { return requestId_; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; + * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1995,9 +2266,9 @@ public Builder clearRequestId() { 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); } @@ -2007,12 +2278,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(); } @@ -2021,27 +2292,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2056,6 +2327,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java similarity index 85% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java index d6bf3c6b1c3f..d047556c57ee 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java +++ b/java-speech/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.
@@ -146,24 +194,32 @@ com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResultsOrBuild
   com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** + * + * *
    * Provides information on adaptation behavior in response
    * 
@@ -173,12 +229,15 @@ com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResultsOrBuild com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 10; + * * @return The requestId. */ long getRequestId(); diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java similarity index 67% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java index d06efc0da88b..54abd4a6031d 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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; } @@ -70,24 +91,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
@@ -95,12 +120,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
@@ -108,6 +136,7 @@ public boolean hasGcsUri() {
    * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ public java.lang.String getGcsUri() { @@ -118,8 +147,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; @@ -128,6 +156,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
@@ -135,18 +165,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; } @@ -157,6 +186,7 @@ public java.lang.String getGcsUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +198,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_); } @@ -193,18 +222,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: @@ -234,129 +263,135 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -367,9 +402,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 @@ -388,8 +423,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.TranscriptOutputConfig result = + new com.google.cloud.speech.v1.TranscriptOutputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -408,38 +446,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v1.TranscriptOutputConfi 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; @@ -447,17 +486,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.getUnknownFields()); onChanged(); @@ -485,18 +527,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - outputTypeCase_ = 1; - outputType_ = s; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + outputTypeCase_ = 1; + outputType_ = s; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -506,12 +550,12 @@ public Builder mergeFrom( } // finally 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() { @@ -524,6 +568,8 @@ public Builder clearOutputType() { private int bitField0_; /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -531,6 +577,7 @@ public Builder clearOutputType() {
      * 
* * string gcs_uri = 1; + * * @return Whether the gcsUri field is set. */ @java.lang.Override @@ -538,6 +585,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
@@ -545,6 +594,7 @@ public boolean hasGcsUri() {
      * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ @java.lang.Override @@ -554,8 +604,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; @@ -566,6 +615,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
@@ -573,19 +624,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; } @@ -595,6 +645,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
@@ -602,18 +654,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + 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
@@ -621,6 +677,7 @@ public Builder setGcsUri(
      * 
* * string gcs_uri = 1; + * * @return This builder for chaining. */ public Builder clearGcsUri() { @@ -632,6 +689,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
@@ -639,21 +698,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + 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); } @@ -663,12 +724,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(); } @@ -677,27 +738,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -712,6 +773,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.TranscriptOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java similarity index 63% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java index 5ce9fd8335aa..c5255ae7500d 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java similarity index 69% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java index 45faae6359d4..5ae4e26d20f6 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java @@ -1,55 +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_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; } - 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
@@ -62,7 +82,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -70,6 +93,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
@@ -82,14 +107,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
@@ -102,21 +134,28 @@ 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() { - return customClass_ == null ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() + : customClass_; } 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 @@ -124,11 +163,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 @@ -136,6 +178,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * 
@@ -148,6 +192,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +204,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()); } @@ -177,12 +221,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -192,22 +234,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -234,129 +275,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +422,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 @@ -396,8 +443,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.UpdateCustomClassRequest result = + new com.google.cloud.speech.v1.UpdateCustomClassRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -405,14 +455,11 @@ public com.google.cloud.speech.v1.UpdateCustomClassRequest buildPartial() { private void buildPartial0(com.google.cloud.speech.v1.UpdateCustomClassRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.customClass_ = customClassBuilder_ == null - ? customClass_ - : customClassBuilder_.build(); + result.customClass_ = + customClassBuilder_ == null ? customClass_ : customClassBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -420,38 +467,39 @@ private void buildPartial0(com.google.cloud.speech.v1.UpdateCustomClassRequest r 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; @@ -459,7 +507,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()); } @@ -492,26 +541,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCustomClassFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -521,12 +569,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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
@@ -539,13 +593,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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -558,17 +617,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
@@ -581,7 +647,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) { @@ -597,6 +665,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
@@ -609,10 +679,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(); } else { @@ -623,6 +694,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
@@ -635,13 +708,15 @@ 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 (((bitField0_ & 0x00000001) != 0) && - customClass_ != null && - customClass_ != com.google.cloud.speech.v1.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && customClass_ != null + && customClass_ != com.google.cloud.speech.v1.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -654,6 +729,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
@@ -666,7 +743,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -679,6 +758,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
@@ -691,7 +772,9 @@ 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() { bitField0_ |= 0x00000001; @@ -699,6 +782,8 @@ public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassBuilder() { return getCustomClassFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -711,17 +796,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
@@ -734,17 +824,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_; @@ -752,34 +847,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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.
      * 
@@ -800,14 +908,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(); } else { @@ -818,6 +927,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -826,9 +937,9 @@ public Builder setUpdateMask( */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -841,6 +952,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -858,6 +971,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -870,6 +985,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -880,11 +997,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.
      * 
@@ -892,21 +1012,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); } @@ -916,12 +1039,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(); } @@ -930,27 +1053,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -965,6 +1088,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.UpdateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java index 502a36d4010f..884d296e1688 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java similarity index 69% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java index d17c351c5f38..4cd7329df193 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java @@ -1,55 +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_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; } - 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
@@ -62,7 +82,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -70,6 +93,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
@@ -82,14 +107,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
@@ -102,21 +134,28 @@ 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() { - return phraseSet_ == null ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() + : phraseSet_; } 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 @@ -124,11 +163,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 @@ -136,6 +178,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * 
@@ -148,6 +192,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +204,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()); } @@ -177,12 +221,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -192,22 +234,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -234,129 +275,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +422,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 @@ -396,8 +443,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.UpdatePhraseSetRequest result = + new com.google.cloud.speech.v1.UpdatePhraseSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -405,14 +455,10 @@ public com.google.cloud.speech.v1.UpdatePhraseSetRequest buildPartial() { private void buildPartial0(com.google.cloud.speech.v1.UpdatePhraseSetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.phraseSet_ = phraseSetBuilder_ == null - ? phraseSet_ - : phraseSetBuilder_.build(); + result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -420,38 +466,39 @@ private void buildPartial0(com.google.cloud.speech.v1.UpdatePhraseSetRequest res 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; @@ -459,7 +506,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()); } @@ -492,26 +540,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getPhraseSetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -521,12 +568,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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
@@ -539,13 +592,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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -558,17 +616,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
@@ -581,7 +646,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) { @@ -597,6 +664,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
@@ -609,10 +678,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(); } else { @@ -623,6 +693,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
@@ -635,13 +707,15 @@ 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 (((bitField0_ & 0x00000001) != 0) && - phraseSet_ != null && - phraseSet_ != com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && phraseSet_ != null + && phraseSet_ != com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -654,6 +728,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
@@ -666,7 +742,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -679,6 +757,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
@@ -691,7 +771,9 @@ 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() { bitField0_ |= 0x00000001; @@ -699,6 +781,8 @@ public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetBuilder() { return getPhraseSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -711,17 +795,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
@@ -734,17 +823,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_; @@ -752,34 +846,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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.
      * 
@@ -800,14 +907,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(); } else { @@ -818,6 +926,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -826,9 +936,9 @@ public Builder setUpdateMask( */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -841,6 +951,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -858,6 +970,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -870,6 +984,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -880,11 +996,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.
      * 
@@ -892,21 +1011,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); } @@ -916,12 +1038,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(); } @@ -930,27 +1052,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -965,6 +1087,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.UpdatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java index 1c70780af975..f4b31a356377 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java similarity index 76% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java index b0d7f6277e06..5faee23db9dc 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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.
@@ -61,6 +82,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -68,6 +90,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.
@@ -78,6 +102,7 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -85,6 +110,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.
@@ -104,6 +131,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.
@@ -114,6 +143,7 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -121,6 +151,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.
@@ -131,6 +163,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -138,6 +171,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.
@@ -155,14 +190,18 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
   }
 
   public static final int WORD_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object word_ = "";
   /**
+   *
+   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The word. */ @java.lang.Override @@ -171,29 +210,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 { @@ -204,6 +243,8 @@ public java.lang.String getWord() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_ = 0F; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -215,6 +256,7 @@ public java.lang.String getWord() {
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -225,6 +267,8 @@ public float getConfidence() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_ = 0; /** + * + * *
    * 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
@@ -234,6 +278,7 @@ public float getConfidence() {
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ @java.lang.Override @@ -242,6 +287,7 @@ public int getSpeakerTag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,8 +299,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()); } @@ -280,23 +325,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -306,7 +347,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); @@ -315,21 +356,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -352,8 +388,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) + getUnknownFields().hashCode(); @@ -361,130 +396,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -506,9 +546,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 @@ -528,7 +568,9 @@ public com.google.cloud.speech.v1.WordInfo build() { @java.lang.Override public com.google.cloud.speech.v1.WordInfo buildPartial() { com.google.cloud.speech.v1.WordInfo result = new com.google.cloud.speech.v1.WordInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -536,14 +578,10 @@ public com.google.cloud.speech.v1.WordInfo buildPartial() { private void buildPartial0(com.google.cloud.speech.v1.WordInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null - ? startTime_ - : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.word_ = word_; @@ -560,38 +598,39 @@ private void buildPartial0(com.google.cloud.speech.v1.WordInfo result) { 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; @@ -643,41 +682,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - word_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 37: { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000008; - break; - } // case 37 - case 40: { - speakerTag_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + word_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 37: + { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + case 40: + { + speakerTag_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -687,12 +728,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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.
@@ -703,12 +750,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -719,6 +769,7 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { @@ -729,6 +780,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.
@@ -754,6 +807,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.
@@ -765,8 +820,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();
       } else {
@@ -777,6 +831,8 @@ public Builder setStartTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -790,9 +846,9 @@ public Builder setStartTime(
      */
     public Builder mergeStartTime(com.google.protobuf.Duration value) {
       if (startTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          startTime_ != null &&
-          startTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && startTime_ != null
+            && startTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getStartTimeBuilder().mergeFrom(value);
         } else {
           startTime_ = value;
@@ -805,6 +861,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.
@@ -827,6 +885,8 @@ public Builder clearStartTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -844,6 +904,8 @@ public com.google.protobuf.Duration.Builder getStartTimeBuilder() {
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -859,11 +921,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.
@@ -876,14 +939,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_;
@@ -891,8 +957,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.
@@ -903,12 +974,15 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -919,6 +993,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { @@ -929,6 +1004,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.
@@ -954,6 +1031,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.
@@ -965,8 +1044,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();
       } else {
@@ -977,6 +1055,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -990,9 +1070,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Duration value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1005,6 +1085,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.
@@ -1027,6 +1109,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1044,6 +1128,8 @@ public com.google.protobuf.Duration.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1059,11 +1145,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.
@@ -1076,14 +1163,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_;
@@ -1091,18 +1181,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; @@ -1111,20 +1203,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 { @@ -1132,28 +1225,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setWord(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } word_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @return This builder for chaining. */ public Builder clearWord() { @@ -1163,17 +1263,21 @@ public Builder clearWord() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setWordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); word_ = value; bitField0_ |= 0x00000004; @@ -1181,8 +1285,10 @@ public Builder setWordBytes( 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
@@ -1194,6 +1300,7 @@ public Builder setWordBytes(
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1201,6 +1308,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
@@ -1212,17 +1321,20 @@ public float getConfidence() {
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000008; 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
@@ -1234,6 +1346,7 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -1243,8 +1356,10 @@ public Builder clearConfidence() { 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
@@ -1254,6 +1369,7 @@ public Builder clearConfidence() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ @java.lang.Override @@ -1261,6 +1377,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
@@ -1270,17 +1388,20 @@ 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; bitField0_ |= 0x00000010; 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
@@ -1290,6 +1411,7 @@ public Builder setSpeakerTag(int value) {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearSpeakerTag() { @@ -1298,9 +1420,9 @@ public Builder clearSpeakerTag() { 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); } @@ -1310,12 +1432,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(); } @@ -1324,27 +1446,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1359,6 +1481,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java similarity index 84% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java index f8e889216201..45ed38fc69e3 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto b/java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto similarity index 100% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto rename to java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto b/java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto similarity index 100% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto rename to java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto b/java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto similarity index 100% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto rename to java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java index 750b4e7e646c..8b3100d35612 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource where this custom class will be created. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -63,7 +85,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -72,14 +97,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`
@@ -90,17 +116,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 { @@ -109,9 +136,12 @@ public java.lang.String getParent() { } public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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.
@@ -120,6 +150,7 @@ public java.lang.String getParent() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The customClassId. */ @java.lang.Override @@ -128,14 +159,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.
@@ -144,16 +176,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 { @@ -164,11 +195,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 @@ -176,30 +212,44 @@ 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() { - return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() + : customClass_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,8 +261,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_); } @@ -238,8 +287,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,21 +297,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -290,129 +336,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -428,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_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 @@ -449,8 +502,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest result = + new com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -464,9 +520,8 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CreateCustomClassRe result.customClassId_ = customClassId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.customClass_ = customClassBuilder_ == null - ? customClass_ - : customClassBuilder_.build(); + result.customClass_ = + customClassBuilder_ == null ? customClass_ : customClassBuilder_.build(); } } @@ -474,38 +529,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CreateCustomClassRe 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; @@ -513,7 +569,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_; bitField0_ |= 0x00000001; @@ -553,29 +610,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - customClassId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getCustomClassFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + customClassId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -585,10 +644,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -599,14 +661,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; @@ -615,6 +679,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -625,16 +691,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 { @@ -642,6 +709,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -652,19 +721,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -675,7 +750,10 @@ 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() { @@ -685,6 +763,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -695,13 +775,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -711,6 +795,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.
@@ -719,13 +805,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; @@ -734,6 +820,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.
@@ -742,15 +830,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 { @@ -758,6 +845,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.
@@ -766,18 +855,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomClassId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } customClassId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -786,6 +879,7 @@ public Builder setCustomClassId(
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCustomClassId() { @@ -795,6 +889,8 @@ public Builder clearCustomClassId() { return this; } /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -803,12 +899,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); customClassId_ = value; bitField0_ |= 0x00000002; @@ -818,39 +916,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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) { @@ -866,11 +983,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) { @@ -884,17 +1005,21 @@ 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 (((bitField0_ & 0x00000004) != 0) && - customClass_ != null && - customClass_ != com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && customClass_ != null + && customClass_ != com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -907,11 +1032,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -924,11 +1053,15 @@ 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() { bitField0_ |= 0x00000004; @@ -936,43 +1069,55 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassBuild 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); } @@ -982,12 +1127,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(); } @@ -996,27 +1141,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1031,6 +1176,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java index a042d191704a..0562cbcf6cdd 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java index 48b5ef08f546..39ce8dd20734 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource where this phrase set will be created. Format:
    * `projects/{project}/locations/{location}/phraseSets`
@@ -63,7 +85,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -72,14 +97,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`
@@ -90,17 +116,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 { @@ -109,9 +136,12 @@ public java.lang.String getParent() { } public static final int PHRASE_SET_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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.
@@ -120,6 +150,7 @@ public java.lang.String getParent() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The phraseSetId. */ @java.lang.Override @@ -128,14 +159,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.
@@ -144,16 +176,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 { @@ -164,11 +195,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 @@ -176,30 +212,44 @@ 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() { - return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() + : phraseSet_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,8 +261,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_); } @@ -238,8 +287,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,21 +297,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -290,129 +336,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -428,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_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 @@ -449,8 +502,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -464,9 +520,7 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequ result.phraseSetId_ = phraseSetId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.phraseSet_ = phraseSetBuilder_ == null - ? phraseSet_ - : phraseSetBuilder_.build(); + result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build(); } } @@ -474,38 +528,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequ 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; @@ -513,7 +568,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_; bitField0_ |= 0x00000001; @@ -553,29 +609,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - phraseSetId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getPhraseSetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + phraseSetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -585,10 +643,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -599,14 +660,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; @@ -615,6 +678,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -625,16 +690,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 { @@ -642,6 +708,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -652,19 +720,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -675,7 +749,10 @@ 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() { @@ -685,6 +762,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -695,13 +774,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -711,6 +794,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.
@@ -719,13 +804,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; @@ -734,6 +819,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.
@@ -742,15 +829,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 { @@ -758,6 +844,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.
@@ -766,18 +854,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhraseSetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } phraseSetId_ = value; bitField0_ |= 0x00000002; 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.
@@ -786,6 +878,7 @@ public Builder setPhraseSetId(
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPhraseSetId() { @@ -795,6 +888,8 @@ public Builder clearPhraseSetId() { return this; } /** + * + * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -803,12 +898,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); phraseSetId_ = value; bitField0_ |= 0x00000002; @@ -818,39 +915,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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) { @@ -866,11 +982,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) { @@ -884,17 +1004,21 @@ 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 (((bitField0_ & 0x00000004) != 0) && - phraseSet_ != null && - phraseSet_ != com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && phraseSet_ != null + && phraseSet_ != com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -907,11 +1031,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -924,11 +1052,15 @@ 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() { bitField0_ |= 0x00000004; @@ -936,43 +1068,55 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetBuilder() 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); } @@ -982,12 +1126,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(); } @@ -996,27 +1140,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1031,6 +1175,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java index e21aaa6f933a..4b4c85e4a32a 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java similarity index 72% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java index c788eebef313..d064e986a5a3 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java +++ b/java-speech/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,107 +47,122 @@ 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;
   }
-  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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** + * + * *
      * The class item's value.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -138,29 +171,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 { @@ -169,6 +202,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,8 +214,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_); } @@ -205,15 +238,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,87 +266,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 @@ -323,39 +363,41 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -365,9 +407,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 @@ -386,8 +428,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem result = + new com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -403,38 +448,41 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CustomClass.ClassIt 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; @@ -442,7 +490,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_; bitField0_ |= 0x00000001; @@ -474,17 +523,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -494,22 +545,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -518,20 +572,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 { @@ -539,28 +594,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -570,23 +632,28 @@ public Builder clearValue() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -599,12 +666,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(); } @@ -613,27 +680,28 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,18 +716,21 @@ 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -668,29 +739,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 { @@ -699,15 +770,19 @@ public java.lang.String getName() { } public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -716,30 +791,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 { @@ -748,9 +823,12 @@ public java.lang.String getCustomClassId() { } public static final int ITEMS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List items_; /** + * + * *
    * A collection of class items.
    * 
@@ -762,6 +840,8 @@ public java.util.List g return items_; } /** + * + * *
    * A collection of class items.
    * 
@@ -769,11 +849,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.
    * 
@@ -785,6 +867,8 @@ public int getItemsCount() { return items_.size(); } /** + * + * *
    * A collection of class items.
    * 
@@ -796,6 +880,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int inde return items_.get(index); } /** + * + * *
    * A collection of class items.
    * 
@@ -809,6 +895,7 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItems } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -820,8 +907,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_); } @@ -847,8 +933,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -858,19 +943,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -895,97 +978,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
@@ -994,33 +1084,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1038,9 +1127,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
@@ -1059,9 +1148,12 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1092,38 +1184,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CustomClass result)
     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;
@@ -1160,9 +1253,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            itemsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getItemsFieldBuilder() : null;
+            itemsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getItemsFieldBuilder()
+                    : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -1194,35 +1288,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              customClassId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.parser(),
-                      extensionRegistry);
-              if (itemsBuilder_ == null) {
-                ensureItemsIsMutable();
-                items_.add(m);
-              } else {
-                itemsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                customClassId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.parser(),
+                        extensionRegistry);
+                if (itemsBuilder_ == null) {
+                  ensureItemsIsMutable();
+                  items_.add(m);
+                } else {
+                  itemsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1232,22 +1330,25 @@ public Builder mergeFrom(
       } // finally
       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; @@ -1256,20 +1357,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 { @@ -1277,28 +1379,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1308,17 +1417,21 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1328,19 +1441,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; @@ -1349,21 +1464,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 { @@ -1371,30 +1487,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomClassId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } customClassId_ = value; bitField0_ |= 0x00000002; 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() { @@ -1404,18 +1527,22 @@ public Builder clearCustomClassId() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); customClassId_ = value; bitField0_ |= 0x00000002; @@ -1424,18 +1551,26 @@ public Builder setCustomClassIdBytes( } private java.util.List items_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - items_ = new java.util.ArrayList(items_); + items_ = + new java.util.ArrayList( + items_); bitField0_ |= 0x00000004; - } + } } 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.
      * 
@@ -1450,6 +1585,8 @@ public java.util.List g } } /** + * + * *
      * A collection of class items.
      * 
@@ -1464,6 +1601,8 @@ public int getItemsCount() { } } /** + * + * *
      * A collection of class items.
      * 
@@ -1478,6 +1617,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int inde } } /** + * + * *
      * A collection of class items.
      * 
@@ -1499,6 +1640,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1506,7 +1649,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()); @@ -1517,6 +1661,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1537,6 +1683,8 @@ public Builder addItems(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1558,6 +1706,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1576,6 +1726,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1583,7 +1735,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()); @@ -1594,6 +1747,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1601,11 +1756,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); @@ -1613,6 +1768,8 @@ public Builder addAllItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1630,6 +1787,8 @@ public Builder clearItems() { return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1647,6 +1806,8 @@ public Builder removeItems(int index) { return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1658,6 +1819,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder getItemsB return getItemsFieldBuilder().getBuilder(index); } /** + * + * *
      * A collection of class items.
      * 
@@ -1667,19 +1830,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 { @@ -1687,6 +1854,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItems } } /** + * + * *
      * A collection of class items.
      * 
@@ -1694,10 +1863,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.
      * 
@@ -1706,37 +1877,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_ & 0x00000004) != 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_ & 0x00000004) != 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); } @@ -1746,12 +1923,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(); } @@ -1760,27 +1937,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1795,6 +1972,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java index 5a2383a9cef5..49436233656b 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java index bbb366cf504b..3b6a7835efad 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java @@ -1,57 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -62,7 +84,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -71,14 +96,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}`
@@ -89,17 +115,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 { @@ -108,6 +135,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -119,8 +147,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_); } @@ -144,15 +171,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,129 +199,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -304,9 +338,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 @@ -325,8 +359,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest result = + new com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -342,38 +379,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRe 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; @@ -381,7 +419,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_; bitField0_ |= 0x00000001; @@ -413,17 +452,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -433,10 +474,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -447,14 +491,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; @@ -463,6 +509,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -473,16 +521,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 { @@ -490,6 +539,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -500,19 +551,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -523,7 +580,10 @@ 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() { @@ -533,6 +593,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -543,22 +605,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -568,12 +634,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(); } @@ -582,27 +648,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -617,6 +683,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java index 477f46c0e2f8..21121096eb41 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java similarity index 64% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java index 07d9ddf94c18..b87312b547f8 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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; + @SuppressWarnings("serial") 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 @@ -66,30 +91,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 { @@ -98,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +137,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_); } @@ -134,15 +161,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,129 +189,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,9 +328,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 @@ -315,8 +349,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -332,38 +369,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequ 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; @@ -371,7 +409,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_; bitField0_ |= 0x00000001; @@ -403,17 +442,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,23 +464,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -448,21 +494,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 { @@ -470,30 +519,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -503,27 +563,33 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -533,12 +599,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(); } @@ -547,27 +613,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -582,6 +648,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java new file mode 100644 index 000000000000..f6228f5daa9a --- /dev/null +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java similarity index 63% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java index 4ed77d987ed1..89016327b398 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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; + @SuppressWarnings("serial") 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 @@ -66,30 +91,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 { @@ -98,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +137,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_); } @@ -134,15 +161,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,129 +189,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,9 +328,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 @@ -315,8 +349,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest result = + new com.google.cloud.speech.v1p1beta1.GetCustomClassRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -332,38 +369,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.GetCustomClassReque 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; @@ -371,7 +409,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_; bitField0_ |= 0x00000001; @@ -403,17 +442,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,23 +464,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -448,21 +494,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 { @@ -470,30 +519,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -503,27 +563,33 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -533,12 +599,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(); } @@ -547,27 +613,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -582,6 +648,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java new file mode 100644 index 000000000000..05350941a005 --- /dev/null +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java index c5510a21f889..ec9e420513d6 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java @@ -1,57 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -62,7 +84,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -71,14 +96,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}`
@@ -89,17 +115,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 { @@ -108,6 +135,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -119,8 +147,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_); } @@ -144,15 +171,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,129 +199,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -304,9 +338,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 @@ -325,8 +359,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -342,38 +379,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest 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; @@ -381,7 +419,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_; bitField0_ |= 0x00000001; @@ -413,17 +452,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -433,10 +474,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -447,14 +491,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; @@ -463,6 +509,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -473,16 +521,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 { @@ -490,6 +539,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -500,19 +551,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -523,7 +580,10 @@ 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() { @@ -533,6 +593,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -543,22 +605,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -568,12 +634,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(); } @@ -582,27 +648,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -617,6 +683,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java index b5ad6ae0036f..fb9fa55ec399 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java similarity index 71% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java index 0cec901e8359..b866c124f727 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -63,7 +85,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -72,14 +97,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`
@@ -90,17 +116,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 { @@ -111,6 +138,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * 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
@@ -119,6 +148,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -127,9 +157,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -138,6 +171,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -146,14 +180,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.
@@ -162,16 +197,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 { @@ -180,6 +214,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +226,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_); } @@ -215,8 +249,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_); @@ -229,19 +262,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,129 +296,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -399,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_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 @@ -420,8 +458,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest result = + new com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -443,38 +484,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.ListCustomClassesRe 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; @@ -482,7 +524,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_; bitField0_ |= 0x00000001; @@ -522,27 +565,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -552,10 +599,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -566,14 +616,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; @@ -582,6 +634,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -592,16 +646,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 { @@ -609,6 +664,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -619,19 +676,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -642,7 +705,10 @@ 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() { @@ -652,6 +718,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -662,13 +730,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -676,8 +748,10 @@ public Builder setParentBytes( 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
@@ -686,6 +760,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -693,6 +768,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
@@ -701,17 +778,20 @@ 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; bitField0_ |= 0x00000002; 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
@@ -720,6 +800,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -731,6 +812,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.
@@ -739,13 +822,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; @@ -754,6 +837,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -762,15 +847,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 { @@ -778,6 +862,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -786,18 +872,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -806,6 +896,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -815,6 +906,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -823,21 +916,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -847,12 +942,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(); } @@ -861,27 +956,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +991,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java index e83c2e601a5a..de9020900455 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java similarity index 73% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java index 9cd1b9a7e0cd..76b2fb87583a 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private java.util.List customClasses_; /** + * + * *
    * The custom classes.
    * 
@@ -64,6 +86,8 @@ public java.util.List getCustomCl return customClasses_; } /** + * + * *
    * The custom classes.
    * 
@@ -71,11 +95,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.
    * 
@@ -87,6 +113,8 @@ public int getCustomClassesCount() { return customClasses_.size(); } /** + * + * *
    * The custom classes.
    * 
@@ -98,6 +126,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index) return customClasses_.get(index); } /** + * + * *
    * The custom classes.
    * 
@@ -111,15 +141,19 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -128,30 +162,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 { @@ -160,6 +194,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +206,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)); } @@ -189,8 +223,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_); @@ -203,17 +236,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,129 +269,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +415,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 @@ -397,14 +436,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse result) { if (customClassesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { customClasses_ = java.util.Collections.unmodifiableList(customClasses_); @@ -427,38 +470,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.ListCustomClassesRe 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; @@ -466,7 +510,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()) { @@ -485,9 +530,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_); } @@ -524,30 +570,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1p1beta1.CustomClass m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.CustomClass.parser(), - extensionRegistry); - if (customClassesBuilder_ == null) { - ensureCustomClassesIsMutable(); - customClasses_.add(m); - } else { - customClassesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.speech.v1p1beta1.CustomClass m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); + if (customClassesBuilder_ == null) { + ensureCustomClassesIsMutable(); + customClasses_.add(m); + } else { + customClassesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,21 +605,29 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -586,6 +642,8 @@ public java.util.List getCustomCl } } /** + * + * *
      * The custom classes.
      * 
@@ -600,6 +658,8 @@ public int getCustomClassesCount() { } } /** + * + * *
      * The custom classes.
      * 
@@ -614,6 +674,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index) } } /** + * + * *
      * The custom classes.
      * 
@@ -635,6 +697,8 @@ public Builder setCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -653,6 +717,8 @@ public Builder setCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -673,6 +739,8 @@ public Builder addCustomClasses(com.google.cloud.speech.v1p1beta1.CustomClass va return this; } /** + * + * *
      * The custom classes.
      * 
@@ -694,6 +762,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -712,6 +782,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -730,6 +802,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -740,8 +814,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); @@ -749,6 +822,8 @@ public Builder addAllCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -766,6 +841,8 @@ public Builder clearCustomClasses() { return this; } /** + * + * *
      * The custom classes.
      * 
@@ -783,6 +860,8 @@ public Builder removeCustomClasses(int index) { return this; } /** + * + * *
      * The custom classes.
      * 
@@ -794,6 +873,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassesBui return getCustomClassesFieldBuilder().getBuilder(index); } /** + * + * *
      * The custom classes.
      * 
@@ -803,19 +884,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 { @@ -823,6 +907,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr } } /** + * + * *
      * The custom classes.
      * 
@@ -830,10 +916,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.
      * 
@@ -842,26 +930,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(), @@ -873,19 +969,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; @@ -894,21 +992,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 { @@ -916,30 +1015,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -949,27 +1055,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -979,12 +1089,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(); } @@ -993,27 +1103,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1028,6 +1138,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java index bb845e9819e6..ba426471df4a 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java similarity index 71% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java index 79bf9654d1e9..ec356159bcab 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -63,7 +85,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -72,14 +97,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}`
@@ -90,17 +116,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 { @@ -111,6 +138,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * 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
@@ -119,6 +148,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -127,9 +157,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -138,6 +171,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -146,14 +180,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.
@@ -162,16 +197,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 { @@ -180,6 +214,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +226,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_); } @@ -215,8 +249,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_); @@ -229,19 +262,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,129 +296,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -399,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_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 @@ -420,8 +458,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -443,38 +484,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.ListPhraseSetReques 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; @@ -482,7 +524,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_; bitField0_ |= 0x00000001; @@ -522,27 +565,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -552,10 +599,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -566,14 +616,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; @@ -582,6 +634,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -592,16 +646,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 { @@ -609,6 +664,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -619,19 +676,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -642,7 +705,10 @@ 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() { @@ -652,6 +718,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -662,13 +730,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -676,8 +748,10 @@ public Builder setParentBytes( 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
@@ -686,6 +760,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -693,6 +768,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
@@ -701,17 +778,20 @@ 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; bitField0_ |= 0x00000002; 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
@@ -720,6 +800,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -731,6 +812,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.
@@ -739,13 +822,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; @@ -754,6 +837,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -762,15 +847,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 { @@ -778,6 +862,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -786,18 +872,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -806,6 +896,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -815,6 +906,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -823,21 +916,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -847,12 +942,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(); } @@ -861,27 +956,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +991,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java index 1f93fa365224..51f5352582e1 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java similarity index 71% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java index 0450e2136200..93c06391bea1 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private java.util.List phraseSets_; /** + * + * *
    * The phrase set.
    * 
@@ -64,6 +86,8 @@ public java.util.List getPhraseSets return phraseSets_; } /** + * + * *
    * The phrase set.
    * 
@@ -71,11 +95,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.
    * 
@@ -87,6 +113,8 @@ public int getPhraseSetsCount() { return phraseSets_.size(); } /** + * + * *
    * The phrase set.
    * 
@@ -98,6 +126,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** + * + * *
    * The phrase set.
    * 
@@ -105,21 +135,24 @@ 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; + @SuppressWarnings("serial") 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 @@ -128,30 +161,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 { @@ -160,6 +193,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +205,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)); } @@ -189,8 +222,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_); @@ -203,17 +235,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,129 +268,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +414,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 @@ -397,14 +435,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse result) { if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -427,38 +469,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.ListPhraseSetRespon 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; @@ -466,7 +509,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()) { @@ -485,9 +529,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_); } @@ -524,30 +569,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1p1beta1.PhraseSet m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), - extensionRegistry); - if (phraseSetsBuilder_ == null) { - ensurePhraseSetsIsMutable(); - phraseSets_.add(m); - } else { - phraseSetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.speech.v1p1beta1.PhraseSet m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); + if (phraseSetsBuilder_ == null) { + ensurePhraseSetsIsMutable(); + phraseSets_.add(m); + } else { + phraseSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,21 +604,29 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -586,6 +641,8 @@ public java.util.List getPhraseSets } } /** + * + * *
      * The phrase set.
      * 
@@ -600,6 +657,8 @@ public int getPhraseSetsCount() { } } /** + * + * *
      * The phrase set.
      * 
@@ -614,14 +673,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(); @@ -635,6 +695,8 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -653,6 +715,8 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -673,14 +737,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(); @@ -694,6 +759,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -712,6 +779,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -730,6 +799,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -740,8 +811,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); @@ -749,6 +819,8 @@ public Builder addAllPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -766,6 +838,8 @@ public Builder clearPhraseSets() { return this; } /** + * + * *
      * The phrase set.
      * 
@@ -783,39 +857,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 { @@ -823,6 +902,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuild } } /** + * + * *
      * The phrase set.
      * 
@@ -830,42 +911,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_; @@ -873,19 +960,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; @@ -894,21 +983,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 { @@ -916,30 +1006,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -949,27 +1046,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -979,12 +1080,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(); } @@ -993,27 +1094,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1028,6 +1129,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java index 7a24d1b77dc3..319d29f4fab5 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java similarity index 66% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java index a8bf3abc718e..67f5dbc14799 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java +++ b/java-speech/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,53 +29,58 @@
  *
  * 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;
   }
-  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_ = 0;
   /**
+   *
+   *
    * 
    * 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 @@ -69,11 +91,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 @@ -81,11 +106,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 @@ -93,6 +121,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Time when the request was received.
    * 
@@ -107,11 +137,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 @@ -119,18 +152,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.
    * 
@@ -139,19 +179,25 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } public static final int URI_FIELD_NUMBER = 4; + @SuppressWarnings("serial") 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 @@ -160,30 +206,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 { @@ -194,11 +240,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 @@ -206,30 +257,45 @@ 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() { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -241,8 +307,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_); } @@ -268,23 +333,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -294,31 +355,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -353,96 +410,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
@@ -451,33 +516,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -503,13 +567,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();
     }
 
@@ -524,34 +589,34 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result =
+          new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result) {
+    private void buildPartial0(
+        com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.progressPercent_ = progressPercent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null
-            ? startTime_
-            : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.lastUpdateTime_ = lastUpdateTimeBuilder_ == null
-            ? lastUpdateTime_
-            : lastUpdateTimeBuilder_.build();
+        result.lastUpdateTime_ =
+            lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.uri_ = uri_;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.outputConfig_ = outputConfigBuilder_ == null
-            ? outputConfig_
-            : outputConfigBuilder_.build();
+        result.outputConfig_ =
+            outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
       }
     }
 
@@ -559,38 +624,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.LongRunningRecogniz
     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;
@@ -598,7 +664,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());
       }
@@ -642,43 +710,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              progressPercent_ = input.readInt32();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              input.readMessage(
-                  getStartTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getLastUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              uri_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getOutputConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                progressPercent_ = input.readInt32();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                uri_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -688,16 +756,20 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    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 @@ -705,29 +777,35 @@ 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; bitField0_ |= 0x00000001; 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() { @@ -739,24 +817,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -767,6 +854,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Time when the request was received.
      * 
@@ -787,14 +876,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(); } else { @@ -805,6 +895,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -813,9 +905,9 @@ public Builder setStartTime( */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -828,6 +920,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -845,6 +939,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -857,6 +953,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the request was received.
      * 
@@ -867,11 +965,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.
      * 
@@ -879,14 +978,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_; @@ -894,34 +996,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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.
      * 
@@ -942,14 +1057,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(); } else { @@ -960,6 +1076,8 @@ public Builder setLastUpdateTime( return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -968,9 +1086,9 @@ public Builder setLastUpdateTime( */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - lastUpdateTime_ != null && - lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && lastUpdateTime_ != null + && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; @@ -983,6 +1101,8 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -1000,6 +1120,8 @@ public Builder clearLastUpdateTime() { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -1012,6 +1134,8 @@ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { return getLastUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -1022,11 +1146,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.
      * 
@@ -1034,14 +1161,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_; @@ -1049,19 +1179,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; @@ -1070,21 +1202,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 { @@ -1092,30 +1225,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uri_ = value; bitField0_ |= 0x00000008; 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() { @@ -1125,18 +1265,22 @@ public Builder clearUri() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000008; @@ -1146,39 +1290,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 ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * 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) { @@ -1194,11 +1357,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) { @@ -1212,17 +1379,23 @@ 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 (((bitField0_ & 0x00000010) != 0) && - outputConfig_ != null && - outputConfig_ != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -1235,11 +1408,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() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1252,55 +1429,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() { bitField0_ |= 0x00000010; 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); } @@ -1310,41 +1505,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1356,9 +1553,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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java index 2e4b54cbc0f0..0016ab958fc5 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java similarity index 58% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java index 248cb8f11897..0ec03b1087c8 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java +++ b/java-speech/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,52 +28,58 @@
  *
  * 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;
   }
-  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 @@ -64,39 +87,57 @@ 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() { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } 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 @@ -104,37 +145,55 @@ 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() { - return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } 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 @@ -142,30 +201,45 @@ 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() { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +251,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()); } @@ -198,16 +271,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -217,27 +287,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -268,96 +336,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.
@@ -365,33 +441,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -415,13 +490,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();
     }
 
@@ -436,28 +512,27 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result =
+          new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result) {
+    private void buildPartial0(
+        com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.config_ = configBuilder_ == null
-            ? config_
-            : configBuilder_.build();
+        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.audio_ = audioBuilder_ == null
-            ? audio_
-            : audioBuilder_.build();
+        result.audio_ = audioBuilder_ == null ? audio_ : audioBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.outputConfig_ = outputConfigBuilder_ == null
-            ? outputConfig_
-            : outputConfigBuilder_.build();
+        result.outputConfig_ =
+            outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
       }
     }
 
@@ -465,38 +540,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.LongRunningRecogniz
     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;
@@ -504,7 +580,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());
       }
@@ -540,33 +618,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getAudioFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 34: {
-              input.readMessage(
-                  getOutputConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getAudioFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 34:
+              {
+                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -576,46 +652,66 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * 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) { @@ -631,12 +727,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) { @@ -650,18 +750,23 @@ 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 (((bitField0_ & 0x00000001) != 0) && - config_ != null && - config_ != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && config_ != null + && config_ + != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -674,12 +779,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -692,12 +801,16 @@ 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() { bitField0_ |= 0x00000001; @@ -705,38 +818,50 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuil 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_; @@ -744,39 +869,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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) { @@ -792,11 +936,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) { @@ -810,17 +958,21 @@ 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 (((bitField0_ & 0x00000002) != 0) && - audio_ != null && - audio_ != com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && audio_ != null + && audio_ != com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance()) { getAudioBuilder().mergeFrom(value); } else { audio_ = value; @@ -833,11 +985,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -850,11 +1006,15 @@ 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() { bitField0_ |= 0x00000002; @@ -862,36 +1022,48 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder getAudioBuilde 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_; @@ -899,39 +1071,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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) { @@ -947,11 +1138,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) { @@ -965,17 +1160,23 @@ 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 (((bitField0_ & 0x00000004) != 0) && - outputConfig_ != null && - outputConfig_ != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -988,11 +1189,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1005,55 +1210,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() { bitField0_ |= 0x00000004; 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); } @@ -1063,12 +1286,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(); } @@ -1077,27 +1301,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1112,6 +1336,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java index 5a5a7bb3a28f..02d21f70fe28 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java similarity index 72% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java index f91bf577e9df..2af036458d8c 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java +++ b/java-speech/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,48 +31,53 @@
  *
  * 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;
   }
-  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;
+
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -64,10 +86,13 @@ protected java.lang.Object newInstance(
    * 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.
@@ -76,11 +101,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.
@@ -93,6 +121,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -105,6 +135,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.
@@ -121,11 +153,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 @@ -133,18 +168,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.
    * 
@@ -153,17 +195,22 @@ public com.google.protobuf.Duration getTotalBilledTime() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } 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 @@ -171,18 +218,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.
    * 
@@ -190,18 +244,24 @@ 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() { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } 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 @@ -209,11 +269,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 @@ -221,6 +284,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.
    * 
@@ -235,11 +300,14 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 8; private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_; /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -247,18 +315,25 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
@@ -266,19 +341,25 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptatio * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 9; private long requestId_ = 0L; /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 9; + * * @return The requestId. */ @java.lang.Override @@ -287,6 +368,7 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -298,8 +380,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)); } @@ -328,28 +409,23 @@ 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()); } if (speechAdaptationInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSpeechAdaptationInfo()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, requestId_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -359,37 +435,32 @@ 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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo() - .equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() - != other.getRequestId()) return false; + if (getRequestId() != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -422,104 +493,111 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } 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`
@@ -530,33 +608,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -593,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_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();
     }
 
@@ -614,14 +692,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -633,27 +715,26 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.LongRu
       }
     }
 
-    private void buildPartial0(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result) {
+    private void buildPartial0(
+        com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
-            ? totalBilledTime_
-            : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ =
+            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.outputConfig_ = outputConfigBuilder_ == null
-            ? outputConfig_
-            : outputConfigBuilder_.build();
+        result.outputConfig_ =
+            outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.outputError_ = outputErrorBuilder_ == null
-            ? outputError_
-            : outputErrorBuilder_.build();
+        result.outputError_ =
+            outputErrorBuilder_ == null ? outputError_ : outputErrorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
-            ? speechAdaptationInfo_
-            : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ =
+            speechAdaptationInfoBuilder_ == null
+                ? speechAdaptationInfo_
+                : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.requestId_ = requestId_;
@@ -664,38 +745,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.LongRunningRecogniz
     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;
@@ -703,7 +785,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()) {
@@ -722,9 +806,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_);
           }
@@ -771,58 +856,58 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18: {
-              com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
-                      extensionRegistry);
-              if (resultsBuilder_ == null) {
-                ensureResultsIsMutable();
-                results_.add(m);
-              } else {
-                resultsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getTotalBilledTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 26
-            case 50: {
-              input.readMessage(
-                  getOutputConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getOutputErrorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 66
-            case 72: {
-              requestId_ = input.readInt64();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 72
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 18:
+              {
+                com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
+                        extensionRegistry);
+                if (resultsBuilder_ == null) {
+                  ensureResultsIsMutable();
+                  results_.add(m);
+                } else {
+                  resultsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+            case 50:
+              {
+                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getOutputErrorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(
+                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 66
+            case 72:
+              {
+                requestId_ = input.readInt64();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 72
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -832,21 +917,30 @@ public Builder mergeFrom(
       } // finally
       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.
@@ -854,7 +948,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 {
@@ -862,6 +957,8 @@ public java.util.List
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -877,6 +974,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -892,6 +991,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -914,6 +1015,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -922,7 +1025,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());
@@ -933,6 +1037,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -954,6 +1060,8 @@ public Builder addResults(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRes
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -976,6 +1084,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -995,6 +1105,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1003,7 +1115,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());
@@ -1014,6 +1127,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1022,11 +1137,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);
@@ -1034,6 +1149,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1052,6 +1169,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1070,6 +1189,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1082,6 +1203,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.
@@ -1092,11 +1215,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.
@@ -1104,8 +1230,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 {
@@ -1113,6 +1240,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1121,10 +1250,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.
@@ -1134,10 +1266,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.
@@ -1145,20 +1281,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_;
@@ -1166,34 +1305,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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.
      * 
@@ -1214,14 +1366,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(); } else { @@ -1232,6 +1385,8 @@ public Builder setTotalBilledTime( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1240,9 +1395,9 @@ public Builder setTotalBilledTime( */ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - totalBilledTime_ != null && - totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && totalBilledTime_ != null + && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getTotalBilledTimeBuilder().mergeFrom(value); } else { totalBilledTime_ = value; @@ -1255,6 +1410,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1272,6 +1429,8 @@ public Builder clearTotalBilledTime() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1284,6 +1443,8 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { return getTotalBilledTimeFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1294,11 +1455,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.
      * 
@@ -1306,14 +1470,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_; @@ -1321,34 +1488,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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.
      * 
@@ -1369,6 +1549,8 @@ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutpu return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1387,17 +1569,21 @@ 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 (((bitField0_ & 0x00000004) != 0) && - outputConfig_ != null && - outputConfig_ != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -1410,6 +1596,8 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOut return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1427,33 +1615,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() { bitField0_ |= 0x00000004; 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.
      * 
@@ -1461,14 +1658,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_; @@ -1476,24 +1676,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 ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * 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() { @@ -1504,6 +1711,8 @@ public com.google.rpc.Status getOutputError() { } } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1524,14 +1733,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(); } else { @@ -1542,6 +1752,8 @@ public Builder setOutputError( return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1550,9 +1762,9 @@ public Builder setOutputError( */ public Builder mergeOutputError(com.google.rpc.Status value) { if (outputErrorBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - outputError_ != null && - outputError_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && outputError_ != null + && outputError_ != com.google.rpc.Status.getDefaultInstance()) { getOutputErrorBuilder().mergeFrom(value); } else { outputError_ = value; @@ -1565,6 +1777,8 @@ public Builder mergeOutputError(com.google.rpc.Status value) { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1582,6 +1796,8 @@ public Builder clearOutputError() { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1594,6 +1810,8 @@ public com.google.rpc.Status.Builder getOutputErrorBuilder() { return getOutputErrorFieldBuilder().getBuilder(); } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1604,11 +1822,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.
      * 
@@ -1616,14 +1835,15 @@ 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_; @@ -1631,41 +1851,55 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_; + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> + speechAdaptationInfoBuilder_; /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder setSpeechAdaptationInfo( + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1679,6 +1913,8 @@ public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechA return this; } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1697,17 +1933,21 @@ public Builder setSpeechAdaptationInfo( return this; } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo( + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - speechAdaptationInfo_ != null && - speechAdaptationInfo_ != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && speechAdaptationInfo_ != null + && speechAdaptationInfo_ + != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -1720,6 +1960,8 @@ public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.Speec return this; } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1737,33 +1979,42 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder + getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null ? - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1771,27 +2022,33 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeech * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), - getParentForChildren(), - isClean()); + speechAdaptationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), getParentForChildren(), isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_ ; + private long requestId_; /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; + * * @return The requestId. */ @java.lang.Override @@ -1799,29 +2056,35 @@ public long getRequestId() { return requestId_; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; + * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1830,9 +2093,9 @@ public Builder clearRequestId() { 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); } @@ -1842,41 +2105,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1888,9 +2153,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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java similarity index 83% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java index 76046b9abd9a..62b75e4f97ee 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java +++ b/java-speech/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.
    * 
@@ -138,39 +186,51 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrB com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder(); /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder(); /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 9; + * * @return The requestId. */ long getRequestId(); diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java similarity index 76% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java index 7ddee708c954..279e7c565016 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java +++ b/java-speech/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,54 +45,63 @@ 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;
   }
-  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
@@ -88,11 +115,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
@@ -121,53 +151,59 @@ 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;
     }
-    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;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object value_ = "";
     /**
+     *
+     *
      * 
      * The phrase itself.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -176,29 +212,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 { @@ -209,6 +245,8 @@ public java.lang.String getValue() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_ = 0F; /** + * + * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -222,6 +260,7 @@ public java.lang.String getValue() {
      * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -230,6 +269,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -241,8 +281,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_); } @@ -262,8 +301,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -273,18 +311,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -299,95 +336,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) + getUnknownFields().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 @@ -397,6 +439,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
@@ -425,33 +469,33 @@ 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()
-      private Builder() {
+      private Builder() {}
 
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -462,9 +506,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
@@ -483,8 +527,11 @@ 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);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase result =
+            new com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -503,38 +550,41 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase re
       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;
@@ -542,7 +592,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_;
           bitField0_ |= 0x00000001;
@@ -577,22 +628,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                value_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 21: {
-                boost_ = input.readFloat();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 21
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  value_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 21:
+                {
+                  boost_ = input.readFloat();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 21
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -602,22 +656,25 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       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; @@ -626,20 +683,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 { @@ -647,28 +705,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -678,17 +743,21 @@ public Builder clearValue() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; @@ -696,8 +765,10 @@ public Builder setValueBytes( 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
@@ -711,6 +782,7 @@ public Builder setValueBytes(
        * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -718,6 +790,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
@@ -731,17 +805,20 @@ public float getBoost() {
        * 
* * float boost = 2; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000002; 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
@@ -755,6 +832,7 @@ public Builder setBoost(float value) {
        * 
* * float boost = 2; + * * @return This builder for chaining. */ public Builder clearBoost() { @@ -763,6 +841,7 @@ public Builder clearBoost() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -775,12 +854,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(); } @@ -789,27 +868,28 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -824,18 +904,21 @@ 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -844,29 +927,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 { @@ -875,9 +958,12 @@ public java.lang.String getName() { } public static final int PHRASES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List phrases_; /** + * + * *
    * A list of word and phrases.
    * 
@@ -889,6 +975,8 @@ public java.util.List getPhr return phrases_; } /** + * + * *
    * A list of word and phrases.
    * 
@@ -896,11 +984,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.
    * 
@@ -912,6 +1002,8 @@ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -923,6 +1015,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getPhrases(int index) return phrases_.get(index); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -938,6 +1032,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB public static final int BOOST_FIELD_NUMBER = 4; private float boost_ = 0F; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -951,6 +1047,7 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -959,6 +1056,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -970,8 +1068,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_); } @@ -994,12 +1091,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1009,20 +1104,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1041,104 +1134,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) + getUnknownFields().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.
@@ -1146,33 +1245,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1190,9 +1288,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
@@ -1211,9 +1309,12 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1244,38 +1345,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.PhraseSet result) {
     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;
@@ -1307,9 +1409,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            phrasesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPhrasesFieldBuilder() : null;
+            phrasesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPhrasesFieldBuilder()
+                    : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -1344,35 +1447,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.parser(),
-                      extensionRegistry);
-              if (phrasesBuilder_ == null) {
-                ensurePhrasesIsMutable();
-                phrases_.add(m);
-              } else {
-                phrasesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            case 37: {
-              boost_ = input.readFloat();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 37
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.parser(),
+                        extensionRegistry);
+                if (phrasesBuilder_ == null) {
+                  ensurePhrasesIsMutable();
+                  phrases_.add(m);
+                } else {
+                  phrasesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            case 37:
+              {
+                boost_ = input.readFloat();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 37
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1382,22 +1489,25 @@ public Builder mergeFrom(
       } // finally
       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; @@ -1406,20 +1516,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 { @@ -1427,28 +1538,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1458,17 +1576,21 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1477,18 +1599,25 @@ public Builder setNameBytes( } private java.util.List phrases_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - phrases_ = new java.util.ArrayList(phrases_); + phrases_ = + new java.util.ArrayList(phrases_); bitField0_ |= 0x00000002; - } + } } 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.
      * 
@@ -1503,6 +1632,8 @@ public java.util.List getPhr } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1517,6 +1648,8 @@ public int getPhrasesCount() { } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1531,14 +1664,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(); @@ -1552,6 +1686,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1570,6 +1706,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1590,14 +1728,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(); @@ -1611,6 +1750,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1629,6 +1770,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1647,6 +1790,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1657,8 +1802,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); @@ -1666,6 +1810,8 @@ public Builder addAllPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1683,6 +1829,8 @@ public Builder clearPhrases() { return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1700,17 +1848,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.
      * 
@@ -1720,19 +1871,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 { @@ -1740,6 +1894,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1747,49 +1903,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_ & 0x00000002) != 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_ & 0x00000002) != 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
@@ -1803,6 +1968,7 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuil
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -1810,6 +1976,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
@@ -1823,17 +1991,20 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000004; 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
@@ -1847,6 +2018,7 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { @@ -1855,9 +2027,9 @@ public Builder clearBoost() { 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); } @@ -1867,12 +2039,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(); } @@ -1881,27 +2053,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1916,6 +2088,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java similarity index 74% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java index a61fb229f984..91b548072ad2 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java similarity index 73% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java index 817d05c5e700..651bcd221d10 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java +++ b/java-speech/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,52 +30,56 @@
  *
  * 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;
   }
-  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;
     }
@@ -74,25 +95,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
@@ -100,6 +126,7 @@ public int getNumber() {
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ @java.lang.Override @@ -107,6 +134,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
@@ -114,6 +143,7 @@ public boolean hasContent() {
    * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -126,6 +156,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).
@@ -137,12 +169,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).
@@ -154,6 +189,7 @@ public boolean hasUri() {
    * 
* * string uri = 2; + * * @return The uri. */ public java.lang.String getUri() { @@ -164,8 +200,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; @@ -174,6 +209,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).
@@ -185,18 +222,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; } @@ -207,6 +243,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,11 +255,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_); @@ -237,9 +272,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_); @@ -252,22 +287,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: @@ -301,96 +335,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
@@ -400,33 +441,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -437,9 +477,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
@@ -458,8 +498,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v1p1beta1.RecognitionAudio result =
+          new com.google.cloud.speech.v1p1beta1.RecognitionAudio(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -478,38 +521,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v1p1beta1.RecognitionAud
     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;
@@ -517,21 +561,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.getUnknownFields());
       onChanged();
@@ -559,23 +607,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              audioSource_ = input.readBytes();
-              audioSourceCase_ = 1;
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              audioSourceCase_ = 2;
-              audioSource_ = s;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                audioSource_ = input.readBytes();
+                audioSourceCase_ = 1;
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                audioSourceCase_ = 2;
+                audioSource_ = s;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -585,12 +636,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -603,6 +654,8 @@ public Builder clearAudioSource() {
     private int bitField0_;
 
     /**
+     *
+     *
      * 
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -610,12 +663,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
@@ -623,6 +679,7 @@ public boolean hasContent() {
      * 
* * bytes content = 1; + * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -632,6 +689,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
@@ -639,17 +698,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(); } + if (value == null) { + 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
@@ -657,6 +721,7 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -669,6 +734,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).
@@ -680,6 +747,7 @@ public Builder clearContent() {
      * 
* * string uri = 2; + * * @return Whether the uri field is set. */ @java.lang.Override @@ -687,6 +755,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).
@@ -698,6 +768,7 @@ public boolean hasUri() {
      * 
* * string uri = 2; + * * @return The uri. */ @java.lang.Override @@ -707,8 +778,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; @@ -719,6 +789,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).
@@ -730,19 +802,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; } @@ -752,6 +823,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).
@@ -763,18 +836,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUri(java.lang.String value) { + if (value == null) { + 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).
@@ -786,6 +863,7 @@ public Builder setUri(
      * 
* * string uri = 2; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -797,6 +875,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).
@@ -808,21 +888,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + 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); } @@ -832,12 +914,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(); } @@ -846,27 +928,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -881,6 +963,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionAudio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java similarity index 79% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java index 6127a94e206c..37850c3d9f62 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java similarity index 82% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java index 8f11f30e7c05..88f75ac38043 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java +++ b/java-speech/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,30 +48,33 @@ 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;
   }
-  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
@@ -79,9 +100,10 @@ protected java.lang.Object newInstance(
    *
    * 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.
      * 
@@ -90,6 +112,8 @@ public enum AudioEncoding */ ENCODING_UNSPECIFIED(0), /** + * + * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -98,6 +122,8 @@ public enum AudioEncoding */ LINEAR16(1), /** + * + * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -111,6 +137,8 @@ public enum AudioEncoding
      */
     FLAC(2),
     /**
+     *
+     *
      * 
      * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
      * 
@@ -119,6 +147,8 @@ public enum AudioEncoding */ MULAW(3), /** + * + * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -127,6 +157,8 @@ public enum AudioEncoding */ AMR(4), /** + * + * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -135,6 +167,8 @@ public enum AudioEncoding */ AMR_WB(5), /** + * + * *
      * Opus encoded audio frames in Ogg container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)).
@@ -145,6 +179,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
@@ -165,6 +201,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
@@ -176,6 +214,8 @@ public enum AudioEncoding
      */
     MP3(8),
     /**
+     *
+     *
      * 
      * Opus encoded audio frames in WebM container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be
@@ -189,6 +229,8 @@ public enum AudioEncoding
     ;
 
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -197,6 +239,8 @@ public enum AudioEncoding */ public static final int ENCODING_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -205,6 +249,8 @@ public enum AudioEncoding */ public static final int LINEAR16_VALUE = 1; /** + * + * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -218,6 +264,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.
      * 
@@ -226,6 +274,8 @@ public enum AudioEncoding */ public static final int MULAW_VALUE = 3; /** + * + * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -234,6 +284,8 @@ public enum AudioEncoding */ public static final int AMR_VALUE = 4; /** + * + * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -242,6 +294,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)).
@@ -252,6 +306,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
@@ -272,6 +328,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
@@ -283,6 +341,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
@@ -293,7 +353,6 @@ public enum AudioEncoding
      */
     public static final int WEBM_OPUS_VALUE = 9;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -318,56 +377,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;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+        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() {
       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;
@@ -387,6 +455,8 @@ private AudioEncoding(int value) {
   public static final int ENCODING_FIELD_NUMBER = 1;
   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
@@ -394,12 +464,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
@@ -407,16 +481,23 @@ 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() { - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.forNumber(encoding_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding() { + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.forNumber(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_ = 0; /** + * + * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -428,6 +509,7 @@ private AudioEncoding(int value) {
    * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -438,6 +520,8 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 7; private int audioChannelCount_ = 0; /** + * + * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -450,6 +534,7 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ @java.lang.Override @@ -460,6 +545,8 @@ public int getAudioChannelCount() { public static final int ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER = 12; private boolean enableSeparateRecognitionPerChannel_ = false; /** + * + * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -470,6 +557,7 @@ public int getAudioChannelCount() {
    * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -478,9 +566,12 @@ public boolean getEnableSeparateRecognitionPerChannel() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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.
@@ -491,6 +582,7 @@ public boolean getEnableSeparateRecognitionPerChannel() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ @java.lang.Override @@ -499,14 +591,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.
@@ -517,16 +610,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 { @@ -535,9 +627,12 @@ public java.lang.String getLanguageCode() { } public static final int ALTERNATIVE_LANGUAGE_CODES_FIELD_NUMBER = 18; + @SuppressWarnings("serial") 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,
@@ -554,13 +649,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,
@@ -577,12 +674,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,
@@ -599,6 +699,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. */ @@ -606,6 +707,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,
@@ -622,17 +725,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_ = 0; /** + * + * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -643,6 +748,7 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
    * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ @java.lang.Override @@ -653,6 +759,8 @@ public int getMaxAlternatives() { public static final int PROFANITY_FILTER_FIELD_NUMBER = 5; private boolean profanityFilter_ = false; /** + * + * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -661,6 +769,7 @@ public int getMaxAlternatives() {
    * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ @java.lang.Override @@ -671,6 +780,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
@@ -680,6 +791,7 @@ public boolean getProfanityFilter() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -687,6 +799,8 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -696,13 +810,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
@@ -715,12 +834,16 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation getAdaptation() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptationOrBuilder() {
-    return adaptation_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance() : adaptation_;
+    return adaptation_ == null
+        ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance()
+        : adaptation_;
   }
 
   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
@@ -728,7 +851,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 @@ -736,6 +861,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
@@ -743,14 +870,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
@@ -758,17 +891,24 @@ 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() { - return transcriptNormalization_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance() : transcriptNormalization_; + public com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder + getTranscriptNormalizationOrBuilder() { + return transcriptNormalization_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance() + : transcriptNormalization_; } public static final int SPEECH_CONTEXTS_FIELD_NUMBER = 6; + @SuppressWarnings("serial") 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
@@ -784,6 +924,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
@@ -795,11 +937,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
@@ -815,6 +959,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
@@ -830,6 +976,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
@@ -849,6 +997,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
   public static final int ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER = 8;
   private boolean enableWordTimeOffsets_ = false;
   /**
+   *
+   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -857,6 +1007,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
    * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -867,6 +1018,8 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 15; private boolean enableWordConfidence_ = false; /** + * + * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -874,6 +1027,7 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -884,6 +1038,8 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 11; private boolean enableAutomaticPunctuation_ = false; /** + * + * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -892,6 +1048,7 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -902,6 +1059,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
@@ -913,6 +1072,7 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ @java.lang.Override @@ -920,6 +1080,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
@@ -931,13 +1093,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
@@ -952,12 +1119,16 @@ public com.google.protobuf.BoolValue getEnableSpokenPunctuation() {
    */
   @java.lang.Override
   public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilder() {
-    return enableSpokenPunctuation_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenPunctuation_;
+    return enableSpokenPunctuation_ == null
+        ? com.google.protobuf.BoolValue.getDefaultInstance()
+        : enableSpokenPunctuation_;
   }
 
   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
@@ -967,6 +1138,7 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ @java.lang.Override @@ -974,6 +1146,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
@@ -983,13 +1157,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
@@ -1002,12 +1181,16 @@ public com.google.protobuf.BoolValue getEnableSpokenEmojis() {
    */
   @java.lang.Override
   public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
-    return enableSpokenEmojis_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenEmojis_;
+    return enableSpokenEmojis_ == null
+        ? com.google.protobuf.BoolValue.getDefaultInstance()
+        : enableSpokenEmojis_;
   }
 
   public static final int ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER = 16;
   private boolean enableSpeakerDiarization_ = false;
   /**
+   *
+   *
    * 
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -1016,18 +1199,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=377 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=377 * @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_ = 0; /** + * + * *
    * If set, specifies the estimated number of speakers in the conversation.
    * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -1035,18 +1222,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=382 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=382 * @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.
@@ -1059,6 +1250,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 @@ -1066,6 +1258,8 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1078,13 +1272,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.
@@ -1099,18 +1298,24 @@ 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() {
-    return diarizationConfig_ == null ? com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_;
+  public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder
+      getDiarizationConfigOrBuilder() {
+    return diarizationConfig_ == null
+        ? com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance()
+        : diarizationConfig_;
   }
 
   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 @@ -1118,18 +1323,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.
    * 
@@ -1138,13 +1350,18 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata getMetadata() { */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() + : metadata_; } public static final int MODEL_FIELD_NUMBER = 13; + @SuppressWarnings("serial") 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
@@ -1200,6 +1417,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat
    * 
* * string model = 13; + * * @return The model. */ @java.lang.Override @@ -1208,14 +1426,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
@@ -1271,16 +1490,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 { @@ -1291,6 +1509,8 @@ public java.lang.String getModel() { public static final int USE_ENHANCED_FIELD_NUMBER = 14; private boolean useEnhanced_ = false; /** + * + * *
    * 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
@@ -1302,6 +1522,7 @@ public java.lang.String getModel() {
    * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ @java.lang.Override @@ -1310,6 +1531,7 @@ public boolean getUseEnhanced() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1321,9 +1543,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) { @@ -1372,7 +1595,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()); @@ -1398,67 +1622,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; @@ -1469,24 +1684,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1496,74 +1710,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1582,8 +1778,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) { @@ -1593,8 +1790,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(); @@ -1608,14 +1804,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(); @@ -1625,8 +1818,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()) { @@ -1640,104 +1832,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) + getUnknownFields().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.
@@ -1745,33 +1943,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1833,9 +2030,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
@@ -1854,14 +2051,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.RecognitionConfig result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v1p1beta1.RecognitionConfig result) {
       if (((bitField0_ & 0x00000020) != 0)) {
         alternativeLanguageCodes_ = alternativeLanguageCodes_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000020);
@@ -1902,14 +2103,13 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognitionConfig r
         result.profanityFilter_ = profanityFilter_;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.adaptation_ = adaptationBuilder_ == null
-            ? adaptation_
-            : adaptationBuilder_.build();
+        result.adaptation_ = adaptationBuilder_ == null ? adaptation_ : adaptationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.transcriptNormalization_ = transcriptNormalizationBuilder_ == null
-            ? transcriptNormalization_
-            : transcriptNormalizationBuilder_.build();
+        result.transcriptNormalization_ =
+            transcriptNormalizationBuilder_ == null
+                ? transcriptNormalization_
+                : transcriptNormalizationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
         result.enableWordTimeOffsets_ = enableWordTimeOffsets_;
@@ -1921,14 +2121,16 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognitionConfig r
         result.enableAutomaticPunctuation_ = enableAutomaticPunctuation_;
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.enableSpokenPunctuation_ = enableSpokenPunctuationBuilder_ == null
-            ? enableSpokenPunctuation_
-            : enableSpokenPunctuationBuilder_.build();
+        result.enableSpokenPunctuation_ =
+            enableSpokenPunctuationBuilder_ == null
+                ? enableSpokenPunctuation_
+                : enableSpokenPunctuationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.enableSpokenEmojis_ = enableSpokenEmojisBuilder_ == null
-            ? enableSpokenEmojis_
-            : enableSpokenEmojisBuilder_.build();
+        result.enableSpokenEmojis_ =
+            enableSpokenEmojisBuilder_ == null
+                ? enableSpokenEmojis_
+                : enableSpokenEmojisBuilder_.build();
       }
       if (((from_bitField0_ & 0x00010000) != 0)) {
         result.enableSpeakerDiarization_ = enableSpeakerDiarization_;
@@ -1937,14 +2139,13 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognitionConfig r
         result.diarizationSpeakerCount_ = diarizationSpeakerCount_;
       }
       if (((from_bitField0_ & 0x00040000) != 0)) {
-        result.diarizationConfig_ = diarizationConfigBuilder_ == null
-            ? diarizationConfig_
-            : diarizationConfigBuilder_.build();
+        result.diarizationConfig_ =
+            diarizationConfigBuilder_ == null
+                ? diarizationConfig_
+                : diarizationConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00080000) != 0)) {
-        result.metadata_ = metadataBuilder_ == null
-            ? metadata_
-            : metadataBuilder_.build();
+        result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
       }
       if (((from_bitField0_ & 0x00100000) != 0)) {
         result.model_ = model_;
@@ -1958,38 +2159,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognitionConfig r
     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;
@@ -1997,7 +2199,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());
       }
@@ -2055,9 +2258,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognitionConfig oth
             speechContextsBuilder_ = null;
             speechContexts_ = other.speechContexts_;
             bitField0_ = (bitField0_ & ~0x00000400);
-            speechContextsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSpeechContextsFieldBuilder() : null;
+            speechContextsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSpeechContextsFieldBuilder()
+                    : null;
           } else {
             speechContextsBuilder_.addAllMessages(other.speechContexts_);
           }
@@ -2124,143 +2328,158 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              encoding_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 16: {
-              sampleRateHertz_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              languageCode_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 26
-            case 32: {
-              maxAlternatives_ = input.readInt32();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 32
-            case 40: {
-              profanityFilter_ = input.readBool();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 40
-            case 50: {
-              com.google.cloud.speech.v1p1beta1.SpeechContext m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.SpeechContext.parser(),
-                      extensionRegistry);
-              if (speechContextsBuilder_ == null) {
-                ensureSpeechContextsIsMutable();
-                speechContexts_.add(m);
-              } else {
-                speechContextsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 50
-            case 56: {
-              audioChannelCount_ = input.readInt32();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 56
-            case 64: {
-              enableWordTimeOffsets_ = input.readBool();
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 64
-            case 74: {
-              input.readMessage(
-                  getMetadataFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00080000;
-              break;
-            } // case 74
-            case 88: {
-              enableAutomaticPunctuation_ = input.readBool();
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 88
-            case 96: {
-              enableSeparateRecognitionPerChannel_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 96
-            case 106: {
-              model_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00100000;
-              break;
-            } // case 106
-            case 112: {
-              useEnhanced_ = input.readBool();
-              bitField0_ |= 0x00200000;
-              break;
-            } // case 112
-            case 120: {
-              enableWordConfidence_ = input.readBool();
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 120
-            case 128: {
-              enableSpeakerDiarization_ = input.readBool();
-              bitField0_ |= 0x00010000;
-              break;
-            } // case 128
-            case 136: {
-              diarizationSpeakerCount_ = input.readInt32();
-              bitField0_ |= 0x00020000;
-              break;
-            } // case 136
-            case 146: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureAlternativeLanguageCodesIsMutable();
-              alternativeLanguageCodes_.add(s);
-              break;
-            } // case 146
-            case 154: {
-              input.readMessage(
-                  getDiarizationConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00040000;
-              break;
-            } // case 154
-            case 162: {
-              input.readMessage(
-                  getAdaptationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 162
-            case 178: {
-              input.readMessage(
-                  getEnableSpokenPunctuationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00004000;
-              break;
-            } // case 178
-            case 186: {
-              input.readMessage(
-                  getEnableSpokenEmojisFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00008000;
-              break;
-            } // case 186
-            case 194: {
-              input.readMessage(
-                  getTranscriptNormalizationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 194
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                encoding_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 16:
+              {
+                sampleRateHertz_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                languageCode_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 26
+            case 32:
+              {
+                maxAlternatives_ = input.readInt32();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 32
+            case 40:
+              {
+                profanityFilter_ = input.readBool();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 40
+            case 50:
+              {
+                com.google.cloud.speech.v1p1beta1.SpeechContext m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1p1beta1.SpeechContext.parser(),
+                        extensionRegistry);
+                if (speechContextsBuilder_ == null) {
+                  ensureSpeechContextsIsMutable();
+                  speechContexts_.add(m);
+                } else {
+                  speechContextsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 50
+            case 56:
+              {
+                audioChannelCount_ = input.readInt32();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 56
+            case 64:
+              {
+                enableWordTimeOffsets_ = input.readBool();
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 64
+            case 74:
+              {
+                input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00080000;
+                break;
+              } // case 74
+            case 88:
+              {
+                enableAutomaticPunctuation_ = input.readBool();
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 88
+            case 96:
+              {
+                enableSeparateRecognitionPerChannel_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 96
+            case 106:
+              {
+                model_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00100000;
+                break;
+              } // case 106
+            case 112:
+              {
+                useEnhanced_ = input.readBool();
+                bitField0_ |= 0x00200000;
+                break;
+              } // case 112
+            case 120:
+              {
+                enableWordConfidence_ = input.readBool();
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 120
+            case 128:
+              {
+                enableSpeakerDiarization_ = input.readBool();
+                bitField0_ |= 0x00010000;
+                break;
+              } // case 128
+            case 136:
+              {
+                diarizationSpeakerCount_ = input.readInt32();
+                bitField0_ |= 0x00020000;
+                break;
+              } // case 136
+            case 146:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureAlternativeLanguageCodesIsMutable();
+                alternativeLanguageCodes_.add(s);
+                break;
+              } // case 146
+            case 154:
+              {
+                input.readMessage(
+                    getDiarizationConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00040000;
+                break;
+              } // case 154
+            case 162:
+              {
+                input.readMessage(getAdaptationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 162
+            case 178:
+              {
+                input.readMessage(
+                    getEnableSpokenPunctuationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00004000;
+                break;
+              } // case 178
+            case 186:
+              {
+                input.readMessage(
+                    getEnableSpokenEmojisFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00008000;
+                break;
+              } // case 186
+            case 194:
+              {
+                input.readMessage(
+                    getTranscriptNormalizationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 194
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2270,10 +2489,13 @@ public Builder mergeFrom(
       } // finally
       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
@@ -2281,12 +2503,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
@@ -2294,6 +2520,7 @@ 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. */ @@ -2304,6 +2531,8 @@ public Builder setEncodingValue(int value) { return this; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2311,14 +2540,20 @@ 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() { - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.forNumber(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.forNumber(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
@@ -2326,10 +2561,12 @@ 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(); } @@ -2339,6 +2576,8 @@ public Builder setEncoding(com.google.cloud.speech.v1p1beta1.RecognitionConfig.A return this; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2346,6 +2585,7 @@ 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() { @@ -2355,8 +2595,10 @@ public Builder clearEncoding() { 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.
@@ -2368,6 +2610,7 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -2375,6 +2618,8 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2386,17 +2631,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2408,6 +2656,7 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; + * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { @@ -2417,8 +2666,10 @@ public Builder clearSampleRateHertz() { return this; } - private int audioChannelCount_ ; + private int audioChannelCount_; /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2431,6 +2682,7 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ @java.lang.Override @@ -2438,6 +2690,8 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2450,17 +2704,20 @@ 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2473,6 +2730,7 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 7; + * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { @@ -2482,8 +2740,10 @@ public Builder clearAudioChannelCount() { 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
@@ -2494,6 +2754,7 @@ public Builder clearAudioChannelCount() {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -2501,6 +2762,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
@@ -2511,17 +2774,20 @@ 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; bitField0_ |= 0x00000008; 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
@@ -2532,6 +2798,7 @@ public Builder setEnableSeparateRecognitionPerChannel(boolean value) {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return This builder for chaining. */ public Builder clearEnableSeparateRecognitionPerChannel() { @@ -2543,6 +2810,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.
@@ -2553,13 +2822,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; @@ -2568,6 +2837,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.
@@ -2578,15 +2849,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 { @@ -2594,6 +2864,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.
@@ -2604,18 +2876,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000010; 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.
@@ -2626,6 +2902,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -2635,6 +2912,8 @@ public Builder clearLanguageCode() { return this; } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2645,12 +2924,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000010; @@ -2658,14 +2939,19 @@ public Builder setLanguageCodeBytes( 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_ & 0x00000020) != 0)) { - alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); + alternativeLanguageCodes_ = + new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); bitField0_ |= 0x00000020; - } + } } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2682,13 +2968,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,
@@ -2705,12 +2993,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,
@@ -2727,6 +3018,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. */ @@ -2734,6 +3026,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,
@@ -2750,14 +3044,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,
@@ -2774,19 +3070,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setAlternativeLanguageCodes(int index, java.lang.String value) { + if (value == null) { + 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,
@@ -2803,18 +3103,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) { - if (value == null) { throw new NullPointerException(); } + public Builder addAlternativeLanguageCodes(java.lang.String value) { + if (value == null) { + 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,
@@ -2831,18 +3135,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,
@@ -2859,6 +3164,7 @@ public Builder addAllAlternativeLanguageCodes(
      * 
* * repeated string alternative_language_codes = 18; + * * @return This builder for chaining. */ public Builder clearAlternativeLanguageCodes() { @@ -2868,6 +3174,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,
@@ -2884,12 +3192,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); @@ -2897,8 +3207,10 @@ public Builder addAlternativeLanguageCodesBytes( return this; } - private int maxAlternatives_ ; + private int maxAlternatives_; /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2909,6 +3221,7 @@ public Builder addAlternativeLanguageCodesBytes(
      * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ @java.lang.Override @@ -2916,6 +3229,8 @@ public int getMaxAlternatives() { return maxAlternatives_; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2926,17 +3241,20 @@ 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2947,6 +3265,7 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 4; + * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { @@ -2956,8 +3275,10 @@ public Builder clearMaxAlternatives() { 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
@@ -2966,6 +3287,7 @@ public Builder clearMaxAlternatives() {
      * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ @java.lang.Override @@ -2973,6 +3295,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
@@ -2981,17 +3305,20 @@ 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; bitField0_ |= 0x00000080; 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
@@ -3000,6 +3327,7 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 5; + * * @return This builder for chaining. */ public Builder clearProfanityFilter() { @@ -3011,8 +3339,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
@@ -3022,12 +3355,15 @@ public Builder clearProfanityFilter() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3037,16 +3373,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
@@ -3071,6 +3412,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
@@ -3093,6 +3436,8 @@ public Builder setAdaptation(
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3105,9 +3450,10 @@ public Builder setAdaptation(
      */
     public Builder mergeAdaptation(com.google.cloud.speech.v1p1beta1.SpeechAdaptation value) {
       if (adaptationBuilder_ == null) {
-        if (((bitField0_ & 0x00000100) != 0) &&
-          adaptation_ != null &&
-          adaptation_ != com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000100) != 0)
+            && adaptation_ != null
+            && adaptation_
+                != com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance()) {
           getAdaptationBuilder().mergeFrom(value);
         } else {
           adaptation_ = value;
@@ -3120,6 +3466,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
@@ -3141,6 +3489,8 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3157,6 +3507,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder getAdaptationB
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3171,11 +3523,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
@@ -3187,14 +3542,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_;
@@ -3202,8 +3560,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
@@ -3211,13 +3574,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 ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3225,17 +3592,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
@@ -3243,9 +3616,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(); @@ -3259,6 +3634,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
@@ -3266,7 +3643,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) { @@ -3280,6 +3658,8 @@ public Builder setTranscriptNormalization( return this; } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3287,13 +3667,16 @@ 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 (((bitField0_ & 0x00000200) != 0) && - transcriptNormalization_ != null && - transcriptNormalization_ != com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && transcriptNormalization_ != null + && transcriptNormalization_ + != com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance()) { getTranscriptNormalizationBuilder().mergeFrom(value); } else { transcriptNormalization_ = value; @@ -3306,6 +3689,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
@@ -3313,7 +3698,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() { bitField0_ = (bitField0_ & ~0x00000200); @@ -3326,6 +3712,8 @@ public Builder clearTranscriptNormalization() { return this; } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3333,14 +3721,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() { bitField0_ |= 0x00000200; onChanged(); return getTranscriptNormalizationFieldBuilder().getBuilder(); } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3348,17 +3740,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
@@ -3366,35 +3763,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_ & 0x00000400) != 0)) { - speechContexts_ = new java.util.ArrayList(speechContexts_); + speechContexts_ = + new java.util.ArrayList( + speechContexts_); bitField0_ |= 0x00000400; - } + } } 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
@@ -3413,6 +3822,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
@@ -3431,6 +3842,8 @@ public int getSpeechContextsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3449,6 +3862,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
@@ -3474,6 +3889,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
@@ -3496,6 +3913,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
@@ -3520,6 +3939,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
@@ -3545,6 +3966,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
@@ -3567,6 +3990,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
@@ -3589,6 +4014,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
@@ -3603,8 +4030,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);
@@ -3612,6 +4038,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
@@ -3633,6 +4061,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
@@ -3654,6 +4084,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
@@ -3669,6 +4101,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
@@ -3682,11 +4116,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
@@ -3697,8 +4134,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 {
@@ -3706,6 +4143,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
@@ -3717,10 +4156,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
@@ -3733,10 +4174,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
@@ -3747,16 +4190,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_ & 0x00000400) != 0),
                 getParentForChildren(),
@@ -3766,8 +4215,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
@@ -3776,6 +4227,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContexts
      * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -3783,6 +4235,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
@@ -3791,17 +4245,20 @@ 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; bitField0_ |= 0x00000800; 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
@@ -3810,6 +4267,7 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 8; + * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { @@ -3819,8 +4277,10 @@ public Builder clearEnableWordTimeOffsets() { 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
@@ -3828,6 +4288,7 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -3835,6 +4296,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
@@ -3842,17 +4305,20 @@ 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; bitField0_ |= 0x00001000; 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
@@ -3860,6 +4326,7 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 15; + * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { @@ -3869,8 +4336,10 @@ public Builder clearEnableWordConfidence() { 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
@@ -3879,6 +4348,7 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -3886,6 +4356,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
@@ -3894,17 +4366,20 @@ 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; bitField0_ |= 0x00002000; onChanged(); return this; } /** + * + * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3913,6 +4388,7 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 11; + * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { @@ -3924,8 +4400,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
@@ -3937,12 +4418,15 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ public boolean hasEnableSpokenPunctuation() { return ((bitField0_ & 0x00004000) != 0); } /** + * + * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3954,16 +4438,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
@@ -3990,6 +4479,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
@@ -4014,6 +4505,8 @@ public Builder setEnableSpokenPunctuation(
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4028,9 +4521,9 @@ public Builder setEnableSpokenPunctuation(
      */
     public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value) {
       if (enableSpokenPunctuationBuilder_ == null) {
-        if (((bitField0_ & 0x00004000) != 0) &&
-          enableSpokenPunctuation_ != null &&
-          enableSpokenPunctuation_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
+        if (((bitField0_ & 0x00004000) != 0)
+            && enableSpokenPunctuation_ != null
+            && enableSpokenPunctuation_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
           getEnableSpokenPunctuationBuilder().mergeFrom(value);
         } else {
           enableSpokenPunctuation_ = value;
@@ -4043,6 +4536,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
@@ -4066,6 +4561,8 @@ public Builder clearEnableSpokenPunctuation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4084,6 +4581,8 @@ public com.google.protobuf.BoolValue.Builder getEnableSpokenPunctuationBuilder()
       return getEnableSpokenPunctuationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4100,11 +4599,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
@@ -4118,14 +4620,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_;
@@ -4133,8 +4638,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
@@ -4144,12 +4654,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 ((bitField0_ & 0x00008000) != 0); } /** + * + * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4159,16 +4672,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
@@ -4193,6 +4711,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
@@ -4203,8 +4723,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();
       } else {
@@ -4215,6 +4734,8 @@ public Builder setEnableSpokenEmojis(
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4227,9 +4748,9 @@ public Builder setEnableSpokenEmojis(
      */
     public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       if (enableSpokenEmojisBuilder_ == null) {
-        if (((bitField0_ & 0x00008000) != 0) &&
-          enableSpokenEmojis_ != null &&
-          enableSpokenEmojis_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
+        if (((bitField0_ & 0x00008000) != 0)
+            && enableSpokenEmojis_ != null
+            && enableSpokenEmojis_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
           getEnableSpokenEmojisBuilder().mergeFrom(value);
         } else {
           enableSpokenEmojis_ = value;
@@ -4242,6 +4763,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
@@ -4263,6 +4786,8 @@ public Builder clearEnableSpokenEmojis() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4279,6 +4804,8 @@ public com.google.protobuf.BoolValue.Builder getEnableSpokenEmojisBuilder() {
       return getEnableSpokenEmojisFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4293,11 +4820,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
@@ -4309,21 +4839,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
@@ -4332,15 +4867,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=377 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=377 * @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
@@ -4349,19 +4888,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=377 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=377 * @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; bitField0_ |= 0x00010000; 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
@@ -4370,19 +4913,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=377 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=377 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearEnableSpeakerDiarization() { + @java.lang.Deprecated + public Builder clearEnableSpeakerDiarization() { bitField0_ = (bitField0_ & ~0x00010000); 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.
@@ -4390,15 +4937,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=382 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=382 * @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.
@@ -4406,19 +4957,23 @@ 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=382 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=382 * @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; bitField0_ |= 0x00020000; 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.
@@ -4426,11 +4981,13 @@ 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=382 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=382 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearDiarizationSpeakerCount() { + @java.lang.Deprecated + public Builder clearDiarizationSpeakerCount() { bitField0_ = (bitField0_ & ~0x00020000); diarizationSpeakerCount_ = 0; onChanged(); @@ -4439,8 +4996,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.
@@ -4453,12 +5015,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 ((bitField0_ & 0x00040000) != 0); } /** + * + * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4471,16 +5036,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.
@@ -4494,7 +5064,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();
@@ -4508,6 +5079,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.
@@ -4533,6 +5106,8 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4546,11 +5121,14 @@ 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 (((bitField0_ & 0x00040000) != 0) &&
-          diarizationConfig_ != null &&
-          diarizationConfig_ != com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00040000) != 0)
+            && diarizationConfig_ != null
+            && diarizationConfig_
+                != com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig
+                    .getDefaultInstance()) {
           getDiarizationConfigBuilder().mergeFrom(value);
         } else {
           diarizationConfig_ = value;
@@ -4563,6 +5141,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.
@@ -4587,6 +5167,8 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4600,12 +5182,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() {
       bitField0_ |= 0x00040000;
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4619,15 +5204,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.
@@ -4642,14 +5231,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_;
@@ -4657,34 +5249,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 ((bitField0_ & 0x00080000) != 0); } /** + * + * *
      * 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.
      * 
@@ -4705,6 +5310,8 @@ public Builder setMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetadata return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4723,6 +5330,8 @@ public Builder setMetadata( return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4731,9 +5340,10 @@ public Builder setMetadata( */ public Builder mergeMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetadata value) { if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) && - metadata_ != null && - metadata_ != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00080000) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; @@ -4746,6 +5356,8 @@ public Builder mergeMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetada return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4763,6 +5375,8 @@ public Builder clearMetadata() { return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4775,6 +5389,8 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder getMetadata return getMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4785,11 +5401,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.
      * 
@@ -4797,14 +5416,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_; @@ -4812,6 +5434,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
@@ -4867,13 +5491,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; @@ -4882,6 +5506,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
@@ -4937,15 +5563,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 { @@ -4953,6 +5578,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
@@ -5008,18 +5635,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00100000; 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
@@ -5075,6 +5706,7 @@ public Builder setModel(
      * 
* * string model = 13; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -5084,6 +5716,8 @@ public Builder clearModel() { 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
@@ -5139,12 +5773,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00100000; @@ -5152,8 +5788,10 @@ public Builder setModelBytes( 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
@@ -5165,6 +5803,7 @@ public Builder setModelBytes(
      * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ @java.lang.Override @@ -5172,6 +5811,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
@@ -5183,17 +5824,20 @@ 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; bitField0_ |= 0x00200000; 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
@@ -5205,6 +5849,7 @@ public Builder setUseEnhanced(boolean value) {
      * 
* * bool use_enhanced = 14; + * * @return This builder for chaining. */ public Builder clearUseEnhanced() { @@ -5213,9 +5858,9 @@ public Builder clearUseEnhanced() { 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); } @@ -5225,12 +5870,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(); } @@ -5239,27 +5884,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5274,6 +5919,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java similarity index 93% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java index 3662ea486fe6..8511b88f1247 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java +++ b/java-speech/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.
@@ -59,11 +86,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
@@ -74,11 +104,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.
@@ -89,10 +122,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.
@@ -103,12 +139,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,
@@ -125,11 +163,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,
@@ -146,10 +186,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,
@@ -166,11 +209,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,
@@ -187,13 +233,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
@@ -204,11 +252,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
@@ -217,11 +268,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
@@ -231,10 +285,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
@@ -244,10 +301,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
@@ -261,6 +321,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
@@ -268,11 +330,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
@@ -280,11 +346,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
@@ -292,11 +362,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
@@ -307,9 +381,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
@@ -322,6 +397,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
@@ -334,6 +411,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
@@ -344,9 +423,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
@@ -357,10 +438,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
@@ -369,11 +451,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
@@ -381,11 +466,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
@@ -394,11 +482,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
@@ -410,10 +501,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
@@ -425,10 +519,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
@@ -444,6 +541,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
@@ -453,10 +552,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
@@ -466,10 +568,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
@@ -483,6 +588,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
@@ -491,13 +598,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=377 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=377 * @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.
@@ -505,13 +616,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=382 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=382 * @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.
@@ -524,10 +639,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.
@@ -540,10 +658,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.
@@ -557,27 +678,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.
    * 
@@ -587,6 +717,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
@@ -642,10 +774,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
@@ -701,12 +836,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
@@ -718,6 +855,7 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ boolean getUseEnhanced(); diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java similarity index 69% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java index c39ea85770a7..45cd4cf4163a 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java +++ b/java-speech/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,30 +50,33 @@ 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; } - 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.
@@ -62,9 +84,10 @@ protected java.lang.Object newInstance(
    *
    * 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.
@@ -74,6 +97,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
@@ -85,6 +110,8 @@ public enum InteractionType
      */
     DISCUSSION(1),
     /**
+     *
+     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -94,6 +121,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.
@@ -103,6 +132,8 @@ public enum InteractionType
      */
     PHONE_CALL(3),
     /**
+     *
+     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -111,6 +142,8 @@ public enum InteractionType */ VOICEMAIL(4), /** + * + * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -119,6 +152,8 @@ public enum InteractionType */ PROFESSIONALLY_PRODUCED(5), /** + * + * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -127,6 +162,8 @@ public enum InteractionType */ VOICE_SEARCH(6), /** + * + * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -135,6 +172,8 @@ public enum InteractionType */ VOICE_COMMAND(7), /** + * + * *
      * Transcribe speech to text to create a written document, such as a
      * text-message, email or report.
@@ -147,6 +186,8 @@ public enum InteractionType
     ;
 
     /**
+     *
+     *
      * 
      * Use case is either unknown or is something other than one of the other
      * values below.
@@ -156,6 +197,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
@@ -167,6 +210,8 @@ public enum InteractionType
      */
     public static final int DISCUSSION_VALUE = 1;
     /**
+     *
+     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -176,6 +221,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.
@@ -185,6 +232,8 @@ public enum InteractionType
      */
     public static final int PHONE_CALL_VALUE = 3;
     /**
+     *
+     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -193,6 +242,8 @@ public enum InteractionType */ public static final int VOICEMAIL_VALUE = 4; /** + * + * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -201,6 +252,8 @@ public enum InteractionType */ public static final int PROFESSIONALLY_PRODUCED_VALUE = 5; /** + * + * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -209,6 +262,8 @@ public enum InteractionType */ public static final int VOICE_SEARCH_VALUE = 6; /** + * + * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -217,6 +272,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.
@@ -226,7 +283,6 @@ public enum InteractionType
      */
     public static final int DICTATION_VALUE = 8;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -251,46 +307,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();
@@ -298,8 +365,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;
@@ -317,15 +383,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.
      * 
@@ -334,6 +403,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
@@ -344,6 +415,8 @@ public enum MicrophoneDistance
      */
     NEARFIELD(1),
     /**
+     *
+     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -352,6 +425,8 @@ public enum MicrophoneDistance */ MIDFIELD(2), /** + * + * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -363,6 +438,8 @@ public enum MicrophoneDistance ; /** + * + * *
      * Audio type is not known.
      * 
@@ -371,6 +448,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
@@ -381,6 +460,8 @@ public enum MicrophoneDistance
      */
     public static final int NEARFIELD_VALUE = 1;
     /**
+     *
+     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -389,6 +470,8 @@ public enum MicrophoneDistance */ public static final int MIDFIELD_VALUE = 2; /** + * + * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -397,7 +480,6 @@ public enum MicrophoneDistance */ public static final int FARFIELD_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -422,11 +504,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; } } @@ -434,29 +521,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(); @@ -464,8 +553,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; @@ -483,15 +571,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.
      * 
@@ -500,6 +591,8 @@ public enum OriginalMediaType */ ORIGINAL_MEDIA_TYPE_UNSPECIFIED(0), /** + * + * *
      * The speech data is an audio recording.
      * 
@@ -508,6 +601,8 @@ public enum OriginalMediaType */ AUDIO(1), /** + * + * *
      * The speech data originally recorded on a video.
      * 
@@ -519,6 +614,8 @@ public enum OriginalMediaType ; /** + * + * *
      * Unknown original media type.
      * 
@@ -527,6 +624,8 @@ public enum OriginalMediaType */ public static final int ORIGINAL_MEDIA_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The speech data is an audio recording.
      * 
@@ -535,6 +634,8 @@ public enum OriginalMediaType */ public static final int AUDIO_VALUE = 1; /** + * + * *
      * The speech data originally recorded on a video.
      * 
@@ -543,7 +644,6 @@ public enum OriginalMediaType */ public static final int VIDEO_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -568,10 +668,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; } } @@ -579,29 +683,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(); @@ -609,8 +715,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; @@ -628,15 +733,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.
      * 
@@ -645,6 +753,8 @@ public enum RecordingDeviceType */ RECORDING_DEVICE_TYPE_UNSPECIFIED(0), /** + * + * *
      * Speech was recorded on a smartphone.
      * 
@@ -653,6 +763,8 @@ public enum RecordingDeviceType */ SMARTPHONE(1), /** + * + * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -661,6 +773,8 @@ public enum RecordingDeviceType */ PC(2), /** + * + * *
      * Speech was recorded over a phone line.
      * 
@@ -669,6 +783,8 @@ public enum RecordingDeviceType */ PHONE_LINE(3), /** + * + * *
      * Speech was recorded in a vehicle.
      * 
@@ -677,6 +793,8 @@ public enum RecordingDeviceType */ VEHICLE(4), /** + * + * *
      * Speech was recorded outdoors.
      * 
@@ -685,6 +803,8 @@ public enum RecordingDeviceType */ OTHER_OUTDOOR_DEVICE(5), /** + * + * *
      * Speech was recorded indoors.
      * 
@@ -696,6 +816,8 @@ public enum RecordingDeviceType ; /** + * + * *
      * The recording device is unknown.
      * 
@@ -704,6 +826,8 @@ public enum RecordingDeviceType */ public static final int RECORDING_DEVICE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Speech was recorded on a smartphone.
      * 
@@ -712,6 +836,8 @@ public enum RecordingDeviceType */ public static final int SMARTPHONE_VALUE = 1; /** + * + * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -720,6 +846,8 @@ public enum RecordingDeviceType */ public static final int PC_VALUE = 2; /** + * + * *
      * Speech was recorded over a phone line.
      * 
@@ -728,6 +856,8 @@ public enum RecordingDeviceType */ public static final int PHONE_LINE_VALUE = 3; /** + * + * *
      * Speech was recorded in a vehicle.
      * 
@@ -736,6 +866,8 @@ public enum RecordingDeviceType */ public static final int VEHICLE_VALUE = 4; /** + * + * *
      * Speech was recorded outdoors.
      * 
@@ -744,6 +876,8 @@ public enum RecordingDeviceType */ public static final int OTHER_OUTDOOR_DEVICE_VALUE = 5; /** + * + * *
      * Speech was recorded indoors.
      * 
@@ -752,7 +886,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( @@ -777,14 +910,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; } } @@ -792,29 +933,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(); @@ -822,8 +965,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; @@ -843,32 +985,49 @@ private RecordingDeviceType(int value) { public static final int INTERACTION_TYPE_FIELD_NUMBER = 1; 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; + * + * * @return The interactionType. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType getInteractionType() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.forNumber(interactionType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType + getInteractionType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.forNumber( + 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_ = 0; /** + * + * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -877,6 +1036,7 @@ private RecordingDeviceType(int value) {
    * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -887,85 +1047,139 @@ public int getIndustryNaicsCodeOfAudio() { public static final int MICROPHONE_DISTANCE_FIELD_NUMBER = 4; 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; + * + * * @return The microphoneDistance. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.forNumber(microphoneDistance_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance + getMicrophoneDistance() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.forNumber( + 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_ = 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; + * + * * @return The originalMediaType. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.forNumber(originalMediaType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType + getOriginalMediaType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.forNumber( + 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_ = 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; + * + * * @return The recordingDeviceType. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.forNumber(recordingDeviceType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType + getRecordingDeviceType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.forNumber( + recordingDeviceType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED + : result; } public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER = 7; + @SuppressWarnings("serial") 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
@@ -973,6 +1187,7 @@ public int getIndustryNaicsCodeOfAudio() {
    * 
* * string recording_device_name = 7; + * * @return The recordingDeviceName. */ @java.lang.Override @@ -981,14 +1196,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
@@ -996,16 +1212,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 { @@ -1014,9 +1229,12 @@ public java.lang.String getRecordingDeviceName() { } public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER = 8; + @SuppressWarnings("serial") 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`.
@@ -1025,6 +1243,7 @@ public java.lang.String getRecordingDeviceName() {
    * 
* * string original_mime_type = 8; + * * @return The originalMimeType. */ @java.lang.Override @@ -1033,14 +1252,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`.
@@ -1049,16 +1269,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 { @@ -1069,31 +1288,39 @@ public java.lang.String getOriginalMimeType() { public static final int OBFUSCATED_ID_FIELD_NUMBER = 9; private long obfuscatedId_ = 0L; /** + * + * *
    * 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=611 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. See + * google/cloud/speech/v1p1beta1/cloud_speech.proto;l=611 * @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; + @SuppressWarnings("serial") 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 @@ -1102,30 +1329,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 { @@ -1134,6 +1361,7 @@ public java.lang.String getAudioTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1145,21 +1373,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_)) { @@ -1183,25 +1422,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_); @@ -1210,8 +1456,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_); @@ -1224,27 +1469,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1271,8 +1512,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) + getUnknownFields().hashCode(); @@ -1281,129 +1521,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1421,9 +1668,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 @@ -1442,8 +1689,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.RecognitionMetadata result = + new com.google.cloud.speech.v1p1beta1.RecognitionMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1483,38 +1733,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognitionMetadata 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; @@ -1522,7 +1773,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()); } @@ -1582,57 +1834,67 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - interactionType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 24: { - industryNaicsCodeOfAudio_ = input.readUInt32(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 32: { - microphoneDistance_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 40: { - originalMediaType_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 48: { - recordingDeviceType_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 58: { - recordingDeviceName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: { - originalMimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 72: { - obfuscatedId_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 72 - case 82: { - audioTopic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + interactionType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 24: + { + industryNaicsCodeOfAudio_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: + { + microphoneDistance_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: + { + originalMediaType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: + { + recordingDeviceType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: + { + recordingDeviceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + originalMimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 72: + { + obfuscatedId_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 82: + { + audioTopic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1642,26 +1904,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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. */ @@ -1672,28 +1946,44 @@ public Builder setInteractionTypeValue(int value) { 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() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.forNumber(interactionType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType + getInteractionType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.forNumber( + 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(); } @@ -1703,11 +1993,16 @@ public Builder setInteractionType(com.google.cloud.speech.v1p1beta1.RecognitionM 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() { @@ -1717,8 +2012,10 @@ public Builder clearInteractionType() { 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
@@ -1727,6 +2024,7 @@ public Builder clearInteractionType() {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1734,6 +2032,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
@@ -1742,17 +2042,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1761,6 +2064,7 @@ public Builder setIndustryNaicsCodeOfAudio(int value) {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return This builder for chaining. */ public Builder clearIndustryNaicsCodeOfAudio() { @@ -1772,22 +2076,33 @@ 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. */ @@ -1798,28 +2113,44 @@ public Builder setMicrophoneDistanceValue(int value) { 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() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.forNumber(microphoneDistance_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance + getMicrophoneDistance() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.forNumber( + 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(); } @@ -1829,11 +2160,16 @@ public Builder setMicrophoneDistance(com.google.cloud.speech.v1p1beta1.Recogniti 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() { @@ -1845,22 +2181,33 @@ 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. */ @@ -1871,28 +2218,44 @@ public Builder setOriginalMediaTypeValue(int value) { 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() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.forNumber(originalMediaType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType + getOriginalMediaType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.forNumber( + 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(); } @@ -1902,11 +2265,16 @@ public Builder setOriginalMediaType(com.google.cloud.speech.v1p1beta1.Recognitio 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() { @@ -1918,22 +2286,33 @@ 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. */ @@ -1944,28 +2323,44 @@ public Builder setRecordingDeviceTypeValue(int value) { 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() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.forNumber(recordingDeviceType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType + getRecordingDeviceType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.forNumber( + 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(); } @@ -1975,11 +2370,16 @@ public Builder setRecordingDeviceType(com.google.cloud.speech.v1p1beta1.Recognit 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() { @@ -1991,6 +2391,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
@@ -1998,13 +2400,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; @@ -2013,6 +2415,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
@@ -2020,15 +2424,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 { @@ -2036,6 +2439,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,18 +2448,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecordingDeviceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } recordingDeviceName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2062,6 +2471,7 @@ public Builder setRecordingDeviceName(
      * 
* * string recording_device_name = 7; + * * @return This builder for chaining. */ public Builder clearRecordingDeviceName() { @@ -2071,6 +2481,8 @@ public Builder clearRecordingDeviceName() { return this; } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2078,12 +2490,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecordingDeviceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); recordingDeviceName_ = value; bitField0_ |= 0x00000020; @@ -2093,6 +2507,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`.
@@ -2101,13 +2517,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; @@ -2116,6 +2532,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`.
@@ -2124,15 +2542,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 { @@ -2140,6 +2557,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`.
@@ -2148,18 +2567,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setOriginalMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } originalMimeType_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2168,6 +2591,7 @@ public Builder setOriginalMimeType(
      * 
* * string original_mime_type = 8; + * * @return This builder for chaining. */ public Builder clearOriginalMimeType() { @@ -2177,6 +2601,8 @@ public Builder clearOriginalMimeType() { return this; } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2185,12 +2611,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setOriginalMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); originalMimeType_ = value; bitField0_ |= 0x00000040; @@ -2198,53 +2626,65 @@ public Builder setOriginalMimeTypeBytes( 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=611 * @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=611 * @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; bitField0_ |= 0x00000080; 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=611 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearObfuscatedId() { + @java.lang.Deprecated + public Builder clearObfuscatedId() { bitField0_ = (bitField0_ & ~0x00000080); obfuscatedId_ = 0L; onChanged(); @@ -2253,19 +2693,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; @@ -2274,21 +2716,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 { @@ -2296,30 +2739,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setAudioTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } audioTopic_ = value; bitField0_ |= 0x00000100; 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() { @@ -2329,27 +2779,31 @@ public Builder clearAudioTopic() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setAudioTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); audioTopic_ = value; bitField0_ |= 0x00000100; 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); } @@ -2359,12 +2813,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(); } @@ -2373,27 +2827,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2408,6 +2862,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java similarity index 69% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java index 34934518b6b8..592a1fe85d0e 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java +++ b/java-speech/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=611 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. See + * google/cloud/speech/v1p1beta1/cloud_speech.proto;l=611 * @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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java similarity index 59% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java index 72f5a09d10e2..086a278dc2d0 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java @@ -1,61 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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 @@ -63,39 +86,57 @@ 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() { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } 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 @@ -103,30 +144,44 @@ 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() { - return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,8 +193,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()); } @@ -156,12 +210,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -171,22 +223,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -213,129 +264,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -354,9 +411,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 @@ -375,8 +432,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.RecognizeRequest result = + new com.google.cloud.speech.v1p1beta1.RecognizeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -384,14 +444,10 @@ public com.google.cloud.speech.v1p1beta1.RecognizeRequest buildPartial() { private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognizeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.config_ = configBuilder_ == null - ? config_ - : configBuilder_.build(); + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.audio_ = audioBuilder_ == null - ? audio_ - : audioBuilder_.build(); + result.audio_ = audioBuilder_ == null ? audio_ : audioBuilder_.build(); } } @@ -399,38 +455,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognizeRequest re 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; @@ -438,7 +495,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()); } @@ -471,26 +529,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getAudioFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getAudioFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,46 +557,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * 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) { @@ -555,12 +632,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) { @@ -574,18 +655,23 @@ 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 (((bitField0_ & 0x00000001) != 0) && - config_ != null && - config_ != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && config_ != null + && config_ + != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -598,12 +684,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -616,12 +706,16 @@ 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() { bitField0_ |= 0x00000001; @@ -629,38 +723,50 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuil 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_; @@ -668,39 +774,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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) { @@ -716,11 +841,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) { @@ -734,17 +863,21 @@ 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 (((bitField0_ & 0x00000002) != 0) && - audio_ != null && - audio_ != com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && audio_ != null + && audio_ != com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance()) { getAudioBuilder().mergeFrom(value); } else { audio_ = value; @@ -757,11 +890,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -774,11 +911,15 @@ 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() { bitField0_ |= 0x00000002; @@ -786,43 +927,55 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder getAudioBuilde 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); } @@ -832,12 +985,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(); } @@ -846,27 +999,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -881,6 +1034,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java new file mode 100644 index 000000000000..2f3e881fd154 --- /dev/null +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java similarity index 71% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java index 14b944493319..332085672c61 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java +++ b/java-speech/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,48 +29,53 @@
  *
  * 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;
   }
-  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;
+
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -62,10 +84,13 @@ protected java.lang.Object newInstance(
    * 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.
@@ -74,11 +99,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.
@@ -91,6 +119,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -103,6 +133,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.
@@ -119,11 +151,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 @@ -131,18 +166,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.
    * 
@@ -151,17 +193,22 @@ public com.google.protobuf.Duration getTotalBilledTime() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 7; private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_; /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -169,18 +216,25 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } /** + * + * *
    * Provides information on adaptation behavior in response
    * 
@@ -188,19 +242,25 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptatio * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 8; private long requestId_ = 0L; /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 8; + * * @return The requestId. */ @java.lang.Override @@ -209,6 +269,7 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,8 +281,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)); } @@ -244,20 +304,17 @@ 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 (speechAdaptationInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getSpeechAdaptationInfo()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, requestId_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -267,27 +324,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.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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo() - .equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() - != other.getRequestId()) return false; + if (getRequestId() != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -312,104 +366,110 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } 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`
@@ -418,33 +478,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -471,9 +530,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
@@ -492,14 +551,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.RecognizeResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v1p1beta1.RecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -514,14 +577,14 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.Recogn
     private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
-            ? totalBilledTime_
-            : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ =
+            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
-            ? speechAdaptationInfo_
-            : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ =
+            speechAdaptationInfoBuilder_ == null
+                ? speechAdaptationInfo_
+                : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.requestId_ = requestId_;
@@ -532,38 +595,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognizeResponse r
     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;
@@ -571,7 +635,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()) {
@@ -590,9 +655,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_);
           }
@@ -633,44 +699,46 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18: {
-              com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
-                      extensionRegistry);
-              if (resultsBuilder_ == null) {
-                ensureResultsIsMutable();
-                results_.add(m);
-              } else {
-                resultsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getTotalBilledTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 26
-            case 58: {
-              input.readMessage(
-                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 58
-            case 64: {
-              requestId_ = input.readInt64();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 64
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 18:
+              {
+                com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
+                        extensionRegistry);
+                if (resultsBuilder_ == null) {
+                  ensureResultsIsMutable();
+                  results_.add(m);
+                } else {
+                  resultsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+            case 58:
+              {
+                input.readMessage(
+                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 58
+            case 64:
+              {
+                requestId_ = input.readInt64();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 64
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -680,21 +748,30 @@ public Builder mergeFrom(
       } // finally
       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.
@@ -702,7 +779,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 {
@@ -710,6 +788,8 @@ public java.util.List
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -725,6 +805,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -740,6 +822,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -762,6 +846,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -770,7 +856,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());
@@ -781,6 +868,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -802,6 +891,8 @@ public Builder addResults(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRes
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -824,6 +915,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -843,6 +936,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -851,7 +946,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());
@@ -862,6 +958,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -870,11 +968,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);
@@ -882,6 +980,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -900,6 +1000,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -918,6 +1020,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -930,6 +1034,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.
@@ -940,11 +1046,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.
@@ -952,8 +1061,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 {
@@ -961,6 +1071,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -969,10 +1081,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.
@@ -982,10 +1097,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.
@@ -993,20 +1112,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_;
@@ -1014,34 +1136,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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.
      * 
@@ -1062,14 +1197,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(); } else { @@ -1080,6 +1216,8 @@ public Builder setTotalBilledTime( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1088,9 +1226,9 @@ public Builder setTotalBilledTime( */ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - totalBilledTime_ != null && - totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && totalBilledTime_ != null + && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getTotalBilledTimeBuilder().mergeFrom(value); } else { totalBilledTime_ = value; @@ -1103,6 +1241,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1120,6 +1260,8 @@ public Builder clearTotalBilledTime() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1132,6 +1274,8 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { return getTotalBilledTimeFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1142,11 +1286,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.
      * 
@@ -1154,14 +1301,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_; @@ -1169,41 +1319,55 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_; + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> + speechAdaptationInfoBuilder_; /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder setSpeechAdaptationInfo( + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1217,6 +1381,8 @@ public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechA return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1235,17 +1401,21 @@ public Builder setSpeechAdaptationInfo( return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo( + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - speechAdaptationInfo_ != null && - speechAdaptationInfo_ != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && speechAdaptationInfo_ != null + && speechAdaptationInfo_ + != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -1258,6 +1428,8 @@ public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.Speec return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1275,33 +1447,42 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder + getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null ? - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1309,27 +1490,33 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeech * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), - getParentForChildren(), - isClean()); + speechAdaptationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), getParentForChildren(), isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_ ; + private long requestId_; /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; + * * @return The requestId. */ @java.lang.Override @@ -1337,29 +1524,35 @@ public long getRequestId() { return requestId_; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; + * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1368,9 +1561,9 @@ public Builder clearRequestId() { 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); } @@ -1380,12 +1573,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(); } @@ -1394,27 +1587,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1429,6 +1622,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java similarity index 79% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java index 9e93219032fb..e98bffda311b 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java +++ b/java-speech/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.
    * 
@@ -84,39 +116,51 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrB com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder(); /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder(); /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 8; + * * @return The requestId. */ long getRequestId(); diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java similarity index 70% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java index 6041c4903edb..ca33cbc211a7 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java @@ -1,55 +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; /** + * + * *
  * 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; } - 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_ = false; /** + * + * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -57,6 +77,7 @@ protected java.lang.Object newInstance(
    * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -67,6 +88,8 @@ public boolean getEnableSpeakerDiarization() { public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_ = 0; /** + * + * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -74,6 +97,7 @@ public boolean getEnableSpeakerDiarization() {
    * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -84,6 +108,8 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_ = 0; /** + * + * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -91,6 +117,7 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -101,21 +128,27 @@ public int getMaxSpeakerCount() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_ = 0; /** + * + * *
    * 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=479 * @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; @@ -127,8 +160,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_); } @@ -151,20 +183,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,21 +202,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -201,8 +226,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; @@ -215,129 +239,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +381,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 @@ -371,8 +402,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig result = + new com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -397,38 +431,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationC 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; @@ -436,7 +471,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()); } @@ -475,32 +511,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableSpeakerDiarization_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - minSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - maxSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 40: { - speakerTag_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableSpeakerDiarization_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + minSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + maxSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 40: + { + speakerTag_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -510,10 +551,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - 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
@@ -521,6 +565,7 @@ public Builder mergeFrom(
      * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -528,6 +573,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
@@ -535,17 +582,20 @@ 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; bitField0_ |= 0x00000001; 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
@@ -553,6 +603,7 @@ public Builder setEnableSpeakerDiarization(boolean value) {
      * 
* * bool enable_speaker_diarization = 1; + * * @return This builder for chaining. */ public Builder clearEnableSpeakerDiarization() { @@ -562,8 +613,10 @@ public Builder clearEnableSpeakerDiarization() { 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
@@ -571,6 +624,7 @@ public Builder clearEnableSpeakerDiarization() {
      * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -578,6 +632,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
@@ -585,17 +641,20 @@ 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; bitField0_ |= 0x00000002; 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
@@ -603,6 +662,7 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2; + * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { @@ -612,8 +672,10 @@ public Builder clearMinSpeakerCount() { 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
@@ -621,6 +683,7 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -628,6 +691,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
@@ -635,17 +700,20 @@ 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; bitField0_ |= 0x00000004; 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
@@ -653,6 +721,7 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3; + * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { @@ -662,58 +731,73 @@ public Builder clearMaxSpeakerCount() { 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=479 * @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=479 * @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; bitField0_ |= 0x00000008; 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=479 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearSpeakerTag() { + @java.lang.Deprecated + public Builder clearSpeakerTag() { bitField0_ = (bitField0_ & ~0x00000008); 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); } @@ -723,12 +807,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(); } @@ -737,27 +821,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -772,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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java similarity index 68% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java index 48953e669d2a..37f7409eca89 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java +++ b/java-speech/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=479 * @return The speakerTag. */ - @java.lang.Deprecated int getSpeakerTag(); + @java.lang.Deprecated + int getSpeakerTag(); } diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java similarity index 76% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java index 4e7cd8399c91..156b2694de08 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java +++ b/java-speech/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,154 +45,175 @@ 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; } - 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 interface ABNFGrammarOrBuilder extends + public interface ABNFGrammarOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @return A list containing the abnfStrings. */ - java.util.List - getAbnfStringsList(); + java.util.List getAbnfStringsList(); /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @return The count of abnfStrings. */ int getAbnfStringsCount(); /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ java.lang.String getAbnfStrings(int index); /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - com.google.protobuf.ByteString - getAbnfStringsBytes(int index); + com.google.protobuf.ByteString getAbnfStringsBytes(int index); } - /** - * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar} - */ - public static final class ABNFGrammar extends - com.google.protobuf.GeneratedMessageV3 implements + /** Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar} */ + public static final class ABNFGrammar extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) ABNFGrammarOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ABNFGrammar.newBuilder() to construct. private ABNFGrammar(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ABNFGrammar() { abnfStrings_ = 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 ABNFGrammar(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_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_ABNFGrammar_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.class, + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder.class); } public static final int ABNF_STRINGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList abnfStrings_; /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @return A list containing the abnfStrings. */ - public com.google.protobuf.ProtocolStringList - getAbnfStringsList() { + public com.google.protobuf.ProtocolStringList getAbnfStringsList() { return abnfStrings_; } /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @return The count of abnfStrings. */ public int getAbnfStringsCount() { return abnfStrings_.size(); } /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ @@ -182,21 +221,24 @@ public java.lang.String getAbnfStrings(int index) { return abnfStrings_.get(index); } /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - public com.google.protobuf.ByteString - getAbnfStringsBytes(int index) { + public com.google.protobuf.ByteString getAbnfStringsBytes(int index) { return abnfStrings_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,8 +250,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 < abnfStrings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, abnfStrings_.getRaw(i)); } @@ -238,15 +279,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.SpeechAdaptation.ABNFGrammar)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar other = (com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) obj; + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar other = + (com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) obj; - if (!getAbnfStringsList() - .equals(other.getAbnfStringsList())) return false; + if (!getAbnfStringsList().equals(other.getAbnfStringsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,87 +309,94 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar 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 @@ -357,36 +405,34 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_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_ABNFGrammar_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.class, + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -397,13 +443,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_SpeechAdaptation_ABNFGrammar_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor; } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar + getDefaultInstanceForType() { return com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance(); } @@ -418,14 +465,18 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result = new com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar(this); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result = + new com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result) { if (((bitField0_ & 0x00000001) != 0)) { abnfStrings_ = abnfStrings_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -433,7 +484,8 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.Speech result.abnfStrings_ = abnfStrings_; } - private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result) { + private void buildPartial0( + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result) { int from_bitField0_ = bitField0_; } @@ -441,46 +493,52 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.AB 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.SpeechAdaptation.ABNFGrammar) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar other) { - if (other == com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar other) { + if (other + == com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) + return this; if (!other.abnfStrings_.isEmpty()) { if (abnfStrings_.isEmpty()) { abnfStrings_ = other.abnfStrings_; @@ -517,18 +575,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAbnfStringsIsMutable(); - abnfStrings_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAbnfStringsIsMutable(); + abnfStrings_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -538,47 +598,58 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList abnfStrings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList abnfStrings_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAbnfStringsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { abnfStrings_ = new com.google.protobuf.LazyStringArrayList(abnfStrings_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @return A list containing the abnfStrings. */ - public com.google.protobuf.ProtocolStringList - getAbnfStringsList() { + public com.google.protobuf.ProtocolStringList getAbnfStringsList() { return abnfStrings_.getUnmodifiableView(); } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @return The count of abnfStrings. */ public int getAbnfStringsCount() { return abnfStrings_.size(); } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ @@ -586,81 +657,95 @@ public java.lang.String getAbnfStrings(int index) { return abnfStrings_.get(index); } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - public com.google.protobuf.ByteString - getAbnfStringsBytes(int index) { + public com.google.protobuf.ByteString getAbnfStringsBytes(int index) { return abnfStrings_.getByteString(index); } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param index The index to set the value at. * @param value The abnfStrings to set. * @return This builder for chaining. */ - public Builder setAbnfStrings( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAbnfStrings(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAbnfStringsIsMutable(); abnfStrings_.set(index, value); onChanged(); return this; } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param value The abnfStrings to add. * @return This builder for chaining. */ - public Builder addAbnfStrings( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAbnfStrings(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAbnfStringsIsMutable(); abnfStrings_.add(value); onChanged(); return this; } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param values The abnfStrings to add. * @return This builder for chaining. */ - public Builder addAllAbnfStrings( - java.lang.Iterable values) { + public Builder addAllAbnfStrings(java.lang.Iterable values) { ensureAbnfStringsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, abnfStrings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, abnfStrings_); onChanged(); return this; } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @return This builder for chaining. */ public Builder clearAbnfStrings() { @@ -670,24 +755,29 @@ public Builder clearAbnfStrings() { return this; } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param value The bytes of the abnfStrings to add. * @return This builder for chaining. */ - public Builder addAbnfStringsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAbnfStringsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAbnfStringsIsMutable(); abnfStrings_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -700,41 +790,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) - private static final com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar DEFAULT_INSTANCE; + private static final com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar(); } - public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getDefaultInstance() { + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ABNFGrammar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ABNFGrammar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -746,16 +839,19 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int PHRASE_SETS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") 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
@@ -769,6 +865,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
@@ -778,11 +876,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
@@ -796,6 +896,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
@@ -809,6 +911,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
@@ -818,43 +922,54 @@ 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;
+
   @SuppressWarnings("serial")
   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. */ @@ -862,23 +977,29 @@ 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; + @SuppressWarnings("serial") 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
@@ -893,6 +1014,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
@@ -903,11 +1026,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
@@ -922,6 +1047,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
@@ -936,6 +1063,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
@@ -954,6 +1083,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr
   public static final int ABNF_GRAMMAR_FIELD_NUMBER = 4;
   private com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnfGrammar_;
   /**
+   *
+   *
    * 
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -961,6 +1092,7 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return Whether the abnfGrammar field is set. */ @java.lang.Override @@ -968,6 +1100,8 @@ public boolean hasAbnfGrammar() { return abnfGrammar_ != null; } /** + * + * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -975,13 +1109,18 @@ public boolean hasAbnfGrammar() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return The abnfGrammar. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getAbnfGrammar() { - return abnfGrammar_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_; + return abnfGrammar_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() + : abnfGrammar_; } /** + * + * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -991,11 +1130,15 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getAbnfGra
    * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder getAbnfGrammarOrBuilder() {
-    return abnfGrammar_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_;
+  public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder
+      getAbnfGrammarOrBuilder() {
+    return abnfGrammar_ == null
+        ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()
+        : abnfGrammar_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1007,8 +1150,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));
     }
@@ -1031,8 +1173,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;
@@ -1043,12 +1184,10 @@ 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));
     }
     if (abnfGrammar_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getAbnfGrammar());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAbnfGrammar());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1058,23 +1197,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.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 (hasAbnfGrammar() != other.hasAbnfGrammar()) return false;
     if (hasAbnfGrammar()) {
-      if (!getAbnfGrammar()
-          .equals(other.getAbnfGrammar())) return false;
+      if (!getAbnfGrammar().equals(other.getAbnfGrammar())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -1109,129 +1245,135 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1261,9 +1403,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 @@ -1282,14 +1424,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.SpeechAdaptation result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1p1beta1.SpeechAdaptation result) { if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -1318,9 +1464,8 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.Speech private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechAdaptation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000008) != 0)) { - result.abnfGrammar_ = abnfGrammarBuilder_ == null - ? abnfGrammar_ - : abnfGrammarBuilder_.build(); + result.abnfGrammar_ = + abnfGrammarBuilder_ == null ? abnfGrammar_ : abnfGrammarBuilder_.build(); } } @@ -1328,38 +1473,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechAdaptation re 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; @@ -1367,7 +1513,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()) { @@ -1386,9 +1533,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_); } @@ -1422,9 +1570,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_); } @@ -1459,51 +1608,52 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1p1beta1.PhraseSet m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), - extensionRegistry); - if (phraseSetsBuilder_ == null) { - ensurePhraseSetsIsMutable(); - phraseSets_.add(m); - } else { - phraseSetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensurePhraseSetReferencesIsMutable(); - phraseSetReferences_.add(s); - break; - } // case 18 - case 26: { - com.google.cloud.speech.v1p1beta1.CustomClass m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.CustomClass.parser(), - extensionRegistry); - if (customClassesBuilder_ == null) { - ensureCustomClassesIsMutable(); - customClasses_.add(m); - } else { - customClassesBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: { - input.readMessage( - getAbnfGrammarFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.speech.v1p1beta1.PhraseSet m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); + if (phraseSetsBuilder_ == null) { + ensurePhraseSetsIsMutable(); + phraseSets_.add(m); + } else { + phraseSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePhraseSetReferencesIsMutable(); + phraseSetReferences_.add(s); + break; + } // case 18 + case 26: + { + com.google.cloud.speech.v1p1beta1.CustomClass m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); + if (customClassesBuilder_ == null) { + ensureCustomClassesIsMutable(); + customClasses_.add(m); + } else { + customClassesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage(getAbnfGrammarFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1513,21 +1663,29 @@ public Builder mergeFrom( } // finally 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
@@ -1544,6 +1702,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
@@ -1560,6 +1720,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
@@ -1576,6 +1738,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
@@ -1584,8 +1748,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();
@@ -1599,6 +1762,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
@@ -1619,6 +1784,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
@@ -1641,6 +1808,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
@@ -1649,8 +1818,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();
@@ -1664,6 +1832,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
@@ -1684,6 +1854,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
@@ -1704,6 +1876,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
@@ -1716,8 +1890,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);
@@ -1725,6 +1898,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
@@ -1744,6 +1919,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
@@ -1763,6 +1940,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
@@ -1771,11 +1950,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
@@ -1784,14 +1964,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
@@ -1800,8 +1982,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 {
@@ -1809,6 +1991,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
@@ -1818,10 +2002,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
@@ -1830,12 +2016,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
@@ -1844,61 +2031,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. */ @@ -1906,76 +2109,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhraseSetReferences(int index, java.lang.String value) { + if (value == null) { + 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addPhraseSetReferences(java.lang.String value) { + if (value == null) { + 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() { @@ -1985,17 +2207,22 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addPhraseSetReferencesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); @@ -2004,18 +2231,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
@@ -2033,6 +2267,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
@@ -2050,6 +2286,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
@@ -2067,6 +2305,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
@@ -2091,6 +2331,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
@@ -2112,6 +2354,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
@@ -2135,6 +2379,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
@@ -2159,6 +2405,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
@@ -2180,6 +2428,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
@@ -2201,6 +2451,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
@@ -2214,8 +2466,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);
@@ -2223,6 +2474,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
@@ -2243,6 +2496,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
@@ -2263,6 +2518,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
@@ -2277,6 +2534,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
@@ -2289,11 +2548,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
@@ -2303,8 +2565,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 {
@@ -2312,6 +2574,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
@@ -2322,10 +2586,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
@@ -2337,10 +2603,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
@@ -2350,16 +2618,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(),
@@ -2371,8 +2645,13 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBui
 
     private com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnfGrammar_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder> abnfGrammarBuilder_;
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar,
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder>
+        abnfGrammarBuilder_;
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2380,12 +2659,15 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBui
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return Whether the abnfGrammar field is set. */ public boolean hasAbnfGrammar() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2393,16 +2675,21 @@ public boolean hasAbnfGrammar() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return The abnfGrammar. */ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getAbnfGrammar() { if (abnfGrammarBuilder_ == null) { - return abnfGrammar_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_; + return abnfGrammar_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() + : abnfGrammar_; } else { return abnfGrammarBuilder_.getMessage(); } } /** + * + * *
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2411,7 +2698,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getAbnfGra
      *
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
-    public Builder setAbnfGrammar(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar value) {
+    public Builder setAbnfGrammar(
+        com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar value) {
       if (abnfGrammarBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2425,6 +2713,8 @@ public Builder setAbnfGrammar(com.google.cloud.speech.v1p1beta1.SpeechAdaptation
       return this;
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2445,6 +2735,8 @@ public Builder setAbnfGrammar(
       return this;
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2453,11 +2745,14 @@ public Builder setAbnfGrammar(
      *
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
-    public Builder mergeAbnfGrammar(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar value) {
+    public Builder mergeAbnfGrammar(
+        com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar value) {
       if (abnfGrammarBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          abnfGrammar_ != null &&
-          abnfGrammar_ != com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && abnfGrammar_ != null
+            && abnfGrammar_
+                != com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar
+                    .getDefaultInstance()) {
           getAbnfGrammarBuilder().mergeFrom(value);
         } else {
           abnfGrammar_ = value;
@@ -2470,6 +2765,8 @@ public Builder mergeAbnfGrammar(com.google.cloud.speech.v1p1beta1.SpeechAdaptati
       return this;
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2489,6 +2786,8 @@ public Builder clearAbnfGrammar() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2497,12 +2796,15 @@ public Builder clearAbnfGrammar() {
      *
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
-    public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder getAbnfGrammarBuilder() {
+    public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder
+        getAbnfGrammarBuilder() {
       bitField0_ |= 0x00000008;
       onChanged();
       return getAbnfGrammarFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2511,15 +2813,19 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder ge
      *
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
-    public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder getAbnfGrammarOrBuilder() {
+    public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder
+        getAbnfGrammarOrBuilder() {
       if (abnfGrammarBuilder_ != null) {
         return abnfGrammarBuilder_.getMessageOrBuilder();
       } else {
-        return abnfGrammar_ == null ?
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_;
+        return abnfGrammar_ == null
+            ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()
+            : abnfGrammar_;
       }
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2529,21 +2835,24 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder g
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder> 
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar,
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder>
         getAbnfGrammarFieldBuilder() {
       if (abnfGrammarBuilder_ == null) {
-        abnfGrammarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder>(
-                getAbnfGrammar(),
-                getParentForChildren(),
-                isClean());
+        abnfGrammarBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar,
+                com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder,
+                com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder>(
+                getAbnfGrammar(), getParentForChildren(), isClean());
         abnfGrammar_ = null;
       }
       return abnfGrammarBuilder_;
     }
+
     @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);
     }
 
@@ -2553,12 +2862,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();
   }
@@ -2567,27 +2876,27 @@ 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 {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  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 {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2602,6 +2911,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v1p1beta1.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java
similarity index 67%
rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java
rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java
index 2395ba4ad4ff..25386dead1cf 100644
--- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java
+++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java
@@ -1,62 +1,84 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License 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;
 
 /**
+ *
+ *
  * 
  * Information on speech adaptation use in results
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptationInfo} */ -public final class SpeechAdaptationInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechAdaptationInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) SpeechAdaptationInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechAdaptationInfo.newBuilder() to construct. private SpeechAdaptationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechAdaptationInfo() { timeoutMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechAdaptationInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.class, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder.class); } public static final int ADAPTATION_TIMEOUT_FIELD_NUMBER = 1; private boolean adaptationTimeout_ = false; /** + * + * *
    * Whether there was a timeout when applying speech adaptation. If true,
    * adaptation had no effect in the response transcript.
    * 
* * bool adaptation_timeout = 1; + * * @return The adaptationTimeout. */ @java.lang.Override @@ -65,15 +87,19 @@ public boolean getAdaptationTimeout() { } public static final int TIMEOUT_MESSAGE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object timeoutMessage_ = ""; /** + * + * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; + * * @return The timeoutMessage. */ @java.lang.Override @@ -82,30 +108,30 @@ public java.lang.String getTimeoutMessage() { 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(); timeoutMessage_ = s; return s; } } /** + * + * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; + * * @return The bytes for timeoutMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getTimeoutMessageBytes() { + public com.google.protobuf.ByteString getTimeoutMessageBytes() { java.lang.Object ref = timeoutMessage_; 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); timeoutMessage_ = b; return b; } else { @@ -114,6 +140,7 @@ public java.lang.String getTimeoutMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -125,8 +152,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 (adaptationTimeout_ != false) { output.writeBool(1, adaptationTimeout_); } @@ -143,8 +169,7 @@ public int getSerializedSize() { size = 0; if (adaptationTimeout_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, adaptationTimeout_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, adaptationTimeout_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeoutMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, timeoutMessage_); @@ -157,17 +182,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.SpeechAdaptationInfo)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo other = (com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) obj; + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo other = + (com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) obj; - if (getAdaptationTimeout() - != other.getAdaptationTimeout()) return false; - if (!getTimeoutMessage() - .equals(other.getTimeoutMessage())) return false; + if (getAdaptationTimeout() != other.getAdaptationTimeout()) return false; + if (!getTimeoutMessage().equals(other.getTimeoutMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -180,8 +204,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADAPTATION_TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAdaptationTimeout()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAdaptationTimeout()); hash = (37 * hash) + TIMEOUT_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getTimeoutMessage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -190,129 +213,136 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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; } /** + * + * *
    * Information on speech adaptation use in results
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptationInfo} */ - 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.SpeechAdaptationInfo) com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.class, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +353,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_SpeechAdaptationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; } @java.lang.Override @@ -344,8 +374,11 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo result = new com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo result = + new com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -364,38 +397,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInf 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.SpeechAdaptationInfo) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) other); } else { super.mergeFrom(other); return this; @@ -403,7 +437,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo other) { - if (other == com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) + return this; if (other.getAdaptationTimeout() != false) { setAdaptationTimeout(other.getAdaptationTimeout()); } @@ -438,22 +473,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - adaptationTimeout_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 34: { - timeoutMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + adaptationTimeout_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 34: + { + timeoutMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -463,16 +501,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean adaptationTimeout_ ; + private boolean adaptationTimeout_; /** + * + * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; + * * @return The adaptationTimeout. */ @java.lang.Override @@ -480,29 +522,35 @@ public boolean getAdaptationTimeout() { return adaptationTimeout_; } /** + * + * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; + * * @param value The adaptationTimeout to set. * @return This builder for chaining. */ public Builder setAdaptationTimeout(boolean value) { - + adaptationTimeout_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; + * * @return This builder for chaining. */ public Builder clearAdaptationTimeout() { @@ -514,19 +562,21 @@ public Builder clearAdaptationTimeout() { private java.lang.Object timeoutMessage_ = ""; /** + * + * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; + * * @return The timeoutMessage. */ public java.lang.String getTimeoutMessage() { java.lang.Object ref = timeoutMessage_; 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(); timeoutMessage_ = s; return s; @@ -535,21 +585,22 @@ public java.lang.String getTimeoutMessage() { } } /** + * + * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; + * * @return The bytes for timeoutMessage. */ - public com.google.protobuf.ByteString - getTimeoutMessageBytes() { + public com.google.protobuf.ByteString getTimeoutMessageBytes() { java.lang.Object ref = timeoutMessage_; 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); timeoutMessage_ = b; return b; } else { @@ -557,30 +608,37 @@ public java.lang.String getTimeoutMessage() { } } /** + * + * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; + * * @param value The timeoutMessage to set. * @return This builder for chaining. */ - public Builder setTimeoutMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTimeoutMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } timeoutMessage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; + * * @return This builder for chaining. */ public Builder clearTimeoutMessage() { @@ -590,27 +648,31 @@ public Builder clearTimeoutMessage() { return this; } /** + * + * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; + * * @param value The bytes for timeoutMessage to set. * @return This builder for chaining. */ - public Builder setTimeoutMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTimeoutMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); timeoutMessage_ = value; bitField0_ |= 0x00000002; 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); } @@ -620,12 +682,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) private static final com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo(); } @@ -634,27 +696,27 @@ public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechAdaptationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechAdaptationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -669,6 +731,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java similarity index 59% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java index 0a1b98bbef2e..bd5508cea1c6 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.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/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface SpeechAdaptationInfoOrBuilder extends +public interface SpeechAdaptationInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Whether there was a timeout when applying speech adaptation. If true,
    * adaptation had no effect in the response transcript.
    * 
* * bool adaptation_timeout = 1; + * * @return The adaptationTimeout. */ boolean getAdaptationTimeout(); /** + * + * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; + * * @return The timeoutMessage. */ java.lang.String getTimeoutMessage(); /** + * + * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; + * * @return The bytes for timeoutMessage. */ - com.google.protobuf.ByteString - getTimeoutMessageBytes(); + com.google.protobuf.ByteString getTimeoutMessageBytes(); } diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java similarity index 83% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java index 037c2dbd76f7..637902e79fb0 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java +++ b/java-speech/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,10 +205,11 @@ 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);
 
   /**
+   *
+   *
    * 
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -169,10 +217,13 @@ com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return Whether the abnfGrammar field is set. */ boolean hasAbnfGrammar(); /** + * + * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -180,10 +231,13 @@ com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return The abnfGrammar. */ com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getAbnfGrammar(); /** + * + * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java
new file mode 100644
index 000000000000..2d3104cbb88a
--- /dev/null
+++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
similarity index 78%
rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
index 2d92e1404445..6ae937dad075 100644
--- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
+++ b/java-speech/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,48 +28,53 @@
  *
  * 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;
   }
-  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;
+
   @SuppressWarnings("serial")
   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
@@ -68,13 +90,15 @@ protected java.lang.Object newInstance(
    * 
* * 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
@@ -90,12 +114,15 @@ protected java.lang.Object newInstance(
    * 
* * 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
@@ -111,6 +138,7 @@ public int getPhrasesCount() {
    * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -118,6 +146,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
@@ -133,17 +163,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_ = 0F; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -156,6 +188,7 @@ public java.lang.String getPhrases(int index) {
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -164,6 +197,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +209,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)); } @@ -201,8 +234,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -212,18 +244,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -240,104 +271,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) + getUnknownFields().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.
@@ -345,33 +382,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -383,9 +419,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
@@ -404,14 +440,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.SpeechContext result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v1p1beta1.SpeechContext result) {
       if (((bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000001);
@@ -430,38 +470,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechContext resul
     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;
@@ -469,7 +510,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_;
@@ -509,23 +551,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensurePhrasesIsMutable();
-              phrases_.add(s);
-              break;
-            } // case 10
-            case 37: {
-              boost_ = input.readFloat();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 37
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensurePhrasesIsMutable();
+                phrases_.add(s);
+                break;
+              } // case 10
+            case 37:
+              {
+                boost_ = input.readFloat();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 37
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -535,16 +580,21 @@ public Builder mergeFrom(
       } // finally
       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
@@ -560,13 +610,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
@@ -582,12 +634,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
@@ -603,6 +658,7 @@ public int getPhrasesCount() {
      * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -610,6 +666,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
@@ -625,14 +683,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
@@ -648,19 +708,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhrases(int index, java.lang.String value) { + if (value == null) { + 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
@@ -676,18 +740,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) { - if (value == null) { throw new NullPointerException(); } + public Builder addPhrases(java.lang.String value) { + if (value == null) { + 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
@@ -703,18 +771,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
@@ -730,6 +799,7 @@ public Builder addAllPhrases(
      * 
* * repeated string phrases = 1; + * * @return This builder for chaining. */ public Builder clearPhrases() { @@ -739,6 +809,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
@@ -754,12 +826,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensurePhrasesIsMutable(); phrases_.add(value); @@ -767,8 +841,10 @@ public Builder addPhrasesBytes( 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
@@ -781,6 +857,7 @@ public Builder addPhrasesBytes(
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -788,6 +865,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
@@ -800,17 +879,20 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000002; 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
@@ -823,6 +905,7 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { @@ -831,9 +914,9 @@ public Builder clearBoost() { 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); } @@ -843,12 +926,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(); } @@ -857,27 +940,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -892,6 +975,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java similarity index 85% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java index 1daae97d3d7c..9c1e1ba589d1 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java +++ b/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java new file mode 100644 index 000000000000..c0e43bb88557 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java @@ -0,0 +1,513 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_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\"\373\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\022S\n\026" + + "speech_adaptation_info\030\007 \001(\01323.google.cl" + + "oud.speech.v1p1beta1.SpeechAdaptationInf" + + "o\022\022\n\nrequest_id\030\010 \001(\003\"\376\002\n\034LongRunningRec" + + "ognizeResponse\022G\n\007results\030\002 \003(\01326.google" + + ".cloud.speech.v1p1beta1.SpeechRecognitio" + + "nResult\0224\n\021total_billed_time\030\003 \001(\0132\031.goo" + + "gle.protobuf.Duration\022L\n\routput_config\030\006" + + " \001(\01325.google.cloud.speech.v1p1beta1.Tra" + + "nscriptOutputConfig\022(\n\014output_error\030\007 \001(" + + "\0132\022.google.rpc.Status\022S\n\026speech_adaptati" + + "on_info\030\010 \001(\01323.google.cloud.speech.v1p1" + + "beta1.SpeechAdaptationInfo\022\022\n\nrequest_id" + + "\030\t \001(\003\"\203\002\n\034LongRunningRecognizeMetadata\022" + + "\030\n\020progress_percent\030\001 \001(\005\022.\n\nstart_time\030" + + "\002 \001(\0132\032.google.protobuf.Timestamp\0224\n\020las" + + "t_update_time\030\003 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022\020\n\003uri\030\004 \001(\tB\003\340A\003\022Q\n\routput_conf" + + "ig\030\005 \001(\01325.google.cloud.speech.v1p1beta1" + + ".TranscriptOutputConfigB\003\340A\003\"\336\003\n\032Streami" + + "ngRecognizeResponse\022!\n\005error\030\001 \001(\0132\022.goo" + + "gle.rpc.Status\022J\n\007results\030\002 \003(\01329.google" + + ".cloud.speech.v1p1beta1.StreamingRecogni" + + "tionResult\022d\n\021speech_event_type\030\004 \001(\0162I." + + "google.cloud.speech.v1p1beta1.StreamingR" + + "ecognizeResponse.SpeechEventType\0224\n\021tota" + + "l_billed_time\030\005 \001(\0132\031.google.protobuf.Du" + + "ration\022S\n\026speech_adaptation_info\030\t \001(\01323" + + ".google.cloud.speech.v1p1beta1.SpeechAda" + + "ptationInfo\022\022\n\nrequest_id\030\n \001(\003\"L\n\017Speec" + + "hEventType\022\034\n\030SPEECH_EVENT_UNSPECIFIED\020\000" + + "\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\371\001\n\032Stream" + + "ingRecognitionResult\022Q\n\014alternatives\030\001 \003" + + "(\0132;.google.cloud.speech.v1p1beta1.Speec" + + "hRecognitionAlternative\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\013chan" + + "nel_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A" + + "\003\"\321\001\n\027SpeechRecognitionResult\022Q\n\014alterna" + + "tives\030\001 \003(\0132;.google.cloud.speech.v1p1be" + + "ta1.SpeechRecognitionAlternative\022\023\n\013chan" + + "nel_tag\030\002 \001(\005\0222\n\017result_end_time\030\004 \001(\0132\031" + + ".google.protobuf.Duration\022\032\n\rlanguage_co" + + "de\030\005 \001(\tB\003\340A\003\"~\n\034SpeechRecognitionAltern" + + "ative\022\022\n\ntranscript\030\001 \001(\t\022\022\n\nconfidence\030" + + "\002 \001(\002\0226\n\005words\030\003 \003(\0132\'.google.cloud.spee" + + "ch.v1p1beta1.WordInfo\"\242\001\n\010WordInfo\022-\n\nst" + + "art_time\030\001 \001(\0132\031.google.protobuf.Duratio" + + "n\022+\n\010end_time\030\002 \001(\0132\031.google.protobuf.Du" + + "ration\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\003\"K\n\024SpeechAdap" + + "tationInfo\022\032\n\022adaptation_timeout\030\001 \001(\010\022\027" + + "\n\017timeout_message\030\004 \001(\t2\202\005\n\006Speech\022\245\001\n\tR" + + "ecognize\022/.google.cloud.speech.v1p1beta1" + + ".RecognizeRequest\0320.google.cloud.speech." + + "v1p1beta1.RecognizeResponse\"5\202\323\344\223\002 \"\033/v1" + + "p1beta1/speech:recognize:\001*\332A\014config,aud" + + "io\022\362\001\n\024LongRunningRecognize\022:.google.clo" + + "ud.speech.v1p1beta1.LongRunningRecognize" + + "Request\032\035.google.longrunning.Operation\"\177" + + "\202\323\344\223\002+\"&/v1p1beta1/speech:longrunningrec" + + "ognize:\001*\332A\014config,audio\312A<\n\034LongRunning" + + "RecognizeResponse\022\034LongRunningRecognizeM" + + "etadata\022\217\001\n\022StreamingRecognize\0228.google." + + "cloud.speech.v1p1beta1.StreamingRecogniz" + + "eRequest\0329.google.cloud.speech.v1p1beta1" + + ".StreamingRecognizeResponse\"\000(\0010\001\032I\312A\025sp" + + "eech.googleapis.com\322A.https://www.google" + + "apis.com/auth/cloud-platformB\200\001\n!com.goo" + + "gle.cloud.speech.v1p1beta1B\013SpeechProtoP" + + "\001ZCgoogle.golang.org/genproto/googleapis" + + "/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", "SpeechAdaptationInfo", "RequestId", + }); + 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", + "SpeechAdaptationInfo", + "RequestId", + }); + 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", + "SpeechAdaptationInfo", + "RequestId", + }); + 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", + }); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor, + new java.lang.String[] { + "AdaptationTimeout", "TimeoutMessage", + }); + 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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java similarity index 74% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java index 180eb2a0b33f..e6ddb84c1de8 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") 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
@@ -61,6 +83,7 @@ protected java.lang.Object newInstance(
    * 
* * string transcript = 1; + * * @return The transcript. */ @java.lang.Override @@ -69,14 +92,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
@@ -85,16 +109,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 { @@ -105,6 +128,8 @@ public java.lang.String getTranscript() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_ = 0F; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -116,6 +141,7 @@ public java.lang.String getTranscript() {
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -124,9 +150,12 @@ public float getConfidence() { } public static final int WORDS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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
@@ -140,6 +169,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
@@ -149,11 +180,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
@@ -167,6 +200,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
@@ -180,6 +215,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
@@ -189,12 +226,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;
@@ -206,8 +243,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_);
     }
@@ -230,12 +266,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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -245,20 +279,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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -273,8 +305,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();
@@ -285,129 +316,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,13 +463,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(); } @@ -446,14 +485,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result) { if (wordsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -465,7 +508,8 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.Speech } } - private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result) { + private void buildPartial0( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.transcript_ = transcript_; @@ -479,38 +523,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAl 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; @@ -518,7 +563,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_; bitField0_ |= 0x00000001; @@ -545,9 +592,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlte wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000004); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWordsFieldBuilder() : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWordsFieldBuilder() + : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -579,35 +627,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - transcript_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - case 26: { - com.google.cloud.speech.v1p1beta1.WordInfo m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.WordInfo.parser(), - extensionRegistry); - if (wordsBuilder_ == null) { - ensureWordsIsMutable(); - words_.add(m); - } else { - wordsBuilder_.addMessage(m); - } - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + transcript_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 26: + { + com.google.cloud.speech.v1p1beta1.WordInfo m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.WordInfo.parser(), extensionRegistry); + if (wordsBuilder_ == null) { + ensureWordsIsMutable(); + words_.add(m); + } else { + wordsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -617,10 +668,13 @@ public Builder mergeFrom( } // finally 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
@@ -629,13 +683,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; @@ -644,6 +698,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
@@ -652,15 +708,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 { @@ -668,6 +723,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
@@ -676,18 +733,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranscript(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } transcript_ = value; bitField0_ |= 0x00000001; 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
@@ -696,6 +757,7 @@ public Builder setTranscript(
      * 
* * string transcript = 1; + * * @return This builder for chaining. */ public Builder clearTranscript() { @@ -705,6 +767,8 @@ public Builder clearTranscript() { return this; } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -713,12 +777,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); transcript_ = value; bitField0_ |= 0x00000001; @@ -726,8 +792,10 @@ public Builder setTranscriptBytes( 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
@@ -739,6 +807,7 @@ public Builder setTranscriptBytes(
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -746,6 +815,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
@@ -757,17 +828,20 @@ public float getConfidence() {
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000002; 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
@@ -779,6 +853,7 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -789,18 +864,24 @@ public Builder clearConfidence() { } private java.util.List words_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000004; - } + } } 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
@@ -817,6 +898,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
@@ -833,6 +916,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
@@ -849,6 +934,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
@@ -857,8 +944,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();
@@ -872,6 +958,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
@@ -892,6 +980,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
@@ -914,6 +1004,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
@@ -922,8 +1014,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();
@@ -937,6 +1028,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
@@ -945,8 +1038,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());
@@ -957,6 +1049,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
@@ -977,6 +1071,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
@@ -989,8 +1085,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);
@@ -998,6 +1093,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
@@ -1017,6 +1114,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
@@ -1036,6 +1135,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
@@ -1044,11 +1145,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
@@ -1057,14 +1159,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
@@ -1073,8 +1177,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 {
@@ -1082,6 +1186,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
@@ -1091,10 +1197,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
@@ -1103,12 +1211,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
@@ -1117,27 +1226,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_ & 0x00000004) != 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_ & 0x00000004) != 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);
     }
 
@@ -1147,41 +1259,43 @@ 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 {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  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 {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1193,9 +1307,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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
similarity index 79%
rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
index 24dc349ab976..8b8eb60eb325 100644
--- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
+++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
similarity index 72%
rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
index 4b1ae85bc937..8068ee456a05 100644
--- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
+++ b/java-speech/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,33 +44,38 @@ 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; } - 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; + @SuppressWarnings("serial") - 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`).
@@ -60,13 +83,17 @@ protected java.lang.Object newInstance(
    * 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`).
@@ -74,14 +101,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`).
@@ -89,13 +120,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`).
@@ -103,13 +137,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`).
@@ -117,17 +154,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_ = 0; /** + * + * *
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -135,6 +175,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g
    * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -145,12 +186,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 @@ -158,19 +202,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.
@@ -180,13 +231,18 @@ public com.google.protobuf.Duration getResultEndTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
-    return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
+    return resultEndTime_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : resultEndTime_;
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
+
   @SuppressWarnings("serial")
   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
@@ -194,6 +250,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -202,14 +259,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
@@ -217,16 +275,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 { @@ -235,6 +292,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,8 +304,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)); } @@ -270,16 +327,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_); @@ -292,24 +346,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,129 +390,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -484,9 +542,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 @@ -505,14 +563,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult result) { if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -530,9 +592,8 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRe result.channelTag_ = channelTag_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.resultEndTime_ = resultEndTimeBuilder_ == null - ? resultEndTime_ - : resultEndTimeBuilder_.build(); + result.resultEndTime_ = + resultEndTimeBuilder_ == null ? resultEndTime_ : resultEndTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.languageCode_ = languageCode_; @@ -543,38 +604,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRe 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; @@ -582,7 +644,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()) { @@ -601,9 +664,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_); } @@ -646,42 +710,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), - extensionRegistry); - if (alternativesBuilder_ == null) { - ensureAlternativesIsMutable(); - alternatives_.add(m); - } else { - alternativesBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: { - channelTag_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 34: { - input.readMessage( - getResultEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), + extensionRegistry); + if (alternativesBuilder_ == null) { + ensureAlternativesIsMutable(); + alternatives_.add(m); + } else { + alternativesBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + channelTag_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 34: + { + input.readMessage(getResultEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -691,21 +758,30 @@ public Builder mergeFrom( } // finally 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`).
@@ -713,9 +789,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 { @@ -723,6 +801,8 @@ public java.util.List * May contain one or more recognition hypotheses (up to the * maximum specified in `max_alternatives`). @@ -730,7 +810,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) { @@ -740,6 +821,8 @@ public int getAlternativesCount() { } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -747,9 +830,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 { @@ -757,6 +842,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -764,7 +851,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) { @@ -781,6 +869,8 @@ public Builder setAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -788,10 +878,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()); @@ -802,6 +894,8 @@ public Builder setAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -809,9 +903,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(); @@ -825,6 +921,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`).
@@ -832,7 +930,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) { @@ -849,6 +948,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -856,7 +957,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) { @@ -870,6 +972,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -877,10 +981,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()); @@ -891,6 +997,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -898,14 +1006,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); @@ -913,6 +1022,8 @@ public Builder addAllAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -920,7 +1031,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) { @@ -933,6 +1045,8 @@ public Builder clearAlternatives() { return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -940,7 +1054,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) { @@ -953,6 +1068,8 @@ public Builder removeAlternatives(int index) { return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -960,13 +1077,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`).
@@ -974,16 +1094,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`).
@@ -991,10 +1115,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 { @@ -1002,6 +1128,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1009,13 +1137,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`).
@@ -1023,14 +1156,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`).
@@ -1038,29 +1176,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.
@@ -1068,6 +1212,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder ad
      * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -1075,6 +1220,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.
@@ -1082,17 +1229,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1100,6 +1250,7 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; + * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1111,36 +1262,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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.
@@ -1162,6 +1326,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.
@@ -1169,8 +1335,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();
       } else {
@@ -1181,6 +1346,8 @@ public Builder setResultEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1190,9 +1357,9 @@ public Builder setResultEndTime(
      */
     public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          resultEndTime_ != null &&
-          resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && resultEndTime_ != null
+            && resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndTimeBuilder().mergeFrom(value);
         } else {
           resultEndTime_ = value;
@@ -1205,6 +1372,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.
@@ -1223,6 +1392,8 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1236,6 +1407,8 @@ public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1247,11 +1420,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.
@@ -1260,14 +1436,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_;
@@ -1275,6 +1454,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
@@ -1282,13 +1463,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; @@ -1297,6 +1478,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
@@ -1304,15 +1487,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 { @@ -1320,6 +1502,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
@@ -1327,18 +1511,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000008; 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
@@ -1346,6 +1534,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1355,6 +1544,8 @@ public Builder clearLanguageCode() { 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
@@ -1362,21 +1553,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000008; 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); } @@ -1386,12 +1579,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(); } @@ -1400,27 +1593,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1435,6 +1628,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java similarity index 79% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java index 55e3c978e3c9..b836a20e796b 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java +++ b/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java new file mode 100644 index 000000000000..71f4e12c7685 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java @@ -0,0 +1,190 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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_SpeechAdaptation_ABNFGrammar_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_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}\"\322\002\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\022" + + "Q\n\014abnf_grammar\030\004 \001(\0132;.google.cloud.spe" + + "ech.v1p1beta1.SpeechAdaptation.ABNFGramm" + + "ar\032#\n\013ABNFGrammar\022\024\n\014abnf_strings\030\001 \003(\t\"" + + "\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", "AbnfGrammar", + }); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor = + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor, + new java.lang.String[] { + "AbnfStrings", + }); + 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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java similarity index 68% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java index 08f9f8234503..f88b8d2f1c25 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java +++ b/java-speech/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,52 +28,58 @@
  *
  * 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;
   }
-  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 @@ -64,34 +87,49 @@ 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() { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 2; private boolean singleUtterance_ = false; /** + * + * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -114,6 +152,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB
    * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ @java.lang.Override @@ -124,6 +163,8 @@ public boolean getSingleUtterance() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 3; private boolean interimResults_ = false; /** + * + * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -132,6 +173,7 @@ public boolean getSingleUtterance() {
    * 
* * bool interim_results = 3; + * * @return The interimResults. */ @java.lang.Override @@ -140,6 +182,7 @@ public boolean getInterimResults() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +194,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()); } @@ -172,16 +214,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -191,22 +230,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,107 +260,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) + getUnknownFields().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.
@@ -331,33 +374,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -373,13 +415,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();
     }
 
@@ -394,18 +437,20 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result =
+          new com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result) {
+    private void buildPartial0(
+        com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.config_ = configBuilder_ == null
-            ? config_
-            : configBuilder_.build();
+        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.singleUtterance_ = singleUtterance_;
@@ -419,38 +464,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognitio
     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;
@@ -458,7 +504,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());
       }
@@ -494,29 +542,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              singleUtterance_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 24: {
-              interimResults_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                singleUtterance_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 24:
+              {
+                interimResults_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -526,46 +576,66 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * 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) { @@ -581,12 +651,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) { @@ -600,18 +674,23 @@ 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 (((bitField0_ & 0x00000001) != 0) && - config_ != null && - config_ != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && config_ != null + && config_ + != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -624,12 +703,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -642,12 +725,16 @@ 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() { bitField0_ |= 0x00000001; @@ -655,45 +742,59 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuil 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
@@ -716,6 +817,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB
      * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ @java.lang.Override @@ -723,6 +825,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
@@ -745,17 +849,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -778,6 +885,7 @@ public Builder setSingleUtterance(boolean value) {
      * 
* * bool single_utterance = 2; + * * @return This builder for chaining. */ public Builder clearSingleUtterance() { @@ -787,8 +895,10 @@ public Builder clearSingleUtterance() { 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
@@ -797,6 +907,7 @@ public Builder clearSingleUtterance() {
      * 
* * bool interim_results = 3; + * * @return The interimResults. */ @java.lang.Override @@ -804,6 +915,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
@@ -812,17 +925,20 @@ 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -831,6 +947,7 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 3; + * * @return This builder for chaining. */ public Builder clearInterimResults() { @@ -839,9 +956,9 @@ public Builder clearInterimResults() { 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); } @@ -851,12 +968,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(); } @@ -865,27 +983,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -900,6 +1018,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java index 73a8d60b1e89..40aa63db7d36 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java similarity index 73% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java index d59885078a57..6726065e8e16 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java +++ b/java-speech/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,33 +45,38 @@ 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;
   }
-  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;
+
   @SuppressWarnings("serial")
-  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`).
@@ -61,13 +84,17 @@ protected java.lang.Object newInstance(
    * 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`).
@@ -75,14 +102,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`).
@@ -90,13 +121,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`).
@@ -104,13 +138,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`).
@@ -118,17 +155,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_ = false; /** + * + * *
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -138,6 +178,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g
    * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -148,6 +189,8 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_ = 0F; /** + * + * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -157,6 +200,7 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -167,12 +211,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 @@ -180,19 +227,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.
@@ -202,12 +256,16 @@ public com.google.protobuf.Duration getResultEndTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
-    return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
+    return resultEndTime_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : resultEndTime_;
   }
 
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_ = 0;
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -215,6 +273,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -223,9 +282,12 @@ public int getChannelTag() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") 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
@@ -233,6 +295,7 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -241,14 +304,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
@@ -256,16 +320,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 { @@ -274,6 +337,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,8 +349,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)); } @@ -315,24 +378,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_); @@ -345,29 +403,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -384,11 +437,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(); @@ -403,96 +454,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.
@@ -500,33 +559,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -551,13 +609,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();
     }
 
@@ -572,14 +631,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result) {
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -591,7 +654,8 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.Stream
       }
     }
 
-    private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result) {
+    private void buildPartial0(
+        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.isFinal_ = isFinal_;
@@ -600,9 +664,8 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognitio
         result.stability_ = stability_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.resultEndTime_ = resultEndTimeBuilder_ == null
-            ? resultEndTime_
-            : resultEndTimeBuilder_.build();
+        result.resultEndTime_ =
+            resultEndTimeBuilder_ == null ? resultEndTime_ : resultEndTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.channelTag_ = channelTag_;
@@ -616,38 +679,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognitio
     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;
@@ -655,7 +719,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()) {
@@ -674,9 +740,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_);
           }
@@ -725,52 +792,57 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(),
-                      extensionRegistry);
-              if (alternativesBuilder_ == null) {
-                ensureAlternativesIsMutable();
-                alternatives_.add(m);
-              } else {
-                alternativesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 16: {
-              isFinal_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 29: {
-              stability_ = input.readFloat();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 29
-            case 34: {
-              input.readMessage(
-                  getResultEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 40: {
-              channelTag_ = input.readInt32();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 40
-            case 50: {
-              languageCode_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(),
+                        extensionRegistry);
+                if (alternativesBuilder_ == null) {
+                  ensureAlternativesIsMutable();
+                  alternatives_.add(m);
+                } else {
+                  alternativesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 16:
+              {
+                isFinal_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 29:
+              {
+                stability_ = input.readFloat();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 29
+            case 34:
+              {
+                input.readMessage(getResultEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 40:
+              {
+                channelTag_ = input.readInt32();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+            case 50:
+              {
+                languageCode_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -780,21 +852,30 @@ public Builder mergeFrom(
       } // finally
       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`).
@@ -802,9 +883,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 { @@ -812,6 +895,8 @@ public java.util.List * May contain one or more recognition hypotheses (up to the * maximum specified in `max_alternatives`). @@ -819,7 +904,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) { @@ -829,6 +915,8 @@ public int getAlternativesCount() { } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -836,9 +924,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 { @@ -846,6 +936,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -853,7 +945,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) { @@ -870,6 +963,8 @@ public Builder setAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -877,10 +972,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()); @@ -891,6 +988,8 @@ public Builder setAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -898,9 +997,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(); @@ -914,6 +1015,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`).
@@ -921,7 +1024,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) { @@ -938,6 +1042,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -945,7 +1051,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) { @@ -959,6 +1066,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -966,10 +1075,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()); @@ -980,6 +1091,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -987,14 +1100,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); @@ -1002,6 +1116,8 @@ public Builder addAllAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1009,7 +1125,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) { @@ -1022,6 +1139,8 @@ public Builder clearAlternatives() { return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1029,7 +1148,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) { @@ -1042,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`).
@@ -1049,13 +1171,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`).
@@ -1063,16 +1188,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`).
@@ -1080,10 +1209,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 { @@ -1091,6 +1222,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1098,13 +1231,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`).
@@ -1112,14 +1250,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`).
@@ -1127,29 +1270,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
@@ -1159,6 +1308,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder ad
      * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -1166,6 +1316,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
@@ -1175,17 +1327,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1195,6 +1350,7 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; + * * @return This builder for chaining. */ public Builder clearIsFinal() { @@ -1204,8 +1360,10 @@ public Builder clearIsFinal() { 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
@@ -1215,6 +1373,7 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -1222,6 +1381,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
@@ -1231,17 +1392,20 @@ public float getStability() {
      * 
* * float stability = 3; + * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; bitField0_ |= 0x00000004; 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
@@ -1251,6 +1415,7 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; + * * @return This builder for chaining. */ public Builder clearStability() { @@ -1262,36 +1427,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 ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * 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.
@@ -1313,6 +1491,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.
@@ -1320,8 +1500,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();
       } else {
@@ -1332,6 +1511,8 @@ public Builder setResultEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1341,9 +1522,9 @@ public Builder setResultEndTime(
      */
     public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          resultEndTime_ != null &&
-          resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && resultEndTime_ != null
+            && resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndTimeBuilder().mergeFrom(value);
         } else {
           resultEndTime_ = value;
@@ -1356,6 +1537,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.
@@ -1374,6 +1557,8 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1387,6 +1572,8 @@ public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1398,11 +1585,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.
@@ -1411,21 +1601,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.
@@ -1433,6 +1628,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -1440,6 +1636,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.
@@ -1447,17 +1645,20 @@ 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1465,6 +1666,7 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; + * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1476,6 +1678,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
@@ -1483,13 +1687,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; @@ -1498,6 +1702,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
@@ -1505,15 +1711,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 { @@ -1521,6 +1726,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
@@ -1528,18 +1735,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000020; 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
@@ -1547,6 +1758,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1556,6 +1768,8 @@ public Builder clearLanguageCode() { 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,21 +1777,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000020; 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); } @@ -1587,12 +1803,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(); } @@ -1601,27 +1818,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1636,6 +1853,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java similarity index 82% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java index 3d6da9c0a6f4..8a2935d3769e 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java similarity index 71% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java index 3d47de7e1678..b7ab12b6c9c8 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java +++ b/java-speech/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,52 +31,56 @@
  *
  * 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;
   }
-  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;
     }
@@ -75,25 +96,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
@@ -101,6 +127,7 @@ public int getNumber() {
    * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -108,6 +135,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
@@ -115,16 +144,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
@@ -134,15 +166,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
@@ -155,6 +190,7 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder get
    * 
* * bytes audio_content = 2; + * * @return Whether the audioContent field is set. */ @java.lang.Override @@ -162,6 +198,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
@@ -174,6 +212,7 @@ public boolean hasAudioContent() {
    * 
* * bytes audio_content = 2; + * * @return The audioContent. */ @java.lang.Override @@ -185,6 +224,7 @@ public com.google.protobuf.ByteString getAudioContent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,14 +236,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_); } getUnknownFields().writeTo(output); } @@ -215,13 +254,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -231,22 +271,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: @@ -280,96 +319,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
@@ -380,33 +427,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -420,9 +466,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
@@ -441,8 +487,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result =
+          new com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -452,11 +501,11 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognizeR
       int from_bitField0_ = bitField0_;
     }
 
-    private void buildPartialOneofs(com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result) {
+    private void buildPartialOneofs(
+        com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result) {
       result.streamingRequestCase_ = streamingRequestCase_;
       result.streamingRequest_ = this.streamingRequest_;
-      if (streamingRequestCase_ == 1 &&
-          streamingConfigBuilder_ != null) {
+      if (streamingRequestCase_ == 1 && streamingConfigBuilder_ != null) {
         result.streamingRequest_ = streamingConfigBuilder_.build();
       }
     }
@@ -465,38 +514,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v1p1beta1.StreamingRecog
     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;
@@ -504,19 +554,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.getUnknownFields());
       onChanged();
@@ -544,24 +598,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getStreamingConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              streamingRequestCase_ = 1;
-              break;
-            } // case 10
-            case 18: {
-              streamingRequest_ = input.readBytes();
-              streamingRequestCase_ = 2;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getStreamingConfigFieldBuilder().getBuilder(), extensionRegistry);
+                streamingRequestCase_ = 1;
+                break;
+              } // case 10
+            case 18:
+              {
+                streamingRequest_ = input.readBytes();
+                streamingRequestCase_ = 2;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -571,12 +626,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -589,8 +644,13 @@ public Builder clearStreamingRequest() {
     private int bitField0_;
 
     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
@@ -598,6 +658,7 @@ public Builder clearStreamingRequest() {
      * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -605,6 +666,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
@@ -612,6 +675,7 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return The streamingConfig. */ @java.lang.Override @@ -629,6 +693,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
@@ -637,7 +703,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();
@@ -651,6 +718,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
@@ -671,6 +740,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
@@ -679,12 +750,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;
         }
@@ -700,6 +778,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
@@ -725,6 +805,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
@@ -733,10 +815,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
@@ -746,7 +831,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 {
@@ -757,6 +843,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
@@ -766,14 +854,20 @@ 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());
@@ -785,6 +879,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder get
     }
 
     /**
+     *
+     *
      * 
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -797,12 +893,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
@@ -815,6 +914,7 @@ public boolean hasAudioContent() {
      * 
* * bytes audio_content = 2; + * * @return The audioContent. */ public com.google.protobuf.ByteString getAudioContent() { @@ -824,6 +924,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
@@ -836,17 +938,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(); } + if (value == null) { + 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
@@ -859,6 +966,7 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 2; + * * @return This builder for chaining. */ public Builder clearAudioContent() { @@ -869,9 +977,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); } @@ -881,12 +989,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(); } @@ -895,27 +1003,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -930,6 +1038,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java similarity index 78% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java index e77bf66cfcba..f6b61734f16b 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java similarity index 74% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java index 0c9ad5afff96..fba0d2affa9b 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java +++ b/java-speech/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,39 +79,43 @@ 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;
   }
-  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.
      * 
@@ -102,6 +124,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
@@ -119,6 +143,8 @@ public enum SpeechEventType
     ;
 
     /**
+     *
+     *
      * 
      * No speech event specified.
      * 
@@ -127,6 +153,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
@@ -141,7 +169,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(
@@ -166,39 +193,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();
@@ -206,8 +237,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;
@@ -227,12 +257,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 @@ -240,12 +273,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 @@ -253,6 +289,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.
@@ -266,9 +304,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -279,10 +320,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.
@@ -293,11 +337,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.
@@ -312,6 +359,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.
@@ -326,6 +375,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.
@@ -344,38 +395,58 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder get
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 4;
   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; + * + * * @return The speechEventType. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.forNumber(speechEventType_); - return result == null ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.forNumber( + 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 @@ -383,19 +454,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.
@@ -405,17 +483,22 @@ public com.google.protobuf.Duration getTotalBilledTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
-    return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_;
+    return totalBilledTime_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : totalBilledTime_;
   }
 
   public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 9;
   private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_;
   /**
+   *
+   *
    * 
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -423,18 +506,25 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } /** + * + * *
    * Provides information on adaptation behavior in response
    * 
@@ -442,19 +532,25 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptatio * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 10; private long requestId_ = 0L; /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 10; + * * @return The requestId. */ @java.lang.Override @@ -463,6 +559,7 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -474,15 +571,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) { @@ -504,28 +603,26 @@ 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()); } if (speechAdaptationInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getSpeechAdaptationInfo()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, requestId_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -535,33 +632,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.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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo() - .equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() - != other.getRequestId()) return false; + if (getRequestId() != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -592,104 +685,111 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } 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`
@@ -731,33 +831,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -790,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();
     }
 
@@ -811,14 +911,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000002) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -830,25 +934,24 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.Stream
       }
     }
 
-    private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result) {
+    private void buildPartial0(
+        com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.error_ = errorBuilder_ == null
-            ? error_
-            : errorBuilder_.build();
+        result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.speechEventType_ = speechEventType_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
-            ? totalBilledTime_
-            : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ =
+            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
-            ? speechAdaptationInfo_
-            : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ =
+            speechAdaptationInfoBuilder_ == null
+                ? speechAdaptationInfo_
+                : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.requestId_ = requestId_;
@@ -859,38 +962,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognizeR
     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;
@@ -898,7 +1002,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());
       }
@@ -920,9 +1026,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognizeRes
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            resultsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResultsFieldBuilder() : null;
+            resultsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResultsFieldBuilder()
+                    : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -966,56 +1073,58 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getErrorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.parser(),
-                      extensionRegistry);
-              if (resultsBuilder_ == null) {
-                ensureResultsIsMutable();
-                results_.add(m);
-              } else {
-                resultsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            case 32: {
-              speechEventType_ = input.readEnum();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 32
-            case 42: {
-              input.readMessage(
-                  getTotalBilledTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 42
-            case 74: {
-              input.readMessage(
-                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 74
-            case 80: {
-              requestId_ = input.readInt64();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 80
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.parser(),
+                        extensionRegistry);
+                if (resultsBuilder_ == null) {
+                  ensureResultsIsMutable();
+                  results_.add(m);
+                } else {
+                  resultsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            case 32:
+              {
+                speechEventType_ = input.readEnum();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 32
+            case 42:
+              {
+                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 42
+            case 74:
+              {
+                input.readMessage(
+                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 74
+            case 80:
+              {
+                requestId_ = input.readInt64();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 80
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1025,30 +1134,38 @@ public Builder mergeFrom(
       } // finally
       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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * 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() { @@ -1059,6 +1176,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.
@@ -1080,6 +1199,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.
@@ -1087,8 +1208,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();
       } else {
@@ -1099,6 +1219,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1108,9 +1230,9 @@ public Builder setError(
      */
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          error_ != null &&
-          error_ != com.google.rpc.Status.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && error_ != null
+            && error_ != com.google.rpc.Status.getDefaultInstance()) {
           getErrorBuilder().mergeFrom(value);
         } else {
           error_ = value;
@@ -1123,6 +1245,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.
@@ -1141,6 +1265,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1154,6 +1280,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() {
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1165,11 +1293,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.
@@ -1178,32 +1307,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_ & 0x00000002) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(
+                results_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     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.
@@ -1213,7 +1350,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 {
@@ -1221,6 +1359,8 @@ public java.util.List
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1238,6 +1378,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1255,6 +1397,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.
@@ -1279,6 +1423,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.
@@ -1289,7 +1435,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());
@@ -1300,6 +1447,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.
@@ -1323,6 +1472,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.
@@ -1347,6 +1498,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.
@@ -1368,6 +1521,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.
@@ -1378,7 +1533,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());
@@ -1389,6 +1545,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.
@@ -1399,11 +1557,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);
@@ -1411,6 +1569,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.
@@ -1431,6 +1591,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.
@@ -1451,6 +1613,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.
@@ -1465,6 +1629,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.
@@ -1474,14 +1640,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.
@@ -1491,8 +1660,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 {
@@ -1500,6 +1670,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.
@@ -1509,11 +1681,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.
@@ -1525,10 +1701,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.
@@ -1538,20 +1718,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_ & 0x00000002) != 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_ & 0x00000002) != 0), getParentForChildren(), isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1559,22 +1742,33 @@ 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. */ @@ -1585,28 +1779,45 @@ public Builder setSpeechEventTypeValue(int value) { 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() { - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.forNumber(speechEventType_); - return result == null ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.forNumber( + 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(); } @@ -1616,11 +1827,16 @@ public Builder setSpeechEventType(com.google.cloud.speech.v1p1beta1.StreamingRec 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() { @@ -1632,36 +1848,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 ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * 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.
@@ -1683,6 +1912,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.
@@ -1690,8 +1921,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();
       } else {
@@ -1702,6 +1932,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.
@@ -1711,9 +1943,9 @@ public Builder setTotalBilledTime(
      */
     public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       if (totalBilledTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          totalBilledTime_ != null &&
-          totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && totalBilledTime_ != null
+            && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getTotalBilledTimeBuilder().mergeFrom(value);
         } else {
           totalBilledTime_ = value;
@@ -1726,6 +1958,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.
@@ -1744,6 +1978,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.
@@ -1757,6 +1993,8 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() {
       return getTotalBilledTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1768,11 +2006,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.
@@ -1781,14 +2022,17 @@ 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_;
@@ -1796,41 +2040,55 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
 
     private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_;
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo,
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>
+        speechAdaptationInfoBuilder_;
     /**
+     *
+     *
      * 
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder setSpeechAdaptationInfo( + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1844,6 +2102,8 @@ public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechA return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1862,17 +2122,21 @@ public Builder setSpeechAdaptationInfo( return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo( + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - speechAdaptationInfo_ != null && - speechAdaptationInfo_ != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && speechAdaptationInfo_ != null + && speechAdaptationInfo_ + != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -1885,6 +2149,8 @@ public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.Speec return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1902,33 +2168,42 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder + getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null ? - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1936,27 +2211,33 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeech * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), - getParentForChildren(), - isClean()); + speechAdaptationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), getParentForChildren(), isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_ ; + private long requestId_; /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; + * * @return The requestId. */ @java.lang.Override @@ -1964,29 +2245,35 @@ public long getRequestId() { return requestId_; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; + * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1995,9 +2282,9 @@ public Builder clearRequestId() { 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); } @@ -2007,12 +2294,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(); } @@ -2021,27 +2309,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2056,6 +2344,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java similarity index 83% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java index b1386d9a3fa9..5997fc2d431a 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java +++ b/java-speech/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.
@@ -146,39 +197,51 @@ com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder getResults
   com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder(); /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 10; + * * @return The requestId. */ long getRequestId(); diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java similarity index 71% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java index e15a0b452024..615d5bf14767 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java +++ b/java-speech/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,114 +30,133 @@
  *
  * 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;
   }
-  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_ = ""; @@ -128,38 +164,43 @@ 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object search_ = ""; /** + * + * *
      * What to replace. Max length is 100 characters.
      * 
* * string search = 1; + * * @return The search. */ @java.lang.Override @@ -168,29 +209,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 { @@ -199,14 +240,18 @@ public java.lang.String getSearch() { } public static final int REPLACE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object replace_ = ""; /** + * + * *
      * What to replace with. Max length is 100 characters.
      * 
* * string replace = 2; + * * @return The replace. */ @java.lang.Override @@ -215,29 +260,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 { @@ -248,11 +293,14 @@ public java.lang.String getReplace() { public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; private boolean caseSensitive_ = false; /** + * + * *
      * Whether the search is case sensitive.
      * 
* * bool case_sensitive = 3; + * * @return The caseSensitive. */ @java.lang.Override @@ -261,6 +309,7 @@ public boolean getCaseSensitive() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,8 +321,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_); } @@ -299,8 +347,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -310,19 +357,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,95 +384,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) + getUnknownFields().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 @@ -437,39 +489,42 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -481,13 +536,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(); } @@ -502,13 +558,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result = + new com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result) { + private void buildPartial0( + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.search_ = search_; @@ -525,46 +585,52 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.TranscriptNormaliza 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_; bitField0_ |= 0x00000001; @@ -604,27 +670,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - search_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - replace_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - caseSensitive_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + search_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + replace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + caseSensitive_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -634,22 +704,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -658,20 +731,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 { @@ -679,28 +753,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setSearch(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } search_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; + * * @return This builder for chaining. */ public Builder clearSearch() { @@ -710,17 +791,21 @@ public Builder clearSearch() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setSearchBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); search_ = value; bitField0_ |= 0x00000001; @@ -730,18 +815,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; @@ -750,20 +837,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 { @@ -771,28 +859,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setReplace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } replace_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; + * * @return This builder for chaining. */ public Builder clearReplace() { @@ -802,17 +897,21 @@ public Builder clearReplace() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setReplaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); replace_ = value; bitField0_ |= 0x00000002; @@ -820,13 +919,16 @@ public Builder setReplaceBytes( return this; } - private boolean caseSensitive_ ; + private boolean caseSensitive_; /** + * + * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; + * * @return The caseSensitive. */ @java.lang.Override @@ -834,27 +936,33 @@ 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; + * * @return This builder for chaining. */ public Builder clearCaseSensitive() { @@ -863,6 +971,7 @@ public Builder clearCaseSensitive() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -875,41 +984,44 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -921,16 +1033,19 @@ 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; + @SuppressWarnings("serial") 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"
@@ -941,10 +1056,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"
@@ -955,11 +1073,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"
@@ -974,6 +1095,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"
@@ -988,6 +1111,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"
@@ -998,12 +1123,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;
@@ -1015,8 +1141,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));
     }
@@ -1030,8 +1155,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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1041,15 +1165,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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -1071,96 +1195,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
@@ -1170,33 +1302,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1212,9 +1343,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
@@ -1233,14 +1364,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.TranscriptNormalization result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v1p1beta1.TranscriptNormalization result) {
       if (entriesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           entries_ = java.util.Collections.unmodifiableList(entries_);
@@ -1260,38 +1395,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.TranscriptNormaliza
     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;
@@ -1299,7 +1435,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()) {
@@ -1318,9 +1455,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_);
           }
@@ -1352,25 +1490,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.parser(),
-                      extensionRegistry);
-              if (entriesBuilder_ == null) {
-                ensureEntriesIsMutable();
-                entries_.add(m);
-              } else {
-                entriesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.parser(),
+                        extensionRegistry);
+                if (entriesBuilder_ == null) {
+                  ensureEntriesIsMutable();
+                  entries_.add(m);
+                } else {
+                  entriesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1380,21 +1520,30 @@ public Builder mergeFrom(
       } // finally
       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"
@@ -1402,9 +1551,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 { @@ -1412,6 +1563,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" @@ -1419,7 +1572,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) { @@ -1429,6 +1583,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"
@@ -1436,7 +1592,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) { @@ -1446,6 +1603,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"
@@ -1453,7 +1612,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) { @@ -1470,6 +1630,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"
@@ -1477,10 +1639,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()); @@ -1491,6 +1655,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"
@@ -1498,9 +1664,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(); @@ -1514,6 +1682,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"
@@ -1521,7 +1691,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) { @@ -1538,6 +1709,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"
@@ -1545,7 +1718,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) { @@ -1559,6 +1733,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"
@@ -1566,10 +1742,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()); @@ -1580,6 +1758,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"
@@ -1587,14 +1767,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); @@ -1602,6 +1784,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"
@@ -1609,7 +1793,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) { @@ -1622,6 +1807,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"
@@ -1629,7 +1816,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) { @@ -1642,6 +1830,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"
@@ -1649,13 +1839,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"
@@ -1663,16 +1856,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"
@@ -1680,10 +1877,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 { @@ -1691,6 +1890,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"
@@ -1698,13 +1899,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"
@@ -1712,14 +1918,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"
@@ -1727,29 +1938,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); } @@ -1759,12 +1974,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(); } @@ -1773,27 +1988,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1808,6 +2023,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.TranscriptNormalization getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java similarity index 78% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java index fa51b40b7003..11549b4c3678 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
similarity index 67%
rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
index 65a8b62eb71a..6fb07026dcf3 100644
--- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
+++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
@@ -1,60 +1,81 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License 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; } - 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; } @@ -70,24 +91,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
@@ -95,12 +120,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
@@ -108,6 +136,7 @@ public boolean hasGcsUri() {
    * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ public java.lang.String getGcsUri() { @@ -118,8 +147,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; @@ -128,6 +156,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
@@ -135,18 +165,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; } @@ -157,6 +186,7 @@ public java.lang.String getGcsUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +198,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_); } @@ -193,18 +222,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: @@ -234,129 +263,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -367,9 +403,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 @@ -388,8 +424,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result = + new com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -399,7 +438,8 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.TranscriptOutputCon int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result) { + private void buildPartialOneofs( + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result) { result.outputTypeCase_ = outputTypeCase_; result.outputType_ = this.outputType_; } @@ -408,38 +448,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v1p1beta1.TranscriptOutp 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; @@ -447,17 +488,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.getUnknownFields()); onChanged(); @@ -485,18 +529,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - outputTypeCase_ = 1; - outputType_ = s; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + outputTypeCase_ = 1; + outputType_ = s; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -506,12 +552,12 @@ public Builder mergeFrom( } // finally 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() { @@ -524,6 +570,8 @@ public Builder clearOutputType() { private int bitField0_; /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -531,6 +579,7 @@ public Builder clearOutputType() {
      * 
* * string gcs_uri = 1; + * * @return Whether the gcsUri field is set. */ @java.lang.Override @@ -538,6 +587,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
@@ -545,6 +596,7 @@ public boolean hasGcsUri() {
      * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ @java.lang.Override @@ -554,8 +606,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; @@ -566,6 +617,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
@@ -573,19 +626,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; } @@ -595,6 +647,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
@@ -602,18 +656,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + 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
@@ -621,6 +679,7 @@ public Builder setGcsUri(
      * 
* * string gcs_uri = 1; + * * @return This builder for chaining. */ public Builder clearGcsUri() { @@ -632,6 +691,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
@@ -639,21 +700,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + 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); } @@ -663,12 +726,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(); } @@ -677,27 +740,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -712,6 +775,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java similarity index 61% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java index 3733fac7b5f9..102d1f01edf5 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java similarity index 70% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java index cdbcccc6ceb9..2145f8a07c4f 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java @@ -1,55 +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_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; } - 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
@@ -62,7 +82,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -70,6 +93,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
@@ -82,14 +107,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
@@ -102,21 +134,28 @@ 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() { - return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() + : customClass_; } 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 @@ -124,11 +163,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 @@ -136,6 +178,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * 
@@ -148,6 +192,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +204,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()); } @@ -177,12 +221,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -192,22 +234,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -234,129 +275,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +423,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 @@ -396,8 +444,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest result = + new com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -405,14 +456,11 @@ public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest buildPartial() private void buildPartial0(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.customClass_ = customClassBuilder_ == null - ? customClass_ - : customClassBuilder_.build(); + result.customClass_ = + customClassBuilder_ == null ? customClass_ : customClassBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -420,38 +468,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRe 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; @@ -459,7 +508,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()); } @@ -492,26 +542,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCustomClassFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -521,12 +570,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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
@@ -539,13 +594,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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -558,17 +618,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
@@ -581,7 +648,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) { @@ -597,6 +666,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
@@ -609,7 +680,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) { @@ -623,6 +696,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
@@ -635,13 +710,15 @@ 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 (((bitField0_ & 0x00000001) != 0) && - customClass_ != null && - customClass_ != com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && customClass_ != null + && customClass_ != com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -654,6 +731,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
@@ -666,7 +745,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -679,6 +760,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
@@ -691,7 +774,9 @@ 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() { bitField0_ |= 0x00000001; @@ -699,6 +784,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassBuild return getCustomClassFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -711,17 +798,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
@@ -734,17 +826,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_; @@ -752,34 +849,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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.
      * 
@@ -800,14 +910,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(); } else { @@ -818,6 +929,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -826,9 +939,9 @@ public Builder setUpdateMask( */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -841,6 +954,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -858,6 +973,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -870,6 +987,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -880,11 +999,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.
      * 
@@ -892,21 +1014,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); } @@ -916,12 +1041,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(); } @@ -930,27 +1055,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -965,6 +1090,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java index 5ffdf4623cc2..debebb1437ec 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java similarity index 70% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java index 1efe0649bd69..afd2df61b155 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java @@ -1,55 +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_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; } - 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
@@ -62,7 +82,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -70,6 +93,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
@@ -82,14 +107,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
@@ -102,21 +134,28 @@ 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() { - return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() + : phraseSet_; } 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 @@ -124,11 +163,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 @@ -136,6 +178,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * 
@@ -148,6 +192,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +204,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()); } @@ -177,12 +221,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -192,22 +234,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -234,129 +275,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +423,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 @@ -396,8 +444,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -405,14 +456,10 @@ public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest buildPartial() { private void buildPartial0(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.phraseSet_ = phraseSetBuilder_ == null - ? phraseSet_ - : phraseSetBuilder_.build(); + result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -420,38 +467,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequ 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; @@ -459,7 +507,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()); } @@ -492,26 +541,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getPhraseSetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -521,12 +569,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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
@@ -539,13 +593,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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -558,17 +617,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
@@ -581,7 +647,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) { @@ -597,6 +665,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
@@ -609,7 +679,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) { @@ -623,6 +695,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
@@ -635,13 +709,15 @@ 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 (((bitField0_ & 0x00000001) != 0) && - phraseSet_ != null && - phraseSet_ != com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && phraseSet_ != null + && phraseSet_ != com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -654,6 +730,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
@@ -666,7 +744,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -679,6 +759,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
@@ -691,7 +773,9 @@ 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() { bitField0_ |= 0x00000001; @@ -699,6 +783,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetBuilder() return getPhraseSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -711,17 +797,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
@@ -734,17 +825,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_; @@ -752,34 +848,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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.
      * 
@@ -800,14 +909,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(); } else { @@ -818,6 +928,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -826,9 +938,9 @@ public Builder setUpdateMask( */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -841,6 +953,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -858,6 +972,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -870,6 +986,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -880,11 +998,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.
      * 
@@ -892,21 +1013,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); } @@ -916,12 +1040,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(); } @@ -930,27 +1054,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -965,6 +1089,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java index ae3c2a999eb0..5bb289426a97 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java similarity index 76% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java index 4b5613106d6f..a8286eea3f95 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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.
@@ -61,6 +82,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -68,6 +90,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.
@@ -78,6 +102,7 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -85,6 +110,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.
@@ -104,6 +131,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.
@@ -114,6 +143,7 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -121,6 +151,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.
@@ -131,6 +163,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -138,6 +171,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.
@@ -155,14 +190,18 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
   }
 
   public static final int WORD_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object word_ = "";
   /**
+   *
+   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The word. */ @java.lang.Override @@ -171,29 +210,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 { @@ -204,6 +243,8 @@ public java.lang.String getWord() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_ = 0F; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -215,6 +256,7 @@ public java.lang.String getWord() {
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -225,6 +267,8 @@ public float getConfidence() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_ = 0; /** + * + * *
    * 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
@@ -234,6 +278,7 @@ public float getConfidence() {
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ @java.lang.Override @@ -242,6 +287,7 @@ public int getSpeakerTag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,8 +299,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()); } @@ -280,23 +325,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -306,30 +347,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -352,8 +389,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) + getUnknownFields().hashCode(); @@ -361,130 +397,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -506,9 +548,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 @@ -527,8 +569,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.WordInfo result = + new com.google.cloud.speech.v1p1beta1.WordInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -536,14 +581,10 @@ public com.google.cloud.speech.v1p1beta1.WordInfo buildPartial() { private void buildPartial0(com.google.cloud.speech.v1p1beta1.WordInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null - ? startTime_ - : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.word_ = word_; @@ -560,38 +601,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.WordInfo result) { 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; @@ -643,41 +685,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - word_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 37: { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000008; - break; - } // case 37 - case 40: { - speakerTag_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + word_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 37: + { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + case 40: + { + speakerTag_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -687,12 +731,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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.
@@ -703,12 +753,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -719,6 +772,7 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { @@ -729,6 +783,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.
@@ -754,6 +810,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.
@@ -765,8 +823,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();
       } else {
@@ -777,6 +834,8 @@ public Builder setStartTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -790,9 +849,9 @@ public Builder setStartTime(
      */
     public Builder mergeStartTime(com.google.protobuf.Duration value) {
       if (startTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          startTime_ != null &&
-          startTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && startTime_ != null
+            && startTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getStartTimeBuilder().mergeFrom(value);
         } else {
           startTime_ = value;
@@ -805,6 +864,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.
@@ -827,6 +888,8 @@ public Builder clearStartTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -844,6 +907,8 @@ public com.google.protobuf.Duration.Builder getStartTimeBuilder() {
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -859,11 +924,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.
@@ -876,14 +942,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_;
@@ -891,8 +960,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.
@@ -903,12 +977,15 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -919,6 +996,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { @@ -929,6 +1007,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.
@@ -954,6 +1034,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.
@@ -965,8 +1047,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();
       } else {
@@ -977,6 +1058,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -990,9 +1073,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Duration value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1005,6 +1088,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.
@@ -1027,6 +1112,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1044,6 +1131,8 @@ public com.google.protobuf.Duration.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1059,11 +1148,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.
@@ -1076,14 +1166,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_;
@@ -1091,18 +1184,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; @@ -1111,20 +1206,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 { @@ -1132,28 +1228,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setWord(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } word_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @return This builder for chaining. */ public Builder clearWord() { @@ -1163,17 +1266,21 @@ public Builder clearWord() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setWordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); word_ = value; bitField0_ |= 0x00000004; @@ -1181,8 +1288,10 @@ public Builder setWordBytes( 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
@@ -1194,6 +1303,7 @@ public Builder setWordBytes(
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1201,6 +1311,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
@@ -1212,17 +1324,20 @@ public float getConfidence() {
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000008; 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
@@ -1234,6 +1349,7 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -1243,8 +1359,10 @@ public Builder clearConfidence() { 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
@@ -1254,6 +1372,7 @@ public Builder clearConfidence() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ @java.lang.Override @@ -1261,6 +1380,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
@@ -1270,17 +1391,20 @@ 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; bitField0_ |= 0x00000010; 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
@@ -1290,6 +1414,7 @@ public Builder setSpeakerTag(int value) {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearSpeakerTag() { @@ -1298,9 +1423,9 @@ public Builder clearSpeakerTag() { 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); } @@ -1310,12 +1435,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(); } @@ -1324,27 +1449,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1359,6 +1484,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java similarity index 84% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java index b811f0f3088d..0bdb11ab40df 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java similarity index 64% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java index 0ad7af9e165f..82aaf8ce8a3a 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Automatically detected decoding parameters.
  * Supported for the following encodings:
@@ -20,44 +37,46 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.AutoDetectDecodingConfig}
  */
-public final class AutoDetectDecodingConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AutoDetectDecodingConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.AutoDetectDecodingConfig)
     AutoDetectDecodingConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AutoDetectDecodingConfig.newBuilder() to construct.
   private AutoDetectDecodingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private AutoDetectDecodingConfig() {
-  }
+
+  private AutoDetectDecodingConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AutoDetectDecodingConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.AutoDetectDecodingConfig.class, com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder.class);
+            com.google.cloud.speech.v2.AutoDetectDecodingConfig.class,
+            com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -69,8 +88,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 {
     getUnknownFields().writeTo(output);
   }
 
@@ -88,12 +106,13 @@ 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.v2.AutoDetectDecodingConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.AutoDetectDecodingConfig other = (com.google.cloud.speech.v2.AutoDetectDecodingConfig) obj;
+    com.google.cloud.speech.v2.AutoDetectDecodingConfig other =
+        (com.google.cloud.speech.v2.AutoDetectDecodingConfig) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -112,96 +131,103 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v2.AutoDetectDecodingConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v2.AutoDetectDecodingConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig 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;
   }
   /**
+   *
+   *
    * 
    * Automatically detected decoding parameters.
    * Supported for the following encodings:
@@ -218,33 +244,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.AutoDetectDecodingConfig}
    */
-  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.v2.AutoDetectDecodingConfig)
       com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.AutoDetectDecodingConfig.class, com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder.class);
+              com.google.cloud.speech.v2.AutoDetectDecodingConfig.class,
+              com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.AutoDetectDecodingConfig.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -252,9 +277,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
     }
 
     @java.lang.Override
@@ -273,7 +298,8 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.AutoDetectDecodingConfig buildPartial() {
-      com.google.cloud.speech.v2.AutoDetectDecodingConfig result = new com.google.cloud.speech.v2.AutoDetectDecodingConfig(this);
+      com.google.cloud.speech.v2.AutoDetectDecodingConfig result =
+          new com.google.cloud.speech.v2.AutoDetectDecodingConfig(this);
       onBuilt();
       return result;
     }
@@ -282,38 +308,39 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig) {
-        return mergeFrom((com.google.cloud.speech.v2.AutoDetectDecodingConfig)other);
+        return mergeFrom((com.google.cloud.speech.v2.AutoDetectDecodingConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -321,7 +348,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.AutoDetectDecodingConfig other) {
-      if (other == com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance())
+        return this;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -348,12 +376,13 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -363,9 +392,9 @@ public Builder mergeFrom(
       } // finally
       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);
     }
 
@@ -375,12 +404,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.AutoDetectDecodingConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.AutoDetectDecodingConfig)
   private static final com.google.cloud.speech.v2.AutoDetectDecodingConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.AutoDetectDecodingConfig();
   }
@@ -389,27 +418,27 @@ public static com.google.cloud.speech.v2.AutoDetectDecodingConfig getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public AutoDetectDecodingConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public AutoDetectDecodingConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -424,6 +453,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v2.AutoDetectDecodingConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java
new file mode 100644
index 000000000000..eb900c2c33fb
--- /dev/null
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java
@@ -0,0 +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/v2/cloud_speech.proto
+
+package com.google.cloud.speech.v2;
+
+public interface AutoDetectDecodingConfigOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.AutoDetectDecodingConfig)
+    com.google.protobuf.MessageOrBuilder {}
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java
similarity index 77%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java
index 2759c33fcb35..4cfda3d25d30 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java
@@ -1,60 +1,81 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
+ *
+ *
  * 
  * Metadata about a single file in a batch for BatchRecognize.
  * 
* * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeFileMetadata} */ -public final class BatchRecognizeFileMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchRecognizeFileMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeFileMetadata) BatchRecognizeFileMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchRecognizeFileMetadata.newBuilder() to construct. private BatchRecognizeFileMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchRecognizeFileMetadata() { - } + + private BatchRecognizeFileMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchRecognizeFileMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.BatchRecognizeFileMetadata.class, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder.class); + com.google.cloud.speech.v2.BatchRecognizeFileMetadata.class, + com.google.cloud.speech.v2.BatchRecognizeFileMetadata.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 { URI(1), AUDIOSOURCE_NOT_SET(0); private final int value; + private AudioSourceCase(int value) { this.value = value; } @@ -70,40 +91,48 @@ public static AudioSourceCase valueOf(int value) { public static AudioSourceCase forNumber(int value) { switch (value) { - case 1: return URI; - case 0: return AUDIOSOURCE_NOT_SET; - default: return null; + case 1: + 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 URI_FIELD_NUMBER = 1; /** + * + * *
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; + * * @return Whether the uri field is set. */ public boolean hasUri() { return audioSourceCase_ == 1; } /** + * + * *
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; + * * @return The uri. */ public java.lang.String getUri() { @@ -114,8 +143,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_ == 1) { audioSource_ = s; @@ -124,23 +152,24 @@ public java.lang.String getUri() { } } /** + * + * *
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; if (audioSourceCase_ == 1) { 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_ == 1) { audioSource_ = b; } @@ -153,6 +182,8 @@ public java.lang.String getUri() { public static final int CONFIG_FIELD_NUMBER = 4; private com.google.cloud.speech.v2.RecognitionConfig config_; /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -165,6 +196,7 @@ public java.lang.String getUri() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return Whether the config field is set. */ @java.lang.Override @@ -172,6 +204,8 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -184,13 +218,18 @@ public boolean hasConfig() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -206,12 +245,16 @@ public com.google.cloud.speech.v2.RecognitionConfig getConfig() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder() {
-    return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
+    return config_ == null
+        ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
+        : config_;
   }
 
   public static final int CONFIG_MASK_FIELD_NUMBER = 5;
   private com.google.protobuf.FieldMask configMask_;
   /**
+   *
+   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -229,6 +272,7 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return Whether the configMask field is set. */ @java.lang.Override @@ -236,6 +280,8 @@ public boolean hasConfigMask() { return configMask_ != null; } /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -253,6 +299,7 @@ public boolean hasConfigMask() {
    * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return The configMask. */ @java.lang.Override @@ -260,6 +307,8 @@ public com.google.protobuf.FieldMask getConfigMask() { return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -284,6 +333,7 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -295,8 +345,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 (audioSourceCase_ == 1) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, audioSource_);
     }
@@ -319,12 +368,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, audioSource_);
     }
     if (config_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getConfig());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfig());
     }
     if (configMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getConfigMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getConfigMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -334,28 +381,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.v2.BatchRecognizeFileMetadata)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.BatchRecognizeFileMetadata other = (com.google.cloud.speech.v2.BatchRecognizeFileMetadata) obj;
+    com.google.cloud.speech.v2.BatchRecognizeFileMetadata other =
+        (com.google.cloud.speech.v2.BatchRecognizeFileMetadata) obj;
 
     if (hasConfig() != other.hasConfig()) return false;
     if (hasConfig()) {
-      if (!getConfig()
-          .equals(other.getConfig())) return false;
+      if (!getConfig().equals(other.getConfig())) return false;
     }
     if (hasConfigMask() != other.hasConfigMask()) return false;
     if (hasConfigMask()) {
-      if (!getConfigMask()
-          .equals(other.getConfigMask())) return false;
+      if (!getConfigMask().equals(other.getConfigMask())) return false;
     }
     if (!getAudioSourceCase().equals(other.getAudioSourceCase())) return false;
     switch (audioSourceCase_) {
       case 1:
-        if (!getUri()
-            .equals(other.getUri())) return false;
+        if (!getUri().equals(other.getUri())) return false;
         break;
       case 0:
       default:
@@ -393,129 +438,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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;
   }
   /**
+   *
+   *
    * 
    * Metadata about a single file in a batch for BatchRecognize.
    * 
* * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeFileMetadata} */ - 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.v2.BatchRecognizeFileMetadata) com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.BatchRecognizeFileMetadata.class, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder.class); + com.google.cloud.speech.v2.BatchRecognizeFileMetadata.class, + com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder.class); } // Construct using com.google.cloud.speech.v2.BatchRecognizeFileMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -536,9 +588,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; } @java.lang.Override @@ -557,8 +609,11 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata build() { @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeFileMetadata buildPartial() { - com.google.cloud.speech.v2.BatchRecognizeFileMetadata result = new com.google.cloud.speech.v2.BatchRecognizeFileMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v2.BatchRecognizeFileMetadata result = + new com.google.cloud.speech.v2.BatchRecognizeFileMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -567,14 +622,10 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata buildPartial() { private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeFileMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { - result.config_ = configBuilder_ == null - ? config_ - : configBuilder_.build(); + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.configMask_ = configMaskBuilder_ == null - ? configMask_ - : configMaskBuilder_.build(); + result.configMask_ = configMaskBuilder_ == null ? configMask_ : configMaskBuilder_.build(); } } @@ -587,38 +638,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.BatchRecognizeFileMet 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.v2.BatchRecognizeFileMetadata) { - return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeFileMetadata)other); + return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeFileMetadata) other); } else { super.mergeFrom(other); return this; @@ -626,7 +678,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeFileMetadata other) { - if (other == com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()) + return this; if (other.hasConfig()) { mergeConfig(other.getConfig()); } @@ -634,15 +687,17 @@ public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeFileMetadata o mergeConfigMask(other.getConfigMask()); } switch (other.getAudioSourceCase()) { - case URI: { - audioSourceCase_ = 1; - audioSource_ = other.audioSource_; - onChanged(); - break; - } - case AUDIOSOURCE_NOT_SET: { - break; - } + case URI: + { + audioSourceCase_ = 1; + audioSource_ = other.audioSource_; + onChanged(); + break; + } + case AUDIOSOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -670,32 +725,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - audioSourceCase_ = 1; - audioSource_ = s; - break; - } // case 10 - case 34: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 34 - case 42: { - input.readMessage( - getConfigMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + audioSourceCase_ = 1; + audioSource_ = s; + break; + } // case 10 + case 34: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: + { + input.readMessage(getConfigMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -705,12 +760,12 @@ public Builder mergeFrom( } // finally 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() { @@ -723,11 +778,14 @@ public Builder clearAudioSource() { private int bitField0_; /** + * + * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; + * * @return Whether the uri field is set. */ @java.lang.Override @@ -735,11 +793,14 @@ public boolean hasUri() { return audioSourceCase_ == 1; } /** + * + * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; + * * @return The uri. */ @java.lang.Override @@ -749,8 +810,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_ == 1) { audioSource_ = s; @@ -761,24 +821,25 @@ public java.lang.String getUri() { } } /** + * + * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; + * * @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_ == 1) { 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_ == 1) { audioSource_ = b; } @@ -788,28 +849,35 @@ public java.lang.String getUri() { } } /** + * + * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } audioSourceCase_ = 1; audioSource_ = value; onChanged(); return this; } /** + * + * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -821,17 +889,21 @@ public Builder clearUri() { return this; } /** + * + * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); audioSourceCase_ = 1; audioSource_ = value; @@ -841,8 +913,13 @@ public Builder setUriBytes( private com.google.cloud.speech.v2.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> configBuilder_; + com.google.cloud.speech.v2.RecognitionConfig, + com.google.cloud.speech.v2.RecognitionConfig.Builder, + com.google.cloud.speech.v2.RecognitionConfigOrBuilder> + configBuilder_; /** + * + * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -855,12 +932,15 @@ public Builder setUriBytes(
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -873,16 +953,21 @@ public boolean hasConfig() {
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return The config. */ public com.google.cloud.speech.v2.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -910,6 +995,8 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -923,8 +1010,7 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
      *
      * .google.cloud.speech.v2.RecognitionConfig config = 4;
      */
-    public Builder setConfig(
-        com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
+    public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
       if (configBuilder_ == null) {
         config_ = builderForValue.build();
       } else {
@@ -935,6 +1021,8 @@ public Builder setConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -950,9 +1038,9 @@ public Builder setConfig(
      */
     public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       if (configBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          config_ != null &&
-          config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && config_ != null
+            && config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
           getConfigBuilder().mergeFrom(value);
         } else {
           config_ = value;
@@ -965,6 +1053,8 @@ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -989,6 +1079,8 @@ public Builder clearConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1008,6 +1100,8 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() {
       return getConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1025,11 +1119,14 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
       if (configBuilder_ != null) {
         return configBuilder_.getMessageOrBuilder();
       } else {
-        return config_ == null ?
-            com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
+        return config_ == null
+            ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
+            : config_;
       }
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1044,14 +1141,17 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * .google.cloud.speech.v2.RecognitionConfig config = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> 
+            com.google.cloud.speech.v2.RecognitionConfig,
+            com.google.cloud.speech.v2.RecognitionConfig.Builder,
+            com.google.cloud.speech.v2.RecognitionConfigOrBuilder>
         getConfigFieldBuilder() {
       if (configBuilder_ == null) {
-        configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
-                getConfig(),
-                getParentForChildren(),
-                isClean());
+        configBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v2.RecognitionConfig,
+                com.google.cloud.speech.v2.RecognitionConfig.Builder,
+                com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
+                getConfig(), getParentForChildren(), isClean());
         config_ = null;
       }
       return configBuilder_;
@@ -1059,8 +1159,13 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
 
     private com.google.protobuf.FieldMask configMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> configMaskBuilder_;
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
+        configMaskBuilder_;
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1078,12 +1183,15 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return Whether the configMask field is set. */ public boolean hasConfigMask() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1101,16 +1209,21 @@ public boolean hasConfigMask() {
      * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return The configMask. */ public com.google.protobuf.FieldMask getConfigMask() { if (configMaskBuilder_ == null) { - return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; + return configMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : configMask_; } else { return configMaskBuilder_.getMessage(); } } /** + * + * *
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1143,6 +1256,8 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1161,8 +1276,7 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask config_mask = 5;
      */
-    public Builder setConfigMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (configMaskBuilder_ == null) {
         configMask_ = builderForValue.build();
       } else {
@@ -1173,6 +1287,8 @@ public Builder setConfigMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1193,9 +1309,9 @@ public Builder setConfigMask(
      */
     public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       if (configMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          configMask_ != null &&
-          configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && configMask_ != null
+            && configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getConfigMaskBuilder().mergeFrom(value);
         } else {
           configMask_ = value;
@@ -1208,6 +1324,8 @@ public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1237,6 +1355,8 @@ public Builder clearConfigMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1261,6 +1381,8 @@ public com.google.protobuf.FieldMask.Builder getConfigMaskBuilder() {
       return getConfigMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1283,11 +1405,14 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
       if (configMaskBuilder_ != null) {
         return configMaskBuilder_.getMessageOrBuilder();
       } else {
-        return configMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : configMask_;
+        return configMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : configMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1307,21 +1432,24 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
      * .google.protobuf.FieldMask config_mask = 5;
      */
     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>
         getConfigMaskFieldBuilder() {
       if (configMaskBuilder_ == null) {
-        configMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getConfigMask(),
-                getParentForChildren(),
-                isClean());
+        configMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getConfigMask(), getParentForChildren(), isClean());
         configMask_ = null;
       }
       return configMaskBuilder_;
     }
+
     @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);
     }
 
@@ -1331,12 +1459,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeFileMetadata)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeFileMetadata)
   private static final com.google.cloud.speech.v2.BatchRecognizeFileMetadata DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeFileMetadata();
   }
@@ -1345,27 +1473,27 @@ public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchRecognizeFileMetadata parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchRecognizeFileMetadata parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1380,6 +1508,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.speech.v2.BatchRecognizeFileMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java
similarity index 87%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java
index 0769802337de..8e666904d05e 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java
@@ -1,42 +1,68 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
-public interface BatchRecognizeFileMetadataOrBuilder extends
+public interface BatchRecognizeFileMetadataOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeFileMetadata)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; + * * @return Whether the uri field is set. */ boolean hasUri(); /** + * + * *
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -49,10 +75,13 @@ public interface BatchRecognizeFileMetadataOrBuilder extends
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -65,10 +94,13 @@ public interface BatchRecognizeFileMetadataOrBuilder extends
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return The config. */ com.google.cloud.speech.v2.RecognitionConfig getConfig(); /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -85,6 +117,8 @@ public interface BatchRecognizeFileMetadataOrBuilder extends
   com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -102,10 +136,13 @@ public interface BatchRecognizeFileMetadataOrBuilder extends
    * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return Whether the configMask field is set. */ boolean hasConfigMask(); /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -123,10 +160,13 @@ public interface BatchRecognizeFileMetadataOrBuilder extends
    * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return The configMask. */ com.google.protobuf.FieldMask getConfigMask(); /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java
similarity index 68%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java
index cfb53bc3ef30..17f5d8a3fbc3 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java
@@ -1,62 +1,85 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
+ *
+ *
  * 
  * Final results for a single file.
  * 
* * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeFileResult} */ -public final class BatchRecognizeFileResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchRecognizeFileResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeFileResult) BatchRecognizeFileResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchRecognizeFileResult.newBuilder() to construct. private BatchRecognizeFileResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchRecognizeFileResult() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchRecognizeFileResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.BatchRecognizeFileResult.class, com.google.cloud.speech.v2.BatchRecognizeFileResult.Builder.class); + com.google.cloud.speech.v2.BatchRecognizeFileResult.class, + com.google.cloud.speech.v2.BatchRecognizeFileResult.Builder.class); } public static final int URI_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** + * + * *
    * The GCS URI to which recognition results were written.
    * 
* * string uri = 1; + * * @return The uri. */ @java.lang.Override @@ -65,29 +88,29 @@ 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; } } /** + * + * *
    * The GCS URI to which recognition results were written.
    * 
* * string uri = 1; + * * @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 { @@ -98,11 +121,14 @@ public java.lang.String getUri() { public static final int ERROR_FIELD_NUMBER = 2; private com.google.rpc.Status error_; /** + * + * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ @java.lang.Override @@ -110,11 +136,14 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; + * * @return The error. */ @java.lang.Override @@ -122,6 +151,8 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** + * + * *
    * Error if one was encountered.
    * 
@@ -134,6 +165,7 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -145,8 +177,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(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -166,8 +197,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (error_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getError()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,19 +207,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.v2.BatchRecognizeFileResult)) { return super.equals(obj); } - com.google.cloud.speech.v2.BatchRecognizeFileResult other = (com.google.cloud.speech.v2.BatchRecognizeFileResult) obj; + com.google.cloud.speech.v2.BatchRecognizeFileResult other = + (com.google.cloud.speech.v2.BatchRecognizeFileResult) obj; - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -214,129 +243,135 @@ public int hashCode() { } public static com.google.cloud.speech.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.BatchRecognizeFileResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.BatchRecognizeFileResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult 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; } /** + * + * *
    * Final results for a single file.
    * 
* * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeFileResult} */ - 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.v2.BatchRecognizeFileResult) com.google.cloud.speech.v2.BatchRecognizeFileResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.BatchRecognizeFileResult.class, com.google.cloud.speech.v2.BatchRecognizeFileResult.Builder.class); + com.google.cloud.speech.v2.BatchRecognizeFileResult.class, + com.google.cloud.speech.v2.BatchRecognizeFileResult.Builder.class); } // Construct using com.google.cloud.speech.v2.BatchRecognizeFileResult.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +386,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; } @java.lang.Override @@ -372,8 +407,11 @@ public com.google.cloud.speech.v2.BatchRecognizeFileResult build() { @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeFileResult buildPartial() { - com.google.cloud.speech.v2.BatchRecognizeFileResult result = new com.google.cloud.speech.v2.BatchRecognizeFileResult(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v2.BatchRecognizeFileResult result = + new com.google.cloud.speech.v2.BatchRecognizeFileResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -384,9 +422,7 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeFileResult r result.uri_ = uri_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.error_ = errorBuilder_ == null - ? error_ - : errorBuilder_.build(); + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); } } @@ -394,38 +430,39 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeFileResult r 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.v2.BatchRecognizeFileResult) { - return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeFileResult)other); + return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeFileResult) other); } else { super.mergeFrom(other); return this; @@ -433,7 +470,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeFileResult other) { - if (other == com.google.cloud.speech.v2.BatchRecognizeFileResult.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v2.BatchRecognizeFileResult.getDefaultInstance()) + return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; bitField0_ |= 0x00000001; @@ -468,24 +506,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getErrorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -495,22 +534,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object uri_ = ""; /** + * + * *
      * The GCS URI to which recognition results were written.
      * 
* * string uri = 1; + * * @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; @@ -519,20 +561,21 @@ public java.lang.String getUri() { } } /** + * + * *
      * The GCS URI to which recognition results were written.
      * 
* * string uri = 1; + * * @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 { @@ -540,28 +583,35 @@ public java.lang.String getUri() { } } /** + * + * *
      * The GCS URI to which recognition results were written.
      * 
* * string uri = 1; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The GCS URI to which recognition results were written.
      * 
* * string uri = 1; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -571,17 +621,21 @@ public Builder clearUri() { return this; } /** + * + * *
      * The GCS URI to which recognition results were written.
      * 
* * string uri = 1; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000001; @@ -591,24 +645,31 @@ public Builder setUriBytes( 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_; /** + * + * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -619,6 +680,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * Error if one was encountered.
      * 
@@ -639,14 +702,15 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** + * + * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; */ - public Builder setError( - com.google.rpc.Status.Builder builderForValue) { + public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); } else { @@ -657,6 +721,8 @@ public Builder setError( return this; } /** + * + * *
      * Error if one was encountered.
      * 
@@ -665,9 +731,9 @@ public Builder setError( */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - error_ != null && - error_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; @@ -680,6 +746,8 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** + * + * *
      * Error if one was encountered.
      * 
@@ -697,6 +765,8 @@ public Builder clearError() { return this; } /** + * + * *
      * Error if one was encountered.
      * 
@@ -709,6 +779,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** + * + * *
      * Error if one was encountered.
      * 
@@ -719,11 +791,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_; } } /** + * + * *
      * Error if one was encountered.
      * 
@@ -731,21 +804,21 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 2; */ 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_; } + @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); } @@ -755,12 +828,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeFileResult) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeFileResult) private static final com.google.cloud.speech.v2.BatchRecognizeFileResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeFileResult(); } @@ -769,27 +842,27 @@ public static com.google.cloud.speech.v2.BatchRecognizeFileResult getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRecognizeFileResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchRecognizeFileResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -804,6 +877,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.BatchRecognizeFileResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java similarity index 60% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java index 75094b397db2..5ec2c3bdb67d 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java @@ -1,51 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface BatchRecognizeFileResultOrBuilder extends +public interface BatchRecognizeFileResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeFileResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The GCS URI to which recognition results were written.
    * 
* * string uri = 1; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * The GCS URI to which recognition results were written.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * Error if one was encountered.
    * 
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java similarity index 51% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java index d8db2e8bd21f..cfac2e6b4760 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Operation metadata for
  * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize].
@@ -11,144 +28,177 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeMetadata}
  */
-public final class BatchRecognizeMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchRecognizeMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeMetadata)
     BatchRecognizeMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchRecognizeMetadata.newBuilder() to construct.
   private BatchRecognizeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private BatchRecognizeMetadata() {
-  }
+
+  private BatchRecognizeMetadata() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchRecognizeMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 1:
         return internalGetTranscriptionMetadata();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.BatchRecognizeMetadata.class, com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder.class);
+            com.google.cloud.speech.v2.BatchRecognizeMetadata.class,
+            com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder.class);
   }
 
   public static final int TRANSCRIPTION_METADATA_FIELD_NUMBER = 1;
+
   private static final class TranscriptionMetadataDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-        java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> defaultEntry =
+            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
+        defaultEntry =
             com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.getDefaultInstance());
+                .
+                    newDefaultInstance(
+                        com.google.cloud.speech.v2.CloudSpeechProto
+                            .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_descriptor,
+                        com.google.protobuf.WireFormat.FieldType.STRING,
+                        "",
+                        com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                        com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata
+                            .getDefaultInstance());
   }
+
   @SuppressWarnings("serial")
   private com.google.protobuf.MapField<
-      java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcriptionMetadata_;
-  private com.google.protobuf.MapField
-  internalGetTranscriptionMetadata() {
+          java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
+      transcriptionMetadata_;
+
+  private com.google.protobuf.MapField<
+          java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
+      internalGetTranscriptionMetadata() {
     if (transcriptionMetadata_ == null) {
       return com.google.protobuf.MapField.emptyMapField(
           TranscriptionMetadataDefaultEntryHolder.defaultEntry);
     }
     return transcriptionMetadata_;
   }
+
   public int getTranscriptionMetadataCount() {
     return internalGetTranscriptionMetadata().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Map from provided filename to the transcription metadata for that file.
    * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ @java.lang.Override - public boolean containsTranscriptionMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsTranscriptionMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetTranscriptionMetadata().getMap().containsKey(key); } - /** - * Use {@link #getTranscriptionMetadataMap()} instead. - */ + /** Use {@link #getTranscriptionMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getTranscriptionMetadata() { + public java.util.Map< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> + getTranscriptionMetadata() { return getTranscriptionMetadataMap(); } /** + * + * *
    * Map from provided filename to the transcription metadata for that file.
    * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ @java.lang.Override - public java.util.Map getTranscriptionMetadataMap() { + public java.util.Map< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> + getTranscriptionMetadataMap() { return internalGetTranscriptionMetadata().getMap(); } /** + * + * *
    * Map from provided filename to the transcription metadata for that file.
    * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTranscriptionMetadata().getMap(); + public /* nullable */ com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata + getTranscriptionMetadataOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetTranscriptionMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Map from provided filename to the transcription metadata for that file.
    * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTranscriptionMetadata().getMap(); + public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata + getTranscriptionMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetTranscriptionMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -156,6 +206,7 @@ public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,10 +218,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetTranscriptionMetadata(), TranscriptionMetadataDefaultEntryHolder.defaultEntry, @@ -184,15 +233,18 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetTranscriptionMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry - transcriptionMetadata__ = TranscriptionMetadataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, transcriptionMetadata__); + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> + entry : internalGetTranscriptionMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> + transcriptionMetadata__ = + TranscriptionMetadataDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, transcriptionMetadata__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -202,15 +254,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.v2.BatchRecognizeMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v2.BatchRecognizeMetadata other = (com.google.cloud.speech.v2.BatchRecognizeMetadata) obj; + com.google.cloud.speech.v2.BatchRecognizeMetadata other = + (com.google.cloud.speech.v2.BatchRecognizeMetadata) obj; - if (!internalGetTranscriptionMetadata().equals( - other.internalGetTranscriptionMetadata())) return false; + if (!internalGetTranscriptionMetadata().equals(other.internalGetTranscriptionMetadata())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,96 +285,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.BatchRecognizeMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.BatchRecognizeMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata 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; } /** + * + * *
    * Operation metadata for
    * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize].
@@ -329,55 +389,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeMetadata}
    */
-  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.v2.BatchRecognizeMetadata)
       com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 1:
           return internalGetTranscriptionMetadata();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 1:
           return internalGetMutableTranscriptionMetadata();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.BatchRecognizeMetadata.class, com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder.class);
+              com.google.cloud.speech.v2.BatchRecognizeMetadata.class,
+              com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.BatchRecognizeMetadata.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -387,9 +444,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -408,8 +465,11 @@ public com.google.cloud.speech.v2.BatchRecognizeMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.BatchRecognizeMetadata buildPartial() {
-      com.google.cloud.speech.v2.BatchRecognizeMetadata result = new com.google.cloud.speech.v2.BatchRecognizeMetadata(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.BatchRecognizeMetadata result =
+          new com.google.cloud.speech.v2.BatchRecognizeMetadata(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -426,38 +486,39 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeMetadata res
     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.v2.BatchRecognizeMetadata) {
-        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeMetadata)other);
+        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -465,9 +526,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeMetadata other) {
-      if (other == com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance()) return this;
-      internalGetMutableTranscriptionMetadata().mergeFrom(
-          other.internalGetTranscriptionMetadata());
+      if (other == com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance())
+        return this;
+      internalGetMutableTranscriptionMetadata().mergeFrom(other.internalGetTranscriptionMetadata());
       bitField0_ |= 0x00000001;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -495,21 +556,28 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.protobuf.MapEntry
-              transcriptionMetadata__ = input.readMessage(
-                  TranscriptionMetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableTranscriptionMetadata().getMutableMap().put(
-                  transcriptionMetadata__.getKey(), transcriptionMetadata__.getValue());
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.protobuf.MapEntry<
+                        java.lang.String,
+                        com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
+                    transcriptionMetadata__ =
+                        input.readMessage(
+                            TranscriptionMetadataDefaultEntryHolder.defaultEntry.getParserForType(),
+                            extensionRegistry);
+                internalGetMutableTranscriptionMetadata()
+                    .getMutableMap()
+                    .put(transcriptionMetadata__.getKey(), transcriptionMetadata__.getValue());
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -519,11 +587,15 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.MapField<
-        java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcriptionMetadata_;
-    private com.google.protobuf.MapField
+            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
+        transcriptionMetadata_;
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
         internalGetTranscriptionMetadata() {
       if (transcriptionMetadata_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
@@ -531,11 +603,14 @@ public Builder mergeFrom(
       }
       return transcriptionMetadata_;
     }
-    private com.google.protobuf.MapField
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
         internalGetMutableTranscriptionMetadata() {
       if (transcriptionMetadata_ == null) {
-        transcriptionMetadata_ = com.google.protobuf.MapField.newMapField(
-            TranscriptionMetadataDefaultEntryHolder.defaultEntry);
+        transcriptionMetadata_ =
+            com.google.protobuf.MapField.newMapField(
+                TranscriptionMetadataDefaultEntryHolder.defaultEntry);
       }
       if (!transcriptionMetadata_.isMutable()) {
         transcriptionMetadata_ = transcriptionMetadata_.copy();
@@ -544,140 +619,181 @@ public Builder mergeFrom(
       onChanged();
       return transcriptionMetadata_;
     }
+
     public int getTranscriptionMetadataCount() {
       return internalGetTranscriptionMetadata().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ @java.lang.Override - public boolean containsTranscriptionMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsTranscriptionMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetTranscriptionMetadata().getMap().containsKey(key); } - /** - * Use {@link #getTranscriptionMetadataMap()} instead. - */ + /** Use {@link #getTranscriptionMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getTranscriptionMetadata() { + public java.util.Map< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> + getTranscriptionMetadata() { return getTranscriptionMetadataMap(); } /** + * + * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ @java.lang.Override - public java.util.Map getTranscriptionMetadataMap() { + public java.util.Map< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> + getTranscriptionMetadataMap() { return internalGetTranscriptionMetadata().getMap(); } /** + * + * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTranscriptionMetadata().getMap(); + public /* nullable */ com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata + getTranscriptionMetadataOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> + map = internalGetTranscriptionMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTranscriptionMetadata().getMap(); + public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata + getTranscriptionMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> + map = internalGetTranscriptionMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearTranscriptionMetadata() { bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableTranscriptionMetadata().getMutableMap() - .clear(); + internalGetMutableTranscriptionMetadata().getMutableMap().clear(); return this; } /** + * + * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ - public Builder removeTranscriptionMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableTranscriptionMetadata().getMutableMap() - .remove(key); + public Builder removeTranscriptionMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableTranscriptionMetadata().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> getMutableTranscriptionMetadata() { bitField0_ |= 0x00000001; return internalGetMutableTranscriptionMetadata().getMutableMap(); } /** + * + * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ public Builder putTranscriptionMetadata( java.lang.String key, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableTranscriptionMetadata().getMutableMap() - .put(key, value); + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableTranscriptionMetadata().getMutableMap().put(key, value); bitField0_ |= 0x00000001; return this; } /** + * + * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ public Builder putAllTranscriptionMetadata( - java.util.Map values) { - internalGetMutableTranscriptionMetadata().getMutableMap() - .putAll(values); + java.util.Map< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> + values) { + internalGetMutableTranscriptionMetadata().getMutableMap().putAll(values); bitField0_ |= 0x00000001; 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); } @@ -687,12 +803,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeMetadata) private static final com.google.cloud.speech.v2.BatchRecognizeMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeMetadata(); } @@ -701,27 +817,27 @@ public static com.google.cloud.speech.v2.BatchRecognizeMetadata getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRecognizeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchRecognizeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -736,6 +852,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.BatchRecognizeMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java new file mode 100644 index 000000000000..353613c3a61f --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public interface BatchRecognizeMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Map from provided filename to the transcription metadata for that file.
+   * 
+ * + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + */ + int getTranscriptionMetadataCount(); + /** + * + * + *
+   * Map from provided filename to the transcription metadata for that file.
+   * 
+ * + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + */ + boolean containsTranscriptionMetadata(java.lang.String key); + /** Use {@link #getTranscriptionMetadataMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getTranscriptionMetadata(); + /** + * + * + *
+   * Map from provided filename to the transcription metadata for that file.
+   * 
+ * + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + */ + java.util.Map + getTranscriptionMetadataMap(); + /** + * + * + *
+   * Map from provided filename to the transcription metadata for that file.
+   * 
+ * + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + */ + /* nullable */ + com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue); + /** + * + * + *
+   * Map from provided filename to the transcription metadata for that file.
+   * 
+ * + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + */ + com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrThrow( + java.lang.String key); +} diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java similarity index 76% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java index 865cc8a206b9..563a9d435667 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeRequest}
  */
-public final class BatchRecognizeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeRequest)
     BatchRecognizeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchRecognizeRequest.newBuilder() to construct.
   private BatchRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private BatchRecognizeRequest() {
     recognizer_ = "";
     files_ = java.util.Collections.emptyList();
@@ -28,38 +46,45 @@ private BatchRecognizeRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.BatchRecognizeRequest.class, com.google.cloud.speech.v2.BatchRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v2.BatchRecognizeRequest.class,
+            com.google.cloud.speech.v2.BatchRecognizeRequest.Builder.class);
   }
 
   public static final int RECOGNIZER_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object recognizer_ = "";
   /**
+   *
+   *
    * 
    * Required. Resource name of the recognizer to be used for ASR.
    * 
* - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The recognizer. */ @java.lang.Override @@ -68,29 +93,31 @@ public java.lang.String getRecognizer() { 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(); recognizer_ = s; return s; } } /** + * + * *
    * Required. Resource name of the recognizer to be used for ASR.
    * 
* - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for recognizer. */ @java.lang.Override - public com.google.protobuf.ByteString - getRecognizerBytes() { + public com.google.protobuf.ByteString getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -101,6 +128,8 @@ public java.lang.String getRecognizer() { public static final int CONFIG_FIELD_NUMBER = 4; private com.google.cloud.speech.v2.RecognitionConfig config_; /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -111,6 +140,7 @@ public java.lang.String getRecognizer() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return Whether the config field is set. */ @java.lang.Override @@ -118,6 +148,8 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -128,13 +160,18 @@ public boolean hasConfig() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -148,12 +185,16 @@ public com.google.cloud.speech.v2.RecognitionConfig getConfig() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder() {
-    return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
+    return config_ == null
+        ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
+        : config_;
   }
 
   public static final int CONFIG_MASK_FIELD_NUMBER = 5;
   private com.google.protobuf.FieldMask configMask_;
   /**
+   *
+   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -171,6 +212,7 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return Whether the configMask field is set. */ @java.lang.Override @@ -178,6 +220,8 @@ public boolean hasConfigMask() { return configMask_ != null; } /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -195,6 +239,7 @@ public boolean hasConfigMask() {
    * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return The configMask. */ @java.lang.Override @@ -202,6 +247,8 @@ public com.google.protobuf.FieldMask getConfigMask() { return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -226,9 +273,12 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
   }
 
   public static final int FILES_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private java.util.List files_;
   /**
+   *
+   *
    * 
    * Audio files with file metadata for ASR.
    * 
@@ -240,6 +290,8 @@ public java.util.List get return files_; } /** + * + * *
    * Audio files with file metadata for ASR.
    * 
@@ -247,11 +299,13 @@ public java.util.List get * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ @java.lang.Override - public java.util.List + public java.util.List getFilesOrBuilderList() { return files_; } /** + * + * *
    * Audio files with file metadata for ASR.
    * 
@@ -263,6 +317,8 @@ public int getFilesCount() { return files_.size(); } /** + * + * *
    * Audio files with file metadata for ASR.
    * 
@@ -274,6 +330,8 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata getFiles(int index) return files_.get(index); } /** + * + * *
    * Audio files with file metadata for ASR.
    * 
@@ -287,6 +345,7 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -298,8 +357,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(recognizer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recognizer_); } @@ -325,16 +383,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, recognizer_); } for (int i = 0; i < files_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, files_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, files_.get(i)); } if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfig()); } if (configMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getConfigMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getConfigMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -344,27 +399,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.v2.BatchRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.BatchRecognizeRequest other = (com.google.cloud.speech.v2.BatchRecognizeRequest) obj; + com.google.cloud.speech.v2.BatchRecognizeRequest other = + (com.google.cloud.speech.v2.BatchRecognizeRequest) obj; - if (!getRecognizer() - .equals(other.getRecognizer())) return false; + if (!getRecognizer().equals(other.getRecognizer())) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (hasConfigMask() != other.hasConfigMask()) return false; if (hasConfigMask()) { - if (!getConfigMask() - .equals(other.getConfigMask())) return false; + if (!getConfigMask().equals(other.getConfigMask())) return false; } - if (!getFilesList() - .equals(other.getFilesList())) return false; + if (!getFilesList().equals(other.getFilesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -395,97 +447,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.BatchRecognizeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.BatchRecognizeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.BatchRecognizeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.BatchRecognizeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest 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; } /** + * + * *
    * Request message for the
    * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize]
@@ -494,33 +553,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeRequest}
    */
-  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.v2.BatchRecognizeRequest)
       com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.BatchRecognizeRequest.class, com.google.cloud.speech.v2.BatchRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v2.BatchRecognizeRequest.class,
+              com.google.cloud.speech.v2.BatchRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.BatchRecognizeRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -547,9 +605,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -568,14 +626,18 @@ public com.google.cloud.speech.v2.BatchRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.BatchRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v2.BatchRecognizeRequest result = new com.google.cloud.speech.v2.BatchRecognizeRequest(this);
+      com.google.cloud.speech.v2.BatchRecognizeRequest result =
+          new com.google.cloud.speech.v2.BatchRecognizeRequest(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.BatchRecognizeRequest result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v2.BatchRecognizeRequest result) {
       if (filesBuilder_ == null) {
         if (((bitField0_ & 0x00000008) != 0)) {
           files_ = java.util.Collections.unmodifiableList(files_);
@@ -593,14 +655,10 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeRequest resu
         result.recognizer_ = recognizer_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.config_ = configBuilder_ == null
-            ? config_
-            : configBuilder_.build();
+        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.configMask_ = configMaskBuilder_ == null
-            ? configMask_
-            : configMaskBuilder_.build();
+        result.configMask_ = configMaskBuilder_ == null ? configMask_ : configMaskBuilder_.build();
       }
     }
 
@@ -608,38 +666,39 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeRequest resu
     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.v2.BatchRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -647,7 +706,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeRequest other) {
-      if (other == com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance())
+        return this;
       if (!other.getRecognizer().isEmpty()) {
         recognizer_ = other.recognizer_;
         bitField0_ |= 0x00000001;
@@ -677,9 +737,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeRequest other)
             filesBuilder_ = null;
             files_ = other.files_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            filesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getFilesFieldBuilder() : null;
+            filesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getFilesFieldBuilder()
+                    : null;
           } else {
             filesBuilder_.addAllMessages(other.files_);
           }
@@ -711,44 +772,45 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              recognizer_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 26: {
-              com.google.cloud.speech.v2.BatchRecognizeFileMetadata m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.BatchRecognizeFileMetadata.parser(),
-                      extensionRegistry);
-              if (filesBuilder_ == null) {
-                ensureFilesIsMutable();
-                files_.add(m);
-              } else {
-                filesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getConfigMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                recognizer_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 26:
+              {
+                com.google.cloud.speech.v2.BatchRecognizeFileMetadata m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.BatchRecognizeFileMetadata.parser(),
+                        extensionRegistry);
+                if (filesBuilder_ == null) {
+                  ensureFilesIsMutable();
+                  files_.add(m);
+                } else {
+                  filesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getConfigMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -758,22 +820,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object recognizer_ = "";
     /**
+     *
+     *
      * 
      * Required. Resource name of the recognizer to be used for ASR.
      * 
* - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The recognizer. */ public java.lang.String getRecognizer() { java.lang.Object ref = recognizer_; 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(); recognizer_ = s; return s; @@ -782,20 +849,23 @@ public java.lang.String getRecognizer() { } } /** + * + * *
      * Required. Resource name of the recognizer to be used for ASR.
      * 
* - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for recognizer. */ - public com.google.protobuf.ByteString - getRecognizerBytes() { + public com.google.protobuf.ByteString getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -803,28 +873,39 @@ public java.lang.String getRecognizer() { } } /** + * + * *
      * Required. Resource name of the recognizer to be used for ASR.
      * 
* - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizer( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecognizer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } recognizer_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the recognizer to be used for ASR.
      * 
* - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearRecognizer() { @@ -834,17 +915,23 @@ public Builder clearRecognizer() { return this; } /** + * + * *
      * Required. Resource name of the recognizer to be used for ASR.
      * 
* - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecognizerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); recognizer_ = value; bitField0_ |= 0x00000001; @@ -854,8 +941,13 @@ public Builder setRecognizerBytes( private com.google.cloud.speech.v2.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> configBuilder_; + com.google.cloud.speech.v2.RecognitionConfig, + com.google.cloud.speech.v2.RecognitionConfig.Builder, + com.google.cloud.speech.v2.RecognitionConfigOrBuilder> + configBuilder_; /** + * + * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -866,12 +958,15 @@ public Builder setRecognizerBytes(
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -882,16 +977,21 @@ public boolean hasConfig() {
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return The config. */ public com.google.cloud.speech.v2.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -917,6 +1017,8 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -928,8 +1030,7 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
      *
      * .google.cloud.speech.v2.RecognitionConfig config = 4;
      */
-    public Builder setConfig(
-        com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
+    public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
       if (configBuilder_ == null) {
         config_ = builderForValue.build();
       } else {
@@ -940,6 +1041,8 @@ public Builder setConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -953,9 +1056,9 @@ public Builder setConfig(
      */
     public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       if (configBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          config_ != null &&
-          config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && config_ != null
+            && config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
           getConfigBuilder().mergeFrom(value);
         } else {
           config_ = value;
@@ -968,6 +1071,8 @@ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -990,6 +1095,8 @@ public Builder clearConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1007,6 +1114,8 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() {
       return getConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1022,11 +1131,14 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
       if (configBuilder_ != null) {
         return configBuilder_.getMessageOrBuilder();
       } else {
-        return config_ == null ?
-            com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
+        return config_ == null
+            ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
+            : config_;
       }
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1039,14 +1151,17 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * .google.cloud.speech.v2.RecognitionConfig config = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> 
+            com.google.cloud.speech.v2.RecognitionConfig,
+            com.google.cloud.speech.v2.RecognitionConfig.Builder,
+            com.google.cloud.speech.v2.RecognitionConfigOrBuilder>
         getConfigFieldBuilder() {
       if (configBuilder_ == null) {
-        configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
-                getConfig(),
-                getParentForChildren(),
-                isClean());
+        configBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v2.RecognitionConfig,
+                com.google.cloud.speech.v2.RecognitionConfig.Builder,
+                com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
+                getConfig(), getParentForChildren(), isClean());
         config_ = null;
       }
       return configBuilder_;
@@ -1054,8 +1169,13 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
 
     private com.google.protobuf.FieldMask configMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> configMaskBuilder_;
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
+        configMaskBuilder_;
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1073,12 +1193,15 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return Whether the configMask field is set. */ public boolean hasConfigMask() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1096,16 +1219,21 @@ public boolean hasConfigMask() {
      * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return The configMask. */ public com.google.protobuf.FieldMask getConfigMask() { if (configMaskBuilder_ == null) { - return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; + return configMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : configMask_; } else { return configMaskBuilder_.getMessage(); } } /** + * + * *
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1138,6 +1266,8 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1156,8 +1286,7 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask config_mask = 5;
      */
-    public Builder setConfigMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (configMaskBuilder_ == null) {
         configMask_ = builderForValue.build();
       } else {
@@ -1168,6 +1297,8 @@ public Builder setConfigMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1188,9 +1319,9 @@ public Builder setConfigMask(
      */
     public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       if (configMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          configMask_ != null &&
-          configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && configMask_ != null
+            && configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getConfigMaskBuilder().mergeFrom(value);
         } else {
           configMask_ = value;
@@ -1203,6 +1334,8 @@ public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1232,6 +1365,8 @@ public Builder clearConfigMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1256,6 +1391,8 @@ public com.google.protobuf.FieldMask.Builder getConfigMaskBuilder() {
       return getConfigMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1278,11 +1415,14 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
       if (configMaskBuilder_ != null) {
         return configMaskBuilder_.getMessageOrBuilder();
       } else {
-        return configMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : configMask_;
+        return configMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : configMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1302,32 +1442,42 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
      * .google.protobuf.FieldMask config_mask = 5;
      */
     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>
         getConfigMaskFieldBuilder() {
       if (configMaskBuilder_ == null) {
-        configMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getConfigMask(),
-                getParentForChildren(),
-                isClean());
+        configMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getConfigMask(), getParentForChildren(), isClean());
         configMask_ = null;
       }
       return configMaskBuilder_;
     }
 
     private java.util.List files_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureFilesIsMutable() {
       if (!((bitField0_ & 0x00000008) != 0)) {
-        files_ = new java.util.ArrayList(files_);
+        files_ =
+            new java.util.ArrayList(files_);
         bitField0_ |= 0x00000008;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v2.BatchRecognizeFileMetadata, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder> filesBuilder_;
+            com.google.cloud.speech.v2.BatchRecognizeFileMetadata,
+            com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder,
+            com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder>
+        filesBuilder_;
 
     /**
+     *
+     *
      * 
      * Audio files with file metadata for ASR.
      * 
@@ -1342,6 +1492,8 @@ public java.util.List get } } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1356,6 +1508,8 @@ public int getFilesCount() { } } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1370,6 +1524,8 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata getFiles(int index) } } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1391,6 +1547,8 @@ public Builder setFiles( return this; } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1409,6 +1567,8 @@ public Builder setFiles( return this; } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1429,6 +1589,8 @@ public Builder addFiles(com.google.cloud.speech.v2.BatchRecognizeFileMetadata va return this; } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1450,6 +1612,8 @@ public Builder addFiles( return this; } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1468,6 +1632,8 @@ public Builder addFiles( return this; } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1486,6 +1652,8 @@ public Builder addFiles( return this; } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1493,11 +1661,11 @@ public Builder addFiles( * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ public Builder addAllFiles( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (filesBuilder_ == null) { ensureFilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, files_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, files_); onChanged(); } else { filesBuilder_.addAllMessages(values); @@ -1505,6 +1673,8 @@ public Builder addAllFiles( return this; } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1522,6 +1692,8 @@ public Builder clearFiles() { return this; } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1539,6 +1711,8 @@ public Builder removeFiles(int index) { return this; } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1550,6 +1724,8 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder getFilesBui return getFilesFieldBuilder().getBuilder(index); } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1559,19 +1735,22 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder getFilesBui public com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOrBuilder( int index) { if (filesBuilder_ == null) { - return files_.get(index); } else { + return files_.get(index); + } else { return filesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
* * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ - public java.util.List - getFilesOrBuilderList() { + public java.util.List + getFilesOrBuilderList() { if (filesBuilder_ != null) { return filesBuilder_.getMessageOrBuilderList(); } else { @@ -1579,6 +1758,8 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOr } } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1586,10 +1767,12 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOr * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder addFilesBuilder() { - return getFilesFieldBuilder().addBuilder( - com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()); + return getFilesFieldBuilder() + .addBuilder(com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()); } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1598,37 +1781,43 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder addFilesBui */ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder addFilesBuilder( int index) { - return getFilesFieldBuilder().addBuilder( - index, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()); + return getFilesFieldBuilder() + .addBuilder( + index, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()); } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
* * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ - public java.util.List - getFilesBuilderList() { + public java.util.List + getFilesBuilderList() { return getFilesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeFileMetadata, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder> + com.google.cloud.speech.v2.BatchRecognizeFileMetadata, + com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder, + com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder> getFilesFieldBuilder() { if (filesBuilder_ == null) { - filesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeFileMetadata, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder>( - files_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + filesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.BatchRecognizeFileMetadata, + com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder, + com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder>( + files_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); files_ = null; } return filesBuilder_; } + @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); } @@ -1638,12 +1827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeRequest) private static final com.google.cloud.speech.v2.BatchRecognizeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeRequest(); } @@ -1652,27 +1841,27 @@ public static com.google.cloud.speech.v2.BatchRecognizeRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1687,6 +1876,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.BatchRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java similarity index 84% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java index e84825dedbfd..3c9471a9e2cf 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface BatchRecognizeRequestOrBuilder extends +public interface BatchRecognizeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the recognizer to be used for ASR.
    * 
* - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The recognizer. */ java.lang.String getRecognizer(); /** + * + * *
    * Required. Resource name of the recognizer to be used for ASR.
    * 
* - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for recognizer. */ - com.google.protobuf.ByteString - getRecognizerBytes(); + com.google.protobuf.ByteString getRecognizerBytes(); /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -38,10 +65,13 @@ public interface BatchRecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -52,10 +82,13 @@ public interface BatchRecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return The config. */ com.google.cloud.speech.v2.RecognitionConfig getConfig(); /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -70,6 +103,8 @@ public interface BatchRecognizeRequestOrBuilder extends
   com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -87,10 +122,13 @@ public interface BatchRecognizeRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return Whether the configMask field is set. */ boolean hasConfigMask(); /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -108,10 +146,13 @@ public interface BatchRecognizeRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return The configMask. */ com.google.protobuf.FieldMask getConfigMask(); /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -133,15 +174,18 @@ public interface BatchRecognizeRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * Audio files with file metadata for ASR.
    * 
* * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ - java.util.List - getFilesList(); + java.util.List getFilesList(); /** + * + * *
    * Audio files with file metadata for ASR.
    * 
@@ -150,6 +194,8 @@ public interface BatchRecognizeRequestOrBuilder extends */ com.google.cloud.speech.v2.BatchRecognizeFileMetadata getFiles(int index); /** + * + * *
    * Audio files with file metadata for ASR.
    * 
@@ -158,21 +204,24 @@ public interface BatchRecognizeRequestOrBuilder extends */ int getFilesCount(); /** + * + * *
    * Audio files with file metadata for ASR.
    * 
* * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ - java.util.List + java.util.List getFilesOrBuilderList(); /** + * + * *
    * Audio files with file metadata for ASR.
    * 
* * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ - com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOrBuilder( - int index); + com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOrBuilder(int index); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java similarity index 59% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java index 75fe5f37828b..21d2081a3b6f 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Response message for
  * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize] that is
@@ -12,82 +29,92 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeResponse}
  */
-public final class BatchRecognizeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeResponse)
     BatchRecognizeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchRecognizeResponse.newBuilder() to construct.
   private BatchRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private BatchRecognizeResponse() {
-  }
+
+  private BatchRecognizeResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 1:
         return internalGetResults();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.BatchRecognizeResponse.class, com.google.cloud.speech.v2.BatchRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v2.BatchRecognizeResponse.class,
+            com.google.cloud.speech.v2.BatchRecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 1;
+
   private static final class ResultsDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-        java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult> defaultEntry =
+            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
+        defaultEntry =
             com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                com.google.cloud.speech.v2.BatchRecognizeFileResult.getDefaultInstance());
+                .
+                    newDefaultInstance(
+                        com.google.cloud.speech.v2.CloudSpeechProto
+                            .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_descriptor,
+                        com.google.protobuf.WireFormat.FieldType.STRING,
+                        "",
+                        com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                        com.google.cloud.speech.v2.BatchRecognizeFileResult.getDefaultInstance());
   }
+
   @SuppressWarnings("serial")
   private com.google.protobuf.MapField<
-      java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult> results_;
-  private com.google.protobuf.MapField
-  internalGetResults() {
+          java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
+      results_;
+
+  private com.google.protobuf.MapField<
+          java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
+      internalGetResults() {
     if (results_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          ResultsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(ResultsDefaultEntryHolder.defaultEntry);
     }
     return results_;
   }
+
   public int getResultsCount() {
     return internalGetResults().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Map from filename to the final result for that file.
    * 
@@ -95,20 +122,22 @@ public int getResultsCount() { * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public boolean containsResults( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsResults(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetResults().getMap().containsKey(key); } - /** - * Use {@link #getResultsMap()} instead. - */ + /** Use {@link #getResultsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getResults() { + public java.util.Map + getResults() { return getResultsMap(); } /** + * + * *
    * Map from filename to the final result for that file.
    * 
@@ -116,10 +145,13 @@ public java.util.Mapmap<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public java.util.Map getResultsMap() { + public java.util.Map + getResultsMap() { return internalGetResults().getMap(); } /** + * + * *
    * Map from filename to the final result for that file.
    * 
@@ -127,17 +159,20 @@ public java.util.Mapmap<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( + public /* nullable */ com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetResults().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Map from filename to the final result for that file.
    * 
@@ -147,7 +182,9 @@ com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetResults().getMap(); if (!map.containsKey(key)) { @@ -157,6 +194,7 @@ public com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,14 +206,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetResults(), - ResultsDefaultEntryHolder.defaultEntry, - 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetResults(), ResultsDefaultEntryHolder.defaultEntry, 1); getUnknownFields().writeTo(output); } @@ -185,15 +218,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetResults().getMap().entrySet()) { - com.google.protobuf.MapEntry - results__ = ResultsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, results__); + for (java.util.Map.Entry + entry : internalGetResults().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult> + results__ = + ResultsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, results__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -203,15 +238,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.v2.BatchRecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.BatchRecognizeResponse other = (com.google.cloud.speech.v2.BatchRecognizeResponse) obj; + com.google.cloud.speech.v2.BatchRecognizeResponse other = + (com.google.cloud.speech.v2.BatchRecognizeResponse) obj; - if (!internalGetResults().equals( - other.internalGetResults())) return false; + if (!internalGetResults().equals(other.internalGetResults())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,96 +268,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.BatchRecognizeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.BatchRecognizeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse 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; } /** + * + * *
    * Response message for
    * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize] that is
@@ -331,55 +373,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeResponse}
    */
-  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.v2.BatchRecognizeResponse)
       com.google.cloud.speech.v2.BatchRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 1:
           return internalGetResults();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 1:
           return internalGetMutableResults();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.BatchRecognizeResponse.class, com.google.cloud.speech.v2.BatchRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v2.BatchRecognizeResponse.class,
+              com.google.cloud.speech.v2.BatchRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.BatchRecognizeResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -389,9 +428,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
@@ -410,8 +449,11 @@ public com.google.cloud.speech.v2.BatchRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.BatchRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v2.BatchRecognizeResponse result = new com.google.cloud.speech.v2.BatchRecognizeResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.BatchRecognizeResponse result =
+          new com.google.cloud.speech.v2.BatchRecognizeResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -428,38 +470,39 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeResponse res
     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.v2.BatchRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -467,9 +510,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeResponse other) {
-      if (other == com.google.cloud.speech.v2.BatchRecognizeResponse.getDefaultInstance()) return this;
-      internalGetMutableResults().mergeFrom(
-          other.internalGetResults());
+      if (other == com.google.cloud.speech.v2.BatchRecognizeResponse.getDefaultInstance())
+        return this;
+      internalGetMutableResults().mergeFrom(other.internalGetResults());
       bitField0_ |= 0x00000001;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -497,21 +540,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.protobuf.MapEntry
-              results__ = input.readMessage(
-                  ResultsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableResults().getMutableMap().put(
-                  results__.getKey(), results__.getValue());
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.protobuf.MapEntry<
+                        java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
+                    results__ =
+                        input.readMessage(
+                            ResultsDefaultEntryHolder.defaultEntry.getParserForType(),
+                            extensionRegistry);
+                internalGetMutableResults()
+                    .getMutableMap()
+                    .put(results__.getKey(), results__.getValue());
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -521,23 +570,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.MapField<
-        java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult> results_;
-    private com.google.protobuf.MapField
+            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
+        results_;
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
         internalGetResults() {
       if (results_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(
-            ResultsDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(ResultsDefaultEntryHolder.defaultEntry);
       }
       return results_;
     }
-    private com.google.protobuf.MapField
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
         internalGetMutableResults() {
       if (results_ == null) {
-        results_ = com.google.protobuf.MapField.newMapField(
-            ResultsDefaultEntryHolder.defaultEntry);
+        results_ = com.google.protobuf.MapField.newMapField(ResultsDefaultEntryHolder.defaultEntry);
       }
       if (!results_.isMutable()) {
         results_ = results_.copy();
@@ -546,10 +599,13 @@ public Builder mergeFrom(
       onChanged();
       return results_;
     }
+
     public int getResultsCount() {
       return internalGetResults().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Map from filename to the final result for that file.
      * 
@@ -557,20 +613,22 @@ public int getResultsCount() { * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public boolean containsResults( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsResults(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetResults().getMap().containsKey(key); } - /** - * Use {@link #getResultsMap()} instead. - */ + /** Use {@link #getResultsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getResults() { + public java.util.Map + getResults() { return getResultsMap(); } /** + * + * *
      * Map from filename to the final result for that file.
      * 
@@ -578,10 +636,13 @@ public java.util.Mapmap<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public java.util.Map getResultsMap() { + public java.util.Map + getResultsMap() { return internalGetResults().getMap(); } /** + * + * *
      * Map from filename to the final result for that file.
      * 
@@ -589,17 +650,20 @@ public java.util.Mapmap<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( + public /* nullable */ com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetResults().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Map from filename to the final result for that file.
      * 
@@ -609,7 +673,9 @@ com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetResults().getMap(); if (!map.containsKey(key)) { @@ -617,29 +683,29 @@ public com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow( } return map.get(key); } + public Builder clearResults() { bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableResults().getMutableMap() - .clear(); + internalGetMutableResults().getMutableMap().clear(); return this; } /** + * + * *
      * Map from filename to the final result for that file.
      * 
* * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ - public Builder removeResults( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableResults().getMutableMap() - .remove(key); + public Builder removeResults(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableResults().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableResults() { @@ -647,6 +713,8 @@ public Builder removeResults( return internalGetMutableResults().getMutableMap(); } /** + * + * *
      * Map from filename to the final result for that file.
      * 
@@ -654,16 +722,20 @@ public Builder removeResults( * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ public Builder putResults( - java.lang.String key, - com.google.cloud.speech.v2.BatchRecognizeFileResult value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableResults().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.speech.v2.BatchRecognizeFileResult value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableResults().getMutableMap().put(key, value); bitField0_ |= 0x00000001; return this; } /** + * + * *
      * Map from filename to the final result for that file.
      * 
@@ -671,15 +743,15 @@ public Builder putResults( * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ public Builder putAllResults( - java.util.Map values) { - internalGetMutableResults().getMutableMap() - .putAll(values); + java.util.Map + values) { + internalGetMutableResults().getMutableMap().putAll(values); bitField0_ |= 0x00000001; 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 +761,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeResponse) private static final com.google.cloud.speech.v2.BatchRecognizeResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeResponse(); } @@ -703,27 +775,27 @@ public static com.google.cloud.speech.v2.BatchRecognizeResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchRecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -738,6 +810,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.BatchRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java similarity index 60% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java index 941fa7e878f7..26c78951aef5 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface BatchRecognizeResponseOrBuilder extends +public interface BatchRecognizeResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Map from filename to the final result for that file.
    * 
@@ -16,21 +34,21 @@ public interface BatchRecognizeResponseOrBuilder extends */ int getResultsCount(); /** + * + * *
    * Map from filename to the final result for that file.
    * 
* * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ - boolean containsResults( - java.lang.String key); - /** - * Use {@link #getResultsMap()} instead. - */ + boolean containsResults(java.lang.String key); + /** Use {@link #getResultsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getResults(); + java.util.Map getResults(); /** + * + * *
    * Map from filename to the final result for that file.
    * 
@@ -38,8 +56,10 @@ boolean containsResults( * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ java.util.Map - getResultsMap(); + getResultsMap(); /** + * + * *
    * Map from filename to the final result for that file.
    * 
@@ -47,17 +67,18 @@ boolean containsResults( * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( + com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue); + com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue); /** + * + * *
    * Map from filename to the final result for that file.
    * 
* * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ - com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow( - java.lang.String key); + com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java similarity index 67% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java index 7d0584cd7927..b16bc466813f 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Metadata about transcription for a single file (for example, progress
  * percent).
@@ -11,52 +28,59 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata}
  */
-public final class BatchRecognizeTranscriptionMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchRecognizeTranscriptionMetadata
+    extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata)
     BatchRecognizeTranscriptionMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchRecognizeTranscriptionMetadata.newBuilder() to construct.
-  private BatchRecognizeTranscriptionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private BatchRecognizeTranscriptionMetadata(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private BatchRecognizeTranscriptionMetadata() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchRecognizeTranscriptionMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.class, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.Builder.class);
+            com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.class,
+            com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.Builder.class);
   }
 
   public static final int PROGRESS_PERCENT_FIELD_NUMBER = 1;
   private int progressPercent_ = 0;
   /**
+   *
+   *
    * 
    * How much of the file has been transcribed so far.
    * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ @java.lang.Override @@ -67,11 +91,14 @@ public int getProgressPercent() { public static final int ERROR_FIELD_NUMBER = 2; private com.google.rpc.Status error_; /** + * + * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ @java.lang.Override @@ -79,11 +106,14 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; + * * @return The error. */ @java.lang.Override @@ -91,6 +121,8 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** + * + * *
    * Error if one was encountered.
    * 
@@ -103,14 +135,18 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } public static final int URI_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** + * + * *
    * The GCS URI to which recognition results will be written.
    * 
* * string uri = 3; + * * @return The uri. */ @java.lang.Override @@ -119,29 +155,29 @@ 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; } } /** + * + * *
    * The GCS URI to which recognition results will be written.
    * 
* * string uri = 3; + * * @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 { @@ -150,6 +186,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +198,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_); } @@ -182,12 +218,10 @@ 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 (error_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getError()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); @@ -200,22 +234,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.v2.BatchRecognizeTranscriptionMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata other = (com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) obj; + com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata other = + (com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) obj; - if (getProgressPercent() - != other.getProgressPercent()) return false; + if (getProgressPercent() != other.getProgressPercent()) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; } - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,96 +273,104 @@ public int hashCode() { } public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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; } /** + * + * *
    * Metadata about transcription for a single file (for example, progress
    * percent).
@@ -338,33 +378,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata}
    */
-  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.v2.BatchRecognizeTranscriptionMetadata)
       com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.class, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.Builder.class);
+              com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.class,
+              com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -380,13 +419,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getDefaultInstanceForType() {
+    public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata
+        getDefaultInstanceForType() {
       return com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.getDefaultInstance();
     }
 
@@ -401,21 +441,23 @@ public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata buildPartial() {
-      com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata result = new com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata result =
+          new com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata result) {
+    private void buildPartial0(
+        com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.progressPercent_ = progressPercent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.error_ = errorBuilder_ == null
-            ? error_
-            : errorBuilder_.build();
+        result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.uri_ = uri_;
@@ -426,38 +468,39 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeTranscriptio
     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.v2.BatchRecognizeTranscriptionMetadata) {
-        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata)other);
+        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -465,7 +508,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata other) {
-      if (other == com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.getDefaultInstance())
+        return this;
       if (other.getProgressPercent() != 0) {
         setProgressPercent(other.getProgressPercent());
       }
@@ -503,29 +548,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              progressPercent_ = input.readInt32();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              input.readMessage(
-                  getErrorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              uri_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                progressPercent_ = input.readInt32();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                uri_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -535,15 +582,19 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private int progressPercent_ ;
+    private int progressPercent_;
     /**
+     *
+     *
      * 
      * How much of the file has been transcribed so far.
      * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ @java.lang.Override @@ -551,27 +602,33 @@ public int getProgressPercent() { return progressPercent_; } /** + * + * *
      * How much of the file has been transcribed so far.
      * 
* * int32 progress_percent = 1; + * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * How much of the file has been transcribed so far.
      * 
* * int32 progress_percent = 1; + * * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -583,24 +640,31 @@ public Builder clearProgressPercent() { 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_; /** + * + * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -611,6 +675,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * Error if one was encountered.
      * 
@@ -631,14 +697,15 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** + * + * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; */ - public Builder setError( - com.google.rpc.Status.Builder builderForValue) { + public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); } else { @@ -649,6 +716,8 @@ public Builder setError( return this; } /** + * + * *
      * Error if one was encountered.
      * 
@@ -657,9 +726,9 @@ public Builder setError( */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - error_ != null && - error_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; @@ -672,6 +741,8 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** + * + * *
      * Error if one was encountered.
      * 
@@ -689,6 +760,8 @@ public Builder clearError() { return this; } /** + * + * *
      * Error if one was encountered.
      * 
@@ -701,6 +774,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** + * + * *
      * Error if one was encountered.
      * 
@@ -711,11 +786,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_; } } /** + * + * *
      * Error if one was encountered.
      * 
@@ -723,14 +799,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 2; */ 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_; @@ -738,18 +814,20 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { private java.lang.Object uri_ = ""; /** + * + * *
      * The GCS URI to which recognition results will be written.
      * 
* * string uri = 3; + * * @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; @@ -758,20 +836,21 @@ public java.lang.String getUri() { } } /** + * + * *
      * The GCS URI to which recognition results will be written.
      * 
* * string uri = 3; + * * @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 { @@ -779,28 +858,35 @@ public java.lang.String getUri() { } } /** + * + * *
      * The GCS URI to which recognition results will be written.
      * 
* * string uri = 3; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uri_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The GCS URI to which recognition results will be written.
      * 
* * string uri = 3; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -810,26 +896,30 @@ public Builder clearUri() { return this; } /** + * + * *
      * The GCS URI to which recognition results will be written.
      * 
* * string uri = 3; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000004; 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); } @@ -839,41 +929,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) - private static final com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata(); } - public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getDefaultInstance() { + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRecognizeTranscriptionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchRecognizeTranscriptionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -885,9 +977,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getDefaultInstanceForType() { + public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java similarity index 63% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java index 3398c30c398a..f2763466c9d6 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java @@ -1,41 +1,68 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface BatchRecognizeTranscriptionMetadataOrBuilder extends +public interface BatchRecognizeTranscriptionMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * How much of the file has been transcribed so far.
    * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ int getProgressPercent(); /** + * + * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * Error if one was encountered.
    * 
@@ -45,22 +72,27 @@ public interface BatchRecognizeTranscriptionMetadataOrBuilder extends com.google.rpc.StatusOrBuilder getErrorOrBuilder(); /** + * + * *
    * The GCS URI to which recognition results will be written.
    * 
* * string uri = 3; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * The GCS URI to which recognition results will be written.
    * 
* * string uri = 3; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java new file mode 100644 index 000000000000..dabcad59583b --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java @@ -0,0 +1,1346 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public final class CloudSpeechProto { + private CloudSpeechProto() {} + + 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_v2_CreateRecognizerRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_Recognizer_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_WordInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_Config_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_Config_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_CustomClass_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_PhraseSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_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/v2/cloud_speech.pr" + + "oto\022\026google.cloud.speech.v2\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\032#google/longrunni" + + "ng/operations.proto\032\036google/protobuf/dur" + + "ation.proto\032 google/protobuf/field_mask." + + "proto\032\037google/protobuf/timestamp.proto\032\027" + + "google/rpc/status.proto\"\276\001\n\027CreateRecogn" + + "izerRequest\022;\n\nrecognizer\030\001 \001(\0132\".google" + + ".cloud.speech.v2.RecognizerB\003\340A\002\022\025\n\rvali" + + "date_only\030\002 \001(\010\022\025\n\rrecognizer_id\030\003 \001(\t\0228" + + "\n\006parent\030\004 \001(\tB(\340A\002\372A\"\022 speech.googleapi" + + "s.com/Recognizer\"\343\014\n\021OperationMetadata\022/" + + "\n\013create_time\030\001 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022/\n\013update_time\030\002 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022\020\n\010resource\030\003 \001(\t\022\016\n\006me" + + "thod\030\004 \001(\t\022<\n\014kms_key_name\030\006 \001(\tB&\372A#\n!c" + + "loudkms.googleapis.com/CryptoKey\022K\n\024kms_" + + "key_version_name\030\007 \001(\tB-\372A*\n(cloudkms.go" + + "ogleapis.com/CryptoKeyVersion\022P\n\027batch_r" + + "ecognize_request\030\010 \001(\0132-.google.cloud.sp" + + "eech.v2.BatchRecognizeRequestH\000\022T\n\031creat" + + "e_recognizer_request\030\t \001(\0132/.google.clou" + + "d.speech.v2.CreateRecognizerRequestH\000\022T\n" + + "\031update_recognizer_request\030\n \001(\0132/.googl" + + "e.cloud.speech.v2.UpdateRecognizerReques" + + "tH\000\022T\n\031delete_recognizer_request\030\013 \001(\0132/" + + ".google.cloud.speech.v2.DeleteRecognizer" + + "RequestH\000\022X\n\033undelete_recognizer_request" + + "\030\014 \001(\01321.google.cloud.speech.v2.Undelete" + + "RecognizerRequestH\000\022W\n\033create_custom_cla" + + "ss_request\030\r \001(\01320.google.cloud.speech.v" + + "2.CreateCustomClassRequestH\000\022W\n\033update_c" + + "ustom_class_request\030\016 \001(\01320.google.cloud" + + ".speech.v2.UpdateCustomClassRequestH\000\022W\n" + + "\033delete_custom_class_request\030\017 \001(\01320.goo" + + "gle.cloud.speech.v2.DeleteCustomClassReq" + + "uestH\000\022[\n\035undelete_custom_class_request\030" + + "\020 \001(\01322.google.cloud.speech.v2.UndeleteC" + + "ustomClassRequestH\000\022S\n\031create_phrase_set" + + "_request\030\021 \001(\0132..google.cloud.speech.v2." + + "CreatePhraseSetRequestH\000\022S\n\031update_phras" + + "e_set_request\030\022 \001(\0132..google.cloud.speec" + + "h.v2.UpdatePhraseSetRequestH\000\022S\n\031delete_" + + "phrase_set_request\030\023 \001(\0132..google.cloud." + + "speech.v2.DeletePhraseSetRequestH\000\022W\n\033un" + + "delete_phrase_set_request\030\024 \001(\01320.google" + + ".cloud.speech.v2.UndeletePhraseSetReques" + + "tH\000\022L\n\025update_config_request\030\025 \001(\0132+.goo" + + "gle.cloud.speech.v2.UpdateConfigRequestH" + + "\000\022\030\n\020progress_percent\030\026 \001(\005\022R\n\030batch_rec" + + "ognize_metadata\030\027 \001(\0132..google.cloud.spe" + + "ech.v2.BatchRecognizeMetadataH\001B\t\n\007reque" + + "stB\n\n\010metadata\"\220\001\n\026ListRecognizersReques" + + "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goo" + + "gleapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(" + + "\010\"k\n\027ListRecognizersResponse\0227\n\013recogniz" + + "ers\030\001 \003(\0132\".google.cloud.speech.v2.Recog" + + "nizer\022\027\n\017next_page_token\030\002 \001(\t\"N\n\024GetRec" + + "ognizerRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n sp" + + "eech.googleapis.com/Recognizer\"\236\001\n\027Updat" + + "eRecognizerRequest\022;\n\nrecognizer\030\001 \001(\0132\"" + + ".google.cloud.speech.v2.RecognizerB\003\340A\002\022" + + "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + + "ieldMask\022\025\n\rvalidate_only\030\004 \001(\010\"\215\001\n\027Dele" + + "teRecognizerRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A" + + "\"\n speech.googleapis.com/Recognizer\022\025\n\rv" + + "alidate_only\030\002 \001(\010\022\025\n\rallow_missing\030\004 \001(" + + "\010\022\014\n\004etag\030\003 \001(\t\"x\n\031UndeleteRecognizerReq" + + "uest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n speech.googl" + + "eapis.com/Recognizer\022\025\n\rvalidate_only\030\003 " + + "\001(\010\022\014\n\004etag\030\004 \001(\t\"\276\007\n\nRecognizer\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\024\n\014display" + + "_name\030\003 \001(\t\022\022\n\005model\030\004 \001(\tB\003\340A\002\022\033\n\016langu" + + "age_codes\030\021 \003(\tB\003\340A\002\022M\n\032default_recognit" + + "ion_config\030\006 \001(\0132).google.cloud.speech.v" + + "2.RecognitionConfig\022H\n\013annotations\030\007 \003(\013" + + "23.google.cloud.speech.v2.Recognizer.Ann" + + "otationsEntry\022<\n\005state\030\010 \001(\0162(.google.cl" + + "oud.speech.v2.Recognizer.StateB\003\340A\003\0224\n\013c" + + "reate_time\030\t \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\013" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013expire_time\030\016 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\022\021\n\004etag\030\014 \001(\tB\003\340A\003\022\030\n\013reconc" + + "iling\030\r \001(\010B\003\340A\003\022?\n\014kms_key_name\030\017 \001(\tB)" + + "\340A\003\372A#\n!cloudkms.googleapis.com/CryptoKe" + + "y\022N\n\024kms_key_version_name\030\020 \001(\tB0\340A\003\372A*\n" + + "(cloudkms.googleapis.com/CryptoKeyVersio" + + "n\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"7\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\n\n\006ACTIVE\020\002\022\013\n\007DELETED\020\004:j\352Ag\n spe" + + "ech.googleapis.com/Recognizer\022@projects/" + + "{project}/locations/{location}/recognize" + + "rs/{recognizer}R\001\001\"\032\n\030AutoDetectDecoding" + + "Config\"\371\001\n\026ExplicitDecodingConfig\022S\n\010enc" + + "oding\030\001 \001(\0162<.google.cloud.speech.v2.Exp" + + "licitDecodingConfig.AudioEncodingB\003\340A\002\022\031" + + "\n\021sample_rate_hertz\030\002 \001(\005\022\033\n\023audio_chann" + + "el_count\030\003 \001(\005\"R\n\rAudioEncoding\022\036\n\032AUDIO" + + "_ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\t\n" + + "\005MULAW\020\002\022\010\n\004ALAW\020\003\"Z\n\030SpeakerDiarization" + + "Config\022\036\n\021min_speaker_count\030\002 \001(\005B\003\340A\002\022\036" + + "\n\021max_speaker_count\030\003 \001(\005B\003\340A\002\"\370\003\n\023Recog" + + "nitionFeatures\022\030\n\020profanity_filter\030\001 \001(\010" + + "\022 \n\030enable_word_time_offsets\030\002 \001(\010\022\036\n\026en" + + "able_word_confidence\030\003 \001(\010\022$\n\034enable_aut" + + "omatic_punctuation\030\004 \001(\010\022!\n\031enable_spoke" + + "n_punctuation\030\016 \001(\010\022\034\n\024enable_spoken_emo" + + "jis\030\017 \001(\010\022X\n\022multi_channel_mode\030\021 \001(\0162<." + + "google.cloud.speech.v2.RecognitionFeatur" + + "es.MultiChannelMode\022L\n\022diarization_confi" + + "g\030\t \001(\01320.google.cloud.speech.v2.Speaker" + + "DiarizationConfig\022\030\n\020max_alternatives\030\020 " + + "\001(\005\"\\\n\020MultiChannelMode\022\"\n\036MULTI_CHANNEL" + + "_MODE_UNSPECIFIED\020\000\022$\n SEPARATE_RECOGNIT" + + "ION_PER_CHANNEL\020\001\"\277\002\n\020SpeechAdaptation\022Q" + + "\n\013phrase_sets\030\001 \003(\0132<.google.cloud.speec" + + "h.v2.SpeechAdaptation.AdaptationPhraseSe" + + "t\022;\n\016custom_classes\030\002 \003(\0132#.google.cloud" + + ".speech.v2.CustomClass\032\232\001\n\023AdaptationPhr" + + "aseSet\022:\n\nphrase_set\030\001 \001(\tB$\372A!\n\037speech." + + "googleapis.com/PhraseSetH\000\022>\n\021inline_phr" + + "ase_set\030\002 \001(\0132!.google.cloud.speech.v2.P" + + "hraseSetH\000B\007\n\005value\"\311\002\n\021RecognitionConfi" + + "g\022P\n\024auto_decoding_config\030\007 \001(\01320.google" + + ".cloud.speech.v2.AutoDetectDecodingConfi" + + "gH\000\022R\n\030explicit_decoding_config\030\010 \001(\0132.." + + "google.cloud.speech.v2.ExplicitDecodingC" + + "onfigH\000\022=\n\010features\030\002 \001(\0132+.google.cloud" + + ".speech.v2.RecognitionFeatures\022<\n\nadapta" + + "tion\030\006 \001(\0132(.google.cloud.speech.v2.Spee" + + "chAdaptationB\021\n\017decoding_config\"\356\001\n\020Reco" + + "gnizeRequest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A\"" + + "\n speech.googleapis.com/Recognizer\0229\n\006co" + + "nfig\030\001 \001(\0132).google.cloud.speech.v2.Reco" + + "gnitionConfig\022/\n\013config_mask\030\010 \001(\0132\032.goo" + + "gle.protobuf.FieldMask\022\021\n\007content\030\005 \001(\014H" + + "\000\022\r\n\003uri\030\006 \001(\tH\000B\016\n\014audio_source\"W\n\033Reco" + + "gnitionResponseMetadata\0228\n\025total_billed_" + + "duration\030\006 \001(\0132\031.google.protobuf.Duratio" + + "n\"w\n\034SpeechRecognitionAlternative\022\022\n\ntra" + + "nscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022/\n\005wor" + + "ds\030\003 \003(\0132 .google.cloud.speech.v2.WordIn" + + "fo\"\243\001\n\010WordInfo\022/\n\014start_offset\030\001 \001(\0132\031." + + "google.protobuf.Duration\022-\n\nend_offset\030\002" + + " \001(\0132\031.google.protobuf.Duration\022\014\n\004word\030" + + "\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002\022\025\n\rspeaker_lab" + + "el\030\006 \001(\t\"\314\001\n\027SpeechRecognitionResult\022J\n\014" + + "alternatives\030\001 \003(\01324.google.cloud.speech" + + ".v2.SpeechRecognitionAlternative\022\023\n\013chan" + + "nel_tag\030\002 \001(\005\0224\n\021result_end_offset\030\004 \001(\013" + + "2\031.google.protobuf.Duration\022\032\n\rlanguage_" + + "code\030\005 \001(\tB\003\340A\003\"\234\001\n\021RecognizeResponse\022@\n" + + "\007results\030\003 \003(\0132/.google.cloud.speech.v2." + + "SpeechRecognitionResult\022E\n\010metadata\030\002 \001(" + + "\01323.google.cloud.speech.v2.RecognitionRe" + + "sponseMetadata\"\321\002\n\034StreamingRecognitionF" + + "eatures\022$\n\034enable_voice_activity_events\030" + + "\001 \001(\010\022\027\n\017interim_results\030\002 \001(\010\022i\n\026voice_" + + "activity_timeout\030\003 \001(\0132I.google.cloud.sp" + + "eech.v2.StreamingRecognitionFeatures.Voi" + + "ceActivityTimeout\032\206\001\n\024VoiceActivityTimeo" + + "ut\0227\n\024speech_start_timeout\030\001 \001(\0132\031.googl" + + "e.protobuf.Duration\0225\n\022speech_end_timeou" + + "t\030\002 \001(\0132\031.google.protobuf.Duration\"\337\001\n\032S" + + "treamingRecognitionConfig\022>\n\006config\030\001 \001(" + + "\0132).google.cloud.speech.v2.RecognitionCo" + + "nfigB\003\340A\002\022/\n\013config_mask\030\003 \001(\0132\032.google." + + "protobuf.FieldMask\022P\n\022streaming_features" + + "\030\002 \001(\01324.google.cloud.speech.v2.Streamin" + + "gRecognitionFeatures\"\317\001\n\031StreamingRecogn" + + "izeRequest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A\"\n " + + "speech.googleapis.com/Recognizer\022N\n\020stre" + + "aming_config\030\006 \001(\01322.google.cloud.speech" + + ".v2.StreamingRecognitionConfigH\000\022\017\n\005audi" + + "o\030\005 \001(\014H\000B\023\n\021streaming_request\"\204\002\n\025Batch" + + "RecognizeRequest\022<\n\nrecognizer\030\001 \001(\tB(\340A" + + "\002\372A\"\n speech.googleapis.com/Recognizer\0229" + + "\n\006config\030\004 \001(\0132).google.cloud.speech.v2." + + "RecognitionConfig\022/\n\013config_mask\030\005 \001(\0132\032" + + ".google.protobuf.FieldMask\022A\n\005files\030\003 \003(" + + "\01322.google.cloud.speech.v2.BatchRecogniz" + + "eFileMetadata\"\310\001\n\026BatchRecognizeResponse" + + "\022L\n\007results\030\001 \003(\0132;.google.cloud.speech." + + "v2.BatchRecognizeResponse.ResultsEntry\032`" + + "\n\014ResultsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001" + + "(\01320.google.cloud.speech.v2.BatchRecogni" + + "zeFileResult:\0028\001\"J\n\030BatchRecognizeFileRe" + + "sult\022\013\n\003uri\030\001 \001(\t\022!\n\005error\030\002 \001(\0132\022.googl" + + "e.rpc.Status\"o\n#BatchRecognizeTranscript" + + "ionMetadata\022\030\n\020progress_percent\030\001 \001(\005\022!\n" + + "\005error\030\002 \001(\0132\022.google.rpc.Status\022\013\n\003uri\030" + + "\003 \001(\t\"\376\001\n\026BatchRecognizeMetadata\022i\n\026tran" + + "scription_metadata\030\001 \003(\0132I.google.cloud." + + "speech.v2.BatchRecognizeMetadata.Transcr" + + "iptionMetadataEntry\032y\n\032TranscriptionMeta" + + "dataEntry\022\013\n\003key\030\001 \001(\t\022J\n\005value\030\002 \001(\0132;." + + "google.cloud.speech.v2.BatchRecognizeTra" + + "nscriptionMetadata:\0028\001\"\247\001\n\032BatchRecogniz" + + "eFileMetadata\022\r\n\003uri\030\001 \001(\tH\000\0229\n\006config\030\004" + + " \001(\0132).google.cloud.speech.v2.Recognitio" + + "nConfig\022/\n\013config_mask\030\005 \001(\0132\032.google.pr" + + "otobuf.FieldMaskB\016\n\014audio_source\"\364\001\n\032Str" + + "eamingRecognitionResult\022J\n\014alternatives\030" + + "\001 \003(\01324.google.cloud.speech.v2.SpeechRec" + + "ognitionAlternative\022\020\n\010is_final\030\002 \001(\010\022\021\n" + + "\tstability\030\003 \001(\002\0224\n\021result_end_offset\030\004 " + + "\001(\0132\031.google.protobuf.Duration\022\023\n\013channe" + + "l_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A\003\"" + + "\307\003\n\032StreamingRecognizeResponse\022C\n\007result" + + "s\030\006 \003(\01322.google.cloud.speech.v2.Streami" + + "ngRecognitionResult\022]\n\021speech_event_type" + + "\030\003 \001(\0162B.google.cloud.speech.v2.Streamin" + + "gRecognizeResponse.SpeechEventType\0226\n\023sp" + + "eech_event_offset\030\007 \001(\0132\031.google.protobu" + + "f.Duration\022E\n\010metadata\030\005 \001(\01323.google.cl" + + "oud.speech.v2.RecognitionResponseMetadat" + + "a\"\205\001\n\017SpeechEventType\022!\n\035SPEECH_EVENT_TY" + + "PE_UNSPECIFIED\020\000\022\033\n\027END_OF_SINGLE_UTTERA" + + "NCE\020\001\022\031\n\025SPEECH_ACTIVITY_BEGIN\020\002\022\027\n\023SPEE" + + "CH_ACTIVITY_END\020\003\"\345\001\n\006Config\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022?\n\014kms_key_name\030\002 \001(\tB)\340A\001\372A#\n!c" + + "loudkms.googleapis.com/CryptoKey\0224\n\013upda" + + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003:Q\352AN\n\034speech.googleapis.com/Confi" + + "g\022.projects/{project}/locations/{locatio" + + "n}/config\"F\n\020GetConfigRequest\0222\n\004name\030\001 " + + "\001(\tB$\340A\002\372A\036\n\034speech.googleapis.com/Confi" + + "g\"{\n\023UpdateConfigRequest\0223\n\006config\030\001 \001(\013" + + "2\036.google.cloud.speech.v2.ConfigB\003\340A\002\022/\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMask\"\240\007\n\013CustomClass\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\024\n\014display_name\030\004 \001(" + + "\t\022<\n\005items\030\005 \003(\0132-.google.cloud.speech.v" + + "2.CustomClass.ClassItem\022=\n\005state\030\017 \001(\0162)" + + ".google.cloud.speech.v2.CustomClass.Stat" + + "eB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013de" + + "lete_time\030\010 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0224\n\013expire_time\030\t \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022I\n\013annotations\030\n " + + "\003(\01324.google.cloud.speech.v2.CustomClass" + + ".AnnotationsEntry\022\021\n\004etag\030\013 \001(\tB\003\340A\003\022\030\n\013" + + "reconciling\030\014 \001(\010B\003\340A\003\022?\n\014kms_key_name\030\r" + + " \001(\tB)\340A\003\372A#\n!cloudkms.googleapis.com/Cr" + + "yptoKey\022N\n\024kms_key_version_name\030\016 \001(\tB0\340" + + "A\003\372A*\n(cloudkms.googleapis.com/CryptoKey" + + "Version\032\032\n\tClassItem\022\r\n\005value\030\001 \001(\t\0322\n\020A" + + "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\"7\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + + "\n\n\006ACTIVE\020\002\022\013\n\007DELETED\020\004:o\352Al\n!speech.go" + + "ogleapis.com/CustomClass\022Dprojects/{proj" + + "ect}/locations/{location}/customClasses/" + + "{custom_class}R\001\001\"\253\007\n\tPhraseSet\022\021\n\004name\030" + + "\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0229\n\007phrases\030" + + "\003 \003(\0132(.google.cloud.speech.v2.PhraseSet" + + ".Phrase\022\r\n\005boost\030\004 \001(\002\022\024\n\014display_name\030\005" + + " \001(\t\022;\n\005state\030\017 \001(\0162\'.google.cloud.speec" + + "h.v2.PhraseSet.StateB\003\340A\003\0224\n\013create_time" + + "\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "4\n\013update_time\030\007 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0224\n\013expire_ti" + + "me\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\022G\n\013annotations\030\n \003(\01322.google.cloud.sp" + + "eech.v2.PhraseSet.AnnotationsEntry\022\021\n\004et" + + "ag\030\013 \001(\tB\003\340A\003\022\030\n\013reconciling\030\014 \001(\010B\003\340A\003\022" + + "?\n\014kms_key_name\030\r \001(\tB)\340A\003\372A#\n!cloudkms." + + "googleapis.com/CryptoKey\022N\n\024kms_key_vers" + + "ion_name\030\016 \001(\tB0\340A\003\372A*\n(cloudkms.googlea" + + "pis.com/CryptoKeyVersion\032&\n\006Phrase\022\r\n\005va" + + "lue\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002\0322\n\020AnnotationsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\005" + + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\002" + + "\022\013\n\007DELETED\020\004:h\352Ae\n\037speech.googleapis.co" + + "m/PhraseSet\022?projects/{project}/location" + + "s/{location}/phraseSets/{phrase_set}R\001\001\"" + + "\305\001\n\030CreateCustomClassRequest\022>\n\014custom_c" + + "lass\030\001 \001(\0132#.google.cloud.speech.v2.Cust" + + "omClassB\003\340A\002\022\025\n\rvalidate_only\030\002 \001(\010\022\027\n\017c" + + "ustom_class_id\030\003 \001(\t\0229\n\006parent\030\004 \001(\tB)\340A" + + "\002\372A#\022!speech.googleapis.com/CustomClass\"" + + "\222\001\n\030ListCustomClassesRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + + "ocation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"q\n\031ListCust" + + "omClassesResponse\022;\n\016custom_classes\030\001 \003(" + + "\0132#.google.cloud.speech.v2.CustomClass\022\027" + + "\n\017next_page_token\030\002 \001(\t\"P\n\025GetCustomClas" + + "sRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.g" + + "oogleapis.com/CustomClass\"\242\001\n\030UpdateCust" + + "omClassRequest\022>\n\014custom_class\030\001 \001(\0132#.g" + + "oogle.cloud.speech.v2.CustomClassB\003\340A\002\022/" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMask\022\025\n\rvalidate_only\030\004 \001(\010\"\217\001\n\030Delet" + + "eCustomClassRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A" + + "#\n!speech.googleapis.com/CustomClass\022\025\n\r" + + "validate_only\030\002 \001(\010\022\025\n\rallow_missing\030\004 \001" + + "(\010\022\014\n\004etag\030\003 \001(\t\"z\n\032UndeleteCustomClassR" + + "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.goo" + + "gleapis.com/CustomClass\022\025\n\rvalidate_only" + + "\030\003 \001(\010\022\014\n\004etag\030\004 \001(\t\"\273\001\n\026CreatePhraseSet" + + "Request\022:\n\nphrase_set\030\001 \001(\0132!.google.clo" + + "ud.speech.v2.PhraseSetB\003\340A\002\022\025\n\rvalidate_" + + "only\030\002 \001(\010\022\025\n\rphrase_set_id\030\003 \001(\t\0227\n\006par" + + "ent\030\004 \001(\tB\'\340A\002\372A!\022\037speech.googleapis.com" + + "/PhraseSet\"\217\001\n\025ListPhraseSetsRequest\0229\n\006" + + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + + "ge_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"i\n\026" + + "ListPhraseSetsResponse\0226\n\013phrase_sets\030\001 " + + "\003(\0132!.google.cloud.speech.v2.PhraseSet\022\027" + + "\n\017next_page_token\030\002 \001(\t\"L\n\023GetPhraseSetR" + + "equest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.goo" + + "gleapis.com/PhraseSet\"\234\001\n\026UpdatePhraseSe" + + "tRequest\022:\n\nphrase_set\030\001 \001(\0132!.google.cl" + + "oud.speech.v2.PhraseSetB\003\340A\002\022/\n\013update_m" + + "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\022\025\n" + + "\rvalidate_only\030\004 \001(\010\"\213\001\n\026DeletePhraseSet" + + "Request\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.go" + + "ogleapis.com/PhraseSet\022\025\n\rvalidate_only\030" + + "\002 \001(\010\022\025\n\rallow_missing\030\004 \001(\010\022\014\n\004etag\030\003 \001" + + "(\t\"v\n\030UndeletePhraseSetRequest\0225\n\004name\030\001" + + " \001(\tB\'\340A\002\372A!\n\037speech.googleapis.com/Phra" + + "seSet\022\025\n\rvalidate_only\030\003 \001(\010\022\014\n\004etag\030\004 \001" + + "(\t2\277%\n\006Speech\022\354\001\n\020CreateRecognizer\022/.goo" + + "gle.cloud.speech.v2.CreateRecognizerRequ" + + "est\032\035.google.longrunning.Operation\"\207\001\202\323\344" + + "\223\002=\"//v2/{parent=projects/*/locations/*}" + + "/recognizers:\nrecognizer\332A\037parent,recogn" + + "izer,recognizer_id\312A\037\n\nRecognizer\022\021Opera" + + "tionMetadata\022\264\001\n\017ListRecognizers\022..googl" + + "e.cloud.speech.v2.ListRecognizersRequest" + + "\032/.google.cloud.speech.v2.ListRecognizer" + + "sResponse\"@\202\323\344\223\0021\022//v2/{parent=projects/" + + "*/locations/*}/recognizers\332A\006parent\022\241\001\n\r" + + "GetRecognizer\022,.google.cloud.speech.v2.G" + + "etRecognizerRequest\032\".google.cloud.speec" + + "h.v2.Recognizer\">\202\323\344\223\0021\022//v2/{name=proje" + + "cts/*/locations/*/recognizers/*}\332A\004name\022" + + "\356\001\n\020UpdateRecognizer\022/.google.cloud.spee" + + "ch.v2.UpdateRecognizerRequest\032\035.google.l" + + "ongrunning.Operation\"\211\001\202\323\344\223\002H2:/v2/{reco" + + "gnizer.name=projects/*/locations/*/recog" + + "nizers/*}:\nrecognizer\332A\026recognizer,updat" + + "e_mask\312A\037\n\nRecognizer\022\021OperationMetadata" + + "\022\304\001\n\020DeleteRecognizer\022/.google.cloud.spe" + + "ech.v2.DeleteRecognizerRequest\032\035.google." + + "longrunning.Operation\"`\202\323\344\223\0021*//v2/{name" + + "=projects/*/locations/*/recognizers/*}\332A" + + "\004name\312A\037\n\nRecognizer\022\021OperationMetadata\022" + + "\324\001\n\022UndeleteRecognizer\0221.google.cloud.sp" + + "eech.v2.UndeleteRecognizerRequest\032\035.goog" + + "le.longrunning.Operation\"l\202\323\344\223\002=\"8/v2/{n" + + "ame=projects/*/locations/*/recognizers/*" + + "}:undelete:\001*\332A\004name\312A\037\n\nRecognizer\022\021Ope" + + "rationMetadata\022\371\001\n\tRecognize\022(.google.cl" + + "oud.speech.v2.RecognizeRequest\032).google." + + "cloud.speech.v2.RecognizeResponse\"\226\001\202\323\344\223" + + "\002D\"?/v2/{recognizer=projects/*/locations" + + "/*/recognizers/*}:recognize:\001*\332A%recogni" + + "zer,config,config_mask,content\332A!recogni" + + "zer,config,config_mask,uri\022\201\001\n\022Streaming" + + "Recognize\0221.google.cloud.speech.v2.Strea" + + "mingRecognizeRequest\0322.google.cloud.spee" + + "ch.v2.StreamingRecognizeResponse\"\000(\0010\001\022\204" + + "\002\n\016BatchRecognize\022-.google.cloud.speech." + + "v2.BatchRecognizeRequest\032\035.google.longru" + + "nning.Operation\"\243\001\202\323\344\223\002I\"D/v2/{recognize" + + "r=projects/*/locations/*/recognizers/*}:" + + "batchRecognize:\001*\332A#recognizer,config,co" + + "nfig_mask,files\312A+\n\026BatchRecognizeRespon" + + "se\022\021OperationMetadata\022\216\001\n\tGetConfig\022(.go" + + "ogle.cloud.speech.v2.GetConfigRequest\032\036." + + "google.cloud.speech.v2.Config\"7\202\323\344\223\002*\022(/" + + "v2/{name=projects/*/locations/*/config}\332" + + "A\004name\022\261\001\n\014UpdateConfig\022+.google.cloud.s" + + "peech.v2.UpdateConfigRequest\032\036.google.cl" + + "oud.speech.v2.Config\"T\202\323\344\223\00292//v2/{confi" + + "g.name=projects/*/locations/*/config}:\006c" + + "onfig\332A\022config,update_mask\022\367\001\n\021CreateCus" + + "tomClass\0220.google.cloud.speech.v2.Create" + + "CustomClassRequest\032\035.google.longrunning." + + "Operation\"\220\001\202\323\344\223\002A\"1/v2/{parent=projects" + + "/*/locations/*}/customClasses:\014custom_cl" + + "ass\332A#parent,custom_class,custom_class_i" + + "d\312A \n\013CustomClass\022\021OperationMetadata\022\274\001\n" + + "\021ListCustomClasses\0220.google.cloud.speech" + + ".v2.ListCustomClassesRequest\0321.google.cl" + + "oud.speech.v2.ListCustomClassesResponse\"" + + "B\202\323\344\223\0023\0221/v2/{parent=projects/*/location" + + "s/*}/customClasses\332A\006parent\022\246\001\n\016GetCusto" + + "mClass\022-.google.cloud.speech.v2.GetCusto" + + "mClassRequest\032#.google.cloud.speech.v2.C" + + "ustomClass\"@\202\323\344\223\0023\0221/v2/{name=projects/*", + "/locations/*/customClasses/*}\332A\004name\022\371\001\n" + + "\021UpdateCustomClass\0220.google.cloud.speech" + + ".v2.UpdateCustomClassRequest\032\035.google.lo" + + "ngrunning.Operation\"\222\001\202\323\344\223\002N2>/v2/{custo" + + "m_class.name=projects/*/locations/*/cust" + + "omClasses/*}:\014custom_class\332A\030custom_clas" + + "s,update_mask\312A \n\013CustomClass\022\021Operation" + + "Metadata\022\311\001\n\021DeleteCustomClass\0220.google." + + "cloud.speech.v2.DeleteCustomClassRequest" + + "\032\035.google.longrunning.Operation\"c\202\323\344\223\0023*" + + "1/v2/{name=projects/*/locations/*/custom" + + "Classes/*}\332A\004name\312A \n\013CustomClass\022\021Opera" + + "tionMetadata\022\331\001\n\023UndeleteCustomClass\0222.g" + + "oogle.cloud.speech.v2.UndeleteCustomClas" + + "sRequest\032\035.google.longrunning.Operation\"" + + "o\202\323\344\223\002?\":/v2/{name=projects/*/locations/" + + "*/customClasses/*}:undelete:\001*\332A\004name\312A " + + "\n\013CustomClass\022\021OperationMetadata\022\350\001\n\017Cre" + + "atePhraseSet\022..google.cloud.speech.v2.Cr" + + "eatePhraseSetRequest\032\035.google.longrunnin" + + "g.Operation\"\205\001\202\323\344\223\002<\"./v2/{parent=projec" + + "ts/*/locations/*}/phraseSets:\nphrase_set" + + "\332A\037parent,phrase_set,phrase_set_id\312A\036\n\tP" + + "hraseSet\022\021OperationMetadata\022\260\001\n\016ListPhra" + + "seSets\022-.google.cloud.speech.v2.ListPhra" + + "seSetsRequest\032..google.cloud.speech.v2.L" + + "istPhraseSetsResponse\"?\202\323\344\223\0020\022./v2/{pare" + + "nt=projects/*/locations/*}/phraseSets\332A\006" + + "parent\022\235\001\n\014GetPhraseSet\022+.google.cloud.s" + + "peech.v2.GetPhraseSetRequest\032!.google.cl" + + "oud.speech.v2.PhraseSet\"=\202\323\344\223\0020\022./v2/{na" + + "me=projects/*/locations/*/phraseSets/*}\332" + + "A\004name\022\352\001\n\017UpdatePhraseSet\022..google.clou" + + "d.speech.v2.UpdatePhraseSetRequest\032\035.goo" + + "gle.longrunning.Operation\"\207\001\202\323\344\223\002G29/v2/" + + "{phrase_set.name=projects/*/locations/*/" + + "phraseSets/*}:\nphrase_set\332A\026phrase_set,u" + + "pdate_mask\312A\036\n\tPhraseSet\022\021OperationMetad" + + "ata\022\300\001\n\017DeletePhraseSet\022..google.cloud.s" + + "peech.v2.DeletePhraseSetRequest\032\035.google" + + ".longrunning.Operation\"^\202\323\344\223\0020*./v2/{nam" + + "e=projects/*/locations/*/phraseSets/*}\332A" + + "\004name\312A\036\n\tPhraseSet\022\021OperationMetadata\022\320" + + "\001\n\021UndeletePhraseSet\0220.google.cloud.spee" + + "ch.v2.UndeletePhraseSetRequest\032\035.google." + + "longrunning.Operation\"j\202\323\344\223\002<\"7/v2/{name" + + "=projects/*/locations/*/phraseSets/*}:un" + + "delete:\001*\332A\004name\312A\036\n\tPhraseSet\022\021Operatio" + + "nMetadata\032I\312A\025speech.googleapis.com\322A.ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "formB\223\003\n\032com.google.cloud.speech.v2B\020Clo" + + "udSpeechProtoP\001Z * Message representing the config for the Speech-to-Text API. This includes an * optional [KMS key](https://cloud.google.com/kms/docs/resource-hierarchy#keys) @@ -12,15 +29,16 @@ * * Protobuf type {@code google.cloud.speech.v2.Config} */ -public final class Config extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Config extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.Config) ConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Config.newBuilder() to construct. private Config(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Config() { name_ = ""; kmsKeyName_ = ""; @@ -28,33 +46,37 @@ private Config() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Config(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Config_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_Config_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Config_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_Config_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.Config.class, com.google.cloud.speech.v2.Config.Builder.class); + com.google.cloud.speech.v2.Config.class, + com.google.cloud.speech.v2.Config.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. The name of the config resource. There is exactly one config
    * resource per project per location. The expected format is
@@ -62,6 +84,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -70,14 +93,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; } } /** + * + * *
    * Output only. The name of the config resource. There is exactly one config
    * resource per project per location. The expected format is
@@ -85,16 +109,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -103,9 +126,12 @@ public java.lang.String getName() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** + * + * *
    * Optional. An optional [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -115,7 +141,10 @@ public java.lang.String getName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ @java.lang.Override @@ -124,14 +153,15 @@ public java.lang.String getKmsKeyName() { 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(); kmsKeyName_ = s; return s; } } /** + * + * *
    * Optional. An optional [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -141,17 +171,18 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -162,11 +193,15 @@ public java.lang.String getKmsKeyName() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -174,11 +209,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -186,11 +225,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -198,6 +240,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,8 +252,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_); } @@ -236,8 +278,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kmsKeyName_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -247,21 +288,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.v2.Config)) { return super.equals(obj); } com.google.cloud.speech.v2.Config other = (com.google.cloud.speech.v2.Config) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getKmsKeyName() - .equals(other.getKmsKeyName())) return false; + if (!getName().equals(other.getName())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -287,97 +325,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.Config parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.Config parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.Config 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.v2.Config parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.speech.v2.Config parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.Config 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.v2.Config parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.Config 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.v2.Config 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.v2.Config 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.v2.Config 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.v2.Config 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.v2.Config 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.v2.Config 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.v2.Config 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 representing the config for the Speech-to-Text API. This includes an
    * optional [KMS key](https://cloud.google.com/kms/docs/resource-hierarchy#keys)
@@ -386,33 +430,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.Config}
    */
-  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.v2.Config)
       com.google.cloud.speech.v2.ConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Config_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_Config_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Config_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_Config_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.Config.class, com.google.cloud.speech.v2.Config.Builder.class);
+              com.google.cloud.speech.v2.Config.class,
+              com.google.cloud.speech.v2.Config.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.Config.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -428,9 +471,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Config_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_Config_descriptor;
     }
 
     @java.lang.Override
@@ -450,7 +493,9 @@ public com.google.cloud.speech.v2.Config build() {
     @java.lang.Override
     public com.google.cloud.speech.v2.Config buildPartial() {
       com.google.cloud.speech.v2.Config result = new com.google.cloud.speech.v2.Config(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -464,9 +509,7 @@ private void buildPartial0(com.google.cloud.speech.v2.Config result) {
         result.kmsKeyName_ = kmsKeyName_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
     }
 
@@ -474,38 +517,39 @@ private void buildPartial0(com.google.cloud.speech.v2.Config result) {
     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.v2.Config) {
-        return mergeFrom((com.google.cloud.speech.v2.Config)other);
+        return mergeFrom((com.google.cloud.speech.v2.Config) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -553,29 +597,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              kmsKeyName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                kmsKeyName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -585,10 +631,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The name of the config resource. There is exactly one config
      * resource per project per location. The expected format is
@@ -596,13 +645,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -611,6 +660,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of the config resource. There is exactly one config
      * resource per project per location. The expected format is
@@ -618,15 +669,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -634,6 +684,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of the config resource. There is exactly one config
      * resource per project per location. The expected format is
@@ -641,18 +693,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The name of the config resource. There is exactly one config
      * resource per project per location. The expected format is
@@ -660,6 +716,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -669,6 +726,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The name of the config resource. There is exactly one config
      * resource per project per location. The expected format is
@@ -676,12 +735,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -691,6 +752,8 @@ public Builder setNameBytes( private java.lang.Object kmsKeyName_ = ""; /** + * + * *
      * Optional. An optional [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -700,14 +763,16 @@ public Builder setNameBytes(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; 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(); kmsKeyName_ = s; return s; @@ -716,6 +781,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Optional. An optional [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -725,16 +792,17 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -742,6 +810,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Optional. An optional [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -751,19 +821,25 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. An optional [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -773,7 +849,10 @@ public Builder setKmsKeyName(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -783,6 +862,8 @@ public Builder clearKmsKeyName() { return this; } /** + * + * *
      * Optional. An optional [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -792,13 +873,17 @@ public Builder clearKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00000002; @@ -808,39 +893,58 @@ public Builder setKmsKeyNameBytes( private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -856,14 +960,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -874,17 +981,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -897,11 +1008,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -914,11 +1029,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -926,43 +1045,55 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } + @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); } @@ -972,12 +1103,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.Config) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.Config) private static final com.google.cloud.speech.v2.Config DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.Config(); } @@ -986,27 +1117,27 @@ public static com.google.cloud.speech.v2.Config getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Config parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Config parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1021,6 +1152,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.Config getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java similarity index 100% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java similarity index 68% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java index 882c277e0239..6d4dd82b7de2 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ConfigOrBuilder extends +public interface ConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.Config) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The name of the config resource. There is exactly one config
    * resource per project per location. The expected format is
@@ -15,10 +33,13 @@ public interface ConfigOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The name of the config resource. There is exactly one config
    * resource per project per location. The expected format is
@@ -26,12 +47,14 @@ public interface ConfigOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. An optional [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -41,11 +64,16 @@ public interface ConfigOrBuilder extends
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** + * + * *
    * Optional. An optional [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -55,36 +83,49 @@ public interface ConfigOrBuilder extends
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString - getKmsKeyNameBytes(); + com.google.protobuf.ByteString getKmsKeyNameBytes(); /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java similarity index 65% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java index 42e674391f4c..3c5619413afd 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [CreateCustomClass][google.cloud.speech.v2.Speech.CreateCustomClass] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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() {
     customClassId_ = "";
     parent_ = "";
@@ -27,37 +45,43 @@ 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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.CreateCustomClassRequest.class, com.google.cloud.speech.v2.CreateCustomClassRequest.Builder.class);
+            com.google.cloud.speech.v2.CreateCustomClassRequest.class,
+            com.google.cloud.speech.v2.CreateCustomClassRequest.Builder.class);
   }
 
   public static final int CUSTOM_CLASS_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.CustomClass customClass_;
   /**
+   *
+   *
    * 
    * Required. The CustomClass to create.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ @java.lang.Override @@ -65,38 +89,54 @@ public boolean hasCustomClass() { return customClass_ != null; } /** + * + * *
    * Required. The CustomClass to create.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ @java.lang.Override public com.google.cloud.speech.v2.CustomClass getCustomClass() { - return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() + : customClass_; } /** + * + * *
    * Required. The CustomClass to create.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder() { - return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() + : customClass_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the CustomClass, but do not
    * actually create it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -105,9 +145,12 @@ public boolean getValidateOnly() { } public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object customClassId_ = ""; /** + * + * *
    * The ID to use for the CustomClass, which will become the final component of
    * the CustomClass's resource name.
@@ -116,6 +159,7 @@ public boolean getValidateOnly() {
    * 
* * string custom_class_id = 3; + * * @return The customClassId. */ @java.lang.Override @@ -124,14 +168,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; } } /** + * + * *
    * The ID to use for the CustomClass, which will become the final component of
    * the CustomClass's resource name.
@@ -140,16 +185,15 @@ public java.lang.String getCustomClassId() {
    * 
* * string custom_class_id = 3; + * * @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 { @@ -158,15 +202,21 @@ public java.lang.String getCustomClassId() { } public static final int PARENT_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The project and location where this CustomClass will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -175,30 +225,32 @@ 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 project and location where this CustomClass will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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 { @@ -207,6 +259,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,8 +271,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 +294,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 (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customClassId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, customClassId_); @@ -263,24 +313,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.v2.CreateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.CreateCustomClassRequest other = (com.google.cloud.speech.v2.CreateCustomClassRequest) obj; + com.google.cloud.speech.v2.CreateCustomClassRequest other = + (com.google.cloud.speech.v2.CreateCustomClassRequest) obj; if (hasCustomClass() != other.hasCustomClass()) return false; if (hasCustomClass()) { - if (!getCustomClass() - .equals(other.getCustomClass())) return false; + if (!getCustomClass().equals(other.getCustomClass())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getCustomClassId() - .equals(other.getCustomClassId())) return false; - if (!getParent() - .equals(other.getParent())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getCustomClassId().equals(other.getCustomClassId())) return false; + if (!getParent().equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -297,8 +344,7 @@ public int hashCode() { hash = (53 * hash) + getCustomClass().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + CUSTOM_CLASS_ID_FIELD_NUMBER; hash = (53 * hash) + getCustomClassId().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; @@ -309,96 +355,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.CreateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.CreateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.CreateCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.CreateCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.CreateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.CreateCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [CreateCustomClass][google.cloud.speech.v2.Speech.CreateCustomClass] method.
@@ -406,33 +459,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.CreateCustomClassRequest)
       com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.CreateCustomClassRequest.class, com.google.cloud.speech.v2.CreateCustomClassRequest.Builder.class);
+              com.google.cloud.speech.v2.CreateCustomClassRequest.class,
+              com.google.cloud.speech.v2.CreateCustomClassRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.CreateCustomClassRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -449,9 +501,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
@@ -470,8 +522,11 @@ public com.google.cloud.speech.v2.CreateCustomClassRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.CreateCustomClassRequest buildPartial() {
-      com.google.cloud.speech.v2.CreateCustomClassRequest result = new com.google.cloud.speech.v2.CreateCustomClassRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.CreateCustomClassRequest result =
+          new com.google.cloud.speech.v2.CreateCustomClassRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -479,9 +534,8 @@ public com.google.cloud.speech.v2.CreateCustomClassRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.CreateCustomClassRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.customClass_ = customClassBuilder_ == null
-            ? customClass_
-            : customClassBuilder_.build();
+        result.customClass_ =
+            customClassBuilder_ == null ? customClass_ : customClassBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -498,38 +552,39 @@ private void buildPartial0(com.google.cloud.speech.v2.CreateCustomClassRequest r
     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.v2.CreateCustomClassRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.CreateCustomClassRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.CreateCustomClassRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -537,7 +592,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.CreateCustomClassRequest other) {
-      if (other == com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance())
+        return this;
       if (other.hasCustomClass()) {
         mergeCustomClass(other.getCustomClass());
       }
@@ -580,34 +636,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getCustomClassFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              customClassId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                customClassId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -617,43 +676,63 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.speech.v2.CustomClass customClass_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> customClassBuilder_;
+            com.google.cloud.speech.v2.CustomClass,
+            com.google.cloud.speech.v2.CustomClass.Builder,
+            com.google.cloud.speech.v2.CustomClassOrBuilder>
+        customClassBuilder_;
     /**
+     *
+     *
      * 
      * Required. The CustomClass to create.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The CustomClass to create.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ public com.google.cloud.speech.v2.CustomClass getCustomClass() { if (customClassBuilder_ == null) { - return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() + : customClass_; } else { return customClassBuilder_.getMessage(); } } /** + * + * *
      * Required. The CustomClass to create.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass value) { if (customClassBuilder_ == null) { @@ -669,14 +748,17 @@ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass value) { return this; } /** + * + * *
      * Required. The CustomClass to create.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCustomClass( - com.google.cloud.speech.v2.CustomClass.Builder builderForValue) { + public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass.Builder builderForValue) { if (customClassBuilder_ == null) { customClass_ = builderForValue.build(); } else { @@ -687,17 +769,21 @@ public Builder setCustomClass( return this; } /** + * + * *
      * Required. The CustomClass to create.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCustomClass(com.google.cloud.speech.v2.CustomClass value) { if (customClassBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - customClass_ != null && - customClass_ != com.google.cloud.speech.v2.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && customClass_ != null + && customClass_ != com.google.cloud.speech.v2.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -710,11 +796,15 @@ public Builder mergeCustomClass(com.google.cloud.speech.v2.CustomClass value) { return this; } /** + * + * *
      * Required. The CustomClass to create.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCustomClass() { bitField0_ = (bitField0_ & ~0x00000001); @@ -727,11 +817,15 @@ public Builder clearCustomClass() { return this; } /** + * + * *
      * Required. The CustomClass to create.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassBuilder() { bitField0_ |= 0x00000001; @@ -739,49 +833,64 @@ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassBuilder() { return getCustomClassFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The CustomClass to create.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder() { if (customClassBuilder_ != null) { return customClassBuilder_.getMessageOrBuilder(); } else { - return customClass_ == null ? - com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() + : customClass_; } } /** + * + * *
      * Required. The CustomClass to create.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> + com.google.cloud.speech.v2.CustomClass, + com.google.cloud.speech.v2.CustomClass.Builder, + com.google.cloud.speech.v2.CustomClassOrBuilder> getCustomClassFieldBuilder() { if (customClassBuilder_ == null) { - customClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder>( - getCustomClass(), - getParentForChildren(), - isClean()); + customClassBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.CustomClass, + com.google.cloud.speech.v2.CustomClass.Builder, + com.google.cloud.speech.v2.CustomClassOrBuilder>( + getCustomClass(), getParentForChildren(), isClean()); customClass_ = null; } return customClassBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the CustomClass, but do not
      * actually create it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -789,29 +898,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the CustomClass, but do not
      * actually create it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the CustomClass, but do not
      * actually create it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -823,6 +938,8 @@ public Builder clearValidateOnly() { private java.lang.Object customClassId_ = ""; /** + * + * *
      * The ID to use for the CustomClass, which will become the final component of
      * the CustomClass's resource name.
@@ -831,13 +948,13 @@ public Builder clearValidateOnly() {
      * 
* * string custom_class_id = 3; + * * @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,6 +963,8 @@ public java.lang.String getCustomClassId() { } } /** + * + * *
      * The ID to use for the CustomClass, which will become the final component of
      * the CustomClass's resource name.
@@ -854,15 +973,14 @@ public java.lang.String getCustomClassId() {
      * 
* * string custom_class_id = 3; + * * @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 { @@ -870,6 +988,8 @@ public java.lang.String getCustomClassId() { } } /** + * + * *
      * The ID to use for the CustomClass, which will become the final component of
      * the CustomClass's resource name.
@@ -878,18 +998,22 @@ public java.lang.String getCustomClassId() {
      * 
* * string custom_class_id = 3; + * * @param value The customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomClassId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } customClassId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The ID to use for the CustomClass, which will become the final component of
      * the CustomClass's resource name.
@@ -898,6 +1022,7 @@ public Builder setCustomClassId(
      * 
* * string custom_class_id = 3; + * * @return This builder for chaining. */ public Builder clearCustomClassId() { @@ -907,6 +1032,8 @@ public Builder clearCustomClassId() { return this; } /** + * + * *
      * The ID to use for the CustomClass, which will become the final component of
      * the CustomClass's resource name.
@@ -915,12 +1042,14 @@ public Builder clearCustomClassId() {
      * 
* * string custom_class_id = 3; + * * @param value The bytes for customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); customClassId_ = value; bitField0_ |= 0x00000004; @@ -930,19 +1059,23 @@ public Builder setCustomClassIdBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project and location where this CustomClass will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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; @@ -951,21 +1084,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location where this CustomClass will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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 { @@ -973,30 +1109,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location where this CustomClass will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Required. The project and location where this CustomClass will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1006,27 +1153,33 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The project and location where this CustomClass will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000008; 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); } @@ -1036,12 +1189,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.CreateCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.CreateCustomClassRequest) private static final com.google.cloud.speech.v2.CreateCustomClassRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.CreateCustomClassRequest(); } @@ -1050,27 +1203,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1085,6 +1238,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.CreateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java index a787ee130a2a..4a356278c295 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java @@ -1,51 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface CreateCustomClassRequestOrBuilder extends +public interface CreateCustomClassRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.CreateCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The CustomClass to create.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ boolean hasCustomClass(); /** + * + * *
    * Required. The CustomClass to create.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ com.google.cloud.speech.v2.CustomClass getCustomClass(); /** + * + * *
    * Required. The CustomClass to create.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder(); /** + * + * *
    * If set, validate the request and preview the CustomClass, but do not
    * actually create it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * The ID to use for the CustomClass, which will become the final component of
    * the CustomClass's resource name.
@@ -54,10 +89,13 @@ public interface CreateCustomClassRequestOrBuilder extends
    * 
* * string custom_class_id = 3; + * * @return The customClassId. */ java.lang.String getCustomClassId(); /** + * + * *
    * The ID to use for the CustomClass, which will become the final component of
    * the CustomClass's resource name.
@@ -66,30 +104,39 @@ public interface CreateCustomClassRequestOrBuilder extends
    * 
* * string custom_class_id = 3; + * * @return The bytes for customClassId. */ - com.google.protobuf.ByteString - getCustomClassIdBytes(); + com.google.protobuf.ByteString getCustomClassIdBytes(); /** + * + * *
    * Required. The project and location where this CustomClass will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project and location where this CustomClass will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java similarity index 65% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java index 81b996533df4..7414b3b497b8 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [CreatePhraseSet][google.cloud.speech.v2.Speech.CreatePhraseSet] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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() {
     phraseSetId_ = "";
     parent_ = "";
@@ -27,37 +45,43 @@ 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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.CreatePhraseSetRequest.class, com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder.class);
+            com.google.cloud.speech.v2.CreatePhraseSetRequest.class,
+            com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder.class);
   }
 
   public static final int PHRASE_SET_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.PhraseSet phraseSet_;
   /**
+   *
+   *
    * 
    * Required. The PhraseSet to create.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -65,38 +89,54 @@ public boolean hasPhraseSet() { return phraseSet_ != null; } /** + * + * *
    * Required. The PhraseSet to create.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSet getPhraseSet() { - return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() + : phraseSet_; } /** + * + * *
    * Required. The PhraseSet to create.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder() { - return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() + : phraseSet_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the PhraseSet, but do not
    * actually create it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -105,9 +145,12 @@ public boolean getValidateOnly() { } public static final int PHRASE_SET_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object phraseSetId_ = ""; /** + * + * *
    * The ID to use for the PhraseSet, which will become the final component of
    * the PhraseSet's resource name.
@@ -116,6 +159,7 @@ public boolean getValidateOnly() {
    * 
* * string phrase_set_id = 3; + * * @return The phraseSetId. */ @java.lang.Override @@ -124,14 +168,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; } } /** + * + * *
    * The ID to use for the PhraseSet, which will become the final component of
    * the PhraseSet's resource name.
@@ -140,16 +185,15 @@ public java.lang.String getPhraseSetId() {
    * 
* * string phrase_set_id = 3; + * * @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 { @@ -158,15 +202,21 @@ public java.lang.String getPhraseSetId() { } public static final int PARENT_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The project and location where this PhraseSet will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -175,30 +225,32 @@ 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 project and location where this PhraseSet will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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 { @@ -207,6 +259,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,8 +271,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 +294,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 (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phraseSetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, phraseSetId_); @@ -263,24 +313,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.v2.CreatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.CreatePhraseSetRequest other = (com.google.cloud.speech.v2.CreatePhraseSetRequest) obj; + com.google.cloud.speech.v2.CreatePhraseSetRequest other = + (com.google.cloud.speech.v2.CreatePhraseSetRequest) obj; if (hasPhraseSet() != other.hasPhraseSet()) return false; if (hasPhraseSet()) { - if (!getPhraseSet() - .equals(other.getPhraseSet())) return false; + if (!getPhraseSet().equals(other.getPhraseSet())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getPhraseSetId() - .equals(other.getPhraseSetId())) return false; - if (!getParent() - .equals(other.getParent())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getPhraseSetId().equals(other.getPhraseSetId())) return false; + if (!getParent().equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -297,8 +344,7 @@ public int hashCode() { hash = (53 * hash) + getPhraseSet().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + PHRASE_SET_ID_FIELD_NUMBER; hash = (53 * hash) + getPhraseSetId().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; @@ -309,96 +355,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.CreatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.CreatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.CreatePhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.CreatePhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.CreatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.CreatePhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [CreatePhraseSet][google.cloud.speech.v2.Speech.CreatePhraseSet] method.
@@ -406,33 +459,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.CreatePhraseSetRequest)
       com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.CreatePhraseSetRequest.class, com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder.class);
+              com.google.cloud.speech.v2.CreatePhraseSetRequest.class,
+              com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.CreatePhraseSetRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -449,9 +501,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -470,8 +522,11 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.CreatePhraseSetRequest buildPartial() {
-      com.google.cloud.speech.v2.CreatePhraseSetRequest result = new com.google.cloud.speech.v2.CreatePhraseSetRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.CreatePhraseSetRequest result =
+          new com.google.cloud.speech.v2.CreatePhraseSetRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -479,9 +534,7 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.CreatePhraseSetRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.phraseSet_ = phraseSetBuilder_ == null
-            ? phraseSet_
-            : phraseSetBuilder_.build();
+        result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -498,38 +551,39 @@ private void buildPartial0(com.google.cloud.speech.v2.CreatePhraseSetRequest res
     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.v2.CreatePhraseSetRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.CreatePhraseSetRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.CreatePhraseSetRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -537,7 +591,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.CreatePhraseSetRequest other) {
-      if (other == com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance())
+        return this;
       if (other.hasPhraseSet()) {
         mergePhraseSet(other.getPhraseSet());
       }
@@ -580,34 +635,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getPhraseSetFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              phraseSetId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                phraseSetId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -617,43 +675,63 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.speech.v2.PhraseSet phraseSet_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> phraseSetBuilder_;
+            com.google.cloud.speech.v2.PhraseSet,
+            com.google.cloud.speech.v2.PhraseSet.Builder,
+            com.google.cloud.speech.v2.PhraseSetOrBuilder>
+        phraseSetBuilder_;
     /**
+     *
+     *
      * 
      * Required. The PhraseSet to create.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The PhraseSet to create.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ public com.google.cloud.speech.v2.PhraseSet getPhraseSet() { if (phraseSetBuilder_ == null) { - return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() + : phraseSet_; } else { return phraseSetBuilder_.getMessage(); } } /** + * + * *
      * Required. The PhraseSet to create.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetBuilder_ == null) { @@ -669,14 +747,17 @@ public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** + * + * *
      * Required. The PhraseSet to create.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setPhraseSet( - com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { + public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { if (phraseSetBuilder_ == null) { phraseSet_ = builderForValue.build(); } else { @@ -687,17 +768,21 @@ public Builder setPhraseSet( return this; } /** + * + * *
      * Required. The PhraseSet to create.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - phraseSet_ != null && - phraseSet_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && phraseSet_ != null + && phraseSet_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -710,11 +795,15 @@ public Builder mergePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** + * + * *
      * Required. The PhraseSet to create.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPhraseSet() { bitField0_ = (bitField0_ & ~0x00000001); @@ -727,11 +816,15 @@ public Builder clearPhraseSet() { return this; } /** + * + * *
      * Required. The PhraseSet to create.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetBuilder() { bitField0_ |= 0x00000001; @@ -739,49 +832,64 @@ public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetBuilder() { return getPhraseSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The PhraseSet to create.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder() { if (phraseSetBuilder_ != null) { return phraseSetBuilder_.getMessageOrBuilder(); } else { - return phraseSet_ == null ? - com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() + : phraseSet_; } } /** + * + * *
      * Required. The PhraseSet to create.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> + com.google.cloud.speech.v2.PhraseSet, + com.google.cloud.speech.v2.PhraseSet.Builder, + com.google.cloud.speech.v2.PhraseSetOrBuilder> getPhraseSetFieldBuilder() { if (phraseSetBuilder_ == null) { - phraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder>( - getPhraseSet(), - getParentForChildren(), - isClean()); + phraseSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.PhraseSet, + com.google.cloud.speech.v2.PhraseSet.Builder, + com.google.cloud.speech.v2.PhraseSetOrBuilder>( + getPhraseSet(), getParentForChildren(), isClean()); phraseSet_ = null; } return phraseSetBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the PhraseSet, but do not
      * actually create it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -789,29 +897,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the PhraseSet, but do not
      * actually create it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the PhraseSet, but do not
      * actually create it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -823,6 +937,8 @@ public Builder clearValidateOnly() { private java.lang.Object phraseSetId_ = ""; /** + * + * *
      * The ID to use for the PhraseSet, which will become the final component of
      * the PhraseSet's resource name.
@@ -831,13 +947,13 @@ public Builder clearValidateOnly() {
      * 
* * string phrase_set_id = 3; + * * @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,6 +962,8 @@ public java.lang.String getPhraseSetId() { } } /** + * + * *
      * The ID to use for the PhraseSet, which will become the final component of
      * the PhraseSet's resource name.
@@ -854,15 +972,14 @@ public java.lang.String getPhraseSetId() {
      * 
* * string phrase_set_id = 3; + * * @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 { @@ -870,6 +987,8 @@ public java.lang.String getPhraseSetId() { } } /** + * + * *
      * The ID to use for the PhraseSet, which will become the final component of
      * the PhraseSet's resource name.
@@ -878,18 +997,22 @@ public java.lang.String getPhraseSetId() {
      * 
* * string phrase_set_id = 3; + * * @param value The phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhraseSetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } phraseSetId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The ID to use for the PhraseSet, which will become the final component of
      * the PhraseSet's resource name.
@@ -898,6 +1021,7 @@ public Builder setPhraseSetId(
      * 
* * string phrase_set_id = 3; + * * @return This builder for chaining. */ public Builder clearPhraseSetId() { @@ -907,6 +1031,8 @@ public Builder clearPhraseSetId() { return this; } /** + * + * *
      * The ID to use for the PhraseSet, which will become the final component of
      * the PhraseSet's resource name.
@@ -915,12 +1041,14 @@ public Builder clearPhraseSetId() {
      * 
* * string phrase_set_id = 3; + * * @param value The bytes for phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); phraseSetId_ = value; bitField0_ |= 0x00000004; @@ -930,19 +1058,23 @@ public Builder setPhraseSetIdBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project and location where this PhraseSet will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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; @@ -951,21 +1083,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location where this PhraseSet will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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 { @@ -973,30 +1108,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location where this PhraseSet will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Required. The project and location where this PhraseSet will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1006,27 +1152,33 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The project and location where this PhraseSet will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000008; 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); } @@ -1036,12 +1188,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.CreatePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.CreatePhraseSetRequest) private static final com.google.cloud.speech.v2.CreatePhraseSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.CreatePhraseSetRequest(); } @@ -1050,27 +1202,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1085,6 +1237,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.CreatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java index b5990b5ce7a0..862e79fa966f 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java @@ -1,51 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface CreatePhraseSetRequestOrBuilder extends +public interface CreatePhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.CreatePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The PhraseSet to create.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** + * + * *
    * Required. The PhraseSet to create.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ com.google.cloud.speech.v2.PhraseSet getPhraseSet(); /** + * + * *
    * Required. The PhraseSet to create.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder(); /** + * + * *
    * If set, validate the request and preview the PhraseSet, but do not
    * actually create it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * The ID to use for the PhraseSet, which will become the final component of
    * the PhraseSet's resource name.
@@ -54,10 +89,13 @@ public interface CreatePhraseSetRequestOrBuilder extends
    * 
* * string phrase_set_id = 3; + * * @return The phraseSetId. */ java.lang.String getPhraseSetId(); /** + * + * *
    * The ID to use for the PhraseSet, which will become the final component of
    * the PhraseSet's resource name.
@@ -66,30 +104,39 @@ public interface CreatePhraseSetRequestOrBuilder extends
    * 
* * string phrase_set_id = 3; + * * @return The bytes for phraseSetId. */ - com.google.protobuf.ByteString - getPhraseSetIdBytes(); + com.google.protobuf.ByteString getPhraseSetIdBytes(); /** + * + * *
    * Required. The project and location where this PhraseSet will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project and location where this PhraseSet will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java similarity index 65% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java index 1f373bf761f0..f9a1139da8fd 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [CreateRecognizer][google.cloud.speech.v2.Speech.CreateRecognizer] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.CreateRecognizerRequest}
  */
-public final class CreateRecognizerRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateRecognizerRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.CreateRecognizerRequest)
     CreateRecognizerRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateRecognizerRequest.newBuilder() to construct.
   private CreateRecognizerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateRecognizerRequest() {
     recognizerId_ = "";
     parent_ = "";
@@ -27,37 +45,43 @@ private CreateRecognizerRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateRecognizerRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.CreateRecognizerRequest.class, com.google.cloud.speech.v2.CreateRecognizerRequest.Builder.class);
+            com.google.cloud.speech.v2.CreateRecognizerRequest.class,
+            com.google.cloud.speech.v2.CreateRecognizerRequest.Builder.class);
   }
 
   public static final int RECOGNIZER_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.Recognizer recognizer_;
   /**
+   *
+   *
    * 
    * Required. The Recognizer to create.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the recognizer field is set. */ @java.lang.Override @@ -65,38 +89,54 @@ public boolean hasRecognizer() { return recognizer_ != null; } /** + * + * *
    * Required. The Recognizer to create.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The recognizer. */ @java.lang.Override public com.google.cloud.speech.v2.Recognizer getRecognizer() { - return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; + return recognizer_ == null + ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() + : recognizer_; } /** + * + * *
    * Required. The Recognizer to create.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder() { - return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; + return recognizer_ == null + ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() + : recognizer_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the Recognizer, but do not
    * actually create it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -105,9 +145,12 @@ public boolean getValidateOnly() { } public static final int RECOGNIZER_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object recognizerId_ = ""; /** + * + * *
    * The ID to use for the Recognizer, which will become the final component of
    * the Recognizer's resource name.
@@ -116,6 +159,7 @@ public boolean getValidateOnly() {
    * 
* * string recognizer_id = 3; + * * @return The recognizerId. */ @java.lang.Override @@ -124,14 +168,15 @@ public java.lang.String getRecognizerId() { 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(); recognizerId_ = s; return s; } } /** + * + * *
    * The ID to use for the Recognizer, which will become the final component of
    * the Recognizer's resource name.
@@ -140,16 +185,15 @@ public java.lang.String getRecognizerId() {
    * 
* * string recognizer_id = 3; + * * @return The bytes for recognizerId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRecognizerIdBytes() { + public com.google.protobuf.ByteString getRecognizerIdBytes() { java.lang.Object ref = recognizerId_; 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); recognizerId_ = b; return b; } else { @@ -158,15 +202,21 @@ public java.lang.String getRecognizerId() { } public static final int PARENT_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The project and location where this Recognizer will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -175,30 +225,32 @@ 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 project and location where this Recognizer will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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 { @@ -207,6 +259,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,8 +271,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 (recognizer_ != null) { output.writeMessage(1, getRecognizer()); } @@ -242,12 +294,10 @@ public int getSerializedSize() { size = 0; if (recognizer_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRecognizer()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRecognizer()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recognizerId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, recognizerId_); @@ -263,24 +313,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.v2.CreateRecognizerRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.CreateRecognizerRequest other = (com.google.cloud.speech.v2.CreateRecognizerRequest) obj; + com.google.cloud.speech.v2.CreateRecognizerRequest other = + (com.google.cloud.speech.v2.CreateRecognizerRequest) obj; if (hasRecognizer() != other.hasRecognizer()) return false; if (hasRecognizer()) { - if (!getRecognizer() - .equals(other.getRecognizer())) return false; + if (!getRecognizer().equals(other.getRecognizer())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getRecognizerId() - .equals(other.getRecognizerId())) return false; - if (!getParent() - .equals(other.getParent())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRecognizerId().equals(other.getRecognizerId())) return false; + if (!getParent().equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -297,8 +344,7 @@ public int hashCode() { hash = (53 * hash) + getRecognizer().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + RECOGNIZER_ID_FIELD_NUMBER; hash = (53 * hash) + getRecognizerId().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; @@ -309,96 +355,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.CreateRecognizerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.CreateRecognizerRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest 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; } /** + * + * *
    * Request message for the
    * [CreateRecognizer][google.cloud.speech.v2.Speech.CreateRecognizer] method.
@@ -406,33 +459,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.CreateRecognizerRequest}
    */
-  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.v2.CreateRecognizerRequest)
       com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.CreateRecognizerRequest.class, com.google.cloud.speech.v2.CreateRecognizerRequest.Builder.class);
+              com.google.cloud.speech.v2.CreateRecognizerRequest.class,
+              com.google.cloud.speech.v2.CreateRecognizerRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.CreateRecognizerRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -449,9 +501,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
@@ -470,8 +522,11 @@ public com.google.cloud.speech.v2.CreateRecognizerRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.CreateRecognizerRequest buildPartial() {
-      com.google.cloud.speech.v2.CreateRecognizerRequest result = new com.google.cloud.speech.v2.CreateRecognizerRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.CreateRecognizerRequest result =
+          new com.google.cloud.speech.v2.CreateRecognizerRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -479,9 +534,7 @@ public com.google.cloud.speech.v2.CreateRecognizerRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.CreateRecognizerRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.recognizer_ = recognizerBuilder_ == null
-            ? recognizer_
-            : recognizerBuilder_.build();
+        result.recognizer_ = recognizerBuilder_ == null ? recognizer_ : recognizerBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -498,38 +551,39 @@ private void buildPartial0(com.google.cloud.speech.v2.CreateRecognizerRequest re
     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.v2.CreateRecognizerRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.CreateRecognizerRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.CreateRecognizerRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -537,7 +591,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.CreateRecognizerRequest other) {
-      if (other == com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance())
+        return this;
       if (other.hasRecognizer()) {
         mergeRecognizer(other.getRecognizer());
       }
@@ -580,34 +635,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getRecognizerFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              recognizerId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getRecognizerFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                recognizerId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -617,43 +675,63 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.speech.v2.Recognizer recognizer_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> recognizerBuilder_;
+            com.google.cloud.speech.v2.Recognizer,
+            com.google.cloud.speech.v2.Recognizer.Builder,
+            com.google.cloud.speech.v2.RecognizerOrBuilder>
+        recognizerBuilder_;
     /**
+     *
+     *
      * 
      * Required. The Recognizer to create.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the recognizer field is set. */ public boolean hasRecognizer() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The Recognizer to create.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The recognizer. */ public com.google.cloud.speech.v2.Recognizer getRecognizer() { if (recognizerBuilder_ == null) { - return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; + return recognizer_ == null + ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() + : recognizer_; } else { return recognizerBuilder_.getMessage(); } } /** + * + * *
      * Required. The Recognizer to create.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer value) { if (recognizerBuilder_ == null) { @@ -669,14 +747,17 @@ public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer value) { return this; } /** + * + * *
      * Required. The Recognizer to create.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setRecognizer( - com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { + public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { if (recognizerBuilder_ == null) { recognizer_ = builderForValue.build(); } else { @@ -687,17 +768,21 @@ public Builder setRecognizer( return this; } /** + * + * *
      * Required. The Recognizer to create.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeRecognizer(com.google.cloud.speech.v2.Recognizer value) { if (recognizerBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - recognizer_ != null && - recognizer_ != com.google.cloud.speech.v2.Recognizer.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && recognizer_ != null + && recognizer_ != com.google.cloud.speech.v2.Recognizer.getDefaultInstance()) { getRecognizerBuilder().mergeFrom(value); } else { recognizer_ = value; @@ -710,11 +795,15 @@ public Builder mergeRecognizer(com.google.cloud.speech.v2.Recognizer value) { return this; } /** + * + * *
      * Required. The Recognizer to create.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRecognizer() { bitField0_ = (bitField0_ & ~0x00000001); @@ -727,11 +816,15 @@ public Builder clearRecognizer() { return this; } /** + * + * *
      * Required. The Recognizer to create.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.Recognizer.Builder getRecognizerBuilder() { bitField0_ |= 0x00000001; @@ -739,49 +832,64 @@ public com.google.cloud.speech.v2.Recognizer.Builder getRecognizerBuilder() { return getRecognizerFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Recognizer to create.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder() { if (recognizerBuilder_ != null) { return recognizerBuilder_.getMessageOrBuilder(); } else { - return recognizer_ == null ? - com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; + return recognizer_ == null + ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() + : recognizer_; } } /** + * + * *
      * Required. The Recognizer to create.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> + com.google.cloud.speech.v2.Recognizer, + com.google.cloud.speech.v2.Recognizer.Builder, + com.google.cloud.speech.v2.RecognizerOrBuilder> getRecognizerFieldBuilder() { if (recognizerBuilder_ == null) { - recognizerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder>( - getRecognizer(), - getParentForChildren(), - isClean()); + recognizerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.Recognizer, + com.google.cloud.speech.v2.Recognizer.Builder, + com.google.cloud.speech.v2.RecognizerOrBuilder>( + getRecognizer(), getParentForChildren(), isClean()); recognizer_ = null; } return recognizerBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the Recognizer, but do not
      * actually create it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -789,29 +897,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the Recognizer, but do not
      * actually create it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the Recognizer, but do not
      * actually create it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -823,6 +937,8 @@ public Builder clearValidateOnly() { private java.lang.Object recognizerId_ = ""; /** + * + * *
      * The ID to use for the Recognizer, which will become the final component of
      * the Recognizer's resource name.
@@ -831,13 +947,13 @@ public Builder clearValidateOnly() {
      * 
* * string recognizer_id = 3; + * * @return The recognizerId. */ public java.lang.String getRecognizerId() { java.lang.Object ref = recognizerId_; 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(); recognizerId_ = s; return s; @@ -846,6 +962,8 @@ public java.lang.String getRecognizerId() { } } /** + * + * *
      * The ID to use for the Recognizer, which will become the final component of
      * the Recognizer's resource name.
@@ -854,15 +972,14 @@ public java.lang.String getRecognizerId() {
      * 
* * string recognizer_id = 3; + * * @return The bytes for recognizerId. */ - public com.google.protobuf.ByteString - getRecognizerIdBytes() { + public com.google.protobuf.ByteString getRecognizerIdBytes() { java.lang.Object ref = recognizerId_; 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); recognizerId_ = b; return b; } else { @@ -870,6 +987,8 @@ public java.lang.String getRecognizerId() { } } /** + * + * *
      * The ID to use for the Recognizer, which will become the final component of
      * the Recognizer's resource name.
@@ -878,18 +997,22 @@ public java.lang.String getRecognizerId() {
      * 
* * string recognizer_id = 3; + * * @param value The recognizerId to set. * @return This builder for chaining. */ - public Builder setRecognizerId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecognizerId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } recognizerId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The ID to use for the Recognizer, which will become the final component of
      * the Recognizer's resource name.
@@ -898,6 +1021,7 @@ public Builder setRecognizerId(
      * 
* * string recognizer_id = 3; + * * @return This builder for chaining. */ public Builder clearRecognizerId() { @@ -907,6 +1031,8 @@ public Builder clearRecognizerId() { return this; } /** + * + * *
      * The ID to use for the Recognizer, which will become the final component of
      * the Recognizer's resource name.
@@ -915,12 +1041,14 @@ public Builder clearRecognizerId() {
      * 
* * string recognizer_id = 3; + * * @param value The bytes for recognizerId to set. * @return This builder for chaining. */ - public Builder setRecognizerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecognizerIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); recognizerId_ = value; bitField0_ |= 0x00000004; @@ -930,19 +1058,23 @@ public Builder setRecognizerIdBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project and location where this Recognizer will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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; @@ -951,21 +1083,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location where this Recognizer will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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 { @@ -973,30 +1108,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location where this Recognizer will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Required. The project and location where this Recognizer will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1006,27 +1152,33 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The project and location where this Recognizer will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000008; 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); } @@ -1036,12 +1188,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.CreateRecognizerRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.CreateRecognizerRequest) private static final com.google.cloud.speech.v2.CreateRecognizerRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.CreateRecognizerRequest(); } @@ -1050,27 +1202,27 @@ public static com.google.cloud.speech.v2.CreateRecognizerRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRecognizerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRecognizerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1085,6 +1237,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.CreateRecognizerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java index ae28e33df050..77aa7ec49b6a 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java @@ -1,51 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface CreateRecognizerRequestOrBuilder extends +public interface CreateRecognizerRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.CreateRecognizerRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Recognizer to create.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the recognizer field is set. */ boolean hasRecognizer(); /** + * + * *
    * Required. The Recognizer to create.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The recognizer. */ com.google.cloud.speech.v2.Recognizer getRecognizer(); /** + * + * *
    * Required. The Recognizer to create.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder(); /** + * + * *
    * If set, validate the request and preview the Recognizer, but do not
    * actually create it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * The ID to use for the Recognizer, which will become the final component of
    * the Recognizer's resource name.
@@ -54,10 +89,13 @@ public interface CreateRecognizerRequestOrBuilder extends
    * 
* * string recognizer_id = 3; + * * @return The recognizerId. */ java.lang.String getRecognizerId(); /** + * + * *
    * The ID to use for the Recognizer, which will become the final component of
    * the Recognizer's resource name.
@@ -66,30 +104,39 @@ public interface CreateRecognizerRequestOrBuilder extends
    * 
* * string recognizer_id = 3; + * * @return The bytes for recognizerId. */ - com.google.protobuf.ByteString - getRecognizerIdBytes(); + com.google.protobuf.ByteString getRecognizerIdBytes(); /** + * + * *
    * Required. The project and location where this Recognizer will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project and location where this Recognizer will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java similarity index 69% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java index 3c0b408a3a4c..5fd33410c96d 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * CustomClass for biasing in speech recognition. Used to define a set of words
  * or phrases that represents a common concept or theme likely to appear in your
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
     uid_ = "";
@@ -34,51 +52,54 @@ 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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_CustomClass_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 10:
         return internalGetAnnotations();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.CustomClass.class, com.google.cloud.speech.v2.CustomClass.Builder.class);
+            com.google.cloud.speech.v2.CustomClass.class,
+            com.google.cloud.speech.v2.CustomClass.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Set of states that define the lifecycle of a CustomClass.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.CustomClass.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified state.  This is only used/useful for distinguishing
      * unset values.
@@ -88,6 +109,8 @@ public enum State
      */
     STATE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * The normal and active state.
      * 
@@ -96,6 +119,8 @@ public enum State */ ACTIVE(2), /** + * + * *
      * This CustomClass has been deleted.
      * 
@@ -107,6 +132,8 @@ public enum State ; /** + * + * *
      * Unspecified state.  This is only used/useful for distinguishing
      * unset values.
@@ -116,6 +143,8 @@ public enum State
      */
     public static final int STATE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * The normal and active state.
      * 
@@ -124,6 +153,8 @@ public enum State */ public static final int ACTIVE_VALUE = 2; /** + * + * *
      * This CustomClass has been deleted.
      * 
@@ -132,7 +163,6 @@ public enum State */ public static final int DELETED_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -157,49 +187,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 2: return ACTIVE; - case 4: return DELETED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 2: + return ACTIVE; + case 4: + return DELETED; + 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< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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 State findValueByNumber(int number) { + return State.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.v2.CustomClass.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -216,84 +246,98 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.speech.v2.CustomClass.State) } - public interface ClassItemOrBuilder extends + public interface ClassItemOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.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.v2.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.v2.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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.CustomClass.ClassItem.class, com.google.cloud.speech.v2.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v2.CustomClass.ClassItem.class, + com.google.cloud.speech.v2.CustomClass.ClassItem.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** + * + * *
      * The class item's value.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -302,29 +346,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 { @@ -333,6 +377,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -344,8 +389,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_); } @@ -369,15 +413,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.v2.CustomClass.ClassItem)) { return super.equals(obj); } - com.google.cloud.speech.v2.CustomClass.ClassItem other = (com.google.cloud.speech.v2.CustomClass.ClassItem) obj; + com.google.cloud.speech.v2.CustomClass.ClassItem other = + (com.google.cloud.speech.v2.CustomClass.ClassItem) obj; - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -397,87 +441,93 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.CustomClass.ClassItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.CustomClass.ClassItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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 @@ -487,39 +537,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * An item of the class.
      * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.CustomClass.ClassItem) com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.CustomClass.ClassItem.class, com.google.cloud.speech.v2.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v2.CustomClass.ClassItem.class, + com.google.cloud.speech.v2.CustomClass.ClassItem.Builder.class); } // Construct using com.google.cloud.speech.v2.CustomClass.ClassItem.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -529,9 +581,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; } @java.lang.Override @@ -550,8 +602,11 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem build() { @java.lang.Override public com.google.cloud.speech.v2.CustomClass.ClassItem buildPartial() { - com.google.cloud.speech.v2.CustomClass.ClassItem result = new com.google.cloud.speech.v2.CustomClass.ClassItem(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v2.CustomClass.ClassItem result = + new com.google.cloud.speech.v2.CustomClass.ClassItem(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -567,38 +622,41 @@ private void buildPartial0(com.google.cloud.speech.v2.CustomClass.ClassItem resu 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.v2.CustomClass.ClassItem) { - return mergeFrom((com.google.cloud.speech.v2.CustomClass.ClassItem)other); + return mergeFrom((com.google.cloud.speech.v2.CustomClass.ClassItem) other); } else { super.mergeFrom(other); return this; @@ -606,7 +664,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.CustomClass.ClassItem other) { - if (other == com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()) + return this; if (!other.getValue().isEmpty()) { value_ = other.value_; bitField0_ |= 0x00000001; @@ -638,17 +697,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -658,22 +719,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -682,20 +746,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 { @@ -703,28 +768,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -734,23 +806,28 @@ public Builder clearValue() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -763,12 +840,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.CustomClass.ClassItem) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.CustomClass.ClassItem) private static final com.google.cloud.speech.v2.CustomClass.ClassItem DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.CustomClass.ClassItem(); } @@ -777,27 +854,28 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -812,13 +890,15 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.CustomClass.ClassItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. The resource name of the CustomClass.
    * Format:
@@ -826,6 +906,7 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem getDefaultInstanceForTyp
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -834,14 +915,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; } } /** + * + * *
    * Output only. The resource name of the CustomClass.
    * Format:
@@ -849,16 +931,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -867,14 +948,18 @@ public java.lang.String getName() { } public static final int UID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** + * + * *
    * Output only. System-assigned unique identifier for the CustomClass.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -883,29 +968,29 @@ public java.lang.String getUid() { 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(); uid_ = s; return s; } } /** + * + * *
    * Output only. System-assigned unique identifier for the CustomClass.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -914,15 +999,19 @@ public java.lang.String getUid() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * User-settable, human-readable name for the CustomClass. Must be 63
    * characters or less.
    * 
* * string display_name = 4; + * * @return The displayName. */ @java.lang.Override @@ -931,30 +1020,30 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** + * + * *
    * User-settable, human-readable name for the CustomClass. Must be 63
    * characters or less.
    * 
* * string display_name = 4; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -963,9 +1052,12 @@ public java.lang.String getDisplayName() { } public static final int ITEMS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private java.util.List items_; /** + * + * *
    * A collection of class items.
    * 
@@ -977,6 +1069,8 @@ public java.util.List getItems return items_; } /** + * + * *
    * A collection of class items.
    * 
@@ -984,11 +1078,13 @@ public java.util.List getItems * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ @java.lang.Override - public java.util.List + public java.util.List getItemsOrBuilderList() { return items_; } /** + * + * *
    * A collection of class items.
    * 
@@ -1000,6 +1096,8 @@ public int getItemsCount() { return items_.size(); } /** + * + * *
    * A collection of class items.
    * 
@@ -1011,6 +1109,8 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem getItems(int index) { return items_.get(index); } /** + * + * *
    * A collection of class items.
    * 
@@ -1018,45 +1118,61 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem getItems(int index) { * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ @java.lang.Override - public com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder( - int index) { + public com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index) { return items_.get(index); } public static final int STATE_FIELD_NUMBER = 15; private int state_ = 0; /** + * + * *
    * Output only. The CustomClass lifecycle state.
    * 
* - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The CustomClass lifecycle state.
    * 
* - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.speech.v2.CustomClass.State getState() { - com.google.cloud.speech.v2.CustomClass.State result = com.google.cloud.speech.v2.CustomClass.State.forNumber(state_); + @java.lang.Override + public com.google.cloud.speech.v2.CustomClass.State getState() { + com.google.cloud.speech.v2.CustomClass.State result = + com.google.cloud.speech.v2.CustomClass.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.CustomClass.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1064,11 +1180,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -1076,11 +1196,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1090,11 +1213,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1102,11 +1229,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -1114,11 +1245,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1128,11 +1262,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -1140,11 +1278,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -1152,11 +1294,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -1166,11 +1311,15 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -1178,11 +1327,15 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ @java.lang.Override @@ -1190,11 +1343,14 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -1202,32 +1358,35 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } public static final int ANNOTATIONS_FIELD_NUMBER = 10; + private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1237,20 +1396,21 @@ public int getAnnotationsCount() {
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public boolean containsAnnotations(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsAnnotations(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetAnnotations().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getAnnotationsMap()} instead.
-   */
+  /** Use {@link #getAnnotationsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAnnotations() {
     return getAnnotationsMap();
   }
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1264,6 +1424,8 @@ public java.util.Map getAnnotationsMap() {
     return internalGetAnnotations().getMap();
   }
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1273,17 +1435,19 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getAnnotationsOrDefault(
+  public /* nullable */ java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1293,11 +1457,11 @@ java.lang.String getAnnotationsOrDefault(
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public java.lang.String getAnnotationsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1305,9 +1469,12 @@ public java.lang.String getAnnotationsOrThrow(
   }
 
   public static final int ETAG_FIELD_NUMBER = 11;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object etag_ = "";
   /**
+   *
+   *
    * 
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -1315,6 +1482,7 @@ public java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ @java.lang.Override @@ -1323,14 +1491,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -1338,16 +1507,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -1358,12 +1526,15 @@ public java.lang.String getEtag() { public static final int RECONCILING_FIELD_NUMBER = 12; private boolean reconciling_ = false; /** + * + * *
    * Output only. Whether or not this CustomClass is in the process of being
    * updated.
    * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -1372,9 +1543,12 @@ public boolean getReconciling() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 13; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -1382,7 +1556,10 @@ public boolean getReconciling() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ @java.lang.Override @@ -1391,14 +1568,15 @@ public java.lang.String getKmsKeyName() { 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(); kmsKeyName_ = s; return s; } } /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -1406,17 +1584,18 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -1425,9 +1604,12 @@ public java.lang.String getKmsKeyName() { } public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER = 14; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyVersionName_ = ""; /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1435,7 +1617,10 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyVersionName. */ @java.lang.Override @@ -1444,14 +1629,15 @@ public java.lang.String getKmsKeyVersionName() { 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(); kmsKeyVersionName_ = s; return s; } } /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1459,17 +1645,18 @@ public java.lang.String getKmsKeyVersionName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyVersionName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -1478,6 +1665,7 @@ public java.lang.String getKmsKeyVersionName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1489,8 +1677,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_); } @@ -1515,12 +1702,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (expireTime_ != null) { output.writeMessage(9, getExpireTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 10); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 10); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, etag_); } @@ -1555,41 +1738,35 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); } for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, items_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, items_.get(i)); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getExpireTime()); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, annotations__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getExpireTime()); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, annotations__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etag_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, reconciling_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, reconciling_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kmsKeyName_); @@ -1598,8 +1775,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, kmsKeyVersionName_); } if (state_ != com.google.cloud.speech.v2.CustomClass.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1609,52 +1785,39 @@ 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.v2.CustomClass)) { return super.equals(obj); } com.google.cloud.speech.v2.CustomClass other = (com.google.cloud.speech.v2.CustomClass) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getItemsList() - .equals(other.getItemsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getItemsList().equals(other.getItemsList())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; - } - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (getReconciling() - != other.getReconciling()) return false; - if (!getKmsKeyName() - .equals(other.getKmsKeyName())) return false; - if (!getKmsKeyVersionName() - .equals(other.getKmsKeyVersionName())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; + } + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1701,8 +1864,7 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getKmsKeyName().hashCode(); hash = (37 * hash) + KMS_KEY_VERSION_NAME_FIELD_NUMBER; @@ -1712,97 +1874,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.CustomClass parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.CustomClass parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.CustomClass parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.CustomClass parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * CustomClass for biasing in speech recognition. Used to define a set of words
    * or phrases that represents a common concept or theme likely to appear in your
@@ -1811,55 +1980,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.CustomClass)
       com.google.cloud.speech.v2.CustomClassOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CustomClass_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 10:
           return internalGetAnnotations();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 10:
           return internalGetMutableAnnotations();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.CustomClass.class, com.google.cloud.speech.v2.CustomClass.Builder.class);
+              com.google.cloud.speech.v2.CustomClass.class,
+              com.google.cloud.speech.v2.CustomClass.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.CustomClass.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1904,9 +2070,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CustomClass_descriptor;
     }
 
     @java.lang.Override
@@ -1925,9 +2091,12 @@ public com.google.cloud.speech.v2.CustomClass build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.CustomClass buildPartial() {
-      com.google.cloud.speech.v2.CustomClass result = new com.google.cloud.speech.v2.CustomClass(this);
+      com.google.cloud.speech.v2.CustomClass result =
+          new com.google.cloud.speech.v2.CustomClass(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1959,24 +2128,16 @@ private void buildPartial0(com.google.cloud.speech.v2.CustomClass result) {
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null
-            ? deleteTime_
-            : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.expireTime_ = expireTimeBuilder_ == null
-            ? expireTime_
-            : expireTimeBuilder_.build();
+        result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.annotations_ = internalGetAnnotations();
@@ -2000,38 +2161,39 @@ private void buildPartial0(com.google.cloud.speech.v2.CustomClass result) {
     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.v2.CustomClass) {
-        return mergeFrom((com.google.cloud.speech.v2.CustomClass)other);
+        return mergeFrom((com.google.cloud.speech.v2.CustomClass) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2073,9 +2235,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            itemsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getItemsFieldBuilder() : null;
+            itemsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getItemsFieldBuilder()
+                    : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -2096,8 +2259,7 @@ public Builder mergeFrom(com.google.cloud.speech.v2.CustomClass other) {
       if (other.hasExpireTime()) {
         mergeExpireTime(other.getExpireTime());
       }
-      internalGetMutableAnnotations().mergeFrom(
-          other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
       bitField0_ |= 0x00000200;
       if (!other.getEtag().isEmpty()) {
         etag_ = other.etag_;
@@ -2143,102 +2305,111 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              uid_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 34: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 34
-            case 42: {
-              com.google.cloud.speech.v2.CustomClass.ClassItem m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.CustomClass.ClassItem.parser(),
-                      extensionRegistry);
-              if (itemsBuilder_ == null) {
-                ensureItemsIsMutable();
-                items_.add(m);
-              } else {
-                itemsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getDeleteTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 66
-            case 74: {
-              input.readMessage(
-                  getExpireTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 74
-            case 82: {
-              com.google.protobuf.MapEntry
-              annotations__ = input.readMessage(
-                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableAnnotations().getMutableMap().put(
-                  annotations__.getKey(), annotations__.getValue());
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 82
-            case 90: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 90
-            case 96: {
-              reconciling_ = input.readBool();
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 96
-            case 106: {
-              kmsKeyName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 106
-            case 114: {
-              kmsKeyVersionName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 114
-            case 120: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 120
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                uid_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 34:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 34
+            case 42:
+              {
+                com.google.cloud.speech.v2.CustomClass.ClassItem m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.CustomClass.ClassItem.parser(),
+                        extensionRegistry);
+                if (itemsBuilder_ == null) {
+                  ensureItemsIsMutable();
+                  items_.add(m);
+                } else {
+                  itemsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 66
+            case 74:
+              {
+                input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 74
+            case 82:
+              {
+                com.google.protobuf.MapEntry annotations__ =
+                    input.readMessage(
+                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableAnnotations()
+                    .getMutableMap()
+                    .put(annotations__.getKey(), annotations__.getValue());
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 82
+            case 90:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 90
+            case 96:
+              {
+                reconciling_ = input.readBool();
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 96
+            case 106:
+              {
+                kmsKeyName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 106
+            case 114:
+              {
+                kmsKeyVersionName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 114
+            case 120:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 120
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2248,10 +2419,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource name of the CustomClass.
      * Format:
@@ -2259,13 +2433,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -2274,6 +2448,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the CustomClass.
      * Format:
@@ -2281,15 +2457,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -2297,6 +2472,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the CustomClass.
      * Format:
@@ -2304,18 +2481,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the CustomClass.
      * Format:
@@ -2323,6 +2504,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -2332,6 +2514,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource name of the CustomClass.
      * Format:
@@ -2339,12 +2523,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2354,18 +2540,20 @@ public Builder setNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. System-assigned unique identifier for the CustomClass.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; 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(); uid_ = s; return s; @@ -2374,20 +2562,21 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. System-assigned unique identifier for the CustomClass.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -2395,28 +2584,35 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. System-assigned unique identifier for the CustomClass.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. System-assigned unique identifier for the CustomClass.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -2426,17 +2622,21 @@ public Builder clearUid() { return this; } /** + * + * *
      * Output only. System-assigned unique identifier for the CustomClass.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000002; @@ -2446,19 +2646,21 @@ public Builder setUidBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * User-settable, human-readable name for the CustomClass. Must be 63
      * characters or less.
      * 
* * string display_name = 4; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -2467,21 +2669,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User-settable, human-readable name for the CustomClass. Must be 63
      * characters or less.
      * 
* * string display_name = 4; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -2489,30 +2692,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User-settable, human-readable name for the CustomClass. Must be 63
      * characters or less.
      * 
* * string display_name = 4; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * User-settable, human-readable name for the CustomClass. Must be 63
      * characters or less.
      * 
* * string display_name = 4; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2522,18 +2732,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * User-settable, human-readable name for the CustomClass. Must be 63
      * characters or less.
      * 
* * string display_name = 4; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000004; @@ -2542,18 +2756,24 @@ public Builder setDisplayNameBytes( } private java.util.List items_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass.ClassItem, com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder> itemsBuilder_; + com.google.cloud.speech.v2.CustomClass.ClassItem, + com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder> + itemsBuilder_; /** + * + * *
      * A collection of class items.
      * 
@@ -2568,6 +2788,8 @@ public java.util.List getItems } } /** + * + * *
      * A collection of class items.
      * 
@@ -2582,6 +2804,8 @@ public int getItemsCount() { } } /** + * + * *
      * A collection of class items.
      * 
@@ -2596,14 +2820,15 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem getItems(int index) { } } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public Builder setItems( - int index, com.google.cloud.speech.v2.CustomClass.ClassItem value) { + public Builder setItems(int index, com.google.cloud.speech.v2.CustomClass.ClassItem value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2617,6 +2842,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -2635,6 +2862,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -2655,14 +2884,15 @@ public Builder addItems(com.google.cloud.speech.v2.CustomClass.ClassItem value) return this; } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public Builder addItems( - int index, com.google.cloud.speech.v2.CustomClass.ClassItem value) { + public Builder addItems(int index, com.google.cloud.speech.v2.CustomClass.ClassItem value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2676,6 +2906,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -2694,6 +2926,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -2712,6 +2946,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -2722,8 +2958,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); @@ -2731,6 +2966,8 @@ public Builder addAllItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -2748,6 +2985,8 @@ public Builder clearItems() { return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -2765,39 +3004,44 @@ public Builder removeItems(int index) { return this; } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder getItemsBuilder( - int index) { + public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder( - int index) { + public com.google.cloud.speech.v2.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.v2.CustomClass.ClassItem items = 5; */ - public java.util.List - getItemsOrBuilderList() { + public java.util.List + getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { @@ -2805,6 +3049,8 @@ public com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuild } } /** + * + * *
      * A collection of class items.
      * 
@@ -2812,42 +3058,48 @@ public com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuild * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder addItemsBuilder() { - return getItemsFieldBuilder().addBuilder( - com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()); + return getItemsFieldBuilder() + .addBuilder(com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()); } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder addItemsBuilder( - int index) { - return getItemsFieldBuilder().addBuilder( - index, com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()); + public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder addItemsBuilder(int index) { + return getItemsFieldBuilder() + .addBuilder(index, com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()); } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public java.util.List - getItemsBuilderList() { + public java.util.List + getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass.ClassItem, com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder> + com.google.cloud.speech.v2.CustomClass.ClassItem, + com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass.ClassItem, com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder>( - items_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + itemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.CustomClass.ClassItem, + com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder>( + items_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; @@ -2855,22 +3107,33 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder addItemsBuilder( private int state_ = 0; /** + * + * *
      * Output only. The CustomClass lifecycle state.
      * 
* - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The CustomClass lifecycle state.
      * 
* - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2881,24 +3144,35 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The CustomClass lifecycle state.
      * 
* - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.speech.v2.CustomClass.State getState() { - com.google.cloud.speech.v2.CustomClass.State result = com.google.cloud.speech.v2.CustomClass.State.forNumber(state_); + com.google.cloud.speech.v2.CustomClass.State result = + com.google.cloud.speech.v2.CustomClass.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.CustomClass.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The CustomClass lifecycle state.
      * 
* - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2912,11 +3186,16 @@ public Builder setState(com.google.cloud.speech.v2.CustomClass.State value) { return this; } /** + * + * *
      * Output only. The CustomClass lifecycle state.
      * 
* - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -2928,39 +3207,58 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2976,14 +3274,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2994,17 +3295,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3017,11 +3322,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -3034,11 +3343,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000020; @@ -3046,36 +3359,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3083,39 +3408,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3131,14 +3475,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3149,17 +3496,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3172,11 +3523,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3189,11 +3544,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000040; @@ -3201,36 +3560,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3238,39 +3609,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3286,14 +3676,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -3304,17 +3697,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -3327,11 +3724,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3344,11 +3745,15 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000080; @@ -3356,36 +3761,48 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -3393,39 +3810,58 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -3441,14 +3877,17 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -3459,17 +3898,21 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - expireTime_ != null && - expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -3482,11 +3925,15 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -3499,11 +3946,15 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000100; @@ -3511,43 +3962,55 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); expireTime_ = null; } return expireTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -3556,11 +4019,12 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } return annotations_; } + private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -3569,10 +4033,13 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { onChanged(); return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3582,20 +4049,21 @@ public int getAnnotationsCount() {
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public boolean containsAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetAnnotations().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getAnnotationsMap()} instead.
-     */
+    /** Use {@link #getAnnotationsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAnnotations() {
       return getAnnotationsMap();
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3609,6 +4077,8 @@ public java.util.Map getAnnotationsMap() {
       return internalGetAnnotations().getMap();
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3618,17 +4088,19 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getAnnotationsOrDefault(
+    public /* nullable */ java.lang.String getAnnotationsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3638,23 +4110,25 @@ java.lang.String getAnnotationsOrDefault(
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public java.lang.String getAnnotationsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearAnnotations() {
       bitField0_ = (bitField0_ & ~0x00000200);
-      internalGetMutableAnnotations().getMutableMap()
-          .clear();
+      internalGetMutableAnnotations().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3663,23 +4137,22 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 10;
      */
-    public Builder removeAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableAnnotations().getMutableMap()
-          .remove(key);
+    public Builder removeAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableAnnotations().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableAnnotations() {
+    public java.util.Map getMutableAnnotations() {
       bitField0_ |= 0x00000200;
       return internalGetMutableAnnotations().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3688,17 +4161,20 @@ public Builder removeAnnotations(
      *
      * map<string, string> annotations = 10;
      */
-    public Builder putAnnotations(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableAnnotations().getMutableMap()
-          .put(key, value);
+    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableAnnotations().getMutableMap().put(key, value);
       bitField0_ |= 0x00000200;
       return this;
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3707,16 +4183,16 @@ public Builder putAnnotations(
      *
      * map<string, string> annotations = 10;
      */
-    public Builder putAllAnnotations(
-        java.util.Map values) {
-      internalGetMutableAnnotations().getMutableMap()
-          .putAll(values);
+    public Builder putAllAnnotations(java.util.Map values) {
+      internalGetMutableAnnotations().getMutableMap().putAll(values);
       bitField0_ |= 0x00000200;
       return this;
     }
 
     private java.lang.Object etag_ = "";
     /**
+     *
+     *
      * 
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3724,13 +4200,13 @@ public Builder putAllAnnotations(
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -3739,6 +4215,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3746,15 +4224,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -3762,6 +4239,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3769,18 +4248,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3788,6 +4271,7 @@ public Builder setEtag(
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -3797,6 +4281,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3804,12 +4290,14 @@ public Builder clearEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000400; @@ -3817,14 +4305,17 @@ public Builder setEtagBytes( return this; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Whether or not this CustomClass is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -3832,29 +4323,35 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Whether or not this CustomClass is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** + * + * *
      * Output only. Whether or not this CustomClass is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -3866,6 +4363,8 @@ public Builder clearReconciling() { private java.lang.Object kmsKeyName_ = ""; /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3873,14 +4372,16 @@ public Builder clearReconciling() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; 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(); kmsKeyName_ = s; return s; @@ -3889,6 +4390,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3896,16 +4399,17 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -3913,6 +4417,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3920,19 +4426,25 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyName_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3940,7 +4452,10 @@ public Builder setKmsKeyName(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -3950,6 +4465,8 @@ public Builder clearKmsKeyName() { return this; } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3957,13 +4474,17 @@ public Builder clearKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00001000; @@ -3973,6 +4494,8 @@ public Builder setKmsKeyNameBytes( private java.lang.Object kmsKeyVersionName_ = ""; /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3980,14 +4503,16 @@ public Builder setKmsKeyNameBytes(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyVersionName. */ public java.lang.String getKmsKeyVersionName() { java.lang.Object ref = kmsKeyVersionName_; 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(); kmsKeyVersionName_ = s; return s; @@ -3996,6 +4521,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4003,16 +4530,17 @@ public java.lang.String getKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyVersionName. */ - public com.google.protobuf.ByteString - getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -4020,6 +4548,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4027,19 +4557,25 @@ public java.lang.String getKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyVersionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyVersionName_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4047,7 +4583,10 @@ public Builder setKmsKeyVersionName(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { @@ -4057,6 +4596,8 @@ public Builder clearKmsKeyVersionName() { return this; } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4064,22 +4605,26 @@ public Builder clearKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyVersionName_ = value; bitField0_ |= 0x00002000; 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); } @@ -4089,12 +4634,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.CustomClass) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.CustomClass) private static final com.google.cloud.speech.v2.CustomClass DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.CustomClass(); } @@ -4103,27 +4648,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4138,6 +4683,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java similarity index 100% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java similarity index 75% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java index 1104804e72bf..b30eb892dc41 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface CustomClassOrBuilder extends +public interface CustomClassOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.CustomClass) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the CustomClass.
    * Format:
@@ -15,10 +33,13 @@ public interface CustomClassOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the CustomClass.
    * Format:
@@ -26,63 +47,76 @@ public interface CustomClassOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. System-assigned unique identifier for the CustomClass.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. System-assigned unique identifier for the CustomClass.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * User-settable, human-readable name for the CustomClass. Must be 63
    * characters or less.
    * 
* * string display_name = 4; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * User-settable, human-readable name for the CustomClass. Must be 63
    * characters or less.
    * 
* * string display_name = 4; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - java.util.List - getItemsList(); + java.util.List getItemsList(); /** + * + * *
    * A collection of class items.
    * 
@@ -91,6 +125,8 @@ public interface CustomClassOrBuilder extends */ com.google.cloud.speech.v2.CustomClass.ClassItem getItems(int index); /** + * + * *
    * A collection of class items.
    * 
@@ -99,152 +135,211 @@ public interface CustomClassOrBuilder extends */ int getItemsCount(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - java.util.List + java.util.List getItemsOrBuilderList(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder( - int index); + com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index); /** + * + * *
    * Output only. The CustomClass lifecycle state.
    * 
* - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The CustomClass lifecycle state.
    * 
* - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.speech.v2.CustomClass.State getState(); /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** + * + * *
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -255,6 +350,8 @@ com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder(
    */
   int getAnnotationsCount();
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -263,15 +360,13 @@ com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder(
    *
    * map<string, string> annotations = 10;
    */
-  boolean containsAnnotations(
-      java.lang.String key);
-  /**
-   * Use {@link #getAnnotationsMap()} instead.
-   */
+  boolean containsAnnotations(java.lang.String key);
+  /** Use {@link #getAnnotationsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getAnnotations();
+  java.util.Map getAnnotations();
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -280,9 +375,10 @@ boolean containsAnnotations(
    *
    * map<string, string> annotations = 10;
    */
-  java.util.Map
-  getAnnotationsMap();
+  java.util.Map getAnnotationsMap();
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -292,11 +388,13 @@ boolean containsAnnotations(
    * map<string, string> annotations = 10;
    */
   /* nullable */
-java.lang.String getAnnotationsOrDefault(
+  java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -305,10 +403,11 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> annotations = 10;
    */
-  java.lang.String getAnnotationsOrThrow(
-      java.lang.String key);
+  java.lang.String getAnnotationsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -316,10 +415,13 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -327,23 +429,28 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Output only. Whether or not this CustomClass is in the process of being
    * updated.
    * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -351,11 +458,16 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -363,13 +475,17 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString - getKmsKeyNameBytes(); + com.google.protobuf.ByteString getKmsKeyNameBytes(); /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -377,11 +493,16 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyVersionName. */ java.lang.String getKmsKeyVersionName(); /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -389,9 +510,11 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyVersionName. */ - com.google.protobuf.ByteString - getKmsKeyVersionNameBytes(); + com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java similarity index 68% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java index 5763f51d0eba..f524a67060a1 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [DeleteCustomClass][google.cloud.speech.v2.Speech.DeleteCustomClass] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
     etag_ = "";
@@ -27,40 +45,47 @@ private DeleteCustomClassRequest() {
 
   @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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.DeleteCustomClassRequest.class, com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder.class);
+            com.google.cloud.speech.v2.DeleteCustomClassRequest.class,
+            com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the CustomClass to delete.
    * 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 @@ -69,31 +94,33 @@ 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 CustomClass to delete.
    * 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 { @@ -104,12 +131,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the deleted CustomClass, but do
    * not actually delete it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -120,12 +150,15 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** + * + * *
    * If set to true, and the CustomClass is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -134,9 +167,12 @@ public boolean getAllowMissing() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -144,6 +180,7 @@ public boolean getAllowMissing() {
    * 
* * string etag = 3; + * * @return The etag. */ @java.lang.Override @@ -152,14 +189,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -167,16 +205,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 3; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -185,6 +222,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,8 +234,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_); } @@ -223,15 +260,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -241,21 +276,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.v2.DeleteCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.DeleteCustomClassRequest other = (com.google.cloud.speech.v2.DeleteCustomClassRequest) obj; + com.google.cloud.speech.v2.DeleteCustomClassRequest other = + (com.google.cloud.speech.v2.DeleteCustomClassRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -270,11 +302,9 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -283,96 +313,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.DeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.DeleteCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.DeleteCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.DeleteCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.DeleteCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.DeleteCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [DeleteCustomClass][google.cloud.speech.v2.Speech.DeleteCustomClass] method.
@@ -380,33 +417,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.DeleteCustomClassRequest)
       com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.DeleteCustomClassRequest.class, com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder.class);
+              com.google.cloud.speech.v2.DeleteCustomClassRequest.class,
+              com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.DeleteCustomClassRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -419,9 +455,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
@@ -440,8 +476,11 @@ public com.google.cloud.speech.v2.DeleteCustomClassRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.DeleteCustomClassRequest buildPartial() {
-      com.google.cloud.speech.v2.DeleteCustomClassRequest result = new com.google.cloud.speech.v2.DeleteCustomClassRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.DeleteCustomClassRequest result =
+          new com.google.cloud.speech.v2.DeleteCustomClassRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -466,38 +505,39 @@ private void buildPartial0(com.google.cloud.speech.v2.DeleteCustomClassRequest r
     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.v2.DeleteCustomClassRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.DeleteCustomClassRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.DeleteCustomClassRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -505,7 +545,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.DeleteCustomClassRequest other) {
-      if (other == com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -548,32 +589,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 26
-            case 32: {
-              allowMissing_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 26
+            case 32:
+              {
+                allowMissing_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -583,24 +629,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the CustomClass to delete.
      * 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; @@ -609,22 +660,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the CustomClass to delete.
      * 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 { @@ -632,32 +686,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the CustomClass to delete.
      * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the CustomClass to delete.
      * 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() { @@ -667,19 +732,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the CustomClass to delete.
      * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -687,14 +758,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the deleted CustomClass, but do
      * not actually delete it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -702,29 +776,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the deleted CustomClass, but do
      * not actually delete it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the deleted CustomClass, but do
      * not actually delete it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -734,14 +814,17 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_ ; + private boolean allowMissing_; /** + * + * *
      * If set to true, and the CustomClass is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -749,29 +832,35 @@ public boolean getAllowMissing() { return allowMissing_; } /** + * + * *
      * If set to true, and the CustomClass is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; + * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set to true, and the CustomClass is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; + * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -783,6 +872,8 @@ public Builder clearAllowMissing() { private java.lang.Object etag_ = ""; /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -790,13 +881,13 @@ public Builder clearAllowMissing() {
      * 
* * string etag = 3; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -805,6 +896,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -812,15 +905,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 3; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -828,6 +920,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -835,18 +929,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 3; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -854,6 +952,7 @@ public Builder setEtag(
      * 
* * string etag = 3; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -863,6 +962,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -870,21 +971,23 @@ public Builder clearEtag() {
      * 
* * string etag = 3; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000008; 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); } @@ -894,12 +997,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.DeleteCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.DeleteCustomClassRequest) private static final com.google.cloud.speech.v2.DeleteCustomClassRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.DeleteCustomClassRequest(); } @@ -908,27 +1011,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -943,6 +1046,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.DeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java index 8564ba1c46af..5654d75a604d 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java @@ -1,59 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface DeleteCustomClassRequestOrBuilder extends +public interface DeleteCustomClassRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.DeleteCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the CustomClass to delete.
    * 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.String getName(); /** + * + * *
    * Required. The name of the CustomClass to delete.
    * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set, validate the request and preview the deleted CustomClass, but do
    * not actually delete it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set to true, and the CustomClass is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ boolean getAllowMissing(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -61,10 +94,13 @@ public interface DeleteCustomClassRequestOrBuilder extends
    * 
* * string etag = 3; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -72,8 +108,8 @@ public interface DeleteCustomClassRequestOrBuilder extends
    * 
* * string etag = 3; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java similarity index 68% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java index af0e0d86ccd5..76fbfb88e5f5 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [DeletePhraseSet][google.cloud.speech.v2.Speech.DeletePhraseSet] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
     etag_ = "";
@@ -27,39 +45,46 @@ private DeletePhraseSetRequest() {
 
   @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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.DeletePhraseSetRequest.class, com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder.class);
+            com.google.cloud.speech.v2.DeletePhraseSetRequest.class,
+            com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the PhraseSet 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 @@ -68,30 +93,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 PhraseSet 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 { @@ -102,12 +129,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the deleted PhraseSet, but do not
    * actually delete it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -118,12 +148,15 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** + * + * *
    * If set to true, and the PhraseSet is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -132,9 +165,12 @@ public boolean getAllowMissing() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -142,6 +178,7 @@ public boolean getAllowMissing() {
    * 
* * string etag = 3; + * * @return The etag. */ @java.lang.Override @@ -150,14 +187,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -165,16 +203,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 3; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -183,6 +220,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,8 +232,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_); } @@ -221,15 +258,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -239,21 +274,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.v2.DeletePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.DeletePhraseSetRequest other = (com.google.cloud.speech.v2.DeletePhraseSetRequest) obj; + com.google.cloud.speech.v2.DeletePhraseSetRequest other = + (com.google.cloud.speech.v2.DeletePhraseSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,11 +300,9 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -281,96 +311,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.DeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.DeletePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.DeletePhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.DeletePhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.DeletePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.DeletePhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [DeletePhraseSet][google.cloud.speech.v2.Speech.DeletePhraseSet] method.
@@ -378,33 +415,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.DeletePhraseSetRequest)
       com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.DeletePhraseSetRequest.class, com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder.class);
+              com.google.cloud.speech.v2.DeletePhraseSetRequest.class,
+              com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.DeletePhraseSetRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -417,9 +453,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -438,8 +474,11 @@ public com.google.cloud.speech.v2.DeletePhraseSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.DeletePhraseSetRequest buildPartial() {
-      com.google.cloud.speech.v2.DeletePhraseSetRequest result = new com.google.cloud.speech.v2.DeletePhraseSetRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.DeletePhraseSetRequest result =
+          new com.google.cloud.speech.v2.DeletePhraseSetRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -464,38 +503,39 @@ private void buildPartial0(com.google.cloud.speech.v2.DeletePhraseSetRequest res
     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.v2.DeletePhraseSetRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.DeletePhraseSetRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.DeletePhraseSetRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -503,7 +543,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.DeletePhraseSetRequest other) {
-      if (other == com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -546,32 +587,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 26
-            case 32: {
-              allowMissing_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 26
+            case 32:
+              {
+                allowMissing_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -581,23 +627,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the PhraseSet 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; @@ -606,21 +657,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the PhraseSet 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 { @@ -628,30 +682,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the PhraseSet 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the PhraseSet 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() { @@ -661,18 +726,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the PhraseSet 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -680,14 +751,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the deleted PhraseSet, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -695,29 +769,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the deleted PhraseSet, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the deleted PhraseSet, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -727,14 +807,17 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_ ; + private boolean allowMissing_; /** + * + * *
      * If set to true, and the PhraseSet is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -742,29 +825,35 @@ public boolean getAllowMissing() { return allowMissing_; } /** + * + * *
      * If set to true, and the PhraseSet is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; + * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set to true, and the PhraseSet is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; + * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -776,6 +865,8 @@ public Builder clearAllowMissing() { private java.lang.Object etag_ = ""; /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -783,13 +874,13 @@ public Builder clearAllowMissing() {
      * 
* * string etag = 3; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -798,6 +889,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -805,15 +898,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 3; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -821,6 +913,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -828,18 +922,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 3; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -847,6 +945,7 @@ public Builder setEtag(
      * 
* * string etag = 3; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -856,6 +955,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -863,21 +964,23 @@ public Builder clearEtag() {
      * 
* * string etag = 3; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000008; 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); } @@ -887,12 +990,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.DeletePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.DeletePhraseSetRequest) private static final com.google.cloud.speech.v2.DeletePhraseSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.DeletePhraseSetRequest(); } @@ -901,27 +1004,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -936,6 +1039,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.DeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java index dc82d1b9ad7f..090a269f9461 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java @@ -1,57 +1,90 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface DeletePhraseSetRequestOrBuilder extends +public interface DeletePhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.DeletePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the PhraseSet 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.String getName(); /** + * + * *
    * Required. The name of the PhraseSet 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set, validate the request and preview the deleted PhraseSet, but do not
    * actually delete it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set to true, and the PhraseSet is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ boolean getAllowMissing(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -59,10 +92,13 @@ public interface DeletePhraseSetRequestOrBuilder extends
    * 
* * string etag = 3; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -70,8 +106,8 @@ public interface DeletePhraseSetRequestOrBuilder extends
    * 
* * string etag = 3; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java similarity index 68% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java index d089dc1ff61e..13142e61a2cf 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [DeleteRecognizer][google.cloud.speech.v2.Speech.DeleteRecognizer] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.DeleteRecognizerRequest}
  */
-public final class DeleteRecognizerRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteRecognizerRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.DeleteRecognizerRequest)
     DeleteRecognizerRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteRecognizerRequest.newBuilder() to construct.
   private DeleteRecognizerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteRecognizerRequest() {
     name_ = "";
     etag_ = "";
@@ -27,39 +45,46 @@ private DeleteRecognizerRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteRecognizerRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.DeleteRecognizerRequest.class, com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder.class);
+            com.google.cloud.speech.v2.DeleteRecognizerRequest.class,
+            com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the Recognizer to delete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * 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 @@ -68,30 +93,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 Recognizer to delete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * 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 { @@ -102,12 +129,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the deleted Recognizer, but do not
    * actually delete it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -118,12 +148,15 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** + * + * *
    * If set to true, and the Recognizer is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -132,9 +165,12 @@ public boolean getAllowMissing() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -142,6 +178,7 @@ public boolean getAllowMissing() {
    * 
* * string etag = 3; + * * @return The etag. */ @java.lang.Override @@ -150,14 +187,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -165,16 +203,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 3; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -183,6 +220,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,8 +232,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_); } @@ -221,15 +258,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -239,21 +274,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.v2.DeleteRecognizerRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.DeleteRecognizerRequest other = (com.google.cloud.speech.v2.DeleteRecognizerRequest) obj; + com.google.cloud.speech.v2.DeleteRecognizerRequest other = + (com.google.cloud.speech.v2.DeleteRecognizerRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,11 +300,9 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -281,96 +311,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.DeleteRecognizerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.DeleteRecognizerRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest 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; } /** + * + * *
    * Request message for the
    * [DeleteRecognizer][google.cloud.speech.v2.Speech.DeleteRecognizer] method.
@@ -378,33 +415,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.DeleteRecognizerRequest}
    */
-  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.v2.DeleteRecognizerRequest)
       com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.DeleteRecognizerRequest.class, com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder.class);
+              com.google.cloud.speech.v2.DeleteRecognizerRequest.class,
+              com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.DeleteRecognizerRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -417,9 +453,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
@@ -438,8 +474,11 @@ public com.google.cloud.speech.v2.DeleteRecognizerRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.DeleteRecognizerRequest buildPartial() {
-      com.google.cloud.speech.v2.DeleteRecognizerRequest result = new com.google.cloud.speech.v2.DeleteRecognizerRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.DeleteRecognizerRequest result =
+          new com.google.cloud.speech.v2.DeleteRecognizerRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -464,38 +503,39 @@ private void buildPartial0(com.google.cloud.speech.v2.DeleteRecognizerRequest re
     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.v2.DeleteRecognizerRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.DeleteRecognizerRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.DeleteRecognizerRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -503,7 +543,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.DeleteRecognizerRequest other) {
-      if (other == com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -546,32 +587,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 26
-            case 32: {
-              allowMissing_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 26
+            case 32:
+              {
+                allowMissing_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -581,23 +627,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the Recognizer to delete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * 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; @@ -606,21 +657,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Recognizer to delete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * 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 { @@ -628,30 +682,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Recognizer to delete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the Recognizer to delete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * 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() { @@ -661,18 +726,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the Recognizer to delete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -680,14 +751,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the deleted Recognizer, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -695,29 +769,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the deleted Recognizer, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the deleted Recognizer, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -727,14 +807,17 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_ ; + private boolean allowMissing_; /** + * + * *
      * If set to true, and the Recognizer is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -742,29 +825,35 @@ public boolean getAllowMissing() { return allowMissing_; } /** + * + * *
      * If set to true, and the Recognizer is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; + * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set to true, and the Recognizer is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; + * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -776,6 +865,8 @@ public Builder clearAllowMissing() { private java.lang.Object etag_ = ""; /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -783,13 +874,13 @@ public Builder clearAllowMissing() {
      * 
* * string etag = 3; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -798,6 +889,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -805,15 +898,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 3; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -821,6 +913,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -828,18 +922,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 3; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -847,6 +945,7 @@ public Builder setEtag(
      * 
* * string etag = 3; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -856,6 +955,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -863,21 +964,23 @@ public Builder clearEtag() {
      * 
* * string etag = 3; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000008; 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); } @@ -887,12 +990,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.DeleteRecognizerRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.DeleteRecognizerRequest) private static final com.google.cloud.speech.v2.DeleteRecognizerRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.DeleteRecognizerRequest(); } @@ -901,27 +1004,27 @@ public static com.google.cloud.speech.v2.DeleteRecognizerRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRecognizerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRecognizerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -936,6 +1039,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.DeleteRecognizerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java index 7c5e32245a21..929c1f8a9d5d 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java @@ -1,57 +1,90 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface DeleteRecognizerRequestOrBuilder extends +public interface DeleteRecognizerRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.DeleteRecognizerRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Recognizer to delete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * 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 Recognizer to delete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * 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(); /** + * + * *
    * If set, validate the request and preview the deleted Recognizer, but do not
    * actually delete it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set to true, and the Recognizer is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ boolean getAllowMissing(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -59,10 +92,13 @@ public interface DeleteRecognizerRequestOrBuilder extends
    * 
* * string etag = 3; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -70,8 +106,8 @@ public interface DeleteRecognizerRequestOrBuilder extends
    * 
* * string etag = 3; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java similarity index 68% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java index b154198f542b..c72aaef3f952 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java @@ -1,63 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Explicitly specified decoding parameters.
  * 
* * Protobuf type {@code google.cloud.speech.v2.ExplicitDecodingConfig} */ -public final class ExplicitDecodingConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ExplicitDecodingConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ExplicitDecodingConfig) ExplicitDecodingConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExplicitDecodingConfig.newBuilder() to construct. private ExplicitDecodingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ExplicitDecodingConfig() { encoding_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExplicitDecodingConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.ExplicitDecodingConfig.class, com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder.class); + com.google.cloud.speech.v2.ExplicitDecodingConfig.class, + com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder.class); } /** + * + * *
    * Supported audio data encodings.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding} */ - public enum AudioEncoding - implements com.google.protobuf.ProtocolMessageEnum { + public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value. This value is unused.
      * 
@@ -66,6 +88,8 @@ public enum AudioEncoding */ AUDIO_ENCODING_UNSPECIFIED(0), /** + * + * *
      * Headerless 16-bit signed little-endian PCM samples.
      * 
@@ -74,6 +98,8 @@ public enum AudioEncoding */ LINEAR16(1), /** + * + * *
      * Headerless 8-bit companded mulaw samples.
      * 
@@ -82,6 +108,8 @@ public enum AudioEncoding */ MULAW(2), /** + * + * *
      * Headerless 8-bit companded alaw samples.
      * 
@@ -93,6 +121,8 @@ public enum AudioEncoding ; /** + * + * *
      * Default value. This value is unused.
      * 
@@ -101,6 +131,8 @@ public enum AudioEncoding */ public static final int AUDIO_ENCODING_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Headerless 16-bit signed little-endian PCM samples.
      * 
@@ -109,6 +141,8 @@ public enum AudioEncoding */ public static final int LINEAR16_VALUE = 1; /** + * + * *
      * Headerless 8-bit companded mulaw samples.
      * 
@@ -117,6 +151,8 @@ public enum AudioEncoding */ public static final int MULAW_VALUE = 2; /** + * + * *
      * Headerless 8-bit companded alaw samples.
      * 
@@ -125,7 +161,6 @@ public enum AudioEncoding */ public static final int ALAW_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -150,50 +185,53 @@ public static AudioEncoding valueOf(int value) { */ public static AudioEncoding forNumber(int value) { switch (value) { - case 0: return AUDIO_ENCODING_UNSPECIFIED; - case 1: return LINEAR16; - case 2: return MULAW; - case 3: return ALAW; - default: return null; + case 0: + return AUDIO_ENCODING_UNSPECIFIED; + case 1: + return LINEAR16; + case 2: + return MULAW; + case 3: + return ALAW; + 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.v2.ExplicitDecodingConfig.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.speech.v2.ExplicitDecodingConfig.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; @@ -213,32 +251,49 @@ private AudioEncoding(int value) { public static final int ENCODING_FIELD_NUMBER = 1; private int encoding_ = 0; /** + * + * *
    * Required. Encoding of the audio data sent for recognition.
    * 
* - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override public int getEncodingValue() { + @java.lang.Override + public int getEncodingValue() { return encoding_; } /** + * + * *
    * Required. Encoding of the audio data sent for recognition.
    * 
* - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The encoding. */ - @java.lang.Override public com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncoding() { - com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding result = com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.forNumber(encoding_); - return result == null ? com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncoding() { + com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding result = + com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.forNumber(encoding_); + return result == null + ? com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.UNRECOGNIZED + : result; } public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; private int sampleRateHertz_ = 0; /** + * + * *
    * Sample rate in Hertz of the audio data sent for recognition. Valid
    * values are: 8000-48000. 16000 is optimal. For best results, set the
@@ -251,6 +306,7 @@ private AudioEncoding(int value) {
    * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -261,6 +317,8 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 3; private int audioChannelCount_ = 0; /** + * + * *
    * Number of channels present in the audio data sent for recognition.
    * Supported for the following encodings:
@@ -270,6 +328,7 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 3; + * * @return The audioChannelCount. */ @java.lang.Override @@ -278,6 +337,7 @@ public int getAudioChannelCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,9 +349,11 @@ 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.v2.ExplicitDecodingConfig.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (encoding_ + != com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding + .AUDIO_ENCODING_UNSPECIFIED + .getNumber()) { output.writeEnum(1, encoding_); } if (sampleRateHertz_ != 0) { @@ -309,17 +371,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (encoding_ != com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, encoding_); + if (encoding_ + != com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding + .AUDIO_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 (audioChannelCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, audioChannelCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, audioChannelCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -329,18 +391,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.v2.ExplicitDecodingConfig)) { return super.equals(obj); } - com.google.cloud.speech.v2.ExplicitDecodingConfig other = (com.google.cloud.speech.v2.ExplicitDecodingConfig) obj; + com.google.cloud.speech.v2.ExplicitDecodingConfig other = + (com.google.cloud.speech.v2.ExplicitDecodingConfig) obj; if (encoding_ != other.encoding_) return false; - if (getSampleRateHertz() - != other.getSampleRateHertz()) return false; - if (getAudioChannelCount() - != other.getAudioChannelCount()) return false; + if (getSampleRateHertz() != other.getSampleRateHertz()) return false; + if (getAudioChannelCount() != other.getAudioChannelCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -364,129 +425,135 @@ public int hashCode() { } public static com.google.cloud.speech.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ExplicitDecodingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ExplicitDecodingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig 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; } /** + * + * *
    * Explicitly specified decoding parameters.
    * 
* * Protobuf type {@code google.cloud.speech.v2.ExplicitDecodingConfig} */ - 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.v2.ExplicitDecodingConfig) com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.ExplicitDecodingConfig.class, com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder.class); + com.google.cloud.speech.v2.ExplicitDecodingConfig.class, + com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder.class); } // Construct using com.google.cloud.speech.v2.ExplicitDecodingConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -498,9 +565,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; } @java.lang.Override @@ -519,8 +586,11 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig build() { @java.lang.Override public com.google.cloud.speech.v2.ExplicitDecodingConfig buildPartial() { - com.google.cloud.speech.v2.ExplicitDecodingConfig result = new com.google.cloud.speech.v2.ExplicitDecodingConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v2.ExplicitDecodingConfig result = + new com.google.cloud.speech.v2.ExplicitDecodingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -542,38 +612,39 @@ private void buildPartial0(com.google.cloud.speech.v2.ExplicitDecodingConfig res 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.v2.ExplicitDecodingConfig) { - return mergeFrom((com.google.cloud.speech.v2.ExplicitDecodingConfig)other); + return mergeFrom((com.google.cloud.speech.v2.ExplicitDecodingConfig) other); } else { super.mergeFrom(other); return this; @@ -581,7 +652,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.ExplicitDecodingConfig other) { - if (other == com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance()) + return this; if (other.encoding_ != 0) { setEncodingValue(other.getEncodingValue()); } @@ -617,27 +689,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - encoding_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - sampleRateHertz_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - audioChannelCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + encoding_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + sampleRateHertz_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + audioChannelCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -647,26 +723,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int encoding_ = 0; /** + * + * *
      * Required. Encoding of the audio data sent for recognition.
      * 
* - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override public int getEncodingValue() { + @java.lang.Override + public int getEncodingValue() { return encoding_; } /** + * + * *
      * Required. Encoding of the audio data sent for recognition.
      * 
* - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. */ @@ -677,28 +765,42 @@ public Builder setEncodingValue(int value) { return this; } /** + * + * *
      * Required. Encoding of the audio data sent for recognition.
      * 
* - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The encoding. */ @java.lang.Override public com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncoding() { - com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding result = com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.forNumber(encoding_); - return result == null ? com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.UNRECOGNIZED : result; + com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding result = + com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.forNumber(encoding_); + return result == null + ? com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.UNRECOGNIZED + : result; } /** + * + * *
      * Required. Encoding of the audio data sent for recognition.
      * 
* - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The encoding to set. * @return This builder for chaining. */ - public Builder setEncoding(com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding value) { + public Builder setEncoding( + com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding value) { if (value == null) { throw new NullPointerException(); } @@ -708,11 +810,16 @@ public Builder setEncoding(com.google.cloud.speech.v2.ExplicitDecodingConfig.Aud return this; } /** + * + * *
      * Required. Encoding of the audio data sent for recognition.
      * 
* - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearEncoding() { @@ -722,8 +829,10 @@ public Builder clearEncoding() { return this; } - private int sampleRateHertz_ ; + private int sampleRateHertz_; /** + * + * *
      * Sample rate in Hertz of the audio data sent for recognition. Valid
      * values are: 8000-48000. 16000 is optimal. For best results, set the
@@ -736,6 +845,7 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -743,6 +853,8 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** + * + * *
      * Sample rate in Hertz of the audio data sent for recognition. Valid
      * values are: 8000-48000. 16000 is optimal. For best results, set the
@@ -755,17 +867,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Sample rate in Hertz of the audio data sent for recognition. Valid
      * values are: 8000-48000. 16000 is optimal. For best results, set the
@@ -778,6 +893,7 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; + * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { @@ -787,8 +903,10 @@ public Builder clearSampleRateHertz() { return this; } - private int audioChannelCount_ ; + private int audioChannelCount_; /** + * + * *
      * Number of channels present in the audio data sent for recognition.
      * Supported for the following encodings:
@@ -798,6 +916,7 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 3; + * * @return The audioChannelCount. */ @java.lang.Override @@ -805,6 +924,8 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** + * + * *
      * Number of channels present in the audio data sent for recognition.
      * Supported for the following encodings:
@@ -814,17 +935,20 @@ public int getAudioChannelCount() {
      * 
* * int32 audio_channel_count = 3; + * * @param value The audioChannelCount to set. * @return This builder for chaining. */ public Builder setAudioChannelCount(int value) { - + audioChannelCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Number of channels present in the audio data sent for recognition.
      * Supported for the following encodings:
@@ -834,6 +958,7 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 3; + * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { @@ -842,9 +967,9 @@ public Builder clearAudioChannelCount() { 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); } @@ -854,12 +979,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ExplicitDecodingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ExplicitDecodingConfig) private static final com.google.cloud.speech.v2.ExplicitDecodingConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ExplicitDecodingConfig(); } @@ -868,27 +993,27 @@ public static com.google.cloud.speech.v2.ExplicitDecodingConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExplicitDecodingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExplicitDecodingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -903,6 +1028,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ExplicitDecodingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java similarity index 64% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java index 153b9dad6346..6ccfdbb1b03f 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java @@ -1,32 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ExplicitDecodingConfigOrBuilder extends +public interface ExplicitDecodingConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ExplicitDecodingConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Encoding of the audio data sent for recognition.
    * 
* - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); /** + * + * *
    * Required. Encoding of the audio data sent for recognition.
    * 
* - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The encoding. */ com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncoding(); /** + * + * *
    * Sample rate in Hertz of the audio data sent for recognition. Valid
    * values are: 8000-48000. 16000 is optimal. For best results, set the
@@ -39,11 +67,14 @@ public interface ExplicitDecodingConfigOrBuilder extends
    * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ int getSampleRateHertz(); /** + * + * *
    * Number of channels present in the audio data sent for recognition.
    * Supported for the following encodings:
@@ -53,6 +84,7 @@ public interface ExplicitDecodingConfigOrBuilder extends
    * 
* * int32 audio_channel_count = 3; + * * @return The audioChannelCount. */ int getAudioChannelCount(); diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java similarity index 63% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java index ed962b92dac6..96ab9a86fc23 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [GetConfig][google.cloud.speech.v2.Speech.GetConfig] method.
@@ -11,55 +28,63 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.GetConfigRequest}
  */
-public final class GetConfigRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetConfigRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.GetConfigRequest)
     GetConfigRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetConfigRequest.newBuilder() to construct.
   private GetConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetConfigRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetConfigRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.GetConfigRequest.class, com.google.cloud.speech.v2.GetConfigRequest.Builder.class);
+            com.google.cloud.speech.v2.GetConfigRequest.class,
+            com.google.cloud.speech.v2.GetConfigRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the config to retrieve. There is exactly one config
    * resource per project per location. The expected format is
    * `projects/{project}/locations/{location}/config`.
    * 
* - * 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 @@ -68,31 +93,33 @@ 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 config to retrieve. There is exactly one config
    * resource per project per location. The expected format is
    * `projects/{project}/locations/{location}/config`.
    * 
* - * 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 { @@ -101,6 +128,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -112,8 +140,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_); } @@ -137,15 +164,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.v2.GetConfigRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.GetConfigRequest other = (com.google.cloud.speech.v2.GetConfigRequest) obj; + com.google.cloud.speech.v2.GetConfigRequest other = + (com.google.cloud.speech.v2.GetConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -164,97 +191,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.GetConfigRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.GetConfigRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.GetConfigRequest 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.v2.GetConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.GetConfigRequest 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.v2.GetConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.GetConfigRequest 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.v2.GetConfigRequest 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.v2.GetConfigRequest 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.v2.GetConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.GetConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.GetConfigRequest 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.v2.GetConfigRequest 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.v2.GetConfigRequest 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.v2.GetConfigRequest 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; } /** + * + * *
    * Request message for the
    * [GetConfig][google.cloud.speech.v2.Speech.GetConfig] method.
@@ -262,33 +296,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.GetConfigRequest}
    */
-  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.v2.GetConfigRequest)
       com.google.cloud.speech.v2.GetConfigRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.GetConfigRequest.class, com.google.cloud.speech.v2.GetConfigRequest.Builder.class);
+              com.google.cloud.speech.v2.GetConfigRequest.class,
+              com.google.cloud.speech.v2.GetConfigRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.GetConfigRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -298,9 +331,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
     }
 
     @java.lang.Override
@@ -319,8 +352,11 @@ public com.google.cloud.speech.v2.GetConfigRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.GetConfigRequest buildPartial() {
-      com.google.cloud.speech.v2.GetConfigRequest result = new com.google.cloud.speech.v2.GetConfigRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.GetConfigRequest result =
+          new com.google.cloud.speech.v2.GetConfigRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -336,38 +372,39 @@ private void buildPartial0(com.google.cloud.speech.v2.GetConfigRequest result) {
     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.v2.GetConfigRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.GetConfigRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.GetConfigRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -407,17 +444,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -427,24 +466,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the config to retrieve. There is exactly one config
      * resource per project per location. The expected format is
      * `projects/{project}/locations/{location}/config`.
      * 
* - * 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; @@ -453,22 +497,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the config to retrieve. There is exactly one config
      * resource per project per location. The expected format is
      * `projects/{project}/locations/{location}/config`.
      * 
* - * 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 { @@ -476,32 +523,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the config to retrieve. There is exactly one config
      * resource per project per location. The expected format is
      * `projects/{project}/locations/{location}/config`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the config to retrieve. There is exactly one config
      * resource per project per location. The expected format is
      * `projects/{project}/locations/{location}/config`.
      * 
* - * 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() { @@ -511,28 +569,34 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the config to retrieve. There is exactly one config
      * resource per project per location. The expected format is
      * `projects/{project}/locations/{location}/config`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -542,12 +606,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.GetConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.GetConfigRequest) private static final com.google.cloud.speech.v2.GetConfigRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.GetConfigRequest(); } @@ -556,27 +620,27 @@ public static com.google.cloud.speech.v2.GetConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -591,6 +655,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.GetConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequestOrBuilder.java new file mode 100644 index 000000000000..b69d7aefe5d0 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public interface GetConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the config to retrieve. There is exactly one config
+   * resource per project per location. The expected format is
+   * `projects/{project}/locations/{location}/config`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the config to retrieve. There is exactly one config
+   * resource per project per location. The expected format is
+   * `projects/{project}/locations/{location}/config`.
+   * 
+ * + * + * 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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java similarity index 63% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java index dff71e658be2..caea196f7c23 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [GetCustomClass][google.cloud.speech.v2.Speech.GetCustomClass] method.
@@ -11,54 +28,62 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.GetCustomClassRequest.class, com.google.cloud.speech.v2.GetCustomClassRequest.Builder.class);
+            com.google.cloud.speech.v2.GetCustomClassRequest.class,
+            com.google.cloud.speech.v2.GetCustomClassRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the CustomClass to retrieve. The expected format is
    * `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 @@ -67,30 +92,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 CustomClass to retrieve. The expected format is
    * `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 { @@ -99,6 +126,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +138,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_); } @@ -135,15 +162,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.v2.GetCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.GetCustomClassRequest other = (com.google.cloud.speech.v2.GetCustomClassRequest) obj; + com.google.cloud.speech.v2.GetCustomClassRequest other = + (com.google.cloud.speech.v2.GetCustomClassRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,97 +189,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.GetCustomClassRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.GetCustomClassRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.GetCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.GetCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.GetCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.GetCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.GetCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.GetCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [GetCustomClass][google.cloud.speech.v2.Speech.GetCustomClass] method.
@@ -260,33 +294,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.GetCustomClassRequest)
       com.google.cloud.speech.v2.GetCustomClassRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.GetCustomClassRequest.class, com.google.cloud.speech.v2.GetCustomClassRequest.Builder.class);
+              com.google.cloud.speech.v2.GetCustomClassRequest.class,
+              com.google.cloud.speech.v2.GetCustomClassRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.GetCustomClassRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -296,9 +329,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
@@ -317,8 +350,11 @@ public com.google.cloud.speech.v2.GetCustomClassRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.GetCustomClassRequest buildPartial() {
-      com.google.cloud.speech.v2.GetCustomClassRequest result = new com.google.cloud.speech.v2.GetCustomClassRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.GetCustomClassRequest result =
+          new com.google.cloud.speech.v2.GetCustomClassRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -334,38 +370,39 @@ private void buildPartial0(com.google.cloud.speech.v2.GetCustomClassRequest resu
     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.v2.GetCustomClassRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.GetCustomClassRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.GetCustomClassRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -373,7 +410,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.GetCustomClassRequest other) {
-      if (other == com.google.cloud.speech.v2.GetCustomClassRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.GetCustomClassRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -405,17 +443,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -425,23 +465,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the CustomClass to retrieve. The expected format is
      * `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; @@ -450,21 +495,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the CustomClass to retrieve. The expected format is
      * `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 { @@ -472,30 +520,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the CustomClass to retrieve. The expected format is
      * `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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the CustomClass to retrieve. The expected format is
      * `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() { @@ -505,27 +564,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the CustomClass to retrieve. The expected format is
      * `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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -535,12 +600,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.GetCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.GetCustomClassRequest) private static final com.google.cloud.speech.v2.GetCustomClassRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.GetCustomClassRequest(); } @@ -549,27 +614,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -584,6 +649,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.GetCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java new file mode 100644 index 000000000000..4988dd99a937 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public interface GetCustomClassRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetCustomClassRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the CustomClass to retrieve. The expected format is
+   * `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 CustomClass to retrieve. The expected format is
+   * `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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java similarity index 63% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java index 08a136073ad8..dc32063d3bfc 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [GetPhraseSet][google.cloud.speech.v2.Speech.GetPhraseSet] method.
@@ -11,54 +28,62 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.GetPhraseSetRequest.class, com.google.cloud.speech.v2.GetPhraseSetRequest.Builder.class);
+            com.google.cloud.speech.v2.GetPhraseSetRequest.class,
+            com.google.cloud.speech.v2.GetPhraseSetRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the PhraseSet to retrieve. The expected format is
    * `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 @@ -67,30 +92,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 PhraseSet to retrieve. The expected format is
    * `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 { @@ -99,6 +126,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +138,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_); } @@ -135,15 +162,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.v2.GetPhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.GetPhraseSetRequest other = (com.google.cloud.speech.v2.GetPhraseSetRequest) obj; + com.google.cloud.speech.v2.GetPhraseSetRequest other = + (com.google.cloud.speech.v2.GetPhraseSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,97 +189,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.GetPhraseSetRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.GetPhraseSetRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.GetPhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.GetPhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.GetPhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.GetPhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [GetPhraseSet][google.cloud.speech.v2.Speech.GetPhraseSet] method.
@@ -260,33 +294,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.GetPhraseSetRequest)
       com.google.cloud.speech.v2.GetPhraseSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.GetPhraseSetRequest.class, com.google.cloud.speech.v2.GetPhraseSetRequest.Builder.class);
+              com.google.cloud.speech.v2.GetPhraseSetRequest.class,
+              com.google.cloud.speech.v2.GetPhraseSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.GetPhraseSetRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -296,9 +329,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -317,8 +350,11 @@ public com.google.cloud.speech.v2.GetPhraseSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.GetPhraseSetRequest buildPartial() {
-      com.google.cloud.speech.v2.GetPhraseSetRequest result = new com.google.cloud.speech.v2.GetPhraseSetRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.GetPhraseSetRequest result =
+          new com.google.cloud.speech.v2.GetPhraseSetRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -334,38 +370,39 @@ private void buildPartial0(com.google.cloud.speech.v2.GetPhraseSetRequest result
     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.v2.GetPhraseSetRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.GetPhraseSetRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.GetPhraseSetRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -405,17 +442,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -425,23 +464,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the PhraseSet to retrieve. The expected format is
      * `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; @@ -450,21 +494,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the PhraseSet to retrieve. The expected format is
      * `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 { @@ -472,30 +519,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the PhraseSet to retrieve. The expected format is
      * `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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the PhraseSet to retrieve. The expected format is
      * `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() { @@ -505,27 +563,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the PhraseSet to retrieve. The expected format is
      * `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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -535,12 +599,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.GetPhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.GetPhraseSetRequest) private static final com.google.cloud.speech.v2.GetPhraseSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.GetPhraseSetRequest(); } @@ -549,27 +613,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -584,6 +648,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.GetPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java new file mode 100644 index 000000000000..d1e52870afb2 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.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/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public interface GetPhraseSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetPhraseSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the PhraseSet to retrieve. The expected format is
+   * `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 PhraseSet to retrieve. The expected format is
+   * `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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java similarity index 63% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java index fe8ce0b495e5..83b03053f25c 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [GetRecognizer][google.cloud.speech.v2.Speech.GetRecognizer] method.
@@ -11,54 +28,62 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.GetRecognizerRequest}
  */
-public final class GetRecognizerRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetRecognizerRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.GetRecognizerRequest)
     GetRecognizerRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetRecognizerRequest.newBuilder() to construct.
   private GetRecognizerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetRecognizerRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetRecognizerRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.GetRecognizerRequest.class, com.google.cloud.speech.v2.GetRecognizerRequest.Builder.class);
+            com.google.cloud.speech.v2.GetRecognizerRequest.class,
+            com.google.cloud.speech.v2.GetRecognizerRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the Recognizer to retrieve. The expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * 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 @@ -67,30 +92,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 Recognizer to retrieve. The expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * 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 { @@ -99,6 +126,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +138,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_); } @@ -135,15 +162,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.v2.GetRecognizerRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.GetRecognizerRequest other = (com.google.cloud.speech.v2.GetRecognizerRequest) obj; + com.google.cloud.speech.v2.GetRecognizerRequest other = + (com.google.cloud.speech.v2.GetRecognizerRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,97 +189,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.GetRecognizerRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.GetRecognizerRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.GetRecognizerRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest 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; } /** + * + * *
    * Request message for the
    * [GetRecognizer][google.cloud.speech.v2.Speech.GetRecognizer] method.
@@ -260,33 +294,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.GetRecognizerRequest}
    */
-  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.v2.GetRecognizerRequest)
       com.google.cloud.speech.v2.GetRecognizerRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.GetRecognizerRequest.class, com.google.cloud.speech.v2.GetRecognizerRequest.Builder.class);
+              com.google.cloud.speech.v2.GetRecognizerRequest.class,
+              com.google.cloud.speech.v2.GetRecognizerRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.GetRecognizerRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -296,9 +329,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
@@ -317,8 +350,11 @@ public com.google.cloud.speech.v2.GetRecognizerRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.GetRecognizerRequest buildPartial() {
-      com.google.cloud.speech.v2.GetRecognizerRequest result = new com.google.cloud.speech.v2.GetRecognizerRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.GetRecognizerRequest result =
+          new com.google.cloud.speech.v2.GetRecognizerRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -334,38 +370,39 @@ private void buildPartial0(com.google.cloud.speech.v2.GetRecognizerRequest resul
     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.v2.GetRecognizerRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.GetRecognizerRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.GetRecognizerRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -373,7 +410,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.GetRecognizerRequest other) {
-      if (other == com.google.cloud.speech.v2.GetRecognizerRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.GetRecognizerRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -405,17 +443,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -425,23 +465,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the Recognizer to retrieve. The expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * 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; @@ -450,21 +495,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Recognizer to retrieve. The expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * 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 { @@ -472,30 +520,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Recognizer to retrieve. The expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the Recognizer to retrieve. The expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * 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() { @@ -505,27 +564,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the Recognizer to retrieve. The expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -535,12 +600,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.GetRecognizerRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.GetRecognizerRequest) private static final com.google.cloud.speech.v2.GetRecognizerRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.GetRecognizerRequest(); } @@ -549,27 +614,27 @@ public static com.google.cloud.speech.v2.GetRecognizerRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRecognizerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRecognizerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -584,6 +649,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.GetRecognizerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java new file mode 100644 index 000000000000..0b709d73d3e5 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.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/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public interface GetRecognizerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetRecognizerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Recognizer to retrieve. The expected format is
+   * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Recognizer to retrieve. The expected format is
+   * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
+   * 
+ * + * + * 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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java similarity index 70% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java index 3745f8a25c27..d0147c4fff10 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
@@ -27,39 +45,46 @@ 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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListCustomClassesRequest.class, com.google.cloud.speech.v2.ListCustomClassesRequest.Builder.class);
+            com.google.cloud.speech.v2.ListCustomClassesRequest.class,
+            com.google.cloud.speech.v2.ListCustomClassesRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. The project and location of CustomClass resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * 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 @@ -68,30 +93,32 @@ 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 project and location of CustomClass resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * 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 { @@ -102,6 +129,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Number of results per requests. A valid page_size ranges from 0 to 20
    * inclusive. If the page_size is zero or unspecified, a page size of 5 will
@@ -110,6 +139,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -118,9 +148,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -131,6 +164,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -139,14 +173,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
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -157,16 +192,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 { @@ -177,11 +211,14 @@ public java.lang.String getPageToken() { public static final int SHOW_DELETED_FIELD_NUMBER = 4; private boolean showDeleted_ = false; /** + * + * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ @java.lang.Override @@ -190,6 +227,7 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,8 +239,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_); } @@ -228,15 +265,13 @@ 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_); } if (showDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, showDeleted_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, showDeleted_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -246,21 +281,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.v2.ListCustomClassesRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListCustomClassesRequest other = (com.google.cloud.speech.v2.ListCustomClassesRequest) obj; + com.google.cloud.speech.v2.ListCustomClassesRequest other = + (com.google.cloud.speech.v2.ListCustomClassesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getShowDeleted() - != other.getShowDeleted()) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getShowDeleted() != other.getShowDeleted()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -279,104 +311,110 @@ public int hashCode() { hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getShowDeleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v2.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.v2.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.v2.ListCustomClassesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.ListCustomClassesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.ListCustomClassesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListCustomClassesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.ListCustomClassesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListCustomClassesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.
@@ -384,33 +422,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.ListCustomClassesRequest)
       com.google.cloud.speech.v2.ListCustomClassesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListCustomClassesRequest.class, com.google.cloud.speech.v2.ListCustomClassesRequest.Builder.class);
+              com.google.cloud.speech.v2.ListCustomClassesRequest.class,
+              com.google.cloud.speech.v2.ListCustomClassesRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListCustomClassesRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -423,9 +460,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
     }
 
     @java.lang.Override
@@ -444,8 +481,11 @@ public com.google.cloud.speech.v2.ListCustomClassesRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListCustomClassesRequest buildPartial() {
-      com.google.cloud.speech.v2.ListCustomClassesRequest result = new com.google.cloud.speech.v2.ListCustomClassesRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.ListCustomClassesRequest result =
+          new com.google.cloud.speech.v2.ListCustomClassesRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -470,38 +510,39 @@ private void buildPartial0(com.google.cloud.speech.v2.ListCustomClassesRequest r
     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.v2.ListCustomClassesRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.ListCustomClassesRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.ListCustomClassesRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -509,7 +550,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListCustomClassesRequest other) {
-      if (other == com.google.cloud.speech.v2.ListCustomClassesRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.ListCustomClassesRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -552,32 +594,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              pageSize_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              pageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              showDeleted_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                pageSize_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                showDeleted_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -587,23 +634,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The project and location of CustomClass resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * 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; @@ -612,21 +664,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location of CustomClass resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * 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 { @@ -634,30 +689,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location of CustomClass resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The project and location of CustomClass resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * 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() { @@ -667,18 +733,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The project and location of CustomClass resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -686,8 +758,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Number of results per requests. A valid page_size ranges from 0 to 20
      * inclusive. If the page_size is zero or unspecified, a page size of 5 will
@@ -696,6 +770,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -703,6 +778,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Number of results per requests. A valid page_size ranges from 0 to 20
      * inclusive. If the page_size is zero or unspecified, a page size of 5 will
@@ -711,17 +788,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Number of results per requests. A valid page_size ranges from 0 to 20
      * inclusive. If the page_size is zero or unspecified, a page size of 5 will
@@ -730,6 +810,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -741,6 +822,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous
      * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -751,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; @@ -766,6 +849,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous
      * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -776,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 { @@ -792,6 +876,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous
      * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -802,18 +888,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous
      * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -824,6 +914,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -833,6 +924,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous
      * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -843,12 +936,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -856,13 +951,16 @@ public Builder setPageTokenBytes( return this; } - private boolean showDeleted_ ; + private boolean showDeleted_; /** + * + * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ @java.lang.Override @@ -870,27 +968,33 @@ public boolean getShowDeleted() { return showDeleted_; } /** + * + * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; + * * @param value The showDeleted to set. * @return This builder for chaining. */ public Builder setShowDeleted(boolean value) { - + showDeleted_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; + * * @return This builder for chaining. */ public Builder clearShowDeleted() { @@ -899,9 +1003,9 @@ public Builder clearShowDeleted() { 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); } @@ -911,12 +1015,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListCustomClassesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListCustomClassesRequest) private static final com.google.cloud.speech.v2.ListCustomClassesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListCustomClassesRequest(); } @@ -925,27 +1029,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -960,6 +1064,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ListCustomClassesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java index 9a7d873f753a..86ead68f92f1 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListCustomClassesRequestOrBuilder extends +public interface ListCustomClassesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListCustomClassesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project and location of CustomClass resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * 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 project and location of CustomClass resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * 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(); /** + * + * *
    * Number of results per requests. A valid page_size ranges from 0 to 20
    * inclusive. If the page_size is zero or unspecified, a page size of 5 will
@@ -38,11 +65,14 @@ public interface ListCustomClassesRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -53,10 +83,13 @@ public interface ListCustomClassesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -67,17 +100,20 @@ public interface ListCustomClassesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ boolean getShowDeleted(); diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java similarity index 72% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java index e71e0ce98404..fa3c1ad11026 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Response message for the
  * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
@@ -27,33 +45,37 @@ 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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListCustomClassesResponse.class, com.google.cloud.speech.v2.ListCustomClassesResponse.Builder.class);
+            com.google.cloud.speech.v2.ListCustomClassesResponse.class,
+            com.google.cloud.speech.v2.ListCustomClassesResponse.Builder.class);
   }
 
   public static final int CUSTOM_CLASSES_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List customClasses_;
   /**
+   *
+   *
    * 
    * The list of requested CustomClasses.
    * 
@@ -65,6 +87,8 @@ public java.util.List getCustomClassesLi return customClasses_; } /** + * + * *
    * The list of requested CustomClasses.
    * 
@@ -72,11 +96,13 @@ public java.util.List getCustomClassesLi * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCustomClassesOrBuilderList() { return customClasses_; } /** + * + * *
    * The list of requested CustomClasses.
    * 
@@ -88,6 +114,8 @@ public int getCustomClassesCount() { return customClasses_.size(); } /** + * + * *
    * The list of requested CustomClasses.
    * 
@@ -99,6 +127,8 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) { return customClasses_.get(index); } /** + * + * *
    * The list of requested CustomClasses.
    * 
@@ -106,15 +136,17 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) { * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ @java.lang.Override - public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder( - int index) { + public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index) { return customClasses_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -123,6 +155,7 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -131,14 +164,15 @@ 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][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -147,16 +181,15 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -165,6 +198,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +210,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)); } @@ -194,8 +227,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_); @@ -208,17 +240,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.v2.ListCustomClassesResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListCustomClassesResponse other = (com.google.cloud.speech.v2.ListCustomClassesResponse) obj; + com.google.cloud.speech.v2.ListCustomClassesResponse other = + (com.google.cloud.speech.v2.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -242,96 +273,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.ListCustomClassesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.ListCustomClassesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.ListCustomClassesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListCustomClassesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.ListCustomClassesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListCustomClassesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Response message for the
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.
@@ -339,33 +377,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.ListCustomClassesResponse)
       com.google.cloud.speech.v2.ListCustomClassesResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListCustomClassesResponse.class, com.google.cloud.speech.v2.ListCustomClassesResponse.Builder.class);
+              com.google.cloud.speech.v2.ListCustomClassesResponse.class,
+              com.google.cloud.speech.v2.ListCustomClassesResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListCustomClassesResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -382,9 +419,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
     }
 
     @java.lang.Override
@@ -403,14 +440,18 @@ public com.google.cloud.speech.v2.ListCustomClassesResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListCustomClassesResponse buildPartial() {
-      com.google.cloud.speech.v2.ListCustomClassesResponse result = new com.google.cloud.speech.v2.ListCustomClassesResponse(this);
+      com.google.cloud.speech.v2.ListCustomClassesResponse result =
+          new com.google.cloud.speech.v2.ListCustomClassesResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.ListCustomClassesResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v2.ListCustomClassesResponse result) {
       if (customClassesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           customClasses_ = java.util.Collections.unmodifiableList(customClasses_);
@@ -433,38 +474,39 @@ private void buildPartial0(com.google.cloud.speech.v2.ListCustomClassesResponse
     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.v2.ListCustomClassesResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.ListCustomClassesResponse)other);
+        return mergeFrom((com.google.cloud.speech.v2.ListCustomClassesResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -472,7 +514,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListCustomClassesResponse other) {
-      if (other == com.google.cloud.speech.v2.ListCustomClassesResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.ListCustomClassesResponse.getDefaultInstance())
+        return this;
       if (customClassesBuilder_ == null) {
         if (!other.customClasses_.isEmpty()) {
           if (customClasses_.isEmpty()) {
@@ -491,9 +534,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_);
           }
@@ -530,30 +574,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.speech.v2.CustomClass m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.CustomClass.parser(),
-                      extensionRegistry);
-              if (customClassesBuilder_ == null) {
-                ensureCustomClassesIsMutable();
-                customClasses_.add(m);
-              } else {
-                customClassesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              nextPageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.speech.v2.CustomClass m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.CustomClass.parser(), extensionRegistry);
+                if (customClassesBuilder_ == null) {
+                  ensureCustomClassesIsMutable();
+                  customClasses_.add(m);
+                } else {
+                  customClassesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                nextPageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -563,21 +609,29 @@ public Builder mergeFrom(
       } // finally
       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.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> customClassesBuilder_;
+            com.google.cloud.speech.v2.CustomClass,
+            com.google.cloud.speech.v2.CustomClass.Builder,
+            com.google.cloud.speech.v2.CustomClassOrBuilder>
+        customClassesBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of requested CustomClasses.
      * 
@@ -592,6 +646,8 @@ public java.util.List getCustomClassesLi } } /** + * + * *
      * The list of requested CustomClasses.
      * 
@@ -606,6 +662,8 @@ public int getCustomClassesCount() { } } /** + * + * *
      * The list of requested CustomClasses.
      * 
@@ -620,14 +678,15 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) { } } /** + * + * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public Builder setCustomClasses( - int index, com.google.cloud.speech.v2.CustomClass value) { + public Builder setCustomClasses(int index, com.google.cloud.speech.v2.CustomClass value) { if (customClassesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,6 +700,8 @@ public Builder setCustomClasses( return this; } /** + * + * *
      * The list of requested CustomClasses.
      * 
@@ -659,6 +720,8 @@ public Builder setCustomClasses( return this; } /** + * + * *
      * The list of requested CustomClasses.
      * 
@@ -679,14 +742,15 @@ public Builder addCustomClasses(com.google.cloud.speech.v2.CustomClass value) { return this; } /** + * + * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public Builder addCustomClasses( - int index, com.google.cloud.speech.v2.CustomClass value) { + public Builder addCustomClasses(int index, com.google.cloud.speech.v2.CustomClass value) { if (customClassesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -700,6 +764,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The list of requested CustomClasses.
      * 
@@ -718,6 +784,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The list of requested CustomClasses.
      * 
@@ -736,6 +804,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The list of requested CustomClasses.
      * 
@@ -746,8 +816,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); @@ -755,6 +824,8 @@ public Builder addAllCustomClasses( return this; } /** + * + * *
      * The list of requested CustomClasses.
      * 
@@ -772,6 +843,8 @@ public Builder clearCustomClasses() { return this; } /** + * + * *
      * The list of requested CustomClasses.
      * 
@@ -789,39 +862,44 @@ public Builder removeCustomClasses(int index) { return this; } /** + * + * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassesBuilder( - int index) { + public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassesBuilder(int index) { return getCustomClassesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder( - int index) { + public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index) { if (customClassesBuilder_ == null) { - return customClasses_.get(index); } else { + return customClasses_.get(index); + } else { return customClassesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public java.util.List - getCustomClassesOrBuilderList() { + public java.util.List + getCustomClassesOrBuilderList() { if (customClassesBuilder_ != null) { return customClassesBuilder_.getMessageOrBuilderList(); } else { @@ -829,6 +907,8 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder } } /** + * + * *
      * The list of requested CustomClasses.
      * 
@@ -836,38 +916,47 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder() { - return getCustomClassesFieldBuilder().addBuilder( - com.google.cloud.speech.v2.CustomClass.getDefaultInstance()); + return getCustomClassesFieldBuilder() + .addBuilder(com.google.cloud.speech.v2.CustomClass.getDefaultInstance()); } /** + * + * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder( - int index) { - return getCustomClassesFieldBuilder().addBuilder( - index, com.google.cloud.speech.v2.CustomClass.getDefaultInstance()); + public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(int index) { + return getCustomClassesFieldBuilder() + .addBuilder(index, com.google.cloud.speech.v2.CustomClass.getDefaultInstance()); } /** + * + * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.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.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> + com.google.cloud.speech.v2.CustomClass, + com.google.cloud.speech.v2.CustomClass.Builder, + com.google.cloud.speech.v2.CustomClassOrBuilder> getCustomClassesFieldBuilder() { if (customClassesBuilder_ == null) { - customClassesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder>( + customClassesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.CustomClass, + com.google.cloud.speech.v2.CustomClass.Builder, + com.google.cloud.speech.v2.CustomClassOrBuilder>( customClasses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -879,6 +968,8 @@ public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -887,13 +978,13 @@ public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(
      * 
* * 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; @@ -902,6 +993,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -910,15 +1003,14 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -926,6 +1018,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -934,18 +1028,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -954,6 +1052,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -963,6 +1062,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -971,21 +1072,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -995,12 +1098,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListCustomClassesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListCustomClassesResponse) private static final com.google.cloud.speech.v2.ListCustomClassesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListCustomClassesResponse(); } @@ -1009,27 +1112,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1044,6 +1147,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.ListCustomClassesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java index 125a49023494..0177a87b7564 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListCustomClassesResponseOrBuilder extends +public interface ListCustomClassesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListCustomClassesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of requested CustomClasses.
    * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - java.util.List - getCustomClassesList(); + java.util.List getCustomClassesList(); /** + * + * *
    * The list of requested CustomClasses.
    * 
@@ -25,6 +44,8 @@ public interface ListCustomClassesResponseOrBuilder extends */ com.google.cloud.speech.v2.CustomClass getCustomClasses(int index); /** + * + * *
    * The list of requested CustomClasses.
    * 
@@ -33,25 +54,30 @@ public interface ListCustomClassesResponseOrBuilder extends */ int getCustomClassesCount(); /** + * + * *
    * The list of requested CustomClasses.
    * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - java.util.List + java.util.List getCustomClassesOrBuilderList(); /** + * + * *
    * The list of requested CustomClasses.
    * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder( - int index); + com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index); /** + * + * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -60,10 +86,13 @@ com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -72,8 +101,8 @@ com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(
    * 
* * 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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java similarity index 70% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java index e683c6220027..067383e3f289 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.ListPhraseSetsRequest}
  */
-public final class ListPhraseSetsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListPhraseSetsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ListPhraseSetsRequest)
     ListPhraseSetsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListPhraseSetsRequest.newBuilder() to construct.
   private ListPhraseSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListPhraseSetsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -27,39 +45,46 @@ private ListPhraseSetsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListPhraseSetsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListPhraseSetsRequest.class, com.google.cloud.speech.v2.ListPhraseSetsRequest.Builder.class);
+            com.google.cloud.speech.v2.ListPhraseSetsRequest.class,
+            com.google.cloud.speech.v2.ListPhraseSetsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. The project and location of PhraseSet resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * 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 @@ -68,30 +93,32 @@ 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 project and location of PhraseSet resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * 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 { @@ -102,6 +129,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of PhraseSets to return. The service may return fewer
    * than this value. If unspecified, at most 20 PhraseSets will be returned.
@@ -109,6 +138,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -117,9 +147,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -130,6 +163,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -138,14 +172,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
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -156,16 +191,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 { @@ -176,11 +210,14 @@ public java.lang.String getPageToken() { public static final int SHOW_DELETED_FIELD_NUMBER = 4; private boolean showDeleted_ = false; /** + * + * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ @java.lang.Override @@ -189,6 +226,7 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +238,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_); } @@ -227,15 +264,13 @@ 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_); } if (showDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, showDeleted_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, showDeleted_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -245,21 +280,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.v2.ListPhraseSetsRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListPhraseSetsRequest other = (com.google.cloud.speech.v2.ListPhraseSetsRequest) obj; + com.google.cloud.speech.v2.ListPhraseSetsRequest other = + (com.google.cloud.speech.v2.ListPhraseSetsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getShowDeleted() - != other.getShowDeleted()) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getShowDeleted() != other.getShowDeleted()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -278,104 +310,110 @@ public int hashCode() { hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getShowDeleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v2.ListPhraseSetsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.ListPhraseSetsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListPhraseSetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListPhraseSetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest 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; } /** + * + * *
    * Request message for the
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.
@@ -383,33 +421,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.ListPhraseSetsRequest}
    */
-  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.v2.ListPhraseSetsRequest)
       com.google.cloud.speech.v2.ListPhraseSetsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListPhraseSetsRequest.class, com.google.cloud.speech.v2.ListPhraseSetsRequest.Builder.class);
+              com.google.cloud.speech.v2.ListPhraseSetsRequest.class,
+              com.google.cloud.speech.v2.ListPhraseSetsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListPhraseSetsRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -422,9 +459,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -443,8 +480,11 @@ public com.google.cloud.speech.v2.ListPhraseSetsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListPhraseSetsRequest buildPartial() {
-      com.google.cloud.speech.v2.ListPhraseSetsRequest result = new com.google.cloud.speech.v2.ListPhraseSetsRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.ListPhraseSetsRequest result =
+          new com.google.cloud.speech.v2.ListPhraseSetsRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -469,38 +509,39 @@ private void buildPartial0(com.google.cloud.speech.v2.ListPhraseSetsRequest resu
     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.v2.ListPhraseSetsRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.ListPhraseSetsRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.ListPhraseSetsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -508,7 +549,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListPhraseSetsRequest other) {
-      if (other == com.google.cloud.speech.v2.ListPhraseSetsRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.ListPhraseSetsRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -551,32 +593,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              pageSize_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              pageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              showDeleted_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                pageSize_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                showDeleted_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -586,23 +633,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The project and location of PhraseSet resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * 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; @@ -611,21 +663,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location of PhraseSet resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * 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 { @@ -633,30 +688,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location of PhraseSet resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The project and location of PhraseSet resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * 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() { @@ -666,18 +732,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The project and location of PhraseSet resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -685,8 +757,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of PhraseSets to return. The service may return fewer
      * than this value. If unspecified, at most 20 PhraseSets will be returned.
@@ -694,6 +768,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -701,6 +776,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of PhraseSets to return. The service may return fewer
      * than this value. If unspecified, at most 20 PhraseSets will be returned.
@@ -708,17 +785,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of PhraseSets to return. The service may return fewer
      * than this value. If unspecified, at most 20 PhraseSets will be returned.
@@ -726,6 +806,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -737,6 +818,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous
      * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -747,13 +830,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; @@ -762,6 +845,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous
      * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -772,15 +857,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 { @@ -788,6 +872,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous
      * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -798,18 +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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous
      * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -820,6 +910,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -829,6 +920,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous
      * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -839,12 +932,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -852,13 +947,16 @@ public Builder setPageTokenBytes( return this; } - private boolean showDeleted_ ; + private boolean showDeleted_; /** + * + * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ @java.lang.Override @@ -866,27 +964,33 @@ public boolean getShowDeleted() { return showDeleted_; } /** + * + * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; + * * @param value The showDeleted to set. * @return This builder for chaining. */ public Builder setShowDeleted(boolean value) { - + showDeleted_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; + * * @return This builder for chaining. */ public Builder clearShowDeleted() { @@ -895,9 +999,9 @@ public Builder clearShowDeleted() { 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); } @@ -907,12 +1011,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListPhraseSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListPhraseSetsRequest) private static final com.google.cloud.speech.v2.ListPhraseSetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListPhraseSetsRequest(); } @@ -921,27 +1025,27 @@ public static com.google.cloud.speech.v2.ListPhraseSetsRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -956,6 +1060,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ListPhraseSetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java index 0aae9ecfa7be..0d0d9c9ab953 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListPhraseSetsRequestOrBuilder extends +public interface ListPhraseSetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListPhraseSetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project and location of PhraseSet resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * 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 project and location of PhraseSet resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * 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 PhraseSets to return. The service may return fewer
    * than this value. If unspecified, at most 20 PhraseSets will be returned.
@@ -37,11 +64,14 @@ public interface ListPhraseSetsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -52,10 +82,13 @@ public interface ListPhraseSetsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -66,17 +99,20 @@ public interface ListPhraseSetsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ boolean getShowDeleted(); diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java similarity index 72% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java index e216d41baa1c..b8ebfa5b3910 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Response message for the
  * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.ListPhraseSetsResponse}
  */
-public final class ListPhraseSetsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListPhraseSetsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ListPhraseSetsResponse)
     ListPhraseSetsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListPhraseSetsResponse.newBuilder() to construct.
   private ListPhraseSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListPhraseSetsResponse() {
     phraseSets_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -27,33 +45,37 @@ private ListPhraseSetsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListPhraseSetsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListPhraseSetsResponse.class, com.google.cloud.speech.v2.ListPhraseSetsResponse.Builder.class);
+            com.google.cloud.speech.v2.ListPhraseSetsResponse.class,
+            com.google.cloud.speech.v2.ListPhraseSetsResponse.Builder.class);
   }
 
   public static final int PHRASE_SETS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List phraseSets_;
   /**
+   *
+   *
    * 
    * The list of requested PhraseSets.
    * 
@@ -65,6 +87,8 @@ public java.util.List getPhraseSetsList() return phraseSets_; } /** + * + * *
    * The list of requested PhraseSets.
    * 
@@ -72,11 +96,13 @@ public java.util.List getPhraseSetsList() * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPhraseSetsOrBuilderList() { return phraseSets_; } /** + * + * *
    * The list of requested PhraseSets.
    * 
@@ -88,6 +114,8 @@ public int getPhraseSetsCount() { return phraseSets_.size(); } /** + * + * *
    * The list of requested PhraseSets.
    * 
@@ -99,6 +127,8 @@ public com.google.cloud.speech.v2.PhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** + * + * *
    * The list of requested PhraseSets.
    * 
@@ -106,15 +136,17 @@ public com.google.cloud.speech.v2.PhraseSet getPhraseSets(int index) { * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ @java.lang.Override - public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder( - int index) { + public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) { return phraseSets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -123,6 +155,7 @@ public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -131,14 +164,15 @@ 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][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -147,16 +181,15 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -165,6 +198,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +210,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)); } @@ -194,8 +227,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_); @@ -208,17 +240,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.v2.ListPhraseSetsResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListPhraseSetsResponse other = (com.google.cloud.speech.v2.ListPhraseSetsResponse) obj; + com.google.cloud.speech.v2.ListPhraseSetsResponse other = + (com.google.cloud.speech.v2.ListPhraseSetsResponse) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -242,96 +273,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListPhraseSetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListPhraseSetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse 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; } /** + * + * *
    * Response message for the
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.
@@ -339,33 +377,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.ListPhraseSetsResponse}
    */
-  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.v2.ListPhraseSetsResponse)
       com.google.cloud.speech.v2.ListPhraseSetsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListPhraseSetsResponse.class, com.google.cloud.speech.v2.ListPhraseSetsResponse.Builder.class);
+              com.google.cloud.speech.v2.ListPhraseSetsResponse.class,
+              com.google.cloud.speech.v2.ListPhraseSetsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListPhraseSetsResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -382,9 +419,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -403,14 +440,18 @@ public com.google.cloud.speech.v2.ListPhraseSetsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListPhraseSetsResponse buildPartial() {
-      com.google.cloud.speech.v2.ListPhraseSetsResponse result = new com.google.cloud.speech.v2.ListPhraseSetsResponse(this);
+      com.google.cloud.speech.v2.ListPhraseSetsResponse result =
+          new com.google.cloud.speech.v2.ListPhraseSetsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.ListPhraseSetsResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v2.ListPhraseSetsResponse result) {
       if (phraseSetsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_);
@@ -433,38 +474,39 @@ private void buildPartial0(com.google.cloud.speech.v2.ListPhraseSetsResponse res
     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.v2.ListPhraseSetsResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.ListPhraseSetsResponse)other);
+        return mergeFrom((com.google.cloud.speech.v2.ListPhraseSetsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -472,7 +514,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListPhraseSetsResponse other) {
-      if (other == com.google.cloud.speech.v2.ListPhraseSetsResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.ListPhraseSetsResponse.getDefaultInstance())
+        return this;
       if (phraseSetsBuilder_ == null) {
         if (!other.phraseSets_.isEmpty()) {
           if (phraseSets_.isEmpty()) {
@@ -491,9 +534,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.ListPhraseSetsResponse 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_);
           }
@@ -530,30 +574,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.speech.v2.PhraseSet m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.PhraseSet.parser(),
-                      extensionRegistry);
-              if (phraseSetsBuilder_ == null) {
-                ensurePhraseSetsIsMutable();
-                phraseSets_.add(m);
-              } else {
-                phraseSetsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              nextPageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.speech.v2.PhraseSet m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.PhraseSet.parser(), extensionRegistry);
+                if (phraseSetsBuilder_ == null) {
+                  ensurePhraseSetsIsMutable();
+                  phraseSets_.add(m);
+                } else {
+                  phraseSetsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                nextPageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -563,21 +609,28 @@ public Builder mergeFrom(
       } // finally
       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.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> phraseSetsBuilder_;
+            com.google.cloud.speech.v2.PhraseSet,
+            com.google.cloud.speech.v2.PhraseSet.Builder,
+            com.google.cloud.speech.v2.PhraseSetOrBuilder>
+        phraseSetsBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of requested PhraseSets.
      * 
@@ -592,6 +645,8 @@ public java.util.List getPhraseSetsList() } } /** + * + * *
      * The list of requested PhraseSets.
      * 
@@ -606,6 +661,8 @@ public int getPhraseSetsCount() { } } /** + * + * *
      * The list of requested PhraseSets.
      * 
@@ -620,14 +677,15 @@ public com.google.cloud.speech.v2.PhraseSet getPhraseSets(int index) { } } /** + * + * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public Builder setPhraseSets( - int index, com.google.cloud.speech.v2.PhraseSet value) { + public Builder setPhraseSets(int index, com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,6 +699,8 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * The list of requested PhraseSets.
      * 
@@ -659,6 +719,8 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * The list of requested PhraseSets.
      * 
@@ -679,14 +741,15 @@ public Builder addPhraseSets(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** + * + * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public Builder addPhraseSets( - int index, com.google.cloud.speech.v2.PhraseSet value) { + public Builder addPhraseSets(int index, com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -700,14 +763,15 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public Builder addPhraseSets( - com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { + public Builder addPhraseSets(com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { if (phraseSetsBuilder_ == null) { ensurePhraseSetsIsMutable(); phraseSets_.add(builderForValue.build()); @@ -718,6 +782,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The list of requested PhraseSets.
      * 
@@ -736,6 +802,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The list of requested PhraseSets.
      * 
@@ -746,8 +814,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); @@ -755,6 +822,8 @@ public Builder addAllPhraseSets( return this; } /** + * + * *
      * The list of requested PhraseSets.
      * 
@@ -772,6 +841,8 @@ public Builder clearPhraseSets() { return this; } /** + * + * *
      * The list of requested PhraseSets.
      * 
@@ -789,39 +860,44 @@ public Builder removePhraseSets(int index) { return this; } /** + * + * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetsBuilder( - int index) { + public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetsBuilder(int index) { return getPhraseSetsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder( - int index) { + public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) { if (phraseSetsBuilder_ == null) { - return phraseSets_.get(index); } else { + return phraseSets_.get(index); + } else { return phraseSetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public java.util.List - getPhraseSetsOrBuilderList() { + public java.util.List + getPhraseSetsOrBuilderList() { if (phraseSetsBuilder_ != null) { return phraseSetsBuilder_.getMessageOrBuilderList(); } else { @@ -829,6 +905,8 @@ public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder( } } /** + * + * *
      * The list of requested PhraseSets.
      * 
@@ -836,42 +914,47 @@ public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder( * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ public com.google.cloud.speech.v2.PhraseSet.Builder addPhraseSetsBuilder() { - return getPhraseSetsFieldBuilder().addBuilder( - com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()); + return getPhraseSetsFieldBuilder() + .addBuilder(com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()); } /** + * + * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.PhraseSet.Builder addPhraseSetsBuilder( - int index) { - return getPhraseSetsFieldBuilder().addBuilder( - index, com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()); + public com.google.cloud.speech.v2.PhraseSet.Builder addPhraseSetsBuilder(int index) { + return getPhraseSetsFieldBuilder() + .addBuilder(index, com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()); } /** + * + * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.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.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> + com.google.cloud.speech.v2.PhraseSet, + com.google.cloud.speech.v2.PhraseSet.Builder, + com.google.cloud.speech.v2.PhraseSetOrBuilder> getPhraseSetsFieldBuilder() { if (phraseSetsBuilder_ == null) { - phraseSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder>( - phraseSets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + phraseSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.PhraseSet, + com.google.cloud.speech.v2.PhraseSet.Builder, + com.google.cloud.speech.v2.PhraseSetOrBuilder>( + phraseSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); phraseSets_ = null; } return phraseSetsBuilder_; @@ -879,6 +962,8 @@ public com.google.cloud.speech.v2.PhraseSet.Builder addPhraseSetsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -887,13 +972,13 @@ public com.google.cloud.speech.v2.PhraseSet.Builder addPhraseSetsBuilder(
      * 
* * 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; @@ -902,6 +987,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -910,15 +997,14 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -926,6 +1012,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -934,18 +1022,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -954,6 +1046,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -963,6 +1056,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -971,21 +1066,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -995,12 +1092,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListPhraseSetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListPhraseSetsResponse) private static final com.google.cloud.speech.v2.ListPhraseSetsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListPhraseSetsResponse(); } @@ -1009,27 +1106,27 @@ public static com.google.cloud.speech.v2.ListPhraseSetsResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1044,6 +1141,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ListPhraseSetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java index aa3460bcc180..3d9cdca0eefa 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListPhraseSetsResponseOrBuilder extends +public interface ListPhraseSetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListPhraseSetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of requested PhraseSets.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - java.util.List - getPhraseSetsList(); + java.util.List getPhraseSetsList(); /** + * + * *
    * The list of requested PhraseSets.
    * 
@@ -25,6 +44,8 @@ public interface ListPhraseSetsResponseOrBuilder extends */ com.google.cloud.speech.v2.PhraseSet getPhraseSets(int index); /** + * + * *
    * The list of requested PhraseSets.
    * 
@@ -33,25 +54,30 @@ public interface ListPhraseSetsResponseOrBuilder extends */ int getPhraseSetsCount(); /** + * + * *
    * The list of requested PhraseSets.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - java.util.List + java.util.List getPhraseSetsOrBuilderList(); /** + * + * *
    * The list of requested PhraseSets.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder( - int index); + com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index); /** + * + * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -60,10 +86,13 @@ com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -72,8 +101,8 @@ com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    * 
* * 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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java similarity index 70% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java index ad4edac0cd6c..f5d19cdf4292 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.ListRecognizersRequest}
  */
-public final class ListRecognizersRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListRecognizersRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ListRecognizersRequest)
     ListRecognizersRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListRecognizersRequest.newBuilder() to construct.
   private ListRecognizersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListRecognizersRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -27,39 +45,46 @@ private ListRecognizersRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListRecognizersRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListRecognizersRequest.class, com.google.cloud.speech.v2.ListRecognizersRequest.Builder.class);
+            com.google.cloud.speech.v2.ListRecognizersRequest.class,
+            com.google.cloud.speech.v2.ListRecognizersRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. The project and location of Recognizers to list. The expected
    * format is `projects/{project}/locations/{location}`.
    * 
* - * 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 @@ -68,30 +93,32 @@ 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 project and location of Recognizers to list. The expected
    * format is `projects/{project}/locations/{location}`.
    * 
* - * 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 { @@ -102,6 +129,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of Recognizers to return. The service may return fewer
    * than this value. If unspecified, at most 20 Recognizers will be returned.
@@ -109,6 +138,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -117,9 +147,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -130,6 +163,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -138,14 +172,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
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -156,16 +191,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 { @@ -176,11 +210,14 @@ public java.lang.String getPageToken() { public static final int SHOW_DELETED_FIELD_NUMBER = 4; private boolean showDeleted_ = false; /** + * + * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ @java.lang.Override @@ -189,6 +226,7 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +238,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_); } @@ -227,15 +264,13 @@ 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_); } if (showDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, showDeleted_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, showDeleted_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -245,21 +280,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.v2.ListRecognizersRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListRecognizersRequest other = (com.google.cloud.speech.v2.ListRecognizersRequest) obj; + com.google.cloud.speech.v2.ListRecognizersRequest other = + (com.google.cloud.speech.v2.ListRecognizersRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getShowDeleted() - != other.getShowDeleted()) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getShowDeleted() != other.getShowDeleted()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -278,104 +310,110 @@ public int hashCode() { hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getShowDeleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListRecognizersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListRecognizersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest 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; } /** + * + * *
    * Request message for the
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.
@@ -383,33 +421,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.ListRecognizersRequest}
    */
-  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.v2.ListRecognizersRequest)
       com.google.cloud.speech.v2.ListRecognizersRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListRecognizersRequest.class, com.google.cloud.speech.v2.ListRecognizersRequest.Builder.class);
+              com.google.cloud.speech.v2.ListRecognizersRequest.class,
+              com.google.cloud.speech.v2.ListRecognizersRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListRecognizersRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -422,9 +459,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
     }
 
     @java.lang.Override
@@ -443,8 +480,11 @@ public com.google.cloud.speech.v2.ListRecognizersRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListRecognizersRequest buildPartial() {
-      com.google.cloud.speech.v2.ListRecognizersRequest result = new com.google.cloud.speech.v2.ListRecognizersRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.ListRecognizersRequest result =
+          new com.google.cloud.speech.v2.ListRecognizersRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -469,38 +509,39 @@ private void buildPartial0(com.google.cloud.speech.v2.ListRecognizersRequest res
     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.v2.ListRecognizersRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.ListRecognizersRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.ListRecognizersRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -508,7 +549,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListRecognizersRequest other) {
-      if (other == com.google.cloud.speech.v2.ListRecognizersRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.ListRecognizersRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -551,32 +593,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              pageSize_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              pageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              showDeleted_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                pageSize_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                showDeleted_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -586,23 +633,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The project and location of Recognizers to list. The expected
      * format is `projects/{project}/locations/{location}`.
      * 
* - * 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; @@ -611,21 +663,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location of Recognizers to list. The expected
      * format is `projects/{project}/locations/{location}`.
      * 
* - * 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 { @@ -633,30 +688,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location of Recognizers to list. The expected
      * format is `projects/{project}/locations/{location}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The project and location of Recognizers to list. The expected
      * format is `projects/{project}/locations/{location}`.
      * 
* - * 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() { @@ -666,18 +732,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The project and location of Recognizers to list. The expected
      * format is `projects/{project}/locations/{location}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -685,8 +757,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of Recognizers to return. The service may return fewer
      * than this value. If unspecified, at most 20 Recognizers will be returned.
@@ -694,6 +768,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -701,6 +776,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of Recognizers to return. The service may return fewer
      * than this value. If unspecified, at most 20 Recognizers will be returned.
@@ -708,17 +785,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of Recognizers to return. The service may return fewer
      * than this value. If unspecified, at most 20 Recognizers will be returned.
@@ -726,6 +806,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -737,6 +818,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous
      * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -747,13 +830,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; @@ -762,6 +845,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous
      * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -772,15 +857,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 { @@ -788,6 +872,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous
      * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -798,18 +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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous
      * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -820,6 +910,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -829,6 +920,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous
      * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -839,12 +932,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -852,13 +947,16 @@ public Builder setPageTokenBytes( return this; } - private boolean showDeleted_ ; + private boolean showDeleted_; /** + * + * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ @java.lang.Override @@ -866,27 +964,33 @@ public boolean getShowDeleted() { return showDeleted_; } /** + * + * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; + * * @param value The showDeleted to set. * @return This builder for chaining. */ public Builder setShowDeleted(boolean value) { - + showDeleted_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; + * * @return This builder for chaining. */ public Builder clearShowDeleted() { @@ -895,9 +999,9 @@ public Builder clearShowDeleted() { 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); } @@ -907,12 +1011,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListRecognizersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListRecognizersRequest) private static final com.google.cloud.speech.v2.ListRecognizersRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListRecognizersRequest(); } @@ -921,27 +1025,27 @@ public static com.google.cloud.speech.v2.ListRecognizersRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRecognizersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRecognizersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -956,6 +1060,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ListRecognizersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java index c3e14de54055..96ffdcaa9487 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListRecognizersRequestOrBuilder extends +public interface ListRecognizersRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListRecognizersRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project and location of Recognizers to list. The expected
    * format is `projects/{project}/locations/{location}`.
    * 
* - * 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 project and location of Recognizers to list. The expected
    * format is `projects/{project}/locations/{location}`.
    * 
* - * 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 Recognizers to return. The service may return fewer
    * than this value. If unspecified, at most 20 Recognizers will be returned.
@@ -37,11 +64,14 @@ public interface ListRecognizersRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -52,10 +82,13 @@ public interface ListRecognizersRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -66,17 +99,20 @@ public interface ListRecognizersRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ boolean getShowDeleted(); diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java similarity index 72% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java index 959437a7ea20..e9195797bb14 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Response message for the
  * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.ListRecognizersResponse}
  */
-public final class ListRecognizersResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListRecognizersResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ListRecognizersResponse)
     ListRecognizersResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListRecognizersResponse.newBuilder() to construct.
   private ListRecognizersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListRecognizersResponse() {
     recognizers_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -27,33 +45,37 @@ private ListRecognizersResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListRecognizersResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListRecognizersResponse.class, com.google.cloud.speech.v2.ListRecognizersResponse.Builder.class);
+            com.google.cloud.speech.v2.ListRecognizersResponse.class,
+            com.google.cloud.speech.v2.ListRecognizersResponse.Builder.class);
   }
 
   public static final int RECOGNIZERS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List recognizers_;
   /**
+   *
+   *
    * 
    * The list of requested Recognizers.
    * 
@@ -65,6 +87,8 @@ public java.util.List getRecognizersList( return recognizers_; } /** + * + * *
    * The list of requested Recognizers.
    * 
@@ -72,11 +96,13 @@ public java.util.List getRecognizersList( * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRecognizersOrBuilderList() { return recognizers_; } /** + * + * *
    * The list of requested Recognizers.
    * 
@@ -88,6 +114,8 @@ public int getRecognizersCount() { return recognizers_.size(); } /** + * + * *
    * The list of requested Recognizers.
    * 
@@ -99,6 +127,8 @@ public com.google.cloud.speech.v2.Recognizer getRecognizers(int index) { return recognizers_.get(index); } /** + * + * *
    * The list of requested Recognizers.
    * 
@@ -106,15 +136,17 @@ public com.google.cloud.speech.v2.Recognizer getRecognizers(int index) { * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ @java.lang.Override - public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder( - int index) { + public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(int index) { return recognizers_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -123,6 +155,7 @@ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -131,14 +164,15 @@ 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][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -147,16 +181,15 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -165,6 +198,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +210,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 < recognizers_.size(); i++) { output.writeMessage(1, recognizers_.get(i)); } @@ -194,8 +227,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < recognizers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, recognizers_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, recognizers_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -208,17 +240,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.v2.ListRecognizersResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListRecognizersResponse other = (com.google.cloud.speech.v2.ListRecognizersResponse) obj; + com.google.cloud.speech.v2.ListRecognizersResponse other = + (com.google.cloud.speech.v2.ListRecognizersResponse) obj; - if (!getRecognizersList() - .equals(other.getRecognizersList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getRecognizersList().equals(other.getRecognizersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -242,96 +273,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListRecognizersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListRecognizersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse 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; } /** + * + * *
    * Response message for the
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.
@@ -339,33 +377,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.ListRecognizersResponse}
    */
-  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.v2.ListRecognizersResponse)
       com.google.cloud.speech.v2.ListRecognizersResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListRecognizersResponse.class, com.google.cloud.speech.v2.ListRecognizersResponse.Builder.class);
+              com.google.cloud.speech.v2.ListRecognizersResponse.class,
+              com.google.cloud.speech.v2.ListRecognizersResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListRecognizersResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -382,9 +419,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
     }
 
     @java.lang.Override
@@ -403,14 +440,18 @@ public com.google.cloud.speech.v2.ListRecognizersResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListRecognizersResponse buildPartial() {
-      com.google.cloud.speech.v2.ListRecognizersResponse result = new com.google.cloud.speech.v2.ListRecognizersResponse(this);
+      com.google.cloud.speech.v2.ListRecognizersResponse result =
+          new com.google.cloud.speech.v2.ListRecognizersResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.ListRecognizersResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v2.ListRecognizersResponse result) {
       if (recognizersBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           recognizers_ = java.util.Collections.unmodifiableList(recognizers_);
@@ -433,38 +474,39 @@ private void buildPartial0(com.google.cloud.speech.v2.ListRecognizersResponse re
     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.v2.ListRecognizersResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.ListRecognizersResponse)other);
+        return mergeFrom((com.google.cloud.speech.v2.ListRecognizersResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -472,7 +514,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListRecognizersResponse other) {
-      if (other == com.google.cloud.speech.v2.ListRecognizersResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.ListRecognizersResponse.getDefaultInstance())
+        return this;
       if (recognizersBuilder_ == null) {
         if (!other.recognizers_.isEmpty()) {
           if (recognizers_.isEmpty()) {
@@ -491,9 +534,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.ListRecognizersResponse othe
             recognizersBuilder_ = null;
             recognizers_ = other.recognizers_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            recognizersBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getRecognizersFieldBuilder() : null;
+            recognizersBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getRecognizersFieldBuilder()
+                    : null;
           } else {
             recognizersBuilder_.addAllMessages(other.recognizers_);
           }
@@ -530,30 +574,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.speech.v2.Recognizer m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.Recognizer.parser(),
-                      extensionRegistry);
-              if (recognizersBuilder_ == null) {
-                ensureRecognizersIsMutable();
-                recognizers_.add(m);
-              } else {
-                recognizersBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              nextPageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.speech.v2.Recognizer m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.Recognizer.parser(), extensionRegistry);
+                if (recognizersBuilder_ == null) {
+                  ensureRecognizersIsMutable();
+                  recognizers_.add(m);
+                } else {
+                  recognizersBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                nextPageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -563,21 +609,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List recognizers_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureRecognizersIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         recognizers_ = new java.util.ArrayList(recognizers_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> recognizersBuilder_;
+            com.google.cloud.speech.v2.Recognizer,
+            com.google.cloud.speech.v2.Recognizer.Builder,
+            com.google.cloud.speech.v2.RecognizerOrBuilder>
+        recognizersBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of requested Recognizers.
      * 
@@ -592,6 +645,8 @@ public java.util.List getRecognizersList( } } /** + * + * *
      * The list of requested Recognizers.
      * 
@@ -606,6 +661,8 @@ public int getRecognizersCount() { } } /** + * + * *
      * The list of requested Recognizers.
      * 
@@ -620,14 +677,15 @@ public com.google.cloud.speech.v2.Recognizer getRecognizers(int index) { } } /** + * + * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public Builder setRecognizers( - int index, com.google.cloud.speech.v2.Recognizer value) { + public Builder setRecognizers(int index, com.google.cloud.speech.v2.Recognizer value) { if (recognizersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,6 +699,8 @@ public Builder setRecognizers( return this; } /** + * + * *
      * The list of requested Recognizers.
      * 
@@ -659,6 +719,8 @@ public Builder setRecognizers( return this; } /** + * + * *
      * The list of requested Recognizers.
      * 
@@ -679,14 +741,15 @@ public Builder addRecognizers(com.google.cloud.speech.v2.Recognizer value) { return this; } /** + * + * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public Builder addRecognizers( - int index, com.google.cloud.speech.v2.Recognizer value) { + public Builder addRecognizers(int index, com.google.cloud.speech.v2.Recognizer value) { if (recognizersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -700,14 +763,15 @@ public Builder addRecognizers( return this; } /** + * + * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public Builder addRecognizers( - com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { + public Builder addRecognizers(com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { if (recognizersBuilder_ == null) { ensureRecognizersIsMutable(); recognizers_.add(builderForValue.build()); @@ -718,6 +782,8 @@ public Builder addRecognizers( return this; } /** + * + * *
      * The list of requested Recognizers.
      * 
@@ -736,6 +802,8 @@ public Builder addRecognizers( return this; } /** + * + * *
      * The list of requested Recognizers.
      * 
@@ -746,8 +814,7 @@ public Builder addAllRecognizers( java.lang.Iterable values) { if (recognizersBuilder_ == null) { ensureRecognizersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, recognizers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recognizers_); onChanged(); } else { recognizersBuilder_.addAllMessages(values); @@ -755,6 +822,8 @@ public Builder addAllRecognizers( return this; } /** + * + * *
      * The list of requested Recognizers.
      * 
@@ -772,6 +841,8 @@ public Builder clearRecognizers() { return this; } /** + * + * *
      * The list of requested Recognizers.
      * 
@@ -789,39 +860,44 @@ public Builder removeRecognizers(int index) { return this; } /** + * + * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public com.google.cloud.speech.v2.Recognizer.Builder getRecognizersBuilder( - int index) { + public com.google.cloud.speech.v2.Recognizer.Builder getRecognizersBuilder(int index) { return getRecognizersFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder( - int index) { + public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(int index) { if (recognizersBuilder_ == null) { - return recognizers_.get(index); } else { + return recognizers_.get(index); + } else { return recognizersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public java.util.List - getRecognizersOrBuilderList() { + public java.util.List + getRecognizersOrBuilderList() { if (recognizersBuilder_ != null) { return recognizersBuilder_.getMessageOrBuilderList(); } else { @@ -829,6 +905,8 @@ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder( } } /** + * + * *
      * The list of requested Recognizers.
      * 
@@ -836,42 +914,48 @@ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder( * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ public com.google.cloud.speech.v2.Recognizer.Builder addRecognizersBuilder() { - return getRecognizersFieldBuilder().addBuilder( - com.google.cloud.speech.v2.Recognizer.getDefaultInstance()); + return getRecognizersFieldBuilder() + .addBuilder(com.google.cloud.speech.v2.Recognizer.getDefaultInstance()); } /** + * + * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public com.google.cloud.speech.v2.Recognizer.Builder addRecognizersBuilder( - int index) { - return getRecognizersFieldBuilder().addBuilder( - index, com.google.cloud.speech.v2.Recognizer.getDefaultInstance()); + public com.google.cloud.speech.v2.Recognizer.Builder addRecognizersBuilder(int index) { + return getRecognizersFieldBuilder() + .addBuilder(index, com.google.cloud.speech.v2.Recognizer.getDefaultInstance()); } /** + * + * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public java.util.List - getRecognizersBuilderList() { + public java.util.List + getRecognizersBuilderList() { return getRecognizersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> + com.google.cloud.speech.v2.Recognizer, + com.google.cloud.speech.v2.Recognizer.Builder, + com.google.cloud.speech.v2.RecognizerOrBuilder> getRecognizersFieldBuilder() { if (recognizersBuilder_ == null) { - recognizersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder>( - recognizers_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + recognizersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.Recognizer, + com.google.cloud.speech.v2.Recognizer.Builder, + com.google.cloud.speech.v2.RecognizerOrBuilder>( + recognizers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); recognizers_ = null; } return recognizersBuilder_; @@ -879,6 +963,8 @@ public com.google.cloud.speech.v2.Recognizer.Builder addRecognizersBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -887,13 +973,13 @@ public com.google.cloud.speech.v2.Recognizer.Builder addRecognizersBuilder(
      * 
* * 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; @@ -902,6 +988,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -910,15 +998,14 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -926,6 +1013,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -934,18 +1023,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -954,6 +1047,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -963,6 +1057,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -971,21 +1067,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -995,12 +1093,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListRecognizersResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListRecognizersResponse) private static final com.google.cloud.speech.v2.ListRecognizersResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListRecognizersResponse(); } @@ -1009,27 +1107,27 @@ public static com.google.cloud.speech.v2.ListRecognizersResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRecognizersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRecognizersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1044,6 +1142,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ListRecognizersResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java index d50723b13868..a1760558e343 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListRecognizersResponseOrBuilder extends +public interface ListRecognizersResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListRecognizersResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of requested Recognizers.
    * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - java.util.List - getRecognizersList(); + java.util.List getRecognizersList(); /** + * + * *
    * The list of requested Recognizers.
    * 
@@ -25,6 +44,8 @@ public interface ListRecognizersResponseOrBuilder extends */ com.google.cloud.speech.v2.Recognizer getRecognizers(int index); /** + * + * *
    * The list of requested Recognizers.
    * 
@@ -33,25 +54,30 @@ public interface ListRecognizersResponseOrBuilder extends */ int getRecognizersCount(); /** + * + * *
    * The list of requested Recognizers.
    * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - java.util.List + java.util.List getRecognizersOrBuilderList(); /** + * + * *
    * The list of requested Recognizers.
    * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder( - int index); + com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(int index); /** + * + * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -60,10 +86,13 @@ com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -72,8 +101,8 @@ com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(
    * 
* * 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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java similarity index 100% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java similarity index 72% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java index 423fd08b48cf..e6b4a2d3a67f 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Represents the metadata of a long-running operation.
  * 
* * Protobuf type {@code google.cloud.speech.v2.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { resource_ = ""; method_ = ""; @@ -28,33 +46,36 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.OperationMetadata.class, com.google.cloud.speech.v2.OperationMetadata.Builder.class); + com.google.cloud.speech.v2.OperationMetadata.class, + com.google.cloud.speech.v2.OperationMetadata.Builder.class); } private int requestCase_ = 0; private java.lang.Object request_; + public enum RequestCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BATCH_RECOGNIZE_REQUEST(8), CREATE_RECOGNIZER_REQUEST(9), @@ -72,6 +93,7 @@ public enum RequestCase UPDATE_CONFIG_REQUEST(21), REQUEST_NOT_SET(0); private final int value; + private RequestCase(int value) { this.value = value; } @@ -87,43 +109,61 @@ public static RequestCase valueOf(int value) { public static RequestCase forNumber(int value) { switch (value) { - case 8: return BATCH_RECOGNIZE_REQUEST; - case 9: return CREATE_RECOGNIZER_REQUEST; - case 10: return UPDATE_RECOGNIZER_REQUEST; - case 11: return DELETE_RECOGNIZER_REQUEST; - case 12: return UNDELETE_RECOGNIZER_REQUEST; - case 13: return CREATE_CUSTOM_CLASS_REQUEST; - case 14: return UPDATE_CUSTOM_CLASS_REQUEST; - case 15: return DELETE_CUSTOM_CLASS_REQUEST; - case 16: return UNDELETE_CUSTOM_CLASS_REQUEST; - case 17: return CREATE_PHRASE_SET_REQUEST; - case 18: return UPDATE_PHRASE_SET_REQUEST; - case 19: return DELETE_PHRASE_SET_REQUEST; - case 20: return UNDELETE_PHRASE_SET_REQUEST; - case 21: return UPDATE_CONFIG_REQUEST; - case 0: return REQUEST_NOT_SET; - default: return null; + case 8: + return BATCH_RECOGNIZE_REQUEST; + case 9: + return CREATE_RECOGNIZER_REQUEST; + case 10: + return UPDATE_RECOGNIZER_REQUEST; + case 11: + return DELETE_RECOGNIZER_REQUEST; + case 12: + return UNDELETE_RECOGNIZER_REQUEST; + case 13: + return CREATE_CUSTOM_CLASS_REQUEST; + case 14: + return UPDATE_CUSTOM_CLASS_REQUEST; + case 15: + return DELETE_CUSTOM_CLASS_REQUEST; + case 16: + return UNDELETE_CUSTOM_CLASS_REQUEST; + case 17: + return CREATE_PHRASE_SET_REQUEST; + case 18: + return UPDATE_PHRASE_SET_REQUEST; + case 19: + return DELETE_PHRASE_SET_REQUEST; + case 20: + return UNDELETE_PHRASE_SET_REQUEST; + case 21: + return UPDATE_CONFIG_REQUEST; + case 0: + return REQUEST_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public RequestCase - getRequestCase() { - return RequestCase.forNumber( - requestCase_); + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); } private int metadataCase_ = 0; private java.lang.Object metadata_; + public enum MetadataCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BATCH_RECOGNIZE_METADATA(23), METADATA_NOT_SET(0); private final int value; + private MetadataCase(int value) { this.value = value; } @@ -139,30 +179,35 @@ public static MetadataCase valueOf(int value) { public static MetadataCase forNumber(int value) { switch (value) { - case 23: return BATCH_RECOGNIZE_METADATA; - case 0: return METADATA_NOT_SET; - default: return null; + case 23: + return BATCH_RECOGNIZE_METADATA; + case 0: + return METADATA_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public MetadataCase - getMetadataCase() { - return MetadataCase.forNumber( - metadataCase_); + public MetadataCase getMetadataCase() { + return MetadataCase.forNumber(metadataCase_); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -170,11 +215,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ @java.lang.Override @@ -182,6 +230,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time the operation was created.
    * 
@@ -196,11 +246,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The time the operation was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 2; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -208,11 +261,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * The time the operation was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 2; + * * @return The updateTime. */ @java.lang.Override @@ -220,6 +276,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The time the operation was last updated.
    * 
@@ -232,14 +290,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int RESOURCE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object resource_ = ""; /** + * + * *
    * The resource path for the target of the operation.
    * 
* * string resource = 3; + * * @return The resource. */ @java.lang.Override @@ -248,29 +310,29 @@ public java.lang.String getResource() { 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(); resource_ = s; return s; } } /** + * + * *
    * The resource path for the target of the operation.
    * 
* * string resource = 3; + * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; 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); resource_ = b; return b; } else { @@ -279,14 +341,18 @@ public java.lang.String getResource() { } public static final int METHOD_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object method_ = ""; /** + * + * *
    * The method that triggered the operation.
    * 
* * string method = 4; + * * @return The method. */ @java.lang.Override @@ -295,29 +361,29 @@ public java.lang.String getMethod() { 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(); method_ = s; return s; } } /** + * + * *
    * The method that triggered the operation.
    * 
* * string method = 4; + * * @return The bytes for method. */ @java.lang.Override - public com.google.protobuf.ByteString - getMethodBytes() { + public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; 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); method_ = b; return b; } else { @@ -326,9 +392,12 @@ public java.lang.String getMethod() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** + * + * *
    * The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -337,6 +406,7 @@ public java.lang.String getMethod() {
    * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } + * * @return The kmsKeyName. */ @java.lang.Override @@ -345,14 +415,15 @@ public java.lang.String getKmsKeyName() { 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(); kmsKeyName_ = s; return s; } } /** + * + * *
    * The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -361,16 +432,15 @@ public java.lang.String getKmsKeyName() {
    * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -379,9 +449,12 @@ public java.lang.String getKmsKeyName() { } public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyVersionName_ = ""; /** + * + * *
    * The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -390,6 +463,7 @@ public java.lang.String getKmsKeyName() {
    * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } + * * @return The kmsKeyVersionName. */ @java.lang.Override @@ -398,14 +472,15 @@ public java.lang.String getKmsKeyVersionName() { 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(); kmsKeyVersionName_ = s; return s; } } /** + * + * *
    * The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -414,16 +489,15 @@ public java.lang.String getKmsKeyVersionName() {
    * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } + * * @return The bytes for kmsKeyVersionName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -433,11 +507,14 @@ public java.lang.String getKmsKeyVersionName() { public static final int BATCH_RECOGNIZE_REQUEST_FIELD_NUMBER = 8; /** + * + * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; + * * @return Whether the batchRecognizeRequest field is set. */ @java.lang.Override @@ -445,21 +522,26 @@ public boolean hasBatchRecognizeRequest() { return requestCase_ == 8; } /** + * + * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; + * * @return The batchRecognizeRequest. */ @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeRequest getBatchRecognizeRequest() { if (requestCase_ == 8) { - return (com.google.cloud.speech.v2.BatchRecognizeRequest) request_; + return (com.google.cloud.speech.v2.BatchRecognizeRequest) request_; } return com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance(); } /** + * + * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
@@ -467,20 +549,24 @@ public com.google.cloud.speech.v2.BatchRecognizeRequest getBatchRecognizeRequest * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder getBatchRecognizeRequestOrBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder + getBatchRecognizeRequestOrBuilder() { if (requestCase_ == 8) { - return (com.google.cloud.speech.v2.BatchRecognizeRequest) request_; + return (com.google.cloud.speech.v2.BatchRecognizeRequest) request_; } return com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance(); } public static final int CREATE_RECOGNIZER_REQUEST_FIELD_NUMBER = 9; /** + * + * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; + * * @return Whether the createRecognizerRequest field is set. */ @java.lang.Override @@ -488,21 +574,26 @@ public boolean hasCreateRecognizerRequest() { return requestCase_ == 9; } /** + * + * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; + * * @return The createRecognizerRequest. */ @java.lang.Override public com.google.cloud.speech.v2.CreateRecognizerRequest getCreateRecognizerRequest() { if (requestCase_ == 9) { - return (com.google.cloud.speech.v2.CreateRecognizerRequest) request_; + return (com.google.cloud.speech.v2.CreateRecognizerRequest) request_; } return com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance(); } /** + * + * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
@@ -510,20 +601,24 @@ public com.google.cloud.speech.v2.CreateRecognizerRequest getCreateRecognizerReq * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ @java.lang.Override - public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder getCreateRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder + getCreateRecognizerRequestOrBuilder() { if (requestCase_ == 9) { - return (com.google.cloud.speech.v2.CreateRecognizerRequest) request_; + return (com.google.cloud.speech.v2.CreateRecognizerRequest) request_; } return com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance(); } public static final int UPDATE_RECOGNIZER_REQUEST_FIELD_NUMBER = 10; /** + * + * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; + * * @return Whether the updateRecognizerRequest field is set. */ @java.lang.Override @@ -531,21 +626,26 @@ public boolean hasUpdateRecognizerRequest() { return requestCase_ == 10; } /** + * + * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; + * * @return The updateRecognizerRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UpdateRecognizerRequest getUpdateRecognizerRequest() { if (requestCase_ == 10) { - return (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_; + return (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_; } return com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance(); } /** + * + * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
@@ -553,20 +653,24 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequest getUpdateRecognizerReq * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder getUpdateRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder + getUpdateRecognizerRequestOrBuilder() { if (requestCase_ == 10) { - return (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_; + return (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_; } return com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance(); } public static final int DELETE_RECOGNIZER_REQUEST_FIELD_NUMBER = 11; /** + * + * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; + * * @return Whether the deleteRecognizerRequest field is set. */ @java.lang.Override @@ -574,21 +678,26 @@ public boolean hasDeleteRecognizerRequest() { return requestCase_ == 11; } /** + * + * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; + * * @return The deleteRecognizerRequest. */ @java.lang.Override public com.google.cloud.speech.v2.DeleteRecognizerRequest getDeleteRecognizerRequest() { if (requestCase_ == 11) { - return (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_; + return (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_; } return com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance(); } /** + * + * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
@@ -596,20 +705,25 @@ public com.google.cloud.speech.v2.DeleteRecognizerRequest getDeleteRecognizerReq * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ @java.lang.Override - public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder getDeleteRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder + getDeleteRecognizerRequestOrBuilder() { if (requestCase_ == 11) { - return (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_; + return (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_; } return com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance(); } public static final int UNDELETE_RECOGNIZER_REQUEST_FIELD_NUMBER = 12; /** + * + * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * + * * @return Whether the undeleteRecognizerRequest field is set. */ @java.lang.Override @@ -617,42 +731,53 @@ public boolean hasUndeleteRecognizerRequest() { return requestCase_ == 12; } /** + * + * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * + * * @return The undeleteRecognizerRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UndeleteRecognizerRequest getUndeleteRecognizerRequest() { if (requestCase_ == 12) { - return (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_; + return (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_; } return com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance(); } /** + * + * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * */ @java.lang.Override - public com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder getUndeleteRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder + getUndeleteRecognizerRequestOrBuilder() { if (requestCase_ == 12) { - return (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_; + return (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_; } return com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance(); } public static final int CREATE_CUSTOM_CLASS_REQUEST_FIELD_NUMBER = 13; /** + * + * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * * @return Whether the createCustomClassRequest field is set. */ @java.lang.Override @@ -660,21 +785,26 @@ public boolean hasCreateCustomClassRequest() { return requestCase_ == 13; } /** + * + * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * * @return The createCustomClassRequest. */ @java.lang.Override public com.google.cloud.speech.v2.CreateCustomClassRequest getCreateCustomClassRequest() { if (requestCase_ == 13) { - return (com.google.cloud.speech.v2.CreateCustomClassRequest) request_; + return (com.google.cloud.speech.v2.CreateCustomClassRequest) request_; } return com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance(); } /** + * + * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
@@ -682,20 +812,24 @@ public com.google.cloud.speech.v2.CreateCustomClassRequest getCreateCustomClassR * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ @java.lang.Override - public com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder getCreateCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder + getCreateCustomClassRequestOrBuilder() { if (requestCase_ == 13) { - return (com.google.cloud.speech.v2.CreateCustomClassRequest) request_; + return (com.google.cloud.speech.v2.CreateCustomClassRequest) request_; } return com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance(); } public static final int UPDATE_CUSTOM_CLASS_REQUEST_FIELD_NUMBER = 14; /** + * + * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * * @return Whether the updateCustomClassRequest field is set. */ @java.lang.Override @@ -703,21 +837,26 @@ public boolean hasUpdateCustomClassRequest() { return requestCase_ == 14; } /** + * + * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * * @return The updateCustomClassRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UpdateCustomClassRequest getUpdateCustomClassRequest() { if (requestCase_ == 14) { - return (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_; + return (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_; } return com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance(); } /** + * + * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
@@ -725,20 +864,24 @@ public com.google.cloud.speech.v2.UpdateCustomClassRequest getUpdateCustomClassR * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder getUpdateCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder + getUpdateCustomClassRequestOrBuilder() { if (requestCase_ == 14) { - return (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_; + return (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_; } return com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance(); } public static final int DELETE_CUSTOM_CLASS_REQUEST_FIELD_NUMBER = 15; /** + * + * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * * @return Whether the deleteCustomClassRequest field is set. */ @java.lang.Override @@ -746,21 +889,26 @@ public boolean hasDeleteCustomClassRequest() { return requestCase_ == 15; } /** + * + * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * * @return The deleteCustomClassRequest. */ @java.lang.Override public com.google.cloud.speech.v2.DeleteCustomClassRequest getDeleteCustomClassRequest() { if (requestCase_ == 15) { - return (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_; + return (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_; } return com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance(); } /** + * + * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
@@ -768,20 +916,25 @@ public com.google.cloud.speech.v2.DeleteCustomClassRequest getDeleteCustomClassR * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ @java.lang.Override - public com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder getDeleteCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder + getDeleteCustomClassRequestOrBuilder() { if (requestCase_ == 15) { - return (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_; + return (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_; } return com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance(); } public static final int UNDELETE_CUSTOM_CLASS_REQUEST_FIELD_NUMBER = 16; /** + * + * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * + * * @return Whether the undeleteCustomClassRequest field is set. */ @java.lang.Override @@ -789,42 +942,53 @@ public boolean hasUndeleteCustomClassRequest() { return requestCase_ == 16; } /** + * + * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * + * * @return The undeleteCustomClassRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UndeleteCustomClassRequest getUndeleteCustomClassRequest() { if (requestCase_ == 16) { - return (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_; + return (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_; } return com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance(); } /** + * + * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * */ @java.lang.Override - public com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder getUndeleteCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder + getUndeleteCustomClassRequestOrBuilder() { if (requestCase_ == 16) { - return (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_; + return (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_; } return com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance(); } public static final int CREATE_PHRASE_SET_REQUEST_FIELD_NUMBER = 17; /** + * + * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; + * * @return Whether the createPhraseSetRequest field is set. */ @java.lang.Override @@ -832,21 +996,26 @@ public boolean hasCreatePhraseSetRequest() { return requestCase_ == 17; } /** + * + * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; + * * @return The createPhraseSetRequest. */ @java.lang.Override public com.google.cloud.speech.v2.CreatePhraseSetRequest getCreatePhraseSetRequest() { if (requestCase_ == 17) { - return (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_; } return com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance(); } /** + * + * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
@@ -854,20 +1023,24 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequest getCreatePhraseSetReque * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ @java.lang.Override - public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder getCreatePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder + getCreatePhraseSetRequestOrBuilder() { if (requestCase_ == 17) { - return (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_; } return com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance(); } public static final int UPDATE_PHRASE_SET_REQUEST_FIELD_NUMBER = 18; /** + * + * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; + * * @return Whether the updatePhraseSetRequest field is set. */ @java.lang.Override @@ -875,21 +1048,26 @@ public boolean hasUpdatePhraseSetRequest() { return requestCase_ == 18; } /** + * + * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; + * * @return The updatePhraseSetRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UpdatePhraseSetRequest getUpdatePhraseSetRequest() { if (requestCase_ == 18) { - return (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_; } return com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance(); } /** + * + * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
@@ -897,20 +1075,24 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequest getUpdatePhraseSetReque * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder getUpdatePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder + getUpdatePhraseSetRequestOrBuilder() { if (requestCase_ == 18) { - return (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_; } return com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance(); } public static final int DELETE_PHRASE_SET_REQUEST_FIELD_NUMBER = 19; /** + * + * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; + * * @return Whether the deletePhraseSetRequest field is set. */ @java.lang.Override @@ -918,21 +1100,26 @@ public boolean hasDeletePhraseSetRequest() { return requestCase_ == 19; } /** + * + * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; + * * @return The deletePhraseSetRequest. */ @java.lang.Override public com.google.cloud.speech.v2.DeletePhraseSetRequest getDeletePhraseSetRequest() { if (requestCase_ == 19) { - return (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_; } return com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance(); } /** + * + * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
@@ -940,20 +1127,24 @@ public com.google.cloud.speech.v2.DeletePhraseSetRequest getDeletePhraseSetReque * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ @java.lang.Override - public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder getDeletePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder + getDeletePhraseSetRequestOrBuilder() { if (requestCase_ == 19) { - return (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_; } return com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance(); } public static final int UNDELETE_PHRASE_SET_REQUEST_FIELD_NUMBER = 20; /** + * + * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * * @return Whether the undeletePhraseSetRequest field is set. */ @java.lang.Override @@ -961,21 +1152,26 @@ public boolean hasUndeletePhraseSetRequest() { return requestCase_ == 20; } /** + * + * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * * @return The undeletePhraseSetRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UndeletePhraseSetRequest getUndeletePhraseSetRequest() { if (requestCase_ == 20) { - return (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_; } return com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance(); } /** + * + * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
@@ -983,20 +1179,24 @@ public com.google.cloud.speech.v2.UndeletePhraseSetRequest getUndeletePhraseSetR * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ @java.lang.Override - public com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder getUndeletePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder + getUndeletePhraseSetRequestOrBuilder() { if (requestCase_ == 20) { - return (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_; } return com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance(); } public static final int UPDATE_CONFIG_REQUEST_FIELD_NUMBER = 21; /** + * + * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; + * * @return Whether the updateConfigRequest field is set. */ @java.lang.Override @@ -1004,21 +1204,26 @@ public boolean hasUpdateConfigRequest() { return requestCase_ == 21; } /** + * + * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; + * * @return The updateConfigRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UpdateConfigRequest getUpdateConfigRequest() { if (requestCase_ == 21) { - return (com.google.cloud.speech.v2.UpdateConfigRequest) request_; + return (com.google.cloud.speech.v2.UpdateConfigRequest) request_; } return com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance(); } /** + * + * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
@@ -1028,7 +1233,7 @@ public com.google.cloud.speech.v2.UpdateConfigRequest getUpdateConfigRequest() { @java.lang.Override public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRequestOrBuilder() { if (requestCase_ == 21) { - return (com.google.cloud.speech.v2.UpdateConfigRequest) request_; + return (com.google.cloud.speech.v2.UpdateConfigRequest) request_; } return com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance(); } @@ -1036,12 +1241,15 @@ public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRe public static final int PROGRESS_PERCENT_FIELD_NUMBER = 22; private int progressPercent_ = 0; /** + * + * *
    * The percent progress of the Operation. Values can range from 0-100. If the
    * value is 100, then the operation is finished.
    * 
* * int32 progress_percent = 22; + * * @return The progressPercent. */ @java.lang.Override @@ -1051,11 +1259,14 @@ public int getProgressPercent() { public static final int BATCH_RECOGNIZE_METADATA_FIELD_NUMBER = 23; /** + * + * *
    * Metadata specific to the BatchRecognize method.
    * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; + * * @return Whether the batchRecognizeMetadata field is set. */ @java.lang.Override @@ -1063,21 +1274,26 @@ public boolean hasBatchRecognizeMetadata() { return metadataCase_ == 23; } /** + * + * *
    * Metadata specific to the BatchRecognize method.
    * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; + * * @return The batchRecognizeMetadata. */ @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeMetadata getBatchRecognizeMetadata() { if (metadataCase_ == 23) { - return (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_; + return (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_; } return com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata specific to the BatchRecognize method.
    * 
@@ -1085,14 +1301,16 @@ public com.google.cloud.speech.v2.BatchRecognizeMetadata getBatchRecognizeMetada * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder getBatchRecognizeMetadataOrBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder + getBatchRecognizeMetadataOrBuilder() { if (metadataCase_ == 23) { - return (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_; + return (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_; } return com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1104,8 +1322,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -1182,12 +1399,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resource_); @@ -1202,68 +1417,82 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, kmsKeyVersionName_); } if (requestCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.cloud.speech.v2.BatchRecognizeRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.speech.v2.BatchRecognizeRequest) request_); } if (requestCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.cloud.speech.v2.CreateRecognizerRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.speech.v2.CreateRecognizerRequest) request_); } if (requestCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_); } if (requestCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_); } if (requestCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_); } if (requestCase_ == 13) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, (com.google.cloud.speech.v2.CreateCustomClassRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.speech.v2.CreateCustomClassRequest) request_); } if (requestCase_ == 14) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_); } if (requestCase_ == 15) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_); } if (requestCase_ == 16) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_); } if (requestCase_ == 17) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 17, (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_); } if (requestCase_ == 18) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_); } if (requestCase_ == 19) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 19, (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_); } if (requestCase_ == 20) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 20, (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_); } if (requestCase_ == 21) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, (com.google.cloud.speech.v2.UpdateConfigRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, (com.google.cloud.speech.v2.UpdateConfigRequest) request_); } if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(22, progressPercent_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(22, progressPercent_); } if (metadataCase_ == 23) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 23, (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1273,90 +1502,76 @@ 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.v2.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v2.OperationMetadata other = (com.google.cloud.speech.v2.OperationMetadata) obj; + com.google.cloud.speech.v2.OperationMetadata other = + (com.google.cloud.speech.v2.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!getResource() - .equals(other.getResource())) return false; - if (!getMethod() - .equals(other.getMethod())) return false; - if (!getKmsKeyName() - .equals(other.getKmsKeyName())) return false; - if (!getKmsKeyVersionName() - .equals(other.getKmsKeyVersionName())) return false; - if (getProgressPercent() - != other.getProgressPercent()) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getResource().equals(other.getResource())) return false; + if (!getMethod().equals(other.getMethod())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; + if (getProgressPercent() != other.getProgressPercent()) return false; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 8: - if (!getBatchRecognizeRequest() - .equals(other.getBatchRecognizeRequest())) return false; + if (!getBatchRecognizeRequest().equals(other.getBatchRecognizeRequest())) return false; break; case 9: - if (!getCreateRecognizerRequest() - .equals(other.getCreateRecognizerRequest())) return false; + if (!getCreateRecognizerRequest().equals(other.getCreateRecognizerRequest())) return false; break; case 10: - if (!getUpdateRecognizerRequest() - .equals(other.getUpdateRecognizerRequest())) return false; + if (!getUpdateRecognizerRequest().equals(other.getUpdateRecognizerRequest())) return false; break; case 11: - if (!getDeleteRecognizerRequest() - .equals(other.getDeleteRecognizerRequest())) return false; + if (!getDeleteRecognizerRequest().equals(other.getDeleteRecognizerRequest())) return false; break; case 12: - if (!getUndeleteRecognizerRequest() - .equals(other.getUndeleteRecognizerRequest())) return false; + if (!getUndeleteRecognizerRequest().equals(other.getUndeleteRecognizerRequest())) + return false; break; case 13: - if (!getCreateCustomClassRequest() - .equals(other.getCreateCustomClassRequest())) return false; + if (!getCreateCustomClassRequest().equals(other.getCreateCustomClassRequest())) + return false; break; case 14: - if (!getUpdateCustomClassRequest() - .equals(other.getUpdateCustomClassRequest())) return false; + if (!getUpdateCustomClassRequest().equals(other.getUpdateCustomClassRequest())) + return false; break; case 15: - if (!getDeleteCustomClassRequest() - .equals(other.getDeleteCustomClassRequest())) return false; + if (!getDeleteCustomClassRequest().equals(other.getDeleteCustomClassRequest())) + return false; break; case 16: - if (!getUndeleteCustomClassRequest() - .equals(other.getUndeleteCustomClassRequest())) return false; + if (!getUndeleteCustomClassRequest().equals(other.getUndeleteCustomClassRequest())) + return false; break; case 17: - if (!getCreatePhraseSetRequest() - .equals(other.getCreatePhraseSetRequest())) return false; + if (!getCreatePhraseSetRequest().equals(other.getCreatePhraseSetRequest())) return false; break; case 18: - if (!getUpdatePhraseSetRequest() - .equals(other.getUpdatePhraseSetRequest())) return false; + if (!getUpdatePhraseSetRequest().equals(other.getUpdatePhraseSetRequest())) return false; break; case 19: - if (!getDeletePhraseSetRequest() - .equals(other.getDeletePhraseSetRequest())) return false; + if (!getDeletePhraseSetRequest().equals(other.getDeletePhraseSetRequest())) return false; break; case 20: - if (!getUndeletePhraseSetRequest() - .equals(other.getUndeletePhraseSetRequest())) return false; + if (!getUndeletePhraseSetRequest().equals(other.getUndeletePhraseSetRequest())) + return false; break; case 21: - if (!getUpdateConfigRequest() - .equals(other.getUpdateConfigRequest())) return false; + if (!getUpdateConfigRequest().equals(other.getUpdateConfigRequest())) return false; break; case 0: default: @@ -1364,8 +1579,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMetadataCase().equals(other.getMetadataCase())) return false; switch (metadataCase_) { case 23: - if (!getBatchRecognizeMetadata() - .equals(other.getBatchRecognizeMetadata())) return false; + if (!getBatchRecognizeMetadata().equals(other.getBatchRecognizeMetadata())) return false; break; case 0: default: @@ -1472,130 +1686,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.OperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.OperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.OperationMetadata 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.v2.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.OperationMetadata 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.v2.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.OperationMetadata 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.v2.OperationMetadata 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.v2.OperationMetadata 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.v2.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.OperationMetadata 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.v2.OperationMetadata 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.v2.OperationMetadata 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.v2.OperationMetadata 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; } /** + * + * *
    * Represents the metadata of a long-running operation.
    * 
* * Protobuf type {@code google.cloud.speech.v2.OperationMetadata} */ - 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.v2.OperationMetadata) com.google.cloud.speech.v2.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.OperationMetadata.class, com.google.cloud.speech.v2.OperationMetadata.Builder.class); + com.google.cloud.speech.v2.OperationMetadata.class, + com.google.cloud.speech.v2.OperationMetadata.Builder.class); } // Construct using com.google.cloud.speech.v2.OperationMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1668,9 +1888,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; } @java.lang.Override @@ -1689,8 +1909,11 @@ public com.google.cloud.speech.v2.OperationMetadata build() { @java.lang.Override public com.google.cloud.speech.v2.OperationMetadata buildPartial() { - com.google.cloud.speech.v2.OperationMetadata result = new com.google.cloud.speech.v2.OperationMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v2.OperationMetadata result = + new com.google.cloud.speech.v2.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -1699,14 +1922,10 @@ public com.google.cloud.speech.v2.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.speech.v2.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.resource_ = resource_; @@ -1728,66 +1947,51 @@ private void buildPartial0(com.google.cloud.speech.v2.OperationMetadata result) private void buildPartialOneofs(com.google.cloud.speech.v2.OperationMetadata result) { result.requestCase_ = requestCase_; result.request_ = this.request_; - if (requestCase_ == 8 && - batchRecognizeRequestBuilder_ != null) { + if (requestCase_ == 8 && batchRecognizeRequestBuilder_ != null) { result.request_ = batchRecognizeRequestBuilder_.build(); } - if (requestCase_ == 9 && - createRecognizerRequestBuilder_ != null) { + if (requestCase_ == 9 && createRecognizerRequestBuilder_ != null) { result.request_ = createRecognizerRequestBuilder_.build(); } - if (requestCase_ == 10 && - updateRecognizerRequestBuilder_ != null) { + if (requestCase_ == 10 && updateRecognizerRequestBuilder_ != null) { result.request_ = updateRecognizerRequestBuilder_.build(); } - if (requestCase_ == 11 && - deleteRecognizerRequestBuilder_ != null) { + if (requestCase_ == 11 && deleteRecognizerRequestBuilder_ != null) { result.request_ = deleteRecognizerRequestBuilder_.build(); } - if (requestCase_ == 12 && - undeleteRecognizerRequestBuilder_ != null) { + if (requestCase_ == 12 && undeleteRecognizerRequestBuilder_ != null) { result.request_ = undeleteRecognizerRequestBuilder_.build(); } - if (requestCase_ == 13 && - createCustomClassRequestBuilder_ != null) { + if (requestCase_ == 13 && createCustomClassRequestBuilder_ != null) { result.request_ = createCustomClassRequestBuilder_.build(); } - if (requestCase_ == 14 && - updateCustomClassRequestBuilder_ != null) { + if (requestCase_ == 14 && updateCustomClassRequestBuilder_ != null) { result.request_ = updateCustomClassRequestBuilder_.build(); } - if (requestCase_ == 15 && - deleteCustomClassRequestBuilder_ != null) { + if (requestCase_ == 15 && deleteCustomClassRequestBuilder_ != null) { result.request_ = deleteCustomClassRequestBuilder_.build(); } - if (requestCase_ == 16 && - undeleteCustomClassRequestBuilder_ != null) { + if (requestCase_ == 16 && undeleteCustomClassRequestBuilder_ != null) { result.request_ = undeleteCustomClassRequestBuilder_.build(); } - if (requestCase_ == 17 && - createPhraseSetRequestBuilder_ != null) { + if (requestCase_ == 17 && createPhraseSetRequestBuilder_ != null) { result.request_ = createPhraseSetRequestBuilder_.build(); } - if (requestCase_ == 18 && - updatePhraseSetRequestBuilder_ != null) { + if (requestCase_ == 18 && updatePhraseSetRequestBuilder_ != null) { result.request_ = updatePhraseSetRequestBuilder_.build(); } - if (requestCase_ == 19 && - deletePhraseSetRequestBuilder_ != null) { + if (requestCase_ == 19 && deletePhraseSetRequestBuilder_ != null) { result.request_ = deletePhraseSetRequestBuilder_.build(); } - if (requestCase_ == 20 && - undeletePhraseSetRequestBuilder_ != null) { + if (requestCase_ == 20 && undeletePhraseSetRequestBuilder_ != null) { result.request_ = undeletePhraseSetRequestBuilder_.build(); } - if (requestCase_ == 21 && - updateConfigRequestBuilder_ != null) { + if (requestCase_ == 21 && updateConfigRequestBuilder_ != null) { result.request_ = updateConfigRequestBuilder_.build(); } result.metadataCase_ = metadataCase_; result.metadata_ = this.metadata_; - if (metadataCase_ == 23 && - batchRecognizeMetadataBuilder_ != null) { + if (metadataCase_ == 23 && batchRecognizeMetadataBuilder_ != null) { result.metadata_ = batchRecognizeMetadataBuilder_.build(); } } @@ -1796,38 +2000,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.OperationMetadata res 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.v2.OperationMetadata) { - return mergeFrom((com.google.cloud.speech.v2.OperationMetadata)other); + return mergeFrom((com.google.cloud.speech.v2.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -1866,74 +2071,91 @@ public Builder mergeFrom(com.google.cloud.speech.v2.OperationMetadata other) { setProgressPercent(other.getProgressPercent()); } switch (other.getRequestCase()) { - case BATCH_RECOGNIZE_REQUEST: { - mergeBatchRecognizeRequest(other.getBatchRecognizeRequest()); - break; - } - case CREATE_RECOGNIZER_REQUEST: { - mergeCreateRecognizerRequest(other.getCreateRecognizerRequest()); - break; - } - case UPDATE_RECOGNIZER_REQUEST: { - mergeUpdateRecognizerRequest(other.getUpdateRecognizerRequest()); - break; - } - case DELETE_RECOGNIZER_REQUEST: { - mergeDeleteRecognizerRequest(other.getDeleteRecognizerRequest()); - break; - } - case UNDELETE_RECOGNIZER_REQUEST: { - mergeUndeleteRecognizerRequest(other.getUndeleteRecognizerRequest()); - break; - } - case CREATE_CUSTOM_CLASS_REQUEST: { - mergeCreateCustomClassRequest(other.getCreateCustomClassRequest()); - break; - } - case UPDATE_CUSTOM_CLASS_REQUEST: { - mergeUpdateCustomClassRequest(other.getUpdateCustomClassRequest()); - break; - } - case DELETE_CUSTOM_CLASS_REQUEST: { - mergeDeleteCustomClassRequest(other.getDeleteCustomClassRequest()); - break; - } - case UNDELETE_CUSTOM_CLASS_REQUEST: { - mergeUndeleteCustomClassRequest(other.getUndeleteCustomClassRequest()); - break; - } - case CREATE_PHRASE_SET_REQUEST: { - mergeCreatePhraseSetRequest(other.getCreatePhraseSetRequest()); - break; - } - case UPDATE_PHRASE_SET_REQUEST: { - mergeUpdatePhraseSetRequest(other.getUpdatePhraseSetRequest()); - break; - } - case DELETE_PHRASE_SET_REQUEST: { - mergeDeletePhraseSetRequest(other.getDeletePhraseSetRequest()); - break; - } - case UNDELETE_PHRASE_SET_REQUEST: { - mergeUndeletePhraseSetRequest(other.getUndeletePhraseSetRequest()); - break; - } - case UPDATE_CONFIG_REQUEST: { - mergeUpdateConfigRequest(other.getUpdateConfigRequest()); - break; - } - case REQUEST_NOT_SET: { - break; - } + case BATCH_RECOGNIZE_REQUEST: + { + mergeBatchRecognizeRequest(other.getBatchRecognizeRequest()); + break; + } + case CREATE_RECOGNIZER_REQUEST: + { + mergeCreateRecognizerRequest(other.getCreateRecognizerRequest()); + break; + } + case UPDATE_RECOGNIZER_REQUEST: + { + mergeUpdateRecognizerRequest(other.getUpdateRecognizerRequest()); + break; + } + case DELETE_RECOGNIZER_REQUEST: + { + mergeDeleteRecognizerRequest(other.getDeleteRecognizerRequest()); + break; + } + case UNDELETE_RECOGNIZER_REQUEST: + { + mergeUndeleteRecognizerRequest(other.getUndeleteRecognizerRequest()); + break; + } + case CREATE_CUSTOM_CLASS_REQUEST: + { + mergeCreateCustomClassRequest(other.getCreateCustomClassRequest()); + break; + } + case UPDATE_CUSTOM_CLASS_REQUEST: + { + mergeUpdateCustomClassRequest(other.getUpdateCustomClassRequest()); + break; + } + case DELETE_CUSTOM_CLASS_REQUEST: + { + mergeDeleteCustomClassRequest(other.getDeleteCustomClassRequest()); + break; + } + case UNDELETE_CUSTOM_CLASS_REQUEST: + { + mergeUndeleteCustomClassRequest(other.getUndeleteCustomClassRequest()); + break; + } + case CREATE_PHRASE_SET_REQUEST: + { + mergeCreatePhraseSetRequest(other.getCreatePhraseSetRequest()); + break; + } + case UPDATE_PHRASE_SET_REQUEST: + { + mergeUpdatePhraseSetRequest(other.getUpdatePhraseSetRequest()); + break; + } + case DELETE_PHRASE_SET_REQUEST: + { + mergeDeletePhraseSetRequest(other.getDeletePhraseSetRequest()); + break; + } + case UNDELETE_PHRASE_SET_REQUEST: + { + mergeUndeletePhraseSetRequest(other.getUndeletePhraseSetRequest()); + break; + } + case UPDATE_CONFIG_REQUEST: + { + mergeUpdateConfigRequest(other.getUpdateConfigRequest()); + break; + } + case REQUEST_NOT_SET: + { + break; + } } switch (other.getMetadataCase()) { - case BATCH_RECOGNIZE_METADATA: { - mergeBatchRecognizeMetadata(other.getBatchRecognizeMetadata()); - break; - } - case METADATA_NOT_SET: { - break; - } + case BATCH_RECOGNIZE_METADATA: + { + mergeBatchRecognizeMetadata(other.getBatchRecognizeMetadata()); + break; + } + case METADATA_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1961,156 +2183,160 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - resource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - method_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: { - kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 58: { - kmsKeyVersionName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: { - input.readMessage( - getBatchRecognizeRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 8; - break; - } // case 66 - case 74: { - input.readMessage( - getCreateRecognizerRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 9; - break; - } // case 74 - case 82: { - input.readMessage( - getUpdateRecognizerRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 10; - break; - } // case 82 - case 90: { - input.readMessage( - getDeleteRecognizerRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 11; - break; - } // case 90 - case 98: { - input.readMessage( - getUndeleteRecognizerRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 12; - break; - } // case 98 - case 106: { - input.readMessage( - getCreateCustomClassRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 13; - break; - } // case 106 - case 114: { - input.readMessage( - getUpdateCustomClassRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 14; - break; - } // case 114 - case 122: { - input.readMessage( - getDeleteCustomClassRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 15; - break; - } // case 122 - case 130: { - input.readMessage( - getUndeleteCustomClassRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 16; - break; - } // case 130 - case 138: { - input.readMessage( - getCreatePhraseSetRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 17; - break; - } // case 138 - case 146: { - input.readMessage( - getUpdatePhraseSetRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 18; - break; - } // case 146 - case 154: { - input.readMessage( - getDeletePhraseSetRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 19; - break; - } // case 154 - case 162: { - input.readMessage( - getUndeletePhraseSetRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 20; - break; - } // case 162 - case 170: { - input.readMessage( - getUpdateConfigRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 21; - break; - } // case 170 - case 176: { - progressPercent_ = input.readInt32(); - bitField0_ |= 0x00100000; - break; - } // case 176 - case 186: { - input.readMessage( - getBatchRecognizeMetadataFieldBuilder().getBuilder(), - extensionRegistry); - metadataCase_ = 23; - break; - } // case 186 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + method_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: + { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + kmsKeyVersionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage( + getBatchRecognizeRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage( + getCreateRecognizerRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage( + getUpdateRecognizerRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 10; + break; + } // case 82 + case 90: + { + input.readMessage( + getDeleteRecognizerRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 11; + break; + } // case 90 + case 98: + { + input.readMessage( + getUndeleteRecognizerRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 12; + break; + } // case 98 + case 106: + { + input.readMessage( + getCreateCustomClassRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 13; + break; + } // case 106 + case 114: + { + input.readMessage( + getUpdateCustomClassRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 14; + break; + } // case 114 + case 122: + { + input.readMessage( + getDeleteCustomClassRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 15; + break; + } // case 122 + case 130: + { + input.readMessage( + getUndeleteCustomClassRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 16; + break; + } // case 130 + case 138: + { + input.readMessage( + getCreatePhraseSetRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 17; + break; + } // case 138 + case 146: + { + input.readMessage( + getUpdatePhraseSetRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 18; + break; + } // case 146 + case 154: + { + input.readMessage( + getDeletePhraseSetRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 19; + break; + } // case 154 + case 162: + { + input.readMessage( + getUndeletePhraseSetRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 20; + break; + } // case 162 + case 170: + { + input.readMessage( + getUpdateConfigRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 21; + break; + } // case 170 + case 176: + { + progressPercent_ = input.readInt32(); + bitField0_ |= 0x00100000; + break; + } // case 176 + case 186: + { + input.readMessage( + getBatchRecognizeMetadataFieldBuilder().getBuilder(), extensionRegistry); + metadataCase_ = 23; + break; + } // case 186 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2120,12 +2346,12 @@ public Builder mergeFrom( } // finally return this; } + private int requestCase_ = 0; private java.lang.Object request_; - public RequestCase - getRequestCase() { - return RequestCase.forNumber( - requestCase_); + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); } public Builder clearRequest() { @@ -2137,10 +2363,9 @@ public Builder clearRequest() { private int metadataCase_ = 0; private java.lang.Object metadata_; - public MetadataCase - getMetadataCase() { - return MetadataCase.forNumber( - metadataCase_); + + public MetadataCase getMetadataCase() { + return MetadataCase.forNumber(metadataCase_); } public Builder clearMetadata() { @@ -2154,34 +2379,47 @@ public Builder clearMetadata() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The time the operation was created.
      * 
@@ -2202,14 +2440,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2220,6 +2459,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -2228,9 +2469,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2243,6 +2484,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -2260,6 +2503,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -2272,6 +2517,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation was created.
      * 
@@ -2282,11 +2529,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time the operation was created.
      * 
@@ -2294,14 +2544,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2309,34 +2562,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * The time the operation was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 2; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The time the operation was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 2; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * The time the operation was last updated.
      * 
@@ -2357,14 +2623,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 2; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -2375,6 +2642,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * The time the operation was last updated.
      * 
@@ -2383,9 +2652,9 @@ public Builder setUpdateTime( */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -2398,6 +2667,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was last updated.
      * 
@@ -2415,6 +2686,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * The time the operation was last updated.
      * 
@@ -2427,6 +2700,8 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation was last updated.
      * 
@@ -2437,11 +2712,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * The time the operation was last updated.
      * 
@@ -2449,14 +2727,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2464,18 +2745,20 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object resource_ = ""; /** + * + * *
      * The resource path for the target of the operation.
      * 
* * string resource = 3; + * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; 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(); resource_ = s; return s; @@ -2484,20 +2767,21 @@ public java.lang.String getResource() { } } /** + * + * *
      * The resource path for the target of the operation.
      * 
* * string resource = 3; + * * @return The bytes for resource. */ - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; 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); resource_ = b; return b; } else { @@ -2505,28 +2789,35 @@ public java.lang.String getResource() { } } /** + * + * *
      * The resource path for the target of the operation.
      * 
* * string resource = 3; + * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } resource_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The resource path for the target of the operation.
      * 
* * string resource = 3; + * * @return This builder for chaining. */ public Builder clearResource() { @@ -2536,17 +2827,21 @@ public Builder clearResource() { return this; } /** + * + * *
      * The resource path for the target of the operation.
      * 
* * string resource = 3; + * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); resource_ = value; bitField0_ |= 0x00000004; @@ -2556,18 +2851,20 @@ public Builder setResourceBytes( private java.lang.Object method_ = ""; /** + * + * *
      * The method that triggered the operation.
      * 
* * string method = 4; + * * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; 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(); method_ = s; return s; @@ -2576,20 +2873,21 @@ public java.lang.String getMethod() { } } /** + * + * *
      * The method that triggered the operation.
      * 
* * string method = 4; + * * @return The bytes for method. */ - public com.google.protobuf.ByteString - getMethodBytes() { + public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; 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); method_ = b; return b; } else { @@ -2597,28 +2895,35 @@ public java.lang.String getMethod() { } } /** + * + * *
      * The method that triggered the operation.
      * 
* * string method = 4; + * * @param value The method to set. * @return This builder for chaining. */ - public Builder setMethod( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMethod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } method_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The method that triggered the operation.
      * 
* * string method = 4; + * * @return This builder for chaining. */ public Builder clearMethod() { @@ -2628,17 +2933,21 @@ public Builder clearMethod() { return this; } /** + * + * *
      * The method that triggered the operation.
      * 
* * string method = 4; + * * @param value The bytes for method to set. * @return This builder for chaining. */ - public Builder setMethodBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMethodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); method_ = value; bitField0_ |= 0x00000008; @@ -2648,6 +2957,8 @@ public Builder setMethodBytes( private java.lang.Object kmsKeyName_ = ""; /** + * + * *
      * The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -2656,13 +2967,13 @@ public Builder setMethodBytes(
      * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } + * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; 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(); kmsKeyName_ = s; return s; @@ -2671,6 +2982,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -2679,15 +2992,14 @@ public java.lang.String getKmsKeyName() {
      * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -2695,6 +3007,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -2703,18 +3017,22 @@ public java.lang.String getKmsKeyName() {
      * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } + * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -2723,6 +3041,7 @@ public Builder setKmsKeyName(
      * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -2732,6 +3051,8 @@ public Builder clearKmsKeyName() { return this; } /** + * + * *
      * The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -2740,12 +3061,14 @@ public Builder clearKmsKeyName() {
      * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00000010; @@ -2755,6 +3078,8 @@ public Builder setKmsKeyNameBytes( private java.lang.Object kmsKeyVersionName_ = ""; /** + * + * *
      * The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -2763,13 +3088,13 @@ public Builder setKmsKeyNameBytes(
      * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } + * * @return The kmsKeyVersionName. */ public java.lang.String getKmsKeyVersionName() { java.lang.Object ref = kmsKeyVersionName_; 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(); kmsKeyVersionName_ = s; return s; @@ -2778,6 +3103,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -2786,15 +3113,14 @@ public java.lang.String getKmsKeyVersionName() {
      * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } + * * @return The bytes for kmsKeyVersionName. */ - public com.google.protobuf.ByteString - getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -2802,6 +3128,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -2810,18 +3138,22 @@ public java.lang.String getKmsKeyVersionName() {
      * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } + * * @param value The kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyVersionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyVersionName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -2830,6 +3162,7 @@ public Builder setKmsKeyVersionName(
      * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { @@ -2839,6 +3172,8 @@ public Builder clearKmsKeyVersionName() { return this; } /** + * + * *
      * The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -2847,12 +3182,14 @@ public Builder clearKmsKeyVersionName() {
      * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyVersionName_ = value; bitField0_ |= 0x00000020; @@ -2861,13 +3198,19 @@ public Builder setKmsKeyVersionNameBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder> batchRecognizeRequestBuilder_; + com.google.cloud.speech.v2.BatchRecognizeRequest, + com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, + com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder> + batchRecognizeRequestBuilder_; /** + * + * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; + * * @return Whether the batchRecognizeRequest field is set. */ @java.lang.Override @@ -2875,11 +3218,14 @@ public boolean hasBatchRecognizeRequest() { return requestCase_ == 8; } /** + * + * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; + * * @return The batchRecognizeRequest. */ @java.lang.Override @@ -2897,13 +3243,16 @@ public com.google.cloud.speech.v2.BatchRecognizeRequest getBatchRecognizeRequest } } /** + * + * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ - public Builder setBatchRecognizeRequest(com.google.cloud.speech.v2.BatchRecognizeRequest value) { + public Builder setBatchRecognizeRequest( + com.google.cloud.speech.v2.BatchRecognizeRequest value) { if (batchRecognizeRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2917,6 +3266,8 @@ public Builder setBatchRecognizeRequest(com.google.cloud.speech.v2.BatchRecogniz return this; } /** + * + * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
@@ -2935,18 +3286,24 @@ public Builder setBatchRecognizeRequest( return this; } /** + * + * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ - public Builder mergeBatchRecognizeRequest(com.google.cloud.speech.v2.BatchRecognizeRequest value) { + public Builder mergeBatchRecognizeRequest( + com.google.cloud.speech.v2.BatchRecognizeRequest value) { if (batchRecognizeRequestBuilder_ == null) { - if (requestCase_ == 8 && - request_ != com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.BatchRecognizeRequest.newBuilder((com.google.cloud.speech.v2.BatchRecognizeRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 8 + && request_ != com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.BatchRecognizeRequest.newBuilder( + (com.google.cloud.speech.v2.BatchRecognizeRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -2962,6 +3319,8 @@ public Builder mergeBatchRecognizeRequest(com.google.cloud.speech.v2.BatchRecogn return this; } /** + * + * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
@@ -2985,16 +3344,21 @@ public Builder clearBatchRecognizeRequest() { return this; } /** + * + * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ - public com.google.cloud.speech.v2.BatchRecognizeRequest.Builder getBatchRecognizeRequestBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeRequest.Builder + getBatchRecognizeRequestBuilder() { return getBatchRecognizeRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
@@ -3002,7 +3366,8 @@ public com.google.cloud.speech.v2.BatchRecognizeRequest.Builder getBatchRecogniz * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder getBatchRecognizeRequestOrBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder + getBatchRecognizeRequestOrBuilder() { if ((requestCase_ == 8) && (batchRecognizeRequestBuilder_ != null)) { return batchRecognizeRequestBuilder_.getMessageOrBuilder(); } else { @@ -3013,6 +3378,8 @@ public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder getBatchRecogni } } /** + * + * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
@@ -3020,14 +3387,19 @@ public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder getBatchRecogni * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder> + com.google.cloud.speech.v2.BatchRecognizeRequest, + com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, + com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder> getBatchRecognizeRequestFieldBuilder() { if (batchRecognizeRequestBuilder_ == null) { if (!(requestCase_ == 8)) { request_ = com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance(); } - batchRecognizeRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder>( + batchRecognizeRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.BatchRecognizeRequest, + com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, + com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder>( (com.google.cloud.speech.v2.BatchRecognizeRequest) request_, getParentForChildren(), isClean()); @@ -3039,13 +3411,19 @@ public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder getBatchRecogni } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder> createRecognizerRequestBuilder_; + com.google.cloud.speech.v2.CreateRecognizerRequest, + com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, + com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder> + createRecognizerRequestBuilder_; /** + * + * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; + * * @return Whether the createRecognizerRequest field is set. */ @java.lang.Override @@ -3053,11 +3431,14 @@ public boolean hasCreateRecognizerRequest() { return requestCase_ == 9; } /** + * + * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; + * * @return The createRecognizerRequest. */ @java.lang.Override @@ -3075,13 +3456,16 @@ public com.google.cloud.speech.v2.CreateRecognizerRequest getCreateRecognizerReq } } /** + * + * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ - public Builder setCreateRecognizerRequest(com.google.cloud.speech.v2.CreateRecognizerRequest value) { + public Builder setCreateRecognizerRequest( + com.google.cloud.speech.v2.CreateRecognizerRequest value) { if (createRecognizerRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3095,6 +3479,8 @@ public Builder setCreateRecognizerRequest(com.google.cloud.speech.v2.CreateRecog return this; } /** + * + * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
@@ -3113,18 +3499,25 @@ public Builder setCreateRecognizerRequest( return this; } /** + * + * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ - public Builder mergeCreateRecognizerRequest(com.google.cloud.speech.v2.CreateRecognizerRequest value) { + public Builder mergeCreateRecognizerRequest( + com.google.cloud.speech.v2.CreateRecognizerRequest value) { if (createRecognizerRequestBuilder_ == null) { - if (requestCase_ == 9 && - request_ != com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.CreateRecognizerRequest.newBuilder((com.google.cloud.speech.v2.CreateRecognizerRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 9 + && request_ + != com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.CreateRecognizerRequest.newBuilder( + (com.google.cloud.speech.v2.CreateRecognizerRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -3140,6 +3533,8 @@ public Builder mergeCreateRecognizerRequest(com.google.cloud.speech.v2.CreateRec return this; } /** + * + * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
@@ -3163,16 +3558,21 @@ public Builder clearCreateRecognizerRequest() { return this; } /** + * + * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ - public com.google.cloud.speech.v2.CreateRecognizerRequest.Builder getCreateRecognizerRequestBuilder() { + public com.google.cloud.speech.v2.CreateRecognizerRequest.Builder + getCreateRecognizerRequestBuilder() { return getCreateRecognizerRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
@@ -3180,7 +3580,8 @@ public com.google.cloud.speech.v2.CreateRecognizerRequest.Builder getCreateRecog * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ @java.lang.Override - public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder getCreateRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder + getCreateRecognizerRequestOrBuilder() { if ((requestCase_ == 9) && (createRecognizerRequestBuilder_ != null)) { return createRecognizerRequestBuilder_.getMessageOrBuilder(); } else { @@ -3191,6 +3592,8 @@ public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder getCreateReco } } /** + * + * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
@@ -3198,14 +3601,19 @@ public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder getCreateReco * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder> + com.google.cloud.speech.v2.CreateRecognizerRequest, + com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, + com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder> getCreateRecognizerRequestFieldBuilder() { if (createRecognizerRequestBuilder_ == null) { if (!(requestCase_ == 9)) { request_ = com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance(); } - createRecognizerRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder>( + createRecognizerRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.CreateRecognizerRequest, + com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, + com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder>( (com.google.cloud.speech.v2.CreateRecognizerRequest) request_, getParentForChildren(), isClean()); @@ -3217,13 +3625,19 @@ public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder getCreateReco } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder> updateRecognizerRequestBuilder_; + com.google.cloud.speech.v2.UpdateRecognizerRequest, + com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, + com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder> + updateRecognizerRequestBuilder_; /** + * + * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; + * * @return Whether the updateRecognizerRequest field is set. */ @java.lang.Override @@ -3231,11 +3645,14 @@ public boolean hasUpdateRecognizerRequest() { return requestCase_ == 10; } /** + * + * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; + * * @return The updateRecognizerRequest. */ @java.lang.Override @@ -3253,13 +3670,16 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequest getUpdateRecognizerReq } } /** + * + * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ - public Builder setUpdateRecognizerRequest(com.google.cloud.speech.v2.UpdateRecognizerRequest value) { + public Builder setUpdateRecognizerRequest( + com.google.cloud.speech.v2.UpdateRecognizerRequest value) { if (updateRecognizerRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3273,6 +3693,8 @@ public Builder setUpdateRecognizerRequest(com.google.cloud.speech.v2.UpdateRecog return this; } /** + * + * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
@@ -3291,18 +3713,25 @@ public Builder setUpdateRecognizerRequest( return this; } /** + * + * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ - public Builder mergeUpdateRecognizerRequest(com.google.cloud.speech.v2.UpdateRecognizerRequest value) { + public Builder mergeUpdateRecognizerRequest( + com.google.cloud.speech.v2.UpdateRecognizerRequest value) { if (updateRecognizerRequestBuilder_ == null) { - if (requestCase_ == 10 && - request_ != com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.UpdateRecognizerRequest.newBuilder((com.google.cloud.speech.v2.UpdateRecognizerRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 10 + && request_ + != com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.UpdateRecognizerRequest.newBuilder( + (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -3318,6 +3747,8 @@ public Builder mergeUpdateRecognizerRequest(com.google.cloud.speech.v2.UpdateRec return this; } /** + * + * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
@@ -3341,16 +3772,21 @@ public Builder clearUpdateRecognizerRequest() { return this; } /** + * + * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ - public com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder getUpdateRecognizerRequestBuilder() { + public com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder + getUpdateRecognizerRequestBuilder() { return getUpdateRecognizerRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
@@ -3358,7 +3794,8 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder getUpdateRecog * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder getUpdateRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder + getUpdateRecognizerRequestOrBuilder() { if ((requestCase_ == 10) && (updateRecognizerRequestBuilder_ != null)) { return updateRecognizerRequestBuilder_.getMessageOrBuilder(); } else { @@ -3369,6 +3806,8 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder getUpdateReco } } /** + * + * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
@@ -3376,14 +3815,19 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder getUpdateReco * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder> + com.google.cloud.speech.v2.UpdateRecognizerRequest, + com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, + com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder> getUpdateRecognizerRequestFieldBuilder() { if (updateRecognizerRequestBuilder_ == null) { if (!(requestCase_ == 10)) { request_ = com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance(); } - updateRecognizerRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder>( + updateRecognizerRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UpdateRecognizerRequest, + com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, + com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder>( (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_, getParentForChildren(), isClean()); @@ -3395,13 +3839,19 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder getUpdateReco } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder> deleteRecognizerRequestBuilder_; + com.google.cloud.speech.v2.DeleteRecognizerRequest, + com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, + com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder> + deleteRecognizerRequestBuilder_; /** + * + * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; + * * @return Whether the deleteRecognizerRequest field is set. */ @java.lang.Override @@ -3409,11 +3859,14 @@ public boolean hasDeleteRecognizerRequest() { return requestCase_ == 11; } /** + * + * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; + * * @return The deleteRecognizerRequest. */ @java.lang.Override @@ -3431,13 +3884,16 @@ public com.google.cloud.speech.v2.DeleteRecognizerRequest getDeleteRecognizerReq } } /** + * + * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ - public Builder setDeleteRecognizerRequest(com.google.cloud.speech.v2.DeleteRecognizerRequest value) { + public Builder setDeleteRecognizerRequest( + com.google.cloud.speech.v2.DeleteRecognizerRequest value) { if (deleteRecognizerRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3451,6 +3907,8 @@ public Builder setDeleteRecognizerRequest(com.google.cloud.speech.v2.DeleteRecog return this; } /** + * + * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
@@ -3469,18 +3927,25 @@ public Builder setDeleteRecognizerRequest( return this; } /** + * + * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ - public Builder mergeDeleteRecognizerRequest(com.google.cloud.speech.v2.DeleteRecognizerRequest value) { + public Builder mergeDeleteRecognizerRequest( + com.google.cloud.speech.v2.DeleteRecognizerRequest value) { if (deleteRecognizerRequestBuilder_ == null) { - if (requestCase_ == 11 && - request_ != com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.DeleteRecognizerRequest.newBuilder((com.google.cloud.speech.v2.DeleteRecognizerRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 11 + && request_ + != com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.DeleteRecognizerRequest.newBuilder( + (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -3496,6 +3961,8 @@ public Builder mergeDeleteRecognizerRequest(com.google.cloud.speech.v2.DeleteRec return this; } /** + * + * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
@@ -3519,16 +3986,21 @@ public Builder clearDeleteRecognizerRequest() { return this; } /** + * + * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ - public com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder getDeleteRecognizerRequestBuilder() { + public com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder + getDeleteRecognizerRequestBuilder() { return getDeleteRecognizerRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
@@ -3536,7 +4008,8 @@ public com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder getDeleteRecog * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ @java.lang.Override - public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder getDeleteRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder + getDeleteRecognizerRequestOrBuilder() { if ((requestCase_ == 11) && (deleteRecognizerRequestBuilder_ != null)) { return deleteRecognizerRequestBuilder_.getMessageOrBuilder(); } else { @@ -3547,6 +4020,8 @@ public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder getDeleteReco } } /** + * + * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
@@ -3554,14 +4029,19 @@ public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder getDeleteReco * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder> + com.google.cloud.speech.v2.DeleteRecognizerRequest, + com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, + com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder> getDeleteRecognizerRequestFieldBuilder() { if (deleteRecognizerRequestBuilder_ == null) { if (!(requestCase_ == 11)) { request_ = com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance(); } - deleteRecognizerRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder>( + deleteRecognizerRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.DeleteRecognizerRequest, + com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, + com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder>( (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_, getParentForChildren(), isClean()); @@ -3573,13 +4053,20 @@ public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder getDeleteReco } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder> undeleteRecognizerRequestBuilder_; + com.google.cloud.speech.v2.UndeleteRecognizerRequest, + com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, + com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder> + undeleteRecognizerRequestBuilder_; /** + * + * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * + * * @return Whether the undeleteRecognizerRequest field is set. */ @java.lang.Override @@ -3587,11 +4074,15 @@ public boolean hasUndeleteRecognizerRequest() { return requestCase_ == 12; } /** + * + * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * + * * @return The undeleteRecognizerRequest. */ @java.lang.Override @@ -3609,13 +4100,17 @@ public com.google.cloud.speech.v2.UndeleteRecognizerRequest getUndeleteRecognize } } /** + * + * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * */ - public Builder setUndeleteRecognizerRequest(com.google.cloud.speech.v2.UndeleteRecognizerRequest value) { + public Builder setUndeleteRecognizerRequest( + com.google.cloud.speech.v2.UndeleteRecognizerRequest value) { if (undeleteRecognizerRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3629,11 +4124,14 @@ public Builder setUndeleteRecognizerRequest(com.google.cloud.speech.v2.UndeleteR return this; } /** + * + * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * */ public Builder setUndeleteRecognizerRequest( com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder builderForValue) { @@ -3647,18 +4145,26 @@ public Builder setUndeleteRecognizerRequest( return this; } /** + * + * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * */ - public Builder mergeUndeleteRecognizerRequest(com.google.cloud.speech.v2.UndeleteRecognizerRequest value) { + public Builder mergeUndeleteRecognizerRequest( + com.google.cloud.speech.v2.UndeleteRecognizerRequest value) { if (undeleteRecognizerRequestBuilder_ == null) { - if (requestCase_ == 12 && - request_ != com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.UndeleteRecognizerRequest.newBuilder((com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 12 + && request_ + != com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.UndeleteRecognizerRequest.newBuilder( + (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -3674,11 +4180,14 @@ public Builder mergeUndeleteRecognizerRequest(com.google.cloud.speech.v2.Undelet return this; } /** + * + * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * */ public Builder clearUndeleteRecognizerRequest() { if (undeleteRecognizerRequestBuilder_ == null) { @@ -3697,24 +4206,32 @@ public Builder clearUndeleteRecognizerRequest() { return this; } /** + * + * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * */ - public com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder getUndeleteRecognizerRequestBuilder() { + public com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder + getUndeleteRecognizerRequestBuilder() { return getUndeleteRecognizerRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * */ @java.lang.Override - public com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder getUndeleteRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder + getUndeleteRecognizerRequestOrBuilder() { if ((requestCase_ == 12) && (undeleteRecognizerRequestBuilder_ != null)) { return undeleteRecognizerRequestBuilder_.getMessageOrBuilder(); } else { @@ -3725,21 +4242,29 @@ public com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder getUndelete } } /** + * + * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder> + com.google.cloud.speech.v2.UndeleteRecognizerRequest, + com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, + com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder> getUndeleteRecognizerRequestFieldBuilder() { if (undeleteRecognizerRequestBuilder_ == null) { if (!(requestCase_ == 12)) { request_ = com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance(); } - undeleteRecognizerRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder>( + undeleteRecognizerRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UndeleteRecognizerRequest, + com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, + com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder>( (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_, getParentForChildren(), isClean()); @@ -3751,13 +4276,20 @@ public com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder getUndelete } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder> createCustomClassRequestBuilder_; + com.google.cloud.speech.v2.CreateCustomClassRequest, + com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, + com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder> + createCustomClassRequestBuilder_; /** + * + * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * + * * @return Whether the createCustomClassRequest field is set. */ @java.lang.Override @@ -3765,11 +4297,15 @@ public boolean hasCreateCustomClassRequest() { return requestCase_ == 13; } /** + * + * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * + * * @return The createCustomClassRequest. */ @java.lang.Override @@ -3787,13 +4323,17 @@ public com.google.cloud.speech.v2.CreateCustomClassRequest getCreateCustomClassR } } /** + * + * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * */ - public Builder setCreateCustomClassRequest(com.google.cloud.speech.v2.CreateCustomClassRequest value) { + public Builder setCreateCustomClassRequest( + com.google.cloud.speech.v2.CreateCustomClassRequest value) { if (createCustomClassRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3807,11 +4347,14 @@ public Builder setCreateCustomClassRequest(com.google.cloud.speech.v2.CreateCust return this; } /** + * + * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * */ public Builder setCreateCustomClassRequest( com.google.cloud.speech.v2.CreateCustomClassRequest.Builder builderForValue) { @@ -3825,18 +4368,26 @@ public Builder setCreateCustomClassRequest( return this; } /** + * + * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * */ - public Builder mergeCreateCustomClassRequest(com.google.cloud.speech.v2.CreateCustomClassRequest value) { + public Builder mergeCreateCustomClassRequest( + com.google.cloud.speech.v2.CreateCustomClassRequest value) { if (createCustomClassRequestBuilder_ == null) { - if (requestCase_ == 13 && - request_ != com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.CreateCustomClassRequest.newBuilder((com.google.cloud.speech.v2.CreateCustomClassRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 13 + && request_ + != com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.CreateCustomClassRequest.newBuilder( + (com.google.cloud.speech.v2.CreateCustomClassRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -3852,11 +4403,14 @@ public Builder mergeCreateCustomClassRequest(com.google.cloud.speech.v2.CreateCu return this; } /** + * + * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * */ public Builder clearCreateCustomClassRequest() { if (createCustomClassRequestBuilder_ == null) { @@ -3875,24 +4429,32 @@ public Builder clearCreateCustomClassRequest() { return this; } /** + * + * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * */ - public com.google.cloud.speech.v2.CreateCustomClassRequest.Builder getCreateCustomClassRequestBuilder() { + public com.google.cloud.speech.v2.CreateCustomClassRequest.Builder + getCreateCustomClassRequestBuilder() { return getCreateCustomClassRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * */ @java.lang.Override - public com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder getCreateCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder + getCreateCustomClassRequestOrBuilder() { if ((requestCase_ == 13) && (createCustomClassRequestBuilder_ != null)) { return createCustomClassRequestBuilder_.getMessageOrBuilder(); } else { @@ -3903,21 +4465,29 @@ public com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder getCreateCus } } /** + * + * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder> + com.google.cloud.speech.v2.CreateCustomClassRequest, + com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, + com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder> getCreateCustomClassRequestFieldBuilder() { if (createCustomClassRequestBuilder_ == null) { if (!(requestCase_ == 13)) { request_ = com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance(); } - createCustomClassRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder>( + createCustomClassRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.CreateCustomClassRequest, + com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, + com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder>( (com.google.cloud.speech.v2.CreateCustomClassRequest) request_, getParentForChildren(), isClean()); @@ -3929,13 +4499,20 @@ public com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder getCreateCus } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder> updateCustomClassRequestBuilder_; + com.google.cloud.speech.v2.UpdateCustomClassRequest, + com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, + com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder> + updateCustomClassRequestBuilder_; /** + * + * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * + * * @return Whether the updateCustomClassRequest field is set. */ @java.lang.Override @@ -3943,11 +4520,15 @@ public boolean hasUpdateCustomClassRequest() { return requestCase_ == 14; } /** + * + * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * + * * @return The updateCustomClassRequest. */ @java.lang.Override @@ -3965,13 +4546,17 @@ public com.google.cloud.speech.v2.UpdateCustomClassRequest getUpdateCustomClassR } } /** + * + * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * */ - public Builder setUpdateCustomClassRequest(com.google.cloud.speech.v2.UpdateCustomClassRequest value) { + public Builder setUpdateCustomClassRequest( + com.google.cloud.speech.v2.UpdateCustomClassRequest value) { if (updateCustomClassRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3985,11 +4570,14 @@ public Builder setUpdateCustomClassRequest(com.google.cloud.speech.v2.UpdateCust return this; } /** + * + * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * */ public Builder setUpdateCustomClassRequest( com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder builderForValue) { @@ -4003,18 +4591,26 @@ public Builder setUpdateCustomClassRequest( return this; } /** + * + * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * */ - public Builder mergeUpdateCustomClassRequest(com.google.cloud.speech.v2.UpdateCustomClassRequest value) { + public Builder mergeUpdateCustomClassRequest( + com.google.cloud.speech.v2.UpdateCustomClassRequest value) { if (updateCustomClassRequestBuilder_ == null) { - if (requestCase_ == 14 && - request_ != com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.UpdateCustomClassRequest.newBuilder((com.google.cloud.speech.v2.UpdateCustomClassRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 14 + && request_ + != com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.UpdateCustomClassRequest.newBuilder( + (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -4030,11 +4626,14 @@ public Builder mergeUpdateCustomClassRequest(com.google.cloud.speech.v2.UpdateCu return this; } /** + * + * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * */ public Builder clearUpdateCustomClassRequest() { if (updateCustomClassRequestBuilder_ == null) { @@ -4053,24 +4652,32 @@ public Builder clearUpdateCustomClassRequest() { return this; } /** + * + * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * */ - public com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder getUpdateCustomClassRequestBuilder() { + public com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder + getUpdateCustomClassRequestBuilder() { return getUpdateCustomClassRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * */ @java.lang.Override - public com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder getUpdateCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder + getUpdateCustomClassRequestOrBuilder() { if ((requestCase_ == 14) && (updateCustomClassRequestBuilder_ != null)) { return updateCustomClassRequestBuilder_.getMessageOrBuilder(); } else { @@ -4081,21 +4688,29 @@ public com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder getUpdateCus } } /** + * + * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder> + com.google.cloud.speech.v2.UpdateCustomClassRequest, + com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, + com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder> getUpdateCustomClassRequestFieldBuilder() { if (updateCustomClassRequestBuilder_ == null) { if (!(requestCase_ == 14)) { request_ = com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance(); } - updateCustomClassRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder>( + updateCustomClassRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UpdateCustomClassRequest, + com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, + com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder>( (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_, getParentForChildren(), isClean()); @@ -4107,13 +4722,20 @@ public com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder getUpdateCus } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder> deleteCustomClassRequestBuilder_; + com.google.cloud.speech.v2.DeleteCustomClassRequest, + com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, + com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder> + deleteCustomClassRequestBuilder_; /** + * + * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * + * * @return Whether the deleteCustomClassRequest field is set. */ @java.lang.Override @@ -4121,11 +4743,15 @@ public boolean hasDeleteCustomClassRequest() { return requestCase_ == 15; } /** + * + * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * + * * @return The deleteCustomClassRequest. */ @java.lang.Override @@ -4143,13 +4769,17 @@ public com.google.cloud.speech.v2.DeleteCustomClassRequest getDeleteCustomClassR } } /** + * + * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * */ - public Builder setDeleteCustomClassRequest(com.google.cloud.speech.v2.DeleteCustomClassRequest value) { + public Builder setDeleteCustomClassRequest( + com.google.cloud.speech.v2.DeleteCustomClassRequest value) { if (deleteCustomClassRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4163,11 +4793,14 @@ public Builder setDeleteCustomClassRequest(com.google.cloud.speech.v2.DeleteCust return this; } /** + * + * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * */ public Builder setDeleteCustomClassRequest( com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder builderForValue) { @@ -4181,18 +4814,26 @@ public Builder setDeleteCustomClassRequest( return this; } /** + * + * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * */ - public Builder mergeDeleteCustomClassRequest(com.google.cloud.speech.v2.DeleteCustomClassRequest value) { + public Builder mergeDeleteCustomClassRequest( + com.google.cloud.speech.v2.DeleteCustomClassRequest value) { if (deleteCustomClassRequestBuilder_ == null) { - if (requestCase_ == 15 && - request_ != com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.DeleteCustomClassRequest.newBuilder((com.google.cloud.speech.v2.DeleteCustomClassRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 15 + && request_ + != com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.DeleteCustomClassRequest.newBuilder( + (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -4208,11 +4849,14 @@ public Builder mergeDeleteCustomClassRequest(com.google.cloud.speech.v2.DeleteCu return this; } /** + * + * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * */ public Builder clearDeleteCustomClassRequest() { if (deleteCustomClassRequestBuilder_ == null) { @@ -4231,24 +4875,32 @@ public Builder clearDeleteCustomClassRequest() { return this; } /** + * + * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * */ - public com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder getDeleteCustomClassRequestBuilder() { + public com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder + getDeleteCustomClassRequestBuilder() { return getDeleteCustomClassRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * */ @java.lang.Override - public com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder getDeleteCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder + getDeleteCustomClassRequestOrBuilder() { if ((requestCase_ == 15) && (deleteCustomClassRequestBuilder_ != null)) { return deleteCustomClassRequestBuilder_.getMessageOrBuilder(); } else { @@ -4259,21 +4911,29 @@ public com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder getDeleteCus } } /** + * + * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder> + com.google.cloud.speech.v2.DeleteCustomClassRequest, + com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, + com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder> getDeleteCustomClassRequestFieldBuilder() { if (deleteCustomClassRequestBuilder_ == null) { if (!(requestCase_ == 15)) { request_ = com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance(); } - deleteCustomClassRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder>( + deleteCustomClassRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.DeleteCustomClassRequest, + com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, + com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder>( (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_, getParentForChildren(), isClean()); @@ -4285,13 +4945,20 @@ public com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder getDeleteCus } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder> undeleteCustomClassRequestBuilder_; + com.google.cloud.speech.v2.UndeleteCustomClassRequest, + com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, + com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder> + undeleteCustomClassRequestBuilder_; /** + * + * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * + * * @return Whether the undeleteCustomClassRequest field is set. */ @java.lang.Override @@ -4299,11 +4966,15 @@ public boolean hasUndeleteCustomClassRequest() { return requestCase_ == 16; } /** + * + * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * + * * @return The undeleteCustomClassRequest. */ @java.lang.Override @@ -4321,13 +4992,17 @@ public com.google.cloud.speech.v2.UndeleteCustomClassRequest getUndeleteCustomCl } } /** + * + * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * */ - public Builder setUndeleteCustomClassRequest(com.google.cloud.speech.v2.UndeleteCustomClassRequest value) { + public Builder setUndeleteCustomClassRequest( + com.google.cloud.speech.v2.UndeleteCustomClassRequest value) { if (undeleteCustomClassRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4341,11 +5016,14 @@ public Builder setUndeleteCustomClassRequest(com.google.cloud.speech.v2.Undelete return this; } /** + * + * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * */ public Builder setUndeleteCustomClassRequest( com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder builderForValue) { @@ -4359,18 +5037,26 @@ public Builder setUndeleteCustomClassRequest( return this; } /** + * + * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * */ - public Builder mergeUndeleteCustomClassRequest(com.google.cloud.speech.v2.UndeleteCustomClassRequest value) { + public Builder mergeUndeleteCustomClassRequest( + com.google.cloud.speech.v2.UndeleteCustomClassRequest value) { if (undeleteCustomClassRequestBuilder_ == null) { - if (requestCase_ == 16 && - request_ != com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.UndeleteCustomClassRequest.newBuilder((com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 16 + && request_ + != com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.UndeleteCustomClassRequest.newBuilder( + (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -4386,11 +5072,14 @@ public Builder mergeUndeleteCustomClassRequest(com.google.cloud.speech.v2.Undele return this; } /** + * + * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * */ public Builder clearUndeleteCustomClassRequest() { if (undeleteCustomClassRequestBuilder_ == null) { @@ -4409,24 +5098,32 @@ public Builder clearUndeleteCustomClassRequest() { return this; } /** + * + * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * */ - public com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder getUndeleteCustomClassRequestBuilder() { + public com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder + getUndeleteCustomClassRequestBuilder() { return getUndeleteCustomClassRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * */ @java.lang.Override - public com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder getUndeleteCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder + getUndeleteCustomClassRequestOrBuilder() { if ((requestCase_ == 16) && (undeleteCustomClassRequestBuilder_ != null)) { return undeleteCustomClassRequestBuilder_.getMessageOrBuilder(); } else { @@ -4437,21 +5134,29 @@ public com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder getUndelet } } /** + * + * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder> + com.google.cloud.speech.v2.UndeleteCustomClassRequest, + com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, + com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder> getUndeleteCustomClassRequestFieldBuilder() { if (undeleteCustomClassRequestBuilder_ == null) { if (!(requestCase_ == 16)) { request_ = com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance(); } - undeleteCustomClassRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder>( + undeleteCustomClassRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UndeleteCustomClassRequest, + com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, + com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder>( (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_, getParentForChildren(), isClean()); @@ -4463,13 +5168,19 @@ public com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder getUndelet } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder> createPhraseSetRequestBuilder_; + com.google.cloud.speech.v2.CreatePhraseSetRequest, + com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, + com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder> + createPhraseSetRequestBuilder_; /** + * + * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; + * * @return Whether the createPhraseSetRequest field is set. */ @java.lang.Override @@ -4477,11 +5188,14 @@ public boolean hasCreatePhraseSetRequest() { return requestCase_ == 17; } /** + * + * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; + * * @return The createPhraseSetRequest. */ @java.lang.Override @@ -4499,13 +5213,16 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequest getCreatePhraseSetReque } } /** + * + * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ - public Builder setCreatePhraseSetRequest(com.google.cloud.speech.v2.CreatePhraseSetRequest value) { + public Builder setCreatePhraseSetRequest( + com.google.cloud.speech.v2.CreatePhraseSetRequest value) { if (createPhraseSetRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4519,6 +5236,8 @@ public Builder setCreatePhraseSetRequest(com.google.cloud.speech.v2.CreatePhrase return this; } /** + * + * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
@@ -4537,18 +5256,24 @@ public Builder setCreatePhraseSetRequest( return this; } /** + * + * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ - public Builder mergeCreatePhraseSetRequest(com.google.cloud.speech.v2.CreatePhraseSetRequest value) { + public Builder mergeCreatePhraseSetRequest( + com.google.cloud.speech.v2.CreatePhraseSetRequest value) { if (createPhraseSetRequestBuilder_ == null) { - if (requestCase_ == 17 && - request_ != com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.CreatePhraseSetRequest.newBuilder((com.google.cloud.speech.v2.CreatePhraseSetRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 17 + && request_ != com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.CreatePhraseSetRequest.newBuilder( + (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -4564,6 +5289,8 @@ public Builder mergeCreatePhraseSetRequest(com.google.cloud.speech.v2.CreatePhra return this; } /** + * + * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
@@ -4587,16 +5314,21 @@ public Builder clearCreatePhraseSetRequest() { return this; } /** + * + * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ - public com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder getCreatePhraseSetRequestBuilder() { + public com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder + getCreatePhraseSetRequestBuilder() { return getCreatePhraseSetRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
@@ -4604,7 +5336,8 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder getCreatePhrase * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ @java.lang.Override - public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder getCreatePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder + getCreatePhraseSetRequestOrBuilder() { if ((requestCase_ == 17) && (createPhraseSetRequestBuilder_ != null)) { return createPhraseSetRequestBuilder_.getMessageOrBuilder(); } else { @@ -4615,6 +5348,8 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder getCreatePhras } } /** + * + * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
@@ -4622,14 +5357,19 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder getCreatePhras * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder> + com.google.cloud.speech.v2.CreatePhraseSetRequest, + com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, + com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder> getCreatePhraseSetRequestFieldBuilder() { if (createPhraseSetRequestBuilder_ == null) { if (!(requestCase_ == 17)) { request_ = com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance(); } - createPhraseSetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder>( + createPhraseSetRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.CreatePhraseSetRequest, + com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, + com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder>( (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_, getParentForChildren(), isClean()); @@ -4641,13 +5381,19 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder getCreatePhras } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder> updatePhraseSetRequestBuilder_; + com.google.cloud.speech.v2.UpdatePhraseSetRequest, + com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, + com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder> + updatePhraseSetRequestBuilder_; /** + * + * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; + * * @return Whether the updatePhraseSetRequest field is set. */ @java.lang.Override @@ -4655,11 +5401,14 @@ public boolean hasUpdatePhraseSetRequest() { return requestCase_ == 18; } /** + * + * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; + * * @return The updatePhraseSetRequest. */ @java.lang.Override @@ -4677,13 +5426,16 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequest getUpdatePhraseSetReque } } /** + * + * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ - public Builder setUpdatePhraseSetRequest(com.google.cloud.speech.v2.UpdatePhraseSetRequest value) { + public Builder setUpdatePhraseSetRequest( + com.google.cloud.speech.v2.UpdatePhraseSetRequest value) { if (updatePhraseSetRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4697,6 +5449,8 @@ public Builder setUpdatePhraseSetRequest(com.google.cloud.speech.v2.UpdatePhrase return this; } /** + * + * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
@@ -4715,18 +5469,24 @@ public Builder setUpdatePhraseSetRequest( return this; } /** + * + * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ - public Builder mergeUpdatePhraseSetRequest(com.google.cloud.speech.v2.UpdatePhraseSetRequest value) { + public Builder mergeUpdatePhraseSetRequest( + com.google.cloud.speech.v2.UpdatePhraseSetRequest value) { if (updatePhraseSetRequestBuilder_ == null) { - if (requestCase_ == 18 && - request_ != com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.UpdatePhraseSetRequest.newBuilder((com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 18 + && request_ != com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.UpdatePhraseSetRequest.newBuilder( + (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -4742,6 +5502,8 @@ public Builder mergeUpdatePhraseSetRequest(com.google.cloud.speech.v2.UpdatePhra return this; } /** + * + * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
@@ -4765,16 +5527,21 @@ public Builder clearUpdatePhraseSetRequest() { return this; } /** + * + * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ - public com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder getUpdatePhraseSetRequestBuilder() { + public com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder + getUpdatePhraseSetRequestBuilder() { return getUpdatePhraseSetRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
@@ -4782,7 +5549,8 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder getUpdatePhrase * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder getUpdatePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder + getUpdatePhraseSetRequestOrBuilder() { if ((requestCase_ == 18) && (updatePhraseSetRequestBuilder_ != null)) { return updatePhraseSetRequestBuilder_.getMessageOrBuilder(); } else { @@ -4793,6 +5561,8 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder getUpdatePhras } } /** + * + * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
@@ -4800,14 +5570,19 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder getUpdatePhras * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder> + com.google.cloud.speech.v2.UpdatePhraseSetRequest, + com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, + com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder> getUpdatePhraseSetRequestFieldBuilder() { if (updatePhraseSetRequestBuilder_ == null) { if (!(requestCase_ == 18)) { request_ = com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance(); } - updatePhraseSetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder>( + updatePhraseSetRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UpdatePhraseSetRequest, + com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, + com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder>( (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_, getParentForChildren(), isClean()); @@ -4819,13 +5594,19 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder getUpdatePhras } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder> deletePhraseSetRequestBuilder_; + com.google.cloud.speech.v2.DeletePhraseSetRequest, + com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, + com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder> + deletePhraseSetRequestBuilder_; /** + * + * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; + * * @return Whether the deletePhraseSetRequest field is set. */ @java.lang.Override @@ -4833,11 +5614,14 @@ public boolean hasDeletePhraseSetRequest() { return requestCase_ == 19; } /** + * + * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; + * * @return The deletePhraseSetRequest. */ @java.lang.Override @@ -4855,13 +5639,16 @@ public com.google.cloud.speech.v2.DeletePhraseSetRequest getDeletePhraseSetReque } } /** + * + * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ - public Builder setDeletePhraseSetRequest(com.google.cloud.speech.v2.DeletePhraseSetRequest value) { + public Builder setDeletePhraseSetRequest( + com.google.cloud.speech.v2.DeletePhraseSetRequest value) { if (deletePhraseSetRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4875,6 +5662,8 @@ public Builder setDeletePhraseSetRequest(com.google.cloud.speech.v2.DeletePhrase return this; } /** + * + * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
@@ -4893,18 +5682,24 @@ public Builder setDeletePhraseSetRequest( return this; } /** + * + * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ - public Builder mergeDeletePhraseSetRequest(com.google.cloud.speech.v2.DeletePhraseSetRequest value) { + public Builder mergeDeletePhraseSetRequest( + com.google.cloud.speech.v2.DeletePhraseSetRequest value) { if (deletePhraseSetRequestBuilder_ == null) { - if (requestCase_ == 19 && - request_ != com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.DeletePhraseSetRequest.newBuilder((com.google.cloud.speech.v2.DeletePhraseSetRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 19 + && request_ != com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.DeletePhraseSetRequest.newBuilder( + (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -4920,6 +5715,8 @@ public Builder mergeDeletePhraseSetRequest(com.google.cloud.speech.v2.DeletePhra return this; } /** + * + * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
@@ -4943,16 +5740,21 @@ public Builder clearDeletePhraseSetRequest() { return this; } /** + * + * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ - public com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder getDeletePhraseSetRequestBuilder() { + public com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder + getDeletePhraseSetRequestBuilder() { return getDeletePhraseSetRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
@@ -4960,7 +5762,8 @@ public com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder getDeletePhrase * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ @java.lang.Override - public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder getDeletePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder + getDeletePhraseSetRequestOrBuilder() { if ((requestCase_ == 19) && (deletePhraseSetRequestBuilder_ != null)) { return deletePhraseSetRequestBuilder_.getMessageOrBuilder(); } else { @@ -4971,6 +5774,8 @@ public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder getDeletePhras } } /** + * + * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
@@ -4978,14 +5783,19 @@ public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder getDeletePhras * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder> + com.google.cloud.speech.v2.DeletePhraseSetRequest, + com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, + com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder> getDeletePhraseSetRequestFieldBuilder() { if (deletePhraseSetRequestBuilder_ == null) { if (!(requestCase_ == 19)) { request_ = com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance(); } - deletePhraseSetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder>( + deletePhraseSetRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.DeletePhraseSetRequest, + com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, + com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder>( (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_, getParentForChildren(), isClean()); @@ -4997,13 +5807,20 @@ public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder getDeletePhras } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder> undeletePhraseSetRequestBuilder_; + com.google.cloud.speech.v2.UndeletePhraseSetRequest, + com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, + com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder> + undeletePhraseSetRequestBuilder_; /** + * + * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * + * * @return Whether the undeletePhraseSetRequest field is set. */ @java.lang.Override @@ -5011,11 +5828,15 @@ public boolean hasUndeletePhraseSetRequest() { return requestCase_ == 20; } /** + * + * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * + * * @return The undeletePhraseSetRequest. */ @java.lang.Override @@ -5033,13 +5854,17 @@ public com.google.cloud.speech.v2.UndeletePhraseSetRequest getUndeletePhraseSetR } } /** + * + * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * */ - public Builder setUndeletePhraseSetRequest(com.google.cloud.speech.v2.UndeletePhraseSetRequest value) { + public Builder setUndeletePhraseSetRequest( + com.google.cloud.speech.v2.UndeletePhraseSetRequest value) { if (undeletePhraseSetRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5053,11 +5878,14 @@ public Builder setUndeletePhraseSetRequest(com.google.cloud.speech.v2.UndeletePh return this; } /** + * + * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * */ public Builder setUndeletePhraseSetRequest( com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder builderForValue) { @@ -5071,18 +5899,26 @@ public Builder setUndeletePhraseSetRequest( return this; } /** + * + * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * */ - public Builder mergeUndeletePhraseSetRequest(com.google.cloud.speech.v2.UndeletePhraseSetRequest value) { + public Builder mergeUndeletePhraseSetRequest( + com.google.cloud.speech.v2.UndeletePhraseSetRequest value) { if (undeletePhraseSetRequestBuilder_ == null) { - if (requestCase_ == 20 && - request_ != com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.UndeletePhraseSetRequest.newBuilder((com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 20 + && request_ + != com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.UndeletePhraseSetRequest.newBuilder( + (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -5098,11 +5934,14 @@ public Builder mergeUndeletePhraseSetRequest(com.google.cloud.speech.v2.Undelete return this; } /** + * + * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * */ public Builder clearUndeletePhraseSetRequest() { if (undeletePhraseSetRequestBuilder_ == null) { @@ -5121,24 +5960,32 @@ public Builder clearUndeletePhraseSetRequest() { return this; } /** + * + * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * */ - public com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder getUndeletePhraseSetRequestBuilder() { + public com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder + getUndeletePhraseSetRequestBuilder() { return getUndeletePhraseSetRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * */ @java.lang.Override - public com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder getUndeletePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder + getUndeletePhraseSetRequestOrBuilder() { if ((requestCase_ == 20) && (undeletePhraseSetRequestBuilder_ != null)) { return undeletePhraseSetRequestBuilder_.getMessageOrBuilder(); } else { @@ -5149,21 +5996,29 @@ public com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder getUndeleteP } } /** + * + * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder> + com.google.cloud.speech.v2.UndeletePhraseSetRequest, + com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, + com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder> getUndeletePhraseSetRequestFieldBuilder() { if (undeletePhraseSetRequestBuilder_ == null) { if (!(requestCase_ == 20)) { request_ = com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance(); } - undeletePhraseSetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder>( + undeletePhraseSetRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UndeletePhraseSetRequest, + com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, + com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder>( (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_, getParentForChildren(), isClean()); @@ -5175,13 +6030,19 @@ public com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder getUndeleteP } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.UpdateConfigRequest.Builder, com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder> updateConfigRequestBuilder_; + com.google.cloud.speech.v2.UpdateConfigRequest, + com.google.cloud.speech.v2.UpdateConfigRequest.Builder, + com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder> + updateConfigRequestBuilder_; /** + * + * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; + * * @return Whether the updateConfigRequest field is set. */ @java.lang.Override @@ -5189,11 +6050,14 @@ public boolean hasUpdateConfigRequest() { return requestCase_ == 21; } /** + * + * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; + * * @return The updateConfigRequest. */ @java.lang.Override @@ -5211,6 +6075,8 @@ public com.google.cloud.speech.v2.UpdateConfigRequest getUpdateConfigRequest() { } } /** + * + * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -5231,6 +6097,8 @@ public Builder setUpdateConfigRequest(com.google.cloud.speech.v2.UpdateConfigReq return this; } /** + * + * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -5249,6 +6117,8 @@ public Builder setUpdateConfigRequest( return this; } /** + * + * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -5257,10 +6127,13 @@ public Builder setUpdateConfigRequest( */ public Builder mergeUpdateConfigRequest(com.google.cloud.speech.v2.UpdateConfigRequest value) { if (updateConfigRequestBuilder_ == null) { - if (requestCase_ == 21 && - request_ != com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.UpdateConfigRequest.newBuilder((com.google.cloud.speech.v2.UpdateConfigRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 21 + && request_ != com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.UpdateConfigRequest.newBuilder( + (com.google.cloud.speech.v2.UpdateConfigRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -5276,6 +6149,8 @@ public Builder mergeUpdateConfigRequest(com.google.cloud.speech.v2.UpdateConfigR return this; } /** + * + * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -5299,6 +6174,8 @@ public Builder clearUpdateConfigRequest() { return this; } /** + * + * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -5309,6 +6186,8 @@ public com.google.cloud.speech.v2.UpdateConfigRequest.Builder getUpdateConfigReq return getUpdateConfigRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -5316,7 +6195,8 @@ public com.google.cloud.speech.v2.UpdateConfigRequest.Builder getUpdateConfigReq * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder + getUpdateConfigRequestOrBuilder() { if ((requestCase_ == 21) && (updateConfigRequestBuilder_ != null)) { return updateConfigRequestBuilder_.getMessageOrBuilder(); } else { @@ -5327,6 +6207,8 @@ public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRe } } /** + * + * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -5334,14 +6216,19 @@ public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRe * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.UpdateConfigRequest.Builder, com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder> + com.google.cloud.speech.v2.UpdateConfigRequest, + com.google.cloud.speech.v2.UpdateConfigRequest.Builder, + com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder> getUpdateConfigRequestFieldBuilder() { if (updateConfigRequestBuilder_ == null) { if (!(requestCase_ == 21)) { request_ = com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance(); } - updateConfigRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.UpdateConfigRequest.Builder, com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder>( + updateConfigRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UpdateConfigRequest, + com.google.cloud.speech.v2.UpdateConfigRequest.Builder, + com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder>( (com.google.cloud.speech.v2.UpdateConfigRequest) request_, getParentForChildren(), isClean()); @@ -5352,14 +6239,17 @@ public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRe return updateConfigRequestBuilder_; } - private int progressPercent_ ; + private int progressPercent_; /** + * + * *
      * The percent progress of the Operation. Values can range from 0-100. If the
      * value is 100, then the operation is finished.
      * 
* * int32 progress_percent = 22; + * * @return The progressPercent. */ @java.lang.Override @@ -5367,29 +6257,35 @@ public int getProgressPercent() { return progressPercent_; } /** + * + * *
      * The percent progress of the Operation. Values can range from 0-100. If the
      * value is 100, then the operation is finished.
      * 
* * int32 progress_percent = 22; + * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; bitField0_ |= 0x00100000; onChanged(); return this; } /** + * + * *
      * The percent progress of the Operation. Values can range from 0-100. If the
      * value is 100, then the operation is finished.
      * 
* * int32 progress_percent = 22; + * * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -5400,13 +6296,19 @@ public Builder clearProgressPercent() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeMetadata, com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder> batchRecognizeMetadataBuilder_; + com.google.cloud.speech.v2.BatchRecognizeMetadata, + com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, + com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder> + batchRecognizeMetadataBuilder_; /** + * + * *
      * Metadata specific to the BatchRecognize method.
      * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; + * * @return Whether the batchRecognizeMetadata field is set. */ @java.lang.Override @@ -5414,11 +6316,14 @@ public boolean hasBatchRecognizeMetadata() { return metadataCase_ == 23; } /** + * + * *
      * Metadata specific to the BatchRecognize method.
      * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; + * * @return The batchRecognizeMetadata. */ @java.lang.Override @@ -5436,13 +6341,16 @@ public com.google.cloud.speech.v2.BatchRecognizeMetadata getBatchRecognizeMetada } } /** + * + * *
      * Metadata specific to the BatchRecognize method.
      * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ - public Builder setBatchRecognizeMetadata(com.google.cloud.speech.v2.BatchRecognizeMetadata value) { + public Builder setBatchRecognizeMetadata( + com.google.cloud.speech.v2.BatchRecognizeMetadata value) { if (batchRecognizeMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5456,6 +6364,8 @@ public Builder setBatchRecognizeMetadata(com.google.cloud.speech.v2.BatchRecogni return this; } /** + * + * *
      * Metadata specific to the BatchRecognize method.
      * 
@@ -5474,18 +6384,25 @@ public Builder setBatchRecognizeMetadata( return this; } /** + * + * *
      * Metadata specific to the BatchRecognize method.
      * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ - public Builder mergeBatchRecognizeMetadata(com.google.cloud.speech.v2.BatchRecognizeMetadata value) { + public Builder mergeBatchRecognizeMetadata( + com.google.cloud.speech.v2.BatchRecognizeMetadata value) { if (batchRecognizeMetadataBuilder_ == null) { - if (metadataCase_ == 23 && - metadata_ != com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance()) { - metadata_ = com.google.cloud.speech.v2.BatchRecognizeMetadata.newBuilder((com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_) - .mergeFrom(value).buildPartial(); + if (metadataCase_ == 23 + && metadata_ + != com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance()) { + metadata_ = + com.google.cloud.speech.v2.BatchRecognizeMetadata.newBuilder( + (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_) + .mergeFrom(value) + .buildPartial(); } else { metadata_ = value; } @@ -5501,6 +6418,8 @@ public Builder mergeBatchRecognizeMetadata(com.google.cloud.speech.v2.BatchRecog return this; } /** + * + * *
      * Metadata specific to the BatchRecognize method.
      * 
@@ -5524,16 +6443,21 @@ public Builder clearBatchRecognizeMetadata() { return this; } /** + * + * *
      * Metadata specific to the BatchRecognize method.
      * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ - public com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder getBatchRecognizeMetadataBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder + getBatchRecognizeMetadataBuilder() { return getBatchRecognizeMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata specific to the BatchRecognize method.
      * 
@@ -5541,7 +6465,8 @@ public com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder getBatchRecogni * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder getBatchRecognizeMetadataOrBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder + getBatchRecognizeMetadataOrBuilder() { if ((metadataCase_ == 23) && (batchRecognizeMetadataBuilder_ != null)) { return batchRecognizeMetadataBuilder_.getMessageOrBuilder(); } else { @@ -5552,6 +6477,8 @@ public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder getBatchRecogn } } /** + * + * *
      * Metadata specific to the BatchRecognize method.
      * 
@@ -5559,14 +6486,19 @@ public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder getBatchRecogn * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeMetadata, com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder> + com.google.cloud.speech.v2.BatchRecognizeMetadata, + com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, + com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder> getBatchRecognizeMetadataFieldBuilder() { if (batchRecognizeMetadataBuilder_ == null) { if (!(metadataCase_ == 23)) { metadata_ = com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance(); } - batchRecognizeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeMetadata, com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder>( + batchRecognizeMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.BatchRecognizeMetadata, + com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, + com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder>( (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_, getParentForChildren(), isClean()); @@ -5576,9 +6508,9 @@ public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder getBatchRecogn onChanged(); return batchRecognizeMetadataBuilder_; } + @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); } @@ -5588,12 +6520,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.OperationMetadata) private static final com.google.cloud.speech.v2.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.OperationMetadata(); } @@ -5602,27 +6534,27 @@ public static com.google.cloud.speech.v2.OperationMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5637,6 +6569,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java similarity index 87% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java index 91aed4456f0c..8baa2442726f 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java @@ -1,31 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
@@ -35,24 +59,32 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time the operation was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 2; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The time the operation was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 2; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The time the operation was last updated.
    * 
@@ -62,46 +94,58 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * The resource path for the target of the operation.
    * 
* * string resource = 3; + * * @return The resource. */ java.lang.String getResource(); /** + * + * *
    * The resource path for the target of the operation.
    * 
* * string resource = 3; + * * @return The bytes for resource. */ - com.google.protobuf.ByteString - getResourceBytes(); + com.google.protobuf.ByteString getResourceBytes(); /** + * + * *
    * The method that triggered the operation.
    * 
* * string method = 4; + * * @return The method. */ java.lang.String getMethod(); /** + * + * *
    * The method that triggered the operation.
    * 
* * string method = 4; + * * @return The bytes for method. */ - com.google.protobuf.ByteString - getMethodBytes(); + com.google.protobuf.ByteString getMethodBytes(); /** + * + * *
    * The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -110,10 +154,13 @@ public interface OperationMetadataOrBuilder extends
    * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } + * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** + * + * *
    * The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -122,12 +169,14 @@ public interface OperationMetadataOrBuilder extends
    * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString - getKmsKeyNameBytes(); + com.google.protobuf.ByteString getKmsKeyNameBytes(); /** + * + * *
    * The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -136,10 +185,13 @@ public interface OperationMetadataOrBuilder extends
    * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } + * * @return The kmsKeyVersionName. */ java.lang.String getKmsKeyVersionName(); /** + * + * *
    * The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -148,30 +200,38 @@ public interface OperationMetadataOrBuilder extends
    * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } + * * @return The bytes for kmsKeyVersionName. */ - com.google.protobuf.ByteString - getKmsKeyVersionNameBytes(); + com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); /** + * + * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; + * * @return Whether the batchRecognizeRequest field is set. */ boolean hasBatchRecognizeRequest(); /** + * + * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; + * * @return The batchRecognizeRequest. */ com.google.cloud.speech.v2.BatchRecognizeRequest getBatchRecognizeRequest(); /** + * + * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
@@ -181,24 +241,32 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder getBatchRecognizeRequestOrBuilder(); /** + * + * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; + * * @return Whether the createRecognizerRequest field is set. */ boolean hasCreateRecognizerRequest(); /** + * + * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; + * * @return The createRecognizerRequest. */ com.google.cloud.speech.v2.CreateRecognizerRequest getCreateRecognizerRequest(); /** + * + * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
@@ -208,24 +276,32 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder getCreateRecognizerRequestOrBuilder(); /** + * + * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; + * * @return Whether the updateRecognizerRequest field is set. */ boolean hasUpdateRecognizerRequest(); /** + * + * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; + * * @return The updateRecognizerRequest. */ com.google.cloud.speech.v2.UpdateRecognizerRequest getUpdateRecognizerRequest(); /** + * + * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
@@ -235,24 +311,32 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder getUpdateRecognizerRequestOrBuilder(); /** + * + * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; + * * @return Whether the deleteRecognizerRequest field is set. */ boolean hasDeleteRecognizerRequest(); /** + * + * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; + * * @return The deleteRecognizerRequest. */ com.google.cloud.speech.v2.DeleteRecognizerRequest getDeleteRecognizerRequest(); /** + * + * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
@@ -262,159 +346,218 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder getDeleteRecognizerRequestOrBuilder(); /** + * + * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * + * * @return Whether the undeleteRecognizerRequest field is set. */ boolean hasUndeleteRecognizerRequest(); /** + * + * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * + * * @return The undeleteRecognizerRequest. */ com.google.cloud.speech.v2.UndeleteRecognizerRequest getUndeleteRecognizerRequest(); /** + * + * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * */ - com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder getUndeleteRecognizerRequestOrBuilder(); + com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder + getUndeleteRecognizerRequestOrBuilder(); /** + * + * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * * @return Whether the createCustomClassRequest field is set. */ boolean hasCreateCustomClassRequest(); /** + * + * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * * @return The createCustomClassRequest. */ com.google.cloud.speech.v2.CreateCustomClassRequest getCreateCustomClassRequest(); /** + * + * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ - com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder getCreateCustomClassRequestOrBuilder(); + com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder + getCreateCustomClassRequestOrBuilder(); /** + * + * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * * @return Whether the updateCustomClassRequest field is set. */ boolean hasUpdateCustomClassRequest(); /** + * + * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * * @return The updateCustomClassRequest. */ com.google.cloud.speech.v2.UpdateCustomClassRequest getUpdateCustomClassRequest(); /** + * + * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ - com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder getUpdateCustomClassRequestOrBuilder(); + com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder + getUpdateCustomClassRequestOrBuilder(); /** + * + * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * * @return Whether the deleteCustomClassRequest field is set. */ boolean hasDeleteCustomClassRequest(); /** + * + * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * * @return The deleteCustomClassRequest. */ com.google.cloud.speech.v2.DeleteCustomClassRequest getDeleteCustomClassRequest(); /** + * + * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ - com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder getDeleteCustomClassRequestOrBuilder(); + com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder + getDeleteCustomClassRequestOrBuilder(); /** + * + * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * + * * @return Whether the undeleteCustomClassRequest field is set. */ boolean hasUndeleteCustomClassRequest(); /** + * + * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * + * * @return The undeleteCustomClassRequest. */ com.google.cloud.speech.v2.UndeleteCustomClassRequest getUndeleteCustomClassRequest(); /** + * + * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * */ - com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder getUndeleteCustomClassRequestOrBuilder(); + com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder + getUndeleteCustomClassRequestOrBuilder(); /** + * + * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; + * * @return Whether the createPhraseSetRequest field is set. */ boolean hasCreatePhraseSetRequest(); /** + * + * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; + * * @return The createPhraseSetRequest. */ com.google.cloud.speech.v2.CreatePhraseSetRequest getCreatePhraseSetRequest(); /** + * + * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
@@ -424,24 +567,32 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder getCreatePhraseSetRequestOrBuilder(); /** + * + * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; + * * @return Whether the updatePhraseSetRequest field is set. */ boolean hasUpdatePhraseSetRequest(); /** + * + * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; + * * @return The updatePhraseSetRequest. */ com.google.cloud.speech.v2.UpdatePhraseSetRequest getUpdatePhraseSetRequest(); /** + * + * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
@@ -451,24 +602,32 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder getUpdatePhraseSetRequestOrBuilder(); /** + * + * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; + * * @return Whether the deletePhraseSetRequest field is set. */ boolean hasDeletePhraseSetRequest(); /** + * + * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; + * * @return The deletePhraseSetRequest. */ com.google.cloud.speech.v2.DeletePhraseSetRequest getDeletePhraseSetRequest(); /** + * + * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
@@ -478,51 +637,68 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder getDeletePhraseSetRequestOrBuilder(); /** + * + * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * * @return Whether the undeletePhraseSetRequest field is set. */ boolean hasUndeletePhraseSetRequest(); /** + * + * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * * @return The undeletePhraseSetRequest. */ com.google.cloud.speech.v2.UndeletePhraseSetRequest getUndeletePhraseSetRequest(); /** + * + * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ - com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder getUndeletePhraseSetRequestOrBuilder(); + com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder + getUndeletePhraseSetRequestOrBuilder(); /** + * + * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; + * * @return Whether the updateConfigRequest field is set. */ boolean hasUpdateConfigRequest(); /** + * + * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; + * * @return The updateConfigRequest. */ com.google.cloud.speech.v2.UpdateConfigRequest getUpdateConfigRequest(); /** + * + * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
@@ -532,35 +708,46 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRequestOrBuilder(); /** + * + * *
    * The percent progress of the Operation. Values can range from 0-100. If the
    * value is 100, then the operation is finished.
    * 
* * int32 progress_percent = 22; + * * @return The progressPercent. */ int getProgressPercent(); /** + * + * *
    * Metadata specific to the BatchRecognize method.
    * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; + * * @return Whether the batchRecognizeMetadata field is set. */ boolean hasBatchRecognizeMetadata(); /** + * + * *
    * Metadata specific to the BatchRecognize method.
    * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; + * * @return The batchRecognizeMetadata. */ com.google.cloud.speech.v2.BatchRecognizeMetadata getBatchRecognizeMetadata(); /** + * + * *
    * Metadata specific to the BatchRecognize method.
    * 
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java similarity index 70% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java index 3226de2b8914..4290bf1ac65f 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * PhraseSet for biasing in speech recognition. A PhraseSet is used to provide
  * "hints" to the speech recognizer to favor specific words and phrases in the
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
     uid_ = "";
@@ -34,51 +52,54 @@ 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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 10:
         return internalGetAnnotations();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.PhraseSet.class, com.google.cloud.speech.v2.PhraseSet.Builder.class);
+            com.google.cloud.speech.v2.PhraseSet.class,
+            com.google.cloud.speech.v2.PhraseSet.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Set of states that define the lifecycle of a PhraseSet.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.PhraseSet.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified state.  This is only used/useful for distinguishing
      * unset values.
@@ -88,6 +109,8 @@ public enum State
      */
     STATE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * The normal and active state.
      * 
@@ -96,6 +119,8 @@ public enum State */ ACTIVE(2), /** + * + * *
      * This PhraseSet has been deleted.
      * 
@@ -107,6 +132,8 @@ public enum State ; /** + * + * *
      * Unspecified state.  This is only used/useful for distinguishing
      * unset values.
@@ -116,6 +143,8 @@ public enum State
      */
     public static final int STATE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * The normal and active state.
      * 
@@ -124,6 +153,8 @@ public enum State */ public static final int ACTIVE_VALUE = 2; /** + * + * *
      * This PhraseSet has been deleted.
      * 
@@ -132,7 +163,6 @@ public enum State */ public static final int DELETED_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -157,49 +187,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 2: return ACTIVE; - case 4: return DELETED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 2: + return ACTIVE; + case 4: + return DELETED; + 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< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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 State findValueByNumber(int number) { + return State.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.v2.PhraseSet.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -216,31 +246,39 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.speech.v2.PhraseSet.State) } - public interface PhraseOrBuilder extends + public interface PhraseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.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
@@ -255,11 +293,14 @@ public interface PhraseOrBuilder extends
      * 
* * float boost = 2; + * * @return The boost. */ float getBoost(); } /** + * + * *
    * A Phrase contains words and phrase "hints" so that the speech recognition
    * is more likely to recognize them. This can be used to improve the accuracy
@@ -272,53 +313,59 @@ public interface PhraseOrBuilder extends
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.PhraseSet.Phrase.class, com.google.cloud.speech.v2.PhraseSet.Phrase.Builder.class);
+              com.google.cloud.speech.v2.PhraseSet.Phrase.class,
+              com.google.cloud.speech.v2.PhraseSet.Phrase.Builder.class);
     }
 
     public static final int VALUE_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object value_ = "";
     /**
+     *
+     *
      * 
      * The phrase itself.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -327,29 +374,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,6 +407,8 @@ public java.lang.String getValue() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_ = 0F; /** + * + * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -374,6 +423,7 @@ public java.lang.String getValue() {
      * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -382,6 +432,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -393,8 +444,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_); } @@ -414,8 +464,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -425,18 +474,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.v2.PhraseSet.Phrase)) { return super.equals(obj); } - com.google.cloud.speech.v2.PhraseSet.Phrase other = (com.google.cloud.speech.v2.PhraseSet.Phrase) obj; + com.google.cloud.speech.v2.PhraseSet.Phrase other = + (com.google.cloud.speech.v2.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -451,95 +499,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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v2.PhraseSet.Phrase parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.PhraseSet.Phrase parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.PhraseSet.Phrase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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 @@ -549,6 +602,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A Phrase contains words and phrase "hints" so that the speech recognition
      * is more likely to recognize them. This can be used to improve the accuracy
@@ -561,33 +616,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.speech.v2.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.v2.PhraseSet.Phrase)
         com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.speech.v2.CloudSpeechProto
+            .internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable
+        return com.google.cloud.speech.v2.CloudSpeechProto
+            .internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.speech.v2.PhraseSet.Phrase.class, com.google.cloud.speech.v2.PhraseSet.Phrase.Builder.class);
+                com.google.cloud.speech.v2.PhraseSet.Phrase.class,
+                com.google.cloud.speech.v2.PhraseSet.Phrase.Builder.class);
       }
 
       // Construct using com.google.cloud.speech.v2.PhraseSet.Phrase.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -598,9 +653,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.speech.v2.CloudSpeechProto
+            .internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
@@ -619,8 +674,11 @@ public com.google.cloud.speech.v2.PhraseSet.Phrase build() {
 
       @java.lang.Override
       public com.google.cloud.speech.v2.PhraseSet.Phrase buildPartial() {
-        com.google.cloud.speech.v2.PhraseSet.Phrase result = new com.google.cloud.speech.v2.PhraseSet.Phrase(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.speech.v2.PhraseSet.Phrase result =
+            new com.google.cloud.speech.v2.PhraseSet.Phrase(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -639,38 +697,41 @@ private void buildPartial0(com.google.cloud.speech.v2.PhraseSet.Phrase result) {
       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.v2.PhraseSet.Phrase) {
-          return mergeFrom((com.google.cloud.speech.v2.PhraseSet.Phrase)other);
+          return mergeFrom((com.google.cloud.speech.v2.PhraseSet.Phrase) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -713,22 +774,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                value_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 21: {
-                boost_ = input.readFloat();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 21
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  value_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 21:
+                {
+                  boost_ = input.readFloat();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 21
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -738,22 +802,25 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       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; @@ -762,20 +829,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 { @@ -783,28 +851,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -814,17 +889,21 @@ public Builder clearValue() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; @@ -832,8 +911,10 @@ public Builder setValueBytes( 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
@@ -848,6 +929,7 @@ public Builder setValueBytes(
        * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -855,6 +937,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
@@ -869,17 +953,20 @@ public float getBoost() {
        * 
* * float boost = 2; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000002; 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
@@ -894,6 +981,7 @@ public Builder setBoost(float value) {
        * 
* * float boost = 2; + * * @return This builder for chaining. */ public Builder clearBoost() { @@ -902,6 +990,7 @@ public Builder clearBoost() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -914,12 +1003,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.PhraseSet.Phrase) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.PhraseSet.Phrase) private static final com.google.cloud.speech.v2.PhraseSet.Phrase DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.PhraseSet.Phrase(); } @@ -928,27 +1017,28 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -963,19 +1053,22 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.PhraseSet.Phrase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. The resource name of the PhraseSet.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -984,30 +1077,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; } } /** + * + * *
    * Output only. The resource name of the PhraseSet.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1016,14 +1109,18 @@ public java.lang.String getName() { } public static final int UID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** + * + * *
    * Output only. System-assigned unique identifier for the PhraseSet.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -1032,29 +1129,29 @@ public java.lang.String getUid() { 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(); uid_ = s; return s; } } /** + * + * *
    * Output only. System-assigned unique identifier for the PhraseSet.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -1063,9 +1160,12 @@ public java.lang.String getUid() { } public static final int PHRASES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List phrases_; /** + * + * *
    * A list of word and phrases.
    * 
@@ -1077,6 +1177,8 @@ public java.util.List getPhrasesLis return phrases_; } /** + * + * *
    * A list of word and phrases.
    * 
@@ -1084,11 +1186,13 @@ public java.util.List getPhrasesLis * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ @java.lang.Override - public java.util.List + public java.util.List getPhrasesOrBuilderList() { return phrases_; } /** + * + * *
    * A list of word and phrases.
    * 
@@ -1100,6 +1204,8 @@ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -1111,6 +1217,8 @@ public com.google.cloud.speech.v2.PhraseSet.Phrase getPhrases(int index) { return phrases_.get(index); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -1118,14 +1226,15 @@ public com.google.cloud.speech.v2.PhraseSet.Phrase getPhrases(int index) { * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ @java.lang.Override - public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( - int index) { + public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index) { return phrases_.get(index); } public static final int BOOST_FIELD_NUMBER = 4; private float boost_ = 0F; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -1135,6 +1244,7 @@ public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -1143,15 +1253,19 @@ public float getBoost() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * User-settable, human-readable name for the PhraseSet. Must be 63
    * characters or less.
    * 
* * string display_name = 5; + * * @return The displayName. */ @java.lang.Override @@ -1160,30 +1274,30 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** + * + * *
    * User-settable, human-readable name for the PhraseSet. Must be 63
    * characters or less.
    * 
* * string display_name = 5; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -1194,37 +1308,54 @@ public java.lang.String getDisplayName() { public static final int STATE_FIELD_NUMBER = 15; private int state_ = 0; /** + * + * *
    * Output only. The PhraseSet lifecycle state.
    * 
* - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The PhraseSet lifecycle state.
    * 
* - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.speech.v2.PhraseSet.State getState() { - com.google.cloud.speech.v2.PhraseSet.State result = com.google.cloud.speech.v2.PhraseSet.State.forNumber(state_); + @java.lang.Override + public com.google.cloud.speech.v2.PhraseSet.State getState() { + com.google.cloud.speech.v2.PhraseSet.State result = + com.google.cloud.speech.v2.PhraseSet.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.PhraseSet.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1232,11 +1363,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -1244,11 +1379,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1258,11 +1396,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1270,11 +1412,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -1282,11 +1428,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1296,11 +1445,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -1308,11 +1461,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -1320,11 +1477,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -1334,11 +1494,15 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -1346,11 +1510,15 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ @java.lang.Override @@ -1358,11 +1526,14 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -1370,32 +1541,35 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } public static final int ANNOTATIONS_FIELD_NUMBER = 10; + private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1405,20 +1579,21 @@ public int getAnnotationsCount() {
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public boolean containsAnnotations(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsAnnotations(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetAnnotations().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getAnnotationsMap()} instead.
-   */
+  /** Use {@link #getAnnotationsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAnnotations() {
     return getAnnotationsMap();
   }
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1432,6 +1607,8 @@ public java.util.Map getAnnotationsMap() {
     return internalGetAnnotations().getMap();
   }
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1441,17 +1618,19 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getAnnotationsOrDefault(
+  public /* nullable */ java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1461,11 +1640,11 @@ java.lang.String getAnnotationsOrDefault(
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public java.lang.String getAnnotationsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1473,9 +1652,12 @@ public java.lang.String getAnnotationsOrThrow(
   }
 
   public static final int ETAG_FIELD_NUMBER = 11;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object etag_ = "";
   /**
+   *
+   *
    * 
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -1483,6 +1665,7 @@ public java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ @java.lang.Override @@ -1491,14 +1674,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -1506,16 +1690,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -1526,12 +1709,15 @@ public java.lang.String getEtag() { public static final int RECONCILING_FIELD_NUMBER = 12; private boolean reconciling_ = false; /** + * + * *
    * Output only. Whether or not this PhraseSet is in the process of being
    * updated.
    * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -1540,9 +1726,12 @@ public boolean getReconciling() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 13; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -1550,7 +1739,10 @@ public boolean getReconciling() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ @java.lang.Override @@ -1559,14 +1751,15 @@ public java.lang.String getKmsKeyName() { 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(); kmsKeyName_ = s; return s; } } /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -1574,17 +1767,18 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -1593,9 +1787,12 @@ public java.lang.String getKmsKeyName() { } public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER = 14; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyVersionName_ = ""; /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1603,7 +1800,10 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyVersionName. */ @java.lang.Override @@ -1612,14 +1812,15 @@ public java.lang.String getKmsKeyVersionName() { 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(); kmsKeyVersionName_ = s; return s; } } /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1627,17 +1828,18 @@ public java.lang.String getKmsKeyVersionName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyVersionName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -1646,6 +1848,7 @@ public java.lang.String getKmsKeyVersionName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1657,8 +1860,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_); } @@ -1686,12 +1888,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (expireTime_ != null) { output.writeMessage(9, getExpireTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 10); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 10); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, etag_); } @@ -1723,48 +1921,41 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } for (int i = 0; i < phrases_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, phrases_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, 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_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getExpireTime()); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, annotations__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getExpireTime()); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, annotations__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etag_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, reconciling_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, reconciling_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kmsKeyName_); @@ -1773,8 +1964,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, kmsKeyVersionName_); } if (state_ != com.google.cloud.speech.v2.PhraseSet.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1784,55 +1974,41 @@ 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.v2.PhraseSet)) { return super.equals(obj); } com.google.cloud.speech.v2.PhraseSet other = (com.google.cloud.speech.v2.PhraseSet) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (!getPhrasesList() - .equals(other.getPhrasesList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getPhrasesList().equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits( - other.getBoost())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + != java.lang.Float.floatToIntBits(other.getBoost())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; - } - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (getReconciling() - != other.getReconciling()) return false; - if (!getKmsKeyName() - .equals(other.getKmsKeyName())) return false; - if (!getKmsKeyVersionName() - .equals(other.getKmsKeyVersionName())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; + } + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1853,8 +2029,7 @@ 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 = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; @@ -1882,8 +2057,7 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getKmsKeyName().hashCode(); hash = (37 * hash) + KMS_KEY_VERSION_NAME_FIELD_NUMBER; @@ -1893,97 +2067,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.PhraseSet parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.PhraseSet parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.PhraseSet parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.speech.v2.PhraseSet parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.PhraseSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * PhraseSet for biasing in speech recognition. A PhraseSet is used to provide
    * "hints" to the speech recognizer to favor specific words and phrases in the
@@ -1992,55 +2172,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.PhraseSet)
       com.google.cloud.speech.v2.PhraseSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 10:
           return internalGetAnnotations();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 10:
           return internalGetMutableAnnotations();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.PhraseSet.class, com.google.cloud.speech.v2.PhraseSet.Builder.class);
+              com.google.cloud.speech.v2.PhraseSet.class,
+              com.google.cloud.speech.v2.PhraseSet.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.PhraseSet.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2086,9 +2263,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
     }
 
     @java.lang.Override
@@ -2109,7 +2286,9 @@ public com.google.cloud.speech.v2.PhraseSet build() {
     public com.google.cloud.speech.v2.PhraseSet buildPartial() {
       com.google.cloud.speech.v2.PhraseSet result = new com.google.cloud.speech.v2.PhraseSet(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -2144,24 +2323,16 @@ private void buildPartial0(com.google.cloud.speech.v2.PhraseSet result) {
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null
-            ? deleteTime_
-            : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.expireTime_ = expireTimeBuilder_ == null
-            ? expireTime_
-            : expireTimeBuilder_.build();
+        result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
         result.annotations_ = internalGetAnnotations();
@@ -2185,38 +2356,39 @@ private void buildPartial0(com.google.cloud.speech.v2.PhraseSet result) {
     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.v2.PhraseSet) {
-        return mergeFrom((com.google.cloud.speech.v2.PhraseSet)other);
+        return mergeFrom((com.google.cloud.speech.v2.PhraseSet) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2253,9 +2425,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            phrasesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPhrasesFieldBuilder() : null;
+            phrasesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPhrasesFieldBuilder()
+                    : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -2284,8 +2457,7 @@ public Builder mergeFrom(com.google.cloud.speech.v2.PhraseSet other) {
       if (other.hasExpireTime()) {
         mergeExpireTime(other.getExpireTime());
       }
-      internalGetMutableAnnotations().mergeFrom(
-          other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
       bitField0_ |= 0x00000400;
       if (!other.getEtag().isEmpty()) {
         etag_ = other.etag_;
@@ -2331,107 +2503,116 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              uid_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              com.google.cloud.speech.v2.PhraseSet.Phrase m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.PhraseSet.Phrase.parser(),
-                      extensionRegistry);
-              if (phrasesBuilder_ == null) {
-                ensurePhrasesIsMutable();
-                phrases_.add(m);
-              } else {
-                phrasesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            case 37: {
-              boost_ = input.readFloat();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 37
-            case 42: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getDeleteTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 66
-            case 74: {
-              input.readMessage(
-                  getExpireTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 74
-            case 82: {
-              com.google.protobuf.MapEntry
-              annotations__ = input.readMessage(
-                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableAnnotations().getMutableMap().put(
-                  annotations__.getKey(), annotations__.getValue());
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 82
-            case 90: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 90
-            case 96: {
-              reconciling_ = input.readBool();
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 96
-            case 106: {
-              kmsKeyName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 106
-            case 114: {
-              kmsKeyVersionName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00004000;
-              break;
-            } // case 114
-            case 120: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 120
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                uid_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                com.google.cloud.speech.v2.PhraseSet.Phrase m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.PhraseSet.Phrase.parser(), extensionRegistry);
+                if (phrasesBuilder_ == null) {
+                  ensurePhrasesIsMutable();
+                  phrases_.add(m);
+                } else {
+                  phrasesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            case 37:
+              {
+                boost_ = input.readFloat();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 37
+            case 42:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 66
+            case 74:
+              {
+                input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 74
+            case 82:
+              {
+                com.google.protobuf.MapEntry annotations__ =
+                    input.readMessage(
+                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableAnnotations()
+                    .getMutableMap()
+                    .put(annotations__.getKey(), annotations__.getValue());
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 82
+            case 90:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 90
+            case 96:
+              {
+                reconciling_ = input.readBool();
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 96
+            case 106:
+              {
+                kmsKeyName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 106
+            case 114:
+              {
+                kmsKeyVersionName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00004000;
+                break;
+              } // case 114
+            case 120:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 120
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2441,23 +2622,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource name of the PhraseSet.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -2466,21 +2650,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the PhraseSet.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -2488,30 +2673,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the PhraseSet.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the PhraseSet.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -2521,18 +2713,22 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource name of the PhraseSet.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2542,18 +2738,20 @@ public Builder setNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. System-assigned unique identifier for the PhraseSet.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; 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(); uid_ = s; return s; @@ -2562,20 +2760,21 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. System-assigned unique identifier for the PhraseSet.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -2583,28 +2782,35 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. System-assigned unique identifier for the PhraseSet.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. System-assigned unique identifier for the PhraseSet.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -2614,17 +2820,21 @@ public Builder clearUid() { return this; } /** + * + * *
      * Output only. System-assigned unique identifier for the PhraseSet.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000002; @@ -2633,18 +2843,24 @@ public Builder setUidBytes( } private java.util.List phrases_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { phrases_ = new java.util.ArrayList(phrases_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet.Phrase, com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder> phrasesBuilder_; + com.google.cloud.speech.v2.PhraseSet.Phrase, + com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder> + phrasesBuilder_; /** + * + * *
      * A list of word and phrases.
      * 
@@ -2659,6 +2875,8 @@ public java.util.List getPhrasesLis } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -2673,6 +2891,8 @@ public int getPhrasesCount() { } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -2687,14 +2907,15 @@ public com.google.cloud.speech.v2.PhraseSet.Phrase getPhrases(int index) { } } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public Builder setPhrases( - int index, com.google.cloud.speech.v2.PhraseSet.Phrase value) { + public Builder setPhrases(int index, com.google.cloud.speech.v2.PhraseSet.Phrase value) { if (phrasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2708,6 +2929,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -2726,6 +2949,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -2746,14 +2971,15 @@ public Builder addPhrases(com.google.cloud.speech.v2.PhraseSet.Phrase value) { return this; } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public Builder addPhrases( - int index, com.google.cloud.speech.v2.PhraseSet.Phrase value) { + public Builder addPhrases(int index, com.google.cloud.speech.v2.PhraseSet.Phrase value) { if (phrasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2767,14 +2993,15 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public Builder addPhrases( - com.google.cloud.speech.v2.PhraseSet.Phrase.Builder builderForValue) { + public Builder addPhrases(com.google.cloud.speech.v2.PhraseSet.Phrase.Builder builderForValue) { if (phrasesBuilder_ == null) { ensurePhrasesIsMutable(); phrases_.add(builderForValue.build()); @@ -2785,6 +3012,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -2803,6 +3032,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -2813,8 +3044,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); @@ -2822,6 +3052,8 @@ public Builder addAllPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -2839,6 +3071,8 @@ public Builder clearPhrases() { return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -2856,39 +3090,44 @@ public Builder removePhrases(int index) { return this; } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder getPhrasesBuilder( - int index) { + public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder getPhrasesBuilder(int index) { return getPhrasesFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( - int index) { + public com.google.cloud.speech.v2.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.v2.PhraseSet.Phrase phrases = 3; */ - public java.util.List - getPhrasesOrBuilderList() { + public java.util.List + getPhrasesOrBuilderList() { if (phrasesBuilder_ != null) { return phrasesBuilder_.getMessageOrBuilderList(); } else { @@ -2896,6 +3135,8 @@ public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -2903,49 +3144,57 @@ public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder addPhrasesBuilder() { - return getPhrasesFieldBuilder().addBuilder( - com.google.cloud.speech.v2.PhraseSet.Phrase.getDefaultInstance()); + return getPhrasesFieldBuilder() + .addBuilder(com.google.cloud.speech.v2.PhraseSet.Phrase.getDefaultInstance()); } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder addPhrasesBuilder( - int index) { - return getPhrasesFieldBuilder().addBuilder( - index, com.google.cloud.speech.v2.PhraseSet.Phrase.getDefaultInstance()); + public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder addPhrasesBuilder(int index) { + return getPhrasesFieldBuilder() + .addBuilder(index, com.google.cloud.speech.v2.PhraseSet.Phrase.getDefaultInstance()); } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public java.util.List - getPhrasesBuilderList() { + public java.util.List + getPhrasesBuilderList() { return getPhrasesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet.Phrase, com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder> + com.google.cloud.speech.v2.PhraseSet.Phrase, + com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder> getPhrasesFieldBuilder() { if (phrasesBuilder_ == null) { - phrasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet.Phrase, com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder>( - phrases_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + phrasesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.PhraseSet.Phrase, + com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder>( + phrases_, ((bitField0_ & 0x00000004) != 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
@@ -2955,6 +3204,7 @@ public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder addPhrasesBuilder(
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -2962,6 +3212,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
@@ -2971,17 +3223,20 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000008; 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
@@ -2991,6 +3246,7 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { @@ -3002,19 +3258,21 @@ public Builder clearBoost() { private java.lang.Object displayName_ = ""; /** + * + * *
      * User-settable, human-readable name for the PhraseSet. Must be 63
      * characters or less.
      * 
* * string display_name = 5; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -3023,21 +3281,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User-settable, human-readable name for the PhraseSet. Must be 63
      * characters or less.
      * 
* * string display_name = 5; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -3045,30 +3304,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User-settable, human-readable name for the PhraseSet. Must be 63
      * characters or less.
      * 
* * string display_name = 5; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * User-settable, human-readable name for the PhraseSet. Must be 63
      * characters or less.
      * 
* * string display_name = 5; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -3078,18 +3344,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * User-settable, human-readable name for the PhraseSet. Must be 63
      * characters or less.
      * 
* * string display_name = 5; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000010; @@ -3099,22 +3369,33 @@ public Builder setDisplayNameBytes( private int state_ = 0; /** + * + * *
      * Output only. The PhraseSet lifecycle state.
      * 
* - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The PhraseSet lifecycle state.
      * 
* - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3125,24 +3406,35 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The PhraseSet lifecycle state.
      * 
* - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSet.State getState() { - com.google.cloud.speech.v2.PhraseSet.State result = com.google.cloud.speech.v2.PhraseSet.State.forNumber(state_); + com.google.cloud.speech.v2.PhraseSet.State result = + com.google.cloud.speech.v2.PhraseSet.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.PhraseSet.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The PhraseSet lifecycle state.
      * 
* - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -3156,11 +3448,16 @@ public Builder setState(com.google.cloud.speech.v2.PhraseSet.State value) { return this; } /** + * + * *
      * Output only. The PhraseSet lifecycle state.
      * 
* - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -3172,39 +3469,58 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3220,14 +3536,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -3238,17 +3557,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3261,11 +3584,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3278,11 +3605,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -3290,36 +3621,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3327,39 +3670,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3375,14 +3737,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3393,17 +3758,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3416,11 +3785,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3433,11 +3806,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -3445,36 +3822,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3482,39 +3871,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3530,14 +3938,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -3548,17 +3959,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -3571,11 +3986,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -3588,11 +4007,15 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -3600,36 +4023,48 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -3637,39 +4072,58 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -3685,14 +4139,17 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -3703,17 +4160,21 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - expireTime_ != null && - expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -3726,11 +4187,15 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000200); @@ -3743,11 +4208,15 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000200; @@ -3755,43 +4224,55 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); expireTime_ = null; } return expireTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -3800,11 +4281,12 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } return annotations_; } + private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -3813,10 +4295,13 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { onChanged(); return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3826,20 +4311,21 @@ public int getAnnotationsCount() {
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public boolean containsAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetAnnotations().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getAnnotationsMap()} instead.
-     */
+    /** Use {@link #getAnnotationsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAnnotations() {
       return getAnnotationsMap();
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3853,6 +4339,8 @@ public java.util.Map getAnnotationsMap() {
       return internalGetAnnotations().getMap();
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3862,17 +4350,19 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getAnnotationsOrDefault(
+    public /* nullable */ java.lang.String getAnnotationsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3882,23 +4372,25 @@ java.lang.String getAnnotationsOrDefault(
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public java.lang.String getAnnotationsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearAnnotations() {
       bitField0_ = (bitField0_ & ~0x00000400);
-      internalGetMutableAnnotations().getMutableMap()
-          .clear();
+      internalGetMutableAnnotations().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3907,23 +4399,22 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 10;
      */
-    public Builder removeAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableAnnotations().getMutableMap()
-          .remove(key);
+    public Builder removeAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableAnnotations().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableAnnotations() {
+    public java.util.Map getMutableAnnotations() {
       bitField0_ |= 0x00000400;
       return internalGetMutableAnnotations().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3932,17 +4423,20 @@ public Builder removeAnnotations(
      *
      * map<string, string> annotations = 10;
      */
-    public Builder putAnnotations(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableAnnotations().getMutableMap()
-          .put(key, value);
+    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableAnnotations().getMutableMap().put(key, value);
       bitField0_ |= 0x00000400;
       return this;
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3951,16 +4445,16 @@ public Builder putAnnotations(
      *
      * map<string, string> annotations = 10;
      */
-    public Builder putAllAnnotations(
-        java.util.Map values) {
-      internalGetMutableAnnotations().getMutableMap()
-          .putAll(values);
+    public Builder putAllAnnotations(java.util.Map values) {
+      internalGetMutableAnnotations().getMutableMap().putAll(values);
       bitField0_ |= 0x00000400;
       return this;
     }
 
     private java.lang.Object etag_ = "";
     /**
+     *
+     *
      * 
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3968,13 +4462,13 @@ public Builder putAllAnnotations(
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -3983,6 +4477,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3990,15 +4486,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -4006,6 +4501,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4013,18 +4510,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4032,6 +4533,7 @@ public Builder setEtag(
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -4041,6 +4543,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4048,12 +4552,14 @@ public Builder clearEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000800; @@ -4061,14 +4567,17 @@ public Builder setEtagBytes( return this; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Whether or not this PhraseSet is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -4076,29 +4585,35 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Whether or not this PhraseSet is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** + * + * *
      * Output only. Whether or not this PhraseSet is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -4110,6 +4625,8 @@ public Builder clearReconciling() { private java.lang.Object kmsKeyName_ = ""; /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4117,14 +4634,16 @@ public Builder clearReconciling() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; 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(); kmsKeyName_ = s; return s; @@ -4133,6 +4652,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4140,16 +4661,17 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -4157,6 +4679,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4164,19 +4688,25 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyName_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4184,7 +4714,10 @@ public Builder setKmsKeyName(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -4194,6 +4727,8 @@ public Builder clearKmsKeyName() { return this; } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4201,13 +4736,17 @@ public Builder clearKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00002000; @@ -4217,6 +4756,8 @@ public Builder setKmsKeyNameBytes( private java.lang.Object kmsKeyVersionName_ = ""; /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4224,14 +4765,16 @@ public Builder setKmsKeyNameBytes(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyVersionName. */ public java.lang.String getKmsKeyVersionName() { java.lang.Object ref = kmsKeyVersionName_; 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(); kmsKeyVersionName_ = s; return s; @@ -4240,6 +4783,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4247,16 +4792,17 @@ public java.lang.String getKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyVersionName. */ - public com.google.protobuf.ByteString - getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -4264,6 +4810,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4271,19 +4819,25 @@ public java.lang.String getKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyVersionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyVersionName_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4291,7 +4845,10 @@ public Builder setKmsKeyVersionName(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { @@ -4301,6 +4858,8 @@ public Builder clearKmsKeyVersionName() { return this; } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4308,22 +4867,26 @@ public Builder clearKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyVersionName_ = value; bitField0_ |= 0x00004000; 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); } @@ -4333,12 +4896,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.PhraseSet) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.PhraseSet) private static final com.google.cloud.speech.v2.PhraseSet DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.PhraseSet(); } @@ -4347,27 +4910,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4382,6 +4945,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java similarity index 100% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java similarity index 75% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java index 8f448c93bd77..1989e818db78 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface PhraseSetOrBuilder extends +public interface PhraseSetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.PhraseSet) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the PhraseSet.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the PhraseSet.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. System-assigned unique identifier for the PhraseSet.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. System-assigned unique identifier for the PhraseSet.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - java.util.List - getPhrasesList(); + java.util.List getPhrasesList(); /** + * + * *
    * A list of word and phrases.
    * 
@@ -67,6 +96,8 @@ public interface PhraseSetOrBuilder extends */ com.google.cloud.speech.v2.PhraseSet.Phrase getPhrases(int index); /** + * + * *
    * A list of word and phrases.
    * 
@@ -75,25 +106,30 @@ public interface PhraseSetOrBuilder extends */ int getPhrasesCount(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - java.util.List + java.util.List getPhrasesOrBuilderList(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( - int index); + com.google.cloud.speech.v2.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
@@ -103,160 +139,222 @@ com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    * 
* * float boost = 4; + * * @return The boost. */ float getBoost(); /** + * + * *
    * User-settable, human-readable name for the PhraseSet. Must be 63
    * characters or less.
    * 
* * string display_name = 5; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * User-settable, human-readable name for the PhraseSet. Must be 63
    * characters or less.
    * 
* * string display_name = 5; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. The PhraseSet lifecycle state.
    * 
* - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The PhraseSet lifecycle state.
    * 
* - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.speech.v2.PhraseSet.State getState(); /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** + * + * *
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -267,6 +365,8 @@ com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    */
   int getAnnotationsCount();
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -275,15 +375,13 @@ com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    *
    * map<string, string> annotations = 10;
    */
-  boolean containsAnnotations(
-      java.lang.String key);
-  /**
-   * Use {@link #getAnnotationsMap()} instead.
-   */
+  boolean containsAnnotations(java.lang.String key);
+  /** Use {@link #getAnnotationsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getAnnotations();
+  java.util.Map getAnnotations();
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -292,9 +390,10 @@ boolean containsAnnotations(
    *
    * map<string, string> annotations = 10;
    */
-  java.util.Map
-  getAnnotationsMap();
+  java.util.Map getAnnotationsMap();
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -304,11 +403,13 @@ boolean containsAnnotations(
    * map<string, string> annotations = 10;
    */
   /* nullable */
-java.lang.String getAnnotationsOrDefault(
+  java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -317,10 +418,11 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> annotations = 10;
    */
-  java.lang.String getAnnotationsOrThrow(
-      java.lang.String key);
+  java.lang.String getAnnotationsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -328,10 +430,13 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -339,23 +444,28 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Output only. Whether or not this PhraseSet is in the process of being
    * updated.
    * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -363,11 +473,16 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -375,13 +490,17 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString - getKmsKeyNameBytes(); + com.google.protobuf.ByteString getKmsKeyNameBytes(); /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -389,11 +508,16 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyVersionName. */ java.lang.String getKmsKeyVersionName(); /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -401,9 +525,11 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyVersionName. */ - com.google.protobuf.ByteString - getKmsKeyVersionNameBytes(); + com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java similarity index 70% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java index 5cca8f7c317d..9968a0781200 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Provides information to the Recognizer that specifies how to process the
  * recognition request.
@@ -11,52 +28,56 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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() {
-  }
+
+  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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.RecognitionConfig.class, com.google.cloud.speech.v2.RecognitionConfig.Builder.class);
+            com.google.cloud.speech.v2.RecognitionConfig.class,
+            com.google.cloud.speech.v2.RecognitionConfig.Builder.class);
   }
 
   private int decodingConfigCase_ = 0;
   private java.lang.Object decodingConfig_;
+
   public enum DecodingConfigCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     AUTO_DECODING_CONFIG(7),
     EXPLICIT_DECODING_CONFIG(8),
     DECODINGCONFIG_NOT_SET(0);
     private final int value;
+
     private DecodingConfigCase(int value) {
       this.value = value;
     }
@@ -72,31 +93,37 @@ public static DecodingConfigCase valueOf(int value) {
 
     public static DecodingConfigCase forNumber(int value) {
       switch (value) {
-        case 7: return AUTO_DECODING_CONFIG;
-        case 8: return EXPLICIT_DECODING_CONFIG;
-        case 0: return DECODINGCONFIG_NOT_SET;
-        default: return null;
+        case 7:
+          return AUTO_DECODING_CONFIG;
+        case 8:
+          return EXPLICIT_DECODING_CONFIG;
+        case 0:
+          return DECODINGCONFIG_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public DecodingConfigCase
-  getDecodingConfigCase() {
-    return DecodingConfigCase.forNumber(
-        decodingConfigCase_);
+  public DecodingConfigCase getDecodingConfigCase() {
+    return DecodingConfigCase.forNumber(decodingConfigCase_);
   }
 
   public static final int AUTO_DECODING_CONFIG_FIELD_NUMBER = 7;
   /**
+   *
+   *
    * 
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
    * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; + * * @return Whether the autoDecodingConfig field is set. */ @java.lang.Override @@ -104,22 +131,27 @@ public boolean hasAutoDecodingConfig() { return decodingConfigCase_ == 7; } /** + * + * *
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
    * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; + * * @return The autoDecodingConfig. */ @java.lang.Override public com.google.cloud.speech.v2.AutoDetectDecodingConfig getAutoDecodingConfig() { if (decodingConfigCase_ == 7) { - return (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_; + return (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_; } return com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance(); } /** + * + * *
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
@@ -128,21 +160,25 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig getAutoDecodingConfig
    * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder getAutoDecodingConfigOrBuilder() {
+  public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder
+      getAutoDecodingConfigOrBuilder() {
     if (decodingConfigCase_ == 7) {
-       return (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_;
+      return (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_;
     }
     return com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance();
   }
 
   public static final int EXPLICIT_DECODING_CONFIG_FIELD_NUMBER = 8;
   /**
+   *
+   *
    * 
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
    * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; + * * @return Whether the explicitDecodingConfig field is set. */ @java.lang.Override @@ -150,22 +186,27 @@ public boolean hasExplicitDecodingConfig() { return decodingConfigCase_ == 8; } /** + * + * *
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
    * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; + * * @return The explicitDecodingConfig. */ @java.lang.Override public com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConfig() { if (decodingConfigCase_ == 8) { - return (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_; + return (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_; } return com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance(); } /** + * + * *
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -174,9 +215,10 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConf
    * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder getExplicitDecodingConfigOrBuilder() {
+  public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder
+      getExplicitDecodingConfigOrBuilder() {
     if (decodingConfigCase_ == 8) {
-       return (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_;
+      return (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_;
     }
     return com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance();
   }
@@ -184,11 +226,14 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder getExplicitDec
   public static final int FEATURES_FIELD_NUMBER = 2;
   private com.google.cloud.speech.v2.RecognitionFeatures features_;
   /**
+   *
+   *
    * 
    * Speech recognition features to enable.
    * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; + * * @return Whether the features field is set. */ @java.lang.Override @@ -196,18 +241,25 @@ public boolean hasFeatures() { return features_ != null; } /** + * + * *
    * Speech recognition features to enable.
    * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; + * * @return The features. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionFeatures getFeatures() { - return features_ == null ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() : features_; + return features_ == null + ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() + : features_; } /** + * + * *
    * Speech recognition features to enable.
    * 
@@ -216,18 +268,23 @@ public com.google.cloud.speech.v2.RecognitionFeatures getFeatures() { */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder getFeaturesOrBuilder() { - return features_ == null ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() : features_; + return features_ == null + ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() + : features_; } public static final int ADAPTATION_FIELD_NUMBER = 6; private com.google.cloud.speech.v2.SpeechAdaptation adaptation_; /** + * + * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
    * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; + * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -235,19 +292,26 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** + * + * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
    * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; + * * @return The adaptation. */ @java.lang.Override public com.google.cloud.speech.v2.SpeechAdaptation getAdaptation() { - return adaptation_ == null ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() : adaptation_; + return adaptation_ == null + ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() + : adaptation_; } /** + * + * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
@@ -257,10 +321,13 @@ public com.google.cloud.speech.v2.SpeechAdaptation getAdaptation() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v2.SpeechAdaptationOrBuilder getAdaptationOrBuilder() {
-    return adaptation_ == null ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() : adaptation_;
+    return adaptation_ == null
+        ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance()
+        : adaptation_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -272,8 +339,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 (features_ != null) {
       output.writeMessage(2, getFeatures());
     }
@@ -296,20 +362,20 @@ public int getSerializedSize() {
 
     size = 0;
     if (features_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getFeatures());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFeatures());
     }
     if (adaptation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, getAdaptation());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getAdaptation());
     }
     if (decodingConfigCase_ == 7) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              7, (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_);
     }
     if (decodingConfigCase_ == 8) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              8, (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -319,32 +385,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.v2.RecognitionConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.RecognitionConfig other = (com.google.cloud.speech.v2.RecognitionConfig) obj;
+    com.google.cloud.speech.v2.RecognitionConfig other =
+        (com.google.cloud.speech.v2.RecognitionConfig) obj;
 
     if (hasFeatures() != other.hasFeatures()) return false;
     if (hasFeatures()) {
-      if (!getFeatures()
-          .equals(other.getFeatures())) return false;
+      if (!getFeatures().equals(other.getFeatures())) 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 (!getDecodingConfigCase().equals(other.getDecodingConfigCase())) return false;
     switch (decodingConfigCase_) {
       case 7:
-        if (!getAutoDecodingConfig()
-            .equals(other.getAutoDecodingConfig())) return false;
+        if (!getAutoDecodingConfig().equals(other.getAutoDecodingConfig())) return false;
         break;
       case 8:
-        if (!getExplicitDecodingConfig()
-            .equals(other.getExplicitDecodingConfig())) return false;
+        if (!getExplicitDecodingConfig().equals(other.getExplicitDecodingConfig())) return false;
         break;
       case 0:
       default:
@@ -385,97 +448,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.speech.v2.RecognitionConfig parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.speech.v2.RecognitionConfig parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.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.v2.RecognitionConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.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.v2.RecognitionConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.RecognitionConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v2.RecognitionConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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
    * recognition request.
@@ -483,33 +553,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.RecognitionConfig)
       com.google.cloud.speech.v2.RecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.RecognitionConfig.class, com.google.cloud.speech.v2.RecognitionConfig.Builder.class);
+              com.google.cloud.speech.v2.RecognitionConfig.class,
+              com.google.cloud.speech.v2.RecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.RecognitionConfig.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -536,9 +605,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
@@ -557,8 +626,11 @@ public com.google.cloud.speech.v2.RecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.RecognitionConfig buildPartial() {
-      com.google.cloud.speech.v2.RecognitionConfig result = new com.google.cloud.speech.v2.RecognitionConfig(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.RecognitionConfig result =
+          new com.google.cloud.speech.v2.RecognitionConfig(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -567,26 +639,20 @@ public com.google.cloud.speech.v2.RecognitionConfig buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.RecognitionConfig result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.features_ = featuresBuilder_ == null
-            ? features_
-            : featuresBuilder_.build();
+        result.features_ = featuresBuilder_ == null ? features_ : featuresBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.adaptation_ = adaptationBuilder_ == null
-            ? adaptation_
-            : adaptationBuilder_.build();
+        result.adaptation_ = adaptationBuilder_ == null ? adaptation_ : adaptationBuilder_.build();
       }
     }
 
     private void buildPartialOneofs(com.google.cloud.speech.v2.RecognitionConfig result) {
       result.decodingConfigCase_ = decodingConfigCase_;
       result.decodingConfig_ = this.decodingConfig_;
-      if (decodingConfigCase_ == 7 &&
-          autoDecodingConfigBuilder_ != null) {
+      if (decodingConfigCase_ == 7 && autoDecodingConfigBuilder_ != null) {
         result.decodingConfig_ = autoDecodingConfigBuilder_.build();
       }
-      if (decodingConfigCase_ == 8 &&
-          explicitDecodingConfigBuilder_ != null) {
+      if (decodingConfigCase_ == 8 && explicitDecodingConfigBuilder_ != null) {
         result.decodingConfig_ = explicitDecodingConfigBuilder_.build();
       }
     }
@@ -595,38 +661,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.RecognitionConfig res
     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.v2.RecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v2.RecognitionConfig)other);
+        return mergeFrom((com.google.cloud.speech.v2.RecognitionConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -642,17 +709,20 @@ public Builder mergeFrom(com.google.cloud.speech.v2.RecognitionConfig other) {
         mergeAdaptation(other.getAdaptation());
       }
       switch (other.getDecodingConfigCase()) {
-        case AUTO_DECODING_CONFIG: {
-          mergeAutoDecodingConfig(other.getAutoDecodingConfig());
-          break;
-        }
-        case EXPLICIT_DECODING_CONFIG: {
-          mergeExplicitDecodingConfig(other.getExplicitDecodingConfig());
-          break;
-        }
-        case DECODINGCONFIG_NOT_SET: {
-          break;
-        }
+        case AUTO_DECODING_CONFIG:
+          {
+            mergeAutoDecodingConfig(other.getAutoDecodingConfig());
+            break;
+          }
+        case EXPLICIT_DECODING_CONFIG:
+          {
+            mergeExplicitDecodingConfig(other.getExplicitDecodingConfig());
+            break;
+          }
+        case DECODINGCONFIG_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -680,40 +750,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18: {
-              input.readMessage(
-                  getFeaturesFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 18
-            case 50: {
-              input.readMessage(
-                  getAdaptationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getAutoDecodingConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              decodingConfigCase_ = 7;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getExplicitDecodingConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              decodingConfigCase_ = 8;
-              break;
-            } // case 66
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 18:
+              {
+                input.readMessage(getFeaturesFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 18
+            case 50:
+              {
+                input.readMessage(getAdaptationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(
+                    getAutoDecodingConfigFieldBuilder().getBuilder(), extensionRegistry);
+                decodingConfigCase_ = 7;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(
+                    getExplicitDecodingConfigFieldBuilder().getBuilder(), extensionRegistry);
+                decodingConfigCase_ = 8;
+                break;
+              } // case 66
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -723,12 +792,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int decodingConfigCase_ = 0;
     private java.lang.Object decodingConfig_;
-    public DecodingConfigCase
-        getDecodingConfigCase() {
-      return DecodingConfigCase.forNumber(
-          decodingConfigCase_);
+
+    public DecodingConfigCase getDecodingConfigCase() {
+      return DecodingConfigCase.forNumber(decodingConfigCase_);
     }
 
     public Builder clearDecodingConfig() {
@@ -741,14 +810,20 @@ public Builder clearDecodingConfig() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.AutoDetectDecodingConfig, com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder, com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder> autoDecodingConfigBuilder_;
+            com.google.cloud.speech.v2.AutoDetectDecodingConfig,
+            com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder,
+            com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder>
+        autoDecodingConfigBuilder_;
     /**
+     *
+     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
      * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; + * * @return Whether the autoDecodingConfig field is set. */ @java.lang.Override @@ -756,12 +831,15 @@ public boolean hasAutoDecodingConfig() { return decodingConfigCase_ == 7; } /** + * + * *
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
      * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; + * * @return The autoDecodingConfig. */ @java.lang.Override @@ -779,6 +857,8 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig getAutoDecodingConfig } } /** + * + * *
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -786,7 +866,8 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig getAutoDecodingConfig
      *
      * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      */
-    public Builder setAutoDecodingConfig(com.google.cloud.speech.v2.AutoDetectDecodingConfig value) {
+    public Builder setAutoDecodingConfig(
+        com.google.cloud.speech.v2.AutoDetectDecodingConfig value) {
       if (autoDecodingConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -800,6 +881,8 @@ public Builder setAutoDecodingConfig(com.google.cloud.speech.v2.AutoDetectDecodi
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -819,6 +902,8 @@ public Builder setAutoDecodingConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -826,12 +911,17 @@ public Builder setAutoDecodingConfig(
      *
      * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      */
-    public Builder mergeAutoDecodingConfig(com.google.cloud.speech.v2.AutoDetectDecodingConfig value) {
+    public Builder mergeAutoDecodingConfig(
+        com.google.cloud.speech.v2.AutoDetectDecodingConfig value) {
       if (autoDecodingConfigBuilder_ == null) {
-        if (decodingConfigCase_ == 7 &&
-            decodingConfig_ != com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance()) {
-          decodingConfig_ = com.google.cloud.speech.v2.AutoDetectDecodingConfig.newBuilder((com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_)
-              .mergeFrom(value).buildPartial();
+        if (decodingConfigCase_ == 7
+            && decodingConfig_
+                != com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance()) {
+          decodingConfig_ =
+              com.google.cloud.speech.v2.AutoDetectDecodingConfig.newBuilder(
+                      (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           decodingConfig_ = value;
         }
@@ -847,6 +937,8 @@ public Builder mergeAutoDecodingConfig(com.google.cloud.speech.v2.AutoDetectDeco
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -871,6 +963,8 @@ public Builder clearAutoDecodingConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -878,10 +972,13 @@ public Builder clearAutoDecodingConfig() {
      *
      * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      */
-    public com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder getAutoDecodingConfigBuilder() {
+    public com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder
+        getAutoDecodingConfigBuilder() {
       return getAutoDecodingConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -890,7 +987,8 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder getAutoDecodi
      * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      */
     @java.lang.Override
-    public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder getAutoDecodingConfigOrBuilder() {
+    public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder
+        getAutoDecodingConfigOrBuilder() {
       if ((decodingConfigCase_ == 7) && (autoDecodingConfigBuilder_ != null)) {
         return autoDecodingConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -901,6 +999,8 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder getAutoDecod
       }
     }
     /**
+     *
+     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -909,14 +1009,20 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder getAutoDecod
      * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.AutoDetectDecodingConfig, com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder, com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder> 
+            com.google.cloud.speech.v2.AutoDetectDecodingConfig,
+            com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder,
+            com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder>
         getAutoDecodingConfigFieldBuilder() {
       if (autoDecodingConfigBuilder_ == null) {
         if (!(decodingConfigCase_ == 7)) {
-          decodingConfig_ = com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance();
+          decodingConfig_ =
+              com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance();
         }
-        autoDecodingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.AutoDetectDecodingConfig, com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder, com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder>(
+        autoDecodingConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v2.AutoDetectDecodingConfig,
+                com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder,
+                com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder>(
                 (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_,
                 getParentForChildren(),
                 isClean());
@@ -928,14 +1034,20 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder getAutoDecod
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.ExplicitDecodingConfig, com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder, com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder> explicitDecodingConfigBuilder_;
+            com.google.cloud.speech.v2.ExplicitDecodingConfig,
+            com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder,
+            com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder>
+        explicitDecodingConfigBuilder_;
     /**
+     *
+     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
      * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; + * * @return Whether the explicitDecodingConfig field is set. */ @java.lang.Override @@ -943,12 +1055,15 @@ public boolean hasExplicitDecodingConfig() { return decodingConfigCase_ == 8; } /** + * + * *
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
      * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; + * * @return The explicitDecodingConfig. */ @java.lang.Override @@ -966,6 +1081,8 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConf } } /** + * + * *
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -973,7 +1090,8 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConf
      *
      * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      */
-    public Builder setExplicitDecodingConfig(com.google.cloud.speech.v2.ExplicitDecodingConfig value) {
+    public Builder setExplicitDecodingConfig(
+        com.google.cloud.speech.v2.ExplicitDecodingConfig value) {
       if (explicitDecodingConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -987,6 +1105,8 @@ public Builder setExplicitDecodingConfig(com.google.cloud.speech.v2.ExplicitDeco
       return this;
     }
     /**
+     *
+     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1006,6 +1126,8 @@ public Builder setExplicitDecodingConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1013,12 +1135,17 @@ public Builder setExplicitDecodingConfig(
      *
      * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      */
-    public Builder mergeExplicitDecodingConfig(com.google.cloud.speech.v2.ExplicitDecodingConfig value) {
+    public Builder mergeExplicitDecodingConfig(
+        com.google.cloud.speech.v2.ExplicitDecodingConfig value) {
       if (explicitDecodingConfigBuilder_ == null) {
-        if (decodingConfigCase_ == 8 &&
-            decodingConfig_ != com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance()) {
-          decodingConfig_ = com.google.cloud.speech.v2.ExplicitDecodingConfig.newBuilder((com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_)
-              .mergeFrom(value).buildPartial();
+        if (decodingConfigCase_ == 8
+            && decodingConfig_
+                != com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance()) {
+          decodingConfig_ =
+              com.google.cloud.speech.v2.ExplicitDecodingConfig.newBuilder(
+                      (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           decodingConfig_ = value;
         }
@@ -1034,6 +1161,8 @@ public Builder mergeExplicitDecodingConfig(com.google.cloud.speech.v2.ExplicitDe
       return this;
     }
     /**
+     *
+     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1058,6 +1187,8 @@ public Builder clearExplicitDecodingConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1065,10 +1196,13 @@ public Builder clearExplicitDecodingConfig() {
      *
      * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      */
-    public com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder getExplicitDecodingConfigBuilder() {
+    public com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder
+        getExplicitDecodingConfigBuilder() {
       return getExplicitDecodingConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1077,7 +1211,8 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder getExplicitDeco
      * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      */
     @java.lang.Override
-    public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder getExplicitDecodingConfigOrBuilder() {
+    public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder
+        getExplicitDecodingConfigOrBuilder() {
       if ((decodingConfigCase_ == 8) && (explicitDecodingConfigBuilder_ != null)) {
         return explicitDecodingConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -1088,6 +1223,8 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder getExplicitDec
       }
     }
     /**
+     *
+     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1096,14 +1233,19 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder getExplicitDec
      * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.ExplicitDecodingConfig, com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder, com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder> 
+            com.google.cloud.speech.v2.ExplicitDecodingConfig,
+            com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder,
+            com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder>
         getExplicitDecodingConfigFieldBuilder() {
       if (explicitDecodingConfigBuilder_ == null) {
         if (!(decodingConfigCase_ == 8)) {
           decodingConfig_ = com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance();
         }
-        explicitDecodingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.ExplicitDecodingConfig, com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder, com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder>(
+        explicitDecodingConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v2.ExplicitDecodingConfig,
+                com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder,
+                com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder>(
                 (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_,
                 getParentForChildren(),
                 isClean());
@@ -1116,34 +1258,47 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder getExplicitDec
 
     private com.google.cloud.speech.v2.RecognitionFeatures features_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.RecognitionFeatures, com.google.cloud.speech.v2.RecognitionFeatures.Builder, com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder> featuresBuilder_;
+            com.google.cloud.speech.v2.RecognitionFeatures,
+            com.google.cloud.speech.v2.RecognitionFeatures.Builder,
+            com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder>
+        featuresBuilder_;
     /**
+     *
+     *
      * 
      * Speech recognition features to enable.
      * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; + * * @return Whether the features field is set. */ public boolean hasFeatures() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Speech recognition features to enable.
      * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; + * * @return The features. */ public com.google.cloud.speech.v2.RecognitionFeatures getFeatures() { if (featuresBuilder_ == null) { - return features_ == null ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() : features_; + return features_ == null + ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() + : features_; } else { return featuresBuilder_.getMessage(); } } /** + * + * *
      * Speech recognition features to enable.
      * 
@@ -1164,6 +1319,8 @@ public Builder setFeatures(com.google.cloud.speech.v2.RecognitionFeatures value) return this; } /** + * + * *
      * Speech recognition features to enable.
      * 
@@ -1182,6 +1339,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Speech recognition features to enable.
      * 
@@ -1190,9 +1349,9 @@ public Builder setFeatures( */ public Builder mergeFeatures(com.google.cloud.speech.v2.RecognitionFeatures value) { if (featuresBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - features_ != null && - features_ != com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && features_ != null + && features_ != com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance()) { getFeaturesBuilder().mergeFrom(value); } else { features_ = value; @@ -1205,6 +1364,8 @@ public Builder mergeFeatures(com.google.cloud.speech.v2.RecognitionFeatures valu return this; } /** + * + * *
      * Speech recognition features to enable.
      * 
@@ -1222,6 +1383,8 @@ public Builder clearFeatures() { return this; } /** + * + * *
      * Speech recognition features to enable.
      * 
@@ -1234,6 +1397,8 @@ public com.google.cloud.speech.v2.RecognitionFeatures.Builder getFeaturesBuilder return getFeaturesFieldBuilder().getBuilder(); } /** + * + * *
      * Speech recognition features to enable.
      * 
@@ -1244,11 +1409,14 @@ public com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder getFeaturesOrBuil if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilder(); } else { - return features_ == null ? - com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() : features_; + return features_ == null + ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() + : features_; } } /** + * + * *
      * Speech recognition features to enable.
      * 
@@ -1256,14 +1424,17 @@ public com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder getFeaturesOrBuil * .google.cloud.speech.v2.RecognitionFeatures features = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionFeatures, com.google.cloud.speech.v2.RecognitionFeatures.Builder, com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder> + com.google.cloud.speech.v2.RecognitionFeatures, + com.google.cloud.speech.v2.RecognitionFeatures.Builder, + com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionFeatures, com.google.cloud.speech.v2.RecognitionFeatures.Builder, com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder>( - getFeatures(), - getParentForChildren(), - isClean()); + featuresBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.RecognitionFeatures, + com.google.cloud.speech.v2.RecognitionFeatures.Builder, + com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder>( + getFeatures(), getParentForChildren(), isClean()); features_ = null; } return featuresBuilder_; @@ -1271,36 +1442,49 @@ public com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder getFeaturesOrBuil private com.google.cloud.speech.v2.SpeechAdaptation adaptation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.SpeechAdaptation, com.google.cloud.speech.v2.SpeechAdaptation.Builder, com.google.cloud.speech.v2.SpeechAdaptationOrBuilder> adaptationBuilder_; + com.google.cloud.speech.v2.SpeechAdaptation, + com.google.cloud.speech.v2.SpeechAdaptation.Builder, + com.google.cloud.speech.v2.SpeechAdaptationOrBuilder> + adaptationBuilder_; /** + * + * *
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
      * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; + * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
      * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; + * * @return The adaptation. */ public com.google.cloud.speech.v2.SpeechAdaptation getAdaptation() { if (adaptationBuilder_ == null) { - return adaptation_ == null ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() : adaptation_; + return adaptation_ == null + ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() + : adaptation_; } else { return adaptationBuilder_.getMessage(); } } /** + * + * *
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1322,6 +1506,8 @@ public Builder setAdaptation(com.google.cloud.speech.v2.SpeechAdaptation value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1341,6 +1527,8 @@ public Builder setAdaptation(
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1350,9 +1538,9 @@ public Builder setAdaptation(
      */
     public Builder mergeAdaptation(com.google.cloud.speech.v2.SpeechAdaptation value) {
       if (adaptationBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          adaptation_ != null &&
-          adaptation_ != com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && adaptation_ != null
+            && adaptation_ != com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance()) {
           getAdaptationBuilder().mergeFrom(value);
         } else {
           adaptation_ = value;
@@ -1365,6 +1553,8 @@ public Builder mergeAdaptation(com.google.cloud.speech.v2.SpeechAdaptation value
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1383,6 +1573,8 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1396,6 +1588,8 @@ public com.google.cloud.speech.v2.SpeechAdaptation.Builder getAdaptationBuilder(
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1407,11 +1601,14 @@ public com.google.cloud.speech.v2.SpeechAdaptationOrBuilder getAdaptationOrBuild
       if (adaptationBuilder_ != null) {
         return adaptationBuilder_.getMessageOrBuilder();
       } else {
-        return adaptation_ == null ?
-            com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() : adaptation_;
+        return adaptation_ == null
+            ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance()
+            : adaptation_;
       }
     }
     /**
+     *
+     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1420,21 +1617,24 @@ public com.google.cloud.speech.v2.SpeechAdaptationOrBuilder getAdaptationOrBuild
      * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.SpeechAdaptation, com.google.cloud.speech.v2.SpeechAdaptation.Builder, com.google.cloud.speech.v2.SpeechAdaptationOrBuilder> 
+            com.google.cloud.speech.v2.SpeechAdaptation,
+            com.google.cloud.speech.v2.SpeechAdaptation.Builder,
+            com.google.cloud.speech.v2.SpeechAdaptationOrBuilder>
         getAdaptationFieldBuilder() {
       if (adaptationBuilder_ == null) {
-        adaptationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.SpeechAdaptation, com.google.cloud.speech.v2.SpeechAdaptation.Builder, com.google.cloud.speech.v2.SpeechAdaptationOrBuilder>(
-                getAdaptation(),
-                getParentForChildren(),
-                isClean());
+        adaptationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v2.SpeechAdaptation,
+                com.google.cloud.speech.v2.SpeechAdaptation.Builder,
+                com.google.cloud.speech.v2.SpeechAdaptationOrBuilder>(
+                getAdaptation(), getParentForChildren(), isClean());
         adaptation_ = null;
       }
       return adaptationBuilder_;
     }
+
     @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);
     }
 
@@ -1444,12 +1644,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.RecognitionConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.RecognitionConfig)
   private static final com.google.cloud.speech.v2.RecognitionConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.RecognitionConfig();
   }
@@ -1458,27 +1658,27 @@ public static com.google.cloud.speech.v2.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 {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  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 {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1493,6 +1693,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v2.RecognitionConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java
similarity index 83%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java
index b1dc2f84ec67..62221365975b 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
-public interface RecognitionConfigOrBuilder extends
+public interface RecognitionConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.RecognitionConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
    * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; + * * @return Whether the autoDecodingConfig field is set. */ boolean hasAutoDecodingConfig(); /** + * + * *
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
    * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; + * * @return The autoDecodingConfig. */ com.google.cloud.speech.v2.AutoDetectDecodingConfig getAutoDecodingConfig(); /** + * + * *
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
@@ -38,26 +62,34 @@ public interface RecognitionConfigOrBuilder extends
   com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder getAutoDecodingConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
    * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; + * * @return Whether the explicitDecodingConfig field is set. */ boolean hasExplicitDecodingConfig(); /** + * + * *
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
    * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; + * * @return The explicitDecodingConfig. */ com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConfig(); /** + * + * *
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -68,24 +100,32 @@ public interface RecognitionConfigOrBuilder extends
   com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder getExplicitDecodingConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Speech recognition features to enable.
    * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; + * * @return Whether the features field is set. */ boolean hasFeatures(); /** + * + * *
    * Speech recognition features to enable.
    * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; + * * @return The features. */ com.google.cloud.speech.v2.RecognitionFeatures getFeatures(); /** + * + * *
    * Speech recognition features to enable.
    * 
@@ -95,26 +135,34 @@ public interface RecognitionConfigOrBuilder extends com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder getFeaturesOrBuilder(); /** + * + * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
    * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; + * * @return Whether the adaptation field is set. */ boolean hasAdaptation(); /** + * + * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
    * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; + * * @return The adaptation. */ com.google.cloud.speech.v2.SpeechAdaptation getAdaptation(); /** + * + * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java
similarity index 76%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java
index 5cb5f781c74c..dc73e69ce7be 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java
@@ -1,63 +1,85 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
+ *
+ *
  * 
  * Available recognition features.
  * 
* * Protobuf type {@code google.cloud.speech.v2.RecognitionFeatures} */ -public final class RecognitionFeatures extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RecognitionFeatures extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.RecognitionFeatures) RecognitionFeaturesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RecognitionFeatures.newBuilder() to construct. private RecognitionFeatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RecognitionFeatures() { multiChannelMode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RecognitionFeatures(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.RecognitionFeatures.class, com.google.cloud.speech.v2.RecognitionFeatures.Builder.class); + com.google.cloud.speech.v2.RecognitionFeatures.class, + com.google.cloud.speech.v2.RecognitionFeatures.Builder.class); } /** + * + * *
    * Options for how to recognize multi-channel audio.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode} */ - public enum MultiChannelMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum MultiChannelMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value for the multi-channel mode. If the audio contains
      * multiple channels, only the first channel will be transcribed; other
@@ -68,6 +90,8 @@ public enum MultiChannelMode
      */
     MULTI_CHANNEL_MODE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * If selected, each channel in the provided audio is transcribed
      * independently. This cannot be selected if the selected
@@ -81,6 +105,8 @@ public enum MultiChannelMode
     ;
 
     /**
+     *
+     *
      * 
      * Default value for the multi-channel mode. If the audio contains
      * multiple channels, only the first channel will be transcribed; other
@@ -91,6 +117,8 @@ public enum MultiChannelMode
      */
     public static final int MULTI_CHANNEL_MODE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * If selected, each channel in the provided audio is transcribed
      * independently. This cannot be selected if the selected
@@ -101,7 +129,6 @@ public enum MultiChannelMode
      */
     public static final int SEPARATE_RECOGNITION_PER_CHANNEL_VALUE = 1;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -126,38 +153,40 @@ public static MultiChannelMode valueOf(int value) {
      */
     public static MultiChannelMode forNumber(int value) {
       switch (value) {
-        case 0: return MULTI_CHANNEL_MODE_UNSPECIFIED;
-        case 1: return SEPARATE_RECOGNITION_PER_CHANNEL;
-        default: return null;
+        case 0:
+          return MULTI_CHANNEL_MODE_UNSPECIFIED;
+        case 1:
+          return SEPARATE_RECOGNITION_PER_CHANNEL;
+        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<
-        MultiChannelMode> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public MultiChannelMode findValueByNumber(int number) {
-              return MultiChannelMode.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 MultiChannelMode findValueByNumber(int number) {
+                return MultiChannelMode.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.v2.RecognitionFeatures.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -166,8 +195,7 @@ public MultiChannelMode findValueByNumber(int number) {
     public static MultiChannelMode 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;
@@ -187,6 +215,8 @@ private MultiChannelMode(int value) {
   public static final int PROFANITY_FILTER_FIELD_NUMBER = 1;
   private boolean profanityFilter_ = false;
   /**
+   *
+   *
    * 
    * If set to `true`, the server will attempt to filter out profanities,
    * replacing all but the initial character in each filtered word with
@@ -195,6 +225,7 @@ private MultiChannelMode(int value) {
    * 
* * bool profanity_filter = 1; + * * @return The profanityFilter. */ @java.lang.Override @@ -205,6 +236,8 @@ public boolean getProfanityFilter() { public static final int ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER = 2; private boolean enableWordTimeOffsets_ = false; /** + * + * *
    * If `true`, the top result includes a list of words and the start and end
    * time offsets (timestamps) for those words. If `false`, no word-level time
@@ -212,6 +245,7 @@ public boolean getProfanityFilter() {
    * 
* * bool enable_word_time_offsets = 2; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -222,6 +256,8 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 3; private boolean enableWordConfidence_ = false; /** + * + * *
    * If `true`, the top result includes a list of words and the confidence for
    * those words. If `false`, no word-level confidence information is returned.
@@ -229,6 +265,7 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 3; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -239,6 +276,8 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 4; private boolean enableAutomaticPunctuation_ = false; /** + * + * *
    * If `true`, adds punctuation to recognition result hypotheses. This feature
    * is only available in select languages. The default `false` value does not
@@ -246,6 +285,7 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 4; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -256,6 +296,8 @@ public boolean getEnableAutomaticPunctuation() { public static final int ENABLE_SPOKEN_PUNCTUATION_FIELD_NUMBER = 14; private boolean enableSpokenPunctuation_ = false; /** + * + * *
    * The spoken punctuation behavior for the call. If `true`, replaces spoken
    * punctuation with the corresponding symbols in the request. For example,
@@ -265,6 +307,7 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * bool enable_spoken_punctuation = 14; + * * @return The enableSpokenPunctuation. */ @java.lang.Override @@ -275,6 +318,8 @@ public boolean getEnableSpokenPunctuation() { public static final int ENABLE_SPOKEN_EMOJIS_FIELD_NUMBER = 15; private boolean enableSpokenEmojis_ = false; /** + * + * *
    * The spoken emoji behavior for the call. If `true`, adds spoken emoji
    * formatting for the request. This will replace spoken emojis with the
@@ -283,6 +328,7 @@ public boolean getEnableSpokenPunctuation() {
    * 
* * bool enable_spoken_emojis = 15; + * * @return The enableSpokenEmojis. */ @java.lang.Override @@ -293,32 +339,48 @@ public boolean getEnableSpokenEmojis() { public static final int MULTI_CHANNEL_MODE_FIELD_NUMBER = 17; private int multiChannelMode_ = 0; /** + * + * *
    * Mode for recognizing multi-channel audio.
    * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * + * * @return The enum numeric value on the wire for multiChannelMode. */ - @java.lang.Override public int getMultiChannelModeValue() { + @java.lang.Override + public int getMultiChannelModeValue() { return multiChannelMode_; } /** + * + * *
    * Mode for recognizing multi-channel audio.
    * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * + * * @return The multiChannelMode. */ - @java.lang.Override public com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode getMultiChannelMode() { - com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode result = com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.forNumber(multiChannelMode_); - return result == null ? com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode getMultiChannelMode() { + com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode result = + com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.forNumber( + multiChannelMode_); + return result == null + ? com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.UNRECOGNIZED + : result; } public static final int DIARIZATION_CONFIG_FIELD_NUMBER = 9; private com.google.cloud.speech.v2.SpeakerDiarizationConfig diarizationConfig_; /** + * + * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -331,6 +393,7 @@ public boolean getEnableSpokenEmojis() {
    * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; + * * @return Whether the diarizationConfig field is set. */ @java.lang.Override @@ -338,6 +401,8 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** + * + * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -350,13 +415,18 @@ public boolean hasDiarizationConfig() {
    * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; + * * @return The diarizationConfig. */ @java.lang.Override public com.google.cloud.speech.v2.SpeakerDiarizationConfig getDiarizationConfig() { - return diarizationConfig_ == null ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_; + return diarizationConfig_ == null + ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() + : diarizationConfig_; } /** + * + * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -371,13 +441,18 @@ public com.google.cloud.speech.v2.SpeakerDiarizationConfig getDiarizationConfig(
    * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
-    return diarizationConfig_ == null ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_;
+  public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder
+      getDiarizationConfigOrBuilder() {
+    return diarizationConfig_ == null
+        ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()
+        : diarizationConfig_;
   }
 
   public static final int MAX_ALTERNATIVES_FIELD_NUMBER = 16;
   private int maxAlternatives_ = 0;
   /**
+   *
+   *
    * 
    * Maximum number of recognition hypotheses to be returned.
    * The server may return fewer than `max_alternatives`.
@@ -386,6 +461,7 @@ public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder getDiarizati
    * 
* * int32 max_alternatives = 16; + * * @return The maxAlternatives. */ @java.lang.Override @@ -394,6 +470,7 @@ public int getMaxAlternatives() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -405,8 +482,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 (profanityFilter_ != false) { output.writeBool(1, profanityFilter_); } @@ -431,7 +507,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (maxAlternatives_ != 0) { output.writeInt32(16, maxAlternatives_); } - if (multiChannelMode_ != com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.MULTI_CHANNEL_MODE_UNSPECIFIED.getNumber()) { + if (multiChannelMode_ + != com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode + .MULTI_CHANNEL_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(17, multiChannelMode_); } getUnknownFields().writeTo(output); @@ -444,40 +523,34 @@ public int getSerializedSize() { size = 0; if (profanityFilter_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, profanityFilter_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, profanityFilter_); } if (enableWordTimeOffsets_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enableWordTimeOffsets_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableWordTimeOffsets_); } if (enableWordConfidence_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, enableWordConfidence_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableWordConfidence_); } if (enableAutomaticPunctuation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, enableAutomaticPunctuation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, enableAutomaticPunctuation_); } if (diarizationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getDiarizationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDiarizationConfig()); } if (enableSpokenPunctuation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(14, enableSpokenPunctuation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, enableSpokenPunctuation_); } if (enableSpokenEmojis_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, enableSpokenEmojis_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, enableSpokenEmojis_); } if (maxAlternatives_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(16, maxAlternatives_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(16, maxAlternatives_); } - if (multiChannelMode_ != com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.MULTI_CHANNEL_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(17, multiChannelMode_); + if (multiChannelMode_ + != com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode + .MULTI_CHANNEL_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, multiChannelMode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -487,33 +560,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.v2.RecognitionFeatures)) { return super.equals(obj); } - com.google.cloud.speech.v2.RecognitionFeatures other = (com.google.cloud.speech.v2.RecognitionFeatures) obj; - - if (getProfanityFilter() - != other.getProfanityFilter()) return false; - if (getEnableWordTimeOffsets() - != other.getEnableWordTimeOffsets()) return false; - if (getEnableWordConfidence() - != other.getEnableWordConfidence()) return false; - if (getEnableAutomaticPunctuation() - != other.getEnableAutomaticPunctuation()) return false; - if (getEnableSpokenPunctuation() - != other.getEnableSpokenPunctuation()) return false; - if (getEnableSpokenEmojis() - != other.getEnableSpokenEmojis()) return false; + com.google.cloud.speech.v2.RecognitionFeatures other = + (com.google.cloud.speech.v2.RecognitionFeatures) obj; + + if (getProfanityFilter() != other.getProfanityFilter()) return false; + if (getEnableWordTimeOffsets() != other.getEnableWordTimeOffsets()) return false; + if (getEnableWordConfidence() != other.getEnableWordConfidence()) return false; + if (getEnableAutomaticPunctuation() != other.getEnableAutomaticPunctuation()) return false; + if (getEnableSpokenPunctuation() != other.getEnableSpokenPunctuation()) return false; + if (getEnableSpokenEmojis() != other.getEnableSpokenEmojis()) return false; if (multiChannelMode_ != other.multiChannelMode_) 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 (getMaxAlternatives() - != other.getMaxAlternatives()) return false; + if (getMaxAlternatives() != other.getMaxAlternatives()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -526,23 +592,17 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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()); 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()); hash = (37 * hash) + ENABLE_SPOKEN_PUNCTUATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSpokenPunctuation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSpokenPunctuation()); hash = (37 * hash) + ENABLE_SPOKEN_EMOJIS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSpokenEmojis()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSpokenEmojis()); hash = (37 * hash) + MULTI_CHANNEL_MODE_FIELD_NUMBER; hash = (53 * hash) + multiChannelMode_; if (hasDiarizationConfig()) { @@ -556,130 +616,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.RecognitionFeatures parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.RecognitionFeatures parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.RecognitionFeatures 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.v2.RecognitionFeatures parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.RecognitionFeatures 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.v2.RecognitionFeatures parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.RecognitionFeatures 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.v2.RecognitionFeatures 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.v2.RecognitionFeatures 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.v2.RecognitionFeatures parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.RecognitionFeatures parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.RecognitionFeatures 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.v2.RecognitionFeatures 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.v2.RecognitionFeatures 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.v2.RecognitionFeatures 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; } /** + * + * *
    * Available recognition features.
    * 
* * Protobuf type {@code google.cloud.speech.v2.RecognitionFeatures} */ - 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.v2.RecognitionFeatures) com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.RecognitionFeatures.class, com.google.cloud.speech.v2.RecognitionFeatures.Builder.class); + com.google.cloud.speech.v2.RecognitionFeatures.class, + com.google.cloud.speech.v2.RecognitionFeatures.Builder.class); } // Construct using com.google.cloud.speech.v2.RecognitionFeatures.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -701,9 +767,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; } @java.lang.Override @@ -722,8 +788,11 @@ public com.google.cloud.speech.v2.RecognitionFeatures build() { @java.lang.Override public com.google.cloud.speech.v2.RecognitionFeatures buildPartial() { - com.google.cloud.speech.v2.RecognitionFeatures result = new com.google.cloud.speech.v2.RecognitionFeatures(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v2.RecognitionFeatures result = + new com.google.cloud.speech.v2.RecognitionFeatures(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -752,9 +821,10 @@ private void buildPartial0(com.google.cloud.speech.v2.RecognitionFeatures result result.multiChannelMode_ = multiChannelMode_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.diarizationConfig_ = diarizationConfigBuilder_ == null - ? diarizationConfig_ - : diarizationConfigBuilder_.build(); + result.diarizationConfig_ = + diarizationConfigBuilder_ == null + ? diarizationConfig_ + : diarizationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.maxAlternatives_ = maxAlternatives_; @@ -765,38 +835,39 @@ private void buildPartial0(com.google.cloud.speech.v2.RecognitionFeatures result 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.v2.RecognitionFeatures) { - return mergeFrom((com.google.cloud.speech.v2.RecognitionFeatures)other); + return mergeFrom((com.google.cloud.speech.v2.RecognitionFeatures) other); } else { super.mergeFrom(other); return this; @@ -858,59 +929,68 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - profanityFilter_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - enableWordTimeOffsets_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - enableWordConfidence_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - enableAutomaticPunctuation_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 74: { - input.readMessage( - getDiarizationConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 74 - case 112: { - enableSpokenPunctuation_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 112 - case 120: { - enableSpokenEmojis_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 120 - case 128: { - maxAlternatives_ = input.readInt32(); - bitField0_ |= 0x00000100; - break; - } // case 128 - case 136: { - multiChannelMode_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 136 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + profanityFilter_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + enableWordTimeOffsets_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + enableWordConfidence_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + enableAutomaticPunctuation_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 74: + { + input.readMessage( + getDiarizationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 112: + { + enableSpokenPunctuation_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 112 + case 120: + { + enableSpokenEmojis_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 120 + case 128: + { + maxAlternatives_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 128 + case 136: + { + multiChannelMode_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 136 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -920,10 +1000,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - 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 with
@@ -932,6 +1015,7 @@ public Builder mergeFrom(
      * 
* * bool profanity_filter = 1; + * * @return The profanityFilter. */ @java.lang.Override @@ -939,6 +1023,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 with
@@ -947,17 +1033,20 @@ public boolean getProfanityFilter() {
      * 
* * bool profanity_filter = 1; + * * @param value The profanityFilter to set. * @return This builder for chaining. */ public Builder setProfanityFilter(boolean value) { - + profanityFilter_ = value; bitField0_ |= 0x00000001; 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 with
@@ -966,6 +1055,7 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 1; + * * @return This builder for chaining. */ public Builder clearProfanityFilter() { @@ -975,8 +1065,10 @@ public Builder clearProfanityFilter() { return this; } - 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 `false`, no word-level time
@@ -984,6 +1076,7 @@ public Builder clearProfanityFilter() {
      * 
* * bool enable_word_time_offsets = 2; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -991,6 +1084,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 `false`, no word-level time
@@ -998,17 +1093,20 @@ public boolean getEnableWordTimeOffsets() {
      * 
* * bool enable_word_time_offsets = 2; + * * @param value The enableWordTimeOffsets to set. * @return This builder for chaining. */ public Builder setEnableWordTimeOffsets(boolean value) { - + enableWordTimeOffsets_ = value; bitField0_ |= 0x00000002; 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 `false`, no word-level time
@@ -1016,6 +1114,7 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 2; + * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { @@ -1025,8 +1124,10 @@ public Builder clearEnableWordTimeOffsets() { 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 information is returned.
@@ -1034,6 +1135,7 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 3; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -1041,6 +1143,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 information is returned.
@@ -1048,17 +1152,20 @@ public boolean getEnableWordConfidence() {
      * 
* * bool enable_word_confidence = 3; + * * @param value The enableWordConfidence to set. * @return This builder for chaining. */ public Builder setEnableWordConfidence(boolean value) { - + enableWordConfidence_ = value; bitField0_ |= 0x00000004; 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 information is returned.
@@ -1066,6 +1173,7 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 3; + * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { @@ -1075,8 +1183,10 @@ public Builder clearEnableWordConfidence() { return this; } - private boolean enableAutomaticPunctuation_ ; + private boolean enableAutomaticPunctuation_; /** + * + * *
      * If `true`, adds punctuation to recognition result hypotheses. This feature
      * is only available in select languages. The default `false` value does not
@@ -1084,6 +1194,7 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 4; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -1091,6 +1202,8 @@ public boolean getEnableAutomaticPunctuation() { return enableAutomaticPunctuation_; } /** + * + * *
      * If `true`, adds punctuation to recognition result hypotheses. This feature
      * is only available in select languages. The default `false` value does not
@@ -1098,17 +1211,20 @@ public boolean getEnableAutomaticPunctuation() {
      * 
* * bool enable_automatic_punctuation = 4; + * * @param value The enableAutomaticPunctuation to set. * @return This builder for chaining. */ public Builder setEnableAutomaticPunctuation(boolean value) { - + enableAutomaticPunctuation_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If `true`, adds punctuation to recognition result hypotheses. This feature
      * is only available in select languages. The default `false` value does not
@@ -1116,6 +1232,7 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 4; + * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { @@ -1125,8 +1242,10 @@ public Builder clearEnableAutomaticPunctuation() { return this; } - private boolean enableSpokenPunctuation_ ; + private boolean enableSpokenPunctuation_; /** + * + * *
      * The spoken punctuation behavior for the call. If `true`, replaces spoken
      * punctuation with the corresponding symbols in the request. For example,
@@ -1136,6 +1255,7 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * bool enable_spoken_punctuation = 14; + * * @return The enableSpokenPunctuation. */ @java.lang.Override @@ -1143,6 +1263,8 @@ public boolean getEnableSpokenPunctuation() { return enableSpokenPunctuation_; } /** + * + * *
      * The spoken punctuation behavior for the call. If `true`, replaces spoken
      * punctuation with the corresponding symbols in the request. For example,
@@ -1152,17 +1274,20 @@ public boolean getEnableSpokenPunctuation() {
      * 
* * bool enable_spoken_punctuation = 14; + * * @param value The enableSpokenPunctuation to set. * @return This builder for chaining. */ public Builder setEnableSpokenPunctuation(boolean value) { - + enableSpokenPunctuation_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * The spoken punctuation behavior for the call. If `true`, replaces spoken
      * punctuation with the corresponding symbols in the request. For example,
@@ -1172,6 +1297,7 @@ public Builder setEnableSpokenPunctuation(boolean value) {
      * 
* * bool enable_spoken_punctuation = 14; + * * @return This builder for chaining. */ public Builder clearEnableSpokenPunctuation() { @@ -1181,8 +1307,10 @@ public Builder clearEnableSpokenPunctuation() { return this; } - private boolean enableSpokenEmojis_ ; + private boolean enableSpokenEmojis_; /** + * + * *
      * The spoken emoji behavior for the call. If `true`, adds spoken emoji
      * formatting for the request. This will replace spoken emojis with the
@@ -1191,6 +1319,7 @@ public Builder clearEnableSpokenPunctuation() {
      * 
* * bool enable_spoken_emojis = 15; + * * @return The enableSpokenEmojis. */ @java.lang.Override @@ -1198,6 +1327,8 @@ public boolean getEnableSpokenEmojis() { return enableSpokenEmojis_; } /** + * + * *
      * The spoken emoji behavior for the call. If `true`, adds spoken emoji
      * formatting for the request. This will replace spoken emojis with the
@@ -1206,17 +1337,20 @@ public boolean getEnableSpokenEmojis() {
      * 
* * bool enable_spoken_emojis = 15; + * * @param value The enableSpokenEmojis to set. * @return This builder for chaining. */ public Builder setEnableSpokenEmojis(boolean value) { - + enableSpokenEmojis_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The spoken emoji behavior for the call. If `true`, adds spoken emoji
      * formatting for the request. This will replace spoken emojis with the
@@ -1225,6 +1359,7 @@ public Builder setEnableSpokenEmojis(boolean value) {
      * 
* * bool enable_spoken_emojis = 15; + * * @return This builder for chaining. */ public Builder clearEnableSpokenEmojis() { @@ -1236,22 +1371,31 @@ public Builder clearEnableSpokenEmojis() { private int multiChannelMode_ = 0; /** + * + * *
      * Mode for recognizing multi-channel audio.
      * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * + * * @return The enum numeric value on the wire for multiChannelMode. */ - @java.lang.Override public int getMultiChannelModeValue() { + @java.lang.Override + public int getMultiChannelModeValue() { return multiChannelMode_; } /** + * + * *
      * Mode for recognizing multi-channel audio.
      * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * + * * @param value The enum numeric value on the wire for multiChannelMode to set. * @return This builder for chaining. */ @@ -1262,28 +1406,41 @@ public Builder setMultiChannelModeValue(int value) { return this; } /** + * + * *
      * Mode for recognizing multi-channel audio.
      * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * + * * @return The multiChannelMode. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode getMultiChannelMode() { - com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode result = com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.forNumber(multiChannelMode_); - return result == null ? com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.UNRECOGNIZED : result; + com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode result = + com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.forNumber( + multiChannelMode_); + return result == null + ? com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.UNRECOGNIZED + : result; } /** + * + * *
      * Mode for recognizing multi-channel audio.
      * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * + * * @param value The multiChannelMode to set. * @return This builder for chaining. */ - public Builder setMultiChannelMode(com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode value) { + public Builder setMultiChannelMode( + com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode value) { if (value == null) { throw new NullPointerException(); } @@ -1293,11 +1450,15 @@ public Builder setMultiChannelMode(com.google.cloud.speech.v2.RecognitionFeature return this; } /** + * + * *
      * Mode for recognizing multi-channel audio.
      * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * + * * @return This builder for chaining. */ public Builder clearMultiChannelMode() { @@ -1309,8 +1470,13 @@ public Builder clearMultiChannelMode() { private com.google.cloud.speech.v2.SpeakerDiarizationConfig diarizationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.SpeakerDiarizationConfig, com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder> diarizationConfigBuilder_; + com.google.cloud.speech.v2.SpeakerDiarizationConfig, + com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder, + com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder> + diarizationConfigBuilder_; /** + * + * *
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1323,12 +1489,15 @@ public Builder clearMultiChannelMode() {
      * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; + * * @return Whether the diarizationConfig field is set. */ public boolean hasDiarizationConfig() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1341,16 +1510,21 @@ public boolean hasDiarizationConfig() {
      * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; + * * @return The diarizationConfig. */ public com.google.cloud.speech.v2.SpeakerDiarizationConfig getDiarizationConfig() { if (diarizationConfigBuilder_ == null) { - return diarizationConfig_ == null ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_; + return diarizationConfig_ == null + ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() + : diarizationConfig_; } else { return diarizationConfigBuilder_.getMessage(); } } /** + * + * *
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1378,6 +1552,8 @@ public Builder setDiarizationConfig(com.google.cloud.speech.v2.SpeakerDiarizatio
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1403,6 +1579,8 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1416,11 +1594,13 @@ public Builder setDiarizationConfig(
      *
      * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9;
      */
-    public Builder mergeDiarizationConfig(com.google.cloud.speech.v2.SpeakerDiarizationConfig value) {
+    public Builder mergeDiarizationConfig(
+        com.google.cloud.speech.v2.SpeakerDiarizationConfig value) {
       if (diarizationConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000080) != 0) &&
-          diarizationConfig_ != null &&
-          diarizationConfig_ != com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000080) != 0)
+            && diarizationConfig_ != null
+            && diarizationConfig_
+                != com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()) {
           getDiarizationConfigBuilder().mergeFrom(value);
         } else {
           diarizationConfig_ = value;
@@ -1433,6 +1613,8 @@ public Builder mergeDiarizationConfig(com.google.cloud.speech.v2.SpeakerDiarizat
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1457,6 +1639,8 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1470,12 +1654,15 @@ public Builder clearDiarizationConfig() {
      *
      * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9;
      */
-    public com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder getDiarizationConfigBuilder() {
+    public com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder
+        getDiarizationConfigBuilder() {
       bitField0_ |= 0x00000080;
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1489,15 +1676,19 @@ public com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder getDiarizatio
      *
      * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9;
      */
-    public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
+    public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder
+        getDiarizationConfigOrBuilder() {
       if (diarizationConfigBuilder_ != null) {
         return diarizationConfigBuilder_.getMessageOrBuilder();
       } else {
-        return diarizationConfig_ == null ?
-            com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_;
+        return diarizationConfig_ == null
+            ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()
+            : diarizationConfig_;
       }
     }
     /**
+     *
+     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1512,21 +1703,26 @@ public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder getDiarizati
      * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.SpeakerDiarizationConfig, com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder> 
+            com.google.cloud.speech.v2.SpeakerDiarizationConfig,
+            com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder,
+            com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder>
         getDiarizationConfigFieldBuilder() {
       if (diarizationConfigBuilder_ == null) {
-        diarizationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.SpeakerDiarizationConfig, com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder>(
-                getDiarizationConfig(),
-                getParentForChildren(),
-                isClean());
+        diarizationConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v2.SpeakerDiarizationConfig,
+                com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder,
+                com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder>(
+                getDiarizationConfig(), getParentForChildren(), isClean());
         diarizationConfig_ = null;
       }
       return diarizationConfigBuilder_;
     }
 
-    private int maxAlternatives_ ;
+    private int maxAlternatives_;
     /**
+     *
+     *
      * 
      * Maximum number of recognition hypotheses to be returned.
      * The server may return fewer than `max_alternatives`.
@@ -1535,6 +1731,7 @@ public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder getDiarizati
      * 
* * int32 max_alternatives = 16; + * * @return The maxAlternatives. */ @java.lang.Override @@ -1542,6 +1739,8 @@ public int getMaxAlternatives() { return maxAlternatives_; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * The server may return fewer than `max_alternatives`.
@@ -1550,17 +1749,20 @@ public int getMaxAlternatives() {
      * 
* * int32 max_alternatives = 16; + * * @param value The maxAlternatives to set. * @return This builder for chaining. */ public Builder setMaxAlternatives(int value) { - + maxAlternatives_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * The server may return fewer than `max_alternatives`.
@@ -1569,6 +1771,7 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 16; + * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { @@ -1577,9 +1780,9 @@ public Builder clearMaxAlternatives() { 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); } @@ -1589,12 +1792,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.RecognitionFeatures) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.RecognitionFeatures) private static final com.google.cloud.speech.v2.RecognitionFeatures DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.RecognitionFeatures(); } @@ -1603,27 +1806,27 @@ public static com.google.cloud.speech.v2.RecognitionFeatures getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionFeatures parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionFeatures parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1638,6 +1841,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.RecognitionFeatures getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java similarity index 86% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java index 8ec8d38ddcb2..30c39ecf7014 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface RecognitionFeaturesOrBuilder extends +public interface RecognitionFeaturesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.RecognitionFeatures) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If set to `true`, the server will attempt to filter out profanities,
    * replacing all but the initial character in each filtered word with
@@ -16,11 +34,14 @@ public interface RecognitionFeaturesOrBuilder extends
    * 
* * bool profanity_filter = 1; + * * @return The profanityFilter. */ boolean getProfanityFilter(); /** + * + * *
    * If `true`, the top result includes a list of words and the start and end
    * time offsets (timestamps) for those words. If `false`, no word-level time
@@ -28,11 +49,14 @@ public interface RecognitionFeaturesOrBuilder extends
    * 
* * bool enable_word_time_offsets = 2; + * * @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 information is returned.
@@ -40,11 +64,14 @@ public interface RecognitionFeaturesOrBuilder extends
    * 
* * bool enable_word_confidence = 3; + * * @return The enableWordConfidence. */ boolean getEnableWordConfidence(); /** + * + * *
    * If `true`, adds punctuation to recognition result hypotheses. This feature
    * is only available in select languages. The default `false` value does not
@@ -52,11 +79,14 @@ public interface RecognitionFeaturesOrBuilder extends
    * 
* * bool enable_automatic_punctuation = 4; + * * @return The enableAutomaticPunctuation. */ boolean getEnableAutomaticPunctuation(); /** + * + * *
    * The spoken punctuation behavior for the call. If `true`, replaces spoken
    * punctuation with the corresponding symbols in the request. For example,
@@ -66,11 +96,14 @@ public interface RecognitionFeaturesOrBuilder extends
    * 
* * bool enable_spoken_punctuation = 14; + * * @return The enableSpokenPunctuation. */ boolean getEnableSpokenPunctuation(); /** + * + * *
    * The spoken emoji behavior for the call. If `true`, adds spoken emoji
    * formatting for the request. This will replace spoken emojis with the
@@ -79,30 +112,41 @@ public interface RecognitionFeaturesOrBuilder extends
    * 
* * bool enable_spoken_emojis = 15; + * * @return The enableSpokenEmojis. */ boolean getEnableSpokenEmojis(); /** + * + * *
    * Mode for recognizing multi-channel audio.
    * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * + * * @return The enum numeric value on the wire for multiChannelMode. */ int getMultiChannelModeValue(); /** + * + * *
    * Mode for recognizing multi-channel audio.
    * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * + * * @return The multiChannelMode. */ com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode getMultiChannelMode(); /** + * + * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -115,10 +159,13 @@ public interface RecognitionFeaturesOrBuilder extends
    * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; + * * @return Whether the diarizationConfig field is set. */ boolean hasDiarizationConfig(); /** + * + * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -131,10 +178,13 @@ public interface RecognitionFeaturesOrBuilder extends
    * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; + * * @return The diarizationConfig. */ com.google.cloud.speech.v2.SpeakerDiarizationConfig getDiarizationConfig(); /** + * + * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -151,6 +201,8 @@ public interface RecognitionFeaturesOrBuilder extends
   com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Maximum number of recognition hypotheses to be returned.
    * The server may return fewer than `max_alternatives`.
@@ -159,6 +211,7 @@ public interface RecognitionFeaturesOrBuilder extends
    * 
* * int32 max_alternatives = 16; + * * @return The maxAlternatives. */ int getMaxAlternatives(); diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java similarity index 65% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java index 31df72758f44..68ee8f710800 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Metadata about the recognition request and response.
  * 
* * Protobuf type {@code google.cloud.speech.v2.RecognitionResponseMetadata} */ -public final class RecognitionResponseMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RecognitionResponseMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.RecognitionResponseMetadata) RecognitionResponseMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RecognitionResponseMetadata.newBuilder() to construct. private RecognitionResponseMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RecognitionResponseMetadata() { - } + + private RecognitionResponseMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RecognitionResponseMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.RecognitionResponseMetadata.class, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder.class); + com.google.cloud.speech.v2.RecognitionResponseMetadata.class, + com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder.class); } public static final int TOTAL_BILLED_DURATION_FIELD_NUMBER = 6; private com.google.protobuf.Duration totalBilledDuration_; /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_duration = 6; + * * @return Whether the totalBilledDuration field is set. */ @java.lang.Override @@ -62,18 +83,25 @@ public boolean hasTotalBilledDuration() { return totalBilledDuration_ != null; } /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_duration = 6; + * * @return The totalBilledDuration. */ @java.lang.Override public com.google.protobuf.Duration getTotalBilledDuration() { - return totalBilledDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledDuration_; + return totalBilledDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledDuration_; } /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -82,10 +110,13 @@ public com.google.protobuf.Duration getTotalBilledDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalBilledDurationOrBuilder() { - return totalBilledDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledDuration_; + return totalBilledDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledDuration_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,8 +128,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 (totalBilledDuration_ != null) { output.writeMessage(6, getTotalBilledDuration()); } @@ -112,8 +142,7 @@ public int getSerializedSize() { size = 0; if (totalBilledDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getTotalBilledDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTotalBilledDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -123,17 +152,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.v2.RecognitionResponseMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v2.RecognitionResponseMetadata other = (com.google.cloud.speech.v2.RecognitionResponseMetadata) obj; + com.google.cloud.speech.v2.RecognitionResponseMetadata other = + (com.google.cloud.speech.v2.RecognitionResponseMetadata) obj; if (hasTotalBilledDuration() != other.hasTotalBilledDuration()) return false; if (hasTotalBilledDuration()) { - if (!getTotalBilledDuration() - .equals(other.getTotalBilledDuration())) return false; + if (!getTotalBilledDuration().equals(other.getTotalBilledDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -156,129 +185,136 @@ public int hashCode() { } public static com.google.cloud.speech.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.RecognitionResponseMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.RecognitionResponseMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v2.RecognitionResponseMetadata 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; } /** + * + * *
    * Metadata about the recognition request and response.
    * 
* * Protobuf type {@code google.cloud.speech.v2.RecognitionResponseMetadata} */ - 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.v2.RecognitionResponseMetadata) com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.RecognitionResponseMetadata.class, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder.class); + com.google.cloud.speech.v2.RecognitionResponseMetadata.class, + com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder.class); } // Construct using com.google.cloud.speech.v2.RecognitionResponseMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +328,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; } @java.lang.Override @@ -313,8 +349,11 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata build() { @java.lang.Override public com.google.cloud.speech.v2.RecognitionResponseMetadata buildPartial() { - com.google.cloud.speech.v2.RecognitionResponseMetadata result = new com.google.cloud.speech.v2.RecognitionResponseMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v2.RecognitionResponseMetadata result = + new com.google.cloud.speech.v2.RecognitionResponseMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -322,9 +361,10 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata buildPartial() { private void buildPartial0(com.google.cloud.speech.v2.RecognitionResponseMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.totalBilledDuration_ = totalBilledDurationBuilder_ == null - ? totalBilledDuration_ - : totalBilledDurationBuilder_.build(); + result.totalBilledDuration_ = + totalBilledDurationBuilder_ == null + ? totalBilledDuration_ + : totalBilledDurationBuilder_.build(); } } @@ -332,38 +372,39 @@ private void buildPartial0(com.google.cloud.speech.v2.RecognitionResponseMetadat 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.v2.RecognitionResponseMetadata) { - return mergeFrom((com.google.cloud.speech.v2.RecognitionResponseMetadata)other); + return mergeFrom((com.google.cloud.speech.v2.RecognitionResponseMetadata) other); } else { super.mergeFrom(other); return this; @@ -371,7 +412,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.RecognitionResponseMetadata other) { - if (other == com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) + return this; if (other.hasTotalBilledDuration()) { mergeTotalBilledDuration(other.getTotalBilledDuration()); } @@ -401,19 +443,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 50: { - input.readMessage( - getTotalBilledDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 50: + { + input.readMessage( + getTotalBilledDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,38 +466,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Duration totalBilledDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + totalBilledDurationBuilder_; /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_duration = 6; + * * @return Whether the totalBilledDuration field is set. */ public boolean hasTotalBilledDuration() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_duration = 6; + * * @return The totalBilledDuration. */ public com.google.protobuf.Duration getTotalBilledDuration() { if (totalBilledDurationBuilder_ == null) { - return totalBilledDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledDuration_; + return totalBilledDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledDuration_; } else { return totalBilledDurationBuilder_.getMessage(); } } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -475,14 +532,15 @@ public Builder setTotalBilledDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_duration = 6; */ - public Builder setTotalBilledDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledDuration(com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledDurationBuilder_ == null) { totalBilledDuration_ = builderForValue.build(); } else { @@ -493,6 +551,8 @@ public Builder setTotalBilledDuration( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -501,9 +561,9 @@ public Builder setTotalBilledDuration( */ public Builder mergeTotalBilledDuration(com.google.protobuf.Duration value) { if (totalBilledDurationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - totalBilledDuration_ != null && - totalBilledDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && totalBilledDuration_ != null + && totalBilledDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getTotalBilledDurationBuilder().mergeFrom(value); } else { totalBilledDuration_ = value; @@ -516,6 +576,8 @@ public Builder mergeTotalBilledDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -533,6 +595,8 @@ public Builder clearTotalBilledDuration() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -545,6 +609,8 @@ public com.google.protobuf.Duration.Builder getTotalBilledDurationBuilder() { return getTotalBilledDurationFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -555,11 +621,14 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledDurationOrBuilder() { if (totalBilledDurationBuilder_ != null) { return totalBilledDurationBuilder_.getMessageOrBuilder(); } else { - return totalBilledDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : totalBilledDuration_; + return totalBilledDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledDuration_; } } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -567,21 +636,24 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledDurationOrBuilder() { * .google.protobuf.Duration total_billed_duration = 6; */ 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> getTotalBilledDurationFieldBuilder() { if (totalBilledDurationBuilder_ == null) { - totalBilledDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTotalBilledDuration(), - getParentForChildren(), - isClean()); + totalBilledDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTotalBilledDuration(), getParentForChildren(), isClean()); totalBilledDuration_ = null; } return totalBilledDurationBuilder_; } + @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); } @@ -591,12 +663,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.RecognitionResponseMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.RecognitionResponseMetadata) private static final com.google.cloud.speech.v2.RecognitionResponseMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.RecognitionResponseMetadata(); } @@ -605,27 +677,27 @@ public static com.google.cloud.speech.v2.RecognitionResponseMetadata getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionResponseMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionResponseMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,6 +712,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v2.RecognitionResponseMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java similarity index 61% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java index 57a50491e2fe..255a0a27c77f 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java @@ -1,31 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface RecognitionResponseMetadataOrBuilder extends +public interface RecognitionResponseMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.RecognitionResponseMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_duration = 6; + * * @return Whether the totalBilledDuration field is set. */ boolean hasTotalBilledDuration(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_duration = 6; + * * @return The totalBilledDuration. */ com.google.protobuf.Duration getTotalBilledDuration(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java similarity index 78% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java index b2f131321dcc..bde61a78d3dd 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [Recognize][google.cloud.speech.v2.Speech.Recognize] method. Either
@@ -14,53 +31,58 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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() {
     recognizer_ = "";
   }
 
   @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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.RecognizeRequest.class, com.google.cloud.speech.v2.RecognizeRequest.Builder.class);
+            com.google.cloud.speech.v2.RecognizeRequest.class,
+            com.google.cloud.speech.v2.RecognizeRequest.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(5),
     URI(6),
     AUDIOSOURCE_NOT_SET(0);
     private final int value;
+
     private AudioSourceCase(int value) {
       this.value = value;
     }
@@ -76,34 +98,43 @@ public static AudioSourceCase valueOf(int value) {
 
     public static AudioSourceCase forNumber(int value) {
       switch (value) {
-        case 5: return CONTENT;
-        case 6: return URI;
-        case 0: return AUDIOSOURCE_NOT_SET;
-        default: return null;
+        case 5:
+          return CONTENT;
+        case 6:
+          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 RECOGNIZER_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object recognizer_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the Recognizer to use during recognition. The
    * expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The recognizer. */ @java.lang.Override @@ -112,31 +143,33 @@ public java.lang.String getRecognizer() { 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(); recognizer_ = s; return s; } } /** + * + * *
    * Required. The name of the Recognizer to use during recognition. The
    * expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for recognizer. */ @java.lang.Override - public com.google.protobuf.ByteString - getRecognizerBytes() { + public com.google.protobuf.ByteString getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -147,6 +180,8 @@ public java.lang.String getRecognizer() { public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v2.RecognitionConfig config_; /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -157,6 +192,7 @@ public java.lang.String getRecognizer() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; + * * @return Whether the config field is set. */ @java.lang.Override @@ -164,6 +200,8 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -174,13 +212,18 @@ public boolean hasConfig() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -194,12 +237,16 @@ public com.google.cloud.speech.v2.RecognitionConfig getConfig() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder() {
-    return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
+    return config_ == null
+        ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
+        : config_;
   }
 
   public static final int CONFIG_MASK_FIELD_NUMBER = 8;
   private com.google.protobuf.FieldMask configMask_;
   /**
+   *
+   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -217,6 +264,7 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * .google.protobuf.FieldMask config_mask = 8; + * * @return Whether the configMask field is set. */ @java.lang.Override @@ -224,6 +272,8 @@ public boolean hasConfigMask() { return configMask_ != null; } /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -241,6 +291,7 @@ public boolean hasConfigMask() {
    * 
* * .google.protobuf.FieldMask config_mask = 8; + * * @return The configMask. */ @java.lang.Override @@ -248,6 +299,8 @@ public com.google.protobuf.FieldMask getConfigMask() { return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -273,6 +326,8 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
 
   public static final int CONTENT_FIELD_NUMBER = 5;
   /**
+   *
+   *
    * 
    * The audio data bytes encoded as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -281,6 +336,7 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
    * 
* * bytes content = 5; + * * @return Whether the content field is set. */ @java.lang.Override @@ -288,6 +344,8 @@ public boolean hasContent() { return audioSourceCase_ == 5; } /** + * + * *
    * The audio data bytes encoded as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -296,6 +354,7 @@ public boolean hasContent() {
    * 
* * bytes content = 5; + * * @return The content. */ @java.lang.Override @@ -308,6 +367,8 @@ public com.google.protobuf.ByteString getContent() { public static final int URI_FIELD_NUMBER = 6; /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -320,12 +381,15 @@ public com.google.protobuf.ByteString getContent() {
    * 
* * string uri = 6; + * * @return Whether the uri field is set. */ public boolean hasUri() { return audioSourceCase_ == 6; } /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -338,6 +402,7 @@ public boolean hasUri() {
    * 
* * string uri = 6; + * * @return The uri. */ public java.lang.String getUri() { @@ -348,8 +413,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_ == 6) { audioSource_ = s; @@ -358,6 +422,8 @@ public java.lang.String getUri() { } } /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -370,18 +436,17 @@ public java.lang.String getUri() {
    * 
* * string uri = 6; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; if (audioSourceCase_ == 6) { 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_ == 6) { audioSource_ = b; } @@ -392,6 +457,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -403,8 +469,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()); } @@ -412,8 +477,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 3, recognizer_); } if (audioSourceCase_ == 5) { - output.writeBytes( - 5, (com.google.protobuf.ByteString) audioSource_); + output.writeBytes(5, (com.google.protobuf.ByteString) audioSource_); } if (audioSourceCase_ == 6) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, audioSource_); @@ -431,23 +495,21 @@ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recognizer_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, recognizer_); } if (audioSourceCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 5, (com.google.protobuf.ByteString) audioSource_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 5, (com.google.protobuf.ByteString) audioSource_); } if (audioSourceCase_ == 6) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, audioSource_); } if (configMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getConfigMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getConfigMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -457,34 +519,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.v2.RecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.RecognizeRequest other = (com.google.cloud.speech.v2.RecognizeRequest) obj; + com.google.cloud.speech.v2.RecognizeRequest other = + (com.google.cloud.speech.v2.RecognizeRequest) obj; - if (!getRecognizer() - .equals(other.getRecognizer())) return false; + if (!getRecognizer().equals(other.getRecognizer())) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (hasConfigMask() != other.hasConfigMask()) return false; if (hasConfigMask()) { - if (!getConfigMask() - .equals(other.getConfigMask())) return false; + if (!getConfigMask().equals(other.getConfigMask())) return false; } if (!getAudioSourceCase().equals(other.getAudioSourceCase())) return false; switch (audioSourceCase_) { case 5: - if (!getContent() - .equals(other.getContent())) return false; + if (!getContent().equals(other.getContent())) return false; break; case 6: - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; break; case 0: default: @@ -527,97 +585,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.RecognizeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.RecognizeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.RecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.RecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.RecognizeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.RecognizeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [Recognize][google.cloud.speech.v2.Speech.Recognize] method. Either
@@ -628,33 +693,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.RecognizeRequest)
       com.google.cloud.speech.v2.RecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.RecognizeRequest.class, com.google.cloud.speech.v2.RecognizeRequest.Builder.class);
+              com.google.cloud.speech.v2.RecognizeRequest.class,
+              com.google.cloud.speech.v2.RecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.RecognizeRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -676,9 +740,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -697,8 +761,11 @@ public com.google.cloud.speech.v2.RecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.RecognizeRequest buildPartial() {
-      com.google.cloud.speech.v2.RecognizeRequest result = new com.google.cloud.speech.v2.RecognizeRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.RecognizeRequest result =
+          new com.google.cloud.speech.v2.RecognizeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -710,14 +777,10 @@ private void buildPartial0(com.google.cloud.speech.v2.RecognizeRequest result) {
         result.recognizer_ = recognizer_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.config_ = configBuilder_ == null
-            ? config_
-            : configBuilder_.build();
+        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.configMask_ = configMaskBuilder_ == null
-            ? configMask_
-            : configMaskBuilder_.build();
+        result.configMask_ = configMaskBuilder_ == null ? configMask_ : configMaskBuilder_.build();
       }
     }
 
@@ -730,38 +793,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.RecognizeRequest resu
     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.v2.RecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.RecognizeRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.RecognizeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -782,19 +846,22 @@ public Builder mergeFrom(com.google.cloud.speech.v2.RecognizeRequest other) {
         mergeConfigMask(other.getConfigMask());
       }
       switch (other.getAudioSourceCase()) {
-        case CONTENT: {
-          setContent(other.getContent());
-          break;
-        }
-        case URI: {
-          audioSourceCase_ = 6;
-          audioSource_ = other.audioSource_;
-          onChanged();
-          break;
-        }
-        case AUDIOSOURCE_NOT_SET: {
-          break;
-        }
+        case CONTENT:
+          {
+            setContent(other.getContent());
+            break;
+          }
+        case URI:
+          {
+            audioSourceCase_ = 6;
+            audioSource_ = other.audioSource_;
+            onChanged();
+            break;
+          }
+        case AUDIOSOURCE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -822,42 +889,44 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 10
-            case 26: {
-              recognizer_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 26
-            case 42: {
-              audioSource_ = input.readBytes();
-              audioSourceCase_ = 5;
-              break;
-            } // case 42
-            case 50: {
-              java.lang.String s = input.readStringRequireUtf8();
-              audioSourceCase_ = 6;
-              audioSource_ = s;
-              break;
-            } // case 50
-            case 66: {
-              input.readMessage(
-                  getConfigMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 66
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 10
+            case 26:
+              {
+                recognizer_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 26
+            case 42:
+              {
+                audioSource_ = input.readBytes();
+                audioSourceCase_ = 5;
+                break;
+              } // case 42
+            case 50:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                audioSourceCase_ = 6;
+                audioSource_ = s;
+                break;
+              } // case 50
+            case 66:
+              {
+                input.readMessage(getConfigMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 66
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -867,12 +936,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -886,20 +955,24 @@ public Builder clearAudioSource() {
 
     private java.lang.Object recognizer_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the Recognizer to use during recognition. The
      * expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The recognizer. */ public java.lang.String getRecognizer() { java.lang.Object ref = recognizer_; 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(); recognizer_ = s; return s; @@ -908,22 +981,25 @@ public java.lang.String getRecognizer() { } } /** + * + * *
      * Required. The name of the Recognizer to use during recognition. The
      * expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for recognizer. */ - public com.google.protobuf.ByteString - getRecognizerBytes() { + public com.google.protobuf.ByteString getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -931,32 +1007,43 @@ public java.lang.String getRecognizer() { } } /** + * + * *
      * Required. The name of the Recognizer to use during recognition. The
      * expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizer( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecognizer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } recognizer_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the Recognizer to use during recognition. The
      * expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearRecognizer() { @@ -966,19 +1053,25 @@ public Builder clearRecognizer() { return this; } /** + * + * *
      * Required. The name of the Recognizer to use during recognition. The
      * expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecognizerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); recognizer_ = value; bitField0_ |= 0x00000001; @@ -988,8 +1081,13 @@ public Builder setRecognizerBytes( private com.google.cloud.speech.v2.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> configBuilder_; + com.google.cloud.speech.v2.RecognitionConfig, + com.google.cloud.speech.v2.RecognitionConfig.Builder, + com.google.cloud.speech.v2.RecognitionConfigOrBuilder> + configBuilder_; /** + * + * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1000,12 +1098,15 @@ public Builder setRecognizerBytes(
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; + * * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1016,16 +1117,21 @@ public boolean hasConfig() {
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; + * * @return The config. */ public com.google.cloud.speech.v2.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1051,6 +1157,8 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1062,8 +1170,7 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
      *
      * .google.cloud.speech.v2.RecognitionConfig config = 1;
      */
-    public Builder setConfig(
-        com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
+    public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
       if (configBuilder_ == null) {
         config_ = builderForValue.build();
       } else {
@@ -1074,6 +1181,8 @@ public Builder setConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1087,9 +1196,9 @@ public Builder setConfig(
      */
     public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       if (configBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          config_ != null &&
-          config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && config_ != null
+            && config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
           getConfigBuilder().mergeFrom(value);
         } else {
           config_ = value;
@@ -1102,6 +1211,8 @@ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1124,6 +1235,8 @@ public Builder clearConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1141,6 +1254,8 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() {
       return getConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1156,11 +1271,14 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
       if (configBuilder_ != null) {
         return configBuilder_.getMessageOrBuilder();
       } else {
-        return config_ == null ?
-            com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
+        return config_ == null
+            ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
+            : config_;
       }
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1173,14 +1291,17 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * .google.cloud.speech.v2.RecognitionConfig config = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> 
+            com.google.cloud.speech.v2.RecognitionConfig,
+            com.google.cloud.speech.v2.RecognitionConfig.Builder,
+            com.google.cloud.speech.v2.RecognitionConfigOrBuilder>
         getConfigFieldBuilder() {
       if (configBuilder_ == null) {
-        configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
-                getConfig(),
-                getParentForChildren(),
-                isClean());
+        configBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v2.RecognitionConfig,
+                com.google.cloud.speech.v2.RecognitionConfig.Builder,
+                com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
+                getConfig(), getParentForChildren(), isClean());
         config_ = null;
       }
       return configBuilder_;
@@ -1188,8 +1309,13 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
 
     private com.google.protobuf.FieldMask configMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> configMaskBuilder_;
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
+        configMaskBuilder_;
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1207,12 +1333,15 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * .google.protobuf.FieldMask config_mask = 8; + * * @return Whether the configMask field is set. */ public boolean hasConfigMask() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1230,16 +1359,21 @@ public boolean hasConfigMask() {
      * 
* * .google.protobuf.FieldMask config_mask = 8; + * * @return The configMask. */ public com.google.protobuf.FieldMask getConfigMask() { if (configMaskBuilder_ == null) { - return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; + return configMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : configMask_; } else { return configMaskBuilder_.getMessage(); } } /** + * + * *
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1272,6 +1406,8 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1290,8 +1426,7 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask config_mask = 8;
      */
-    public Builder setConfigMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (configMaskBuilder_ == null) {
         configMask_ = builderForValue.build();
       } else {
@@ -1302,6 +1437,8 @@ public Builder setConfigMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1322,9 +1459,9 @@ public Builder setConfigMask(
      */
     public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       if (configMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          configMask_ != null &&
-          configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && configMask_ != null
+            && configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getConfigMaskBuilder().mergeFrom(value);
         } else {
           configMask_ = value;
@@ -1337,6 +1474,8 @@ public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1366,6 +1505,8 @@ public Builder clearConfigMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1390,6 +1531,8 @@ public com.google.protobuf.FieldMask.Builder getConfigMaskBuilder() {
       return getConfigMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1412,11 +1555,14 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
       if (configMaskBuilder_ != null) {
         return configMaskBuilder_.getMessageOrBuilder();
       } else {
-        return configMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : configMask_;
+        return configMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : configMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1436,20 +1582,25 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
      * .google.protobuf.FieldMask config_mask = 8;
      */
     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>
         getConfigMaskFieldBuilder() {
       if (configMaskBuilder_ == null) {
-        configMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getConfigMask(),
-                getParentForChildren(),
-                isClean());
+        configMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getConfigMask(), getParentForChildren(), isClean());
         configMask_ = null;
       }
       return configMaskBuilder_;
     }
 
     /**
+     *
+     *
      * 
      * The audio data bytes encoded as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -1458,12 +1609,15 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
      * 
* * bytes content = 5; + * * @return Whether the content field is set. */ public boolean hasContent() { return audioSourceCase_ == 5; } /** + * + * *
      * The audio data bytes encoded as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -1472,6 +1626,7 @@ public boolean hasContent() {
      * 
* * bytes content = 5; + * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -1481,6 +1636,8 @@ public com.google.protobuf.ByteString getContent() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * The audio data bytes encoded as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -1489,17 +1646,22 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 5; + * * @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(); } + if (value == null) { + throw new NullPointerException(); + } audioSourceCase_ = 5; audioSource_ = value; onChanged(); return this; } /** + * + * *
      * The audio data bytes encoded as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -1508,6 +1670,7 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 5; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -1520,6 +1683,8 @@ public Builder clearContent() { } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1532,6 +1697,7 @@ public Builder clearContent() {
      * 
* * string uri = 6; + * * @return Whether the uri field is set. */ @java.lang.Override @@ -1539,6 +1705,8 @@ public boolean hasUri() { return audioSourceCase_ == 6; } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1551,6 +1719,7 @@ public boolean hasUri() {
      * 
* * string uri = 6; + * * @return The uri. */ @java.lang.Override @@ -1560,8 +1729,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_ == 6) { audioSource_ = s; @@ -1572,6 +1740,8 @@ public java.lang.String getUri() { } } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1584,19 +1754,18 @@ public java.lang.String getUri() {
      * 
* * string uri = 6; + * * @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_ == 6) { 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_ == 6) { audioSource_ = b; } @@ -1606,6 +1775,8 @@ public java.lang.String getUri() { } } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1618,18 +1789,22 @@ public java.lang.String getUri() {
      * 
* * string uri = 6; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } audioSourceCase_ = 6; audioSource_ = value; onChanged(); return this; } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1642,6 +1817,7 @@ public Builder setUri(
      * 
* * string uri = 6; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -1653,6 +1829,8 @@ public Builder clearUri() { return this; } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1665,21 +1843,23 @@ public Builder clearUri() {
      * 
* * string uri = 6; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); audioSourceCase_ = 6; 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); } @@ -1689,12 +1869,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.RecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.RecognizeRequest) private static final com.google.cloud.speech.v2.RecognizeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.RecognizeRequest(); } @@ -1703,27 +1883,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1738,6 +1918,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java similarity index 87% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java index 95e18c535b8d..9ee6e525fe6f 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java @@ -1,37 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface RecognizeRequestOrBuilder extends +public interface RecognizeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.RecognizeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Recognizer to use during recognition. The
    * expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The recognizer. */ java.lang.String getRecognizer(); /** + * + * *
    * Required. The name of the Recognizer to use during recognition. The
    * expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for recognizer. */ - com.google.protobuf.ByteString - getRecognizerBytes(); + com.google.protobuf.ByteString getRecognizerBytes(); /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -42,10 +69,13 @@ public interface RecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -56,10 +86,13 @@ public interface RecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; + * * @return The config. */ com.google.cloud.speech.v2.RecognitionConfig getConfig(); /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -74,6 +107,8 @@ public interface RecognizeRequestOrBuilder extends
   com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -91,10 +126,13 @@ public interface RecognizeRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask config_mask = 8; + * * @return Whether the configMask field is set. */ boolean hasConfigMask(); /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -112,10 +150,13 @@ public interface RecognizeRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask config_mask = 8; + * * @return The configMask. */ com.google.protobuf.FieldMask getConfigMask(); /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -137,6 +178,8 @@ public interface RecognizeRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * The audio data bytes encoded as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -145,10 +188,13 @@ public interface RecognizeRequestOrBuilder extends
    * 
* * bytes content = 5; + * * @return Whether the content field is set. */ boolean hasContent(); /** + * + * *
    * The audio data bytes encoded as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -157,11 +203,14 @@ public interface RecognizeRequestOrBuilder extends
    * 
* * bytes content = 5; + * * @return The content. */ com.google.protobuf.ByteString getContent(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -174,10 +223,13 @@ public interface RecognizeRequestOrBuilder extends
    * 
* * string uri = 6; + * * @return Whether the uri field is set. */ boolean hasUri(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -190,10 +242,13 @@ public interface RecognizeRequestOrBuilder extends
    * 
* * string uri = 6; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -206,10 +261,10 @@ public interface RecognizeRequestOrBuilder extends
    * 
* * string uri = 6; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); public com.google.cloud.speech.v2.RecognizeRequest.AudioSourceCase getAudioSourceCase(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java similarity index 72% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java index 6c4951c641b0..98d3c7db0997 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Response message for the
  * [Recognize][google.cloud.speech.v2.Speech.Recognize] method.
@@ -11,48 +28,53 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.RecognizeResponse.class, com.google.cloud.speech.v2.RecognizeResponse.Builder.class);
+            com.google.cloud.speech.v2.RecognizeResponse.class,
+            com.google.cloud.speech.v2.RecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to sequential
    * portions of audio.
@@ -65,6 +87,8 @@ public java.util.List getRes
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to sequential
    * portions of audio.
@@ -73,11 +97,13 @@ public java.util.List getRes
    * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
    */
   @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.
@@ -90,6 +116,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to sequential
    * portions of audio.
@@ -102,6 +130,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult getResults(int index)
     return results_.get(index);
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to sequential
    * portions of audio.
@@ -118,11 +148,14 @@ public com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrB
   public static final int METADATA_FIELD_NUMBER = 2;
   private com.google.cloud.speech.v2.RecognitionResponseMetadata metadata_;
   /**
+   *
+   *
    * 
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; + * * @return Whether the metadata field is set. */ @java.lang.Override @@ -130,18 +163,25 @@ public boolean hasMetadata() { return metadata_ != null; } /** + * + * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; + * * @return The metadata. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { - return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() + : metadata_; } /** + * + * *
    * Metadata about the recognition.
    * 
@@ -150,10 +190,13 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() + : metadata_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -165,8 +208,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 (metadata_ != null) { output.writeMessage(2, getMetadata()); } @@ -183,12 +225,10 @@ public int getSerializedSize() { size = 0; if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetadata()); } for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, results_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -198,19 +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.v2.RecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.RecognizeResponse other = (com.google.cloud.speech.v2.RecognizeResponse) obj; + com.google.cloud.speech.v2.RecognizeResponse other = + (com.google.cloud.speech.v2.RecognizeResponse) obj; - if (!getResultsList() - .equals(other.getResultsList())) return false; + if (!getResultsList().equals(other.getResultsList())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -236,97 +275,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.RecognizeResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.RecognizeResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.RecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.RecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.RecognizeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.RecognizeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Response message for the
    * [Recognize][google.cloud.speech.v2.Speech.Recognize] method.
@@ -334,33 +380,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.RecognizeResponse)
       com.google.cloud.speech.v2.RecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.RecognizeResponse.class, com.google.cloud.speech.v2.RecognizeResponse.Builder.class);
+              com.google.cloud.speech.v2.RecognizeResponse.class,
+              com.google.cloud.speech.v2.RecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.RecognizeResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -381,9 +426,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
@@ -402,9 +447,12 @@ public com.google.cloud.speech.v2.RecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.RecognizeResponse buildPartial() {
-      com.google.cloud.speech.v2.RecognizeResponse result = new com.google.cloud.speech.v2.RecognizeResponse(this);
+      com.google.cloud.speech.v2.RecognizeResponse result =
+          new com.google.cloud.speech.v2.RecognizeResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -424,9 +472,7 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v2.RecognizeResp
     private void buildPartial0(com.google.cloud.speech.v2.RecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.metadata_ = metadataBuilder_ == null
-            ? metadata_
-            : metadataBuilder_.build();
+        result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
       }
     }
 
@@ -434,38 +480,39 @@ private void buildPartial0(com.google.cloud.speech.v2.RecognizeResponse result)
     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.v2.RecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.RecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v2.RecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -492,9 +539,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_);
           }
@@ -529,32 +577,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18: {
-              input.readMessage(
-                  getMetadataFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              com.google.cloud.speech.v2.SpeechRecognitionResult m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.SpeechRecognitionResult.parser(),
-                      extensionRegistry);
-              if (resultsBuilder_ == null) {
-                ensureResultsIsMutable();
-                results_.add(m);
-              } else {
-                resultsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 18:
+              {
+                input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                com.google.cloud.speech.v2.SpeechRecognitionResult m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.SpeechRecognitionResult.parser(),
+                        extensionRegistry);
+                if (resultsBuilder_ == null) {
+                  ensureResultsIsMutable();
+                  results_.add(m);
+                } else {
+                  resultsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -564,21 +613,29 @@ public Builder mergeFrom(
       } // finally
       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.v2.SpeechRecognitionResult, com.google.cloud.speech.v2.SpeechRecognitionResult.Builder, com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v2.SpeechRecognitionResult,
+            com.google.cloud.speech.v2.SpeechRecognitionResult.Builder,
+            com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -594,6 +651,8 @@ public java.util.List getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -609,6 +668,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -624,6 +685,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -631,8 +694,7 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult getResults(int index)
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public Builder setResults(
-        int index, com.google.cloud.speech.v2.SpeechRecognitionResult value) {
+    public Builder setResults(int index, com.google.cloud.speech.v2.SpeechRecognitionResult value) {
       if (resultsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -646,6 +708,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -665,6 +729,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -686,6 +752,8 @@ public Builder addResults(com.google.cloud.speech.v2.SpeechRecognitionResult val
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -693,8 +761,7 @@ public Builder addResults(com.google.cloud.speech.v2.SpeechRecognitionResult val
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public Builder addResults(
-        int index, com.google.cloud.speech.v2.SpeechRecognitionResult value) {
+    public Builder addResults(int index, com.google.cloud.speech.v2.SpeechRecognitionResult value) {
       if (resultsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -708,6 +775,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -727,6 +796,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -746,6 +817,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -757,8 +830,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);
@@ -766,6 +838,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -784,6 +858,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -802,6 +878,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -809,11 +887,12 @@ public Builder removeResults(int index) {
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder getResultsBuilder(
-        int index) {
+    public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder getResultsBuilder(int index) {
       return getResultsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -824,11 +903,14 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder getResultsBuil
     public com.google.cloud.speech.v2.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.
@@ -836,8 +918,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrB
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public java.util.List 
-         getResultsOrBuilderList() {
+    public java.util.List
+        getResultsOrBuilderList() {
       if (resultsBuilder_ != null) {
         return resultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -845,6 +927,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -853,10 +937,12 @@ public com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrB
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
     public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuilder() {
-      return getResultsFieldBuilder().addBuilder(
-          com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -864,12 +950,14 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuil
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuilder(
-        int index) {
-      return getResultsFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance());
+    public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuilder(int index) {
+      return getResultsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -877,20 +965,23 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuil
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public java.util.List 
-         getResultsBuilderList() {
+    public java.util.List
+        getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v2.SpeechRecognitionResult, com.google.cloud.speech.v2.SpeechRecognitionResult.Builder, com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder> 
+            com.google.cloud.speech.v2.SpeechRecognitionResult,
+            com.google.cloud.speech.v2.SpeechRecognitionResult.Builder,
+            com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder>
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.SpeechRecognitionResult, com.google.cloud.speech.v2.SpeechRecognitionResult.Builder, com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder>(
-                results_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        resultsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v2.SpeechRecognitionResult,
+                com.google.cloud.speech.v2.SpeechRecognitionResult.Builder,
+                com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder>(
+                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -898,34 +989,47 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuil
 
     private com.google.cloud.speech.v2.RecognitionResponseMetadata metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> metadataBuilder_;
+            com.google.cloud.speech.v2.RecognitionResponseMetadata,
+            com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder,
+            com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder>
+        metadataBuilder_;
     /**
+     *
+     *
      * 
      * Metadata about the recognition.
      * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; + * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Metadata about the recognition.
      * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; + * * @return The metadata. */ public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() + : metadata_; } else { return metadataBuilder_.getMessage(); } } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -946,6 +1050,8 @@ public Builder setMetadata(com.google.cloud.speech.v2.RecognitionResponseMetadat return this; } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -964,6 +1070,8 @@ public Builder setMetadata( return this; } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -972,9 +1080,10 @@ public Builder setMetadata( */ public Builder mergeMetadata(com.google.cloud.speech.v2.RecognitionResponseMetadata value) { if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - metadata_ != null && - metadata_ != com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; @@ -987,6 +1096,8 @@ public Builder mergeMetadata(com.google.cloud.speech.v2.RecognitionResponseMetad return this; } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1004,6 +1115,8 @@ public Builder clearMetadata() { return this; } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1016,6 +1129,8 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder getMetadat return getMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1026,11 +1141,14 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetada if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { - return metadata_ == null ? - com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() + : metadata_; } } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1038,21 +1156,24 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetada * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> + com.google.cloud.speech.v2.RecognitionResponseMetadata, + com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, + com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.RecognitionResponseMetadata, + com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, + com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } + @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); } @@ -1062,12 +1183,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.RecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.RecognizeResponse) private static final com.google.cloud.speech.v2.RecognizeResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.RecognizeResponse(); } @@ -1076,27 +1197,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1111,6 +1232,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java index 494d96c78e8b..8d6bea8f3a5d 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface RecognizeResponseOrBuilder extends +public interface RecognizeResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.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.v2.SpeechRecognitionResult results = 3;
    */
-  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.v2.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.v2.SpeechRecognitionResult results = 3;
    */
-  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.v2.SpeechRecognitionResult results = 3;
    */
-  com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
-      int index);
+  com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; + * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** + * + * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; + * * @return The metadata. */ com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata(); /** + * + * *
    * Metadata about the recognition.
    * 
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java similarity index 71% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java index f370142d2ee0..070ca69b04ab 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * A Recognizer message. Stores recognition configuration and metadata.
  * 
* * Protobuf type {@code google.cloud.speech.v2.Recognizer} */ -public final class Recognizer extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Recognizer extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.Recognizer) RecognizerOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Recognizer.newBuilder() to construct. private Recognizer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Recognizer() { name_ = ""; uid_ = ""; @@ -33,51 +51,54 @@ private Recognizer() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Recognizer(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_Recognizer_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 7: return internalGetAnnotations(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.Recognizer.class, com.google.cloud.speech.v2.Recognizer.Builder.class); + com.google.cloud.speech.v2.Recognizer.class, + com.google.cloud.speech.v2.Recognizer.Builder.class); } /** + * + * *
    * Set of states that define the lifecycle of a Recognizer.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.Recognizer.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -86,6 +107,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The Recognizer is active and ready for use.
      * 
@@ -94,6 +117,8 @@ public enum State */ ACTIVE(2), /** + * + * *
      * This Recognizer has been deleted.
      * 
@@ -105,6 +130,8 @@ public enum State ; /** + * + * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -113,6 +140,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The Recognizer is active and ready for use.
      * 
@@ -121,6 +150,8 @@ public enum State */ public static final int ACTIVE_VALUE = 2; /** + * + * *
      * This Recognizer has been deleted.
      * 
@@ -129,7 +160,6 @@ public enum State */ public static final int DELETED_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -154,49 +184,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 2: return ACTIVE; - case 4: return DELETED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 2: + return ACTIVE; + case 4: + return DELETED; + 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< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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 State findValueByNumber(int number) { + return State.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.v2.Recognizer.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -214,15 +244,19 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. The resource name of the Recognizer.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -231,30 +265,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; } } /** + * + * *
    * Output only. The resource name of the Recognizer.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -263,14 +297,18 @@ public java.lang.String getName() { } public static final int UID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** + * + * *
    * Output only. System-assigned unique identifier for the Recognizer.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -279,29 +317,29 @@ public java.lang.String getUid() { 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(); uid_ = s; return s; } } /** + * + * *
    * Output only. System-assigned unique identifier for the Recognizer.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -310,15 +348,19 @@ public java.lang.String getUid() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * User-settable, human-readable name for the Recognizer. Must be 63
    * characters or less.
    * 
* * string display_name = 3; + * * @return The displayName. */ @java.lang.Override @@ -327,30 +369,30 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** + * + * *
    * User-settable, human-readable name for the Recognizer. Must be 63
    * characters or less.
    * 
* * string display_name = 3; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -359,9 +401,12 @@ public java.lang.String getDisplayName() { } public static final int MODEL_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Required. Which model to use for recognition requests. Select the model
    * best suited to your domain to get best results.
@@ -379,6 +424,7 @@ public java.lang.String getDisplayName() {
    * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The model. */ @java.lang.Override @@ -387,14 +433,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; } } /** + * + * *
    * Required. Which model to use for recognition requests. Select the model
    * best suited to your domain to get best results.
@@ -412,16 +459,15 @@ public java.lang.String getModel() {
    * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -430,9 +476,12 @@ public java.lang.String getModel() { } public static final int LANGUAGE_CODES_FIELD_NUMBER = 17; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList languageCodes_; /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -449,13 +498,15 @@ public java.lang.String getModel() {
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList - getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { return languageCodes_; } /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -472,12 +523,15 @@ public java.lang.String getModel() {
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -494,6 +548,7 @@ public int getLanguageCodesCount() {
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -501,6 +556,8 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -517,17 +574,19 @@ public java.lang.String getLanguageCodes(int index) {
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString - getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } public static final int DEFAULT_RECOGNITION_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.speech.v2.RecognitionConfig defaultRecognitionConfig_; /** + * + * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -536,6 +595,7 @@ public java.lang.String getLanguageCodes(int index) {
    * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; + * * @return Whether the defaultRecognitionConfig field is set. */ @java.lang.Override @@ -543,6 +603,8 @@ public boolean hasDefaultRecognitionConfig() { return defaultRecognitionConfig_ != null; } /** + * + * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -551,13 +613,18 @@ public boolean hasDefaultRecognitionConfig() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; + * * @return The defaultRecognitionConfig. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfig getDefaultRecognitionConfig() { - return defaultRecognitionConfig_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : defaultRecognitionConfig_; + return defaultRecognitionConfig_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : defaultRecognitionConfig_; } /** + * + * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -568,37 +635,43 @@ public com.google.cloud.speech.v2.RecognitionConfig getDefaultRecognitionConfig(
    * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getDefaultRecognitionConfigOrBuilder() {
-    return defaultRecognitionConfig_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : defaultRecognitionConfig_;
+  public com.google.cloud.speech.v2.RecognitionConfigOrBuilder
+      getDefaultRecognitionConfigOrBuilder() {
+    return defaultRecognitionConfig_ == null
+        ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
+        : defaultRecognitionConfig_;
   }
 
   public static final int ANNOTATIONS_FIELD_NUMBER = 7;
+
   private static final class AnnotationsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, java.lang.String> defaultEntry =
-            com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "");
+    static final com.google.protobuf.MapEntry defaultEntry =
+        com.google.protobuf.MapEntry.newDefaultInstance(
+            com.google.cloud.speech.v2.CloudSpeechProto
+                .internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_descriptor,
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "",
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "");
   }
+
   @SuppressWarnings("serial")
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.String> annotations_;
+  private com.google.protobuf.MapField annotations_;
+
   private com.google.protobuf.MapField
-  internalGetAnnotations() {
+      internalGetAnnotations() {
     if (annotations_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          AnnotationsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry);
     }
     return annotations_;
   }
+
   public int getAnnotationsCount() {
     return internalGetAnnotations().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -608,20 +681,21 @@ public int getAnnotationsCount() {
    * map<string, string> annotations = 7;
    */
   @java.lang.Override
-  public boolean containsAnnotations(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsAnnotations(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetAnnotations().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getAnnotationsMap()} instead.
-   */
+  /** Use {@link #getAnnotationsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAnnotations() {
     return getAnnotationsMap();
   }
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -635,6 +709,8 @@ public java.util.Map getAnnotationsMap() {
     return internalGetAnnotations().getMap();
   }
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -644,17 +720,19 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 7;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getAnnotationsOrDefault(
+  public /* nullable */ java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -664,11 +742,11 @@ java.lang.String getAnnotationsOrDefault(
    * map<string, string> annotations = 7;
    */
   @java.lang.Override
-  public java.lang.String getAnnotationsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -678,37 +756,54 @@ public java.lang.String getAnnotationsOrThrow(
   public static final int STATE_FIELD_NUMBER = 8;
   private int state_ = 0;
   /**
+   *
+   *
    * 
    * Output only. The Recognizer lifecycle state.
    * 
* - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The Recognizer lifecycle state.
    * 
* - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.speech.v2.Recognizer.State getState() { - com.google.cloud.speech.v2.Recognizer.State result = com.google.cloud.speech.v2.Recognizer.State.forNumber(state_); + @java.lang.Override + public com.google.cloud.speech.v2.Recognizer.State getState() { + com.google.cloud.speech.v2.Recognizer.State result = + com.google.cloud.speech.v2.Recognizer.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.Recognizer.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -716,11 +811,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -728,11 +827,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -742,11 +844,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -754,11 +860,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -766,11 +876,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -780,11 +893,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -792,11 +909,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -804,11 +925,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -818,11 +942,15 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -830,11 +958,15 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ @java.lang.Override @@ -842,11 +974,14 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -854,9 +989,12 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 12; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -864,6 +1002,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ @java.lang.Override @@ -872,14 +1011,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -887,16 +1027,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -907,12 +1046,15 @@ public java.lang.String getEtag() { public static final int RECONCILING_FIELD_NUMBER = 13; private boolean reconciling_ = false; /** + * + * *
    * Output only. Whether or not this Recognizer is in the process of being
    * updated.
    * 
* * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -921,9 +1063,12 @@ public boolean getReconciling() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 15; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -931,7 +1076,10 @@ public boolean getReconciling() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ @java.lang.Override @@ -940,14 +1088,15 @@ public java.lang.String getKmsKeyName() { 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(); kmsKeyName_ = s; return s; } } /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -955,17 +1104,18 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -974,9 +1124,12 @@ public java.lang.String getKmsKeyName() { } public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER = 16; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyVersionName_ = ""; /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -984,7 +1137,10 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyVersionName. */ @java.lang.Override @@ -993,14 +1149,15 @@ public java.lang.String getKmsKeyVersionName() { 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(); kmsKeyVersionName_ = s; return s; } } /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1008,17 +1165,18 @@ public java.lang.String getKmsKeyVersionName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyVersionName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -1027,6 +1185,7 @@ public java.lang.String getKmsKeyVersionName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1038,8 +1197,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_); } @@ -1055,12 +1213,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (defaultRecognitionConfig_ != null) { output.writeMessage(6, getDefaultRecognitionConfig()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 7); if (state_ != com.google.cloud.speech.v2.Recognizer.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(8, state_); } @@ -1113,45 +1267,40 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, model_); } if (defaultRecognitionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getDefaultRecognitionConfig()); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, annotations__); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getDefaultRecognitionConfig()); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, annotations__); } if (state_ != com.google.cloud.speech.v2.Recognizer.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, etag_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, reconciling_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, reconciling_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getExpireTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getExpireTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, kmsKeyName_); @@ -1175,59 +1324,44 @@ 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.v2.Recognizer)) { return super.equals(obj); } com.google.cloud.speech.v2.Recognizer other = (com.google.cloud.speech.v2.Recognizer) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getModel() - .equals(other.getModel())) return false; - if (!getLanguageCodesList() - .equals(other.getLanguageCodesList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getModel().equals(other.getModel())) return false; + if (!getLanguageCodesList().equals(other.getLanguageCodesList())) return false; if (hasDefaultRecognitionConfig() != other.hasDefaultRecognitionConfig()) return false; if (hasDefaultRecognitionConfig()) { - if (!getDefaultRecognitionConfig() - .equals(other.getDefaultRecognitionConfig())) return false; + if (!getDefaultRecognitionConfig().equals(other.getDefaultRecognitionConfig())) return false; } - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; - } - if (!getEtag() - .equals(other.getEtag())) return false; - if (getReconciling() - != other.getReconciling()) return false; - if (!getKmsKeyName() - .equals(other.getKmsKeyName())) return false; - if (!getKmsKeyVersionName() - .equals(other.getKmsKeyVersionName())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1280,8 +1414,7 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getKmsKeyName().hashCode(); hash = (37 * hash) + KMS_KEY_VERSION_NAME_FIELD_NUMBER; @@ -1291,152 +1424,155 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.Recognizer parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.Recognizer parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.Recognizer 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.v2.Recognizer parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.speech.v2.Recognizer parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.Recognizer 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.v2.Recognizer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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 Recognizer message. Stores recognition configuration and metadata.
    * 
* * Protobuf type {@code google.cloud.speech.v2.Recognizer} */ - 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.v2.Recognizer) com.google.cloud.speech.v2.RecognizerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_Recognizer_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 7: return internalGetAnnotations(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 7: return internalGetMutableAnnotations(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.Recognizer.class, com.google.cloud.speech.v2.Recognizer.Builder.class); + com.google.cloud.speech.v2.Recognizer.class, + com.google.cloud.speech.v2.Recognizer.Builder.class); } // Construct using com.google.cloud.speech.v2.Recognizer.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1482,9 +1618,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_Recognizer_descriptor; } @java.lang.Override @@ -1503,9 +1639,12 @@ public com.google.cloud.speech.v2.Recognizer build() { @java.lang.Override public com.google.cloud.speech.v2.Recognizer buildPartial() { - com.google.cloud.speech.v2.Recognizer result = new com.google.cloud.speech.v2.Recognizer(this); + com.google.cloud.speech.v2.Recognizer result = + new com.google.cloud.speech.v2.Recognizer(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1533,9 +1672,10 @@ private void buildPartial0(com.google.cloud.speech.v2.Recognizer result) { result.model_ = model_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.defaultRecognitionConfig_ = defaultRecognitionConfigBuilder_ == null - ? defaultRecognitionConfig_ - : defaultRecognitionConfigBuilder_.build(); + result.defaultRecognitionConfig_ = + defaultRecognitionConfigBuilder_ == null + ? defaultRecognitionConfig_ + : defaultRecognitionConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.annotations_ = internalGetAnnotations(); @@ -1545,24 +1685,16 @@ private void buildPartial0(com.google.cloud.speech.v2.Recognizer result) { result.state_ = state_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000400) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null - ? deleteTime_ - : deleteTimeBuilder_.build(); + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000800) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null - ? expireTime_ - : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); } if (((from_bitField0_ & 0x00001000) != 0)) { result.etag_ = etag_; @@ -1582,38 +1714,39 @@ private void buildPartial0(com.google.cloud.speech.v2.Recognizer result) { 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.v2.Recognizer) { - return mergeFrom((com.google.cloud.speech.v2.Recognizer)other); + return mergeFrom((com.google.cloud.speech.v2.Recognizer) other); } else { super.mergeFrom(other); return this; @@ -1655,8 +1788,7 @@ public Builder mergeFrom(com.google.cloud.speech.v2.Recognizer other) { if (other.hasDefaultRecognitionConfig()) { mergeDefaultRecognitionConfig(other.getDefaultRecognitionConfig()); } - internalGetMutableAnnotations().mergeFrom( - other.internalGetAnnotations()); + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); bitField0_ |= 0x00000040; if (other.state_ != 0) { setStateValue(other.getStateValue()); @@ -1717,107 +1849,117 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: { - input.readMessage( - getDefaultRecognitionConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - com.google.protobuf.MapEntry - annotations__ = input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableAnnotations().getMutableMap().put( - annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 64: { - state_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 74: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: { - input.readMessage( - getDeleteTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 98: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 98 - case 104: { - reconciling_ = input.readBool(); - bitField0_ |= 0x00002000; - break; - } // case 104 - case 114: { - input.readMessage( - getExpireTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 114 - case 122: { - kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; - break; - } // case 122 - case 130: { - kmsKeyVersionName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; - break; - } // case 130 - case 138: { - java.lang.String s = input.readStringRequireUtf8(); - ensureLanguageCodesIsMutable(); - languageCodes_.add(s); - break; - } // case 138 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: + { + input.readMessage( + getDefaultRecognitionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 98 + case 104: + { + reconciling_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 104 + case 114: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 114 + case 122: + { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: + { + kmsKeyVersionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 138: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLanguageCodesIsMutable(); + languageCodes_.add(s); + break; + } // case 138 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1827,23 +1969,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of the Recognizer.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1852,21 +1997,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the Recognizer.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1874,30 +2020,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the Recognizer.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the Recognizer.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1907,18 +2060,22 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource name of the Recognizer.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1928,18 +2085,20 @@ public Builder setNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. System-assigned unique identifier for the Recognizer.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; 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(); uid_ = s; return s; @@ -1948,20 +2107,21 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. System-assigned unique identifier for the Recognizer.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -1969,28 +2129,35 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. System-assigned unique identifier for the Recognizer.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. System-assigned unique identifier for the Recognizer.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -2000,17 +2167,21 @@ public Builder clearUid() { return this; } /** + * + * *
      * Output only. System-assigned unique identifier for the Recognizer.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000002; @@ -2020,19 +2191,21 @@ public Builder setUidBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * User-settable, human-readable name for the Recognizer. Must be 63
      * characters or less.
      * 
* * string display_name = 3; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -2041,21 +2214,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User-settable, human-readable name for the Recognizer. Must be 63
      * characters or less.
      * 
* * string display_name = 3; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -2063,30 +2237,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User-settable, human-readable name for the Recognizer. Must be 63
      * characters or less.
      * 
* * string display_name = 3; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * User-settable, human-readable name for the Recognizer. Must be 63
      * characters or less.
      * 
* * string display_name = 3; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2096,18 +2277,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * User-settable, human-readable name for the Recognizer. Must be 63
      * characters or less.
      * 
* * string display_name = 3; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000004; @@ -2117,6 +2302,8 @@ public Builder setDisplayNameBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Required. Which model to use for recognition requests. Select the model
      * best suited to your domain to get best results.
@@ -2134,13 +2321,13 @@ public Builder setDisplayNameBytes(
      * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -2149,6 +2336,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Required. Which model to use for recognition requests. Select the model
      * best suited to your domain to get best results.
@@ -2166,15 +2355,14 @@ public java.lang.String getModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -2182,6 +2370,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Required. Which model to use for recognition requests. Select the model
      * best suited to your domain to get best results.
@@ -2199,18 +2389,22 @@ public java.lang.String getModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Required. Which model to use for recognition requests. Select the model
      * best suited to your domain to get best results.
@@ -2228,6 +2422,7 @@ public Builder setModel(
      * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -2237,6 +2432,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Required. Which model to use for recognition requests. Select the model
      * best suited to your domain to get best results.
@@ -2254,12 +2451,14 @@ public Builder clearModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000008; @@ -2267,14 +2466,18 @@ public Builder setModelBytes( return this; } - private com.google.protobuf.LazyStringList languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList languageCodes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); bitField0_ |= 0x00000010; - } + } } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2291,13 +2494,15 @@ private void ensureLanguageCodesIsMutable() {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList - getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { return languageCodes_.getUnmodifiableView(); } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2314,12 +2519,15 @@ private void ensureLanguageCodesIsMutable() {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2336,6 +2544,7 @@ public int getLanguageCodesCount() {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -2343,6 +2552,8 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2359,14 +2570,16 @@ public java.lang.String getLanguageCodes(int index) {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString - getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2383,19 +2596,23 @@ public java.lang.String getLanguageCodes(int index) {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The languageCodes to set. * @return This builder for chaining. */ - public Builder setLanguageCodes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLanguageCodesIsMutable(); languageCodes_.set(index, 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.
@@ -2412,18 +2629,22 @@ public Builder setLanguageCodes(
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLanguageCodesIsMutable(); languageCodes_.add(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.
@@ -2440,18 +2661,19 @@ public Builder addLanguageCodes(
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The languageCodes to add. * @return This builder for chaining. */ - public Builder addAllLanguageCodes( - java.lang.Iterable values) { + public Builder addAllLanguageCodes(java.lang.Iterable values) { ensureLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, languageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); 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.
@@ -2468,6 +2690,7 @@ public Builder addAllLanguageCodes(
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLanguageCodes() { @@ -2477,6 +2700,8 @@ public Builder clearLanguageCodes() { return this; } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2493,12 +2718,14 @@ public Builder clearLanguageCodes() {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureLanguageCodesIsMutable(); languageCodes_.add(value); @@ -2508,8 +2735,13 @@ public Builder addLanguageCodesBytes( private com.google.cloud.speech.v2.RecognitionConfig defaultRecognitionConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> defaultRecognitionConfigBuilder_; + com.google.cloud.speech.v2.RecognitionConfig, + com.google.cloud.speech.v2.RecognitionConfig.Builder, + com.google.cloud.speech.v2.RecognitionConfigOrBuilder> + defaultRecognitionConfigBuilder_; /** + * + * *
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2518,12 +2750,15 @@ public Builder addLanguageCodesBytes(
      * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; + * * @return Whether the defaultRecognitionConfig field is set. */ public boolean hasDefaultRecognitionConfig() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2532,16 +2767,21 @@ public boolean hasDefaultRecognitionConfig() {
      * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; + * * @return The defaultRecognitionConfig. */ public com.google.cloud.speech.v2.RecognitionConfig getDefaultRecognitionConfig() { if (defaultRecognitionConfigBuilder_ == null) { - return defaultRecognitionConfig_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : defaultRecognitionConfig_; + return defaultRecognitionConfig_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : defaultRecognitionConfig_; } else { return defaultRecognitionConfigBuilder_.getMessage(); } } /** + * + * *
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2565,6 +2805,8 @@ public Builder setDefaultRecognitionConfig(com.google.cloud.speech.v2.Recognitio
       return this;
     }
     /**
+     *
+     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2586,6 +2828,8 @@ public Builder setDefaultRecognitionConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2595,11 +2839,13 @@ public Builder setDefaultRecognitionConfig(
      *
      * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6;
      */
-    public Builder mergeDefaultRecognitionConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
+    public Builder mergeDefaultRecognitionConfig(
+        com.google.cloud.speech.v2.RecognitionConfig value) {
       if (defaultRecognitionConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000020) != 0) &&
-          defaultRecognitionConfig_ != null &&
-          defaultRecognitionConfig_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000020) != 0)
+            && defaultRecognitionConfig_ != null
+            && defaultRecognitionConfig_
+                != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
           getDefaultRecognitionConfigBuilder().mergeFrom(value);
         } else {
           defaultRecognitionConfig_ = value;
@@ -2612,6 +2858,8 @@ public Builder mergeDefaultRecognitionConfig(com.google.cloud.speech.v2.Recognit
       return this;
     }
     /**
+     *
+     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2632,6 +2880,8 @@ public Builder clearDefaultRecognitionConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2641,12 +2891,15 @@ public Builder clearDefaultRecognitionConfig() {
      *
      * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6;
      */
-    public com.google.cloud.speech.v2.RecognitionConfig.Builder getDefaultRecognitionConfigBuilder() {
+    public com.google.cloud.speech.v2.RecognitionConfig.Builder
+        getDefaultRecognitionConfigBuilder() {
       bitField0_ |= 0x00000020;
       onChanged();
       return getDefaultRecognitionConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2656,15 +2909,19 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getDefaultRecognitio
      *
      * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6;
      */
-    public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getDefaultRecognitionConfigOrBuilder() {
+    public com.google.cloud.speech.v2.RecognitionConfigOrBuilder
+        getDefaultRecognitionConfigOrBuilder() {
       if (defaultRecognitionConfigBuilder_ != null) {
         return defaultRecognitionConfigBuilder_.getMessageOrBuilder();
       } else {
-        return defaultRecognitionConfig_ == null ?
-            com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : defaultRecognitionConfig_;
+        return defaultRecognitionConfig_ == null
+            ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
+            : defaultRecognitionConfig_;
       }
     }
     /**
+     *
+     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2675,21 +2932,24 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getDefaultRecogniti
      * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> 
+            com.google.cloud.speech.v2.RecognitionConfig,
+            com.google.cloud.speech.v2.RecognitionConfig.Builder,
+            com.google.cloud.speech.v2.RecognitionConfigOrBuilder>
         getDefaultRecognitionConfigFieldBuilder() {
       if (defaultRecognitionConfigBuilder_ == null) {
-        defaultRecognitionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
-                getDefaultRecognitionConfig(),
-                getParentForChildren(),
-                isClean());
+        defaultRecognitionConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v2.RecognitionConfig,
+                com.google.cloud.speech.v2.RecognitionConfig.Builder,
+                com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
+                getDefaultRecognitionConfig(), getParentForChildren(), isClean());
         defaultRecognitionConfig_ = null;
       }
       return defaultRecognitionConfigBuilder_;
     }
 
-    private com.google.protobuf.MapField<
-        java.lang.String, java.lang.String> annotations_;
+    private com.google.protobuf.MapField annotations_;
+
     private com.google.protobuf.MapField
         internalGetAnnotations() {
       if (annotations_ == null) {
@@ -2698,11 +2958,12 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getDefaultRecogniti
       }
       return annotations_;
     }
+
     private com.google.protobuf.MapField
         internalGetMutableAnnotations() {
       if (annotations_ == null) {
-        annotations_ = com.google.protobuf.MapField.newMapField(
-            AnnotationsDefaultEntryHolder.defaultEntry);
+        annotations_ =
+            com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry);
       }
       if (!annotations_.isMutable()) {
         annotations_ = annotations_.copy();
@@ -2711,10 +2972,13 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getDefaultRecogniti
       onChanged();
       return annotations_;
     }
+
     public int getAnnotationsCount() {
       return internalGetAnnotations().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -2724,20 +2988,21 @@ public int getAnnotationsCount() {
      * map<string, string> annotations = 7;
      */
     @java.lang.Override
-    public boolean containsAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetAnnotations().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getAnnotationsMap()} instead.
-     */
+    /** Use {@link #getAnnotationsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAnnotations() {
       return getAnnotationsMap();
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -2751,6 +3016,8 @@ public java.util.Map getAnnotationsMap() {
       return internalGetAnnotations().getMap();
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -2760,17 +3027,19 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 7;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getAnnotationsOrDefault(
+    public /* nullable */ java.lang.String getAnnotationsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -2780,23 +3049,25 @@ java.lang.String getAnnotationsOrDefault(
      * map<string, string> annotations = 7;
      */
     @java.lang.Override
-    public java.lang.String getAnnotationsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearAnnotations() {
       bitField0_ = (bitField0_ & ~0x00000040);
-      internalGetMutableAnnotations().getMutableMap()
-          .clear();
+      internalGetMutableAnnotations().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -2805,23 +3076,22 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 7;
      */
-    public Builder removeAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableAnnotations().getMutableMap()
-          .remove(key);
+    public Builder removeAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableAnnotations().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableAnnotations() {
+    public java.util.Map getMutableAnnotations() {
       bitField0_ |= 0x00000040;
       return internalGetMutableAnnotations().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -2830,17 +3100,20 @@ public Builder removeAnnotations(
      *
      * map<string, string> annotations = 7;
      */
-    public Builder putAnnotations(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableAnnotations().getMutableMap()
-          .put(key, value);
+    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableAnnotations().getMutableMap().put(key, value);
       bitField0_ |= 0x00000040;
       return this;
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -2849,32 +3122,41 @@ public Builder putAnnotations(
      *
      * map<string, string> annotations = 7;
      */
-    public Builder putAllAnnotations(
-        java.util.Map values) {
-      internalGetMutableAnnotations().getMutableMap()
-          .putAll(values);
+    public Builder putAllAnnotations(java.util.Map values) {
+      internalGetMutableAnnotations().getMutableMap().putAll(values);
       bitField0_ |= 0x00000040;
       return this;
     }
 
     private int state_ = 0;
     /**
+     *
+     *
      * 
      * Output only. The Recognizer lifecycle state.
      * 
* - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The Recognizer lifecycle state.
      * 
* - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2885,24 +3167,35 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The Recognizer lifecycle state.
      * 
* - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.speech.v2.Recognizer.State getState() { - com.google.cloud.speech.v2.Recognizer.State result = com.google.cloud.speech.v2.Recognizer.State.forNumber(state_); + com.google.cloud.speech.v2.Recognizer.State result = + com.google.cloud.speech.v2.Recognizer.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.Recognizer.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The Recognizer lifecycle state.
      * 
* - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2916,11 +3209,16 @@ public Builder setState(com.google.cloud.speech.v2.Recognizer.State value) { return this; } /** + * + * *
      * Output only. The Recognizer lifecycle state.
      * 
* - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -2932,39 +3230,58 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2980,14 +3297,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2998,17 +3318,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3021,11 +3345,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -3038,11 +3366,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000100; @@ -3050,36 +3382,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3087,39 +3431,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3135,14 +3498,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3153,17 +3519,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3176,11 +3546,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000200); @@ -3193,11 +3567,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000200; @@ -3205,36 +3583,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3242,39 +3632,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000400) != 0); } /** + * + * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3290,14 +3699,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -3308,17 +3720,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -3331,11 +3747,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000400); @@ -3348,11 +3768,15 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000400; @@ -3360,36 +3784,48 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -3397,39 +3833,58 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000800) != 0); } /** + * + * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -3445,14 +3900,17 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -3463,17 +3921,21 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) && - expireTime_ != null && - expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -3486,11 +3948,15 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000800); @@ -3503,11 +3969,15 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000800; @@ -3515,36 +3985,48 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } } /** + * + * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); expireTime_ = null; } return expireTimeBuilder_; @@ -3552,6 +4034,8 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private java.lang.Object etag_ = ""; /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3559,13 +4043,13 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -3574,6 +4058,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3581,15 +4067,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -3597,6 +4082,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3604,18 +4091,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3623,6 +4114,7 @@ public Builder setEtag(
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -3632,6 +4124,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3639,12 +4133,14 @@ public Builder clearEtag() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00001000; @@ -3652,14 +4148,17 @@ public Builder setEtagBytes( return this; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Whether or not this Recognizer is in the process of being
      * updated.
      * 
* * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -3667,29 +4166,35 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Whether or not this Recognizer is in the process of being
      * updated.
      * 
* * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** + * + * *
      * Output only. Whether or not this Recognizer is in the process of being
      * updated.
      * 
* * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -3701,6 +4206,8 @@ public Builder clearReconciling() { private java.lang.Object kmsKeyName_ = ""; /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3708,14 +4215,16 @@ public Builder clearReconciling() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; 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(); kmsKeyName_ = s; return s; @@ -3724,6 +4233,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3731,16 +4242,17 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -3748,6 +4260,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3755,19 +4269,25 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyName_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3775,7 +4295,10 @@ public Builder setKmsKeyName(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -3785,6 +4308,8 @@ public Builder clearKmsKeyName() { return this; } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3792,13 +4317,17 @@ public Builder clearKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00004000; @@ -3808,6 +4337,8 @@ public Builder setKmsKeyNameBytes( private java.lang.Object kmsKeyVersionName_ = ""; /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3815,14 +4346,16 @@ public Builder setKmsKeyNameBytes(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyVersionName. */ public java.lang.String getKmsKeyVersionName() { java.lang.Object ref = kmsKeyVersionName_; 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(); kmsKeyVersionName_ = s; return s; @@ -3831,6 +4364,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3838,16 +4373,17 @@ public java.lang.String getKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyVersionName. */ - public com.google.protobuf.ByteString - getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -3855,6 +4391,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3862,19 +4400,25 @@ public java.lang.String getKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyVersionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyVersionName_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3882,7 +4426,10 @@ public Builder setKmsKeyVersionName(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { @@ -3892,6 +4439,8 @@ public Builder clearKmsKeyVersionName() { return this; } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3899,22 +4448,26 @@ public Builder clearKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyVersionName_ = value; bitField0_ |= 0x00008000; 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); } @@ -3924,12 +4477,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.Recognizer) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.Recognizer) private static final com.google.cloud.speech.v2.Recognizer DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.Recognizer(); } @@ -3938,27 +4491,27 @@ public static com.google.cloud.speech.v2.Recognizer getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Recognizer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Recognizer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3973,6 +4526,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.Recognizer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java similarity index 100% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java similarity index 81% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java index 4e9732a7e29a..37ab04a4a79e 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java @@ -1,77 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface RecognizerOrBuilder extends +public interface RecognizerOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.Recognizer) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the Recognizer.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the Recognizer.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. System-assigned unique identifier for the Recognizer.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. System-assigned unique identifier for the Recognizer.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * User-settable, human-readable name for the Recognizer. Must be 63
    * characters or less.
    * 
* * string display_name = 3; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * User-settable, human-readable name for the Recognizer. Must be 63
    * characters or less.
    * 
* * string display_name = 3; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Required. Which model to use for recognition requests. Select the model
    * best suited to your domain to get best results.
@@ -89,10 +122,13 @@ public interface RecognizerOrBuilder extends
    * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Required. Which model to use for recognition requests. Select the model
    * best suited to your domain to get best results.
@@ -110,12 +146,14 @@ public interface RecognizerOrBuilder extends
    * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -132,11 +170,13 @@ public interface RecognizerOrBuilder extends
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the languageCodes. */ - java.util.List - getLanguageCodesList(); + java.util.List getLanguageCodesList(); /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -153,10 +193,13 @@ public interface RecognizerOrBuilder extends
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of languageCodes. */ int getLanguageCodesCount(); /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -173,11 +216,14 @@ public interface RecognizerOrBuilder extends
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The languageCodes at the given index. */ java.lang.String getLanguageCodes(int index); /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -194,13 +240,15 @@ public interface RecognizerOrBuilder extends
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - com.google.protobuf.ByteString - getLanguageCodesBytes(int index); + com.google.protobuf.ByteString getLanguageCodesBytes(int index); /** + * + * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -209,10 +257,13 @@ public interface RecognizerOrBuilder extends
    * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; + * * @return Whether the defaultRecognitionConfig field is set. */ boolean hasDefaultRecognitionConfig(); /** + * + * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -221,10 +272,13 @@ public interface RecognizerOrBuilder extends
    * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; + * * @return The defaultRecognitionConfig. */ com.google.cloud.speech.v2.RecognitionConfig getDefaultRecognitionConfig(); /** + * + * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -237,6 +291,8 @@ public interface RecognizerOrBuilder extends
   com.google.cloud.speech.v2.RecognitionConfigOrBuilder getDefaultRecognitionConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -247,6 +303,8 @@ public interface RecognizerOrBuilder extends
    */
   int getAnnotationsCount();
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -255,15 +313,13 @@ public interface RecognizerOrBuilder extends
    *
    * map<string, string> annotations = 7;
    */
-  boolean containsAnnotations(
-      java.lang.String key);
-  /**
-   * Use {@link #getAnnotationsMap()} instead.
-   */
+  boolean containsAnnotations(java.lang.String key);
+  /** Use {@link #getAnnotationsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getAnnotations();
+  java.util.Map getAnnotations();
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -272,9 +328,10 @@ boolean containsAnnotations(
    *
    * map<string, string> annotations = 7;
    */
-  java.util.Map
-  getAnnotationsMap();
+  java.util.Map getAnnotationsMap();
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -284,11 +341,13 @@ boolean containsAnnotations(
    * map<string, string> annotations = 7;
    */
   /* nullable */
-java.lang.String getAnnotationsOrDefault(
+  java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -297,137 +356,192 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> annotations = 7;
    */
-  java.lang.String getAnnotationsOrThrow(
-      java.lang.String key);
+  java.lang.String getAnnotationsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. The Recognizer lifecycle state.
    * 
* - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The Recognizer lifecycle state.
    * 
* - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.speech.v2.Recognizer.State getState(); /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** + * + * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -435,10 +549,13 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -446,23 +563,28 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Output only. Whether or not this Recognizer is in the process of being
    * updated.
    * 
* * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -470,11 +592,16 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -482,13 +609,17 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString - getKmsKeyNameBytes(); + com.google.protobuf.ByteString getKmsKeyNameBytes(); /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -496,11 +627,16 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyVersionName. */ java.lang.String getKmsKeyVersionName(); /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -508,9 +644,11 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyVersionName. */ - com.google.protobuf.ByteString - getKmsKeyVersionNameBytes(); + com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java similarity index 69% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java index b318b60c5519..14b27c2a4f19 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java @@ -1,55 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Configuration to enable speaker diarization.
  * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeakerDiarizationConfig.class, com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v2.SpeakerDiarizationConfig.class, + com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder.class); } public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_ = 0; /** + * + * *
    * Required. Minimum number of speakers in the conversation. This range gives
    * you more flexibility by allowing the system to automatically determine the
@@ -59,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -69,6 +90,8 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_ = 0; /** + * + * *
    * Required. Maximum number of speakers in the conversation. Valid values are:
    * 1-6. Must be >= `min_speaker_count`. This range gives you more flexibility
@@ -77,6 +100,7 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -85,6 +109,7 @@ public int getMaxSpeakerCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,8 +121,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 (minSpeakerCount_ != 0) { output.writeInt32(2, minSpeakerCount_); } @@ -114,12 +138,10 @@ public int getSerializedSize() { size = 0; 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -129,17 +151,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.v2.SpeakerDiarizationConfig)) { return super.equals(obj); } - com.google.cloud.speech.v2.SpeakerDiarizationConfig other = (com.google.cloud.speech.v2.SpeakerDiarizationConfig) obj; + com.google.cloud.speech.v2.SpeakerDiarizationConfig other = + (com.google.cloud.speech.v2.SpeakerDiarizationConfig) obj; - if (getMinSpeakerCount() - != other.getMinSpeakerCount()) return false; - if (getMaxSpeakerCount() - != other.getMaxSpeakerCount()) return false; + if (getMinSpeakerCount() != other.getMinSpeakerCount()) return false; + if (getMaxSpeakerCount() != other.getMaxSpeakerCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +182,135 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.SpeakerDiarizationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.SpeakerDiarizationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.SpeakerDiarizationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.SpeakerDiarizationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.SpeakerDiarizationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Configuration to enable speaker diarization.
    * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.SpeakerDiarizationConfig) com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeakerDiarizationConfig.class, com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v2.SpeakerDiarizationConfig.class, + com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder.class); } // Construct using com.google.cloud.speech.v2.SpeakerDiarizationConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,9 +321,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; } @java.lang.Override @@ -315,8 +342,11 @@ public com.google.cloud.speech.v2.SpeakerDiarizationConfig build() { @java.lang.Override public com.google.cloud.speech.v2.SpeakerDiarizationConfig buildPartial() { - com.google.cloud.speech.v2.SpeakerDiarizationConfig result = new com.google.cloud.speech.v2.SpeakerDiarizationConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v2.SpeakerDiarizationConfig result = + new com.google.cloud.speech.v2.SpeakerDiarizationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -335,38 +365,39 @@ private void buildPartial0(com.google.cloud.speech.v2.SpeakerDiarizationConfig r 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.v2.SpeakerDiarizationConfig) { - return mergeFrom((com.google.cloud.speech.v2.SpeakerDiarizationConfig)other); + return mergeFrom((com.google.cloud.speech.v2.SpeakerDiarizationConfig) other); } else { super.mergeFrom(other); return this; @@ -374,7 +405,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.SpeakerDiarizationConfig other) { - if (other == com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()) + return this; if (other.getMinSpeakerCount() != 0) { setMinSpeakerCount(other.getMinSpeakerCount()); } @@ -407,22 +439,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 16: { - minSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 16 - case 24: { - maxSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 16: + { + minSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 16 + case 24: + { + maxSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -432,10 +467,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int minSpeakerCount_ ; + private int minSpeakerCount_; /** + * + * *
      * Required. Minimum number of speakers in the conversation. This range gives
      * you more flexibility by allowing the system to automatically determine the
@@ -445,6 +483,7 @@ public Builder mergeFrom(
      * 
* * int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -452,6 +491,8 @@ public int getMinSpeakerCount() { return minSpeakerCount_; } /** + * + * *
      * Required. Minimum number of speakers in the conversation. This range gives
      * you more flexibility by allowing the system to automatically determine the
@@ -461,17 +502,20 @@ public int getMinSpeakerCount() {
      * 
* * int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The minSpeakerCount to set. * @return This builder for chaining. */ public Builder setMinSpeakerCount(int value) { - + minSpeakerCount_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Minimum number of speakers in the conversation. This range gives
      * you more flexibility by allowing the system to automatically determine the
@@ -481,6 +525,7 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { @@ -490,8 +535,10 @@ public Builder clearMinSpeakerCount() { return this; } - private int maxSpeakerCount_ ; + private int maxSpeakerCount_; /** + * + * *
      * Required. Maximum number of speakers in the conversation. Valid values are:
      * 1-6. Must be >= `min_speaker_count`. This range gives you more flexibility
@@ -500,6 +547,7 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -507,6 +555,8 @@ public int getMaxSpeakerCount() { return maxSpeakerCount_; } /** + * + * *
      * Required. Maximum number of speakers in the conversation. Valid values are:
      * 1-6. Must be >= `min_speaker_count`. This range gives you more flexibility
@@ -515,17 +565,20 @@ public int getMaxSpeakerCount() {
      * 
* * int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The maxSpeakerCount to set. * @return This builder for chaining. */ public Builder setMaxSpeakerCount(int value) { - + maxSpeakerCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. Maximum number of speakers in the conversation. Valid values are:
      * 1-6. Must be >= `min_speaker_count`. This range gives you more flexibility
@@ -534,6 +587,7 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { @@ -542,9 +596,9 @@ public Builder clearMaxSpeakerCount() { 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); } @@ -554,12 +608,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.SpeakerDiarizationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.SpeakerDiarizationConfig) private static final com.google.cloud.speech.v2.SpeakerDiarizationConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.SpeakerDiarizationConfig(); } @@ -568,27 +622,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -603,6 +657,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.SpeakerDiarizationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java similarity index 64% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java index 36dd1f392509..8b55c737a86b 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface SpeakerDiarizationConfigOrBuilder extends +public interface SpeakerDiarizationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.SpeakerDiarizationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Minimum number of speakers in the conversation. This range gives
    * you more flexibility by allowing the system to automatically determine the
@@ -17,11 +35,14 @@ public interface SpeakerDiarizationConfigOrBuilder extends
    * 
* * int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The minSpeakerCount. */ int getMinSpeakerCount(); /** + * + * *
    * Required. Maximum number of speakers in the conversation. Valid values are:
    * 1-6. Must be >= `min_speaker_count`. This range gives you more flexibility
@@ -30,6 +51,7 @@ public interface SpeakerDiarizationConfigOrBuilder extends
    * 
* * int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The maxSpeakerCount. */ int getMaxSpeakerCount(); diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java similarity index 72% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java index 82f8bc88e348..17506874e78a 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results. Phrase sets can be specified as an inline resource, or a
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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();
     customClasses_ = java.util.Collections.emptyList();
@@ -28,84 +46,102 @@ 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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.SpeechAdaptation.class, com.google.cloud.speech.v2.SpeechAdaptation.Builder.class);
+            com.google.cloud.speech.v2.SpeechAdaptation.class,
+            com.google.cloud.speech.v2.SpeechAdaptation.Builder.class);
   }
 
-  public interface AdaptationPhraseSetOrBuilder extends
+  public interface AdaptationPhraseSetOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** + * + * *
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @return The phraseSet. */ java.lang.String getPhraseSet(); /** + * + * *
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for phraseSet. */ - com.google.protobuf.ByteString - getPhraseSetBytes(); + com.google.protobuf.ByteString getPhraseSetBytes(); /** + * + * *
      * An inline defined phrase set.
      * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; + * * @return Whether the inlinePhraseSet field is set. */ boolean hasInlinePhraseSet(); /** + * + * *
      * An inline defined phrase set.
      * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; + * * @return The inlinePhraseSet. */ com.google.cloud.speech.v2.PhraseSet getInlinePhraseSet(); /** + * + * *
      * An inline defined phrase set.
      * 
@@ -117,6 +153,8 @@ public interface AdaptationPhraseSetOrBuilder extends public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.ValueCase getValueCase(); } /** + * + * *
    * A biasing phrase set, which can be either a string referencing the name of
    * an existing phrase set resource, or an inline definition of a phrase set.
@@ -124,52 +162,56 @@ public interface AdaptationPhraseSetOrBuilder extends
    *
    * Protobuf type {@code google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet}
    */
-  public static final class AdaptationPhraseSet extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class AdaptationPhraseSet extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet)
       AdaptationPhraseSetOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use AdaptationPhraseSet.newBuilder() to construct.
     private AdaptationPhraseSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private AdaptationPhraseSet() {
-    }
+
+    private AdaptationPhraseSet() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new AdaptationPhraseSet();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.class, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder.class);
+              com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.class,
+              com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder.class);
     }
 
     private int valueCase_ = 0;
     private java.lang.Object value_;
+
     public enum ValueCase
-        implements com.google.protobuf.Internal.EnumLite,
+        implements
+            com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       PHRASE_SET(1),
       INLINE_PHRASE_SET(2),
       VALUE_NOT_SET(0);
       private final int value;
+
       private ValueCase(int value) {
         this.value = value;
       }
@@ -185,43 +227,52 @@ public static ValueCase valueOf(int value) {
 
       public static ValueCase forNumber(int value) {
         switch (value) {
-          case 1: return PHRASE_SET;
-          case 2: return INLINE_PHRASE_SET;
-          case 0: return VALUE_NOT_SET;
-          default: return null;
+          case 1:
+            return PHRASE_SET;
+          case 2:
+            return INLINE_PHRASE_SET;
+          case 0:
+            return VALUE_NOT_SET;
+          default:
+            return null;
         }
       }
+
       public int getNumber() {
         return this.value;
       }
     };
 
-    public ValueCase
-    getValueCase() {
-      return ValueCase.forNumber(
-          valueCase_);
+    public ValueCase getValueCase() {
+      return ValueCase.forNumber(valueCase_);
     }
 
     public static final int PHRASE_SET_FIELD_NUMBER = 1;
     /**
+     *
+     *
      * 
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return valueCase_ == 1; } /** + * + * *
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @return The phraseSet. */ public java.lang.String getPhraseSet() { @@ -232,8 +283,7 @@ public java.lang.String getPhraseSet() { 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 (valueCase_ == 1) { value_ = s; @@ -242,24 +292,25 @@ public java.lang.String getPhraseSet() { } } /** + * + * *
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for phraseSet. */ - public com.google.protobuf.ByteString - getPhraseSetBytes() { + public com.google.protobuf.ByteString getPhraseSetBytes() { java.lang.Object ref = ""; if (valueCase_ == 1) { 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); if (valueCase_ == 1) { value_ = b; } @@ -271,11 +322,14 @@ public java.lang.String getPhraseSet() { public static final int INLINE_PHRASE_SET_FIELD_NUMBER = 2; /** + * + * *
      * An inline defined phrase set.
      * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; + * * @return Whether the inlinePhraseSet field is set. */ @java.lang.Override @@ -283,21 +337,26 @@ public boolean hasInlinePhraseSet() { return valueCase_ == 2; } /** + * + * *
      * An inline defined phrase set.
      * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; + * * @return The inlinePhraseSet. */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSet getInlinePhraseSet() { if (valueCase_ == 2) { - return (com.google.cloud.speech.v2.PhraseSet) value_; + return (com.google.cloud.speech.v2.PhraseSet) value_; } return com.google.cloud.speech.v2.PhraseSet.getDefaultInstance(); } /** + * + * *
      * An inline defined phrase set.
      * 
@@ -307,12 +366,13 @@ public com.google.cloud.speech.v2.PhraseSet getInlinePhraseSet() { @java.lang.Override public com.google.cloud.speech.v2.PhraseSetOrBuilder getInlinePhraseSetOrBuilder() { if (valueCase_ == 2) { - return (com.google.cloud.speech.v2.PhraseSet) value_; + return (com.google.cloud.speech.v2.PhraseSet) value_; } return com.google.cloud.speech.v2.PhraseSet.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,8 +384,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 (valueCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -345,8 +404,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.speech.v2.PhraseSet) value_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.speech.v2.PhraseSet) value_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -356,22 +416,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.v2.SpeechAdaptation.AdaptationPhraseSet)) { return super.equals(obj); } - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet other = (com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet) obj; + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet other = + (com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet) obj; if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 1: - if (!getPhraseSet() - .equals(other.getPhraseSet())) return false; + if (!getPhraseSet().equals(other.getPhraseSet())) return false; break; case 2: - if (!getInlinePhraseSet() - .equals(other.getInlinePhraseSet())) return false; + if (!getInlinePhraseSet().equals(other.getInlinePhraseSet())) return false; break; case 0: default: @@ -405,87 +464,95 @@ public int hashCode() { } public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet + 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.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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 @@ -495,6 +562,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A biasing phrase set, which can be either a string referencing the name of
      * an existing phrase set resource, or an inline definition of a phrase set.
@@ -502,33 +571,34 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet}
      */
-    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.v2.SpeechAdaptation.AdaptationPhraseSet)
         com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.speech.v2.CloudSpeechProto
+            .internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable
+        return com.google.cloud.speech.v2.CloudSpeechProto
+            .internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.class, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder.class);
+                com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.class,
+                com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder.class);
       }
 
-      // Construct using com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.newBuilder()
-      private Builder() {
-
-      }
+      // Construct using
+      // com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.newBuilder()
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -542,13 +612,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.speech.v2.CloudSpeechProto
+            .internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getDefaultInstanceForType() {
+      public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet
+          getDefaultInstanceForType() {
         return com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance();
       }
 
@@ -563,22 +634,26 @@ public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet build() {
 
       @java.lang.Override
       public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet buildPartial() {
-        com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result = new com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result =
+            new com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         buildPartialOneofs(result);
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result) {
+      private void buildPartial0(
+          com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result) {
         int from_bitField0_ = bitField0_;
       }
 
-      private void buildPartialOneofs(com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result) {
+      private void buildPartialOneofs(
+          com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result) {
         result.valueCase_ = valueCase_;
         result.value_ = this.value_;
-        if (valueCase_ == 2 &&
-            inlinePhraseSetBuilder_ != null) {
+        if (valueCase_ == 2 && inlinePhraseSetBuilder_ != null) {
           result.value_ = inlinePhraseSetBuilder_.build();
         }
       }
@@ -587,60 +662,69 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.SpeechAdaptation.Adap
       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.v2.SpeechAdaptation.AdaptationPhraseSet) {
-          return mergeFrom((com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet)other);
+          return mergeFrom((com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet other) {
-        if (other == com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet other) {
+        if (other
+            == com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance())
+          return this;
         switch (other.getValueCase()) {
-          case PHRASE_SET: {
-            valueCase_ = 1;
-            value_ = other.value_;
-            onChanged();
-            break;
-          }
-          case INLINE_PHRASE_SET: {
-            mergeInlinePhraseSet(other.getInlinePhraseSet());
-            break;
-          }
-          case VALUE_NOT_SET: {
-            break;
-          }
+          case PHRASE_SET:
+            {
+              valueCase_ = 1;
+              value_ = other.value_;
+              onChanged();
+              break;
+            }
+          case INLINE_PHRASE_SET:
+            {
+              mergeInlinePhraseSet(other.getInlinePhraseSet());
+              break;
+            }
+          case VALUE_NOT_SET:
+            {
+              break;
+            }
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -668,25 +752,27 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                java.lang.String s = input.readStringRequireUtf8();
-                valueCase_ = 1;
-                value_ = s;
-                break;
-              } // case 10
-              case 18: {
-                input.readMessage(
-                    getInlinePhraseSetFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                valueCase_ = 2;
-                break;
-              } // case 18
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  java.lang.String s = input.readStringRequireUtf8();
+                  valueCase_ = 1;
+                  value_ = s;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  input.readMessage(
+                      getInlinePhraseSetFieldBuilder().getBuilder(), extensionRegistry);
+                  valueCase_ = 2;
+                  break;
+                } // case 18
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -696,12 +782,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int valueCase_ = 0;
       private java.lang.Object value_;
-      public ValueCase
-          getValueCase() {
-        return ValueCase.forNumber(
-            valueCase_);
+
+      public ValueCase getValueCase() {
+        return ValueCase.forNumber(valueCase_);
       }
 
       public Builder clearValue() {
@@ -714,12 +800,15 @@ public Builder clearValue() {
       private int bitField0_;
 
       /**
+       *
+       *
        * 
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -727,12 +816,15 @@ public boolean hasPhraseSet() { return valueCase_ == 1; } /** + * + * *
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @return The phraseSet. */ @java.lang.Override @@ -742,8 +834,7 @@ public java.lang.String getPhraseSet() { 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(); if (valueCase_ == 1) { value_ = s; @@ -754,25 +845,26 @@ public java.lang.String getPhraseSet() { } } /** + * + * *
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for phraseSet. */ @java.lang.Override - public com.google.protobuf.ByteString - getPhraseSetBytes() { + public com.google.protobuf.ByteString getPhraseSetBytes() { java.lang.Object ref = ""; if (valueCase_ == 1) { 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); if (valueCase_ == 1) { value_ = b; } @@ -782,30 +874,37 @@ public java.lang.String getPhraseSet() { } } /** + * + * *
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @param value The phraseSet to set. * @return This builder for chaining. */ - public Builder setPhraseSet( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhraseSet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } valueCase_ = 1; value_ = value; onChanged(); return this; } /** + * + * *
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearPhraseSet() { @@ -817,18 +916,22 @@ public Builder clearPhraseSet() { return this; } /** + * + * *
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for phraseSet to set. * @return This builder for chaining. */ - public Builder setPhraseSetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhraseSetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); valueCase_ = 1; value_ = value; @@ -837,13 +940,19 @@ public Builder setPhraseSetBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> inlinePhraseSetBuilder_; + com.google.cloud.speech.v2.PhraseSet, + com.google.cloud.speech.v2.PhraseSet.Builder, + com.google.cloud.speech.v2.PhraseSetOrBuilder> + inlinePhraseSetBuilder_; /** + * + * *
        * An inline defined phrase set.
        * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; + * * @return Whether the inlinePhraseSet field is set. */ @java.lang.Override @@ -851,11 +960,14 @@ public boolean hasInlinePhraseSet() { return valueCase_ == 2; } /** + * + * *
        * An inline defined phrase set.
        * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; + * * @return The inlinePhraseSet. */ @java.lang.Override @@ -873,6 +985,8 @@ public com.google.cloud.speech.v2.PhraseSet getInlinePhraseSet() { } } /** + * + * *
        * An inline defined phrase set.
        * 
@@ -893,6 +1007,8 @@ public Builder setInlinePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** + * + * *
        * An inline defined phrase set.
        * 
@@ -911,6 +1027,8 @@ public Builder setInlinePhraseSet( return this; } /** + * + * *
        * An inline defined phrase set.
        * 
@@ -919,10 +1037,13 @@ public Builder setInlinePhraseSet( */ public Builder mergeInlinePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { if (inlinePhraseSetBuilder_ == null) { - if (valueCase_ == 2 && - value_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { - value_ = com.google.cloud.speech.v2.PhraseSet.newBuilder((com.google.cloud.speech.v2.PhraseSet) value_) - .mergeFrom(value).buildPartial(); + if (valueCase_ == 2 + && value_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { + value_ = + com.google.cloud.speech.v2.PhraseSet.newBuilder( + (com.google.cloud.speech.v2.PhraseSet) value_) + .mergeFrom(value) + .buildPartial(); } else { value_ = value; } @@ -938,6 +1059,8 @@ public Builder mergeInlinePhraseSet(com.google.cloud.speech.v2.PhraseSet value) return this; } /** + * + * *
        * An inline defined phrase set.
        * 
@@ -961,6 +1084,8 @@ public Builder clearInlinePhraseSet() { return this; } /** + * + * *
        * An inline defined phrase set.
        * 
@@ -971,6 +1096,8 @@ public com.google.cloud.speech.v2.PhraseSet.Builder getInlinePhraseSetBuilder() return getInlinePhraseSetFieldBuilder().getBuilder(); } /** + * + * *
        * An inline defined phrase set.
        * 
@@ -989,6 +1116,8 @@ public com.google.cloud.speech.v2.PhraseSetOrBuilder getInlinePhraseSetOrBuilder } } /** + * + * *
        * An inline defined phrase set.
        * 
@@ -996,23 +1125,27 @@ public com.google.cloud.speech.v2.PhraseSetOrBuilder getInlinePhraseSetOrBuilder * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> + com.google.cloud.speech.v2.PhraseSet, + com.google.cloud.speech.v2.PhraseSet.Builder, + com.google.cloud.speech.v2.PhraseSetOrBuilder> getInlinePhraseSetFieldBuilder() { if (inlinePhraseSetBuilder_ == null) { if (!(valueCase_ == 2)) { value_ = com.google.cloud.speech.v2.PhraseSet.getDefaultInstance(); } - inlinePhraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder>( - (com.google.cloud.speech.v2.PhraseSet) value_, - getParentForChildren(), - isClean()); + inlinePhraseSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.PhraseSet, + com.google.cloud.speech.v2.PhraseSet.Builder, + com.google.cloud.speech.v2.PhraseSetOrBuilder>( + (com.google.cloud.speech.v2.PhraseSet) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 2; onChanged(); return inlinePhraseSetBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1025,41 +1158,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet) - private static final com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet DEFAULT_INSTANCE; + private static final com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet(); } - public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getDefaultInstance() { + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdaptationPhraseSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdaptationPhraseSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1071,77 +1207,99 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getDefaultInstanceForType() { + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int PHRASE_SETS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List phraseSets_; + private java.util.List + phraseSets_; /** + * + * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ @java.lang.Override - public java.util.List getPhraseSetsList() { + public java.util.List + getPhraseSetsList() { return phraseSets_; } /** + * + * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder> getPhraseSetsOrBuilderList() { return phraseSets_; } /** + * + * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ @java.lang.Override public int getPhraseSetsCount() { return phraseSets_.size(); } /** + * + * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ @java.lang.Override public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** + * + * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ @java.lang.Override - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhraseSetsOrBuilder( - int index) { + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder + getPhraseSetsOrBuilder(int index) { return phraseSets_.get(index); } public static final int CUSTOM_CLASSES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List customClasses_; /** + * + * *
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -1154,6 +1312,8 @@ public java.util.List getCustomClassesLi
     return customClasses_;
   }
   /**
+   *
+   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -1162,11 +1322,13 @@ public java.util.List getCustomClassesLi
    * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getCustomClassesOrBuilderList() {
     return customClasses_;
   }
   /**
+   *
+   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -1179,6 +1341,8 @@ public int getCustomClassesCount() {
     return customClasses_.size();
   }
   /**
+   *
+   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -1191,6 +1355,8 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) {
     return customClasses_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -1199,12 +1365,12 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) {
    * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(
-      int index) {
+  public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index) {
     return customClasses_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1216,8 +1382,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));
     }
@@ -1234,12 +1399,10 @@ 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));
     }
     for (int i = 0; i < customClasses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, customClasses_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, customClasses_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1249,17 +1412,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.v2.SpeechAdaptation)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.SpeechAdaptation other = (com.google.cloud.speech.v2.SpeechAdaptation) obj;
+    com.google.cloud.speech.v2.SpeechAdaptation other =
+        (com.google.cloud.speech.v2.SpeechAdaptation) obj;
 
-    if (!getPhraseSetsList()
-        .equals(other.getPhraseSetsList())) return false;
-    if (!getCustomClassesList()
-        .equals(other.getCustomClassesList())) return false;
+    if (!getPhraseSetsList().equals(other.getPhraseSetsList())) return false;
+    if (!getCustomClassesList().equals(other.getCustomClassesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -1284,97 +1446,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.speech.v2.SpeechAdaptation parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.speech.v2.SpeechAdaptation parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.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.v2.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.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.v2.SpeechAdaptation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.SpeechAdaptation parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v2.SpeechAdaptation parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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;
   }
   /**
+   *
+   *
    * 
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results. Phrase sets can be specified as an inline resource, or a
@@ -1383,33 +1552,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.SpeechAdaptation)
       com.google.cloud.speech.v2.SpeechAdaptationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.SpeechAdaptation.class, com.google.cloud.speech.v2.SpeechAdaptation.Builder.class);
+              com.google.cloud.speech.v2.SpeechAdaptation.class,
+              com.google.cloud.speech.v2.SpeechAdaptation.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.SpeechAdaptation.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1432,9 +1600,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
     }
 
     @java.lang.Override
@@ -1453,9 +1621,12 @@ public com.google.cloud.speech.v2.SpeechAdaptation build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.SpeechAdaptation buildPartial() {
-      com.google.cloud.speech.v2.SpeechAdaptation result = new com.google.cloud.speech.v2.SpeechAdaptation(this);
+      com.google.cloud.speech.v2.SpeechAdaptation result =
+          new com.google.cloud.speech.v2.SpeechAdaptation(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1489,38 +1660,39 @@ private void buildPartial0(com.google.cloud.speech.v2.SpeechAdaptation result) {
     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.v2.SpeechAdaptation) {
-        return mergeFrom((com.google.cloud.speech.v2.SpeechAdaptation)other);
+        return mergeFrom((com.google.cloud.speech.v2.SpeechAdaptation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1547,9 +1719,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_);
           }
@@ -1573,9 +1746,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.SpeechAdaptation other) {
             customClassesBuilder_ = null;
             customClasses_ = other.customClasses_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            customClassesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getCustomClassesFieldBuilder() : null;
+            customClassesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getCustomClassesFieldBuilder()
+                    : null;
           } else {
             customClassesBuilder_.addAllMessages(other.customClasses_);
           }
@@ -1607,38 +1781,40 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.parser(),
-                      extensionRegistry);
-              if (phraseSetsBuilder_ == null) {
-                ensurePhraseSetsIsMutable();
-                phraseSets_.add(m);
-              } else {
-                phraseSetsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              com.google.cloud.speech.v2.CustomClass m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.CustomClass.parser(),
-                      extensionRegistry);
-              if (customClassesBuilder_ == null) {
-                ensureCustomClassesIsMutable();
-                customClasses_.add(m);
-              } else {
-                customClassesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.parser(),
+                        extensionRegistry);
+                if (phraseSetsBuilder_ == null) {
+                  ensurePhraseSetsIsMutable();
+                  phraseSets_.add(m);
+                } else {
+                  phraseSetsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.cloud.speech.v2.CustomClass m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.CustomClass.parser(), extensionRegistry);
+                if (customClassesBuilder_ == null) {
+                  ensureCustomClassesIsMutable();
+                  customClasses_.add(m);
+                } else {
+                  customClassesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1648,28 +1824,39 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List phraseSets_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        phraseSets_ = java.util.Collections.emptyList();
+
     private void ensurePhraseSetsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        phraseSets_ = new java.util.ArrayList(phraseSets_);
+        phraseSets_ =
+            new java.util.ArrayList<
+                com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet>(phraseSets_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder> phraseSetsBuilder_;
+            com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet,
+            com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder,
+            com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder>
+        phraseSetsBuilder_;
 
     /**
+     *
+     *
      * 
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ - public java.util.List getPhraseSetsList() { + public java.util.List + getPhraseSetsList() { if (phraseSetsBuilder_ == null) { return java.util.Collections.unmodifiableList(phraseSets_); } else { @@ -1677,11 +1864,14 @@ public java.util.List * A list of inline or referenced phrase sets. *
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ public int getPhraseSetsCount() { if (phraseSetsBuilder_ == null) { @@ -1691,13 +1881,17 @@ public int getPhraseSetsCount() { } } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getPhraseSets(int index) { + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getPhraseSets( + int index) { if (phraseSetsBuilder_ == null) { return phraseSets_.get(index); } else { @@ -1705,11 +1899,14 @@ public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getPhrase } } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ public Builder setPhraseSets( int index, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet value) { @@ -1726,14 +1923,18 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ public Builder setPhraseSets( - int index, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue) { + int index, + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue) { if (phraseSetsBuilder_ == null) { ensurePhraseSetsIsMutable(); phraseSets_.set(index, builderForValue.build()); @@ -1744,13 +1945,17 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ - public Builder addPhraseSets(com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet value) { + public Builder addPhraseSets( + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet value) { if (phraseSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1764,11 +1969,14 @@ public Builder addPhraseSets(com.google.cloud.speech.v2.SpeechAdaptation.Adaptat return this; } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ public Builder addPhraseSets( int index, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet value) { @@ -1785,11 +1993,14 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ public Builder addPhraseSets( com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue) { @@ -1803,14 +2014,18 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ public Builder addPhraseSets( - int index, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue) { + int index, + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue) { if (phraseSetsBuilder_ == null) { ensurePhraseSetsIsMutable(); phraseSets_.add(index, builderForValue.build()); @@ -1821,18 +2036,22 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ public Builder addAllPhraseSets( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet> + 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); @@ -1840,11 +2059,14 @@ public Builder addAllPhraseSets( return this; } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ public Builder clearPhraseSets() { if (phraseSetsBuilder_ == null) { @@ -1857,11 +2079,14 @@ public Builder clearPhraseSets() { return this; } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ public Builder removePhraseSets(int index) { if (phraseSetsBuilder_ == null) { @@ -1874,39 +2099,50 @@ public Builder removePhraseSets(int index) { return this; } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder getPhraseSetsBuilder( - int index) { + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder + getPhraseSetsBuilder(int index) { return getPhraseSetsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhraseSetsOrBuilder( - int index) { + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder + getPhraseSetsOrBuilder(int index) { if (phraseSetsBuilder_ == null) { - return phraseSets_.get(index); } else { + return phraseSets_.get(index); + } else { return phraseSetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ - public java.util.List - getPhraseSetsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder> + getPhraseSetsOrBuilderList() { if (phraseSetsBuilder_ != null) { return phraseSetsBuilder_.getMessageOrBuilderList(); } else { @@ -1914,67 +2150,90 @@ public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder } } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder addPhraseSetsBuilder() { - return getPhraseSetsFieldBuilder().addBuilder( - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance()); + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder + addPhraseSetsBuilder() { + return getPhraseSetsFieldBuilder() + .addBuilder( + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance()); } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder addPhraseSetsBuilder( - int index) { - return getPhraseSetsFieldBuilder().addBuilder( - index, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance()); + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder + addPhraseSetsBuilder(int index) { + return getPhraseSetsFieldBuilder() + .addBuilder( + index, + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance()); } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder> + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet, + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder, + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder> getPhraseSetsFieldBuilder() { if (phraseSetsBuilder_ == null) { - phraseSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder>( - phraseSets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + phraseSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet, + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder, + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder>( + phraseSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); phraseSets_ = null; } return phraseSetsBuilder_; } private java.util.List customClasses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCustomClassesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - customClasses_ = new java.util.ArrayList(customClasses_); + customClasses_ = + new java.util.ArrayList(customClasses_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> customClassesBuilder_; + com.google.cloud.speech.v2.CustomClass, + com.google.cloud.speech.v2.CustomClass.Builder, + com.google.cloud.speech.v2.CustomClassOrBuilder> + customClassesBuilder_; /** + * + * *
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -1990,6 +2249,8 @@ public java.util.List getCustomClassesLi
       }
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2005,6 +2266,8 @@ public int getCustomClassesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2020,6 +2283,8 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2027,8 +2292,7 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) {
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public Builder setCustomClasses(
-        int index, com.google.cloud.speech.v2.CustomClass value) {
+    public Builder setCustomClasses(int index, com.google.cloud.speech.v2.CustomClass value) {
       if (customClassesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2042,6 +2306,8 @@ public Builder setCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2061,6 +2327,8 @@ public Builder setCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2082,6 +2350,8 @@ public Builder addCustomClasses(com.google.cloud.speech.v2.CustomClass value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2089,8 +2359,7 @@ public Builder addCustomClasses(com.google.cloud.speech.v2.CustomClass value) {
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public Builder addCustomClasses(
-        int index, com.google.cloud.speech.v2.CustomClass value) {
+    public Builder addCustomClasses(int index, com.google.cloud.speech.v2.CustomClass value) {
       if (customClassesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2104,6 +2373,8 @@ public Builder addCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2123,6 +2394,8 @@ public Builder addCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2142,6 +2415,8 @@ public Builder addCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2153,8 +2428,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);
@@ -2162,6 +2436,8 @@ public Builder addAllCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2180,6 +2456,8 @@ public Builder clearCustomClasses() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2198,6 +2476,8 @@ public Builder removeCustomClasses(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2205,11 +2485,12 @@ public Builder removeCustomClasses(int index) {
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassesBuilder(
-        int index) {
+    public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassesBuilder(int index) {
       return getCustomClassesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2217,14 +2498,16 @@ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassesBuilder(
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(
-        int index) {
+    public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index) {
       if (customClassesBuilder_ == null) {
-        return customClasses_.get(index);  } else {
+        return customClasses_.get(index);
+      } else {
         return customClassesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2232,8 +2515,8 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public java.util.List 
-         getCustomClassesOrBuilderList() {
+    public java.util.List
+        getCustomClassesOrBuilderList() {
       if (customClassesBuilder_ != null) {
         return customClassesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2241,6 +2524,8 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder
       }
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2249,10 +2534,12 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
     public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder() {
-      return getCustomClassesFieldBuilder().addBuilder(
-          com.google.cloud.speech.v2.CustomClass.getDefaultInstance());
+      return getCustomClassesFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v2.CustomClass.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2260,12 +2547,13 @@ public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder()
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(
-        int index) {
-      return getCustomClassesFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v2.CustomClass.getDefaultInstance());
+    public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(int index) {
+      return getCustomClassesFieldBuilder()
+          .addBuilder(index, com.google.cloud.speech.v2.CustomClass.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2273,16 +2561,22 @@ public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public java.util.List 
-         getCustomClassesBuilderList() {
+    public java.util.List
+        getCustomClassesBuilderList() {
       return getCustomClassesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> 
+            com.google.cloud.speech.v2.CustomClass,
+            com.google.cloud.speech.v2.CustomClass.Builder,
+            com.google.cloud.speech.v2.CustomClassOrBuilder>
         getCustomClassesFieldBuilder() {
       if (customClassesBuilder_ == null) {
-        customClassesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder>(
+        customClassesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v2.CustomClass,
+                com.google.cloud.speech.v2.CustomClass.Builder,
+                com.google.cloud.speech.v2.CustomClassOrBuilder>(
                 customClasses_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -2291,9 +2585,9 @@ public com.google.cloud.speech.v2.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);
     }
 
@@ -2303,12 +2597,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.SpeechAdaptation)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.SpeechAdaptation)
   private static final com.google.cloud.speech.v2.SpeechAdaptation DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.SpeechAdaptation();
   }
@@ -2317,27 +2611,27 @@ public static com.google.cloud.speech.v2.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 {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  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 {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2352,6 +2646,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v2.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java
similarity index 71%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java
index 5a8fc16f2c29..2c1d3322d7af 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java
@@ -1,57 +1,90 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
-public interface SpeechAdaptationOrBuilder extends
+public interface SpeechAdaptationOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.SpeechAdaptation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ - java.util.List + java.util.List getPhraseSetsList(); /** + * + * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getPhraseSets(int index); /** + * + * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ int getPhraseSetsCount(); /** + * + * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ - java.util.List + java.util.List getPhraseSetsOrBuilderList(); /** + * + * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhraseSetsOrBuilder( int index); /** + * + * *
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -59,9 +92,10 @@ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhra
    *
    * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
    */
-  java.util.List 
-      getCustomClassesList();
+  java.util.List getCustomClassesList();
   /**
+   *
+   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -71,6 +105,8 @@ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhra
    */
   com.google.cloud.speech.v2.CustomClass getCustomClasses(int index);
   /**
+   *
+   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -80,6 +116,8 @@ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhra
    */
   int getCustomClassesCount();
   /**
+   *
+   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -87,9 +125,11 @@ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhra
    *
    * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
    */
-  java.util.List 
+  java.util.List
       getCustomClassesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -97,6 +137,5 @@ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhra
    *
    * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
    */
-  com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(
-      int index);
+  com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java
similarity index 75%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java
index cbb909e06162..342473af6b42 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
+ *
+ *
  * 
  * Alternative hypotheses (a.k.a. n-best list).
  * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.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,38 +44,43 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeechRecognitionAlternative.class, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v2.SpeechRecognitionAlternative.class, + com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder.class); } public static final int TRANSCRIPT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object transcript_ = ""; /** + * + * *
    * Transcript text representing the words that the user spoke.
    * 
* * string transcript = 1; + * * @return The transcript. */ @java.lang.Override @@ -66,29 +89,29 @@ 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.
    * 
* * 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 { @@ -99,6 +122,8 @@ public java.lang.String getTranscript() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_ = 0F; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -111,6 +136,7 @@ public java.lang.String getTranscript() {
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -119,9 +145,12 @@ public float getConfidence() { } public static final int WORDS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List words_; /** + * + * *
    * A list of word-specific information for each recognized word.
    * When
@@ -136,6 +165,8 @@ public java.util.List getWordsList() {
     return words_;
   }
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -146,11 +177,13 @@ public java.util.List getWordsList() {
    * repeated .google.cloud.speech.v2.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.
    * When
@@ -165,6 +198,8 @@ public int getWordsCount() {
     return words_.size();
   }
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -179,6 +214,8 @@ public com.google.cloud.speech.v2.WordInfo getWords(int index) {
     return words_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -189,12 +226,12 @@ public com.google.cloud.speech.v2.WordInfo getWords(int index) {
    * repeated .google.cloud.speech.v2.WordInfo words = 3;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(
-      int index) {
+  public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(int index) {
     return words_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -206,8 +243,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_);
     }
@@ -230,12 +266,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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -245,20 +279,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.v2.SpeechRecognitionAlternative)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.SpeechRecognitionAlternative other = (com.google.cloud.speech.v2.SpeechRecognitionAlternative) obj;
+    com.google.cloud.speech.v2.SpeechRecognitionAlternative other =
+        (com.google.cloud.speech.v2.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -273,8 +305,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();
@@ -285,129 +316,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v2.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.v2.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.v2.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionAlternative parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionAlternative parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v2.SpeechRecognitionAlternative parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionAlternative parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v2.SpeechRecognitionAlternative parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.SpeechRecognitionAlternative prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.speech.v2.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.v2.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.v2.SpeechRecognitionAlternative) com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeechRecognitionAlternative.class, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v2.SpeechRecognitionAlternative.class, + com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder.class); } // Construct using com.google.cloud.speech.v2.SpeechRecognitionAlternative.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,9 +463,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; } @java.lang.Override @@ -446,14 +484,18 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative build() { @java.lang.Override public com.google.cloud.speech.v2.SpeechRecognitionAlternative buildPartial() { - com.google.cloud.speech.v2.SpeechRecognitionAlternative result = new com.google.cloud.speech.v2.SpeechRecognitionAlternative(this); + com.google.cloud.speech.v2.SpeechRecognitionAlternative result = + new com.google.cloud.speech.v2.SpeechRecognitionAlternative(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v2.SpeechRecognitionAlternative result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v2.SpeechRecognitionAlternative result) { if (wordsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -479,38 +521,39 @@ private void buildPartial0(com.google.cloud.speech.v2.SpeechRecognitionAlternati 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.v2.SpeechRecognitionAlternative) { - return mergeFrom((com.google.cloud.speech.v2.SpeechRecognitionAlternative)other); + return mergeFrom((com.google.cloud.speech.v2.SpeechRecognitionAlternative) other); } else { super.mergeFrom(other); return this; @@ -518,7 +561,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.SpeechRecognitionAlternative other) { - if (other == com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance()) + return this; if (!other.getTranscript().isEmpty()) { transcript_ = other.transcript_; bitField0_ |= 0x00000001; @@ -545,9 +589,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.SpeechRecognitionAlternative wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000004); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWordsFieldBuilder() : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWordsFieldBuilder() + : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -579,35 +624,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - transcript_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - case 26: { - com.google.cloud.speech.v2.WordInfo m = - input.readMessage( - com.google.cloud.speech.v2.WordInfo.parser(), - extensionRegistry); - if (wordsBuilder_ == null) { - ensureWordsIsMutable(); - words_.add(m); - } else { - wordsBuilder_.addMessage(m); - } - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + transcript_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 26: + { + com.google.cloud.speech.v2.WordInfo m = + input.readMessage( + com.google.cloud.speech.v2.WordInfo.parser(), extensionRegistry); + if (wordsBuilder_ == null) { + ensureWordsIsMutable(); + words_.add(m); + } else { + wordsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -617,22 +665,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object transcript_ = ""; /** + * + * *
      * Transcript text representing the words that the user spoke.
      * 
* * 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; @@ -641,20 +692,21 @@ public java.lang.String getTranscript() { } } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * 
* * 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 { @@ -662,28 +714,35 @@ public java.lang.String getTranscript() { } } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; + * * @param value The transcript to set. * @return This builder for chaining. */ - public Builder setTranscript( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranscript(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } transcript_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; + * * @return This builder for chaining. */ public Builder clearTranscript() { @@ -693,17 +752,21 @@ public Builder clearTranscript() { return this; } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; + * * @param value The bytes for transcript to set. * @return This builder for chaining. */ - public Builder setTranscriptBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); transcript_ = value; bitField0_ |= 0x00000001; @@ -711,8 +774,10 @@ public Builder setTranscriptBytes( 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
@@ -725,6 +790,7 @@ public Builder setTranscriptBytes(
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -732,6 +798,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
@@ -744,17 +812,20 @@ public float getConfidence() {
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000002; 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
@@ -767,6 +838,7 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -777,18 +849,24 @@ public Builder clearConfidence() { } private java.util.List words_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.WordInfo, com.google.cloud.speech.v2.WordInfo.Builder, com.google.cloud.speech.v2.WordInfoOrBuilder> wordsBuilder_; + com.google.cloud.speech.v2.WordInfo, + com.google.cloud.speech.v2.WordInfo.Builder, + com.google.cloud.speech.v2.WordInfoOrBuilder> + wordsBuilder_; /** + * + * *
      * A list of word-specific information for each recognized word.
      * When
@@ -806,6 +884,8 @@ public java.util.List getWordsList() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -823,6 +903,8 @@ public int getWordsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -840,6 +922,8 @@ public com.google.cloud.speech.v2.WordInfo getWords(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -849,8 +933,7 @@ public com.google.cloud.speech.v2.WordInfo getWords(int index) {
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public Builder setWords(
-        int index, com.google.cloud.speech.v2.WordInfo value) {
+    public Builder setWords(int index, com.google.cloud.speech.v2.WordInfo value) {
       if (wordsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -864,6 +947,8 @@ public Builder setWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -885,6 +970,8 @@ public Builder setWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -908,6 +995,8 @@ public Builder addWords(com.google.cloud.speech.v2.WordInfo value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -917,8 +1006,7 @@ public Builder addWords(com.google.cloud.speech.v2.WordInfo value) {
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public Builder addWords(
-        int index, com.google.cloud.speech.v2.WordInfo value) {
+    public Builder addWords(int index, com.google.cloud.speech.v2.WordInfo value) {
       if (wordsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -932,6 +1020,8 @@ public Builder addWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -941,8 +1031,7 @@ public Builder addWords(
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public Builder addWords(
-        com.google.cloud.speech.v2.WordInfo.Builder builderForValue) {
+    public Builder addWords(com.google.cloud.speech.v2.WordInfo.Builder builderForValue) {
       if (wordsBuilder_ == null) {
         ensureWordsIsMutable();
         words_.add(builderForValue.build());
@@ -953,6 +1042,8 @@ public Builder addWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -974,6 +1065,8 @@ public Builder addWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -987,8 +1080,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);
@@ -996,6 +1088,8 @@ public Builder addAllWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1016,6 +1110,8 @@ public Builder clearWords() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1036,6 +1132,8 @@ public Builder removeWords(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1045,11 +1143,12 @@ public Builder removeWords(int index) {
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v2.WordInfo.Builder getWordsBuilder(
-        int index) {
+    public com.google.cloud.speech.v2.WordInfo.Builder getWordsBuilder(int index) {
       return getWordsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1059,14 +1158,16 @@ public com.google.cloud.speech.v2.WordInfo.Builder getWordsBuilder(
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(
-        int index) {
+    public com.google.cloud.speech.v2.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.
      * When
@@ -1076,8 +1177,8 @@ public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public java.util.List 
-         getWordsOrBuilderList() {
+    public java.util.List
+        getWordsOrBuilderList() {
       if (wordsBuilder_ != null) {
         return wordsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1085,6 +1186,8 @@ public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1095,10 +1198,12 @@ public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
     public com.google.cloud.speech.v2.WordInfo.Builder addWordsBuilder() {
-      return getWordsFieldBuilder().addBuilder(
-          com.google.cloud.speech.v2.WordInfo.getDefaultInstance());
+      return getWordsFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v2.WordInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1108,12 +1213,13 @@ public com.google.cloud.speech.v2.WordInfo.Builder addWordsBuilder() {
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v2.WordInfo.Builder addWordsBuilder(
-        int index) {
-      return getWordsFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v2.WordInfo.getDefaultInstance());
+    public com.google.cloud.speech.v2.WordInfo.Builder addWordsBuilder(int index) {
+      return getWordsFieldBuilder()
+          .addBuilder(index, com.google.cloud.speech.v2.WordInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1123,27 +1229,29 @@ public com.google.cloud.speech.v2.WordInfo.Builder addWordsBuilder(
      *
      * repeated .google.cloud.speech.v2.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.v2.WordInfo, com.google.cloud.speech.v2.WordInfo.Builder, com.google.cloud.speech.v2.WordInfoOrBuilder> 
+            com.google.cloud.speech.v2.WordInfo,
+            com.google.cloud.speech.v2.WordInfo.Builder,
+            com.google.cloud.speech.v2.WordInfoOrBuilder>
         getWordsFieldBuilder() {
       if (wordsBuilder_ == null) {
-        wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.WordInfo, com.google.cloud.speech.v2.WordInfo.Builder, com.google.cloud.speech.v2.WordInfoOrBuilder>(
-                words_,
-                ((bitField0_ & 0x00000004) != 0),
-                getParentForChildren(),
-                isClean());
+        wordsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v2.WordInfo,
+                com.google.cloud.speech.v2.WordInfo.Builder,
+                com.google.cloud.speech.v2.WordInfoOrBuilder>(
+                words_, ((bitField0_ & 0x00000004) != 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);
     }
 
@@ -1153,12 +1261,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.SpeechRecognitionAlternative)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.SpeechRecognitionAlternative)
   private static final com.google.cloud.speech.v2.SpeechRecognitionAlternative DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.SpeechRecognitionAlternative();
   }
@@ -1167,27 +1275,27 @@ public static com.google.cloud.speech.v2.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 {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  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 {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1202,6 +1310,4 @@ public com.google.protobuf.Parser getParserForType
   public com.google.cloud.speech.v2.SpeechRecognitionAlternative getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java
similarity index 78%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java
index e9317373e2e7..74d278312ad9 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java
@@ -1,33 +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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
-public interface SpeechRecognitionAlternativeOrBuilder extends
+public interface SpeechRecognitionAlternativeOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.SpeechRecognitionAlternative)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Transcript text representing the words that the user spoke.
    * 
* * string transcript = 1; + * * @return The transcript. */ java.lang.String getTranscript(); /** + * + * *
    * Transcript text representing the words that the user spoke.
    * 
* * 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
@@ -40,11 +63,14 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    * 
* * float confidence = 2; + * * @return The confidence. */ float getConfidence(); /** + * + * *
    * A list of word-specific information for each recognized word.
    * When
@@ -54,9 +80,10 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    *
    * repeated .google.cloud.speech.v2.WordInfo words = 3;
    */
-  java.util.List 
-      getWordsList();
+  java.util.List getWordsList();
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -68,6 +95,8 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    */
   com.google.cloud.speech.v2.WordInfo getWords(int index);
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -79,6 +108,8 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    */
   int getWordsCount();
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -88,9 +119,10 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    *
    * repeated .google.cloud.speech.v2.WordInfo words = 3;
    */
-  java.util.List 
-      getWordsOrBuilderList();
+  java.util.List getWordsOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -100,6 +132,5 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    *
    * repeated .google.cloud.speech.v2.WordInfo words = 3;
    */
-  com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(
-      int index);
+  com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java
similarity index 75%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java
index 5889b6527e92..b5e0aa007fb5 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
+ *
+ *
  * 
  * A speech recognition result corresponding to a portion of the audio.
  * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.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,33 +44,37 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeechRecognitionResult.class, com.google.cloud.speech.v2.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v2.SpeechRecognitionResult.class, + com.google.cloud.speech.v2.SpeechRecognitionResult.Builder.class); } public static final int ALTERNATIVES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List alternatives_; /** + * + * *
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -62,10 +84,13 @@ protected java.lang.Object newInstance(
    * repeated .google.cloud.speech.v2.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. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -75,11 +100,13 @@ public java.util.List g
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getAlternativesOrBuilderList() {
     return alternatives_;
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -93,6 +120,8 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -106,6 +135,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(i
     return alternatives_.get(index);
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -123,6 +154,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int CHANNEL_TAG_FIELD_NUMBER = 2;
   private int channelTag_ = 0;
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -131,6 +164,7 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -141,12 +175,15 @@ public int getChannelTag() { public static final int RESULT_END_OFFSET_FIELD_NUMBER = 4; private com.google.protobuf.Duration resultEndOffset_; /** + * + * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; + * * @return Whether the resultEndOffset field is set. */ @java.lang.Override @@ -154,19 +191,26 @@ public boolean hasResultEndOffset() { return resultEndOffset_ != null; } /** + * + * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; + * * @return The resultEndOffset. */ @java.lang.Override public com.google.protobuf.Duration getResultEndOffset() { - return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_; + return resultEndOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndOffset_; } /** + * + * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
@@ -176,13 +220,18 @@ public com.google.protobuf.Duration getResultEndOffset() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
-    return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_;
+    return resultEndOffset_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : resultEndOffset_;
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
+
   @SuppressWarnings("serial")
   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
@@ -190,6 +239,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -198,14 +248,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
@@ -213,16 +264,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 { @@ -231,6 +281,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,8 +293,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)); } @@ -266,16 +316,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 (resultEndOffset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getResultEndOffset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResultEndOffset()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, languageCode_); @@ -288,24 +335,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.v2.SpeechRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v2.SpeechRecognitionResult other = (com.google.cloud.speech.v2.SpeechRecognitionResult) obj; + com.google.cloud.speech.v2.SpeechRecognitionResult other = + (com.google.cloud.speech.v2.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 (hasResultEndOffset() != other.hasResultEndOffset()) return false; if (hasResultEndOffset()) { - if (!getResultEndOffset() - .equals(other.getResultEndOffset())) return false; + if (!getResultEndOffset().equals(other.getResultEndOffset())) return false; } - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -335,129 +379,135 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.SpeechRecognitionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.SpeechRecognitionResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.SpeechRecognitionResult) com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeechRecognitionResult.class, com.google.cloud.speech.v2.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v2.SpeechRecognitionResult.class, + com.google.cloud.speech.v2.SpeechRecognitionResult.Builder.class); } // Construct using com.google.cloud.speech.v2.SpeechRecognitionResult.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +530,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; } @java.lang.Override @@ -501,14 +551,18 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult build() { @java.lang.Override public com.google.cloud.speech.v2.SpeechRecognitionResult buildPartial() { - com.google.cloud.speech.v2.SpeechRecognitionResult result = new com.google.cloud.speech.v2.SpeechRecognitionResult(this); + com.google.cloud.speech.v2.SpeechRecognitionResult result = + new com.google.cloud.speech.v2.SpeechRecognitionResult(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v2.SpeechRecognitionResult result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v2.SpeechRecognitionResult result) { if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -526,9 +580,8 @@ private void buildPartial0(com.google.cloud.speech.v2.SpeechRecognitionResult re result.channelTag_ = channelTag_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.resultEndOffset_ = resultEndOffsetBuilder_ == null - ? resultEndOffset_ - : resultEndOffsetBuilder_.build(); + result.resultEndOffset_ = + resultEndOffsetBuilder_ == null ? resultEndOffset_ : resultEndOffsetBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.languageCode_ = languageCode_; @@ -539,38 +592,39 @@ private void buildPartial0(com.google.cloud.speech.v2.SpeechRecognitionResult re 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.v2.SpeechRecognitionResult) { - return mergeFrom((com.google.cloud.speech.v2.SpeechRecognitionResult)other); + return mergeFrom((com.google.cloud.speech.v2.SpeechRecognitionResult) other); } else { super.mergeFrom(other); return this; @@ -578,7 +632,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.SpeechRecognitionResult other) { - if (other == com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance()) + return this; if (alternativesBuilder_ == null) { if (!other.alternatives_.isEmpty()) { if (alternatives_.isEmpty()) { @@ -597,9 +652,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_); } @@ -642,42 +698,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v2.SpeechRecognitionAlternative m = - input.readMessage( - com.google.cloud.speech.v2.SpeechRecognitionAlternative.parser(), - extensionRegistry); - if (alternativesBuilder_ == null) { - ensureAlternativesIsMutable(); - alternatives_.add(m); - } else { - alternativesBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: { - channelTag_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 34: { - input.readMessage( - getResultEndOffsetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.speech.v2.SpeechRecognitionAlternative m = + input.readMessage( + com.google.cloud.speech.v2.SpeechRecognitionAlternative.parser(), + extensionRegistry); + if (alternativesBuilder_ == null) { + ensureAlternativesIsMutable(); + alternatives_.add(m); + } else { + alternativesBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + channelTag_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 34: + { + input.readMessage(getResultEndOffsetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -687,21 +746,30 @@ public Builder mergeFrom( } // finally 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.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_; + com.google.cloud.speech.v2.SpeechRecognitionAlternative, + com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, + com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder> + alternativesBuilder_; /** + * + * *
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -710,7 +778,8 @@ private void ensureAlternativesIsMutable() {
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List getAlternativesList() {
+    public java.util.List
+        getAlternativesList() {
       if (alternativesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(alternatives_);
       } else {
@@ -718,6 +787,8 @@ public java.util.List g
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -734,6 +805,8 @@ public int getAlternativesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -750,6 +823,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(i
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -773,6 +848,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -782,7 +859,8 @@ public Builder setAlternatives(
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder setAlternatives(
-        int index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index,
+        com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.set(index, builderForValue.build());
@@ -793,6 +871,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -815,6 +895,8 @@ public Builder addAlternatives(com.google.cloud.speech.v2.SpeechRecognitionAlter
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -838,6 +920,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -858,6 +942,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -867,7 +953,8 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder addAlternatives(
-        int index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index,
+        com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.add(index, builderForValue.build());
@@ -878,6 +965,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -887,11 +976,11 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v2.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);
@@ -899,6 +988,8 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -918,6 +1009,8 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -937,6 +1030,8 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -950,6 +1045,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
       return getAlternativesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -958,14 +1055,17 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder(
-        int index) {
+    public com.google.cloud.speech.v2.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. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -974,8 +1074,9 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List 
-         getAlternativesOrBuilderList() {
+    public java.util.List<
+            ? extends com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>
+        getAlternativesOrBuilderList() {
       if (alternativesBuilder_ != null) {
         return alternativesBuilder_.getMessageOrBuilderList();
       } else {
@@ -983,6 +1084,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -991,11 +1094,14 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAlternativesBuilder() {
-      return getAlternativesFieldBuilder().addBuilder(
-          com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
+    public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder
+        addAlternativesBuilder() {
+      return getAlternativesFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1006,10 +1112,13 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAltern
      */
     public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAlternativesBuilder(
         int index) {
-      return getAlternativesFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
+      return getAlternativesFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1018,27 +1127,32 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAltern
      *
      * repeated .google.cloud.speech.v2.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.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder> 
+            com.google.cloud.speech.v2.SpeechRecognitionAlternative,
+            com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder,
+            com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>
         getAlternativesFieldBuilder() {
       if (alternativesBuilder_ == null) {
-        alternativesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>(
-                alternatives_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        alternativesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v2.SpeechRecognitionAlternative,
+                com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder,
+                com.google.cloud.speech.v2.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.
@@ -1047,6 +1161,7 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAltern
      * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -1054,6 +1169,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.
@@ -1062,17 +1179,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1081,6 +1201,7 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; + * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1092,36 +1213,49 @@ public Builder clearChannelTag() { private com.google.protobuf.Duration resultEndOffset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndOffsetBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + resultEndOffsetBuilder_; /** + * + * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
      * 
* * .google.protobuf.Duration result_end_offset = 4; + * * @return Whether the resultEndOffset field is set. */ public boolean hasResultEndOffset() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
      * 
* * .google.protobuf.Duration result_end_offset = 4; + * * @return The resultEndOffset. */ public com.google.protobuf.Duration getResultEndOffset() { if (resultEndOffsetBuilder_ == null) { - return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_; + return resultEndOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndOffset_; } else { return resultEndOffsetBuilder_.getMessage(); } } /** + * + * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1143,6 +1277,8 @@ public Builder setResultEndOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1150,8 +1286,7 @@ public Builder setResultEndOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_offset = 4;
      */
-    public Builder setResultEndOffset(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndOffset(com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndOffsetBuilder_ == null) {
         resultEndOffset_ = builderForValue.build();
       } else {
@@ -1162,6 +1297,8 @@ public Builder setResultEndOffset(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1171,9 +1308,9 @@ public Builder setResultEndOffset(
      */
     public Builder mergeResultEndOffset(com.google.protobuf.Duration value) {
       if (resultEndOffsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          resultEndOffset_ != null &&
-          resultEndOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && resultEndOffset_ != null
+            && resultEndOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndOffsetBuilder().mergeFrom(value);
         } else {
           resultEndOffset_ = value;
@@ -1186,6 +1323,8 @@ public Builder mergeResultEndOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1204,6 +1343,8 @@ public Builder clearResultEndOffset() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1217,6 +1358,8 @@ public com.google.protobuf.Duration.Builder getResultEndOffsetBuilder() {
       return getResultEndOffsetFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1228,11 +1371,14 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
       if (resultEndOffsetBuilder_ != null) {
         return resultEndOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return resultEndOffset_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_;
+        return resultEndOffset_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : resultEndOffset_;
       }
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1241,14 +1387,17 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
      * .google.protobuf.Duration result_end_offset = 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>
         getResultEndOffsetFieldBuilder() {
       if (resultEndOffsetBuilder_ == null) {
-        resultEndOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getResultEndOffset(),
-                getParentForChildren(),
-                isClean());
+        resultEndOffsetBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getResultEndOffset(), getParentForChildren(), isClean());
         resultEndOffset_ = null;
       }
       return resultEndOffsetBuilder_;
@@ -1256,6 +1405,8 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
 
     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
@@ -1263,13 +1414,13 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
      * 
* * 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; @@ -1278,6 +1429,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
@@ -1285,15 +1438,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 { @@ -1301,6 +1453,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
@@ -1308,18 +1462,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000008; 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
@@ -1327,6 +1485,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1336,6 +1495,8 @@ public Builder clearLanguageCode() { 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
@@ -1343,21 +1504,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000008; 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); } @@ -1367,12 +1530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.SpeechRecognitionResult) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.SpeechRecognitionResult) private static final com.google.cloud.speech.v2.SpeechRecognitionResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.SpeechRecognitionResult(); } @@ -1381,27 +1544,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1416,6 +1579,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java similarity index 82% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java index 387b637fa897..e582591940dc 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface SpeechRecognitionResultOrBuilder extends +public interface SpeechRecognitionResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.SpeechRecognitionResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -16,9 +34,10 @@ public interface SpeechRecognitionResultOrBuilder extends
    *
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List 
-      getAlternativesList();
+  java.util.List getAlternativesList();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -29,6 +48,8 @@ public interface SpeechRecognitionResultOrBuilder extends
    */
   com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(int index);
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -39,6 +60,8 @@ public interface SpeechRecognitionResultOrBuilder extends
    */
   int getAlternativesCount();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -47,9 +70,11 @@ public interface SpeechRecognitionResultOrBuilder extends
    *
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List 
+  java.util.List
       getAlternativesOrBuilderList();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -62,6 +87,8 @@ com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlternatives
       int index);
 
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -70,31 +97,40 @@ com.google.cloud.speech.v2.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_offset = 4; + * * @return Whether the resultEndOffset field is set. */ boolean hasResultEndOffset(); /** + * + * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; + * * @return The resultEndOffset. */ com.google.protobuf.Duration getResultEndOffset(); /** + * + * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
@@ -105,6 +141,8 @@ com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlternatives
   com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder();
 
   /**
+   *
+   *
    * 
    * 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
@@ -112,10 +150,13 @@ com.google.cloud.speech.v2.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
@@ -123,8 +164,8 @@ com.google.cloud.speech.v2.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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java similarity index 73% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java index 87e64f6a743c..d12ec537ca84 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java @@ -1,55 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Provides configuration information for the StreamingRecognize request.
  * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionConfig.class, com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder.class); + com.google.cloud.speech.v2.StreamingRecognitionConfig.class, + com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v2.RecognitionConfig config_; /** + * + * *
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -59,7 +79,10 @@ protected java.lang.Object newInstance(
    * of the Recognizer resource.
    * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -67,6 +90,8 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -76,14 +101,21 @@ public boolean hasConfig() {
    * of the Recognizer resource.
    * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -93,16 +125,22 @@ public com.google.cloud.speech.v2.RecognitionConfig getConfig() {
    * of the Recognizer resource.
    * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder() { - return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : config_; } public static final int CONFIG_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask configMask_; /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -120,6 +158,7 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * .google.protobuf.FieldMask config_mask = 3; + * * @return Whether the configMask field is set. */ @java.lang.Override @@ -127,6 +166,8 @@ public boolean hasConfigMask() { return configMask_ != null; } /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -144,6 +185,7 @@ public boolean hasConfigMask() {
    * 
* * .google.protobuf.FieldMask config_mask = 3; + * * @return The configMask. */ @java.lang.Override @@ -151,6 +193,8 @@ public com.google.protobuf.FieldMask getConfigMask() { return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -177,12 +221,15 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
   public static final int STREAMING_FEATURES_FIELD_NUMBER = 2;
   private com.google.cloud.speech.v2.StreamingRecognitionFeatures streamingFeatures_;
   /**
+   *
+   *
    * 
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
    * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; + * * @return Whether the streamingFeatures field is set. */ @java.lang.Override @@ -190,19 +237,26 @@ public boolean hasStreamingFeatures() { return streamingFeatures_ != null; } /** + * + * *
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
    * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; + * * @return The streamingFeatures. */ @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognitionFeatures getStreamingFeatures() { - return streamingFeatures_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() : streamingFeatures_; + return streamingFeatures_ == null + ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() + : streamingFeatures_; } /** + * + * *
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
@@ -211,11 +265,15 @@ public com.google.cloud.speech.v2.StreamingRecognitionFeatures getStreamingFeatu
    * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder getStreamingFeaturesOrBuilder() {
-    return streamingFeatures_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() : streamingFeatures_;
+  public com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder
+      getStreamingFeaturesOrBuilder() {
+    return streamingFeatures_ == null
+        ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()
+        : streamingFeatures_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -227,8 +285,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());
     }
@@ -248,16 +305,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 (streamingFeatures_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getStreamingFeatures());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStreamingFeatures());
     }
     if (configMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getConfigMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConfigMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -267,27 +321,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.v2.StreamingRecognitionConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.StreamingRecognitionConfig other = (com.google.cloud.speech.v2.StreamingRecognitionConfig) obj;
+    com.google.cloud.speech.v2.StreamingRecognitionConfig other =
+        (com.google.cloud.speech.v2.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 (hasConfigMask() != other.hasConfigMask()) return false;
     if (hasConfigMask()) {
-      if (!getConfigMask()
-          .equals(other.getConfigMask())) return false;
+      if (!getConfigMask().equals(other.getConfigMask())) return false;
     }
     if (hasStreamingFeatures() != other.hasStreamingFeatures()) return false;
     if (hasStreamingFeatures()) {
-      if (!getStreamingFeatures()
-          .equals(other.getStreamingFeatures())) return false;
+      if (!getStreamingFeatures().equals(other.getStreamingFeatures())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -318,129 +370,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v2.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.v2.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.v2.StreamingRecognitionConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v2.StreamingRecognitionConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v2.StreamingRecognitionConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.StreamingRecognitionConfig prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.speech.v2.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 configuration information for the StreamingRecognize request.
    * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.StreamingRecognitionConfig) com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionConfig.class, com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder.class); + com.google.cloud.speech.v2.StreamingRecognitionConfig.class, + com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder.class); } // Construct using com.google.cloud.speech.v2.StreamingRecognitionConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -464,9 +523,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; } @java.lang.Override @@ -485,8 +544,11 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfig build() { @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognitionConfig buildPartial() { - com.google.cloud.speech.v2.StreamingRecognitionConfig result = new com.google.cloud.speech.v2.StreamingRecognitionConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v2.StreamingRecognitionConfig result = + new com.google.cloud.speech.v2.StreamingRecognitionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -494,19 +556,16 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfig buildPartial() { private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.config_ = configBuilder_ == null - ? config_ - : configBuilder_.build(); + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.configMask_ = configMaskBuilder_ == null - ? configMask_ - : configMaskBuilder_.build(); + result.configMask_ = configMaskBuilder_ == null ? configMask_ : configMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.streamingFeatures_ = streamingFeaturesBuilder_ == null - ? streamingFeatures_ - : streamingFeaturesBuilder_.build(); + result.streamingFeatures_ = + streamingFeaturesBuilder_ == null + ? streamingFeatures_ + : streamingFeaturesBuilder_.build(); } } @@ -514,38 +573,39 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionConfig 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.v2.StreamingRecognitionConfig) { - return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionConfig)other); + return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionConfig) other); } else { super.mergeFrom(other); return this; @@ -553,7 +613,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognitionConfig other) { - if (other == com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance()) + return this; if (other.hasConfig()) { mergeConfig(other.getConfig()); } @@ -589,33 +650,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getStreamingFeaturesFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: { - input.readMessage( - getConfigMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getStreamingFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + input.readMessage(getConfigMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -625,12 +685,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.speech.v2.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> configBuilder_; + com.google.cloud.speech.v2.RecognitionConfig, + com.google.cloud.speech.v2.RecognitionConfig.Builder, + com.google.cloud.speech.v2.RecognitionConfigOrBuilder> + configBuilder_; /** + * + * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -640,13 +706,18 @@ public Builder mergeFrom(
      * of the Recognizer resource.
      * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -656,17 +727,24 @@ public boolean hasConfig() {
      * of the Recognizer resource.
      * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v2.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -676,7 +754,9 @@ public com.google.cloud.speech.v2.RecognitionConfig getConfig() {
      * of the Recognizer resource.
      * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) { if (configBuilder_ == null) { @@ -692,6 +772,8 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -701,10 +783,11 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
      * of the Recognizer resource.
      * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setConfig( - com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) { + public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); } else { @@ -715,6 +798,8 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -724,13 +809,15 @@ public Builder setConfig(
      * of the Recognizer resource.
      * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) { if (configBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - config_ != null && - config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && config_ != null + && config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -743,6 +830,8 @@ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -752,7 +841,9 @@ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
      * of the Recognizer resource.
      * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { bitField0_ = (bitField0_ & ~0x00000001); @@ -765,6 +856,8 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -774,7 +867,9 @@ public Builder clearConfig() {
      * of the Recognizer resource.
      * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() { bitField0_ |= 0x00000001; @@ -782,6 +877,8 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() { return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -791,17 +888,22 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() {
      * of the Recognizer resource.
      * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -811,17 +913,22 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * of the Recognizer resource.
      * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> + com.google.cloud.speech.v2.RecognitionConfig, + com.google.cloud.speech.v2.RecognitionConfig.Builder, + com.google.cloud.speech.v2.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.RecognitionConfig, + com.google.cloud.speech.v2.RecognitionConfig.Builder, + com.google.cloud.speech.v2.RecognitionConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; @@ -829,8 +936,13 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder( private com.google.protobuf.FieldMask configMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> configMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + configMaskBuilder_; /** + * + * *
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -848,12 +960,15 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * .google.protobuf.FieldMask config_mask = 3; + * * @return Whether the configMask field is set. */ public boolean hasConfigMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -871,16 +986,21 @@ public boolean hasConfigMask() {
      * 
* * .google.protobuf.FieldMask config_mask = 3; + * * @return The configMask. */ public com.google.protobuf.FieldMask getConfigMask() { if (configMaskBuilder_ == null) { - return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; + return configMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : configMask_; } else { return configMaskBuilder_.getMessage(); } } /** + * + * *
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -913,6 +1033,8 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -931,8 +1053,7 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask config_mask = 3;
      */
-    public Builder setConfigMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (configMaskBuilder_ == null) {
         configMask_ = builderForValue.build();
       } else {
@@ -943,6 +1064,8 @@ public Builder setConfigMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -963,9 +1086,9 @@ public Builder setConfigMask(
      */
     public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       if (configMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          configMask_ != null &&
-          configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && configMask_ != null
+            && configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getConfigMaskBuilder().mergeFrom(value);
         } else {
           configMask_ = value;
@@ -978,6 +1101,8 @@ public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1007,6 +1132,8 @@ public Builder clearConfigMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1031,6 +1158,8 @@ public com.google.protobuf.FieldMask.Builder getConfigMaskBuilder() {
       return getConfigMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1053,11 +1182,14 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
       if (configMaskBuilder_ != null) {
         return configMaskBuilder_.getMessageOrBuilder();
       } else {
-        return configMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : configMask_;
+        return configMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : configMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1077,14 +1209,17 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
      * .google.protobuf.FieldMask config_mask = 3;
      */
     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>
         getConfigMaskFieldBuilder() {
       if (configMaskBuilder_ == null) {
-        configMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getConfigMask(),
-                getParentForChildren(),
-                isClean());
+        configMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getConfigMask(), getParentForChildren(), isClean());
         configMask_ = null;
       }
       return configMaskBuilder_;
@@ -1092,36 +1227,49 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
 
     private com.google.cloud.speech.v2.StreamingRecognitionFeatures streamingFeatures_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.StreamingRecognitionFeatures, com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder> streamingFeaturesBuilder_;
+            com.google.cloud.speech.v2.StreamingRecognitionFeatures,
+            com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder,
+            com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder>
+        streamingFeaturesBuilder_;
     /**
+     *
+     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
      * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; + * * @return Whether the streamingFeatures field is set. */ public boolean hasStreamingFeatures() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
      * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; + * * @return The streamingFeatures. */ public com.google.cloud.speech.v2.StreamingRecognitionFeatures getStreamingFeatures() { if (streamingFeaturesBuilder_ == null) { - return streamingFeatures_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() : streamingFeatures_; + return streamingFeatures_ == null + ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() + : streamingFeatures_; } else { return streamingFeaturesBuilder_.getMessage(); } } /** + * + * *
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1129,7 +1277,8 @@ public com.google.cloud.speech.v2.StreamingRecognitionFeatures getStreamingFeatu
      *
      * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
      */
-    public Builder setStreamingFeatures(com.google.cloud.speech.v2.StreamingRecognitionFeatures value) {
+    public Builder setStreamingFeatures(
+        com.google.cloud.speech.v2.StreamingRecognitionFeatures value) {
       if (streamingFeaturesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1143,6 +1292,8 @@ public Builder setStreamingFeatures(com.google.cloud.speech.v2.StreamingRecognit
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1162,6 +1313,8 @@ public Builder setStreamingFeatures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1169,11 +1322,13 @@ public Builder setStreamingFeatures(
      *
      * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
      */
-    public Builder mergeStreamingFeatures(com.google.cloud.speech.v2.StreamingRecognitionFeatures value) {
+    public Builder mergeStreamingFeatures(
+        com.google.cloud.speech.v2.StreamingRecognitionFeatures value) {
       if (streamingFeaturesBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          streamingFeatures_ != null &&
-          streamingFeatures_ != com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && streamingFeatures_ != null
+            && streamingFeatures_
+                != com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()) {
           getStreamingFeaturesBuilder().mergeFrom(value);
         } else {
           streamingFeatures_ = value;
@@ -1186,6 +1341,8 @@ public Builder mergeStreamingFeatures(com.google.cloud.speech.v2.StreamingRecogn
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1204,6 +1361,8 @@ public Builder clearStreamingFeatures() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1211,12 +1370,15 @@ public Builder clearStreamingFeatures() {
      *
      * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
      */
-    public com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder getStreamingFeaturesBuilder() {
+    public com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder
+        getStreamingFeaturesBuilder() {
       bitField0_ |= 0x00000004;
       onChanged();
       return getStreamingFeaturesFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1224,15 +1386,19 @@ public com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder getStream
      *
      * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
      */
-    public com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder getStreamingFeaturesOrBuilder() {
+    public com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder
+        getStreamingFeaturesOrBuilder() {
       if (streamingFeaturesBuilder_ != null) {
         return streamingFeaturesBuilder_.getMessageOrBuilder();
       } else {
-        return streamingFeatures_ == null ?
-            com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() : streamingFeatures_;
+        return streamingFeatures_ == null
+            ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()
+            : streamingFeatures_;
       }
     }
     /**
+     *
+     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1241,21 +1407,24 @@ public com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder getStrea
      * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.StreamingRecognitionFeatures, com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder> 
+            com.google.cloud.speech.v2.StreamingRecognitionFeatures,
+            com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder,
+            com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder>
         getStreamingFeaturesFieldBuilder() {
       if (streamingFeaturesBuilder_ == null) {
-        streamingFeaturesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.StreamingRecognitionFeatures, com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder>(
-                getStreamingFeatures(),
-                getParentForChildren(),
-                isClean());
+        streamingFeaturesBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v2.StreamingRecognitionFeatures,
+                com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder,
+                com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder>(
+                getStreamingFeatures(), getParentForChildren(), isClean());
         streamingFeatures_ = null;
       }
       return streamingFeaturesBuilder_;
     }
+
     @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);
     }
 
@@ -1265,12 +1434,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognitionConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognitionConfig)
   private static final com.google.cloud.speech.v2.StreamingRecognitionConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognitionConfig();
   }
@@ -1279,27 +1448,27 @@ public static com.google.cloud.speech.v2.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 {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  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 {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1314,6 +1483,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.speech.v2.StreamingRecognitionConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java
similarity index 83%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java
index 0db3e5ea8b02..8bdb2d81b5fe 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
-public interface StreamingRecognitionConfigOrBuilder extends
+public interface StreamingRecognitionConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognitionConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -17,11 +35,16 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * of the Recognizer resource.
    * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -31,11 +54,16 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * of the Recognizer resource.
    * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ com.google.cloud.speech.v2.RecognitionConfig getConfig(); /** + * + * *
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -45,11 +73,15 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * of the Recognizer resource.
    * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -67,10 +99,13 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * 
* * .google.protobuf.FieldMask config_mask = 3; + * * @return Whether the configMask field is set. */ boolean hasConfigMask(); /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -88,10 +123,13 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * 
* * .google.protobuf.FieldMask config_mask = 3; + * * @return The configMask. */ com.google.protobuf.FieldMask getConfigMask(); /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -113,26 +151,34 @@ public interface StreamingRecognitionConfigOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
    * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; + * * @return Whether the streamingFeatures field is set. */ boolean hasStreamingFeatures(); /** + * + * *
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
    * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; + * * @return The streamingFeatures. */ com.google.cloud.speech.v2.StreamingRecognitionFeatures getStreamingFeatures(); /** + * + * *
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java
similarity index 66%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java
index 179ccc742060..dd8338d0ef11 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java
@@ -1,57 +1,78 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
+ *
+ *
  * 
  * Available recognition features specific to streaming recognition requests.
  * 
* * Protobuf type {@code google.cloud.speech.v2.StreamingRecognitionFeatures} */ -public final class StreamingRecognitionFeatures extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StreamingRecognitionFeatures extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.StreamingRecognitionFeatures) StreamingRecognitionFeaturesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StreamingRecognitionFeatures.newBuilder() to construct. private StreamingRecognitionFeatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StreamingRecognitionFeatures() { - } + + private StreamingRecognitionFeatures() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StreamingRecognitionFeatures(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.class, com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder.class); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.class, + com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder.class); } - public interface VoiceActivityTimeoutOrBuilder extends + public interface VoiceActivityTimeoutOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -59,10 +80,13 @@ public interface VoiceActivityTimeoutOrBuilder extends
      * 
* * .google.protobuf.Duration speech_start_timeout = 1; + * * @return Whether the speechStartTimeout field is set. */ boolean hasSpeechStartTimeout(); /** + * + * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -70,10 +94,13 @@ public interface VoiceActivityTimeoutOrBuilder extends
      * 
* * .google.protobuf.Duration speech_start_timeout = 1; + * * @return The speechStartTimeout. */ com.google.protobuf.Duration getSpeechStartTimeout(); /** + * + * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -85,6 +112,8 @@ public interface VoiceActivityTimeoutOrBuilder extends
     com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder();
 
     /**
+     *
+     *
      * 
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -92,10 +121,13 @@ public interface VoiceActivityTimeoutOrBuilder extends
      * 
* * .google.protobuf.Duration speech_end_timeout = 2; + * * @return Whether the speechEndTimeout field is set. */ boolean hasSpeechEndTimeout(); /** + * + * *
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -103,10 +135,13 @@ public interface VoiceActivityTimeoutOrBuilder extends
      * 
* * .google.protobuf.Duration speech_end_timeout = 2; + * * @return The speechEndTimeout. */ com.google.protobuf.Duration getSpeechEndTimeout(); /** + * + * *
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -118,52 +153,58 @@ public interface VoiceActivityTimeoutOrBuilder extends
     com.google.protobuf.DurationOrBuilder getSpeechEndTimeoutOrBuilder();
   }
   /**
+   *
+   *
    * 
    * Events that a timeout can be set on for voice activity.
    * 
* * Protobuf type {@code google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout} */ - public static final class VoiceActivityTimeout extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class VoiceActivityTimeout extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) VoiceActivityTimeoutOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VoiceActivityTimeout.newBuilder() to construct. private VoiceActivityTimeout(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VoiceActivityTimeout() { - } + + private VoiceActivityTimeout() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VoiceActivityTimeout(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.class, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder.class); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.class, + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder + .class); } public static final int SPEECH_START_TIMEOUT_FIELD_NUMBER = 1; private com.google.protobuf.Duration speechStartTimeout_; /** + * + * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -171,6 +212,7 @@ protected java.lang.Object newInstance(
      * 
* * .google.protobuf.Duration speech_start_timeout = 1; + * * @return Whether the speechStartTimeout field is set. */ @java.lang.Override @@ -178,6 +220,8 @@ public boolean hasSpeechStartTimeout() { return speechStartTimeout_ != null; } /** + * + * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -185,13 +229,18 @@ public boolean hasSpeechStartTimeout() {
      * 
* * .google.protobuf.Duration speech_start_timeout = 1; + * * @return The speechStartTimeout. */ @java.lang.Override public com.google.protobuf.Duration getSpeechStartTimeout() { - return speechStartTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechStartTimeout_; + return speechStartTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : speechStartTimeout_; } /** + * + * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -202,12 +251,16 @@ public com.google.protobuf.Duration getSpeechStartTimeout() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
-      return speechStartTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechStartTimeout_;
+      return speechStartTimeout_ == null
+          ? com.google.protobuf.Duration.getDefaultInstance()
+          : speechStartTimeout_;
     }
 
     public static final int SPEECH_END_TIMEOUT_FIELD_NUMBER = 2;
     private com.google.protobuf.Duration speechEndTimeout_;
     /**
+     *
+     *
      * 
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -215,6 +268,7 @@ public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
      * 
* * .google.protobuf.Duration speech_end_timeout = 2; + * * @return Whether the speechEndTimeout field is set. */ @java.lang.Override @@ -222,6 +276,8 @@ public boolean hasSpeechEndTimeout() { return speechEndTimeout_ != null; } /** + * + * *
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -229,13 +285,18 @@ public boolean hasSpeechEndTimeout() {
      * 
* * .google.protobuf.Duration speech_end_timeout = 2; + * * @return The speechEndTimeout. */ @java.lang.Override public com.google.protobuf.Duration getSpeechEndTimeout() { - return speechEndTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEndTimeout_; + return speechEndTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : speechEndTimeout_; } /** + * + * *
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -246,10 +307,13 @@ public com.google.protobuf.Duration getSpeechEndTimeout() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getSpeechEndTimeoutOrBuilder() {
-      return speechEndTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEndTimeout_;
+      return speechEndTimeout_ == null
+          ? com.google.protobuf.Duration.getDefaultInstance()
+          : speechEndTimeout_;
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -261,8 +325,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 (speechStartTimeout_ != null) {
         output.writeMessage(1, getSpeechStartTimeout());
       }
@@ -279,12 +342,11 @@ public int getSerializedSize() {
 
       size = 0;
       if (speechStartTimeout_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, getSpeechStartTimeout());
+        size +=
+            com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSpeechStartTimeout());
       }
       if (speechEndTimeout_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, getSpeechEndTimeout());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpeechEndTimeout());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -294,22 +356,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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout)) {
+      if (!(obj
+          instanceof
+          com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout)) {
         return super.equals(obj);
       }
-      com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout other = (com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) obj;
+      com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout other =
+          (com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) obj;
 
       if (hasSpeechStartTimeout() != other.hasSpeechStartTimeout()) return false;
       if (hasSpeechStartTimeout()) {
-        if (!getSpeechStartTimeout()
-            .equals(other.getSpeechStartTimeout())) return false;
+        if (!getSpeechStartTimeout().equals(other.getSpeechStartTimeout())) return false;
       }
       if (hasSpeechEndTimeout() != other.hasSpeechEndTimeout()) return false;
       if (hasSpeechEndTimeout()) {
-        if (!getSpeechEndTimeout()
-            .equals(other.getSpeechEndTimeout())) return false;
+        if (!getSpeechEndTimeout().equals(other.getSpeechEndTimeout())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -335,88 +398,101 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        parseFrom(java.nio.ByteBuffer data)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        parseFrom(
+            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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
-        com.google.protobuf.ByteString data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        parseFrom(com.google.protobuf.ByteString data)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
-        com.google.protobuf.ByteString data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        parseFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        parseFrom(
+            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout 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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        parseFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout prototype) {
+
+    public static Builder newBuilder(
+        com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout 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
@@ -426,39 +502,44 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * Events that a timeout can be set on for voice activity.
      * 
* - * Protobuf type {@code google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout} + * Protobuf type {@code + * google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout} */ - 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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.class, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder.class); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.class, + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder + .class); } - // Construct using com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -477,19 +558,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; } @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getDefaultInstanceForType() { - return com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance(); + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + getDefaultInstanceForType() { + return com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout build() { - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result = buildPartial(); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -497,24 +581,31 @@ public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTime } @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout buildPartial() { - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result = new com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + buildPartial() { + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result = + new com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result) { + private void buildPartial0( + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.speechStartTimeout_ = speechStartTimeoutBuilder_ == null - ? speechStartTimeout_ - : speechStartTimeoutBuilder_.build(); + result.speechStartTimeout_ = + speechStartTimeoutBuilder_ == null + ? speechStartTimeout_ + : speechStartTimeoutBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.speechEndTimeout_ = speechEndTimeoutBuilder_ == null - ? speechEndTimeout_ - : speechEndTimeoutBuilder_.build(); + result.speechEndTimeout_ = + speechEndTimeoutBuilder_ == null + ? speechEndTimeout_ + : speechEndTimeoutBuilder_.build(); } } @@ -522,46 +613,55 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionFeatur 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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) { - return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout)other); + if (other + instanceof + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) { + return mergeFrom( + (com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout other) { - if (other == com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout other) { + if (other + == com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + .getDefaultInstance()) return this; if (other.hasSpeechStartTimeout()) { mergeSpeechStartTimeout(other.getSpeechStartTimeout()); } @@ -594,26 +694,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getSpeechStartTimeoutFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getSpeechEndTimeoutFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getSpeechStartTimeoutFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getSpeechEndTimeoutFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -623,12 +724,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Duration speechStartTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> speechStartTimeoutBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + speechStartTimeoutBuilder_; /** + * + * *
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -636,12 +743,15 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Duration speech_start_timeout = 1; + * * @return Whether the speechStartTimeout field is set. */ public boolean hasSpeechStartTimeout() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -649,16 +759,21 @@ public boolean hasSpeechStartTimeout() {
        * 
* * .google.protobuf.Duration speech_start_timeout = 1; + * * @return The speechStartTimeout. */ public com.google.protobuf.Duration getSpeechStartTimeout() { if (speechStartTimeoutBuilder_ == null) { - return speechStartTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechStartTimeout_; + return speechStartTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : speechStartTimeout_; } else { return speechStartTimeoutBuilder_.getMessage(); } } /** + * + * *
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -681,6 +796,8 @@ public Builder setSpeechStartTimeout(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -689,8 +806,7 @@ public Builder setSpeechStartTimeout(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration speech_start_timeout = 1;
        */
-      public Builder setSpeechStartTimeout(
-          com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setSpeechStartTimeout(com.google.protobuf.Duration.Builder builderForValue) {
         if (speechStartTimeoutBuilder_ == null) {
           speechStartTimeout_ = builderForValue.build();
         } else {
@@ -701,6 +817,8 @@ public Builder setSpeechStartTimeout(
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -711,9 +829,9 @@ public Builder setSpeechStartTimeout(
        */
       public Builder mergeSpeechStartTimeout(com.google.protobuf.Duration value) {
         if (speechStartTimeoutBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0) &&
-            speechStartTimeout_ != null &&
-            speechStartTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0)
+              && speechStartTimeout_ != null
+              && speechStartTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getSpeechStartTimeoutBuilder().mergeFrom(value);
           } else {
             speechStartTimeout_ = value;
@@ -726,6 +844,8 @@ public Builder mergeSpeechStartTimeout(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -745,6 +865,8 @@ public Builder clearSpeechStartTimeout() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -759,6 +881,8 @@ public com.google.protobuf.Duration.Builder getSpeechStartTimeoutBuilder() {
         return getSpeechStartTimeoutFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -771,11 +895,14 @@ public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
         if (speechStartTimeoutBuilder_ != null) {
           return speechStartTimeoutBuilder_.getMessageOrBuilder();
         } else {
-          return speechStartTimeout_ == null ?
-              com.google.protobuf.Duration.getDefaultInstance() : speechStartTimeout_;
+          return speechStartTimeout_ == null
+              ? com.google.protobuf.Duration.getDefaultInstance()
+              : speechStartTimeout_;
         }
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -785,14 +912,17 @@ public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
        * .google.protobuf.Duration speech_start_timeout = 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>
           getSpeechStartTimeoutFieldBuilder() {
         if (speechStartTimeoutBuilder_ == null) {
-          speechStartTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                  getSpeechStartTimeout(),
-                  getParentForChildren(),
-                  isClean());
+          speechStartTimeoutBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Duration,
+                  com.google.protobuf.Duration.Builder,
+                  com.google.protobuf.DurationOrBuilder>(
+                  getSpeechStartTimeout(), getParentForChildren(), isClean());
           speechStartTimeout_ = null;
         }
         return speechStartTimeoutBuilder_;
@@ -800,8 +930,13 @@ public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
 
       private com.google.protobuf.Duration speechEndTimeout_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> speechEndTimeoutBuilder_;
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
+          speechEndTimeoutBuilder_;
       /**
+       *
+       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -809,12 +944,15 @@ public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
        * 
* * .google.protobuf.Duration speech_end_timeout = 2; + * * @return Whether the speechEndTimeout field is set. */ public boolean hasSpeechEndTimeout() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -822,16 +960,21 @@ public boolean hasSpeechEndTimeout() {
        * 
* * .google.protobuf.Duration speech_end_timeout = 2; + * * @return The speechEndTimeout. */ public com.google.protobuf.Duration getSpeechEndTimeout() { if (speechEndTimeoutBuilder_ == null) { - return speechEndTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEndTimeout_; + return speechEndTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : speechEndTimeout_; } else { return speechEndTimeoutBuilder_.getMessage(); } } /** + * + * *
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -854,6 +997,8 @@ public Builder setSpeechEndTimeout(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -862,8 +1007,7 @@ public Builder setSpeechEndTimeout(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration speech_end_timeout = 2;
        */
-      public Builder setSpeechEndTimeout(
-          com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setSpeechEndTimeout(com.google.protobuf.Duration.Builder builderForValue) {
         if (speechEndTimeoutBuilder_ == null) {
           speechEndTimeout_ = builderForValue.build();
         } else {
@@ -874,6 +1018,8 @@ public Builder setSpeechEndTimeout(
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -884,9 +1030,9 @@ public Builder setSpeechEndTimeout(
        */
       public Builder mergeSpeechEndTimeout(com.google.protobuf.Duration value) {
         if (speechEndTimeoutBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0) &&
-            speechEndTimeout_ != null &&
-            speechEndTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0)
+              && speechEndTimeout_ != null
+              && speechEndTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getSpeechEndTimeoutBuilder().mergeFrom(value);
           } else {
             speechEndTimeout_ = value;
@@ -899,6 +1045,8 @@ public Builder mergeSpeechEndTimeout(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -918,6 +1066,8 @@ public Builder clearSpeechEndTimeout() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -932,6 +1082,8 @@ public com.google.protobuf.Duration.Builder getSpeechEndTimeoutBuilder() {
         return getSpeechEndTimeoutFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -944,11 +1096,14 @@ public com.google.protobuf.DurationOrBuilder getSpeechEndTimeoutOrBuilder() {
         if (speechEndTimeoutBuilder_ != null) {
           return speechEndTimeoutBuilder_.getMessageOrBuilder();
         } else {
-          return speechEndTimeout_ == null ?
-              com.google.protobuf.Duration.getDefaultInstance() : speechEndTimeout_;
+          return speechEndTimeout_ == null
+              ? com.google.protobuf.Duration.getDefaultInstance()
+              : speechEndTimeout_;
         }
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -958,18 +1113,22 @@ public com.google.protobuf.DurationOrBuilder getSpeechEndTimeoutOrBuilder() {
        * .google.protobuf.Duration speech_end_timeout = 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>
           getSpeechEndTimeoutFieldBuilder() {
         if (speechEndTimeoutBuilder_ == null) {
-          speechEndTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                  getSpeechEndTimeout(),
-                  getParentForChildren(),
-                  isClean());
+          speechEndTimeoutBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Duration,
+                  com.google.protobuf.Duration.Builder,
+                  com.google.protobuf.DurationOrBuilder>(
+                  getSpeechEndTimeout(), getParentForChildren(), isClean());
           speechEndTimeout_ = null;
         }
         return speechEndTimeoutBuilder_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -982,41 +1141,46 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout)
-    private static final com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout DEFAULT_INSTANCE;
+    private static final com.google.cloud.speech.v2.StreamingRecognitionFeatures
+            .VoiceActivityTimeout
+        DEFAULT_INSTANCE;
+
     static {
-      DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout();
+      DEFAULT_INSTANCE =
+          new com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout();
     }
 
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getDefaultInstance() {
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public VoiceActivityTimeout parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        Builder builder = newBuilder();
-        try {
-          builder.mergeFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          throw e.setUnfinishedMessage(builder.buildPartial());
-        } catch (com.google.protobuf.UninitializedMessageException e) {
-          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-        } catch (java.io.IOException e) {
-          throw new com.google.protobuf.InvalidProtocolBufferException(e)
-              .setUnfinishedMessage(builder.buildPartial());
-        }
-        return builder.buildPartial();
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public VoiceActivityTimeout parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            Builder builder = newBuilder();
+            try {
+              builder.mergeFrom(input, extensionRegistry);
+            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+              throw e.setUnfinishedMessage(builder.buildPartial());
+            } catch (com.google.protobuf.UninitializedMessageException e) {
+              throw e.asInvalidProtocolBufferException()
+                  .setUnfinishedMessage(builder.buildPartial());
+            } catch (java.io.IOException e) {
+              throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                  .setUnfinishedMessage(builder.buildPartial());
+            }
+            return builder.buildPartial();
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -1028,21 +1192,24 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getDefaultInstanceForType() {
+    public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
   public static final int ENABLE_VOICE_ACTIVITY_EVENTS_FIELD_NUMBER = 1;
   private boolean enableVoiceActivityEvents_ = false;
   /**
+   *
+   *
    * 
    * If `true`, responses with voice activity speech events will be returned as
    * they are detected.
    * 
* * bool enable_voice_activity_events = 1; + * * @return The enableVoiceActivityEvents. */ @java.lang.Override @@ -1053,6 +1220,8 @@ public boolean getEnableVoiceActivityEvents() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 2; private boolean interimResults_ = false; /** + * + * *
    * Whether or not to stream interim results to the client. If set to true,
    * interim results will be streamed to the client. Otherwise, only the final
@@ -1060,6 +1229,7 @@ public boolean getEnableVoiceActivityEvents() {
    * 
* * bool interim_results = 2; + * * @return The interimResults. */ @java.lang.Override @@ -1068,15 +1238,21 @@ public boolean getInterimResults() { } public static final int VOICE_ACTIVITY_TIMEOUT_FIELD_NUMBER = 3; - private com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voiceActivityTimeout_; + private com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + voiceActivityTimeout_; /** + * + * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * * @return Whether the voiceActivityTimeout field is set. */ @java.lang.Override @@ -1084,34 +1260,52 @@ public boolean hasVoiceActivityTimeout() { return voiceActivityTimeout_ != null; } /** + * + * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * * @return The voiceActivityTimeout. */ @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getVoiceActivityTimeout() { - return voiceActivityTimeout_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance() : voiceActivityTimeout_; + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + getVoiceActivityTimeout() { + return voiceActivityTimeout_ == null + ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + .getDefaultInstance() + : voiceActivityTimeout_; } /** + * + * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * */ @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder getVoiceActivityTimeoutOrBuilder() { - return voiceActivityTimeout_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance() : voiceActivityTimeout_; + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder + getVoiceActivityTimeoutOrBuilder() { + return voiceActivityTimeout_ == null + ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + .getDefaultInstance() + : voiceActivityTimeout_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1123,8 +1317,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 (enableVoiceActivityEvents_ != false) { output.writeBool(1, enableVoiceActivityEvents_); } @@ -1144,16 +1337,14 @@ public int getSerializedSize() { size = 0; if (enableVoiceActivityEvents_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableVoiceActivityEvents_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableVoiceActivityEvents_); } if (interimResults_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, interimResults_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, interimResults_); } if (voiceActivityTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getVoiceActivityTimeout()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getVoiceActivityTimeout()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1163,21 +1354,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.v2.StreamingRecognitionFeatures)) { return super.equals(obj); } - com.google.cloud.speech.v2.StreamingRecognitionFeatures other = (com.google.cloud.speech.v2.StreamingRecognitionFeatures) obj; + com.google.cloud.speech.v2.StreamingRecognitionFeatures other = + (com.google.cloud.speech.v2.StreamingRecognitionFeatures) obj; - if (getEnableVoiceActivityEvents() - != other.getEnableVoiceActivityEvents()) return false; - if (getInterimResults() - != other.getInterimResults()) return false; + if (getEnableVoiceActivityEvents() != other.getEnableVoiceActivityEvents()) return false; + if (getInterimResults() != other.getInterimResults()) return false; if (hasVoiceActivityTimeout() != other.hasVoiceActivityTimeout()) return false; if (hasVoiceActivityTimeout()) { - if (!getVoiceActivityTimeout() - .equals(other.getVoiceActivityTimeout())) return false; + if (!getVoiceActivityTimeout().equals(other.getVoiceActivityTimeout())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1191,11 +1380,9 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_VOICE_ACTIVITY_EVENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableVoiceActivityEvents()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVoiceActivityEvents()); 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()); if (hasVoiceActivityTimeout()) { hash = (37 * hash) + VOICE_ACTIVITY_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getVoiceActivityTimeout().hashCode(); @@ -1206,129 +1393,136 @@ public int hashCode() { } public static com.google.cloud.speech.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.StreamingRecognitionFeatures parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.StreamingRecognitionFeatures parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v2.StreamingRecognitionFeatures 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; } /** + * + * *
    * Available recognition features specific to streaming recognition requests.
    * 
* * Protobuf type {@code google.cloud.speech.v2.StreamingRecognitionFeatures} */ - 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.v2.StreamingRecognitionFeatures) com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.class, com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder.class); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.class, + com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder.class); } // Construct using com.google.cloud.speech.v2.StreamingRecognitionFeatures.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1344,9 +1538,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; } @java.lang.Override @@ -1365,8 +1559,11 @@ public com.google.cloud.speech.v2.StreamingRecognitionFeatures build() { @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognitionFeatures buildPartial() { - com.google.cloud.speech.v2.StreamingRecognitionFeatures result = new com.google.cloud.speech.v2.StreamingRecognitionFeatures(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v2.StreamingRecognitionFeatures result = + new com.google.cloud.speech.v2.StreamingRecognitionFeatures(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1380,9 +1577,10 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionFeatur result.interimResults_ = interimResults_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.voiceActivityTimeout_ = voiceActivityTimeoutBuilder_ == null - ? voiceActivityTimeout_ - : voiceActivityTimeoutBuilder_.build(); + result.voiceActivityTimeout_ = + voiceActivityTimeoutBuilder_ == null + ? voiceActivityTimeout_ + : voiceActivityTimeoutBuilder_.build(); } } @@ -1390,38 +1588,39 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionFeatur 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.v2.StreamingRecognitionFeatures) { - return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionFeatures)other); + return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionFeatures) other); } else { super.mergeFrom(other); return this; @@ -1429,7 +1628,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognitionFeatures other) { - if (other == com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()) + return this; if (other.getEnableVoiceActivityEvents() != false) { setEnableVoiceActivityEvents(other.getEnableVoiceActivityEvents()); } @@ -1465,29 +1665,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableVoiceActivityEvents_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - interimResults_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getVoiceActivityTimeoutFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableVoiceActivityEvents_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + interimResults_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + getVoiceActivityTimeoutFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1497,16 +1700,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean enableVoiceActivityEvents_ ; + private boolean enableVoiceActivityEvents_; /** + * + * *
      * If `true`, responses with voice activity speech events will be returned as
      * they are detected.
      * 
* * bool enable_voice_activity_events = 1; + * * @return The enableVoiceActivityEvents. */ @java.lang.Override @@ -1514,29 +1721,35 @@ public boolean getEnableVoiceActivityEvents() { return enableVoiceActivityEvents_; } /** + * + * *
      * If `true`, responses with voice activity speech events will be returned as
      * they are detected.
      * 
* * bool enable_voice_activity_events = 1; + * * @param value The enableVoiceActivityEvents to set. * @return This builder for chaining. */ public Builder setEnableVoiceActivityEvents(boolean value) { - + enableVoiceActivityEvents_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * If `true`, responses with voice activity speech events will be returned as
      * they are detected.
      * 
* * bool enable_voice_activity_events = 1; + * * @return This builder for chaining. */ public Builder clearEnableVoiceActivityEvents() { @@ -1546,8 +1759,10 @@ public Builder clearEnableVoiceActivityEvents() { return this; } - private boolean interimResults_ ; + private boolean interimResults_; /** + * + * *
      * Whether or not to stream interim results to the client. If set to true,
      * interim results will be streamed to the client. Otherwise, only the final
@@ -1555,6 +1770,7 @@ public Builder clearEnableVoiceActivityEvents() {
      * 
* * bool interim_results = 2; + * * @return The interimResults. */ @java.lang.Override @@ -1562,6 +1778,8 @@ public boolean getInterimResults() { return interimResults_; } /** + * + * *
      * Whether or not to stream interim results to the client. If set to true,
      * interim results will be streamed to the client. Otherwise, only the final
@@ -1569,17 +1787,20 @@ public boolean getInterimResults() {
      * 
* * bool interim_results = 2; + * * @param value The interimResults to set. * @return This builder for chaining. */ public Builder setInterimResults(boolean value) { - + interimResults_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Whether or not to stream interim results to the client. If set to true,
      * interim results will be streamed to the client. Otherwise, only the final
@@ -1587,6 +1808,7 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 2; + * * @return This builder for chaining. */ public Builder clearInterimResults() { @@ -1596,49 +1818,72 @@ public Builder clearInterimResults() { return this; } - private com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voiceActivityTimeout_; + private com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + voiceActivityTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder> voiceActivityTimeoutBuilder_; + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder, + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder> + voiceActivityTimeoutBuilder_; /** + * + * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * * @return Whether the voiceActivityTimeout field is set. */ public boolean hasVoiceActivityTimeout() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * * @return The voiceActivityTimeout. */ - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getVoiceActivityTimeout() { + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + getVoiceActivityTimeout() { if (voiceActivityTimeoutBuilder_ == null) { - return voiceActivityTimeout_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance() : voiceActivityTimeout_; + return voiceActivityTimeout_ == null + ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + .getDefaultInstance() + : voiceActivityTimeout_; } else { return voiceActivityTimeoutBuilder_.getMessage(); } } /** + * + * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * */ - public Builder setVoiceActivityTimeout(com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout value) { + public Builder setVoiceActivityTimeout( + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout value) { if (voiceActivityTimeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1652,16 +1897,21 @@ public Builder setVoiceActivityTimeout(com.google.cloud.speech.v2.StreamingRecog return this; } /** + * + * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * */ public Builder setVoiceActivityTimeout( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder builderForValue) { + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder + builderForValue) { if (voiceActivityTimeoutBuilder_ == null) { voiceActivityTimeout_ = builderForValue.build(); } else { @@ -1672,19 +1922,26 @@ public Builder setVoiceActivityTimeout( return this; } /** + * + * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * */ - public Builder mergeVoiceActivityTimeout(com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout value) { + public Builder mergeVoiceActivityTimeout( + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout value) { if (voiceActivityTimeoutBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - voiceActivityTimeout_ != null && - voiceActivityTimeout_ != com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && voiceActivityTimeout_ != null + && voiceActivityTimeout_ + != com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + .getDefaultInstance()) { getVoiceActivityTimeoutBuilder().mergeFrom(value); } else { voiceActivityTimeout_ = value; @@ -1697,13 +1954,17 @@ public Builder mergeVoiceActivityTimeout(com.google.cloud.speech.v2.StreamingRec return this; } /** + * + * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * */ public Builder clearVoiceActivityTimeout() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1716,61 +1977,82 @@ public Builder clearVoiceActivityTimeout() { return this; } /** + * + * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * */ - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder getVoiceActivityTimeoutBuilder() { + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder + getVoiceActivityTimeoutBuilder() { bitField0_ |= 0x00000004; onChanged(); return getVoiceActivityTimeoutFieldBuilder().getBuilder(); } /** + * + * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * */ - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder getVoiceActivityTimeoutOrBuilder() { + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder + getVoiceActivityTimeoutOrBuilder() { if (voiceActivityTimeoutBuilder_ != null) { return voiceActivityTimeoutBuilder_.getMessageOrBuilder(); } else { - return voiceActivityTimeout_ == null ? - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance() : voiceActivityTimeout_; + return voiceActivityTimeout_ == null + ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + .getDefaultInstance() + : voiceActivityTimeout_; } } /** + * + * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder> + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder, + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder> getVoiceActivityTimeoutFieldBuilder() { if (voiceActivityTimeoutBuilder_ == null) { - voiceActivityTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder>( - getVoiceActivityTimeout(), - getParentForChildren(), - isClean()); + voiceActivityTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + .Builder, + com.google.cloud.speech.v2.StreamingRecognitionFeatures + .VoiceActivityTimeoutOrBuilder>( + getVoiceActivityTimeout(), getParentForChildren(), isClean()); voiceActivityTimeout_ = null; } return voiceActivityTimeoutBuilder_; } + @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); } @@ -1780,12 +2062,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognitionFeatures) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognitionFeatures) private static final com.google.cloud.speech.v2.StreamingRecognitionFeatures DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognitionFeatures(); } @@ -1794,27 +2076,27 @@ public static com.google.cloud.speech.v2.StreamingRecognitionFeatures getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionFeatures parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionFeatures parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1829,6 +2111,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.speech.v2.StreamingRecognitionFeatures getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java similarity index 61% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java index 661cdb647156..9774eb7bf4b7 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java @@ -1,24 +1,45 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface StreamingRecognitionFeaturesOrBuilder extends +public interface StreamingRecognitionFeaturesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognitionFeatures) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If `true`, responses with voice activity speech events will be returned as
    * they are detected.
    * 
* * bool enable_voice_activity_events = 1; + * * @return The enableVoiceActivityEvents. */ boolean getEnableVoiceActivityEvents(); /** + * + * *
    * Whether or not to stream interim results to the client. If set to true,
    * interim results will be streamed to the client. Otherwise, only the final
@@ -26,40 +47,57 @@ public interface StreamingRecognitionFeaturesOrBuilder extends
    * 
* * bool interim_results = 2; + * * @return The interimResults. */ boolean getInterimResults(); /** + * + * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * * @return Whether the voiceActivityTimeout field is set. */ boolean hasVoiceActivityTimeout(); /** + * + * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * * @return The voiceActivityTimeout. */ - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getVoiceActivityTimeout(); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + getVoiceActivityTimeout(); /** + * + * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * */ - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder getVoiceActivityTimeoutOrBuilder(); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder + getVoiceActivityTimeoutOrBuilder(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java similarity index 76% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java index 6c95858ea1e5..16ff53852eb0 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * 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.v2.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.v2.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,33 +45,37 @@ 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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.StreamingRecognitionResult.class, com.google.cloud.speech.v2.StreamingRecognitionResult.Builder.class);
+            com.google.cloud.speech.v2.StreamingRecognitionResult.class,
+            com.google.cloud.speech.v2.StreamingRecognitionResult.Builder.class);
   }
 
   public static final int ALTERNATIVES_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List alternatives_;
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -63,10 +85,13 @@ protected java.lang.Object newInstance(
    * repeated .google.cloud.speech.v2.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. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -76,11 +101,13 @@ public java.util.List g
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getAlternativesOrBuilderList() {
     return alternatives_;
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -94,6 +121,8 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -107,6 +136,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(i
     return alternatives_.get(index);
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -124,6 +155,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int IS_FINAL_FIELD_NUMBER = 2;
   private boolean isFinal_ = false;
   /**
+   *
+   *
    * 
    * If `false`, this
    * [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
@@ -135,6 +168,7 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -145,6 +179,8 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_ = 0F; /** + * + * *
    * An estimate of the likelihood that the recognizer will not change its guess
    * about this interim result. Values range from 0.0 (completely unstable)
@@ -154,6 +190,7 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -164,12 +201,15 @@ public float getStability() { public static final int RESULT_END_OFFSET_FIELD_NUMBER = 4; private com.google.protobuf.Duration resultEndOffset_; /** + * + * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; + * * @return Whether the resultEndOffset field is set. */ @java.lang.Override @@ -177,19 +217,26 @@ public boolean hasResultEndOffset() { return resultEndOffset_ != null; } /** + * + * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; + * * @return The resultEndOffset. */ @java.lang.Override public com.google.protobuf.Duration getResultEndOffset() { - return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_; + return resultEndOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndOffset_; } /** + * + * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
@@ -199,12 +246,16 @@ public com.google.protobuf.Duration getResultEndOffset() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
-    return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_;
+    return resultEndOffset_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : resultEndOffset_;
   }
 
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_ = 0;
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -213,6 +264,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
    * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -221,9 +273,12 @@ public int getChannelTag() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") 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
@@ -231,6 +286,7 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -239,14 +295,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
@@ -254,16 +311,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 { @@ -272,6 +328,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -283,8 +340,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)); } @@ -313,24 +369,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 (resultEndOffset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getResultEndOffset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResultEndOffset()); } 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_); @@ -343,29 +394,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.v2.StreamingRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v2.StreamingRecognitionResult other = (com.google.cloud.speech.v2.StreamingRecognitionResult) obj; + com.google.cloud.speech.v2.StreamingRecognitionResult other = + (com.google.cloud.speech.v2.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 (hasResultEndOffset() != other.hasResultEndOffset()) return false; if (hasResultEndOffset()) { - if (!getResultEndOffset() - .equals(other.getResultEndOffset())) return false; + if (!getResultEndOffset().equals(other.getResultEndOffset())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -382,11 +428,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 (hasResultEndOffset()) { hash = (37 * hash) + RESULT_END_OFFSET_FIELD_NUMBER; hash = (53 * hash) + getResultEndOffset().hashCode(); @@ -401,96 +445,104 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.StreamingRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.StreamingRecognitionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.StreamingRecognitionResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.StreamingRecognitionResult prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v2.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.
@@ -498,33 +550,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.StreamingRecognitionResult)
       com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.StreamingRecognitionResult.class, com.google.cloud.speech.v2.StreamingRecognitionResult.Builder.class);
+              com.google.cloud.speech.v2.StreamingRecognitionResult.class,
+              com.google.cloud.speech.v2.StreamingRecognitionResult.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.StreamingRecognitionResult.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -549,9 +600,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
@@ -570,14 +621,18 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.StreamingRecognitionResult buildPartial() {
-      com.google.cloud.speech.v2.StreamingRecognitionResult result = new com.google.cloud.speech.v2.StreamingRecognitionResult(this);
+      com.google.cloud.speech.v2.StreamingRecognitionResult result =
+          new com.google.cloud.speech.v2.StreamingRecognitionResult(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.StreamingRecognitionResult result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v2.StreamingRecognitionResult result) {
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -598,9 +653,8 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionResult
         result.stability_ = stability_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.resultEndOffset_ = resultEndOffsetBuilder_ == null
-            ? resultEndOffset_
-            : resultEndOffsetBuilder_.build();
+        result.resultEndOffset_ =
+            resultEndOffsetBuilder_ == null ? resultEndOffset_ : resultEndOffsetBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.channelTag_ = channelTag_;
@@ -614,38 +668,39 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionResult
     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.v2.StreamingRecognitionResult) {
-        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionResult)other);
+        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionResult) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -653,7 +708,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognitionResult other) {
-      if (other == com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance())
+        return this;
       if (alternativesBuilder_ == null) {
         if (!other.alternatives_.isEmpty()) {
           if (alternatives_.isEmpty()) {
@@ -672,9 +728,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_);
           }
@@ -723,52 +780,57 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.speech.v2.SpeechRecognitionAlternative m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.SpeechRecognitionAlternative.parser(),
-                      extensionRegistry);
-              if (alternativesBuilder_ == null) {
-                ensureAlternativesIsMutable();
-                alternatives_.add(m);
-              } else {
-                alternativesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 16: {
-              isFinal_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 29: {
-              stability_ = input.readFloat();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 29
-            case 34: {
-              input.readMessage(
-                  getResultEndOffsetFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 40: {
-              channelTag_ = input.readInt32();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 40
-            case 50: {
-              languageCode_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.speech.v2.SpeechRecognitionAlternative m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.SpeechRecognitionAlternative.parser(),
+                        extensionRegistry);
+                if (alternativesBuilder_ == null) {
+                  ensureAlternativesIsMutable();
+                  alternatives_.add(m);
+                } else {
+                  alternativesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 16:
+              {
+                isFinal_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 29:
+              {
+                stability_ = input.readFloat();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 29
+            case 34:
+              {
+                input.readMessage(getResultEndOffsetFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 40:
+              {
+                channelTag_ = input.readInt32();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+            case 50:
+              {
+                languageCode_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -778,21 +840,30 @@ public Builder mergeFrom(
       } // finally
       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.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_;
+            com.google.cloud.speech.v2.SpeechRecognitionAlternative,
+            com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder,
+            com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>
+        alternativesBuilder_;
 
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -801,7 +872,8 @@ private void ensureAlternativesIsMutable() {
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List getAlternativesList() {
+    public java.util.List
+        getAlternativesList() {
       if (alternativesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(alternatives_);
       } else {
@@ -809,6 +881,8 @@ public java.util.List g
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -825,6 +899,8 @@ public int getAlternativesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -841,6 +917,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(i
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -864,6 +942,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -873,7 +953,8 @@ public Builder setAlternatives(
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder setAlternatives(
-        int index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index,
+        com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.set(index, builderForValue.build());
@@ -884,6 +965,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -906,6 +989,8 @@ public Builder addAlternatives(com.google.cloud.speech.v2.SpeechRecognitionAlter
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -929,6 +1014,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -949,6 +1036,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -958,7 +1047,8 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder addAlternatives(
-        int index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index,
+        com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.add(index, builderForValue.build());
@@ -969,6 +1059,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -978,11 +1070,11 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v2.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);
@@ -990,6 +1082,8 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1009,6 +1103,8 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1028,6 +1124,8 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1041,6 +1139,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
       return getAlternativesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1049,14 +1149,17 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder(
-        int index) {
+    public com.google.cloud.speech.v2.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. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1065,8 +1168,9 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List 
-         getAlternativesOrBuilderList() {
+    public java.util.List<
+            ? extends com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>
+        getAlternativesOrBuilderList() {
       if (alternativesBuilder_ != null) {
         return alternativesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1074,6 +1178,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1082,11 +1188,14 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAlternativesBuilder() {
-      return getAlternativesFieldBuilder().addBuilder(
-          com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
+    public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder
+        addAlternativesBuilder() {
+      return getAlternativesFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1097,10 +1206,13 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAltern
      */
     public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAlternativesBuilder(
         int index) {
-      return getAlternativesFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
+      return getAlternativesFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1109,27 +1221,32 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAltern
      *
      * repeated .google.cloud.speech.v2.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.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder> 
+            com.google.cloud.speech.v2.SpeechRecognitionAlternative,
+            com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder,
+            com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>
         getAlternativesFieldBuilder() {
       if (alternativesBuilder_ == null) {
-        alternativesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>(
-                alternatives_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        alternativesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v2.SpeechRecognitionAlternative,
+                com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder,
+                com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>(
+                alternatives_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         alternatives_ = null;
       }
       return alternativesBuilder_;
     }
 
-    private boolean isFinal_ ;
+    private boolean isFinal_;
     /**
+     *
+     *
      * 
      * If `false`, this
      * [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
@@ -1141,6 +1258,7 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAltern
      * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -1148,6 +1266,8 @@ public boolean getIsFinal() { return isFinal_; } /** + * + * *
      * If `false`, this
      * [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
@@ -1159,17 +1279,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If `false`, this
      * [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
@@ -1181,6 +1304,7 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; + * * @return This builder for chaining. */ public Builder clearIsFinal() { @@ -1190,8 +1314,10 @@ public Builder clearIsFinal() { 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 (completely unstable)
@@ -1201,6 +1327,7 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -1208,6 +1335,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 (completely unstable)
@@ -1217,17 +1346,20 @@ public float getStability() {
      * 
* * float stability = 3; + * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; bitField0_ |= 0x00000004; 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 (completely unstable)
@@ -1237,6 +1369,7 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; + * * @return This builder for chaining. */ public Builder clearStability() { @@ -1248,36 +1381,49 @@ public Builder clearStability() { private com.google.protobuf.Duration resultEndOffset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndOffsetBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + resultEndOffsetBuilder_; /** + * + * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
      * 
* * .google.protobuf.Duration result_end_offset = 4; + * * @return Whether the resultEndOffset field is set. */ public boolean hasResultEndOffset() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
      * 
* * .google.protobuf.Duration result_end_offset = 4; + * * @return The resultEndOffset. */ public com.google.protobuf.Duration getResultEndOffset() { if (resultEndOffsetBuilder_ == null) { - return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_; + return resultEndOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndOffset_; } else { return resultEndOffsetBuilder_.getMessage(); } } /** + * + * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1299,6 +1445,8 @@ public Builder setResultEndOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1306,8 +1454,7 @@ public Builder setResultEndOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_offset = 4;
      */
-    public Builder setResultEndOffset(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndOffset(com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndOffsetBuilder_ == null) {
         resultEndOffset_ = builderForValue.build();
       } else {
@@ -1318,6 +1465,8 @@ public Builder setResultEndOffset(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1327,9 +1476,9 @@ public Builder setResultEndOffset(
      */
     public Builder mergeResultEndOffset(com.google.protobuf.Duration value) {
       if (resultEndOffsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          resultEndOffset_ != null &&
-          resultEndOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && resultEndOffset_ != null
+            && resultEndOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndOffsetBuilder().mergeFrom(value);
         } else {
           resultEndOffset_ = value;
@@ -1342,6 +1491,8 @@ public Builder mergeResultEndOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1360,6 +1511,8 @@ public Builder clearResultEndOffset() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1373,6 +1526,8 @@ public com.google.protobuf.Duration.Builder getResultEndOffsetBuilder() {
       return getResultEndOffsetFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1384,11 +1539,14 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
       if (resultEndOffsetBuilder_ != null) {
         return resultEndOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return resultEndOffset_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_;
+        return resultEndOffset_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : resultEndOffset_;
       }
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1397,21 +1555,26 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
      * .google.protobuf.Duration result_end_offset = 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>
         getResultEndOffsetFieldBuilder() {
       if (resultEndOffsetBuilder_ == null) {
-        resultEndOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getResultEndOffset(),
-                getParentForChildren(),
-                isClean());
+        resultEndOffsetBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getResultEndOffset(), getParentForChildren(), isClean());
         resultEndOffset_ = null;
       }
       return resultEndOffsetBuilder_;
     }
 
-    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.
@@ -1420,6 +1583,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
      * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -1427,6 +1591,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.
@@ -1435,17 +1601,20 @@ 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1454,6 +1623,7 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; + * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1465,6 +1635,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
@@ -1472,13 +1644,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; @@ -1487,6 +1659,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
@@ -1494,15 +1668,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 { @@ -1510,6 +1683,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
@@ -1517,18 +1692,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000020; 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
@@ -1536,6 +1715,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1545,6 +1725,8 @@ public Builder clearLanguageCode() { 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
@@ -1552,21 +1734,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000020; 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); } @@ -1576,12 +1760,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognitionResult) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognitionResult) private static final com.google.cloud.speech.v2.StreamingRecognitionResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognitionResult(); } @@ -1590,27 +1774,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1625,6 +1809,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java similarity index 85% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java index f50e53c3c1bf..35f98cc5a427 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface StreamingRecognitionResultOrBuilder extends +public interface StreamingRecognitionResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognitionResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -16,9 +34,10 @@ public interface StreamingRecognitionResultOrBuilder extends
    *
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List 
-      getAlternativesList();
+  java.util.List getAlternativesList();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -29,6 +48,8 @@ public interface StreamingRecognitionResultOrBuilder extends
    */
   com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(int index);
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -39,6 +60,8 @@ public interface StreamingRecognitionResultOrBuilder extends
    */
   int getAlternativesCount();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -47,9 +70,11 @@ public interface StreamingRecognitionResultOrBuilder extends
    *
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List 
+  java.util.List
       getAlternativesOrBuilderList();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -62,6 +87,8 @@ com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlternatives
       int index);
 
   /**
+   *
+   *
    * 
    * If `false`, this
    * [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
@@ -73,11 +100,14 @@ com.google.cloud.speech.v2.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 (completely unstable)
@@ -87,31 +117,40 @@ com.google.cloud.speech.v2.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_offset = 4; + * * @return Whether the resultEndOffset field is set. */ boolean hasResultEndOffset(); /** + * + * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; + * * @return The resultEndOffset. */ com.google.protobuf.Duration getResultEndOffset(); /** + * + * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
@@ -122,6 +161,8 @@ com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlternatives
   com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder();
 
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -130,11 +171,14 @@ com.google.cloud.speech.v2.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
@@ -142,10 +186,13 @@ com.google.cloud.speech.v2.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
@@ -153,8 +200,8 @@ com.google.cloud.speech.v2.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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java similarity index 70% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java index 23fc00c1963d..8048e10c7fee 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [StreamingRecognize][google.cloud.speech.v2.Speech.StreamingRecognize]
@@ -24,53 +41,58 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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() {
     recognizer_ = "";
   }
 
   @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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.StreamingRecognizeRequest.class, com.google.cloud.speech.v2.StreamingRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v2.StreamingRecognizeRequest.class,
+            com.google.cloud.speech.v2.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(6),
     AUDIO(5),
     STREAMINGREQUEST_NOT_SET(0);
     private final int value;
+
     private StreamingRequestCase(int value) {
       this.value = value;
     }
@@ -86,27 +108,33 @@ public static StreamingRequestCase valueOf(int value) {
 
     public static StreamingRequestCase forNumber(int value) {
       switch (value) {
-        case 6: return STREAMING_CONFIG;
-        case 5: return AUDIO;
-        case 0: return STREAMINGREQUEST_NOT_SET;
-        default: return null;
+        case 6:
+          return STREAMING_CONFIG;
+        case 5:
+          return AUDIO;
+        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 RECOGNIZER_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object recognizer_ = "";
   /**
+   *
+   *
    * 
    * Required. Streaming recognition should start with an initial request having
    * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -115,7 +143,10 @@ public int getNumber() {
    * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
    * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The recognizer. */ @java.lang.Override @@ -124,14 +155,15 @@ public java.lang.String getRecognizer() { 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(); recognizer_ = s; return s; } } /** + * + * *
    * Required. Streaming recognition should start with an initial request having
    * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -140,17 +172,18 @@ public java.lang.String getRecognizer() {
    * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
    * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for recognizer. */ @java.lang.Override - public com.google.protobuf.ByteString - getRecognizerBytes() { + public com.google.protobuf.ByteString getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -160,6 +193,8 @@ public java.lang.String getRecognizer() { public static final int STREAMING_CONFIG_FIELD_NUMBER = 6; /** + * + * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -167,6 +202,7 @@ public java.lang.String getRecognizer() {
    * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -174,6 +210,8 @@ public boolean hasStreamingConfig() { return streamingRequestCase_ == 6; } /** + * + * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -181,16 +219,19 @@ public boolean hasStreamingConfig() {
    * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; + * * @return The streamingConfig. */ @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognitionConfig getStreamingConfig() { if (streamingRequestCase_ == 6) { - return (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_; + return (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_; } return com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance(); } /** + * + * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -200,20 +241,24 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfig getStreamingConfig(
    * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder() {
+  public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder
+      getStreamingConfigOrBuilder() {
     if (streamingRequestCase_ == 6) {
-       return (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_;
+      return (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_;
     }
     return com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance();
   }
 
   public static final int AUDIO_FIELD_NUMBER = 5;
   /**
+   *
+   *
    * 
    * Inline audio bytes to be Recognized.
    * 
* * bytes audio = 5; + * * @return Whether the audio field is set. */ @java.lang.Override @@ -221,11 +266,14 @@ public boolean hasAudio() { return streamingRequestCase_ == 5; } /** + * + * *
    * Inline audio bytes to be Recognized.
    * 
* * bytes audio = 5; + * * @return The audio. */ @java.lang.Override @@ -237,6 +285,7 @@ public com.google.protobuf.ByteString getAudio() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -248,17 +297,16 @@ 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(recognizer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, recognizer_); } if (streamingRequestCase_ == 5) { - output.writeBytes( - 5, (com.google.protobuf.ByteString) streamingRequest_); + output.writeBytes(5, (com.google.protobuf.ByteString) streamingRequest_); } if (streamingRequestCase_ == 6) { - output.writeMessage(6, (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_); + output.writeMessage( + 6, (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_); } getUnknownFields().writeTo(output); } @@ -273,13 +321,14 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, recognizer_); } if (streamingRequestCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 5, (com.google.protobuf.ByteString) streamingRequest_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 5, (com.google.protobuf.ByteString) streamingRequest_); } if (streamingRequestCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -289,24 +338,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.v2.StreamingRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.StreamingRecognizeRequest other = (com.google.cloud.speech.v2.StreamingRecognizeRequest) obj; + com.google.cloud.speech.v2.StreamingRecognizeRequest other = + (com.google.cloud.speech.v2.StreamingRecognizeRequest) obj; - if (!getRecognizer() - .equals(other.getRecognizer())) return false; + if (!getRecognizer().equals(other.getRecognizer())) return false; if (!getStreamingRequestCase().equals(other.getStreamingRequestCase())) return false; switch (streamingRequestCase_) { case 6: - if (!getStreamingConfig() - .equals(other.getStreamingConfig())) return false; + if (!getStreamingConfig().equals(other.getStreamingConfig())) return false; break; case 5: - if (!getAudio() - .equals(other.getAudio())) return false; + if (!getAudio().equals(other.getAudio())) return false; break; case 0: default: @@ -342,96 +389,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.StreamingRecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.StreamingRecognizeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.StreamingRecognizeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [StreamingRecognize][google.cloud.speech.v2.Speech.StreamingRecognize]
@@ -452,33 +506,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.StreamingRecognizeRequest)
       com.google.cloud.speech.v2.StreamingRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.StreamingRecognizeRequest.class, com.google.cloud.speech.v2.StreamingRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v2.StreamingRecognizeRequest.class,
+              com.google.cloud.speech.v2.StreamingRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.StreamingRecognizeRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -493,9 +546,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -514,8 +567,11 @@ public com.google.cloud.speech.v2.StreamingRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.StreamingRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v2.StreamingRecognizeRequest result = new com.google.cloud.speech.v2.StreamingRecognizeRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.StreamingRecognizeRequest result =
+          new com.google.cloud.speech.v2.StreamingRecognizeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -531,8 +587,7 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognizeRequest
     private void buildPartialOneofs(com.google.cloud.speech.v2.StreamingRecognizeRequest result) {
       result.streamingRequestCase_ = streamingRequestCase_;
       result.streamingRequest_ = this.streamingRequest_;
-      if (streamingRequestCase_ == 6 &&
-          streamingConfigBuilder_ != null) {
+      if (streamingRequestCase_ == 6 && streamingConfigBuilder_ != null) {
         result.streamingRequest_ = streamingConfigBuilder_.build();
       }
     }
@@ -541,38 +596,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.StreamingRecognizeReq
     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.v2.StreamingRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognizeRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognizeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -580,24 +636,28 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognizeRequest other) {
-      if (other == com.google.cloud.speech.v2.StreamingRecognizeRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.StreamingRecognizeRequest.getDefaultInstance())
+        return this;
       if (!other.getRecognizer().isEmpty()) {
         recognizer_ = other.recognizer_;
         bitField0_ |= 0x00000001;
         onChanged();
       }
       switch (other.getStreamingRequestCase()) {
-        case STREAMING_CONFIG: {
-          mergeStreamingConfig(other.getStreamingConfig());
-          break;
-        }
-        case AUDIO: {
-          setAudio(other.getAudio());
-          break;
-        }
-        case STREAMINGREQUEST_NOT_SET: {
-          break;
-        }
+        case STREAMING_CONFIG:
+          {
+            mergeStreamingConfig(other.getStreamingConfig());
+            break;
+          }
+        case AUDIO:
+          {
+            setAudio(other.getAudio());
+            break;
+          }
+        case STREAMINGREQUEST_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -625,29 +685,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 26: {
-              recognizer_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 26
-            case 42: {
-              streamingRequest_ = input.readBytes();
-              streamingRequestCase_ = 5;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getStreamingConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              streamingRequestCase_ = 6;
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 26:
+              {
+                recognizer_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 26
+            case 42:
+              {
+                streamingRequest_ = input.readBytes();
+                streamingRequestCase_ = 5;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getStreamingConfigFieldBuilder().getBuilder(), extensionRegistry);
+                streamingRequestCase_ = 6;
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -657,12 +719,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -676,6 +738,8 @@ public Builder clearStreamingRequest() {
 
     private java.lang.Object recognizer_ = "";
     /**
+     *
+     *
      * 
      * Required. Streaming recognition should start with an initial request having
      * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -684,14 +748,16 @@ public Builder clearStreamingRequest() {
      * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
      * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The recognizer. */ public java.lang.String getRecognizer() { java.lang.Object ref = recognizer_; 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(); recognizer_ = s; return s; @@ -700,6 +766,8 @@ public java.lang.String getRecognizer() { } } /** + * + * *
      * Required. Streaming recognition should start with an initial request having
      * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -708,16 +776,17 @@ public java.lang.String getRecognizer() {
      * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
      * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for recognizer. */ - public com.google.protobuf.ByteString - getRecognizerBytes() { + public com.google.protobuf.ByteString getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -725,6 +794,8 @@ public java.lang.String getRecognizer() { } } /** + * + * *
      * Required. Streaming recognition should start with an initial request having
      * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -733,19 +804,25 @@ public java.lang.String getRecognizer() {
      * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
      * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizer( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecognizer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } recognizer_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Streaming recognition should start with an initial request having
      * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -754,7 +831,10 @@ public Builder setRecognizer(
      * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
      * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearRecognizer() { @@ -764,6 +844,8 @@ public Builder clearRecognizer() { return this; } /** + * + * *
      * Required. Streaming recognition should start with an initial request having
      * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -772,13 +854,17 @@ public Builder clearRecognizer() {
      * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
      * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecognizerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); recognizer_ = value; bitField0_ |= 0x00000001; @@ -787,8 +873,13 @@ public Builder setRecognizerBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.StreamingRecognitionConfig, com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder> streamingConfigBuilder_; + com.google.cloud.speech.v2.StreamingRecognitionConfig, + com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder, + com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder> + streamingConfigBuilder_; /** + * + * *
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -796,6 +887,7 @@ public Builder setRecognizerBytes(
      * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -803,6 +895,8 @@ public boolean hasStreamingConfig() { return streamingRequestCase_ == 6; } /** + * + * *
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -810,6 +904,7 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; + * * @return The streamingConfig. */ @java.lang.Override @@ -827,6 +922,8 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfig getStreamingConfig( } } /** + * + * *
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -849,6 +946,8 @@ public Builder setStreamingConfig(com.google.cloud.speech.v2.StreamingRecognitio
       return this;
     }
     /**
+     *
+     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -869,6 +968,8 @@ public Builder setStreamingConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -877,12 +978,17 @@ public Builder setStreamingConfig(
      *
      * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6;
      */
-    public Builder mergeStreamingConfig(com.google.cloud.speech.v2.StreamingRecognitionConfig value) {
+    public Builder mergeStreamingConfig(
+        com.google.cloud.speech.v2.StreamingRecognitionConfig value) {
       if (streamingConfigBuilder_ == null) {
-        if (streamingRequestCase_ == 6 &&
-            streamingRequest_ != com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance()) {
-          streamingRequest_ = com.google.cloud.speech.v2.StreamingRecognitionConfig.newBuilder((com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_)
-              .mergeFrom(value).buildPartial();
+        if (streamingRequestCase_ == 6
+            && streamingRequest_
+                != com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance()) {
+          streamingRequest_ =
+              com.google.cloud.speech.v2.StreamingRecognitionConfig.newBuilder(
+                      (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           streamingRequest_ = value;
         }
@@ -898,6 +1004,8 @@ public Builder mergeStreamingConfig(com.google.cloud.speech.v2.StreamingRecognit
       return this;
     }
     /**
+     *
+     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -923,6 +1031,8 @@ public Builder clearStreamingConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -931,10 +1041,13 @@ public Builder clearStreamingConfig() {
      *
      * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6;
      */
-    public com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder getStreamingConfigBuilder() {
+    public com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder
+        getStreamingConfigBuilder() {
       return getStreamingConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -944,7 +1057,8 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder getStreamin
      * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6;
      */
     @java.lang.Override
-    public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder() {
+    public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder
+        getStreamingConfigOrBuilder() {
       if ((streamingRequestCase_ == 6) && (streamingConfigBuilder_ != null)) {
         return streamingConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -955,6 +1069,8 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder getStreami
       }
     }
     /**
+     *
+     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -964,14 +1080,20 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder getStreami
      * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.StreamingRecognitionConfig, com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder> 
+            com.google.cloud.speech.v2.StreamingRecognitionConfig,
+            com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder,
+            com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder>
         getStreamingConfigFieldBuilder() {
       if (streamingConfigBuilder_ == null) {
         if (!(streamingRequestCase_ == 6)) {
-          streamingRequest_ = com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance();
+          streamingRequest_ =
+              com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance();
         }
-        streamingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.StreamingRecognitionConfig, com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder>(
+        streamingConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v2.StreamingRecognitionConfig,
+                com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder,
+                com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder>(
                 (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_,
                 getParentForChildren(),
                 isClean());
@@ -983,22 +1105,28 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder getStreami
     }
 
     /**
+     *
+     *
      * 
      * Inline audio bytes to be Recognized.
      * 
* * bytes audio = 5; + * * @return Whether the audio field is set. */ public boolean hasAudio() { return streamingRequestCase_ == 5; } /** + * + * *
      * Inline audio bytes to be Recognized.
      * 
* * bytes audio = 5; + * * @return The audio. */ public com.google.protobuf.ByteString getAudio() { @@ -1008,27 +1136,35 @@ public com.google.protobuf.ByteString getAudio() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * Inline audio bytes to be Recognized.
      * 
* * bytes audio = 5; + * * @param value The audio to set. * @return This builder for chaining. */ public Builder setAudio(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } streamingRequestCase_ = 5; streamingRequest_ = value; onChanged(); return this; } /** + * + * *
      * Inline audio bytes to be Recognized.
      * 
* * bytes audio = 5; + * * @return This builder for chaining. */ public Builder clearAudio() { @@ -1039,9 +1175,9 @@ public Builder clearAudio() { } 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); } @@ -1051,12 +1187,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognizeRequest) private static final com.google.cloud.speech.v2.StreamingRecognizeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognizeRequest(); } @@ -1065,27 +1201,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1100,6 +1236,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java index a59c3c0ccd2c..c3de2722e8fe 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface StreamingRecognizeRequestOrBuilder extends +public interface StreamingRecognizeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Streaming recognition should start with an initial request having
    * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -16,11 +34,16 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
    * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The recognizer. */ java.lang.String getRecognizer(); /** + * + * *
    * Required. Streaming recognition should start with an initial request having
    * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -29,13 +52,17 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
    * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for recognizer. */ - com.google.protobuf.ByteString - getRecognizerBytes(); + com.google.protobuf.ByteString getRecognizerBytes(); /** + * + * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -43,10 +70,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; + * * @return Whether the streamingConfig field is set. */ boolean hasStreamingConfig(); /** + * + * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -54,10 +84,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; + * * @return The streamingConfig. */ com.google.cloud.speech.v2.StreamingRecognitionConfig getStreamingConfig(); /** + * + * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -69,23 +102,30 @@ public interface StreamingRecognizeRequestOrBuilder extends
   com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Inline audio bytes to be Recognized.
    * 
* * bytes audio = 5; + * * @return Whether the audio field is set. */ boolean hasAudio(); /** + * + * *
    * Inline audio bytes to be Recognized.
    * 
* * bytes audio = 5; + * * @return The audio. */ com.google.protobuf.ByteString getAudio(); - public com.google.cloud.speech.v2.StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase(); + public com.google.cloud.speech.v2.StreamingRecognizeRequest.StreamingRequestCase + getStreamingRequestCase(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java similarity index 76% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java index 5727dcf83280..92f2afa89c93 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * `StreamingRecognizeResponse` is the only message returned to the client by
  * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -44,15 +61,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
@@ -60,39 +78,43 @@ 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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.StreamingRecognizeResponse.class, com.google.cloud.speech.v2.StreamingRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v2.StreamingRecognizeResponse.class,
+            com.google.cloud.speech.v2.StreamingRecognizeResponse.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType} */ - public enum SpeechEventType - implements com.google.protobuf.ProtocolMessageEnum { + public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * No speech event specified.
      * 
@@ -101,6 +123,8 @@ public enum SpeechEventType */ SPEECH_EVENT_TYPE_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
@@ -114,6 +138,8 @@ public enum SpeechEventType
      */
     END_OF_SINGLE_UTTERANCE(1),
     /**
+     *
+     *
      * 
      * This event indicates that the server has detected the beginning of human
      * voice activity in the stream. This event can be returned multiple times
@@ -125,6 +151,8 @@ public enum SpeechEventType
      */
     SPEECH_ACTIVITY_BEGIN(2),
     /**
+     *
+     *
      * 
      * This event indicates that the server has detected the end of human voice
      * activity in the stream. This event can be returned multiple times if
@@ -139,6 +167,8 @@ public enum SpeechEventType
     ;
 
     /**
+     *
+     *
      * 
      * No speech event specified.
      * 
@@ -147,6 +177,8 @@ public enum SpeechEventType */ public static final int SPEECH_EVENT_TYPE_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
@@ -160,6 +192,8 @@ public enum SpeechEventType
      */
     public static final int END_OF_SINGLE_UTTERANCE_VALUE = 1;
     /**
+     *
+     *
      * 
      * This event indicates that the server has detected the beginning of human
      * voice activity in the stream. This event can be returned multiple times
@@ -171,6 +205,8 @@ public enum SpeechEventType
      */
     public static final int SPEECH_ACTIVITY_BEGIN_VALUE = 2;
     /**
+     *
+     *
      * 
      * This event indicates that the server has detected the end of human voice
      * activity in the stream. This event can be returned multiple times if
@@ -182,7 +218,6 @@ public enum SpeechEventType
      */
     public static final int SPEECH_ACTIVITY_END_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -207,41 +242,47 @@ public static SpeechEventType valueOf(int value) {
      */
     public static SpeechEventType forNumber(int value) {
       switch (value) {
-        case 0: return SPEECH_EVENT_TYPE_UNSPECIFIED;
-        case 1: return END_OF_SINGLE_UTTERANCE;
-        case 2: return SPEECH_ACTIVITY_BEGIN;
-        case 3: return SPEECH_ACTIVITY_END;
-        default: return null;
+        case 0:
+          return SPEECH_EVENT_TYPE_UNSPECIFIED;
+        case 1:
+          return END_OF_SINGLE_UTTERANCE;
+        case 2:
+          return SPEECH_ACTIVITY_BEGIN;
+        case 3:
+          return SPEECH_ACTIVITY_END;
+        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.v2.StreamingRecognizeResponse.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.speech.v2.StreamingRecognizeResponse.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final SpeechEventType[] VALUES = values();
@@ -249,8 +290,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;
@@ -268,9 +308,12 @@ private SpeechEventType(int value) {
   }
 
   public static final int RESULTS_FIELD_NUMBER = 6;
+
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -288,6 +331,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.
@@ -301,11 +346,13 @@ public java.util.List get
    * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
    */
   @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.
@@ -323,6 +370,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.
@@ -340,6 +389,8 @@ public com.google.cloud.speech.v2.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.
@@ -361,37 +412,55 @@ public com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResults
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 3;
   private int speechEventType_ = 0;
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * * @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.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * * @return The speechEventType. */ - @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { - com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.forNumber(speechEventType_); - return result == null ? com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { + com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.forNumber( + speechEventType_); + return result == null + ? com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED + : result; } public static final int SPEECH_EVENT_OFFSET_FIELD_NUMBER = 7; private com.google.protobuf.Duration speechEventOffset_; /** + * + * *
    * Time offset between the beginning of the audio and event emission.
    * 
* * .google.protobuf.Duration speech_event_offset = 7; + * * @return Whether the speechEventOffset field is set. */ @java.lang.Override @@ -399,18 +468,25 @@ public boolean hasSpeechEventOffset() { return speechEventOffset_ != null; } /** + * + * *
    * Time offset between the beginning of the audio and event emission.
    * 
* * .google.protobuf.Duration speech_event_offset = 7; + * * @return The speechEventOffset. */ @java.lang.Override public com.google.protobuf.Duration getSpeechEventOffset() { - return speechEventOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEventOffset_; + return speechEventOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : speechEventOffset_; } /** + * + * *
    * Time offset between the beginning of the audio and event emission.
    * 
@@ -419,17 +495,22 @@ public com.google.protobuf.Duration getSpeechEventOffset() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder() { - return speechEventOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEventOffset_; + return speechEventOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : speechEventOffset_; } public static final int METADATA_FIELD_NUMBER = 5; private com.google.cloud.speech.v2.RecognitionResponseMetadata metadata_; /** + * + * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; + * * @return Whether the metadata field is set. */ @java.lang.Override @@ -437,18 +518,25 @@ public boolean hasMetadata() { return metadata_ != null; } /** + * + * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; + * * @return The metadata. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { - return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() + : metadata_; } /** + * + * *
    * Metadata about the recognition.
    * 
@@ -457,10 +545,13 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() + : metadata_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -472,9 +563,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (speechEventType_ != com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (speechEventType_ + != com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType + .SPEECH_EVENT_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, speechEventType_); } if (metadata_ != null) { @@ -495,21 +588,20 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (speechEventType_ != com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, speechEventType_); + if (speechEventType_ + != com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType + .SPEECH_EVENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, speechEventType_); } if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMetadata()); } for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, results_.get(i)); } if (speechEventOffset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getSpeechEventOffset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSpeechEventOffset()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -519,25 +611,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.v2.StreamingRecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.StreamingRecognizeResponse other = (com.google.cloud.speech.v2.StreamingRecognizeResponse) obj; + com.google.cloud.speech.v2.StreamingRecognizeResponse other = + (com.google.cloud.speech.v2.StreamingRecognizeResponse) obj; - if (!getResultsList() - .equals(other.getResultsList())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; if (speechEventType_ != other.speechEventType_) return false; if (hasSpeechEventOffset() != other.hasSpeechEventOffset()) return false; if (hasSpeechEventOffset()) { - if (!getSpeechEventOffset() - .equals(other.getSpeechEventOffset())) return false; + if (!getSpeechEventOffset().equals(other.getSpeechEventOffset())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -570,96 +660,104 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.StreamingRecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.StreamingRecognizeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.StreamingRecognizeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.StreamingRecognizeResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v2.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`
@@ -700,33 +798,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.StreamingRecognizeResponse)
       com.google.cloud.speech.v2.StreamingRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.StreamingRecognizeResponse.class, com.google.cloud.speech.v2.StreamingRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v2.StreamingRecognizeResponse.class,
+              com.google.cloud.speech.v2.StreamingRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.StreamingRecognizeResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -753,9 +850,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
@@ -774,14 +871,18 @@ public com.google.cloud.speech.v2.StreamingRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.StreamingRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v2.StreamingRecognizeResponse result = new com.google.cloud.speech.v2.StreamingRecognizeResponse(this);
+      com.google.cloud.speech.v2.StreamingRecognizeResponse result =
+          new com.google.cloud.speech.v2.StreamingRecognizeResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.StreamingRecognizeResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v2.StreamingRecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -799,14 +900,13 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognizeResponse
         result.speechEventType_ = speechEventType_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.speechEventOffset_ = speechEventOffsetBuilder_ == null
-            ? speechEventOffset_
-            : speechEventOffsetBuilder_.build();
+        result.speechEventOffset_ =
+            speechEventOffsetBuilder_ == null
+                ? speechEventOffset_
+                : speechEventOffsetBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.metadata_ = metadataBuilder_ == null
-            ? metadata_
-            : metadataBuilder_.build();
+        result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
       }
     }
 
@@ -814,38 +914,39 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognizeResponse
     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.v2.StreamingRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -853,7 +954,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognizeResponse other) {
-      if (other == com.google.cloud.speech.v2.StreamingRecognizeResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.StreamingRecognizeResponse.getDefaultInstance())
+        return this;
       if (resultsBuilder_ == null) {
         if (!other.results_.isEmpty()) {
           if (results_.isEmpty()) {
@@ -872,9 +974,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_);
           }
@@ -915,44 +1018,46 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 24: {
-              speechEventType_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 24
-            case 42: {
-              input.readMessage(
-                  getMetadataFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 42
-            case 50: {
-              com.google.cloud.speech.v2.StreamingRecognitionResult m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.StreamingRecognitionResult.parser(),
-                      extensionRegistry);
-              if (resultsBuilder_ == null) {
-                ensureResultsIsMutable();
-                results_.add(m);
-              } else {
-                resultsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getSpeechEventOffsetFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 58
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 24:
+              {
+                speechEventType_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 24
+            case 42:
+              {
+                input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 42
+            case 50:
+              {
+                com.google.cloud.speech.v2.StreamingRecognitionResult m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.StreamingRecognitionResult.parser(),
+                        extensionRegistry);
+                if (resultsBuilder_ == null) {
+                  ensureResultsIsMutable();
+                  results_.add(m);
+                } else {
+                  resultsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(
+                    getSpeechEventOffsetFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 58
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -962,21 +1067,30 @@ public Builder mergeFrom(
       } // finally
       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.v2.StreamingRecognitionResult, com.google.cloud.speech.v2.StreamingRecognitionResult.Builder, com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v2.StreamingRecognitionResult,
+            com.google.cloud.speech.v2.StreamingRecognitionResult.Builder,
+            com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -997,6 +1111,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.
@@ -1017,6 +1133,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1037,6 +1155,8 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult getResults(int inde
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1064,6 +1184,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.
@@ -1088,6 +1210,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.
@@ -1114,6 +1238,8 @@ public Builder addResults(com.google.cloud.speech.v2.StreamingRecognitionResult
       return this;
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1141,6 +1267,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.
@@ -1165,6 +1293,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.
@@ -1189,6 +1319,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.
@@ -1202,11 +1334,11 @@ public Builder addResults(
      * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
      */
     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);
@@ -1214,6 +1346,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.
@@ -1237,6 +1371,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.
@@ -1260,6 +1396,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.
@@ -1277,6 +1415,8 @@ public com.google.cloud.speech.v2.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.
@@ -1292,11 +1432,14 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder getResultsB
     public com.google.cloud.speech.v2.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.
@@ -1309,8 +1452,8 @@ public com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResults
      *
      * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
      */
-    public java.util.List 
-         getResultsOrBuilderList() {
+    public java.util.List
+        getResultsOrBuilderList() {
       if (resultsBuilder_ != null) {
         return resultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1318,6 +1461,8 @@ public com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResults
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1331,10 +1476,12 @@ public com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResults
      * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
      */
     public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsBuilder() {
-      return getResultsFieldBuilder().addBuilder(
-          com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1349,10 +1496,13 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsB
      */
     public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsBuilder(
         int index) {
-      return getResultsFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1365,20 +1515,23 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsB
      *
      * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
      */
-    public java.util.List 
-         getResultsBuilderList() {
+    public java.util.List
+        getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v2.StreamingRecognitionResult, com.google.cloud.speech.v2.StreamingRecognitionResult.Builder, com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder> 
+            com.google.cloud.speech.v2.StreamingRecognitionResult,
+            com.google.cloud.speech.v2.StreamingRecognitionResult.Builder,
+            com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder>
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.StreamingRecognitionResult, com.google.cloud.speech.v2.StreamingRecognitionResult.Builder, com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder>(
-                results_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        resultsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v2.StreamingRecognitionResult,
+                com.google.cloud.speech.v2.StreamingRecognitionResult.Builder,
+                com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder>(
+                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1386,22 +1539,33 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsB
 
     private int speechEventType_ = 0;
     /**
+     *
+     *
      * 
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * * @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.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * * @param value The enum numeric value on the wire for speechEventType to set. * @return This builder for chaining. */ @@ -1412,28 +1576,44 @@ public Builder setSpeechEventTypeValue(int value) { return this; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * * @return The speechEventType. */ @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { - com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.forNumber(speechEventType_); - return result == null ? com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + public com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { + com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.forNumber( + speechEventType_); + return result == null + ? com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED + : result; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * * @param value The speechEventType to set. * @return This builder for chaining. */ - public Builder setSpeechEventType(com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType value) { + public Builder setSpeechEventType( + com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType value) { if (value == null) { throw new NullPointerException(); } @@ -1443,11 +1623,16 @@ public Builder setSpeechEventType(com.google.cloud.speech.v2.StreamingRecognizeR return this; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * * @return This builder for chaining. */ public Builder clearSpeechEventType() { @@ -1459,34 +1644,47 @@ public Builder clearSpeechEventType() { private com.google.protobuf.Duration speechEventOffset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> speechEventOffsetBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + speechEventOffsetBuilder_; /** + * + * *
      * Time offset between the beginning of the audio and event emission.
      * 
* * .google.protobuf.Duration speech_event_offset = 7; + * * @return Whether the speechEventOffset field is set. */ public boolean hasSpeechEventOffset() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Time offset between the beginning of the audio and event emission.
      * 
* * .google.protobuf.Duration speech_event_offset = 7; + * * @return The speechEventOffset. */ public com.google.protobuf.Duration getSpeechEventOffset() { if (speechEventOffsetBuilder_ == null) { - return speechEventOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEventOffset_; + return speechEventOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : speechEventOffset_; } else { return speechEventOffsetBuilder_.getMessage(); } } /** + * + * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1507,14 +1705,15 @@ public Builder setSpeechEventOffset(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Time offset between the beginning of the audio and event emission.
      * 
* * .google.protobuf.Duration speech_event_offset = 7; */ - public Builder setSpeechEventOffset( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setSpeechEventOffset(com.google.protobuf.Duration.Builder builderForValue) { if (speechEventOffsetBuilder_ == null) { speechEventOffset_ = builderForValue.build(); } else { @@ -1525,6 +1724,8 @@ public Builder setSpeechEventOffset( return this; } /** + * + * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1533,9 +1734,9 @@ public Builder setSpeechEventOffset( */ public Builder mergeSpeechEventOffset(com.google.protobuf.Duration value) { if (speechEventOffsetBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - speechEventOffset_ != null && - speechEventOffset_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && speechEventOffset_ != null + && speechEventOffset_ != com.google.protobuf.Duration.getDefaultInstance()) { getSpeechEventOffsetBuilder().mergeFrom(value); } else { speechEventOffset_ = value; @@ -1548,6 +1749,8 @@ public Builder mergeSpeechEventOffset(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1565,6 +1768,8 @@ public Builder clearSpeechEventOffset() { return this; } /** + * + * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1577,6 +1782,8 @@ public com.google.protobuf.Duration.Builder getSpeechEventOffsetBuilder() { return getSpeechEventOffsetFieldBuilder().getBuilder(); } /** + * + * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1587,11 +1794,14 @@ public com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder() { if (speechEventOffsetBuilder_ != null) { return speechEventOffsetBuilder_.getMessageOrBuilder(); } else { - return speechEventOffset_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : speechEventOffset_; + return speechEventOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : speechEventOffset_; } } /** + * + * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1599,14 +1809,17 @@ public com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder() { * .google.protobuf.Duration speech_event_offset = 7; */ 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> getSpeechEventOffsetFieldBuilder() { if (speechEventOffsetBuilder_ == null) { - speechEventOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getSpeechEventOffset(), - getParentForChildren(), - isClean()); + speechEventOffsetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getSpeechEventOffset(), getParentForChildren(), isClean()); speechEventOffset_ = null; } return speechEventOffsetBuilder_; @@ -1614,34 +1827,47 @@ public com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder() { private com.google.cloud.speech.v2.RecognitionResponseMetadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> metadataBuilder_; + com.google.cloud.speech.v2.RecognitionResponseMetadata, + com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, + com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> + metadataBuilder_; /** + * + * *
      * Metadata about the recognition.
      * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; + * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Metadata about the recognition.
      * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; + * * @return The metadata. */ public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() + : metadata_; } else { return metadataBuilder_.getMessage(); } } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1662,6 +1888,8 @@ public Builder setMetadata(com.google.cloud.speech.v2.RecognitionResponseMetadat return this; } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1680,6 +1908,8 @@ public Builder setMetadata( return this; } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1688,9 +1918,10 @@ public Builder setMetadata( */ public Builder mergeMetadata(com.google.cloud.speech.v2.RecognitionResponseMetadata value) { if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - metadata_ != null && - metadata_ != com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; @@ -1703,6 +1934,8 @@ public Builder mergeMetadata(com.google.cloud.speech.v2.RecognitionResponseMetad return this; } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1720,6 +1953,8 @@ public Builder clearMetadata() { return this; } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1732,6 +1967,8 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder getMetadat return getMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1742,11 +1979,14 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetada if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { - return metadata_ == null ? - com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() + : metadata_; } } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1754,21 +1994,24 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetada * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> + com.google.cloud.speech.v2.RecognitionResponseMetadata, + com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, + com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.RecognitionResponseMetadata, + com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, + com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } + @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); } @@ -1778,12 +2021,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognizeResponse) private static final com.google.cloud.speech.v2.StreamingRecognizeResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognizeResponse(); } @@ -1792,27 +2035,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1827,6 +2070,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.StreamingRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java similarity index 84% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java index adfef06e80a3..5ebe124a6264 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface StreamingRecognizeResponseOrBuilder extends +public interface StreamingRecognizeResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognizeResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -20,9 +38,10 @@ public interface StreamingRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
    */
-  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.
@@ -37,6 +56,8 @@ public interface StreamingRecognizeResponseOrBuilder extends
    */
   com.google.cloud.speech.v2.StreamingRecognitionResult getResults(int index);
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -51,6 +72,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.
@@ -63,9 +86,11 @@ public interface StreamingRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
    */
-  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.
@@ -78,47 +103,62 @@ public interface StreamingRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
    */
-  com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResultsOrBuilder(
-      int index);
+  com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * * @return The enum numeric value on the wire for speechEventType. */ int getSpeechEventTypeValue(); /** + * + * *
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * * @return The speechEventType. */ com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType getSpeechEventType(); /** + * + * *
    * Time offset between the beginning of the audio and event emission.
    * 
* * .google.protobuf.Duration speech_event_offset = 7; + * * @return Whether the speechEventOffset field is set. */ boolean hasSpeechEventOffset(); /** + * + * *
    * Time offset between the beginning of the audio and event emission.
    * 
* * .google.protobuf.Duration speech_event_offset = 7; + * * @return The speechEventOffset. */ com.google.protobuf.Duration getSpeechEventOffset(); /** + * + * *
    * Time offset between the beginning of the audio and event emission.
    * 
@@ -128,24 +168,32 @@ com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResultsOrBuild com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder(); /** + * + * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; + * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** + * + * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; + * * @return The metadata. */ com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata(); /** + * + * *
    * Metadata about the recognition.
    * 
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java index b719cb328c62..9c3e52e2e108 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [UndeleteCustomClass][google.cloud.speech.v2.Speech.UndeleteCustomClass]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.UndeleteCustomClassRequest}
  */
-public final class UndeleteCustomClassRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UndeleteCustomClassRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.UndeleteCustomClassRequest)
     UndeleteCustomClassRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UndeleteCustomClassRequest.newBuilder() to construct.
   private UndeleteCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UndeleteCustomClassRequest() {
     name_ = "";
     etag_ = "";
@@ -28,40 +46,47 @@ private UndeleteCustomClassRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UndeleteCustomClassRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UndeleteCustomClassRequest.class, com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder.class);
+            com.google.cloud.speech.v2.UndeleteCustomClassRequest.class,
+            com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the CustomClass to undelete.
    * 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 @@ -70,31 +95,33 @@ 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 CustomClass to undelete.
    * 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 { @@ -105,12 +132,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the undeleted CustomClass, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -119,9 +149,12 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -129,6 +162,7 @@ public boolean getValidateOnly() {
    * 
* * string etag = 4; + * * @return The etag. */ @java.lang.Override @@ -137,14 +171,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -152,16 +187,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 4; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -170,6 +204,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,8 +216,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_); } @@ -205,8 +239,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, etag_); @@ -219,19 +252,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.v2.UndeleteCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UndeleteCustomClassRequest other = (com.google.cloud.speech.v2.UndeleteCustomClassRequest) obj; + com.google.cloud.speech.v2.UndeleteCustomClassRequest other = + (com.google.cloud.speech.v2.UndeleteCustomClassRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -246,8 +277,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -256,96 +286,104 @@ public int hashCode() { } public static com.google.cloud.speech.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UndeleteCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UndeleteCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v2.UndeleteCustomClassRequest 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; } /** + * + * *
    * Request message for the
    * [UndeleteCustomClass][google.cloud.speech.v2.Speech.UndeleteCustomClass]
@@ -354,33 +392,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.UndeleteCustomClassRequest}
    */
-  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.v2.UndeleteCustomClassRequest)
       com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UndeleteCustomClassRequest.class, com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder.class);
+              com.google.cloud.speech.v2.UndeleteCustomClassRequest.class,
+              com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UndeleteCustomClassRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -392,9 +429,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
@@ -413,8 +450,11 @@ public com.google.cloud.speech.v2.UndeleteCustomClassRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UndeleteCustomClassRequest buildPartial() {
-      com.google.cloud.speech.v2.UndeleteCustomClassRequest result = new com.google.cloud.speech.v2.UndeleteCustomClassRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.UndeleteCustomClassRequest result =
+          new com.google.cloud.speech.v2.UndeleteCustomClassRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -436,38 +476,39 @@ private void buildPartial0(com.google.cloud.speech.v2.UndeleteCustomClassRequest
     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.v2.UndeleteCustomClassRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UndeleteCustomClassRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.UndeleteCustomClassRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -475,7 +516,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UndeleteCustomClassRequest other) {
-      if (other == com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -515,27 +557,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 24: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 24
-            case 34: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 24:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 24
+            case 34:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -545,24 +591,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the CustomClass to undelete.
      * 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; @@ -571,22 +622,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the CustomClass to undelete.
      * 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 { @@ -594,32 +648,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the CustomClass to undelete.
      * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the CustomClass to undelete.
      * 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() { @@ -629,19 +694,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the CustomClass to undelete.
      * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -649,14 +720,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the undeleted CustomClass, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -664,29 +738,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the undeleted CustomClass, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the undeleted CustomClass, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -698,6 +778,8 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -705,13 +787,13 @@ public Builder clearValidateOnly() {
      * 
* * string etag = 4; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -720,6 +802,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -727,15 +811,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 4; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -743,6 +826,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -750,18 +835,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 4; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -769,6 +858,7 @@ public Builder setEtag(
      * 
* * string etag = 4; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -778,6 +868,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -785,21 +877,23 @@ public Builder clearEtag() {
      * 
* * string etag = 4; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -809,12 +903,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UndeleteCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UndeleteCustomClassRequest) private static final com.google.cloud.speech.v2.UndeleteCustomClassRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UndeleteCustomClassRequest(); } @@ -823,27 +917,27 @@ public static com.google.cloud.speech.v2.UndeleteCustomClassRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeleteCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeleteCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -858,6 +952,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.UndeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java index 5cb508666745..3f2932465fef 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java @@ -1,48 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UndeleteCustomClassRequestOrBuilder extends +public interface UndeleteCustomClassRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UndeleteCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the CustomClass to undelete.
    * 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.String getName(); /** + * + * *
    * Required. The name of the CustomClass to undelete.
    * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set, validate the request and preview the undeleted CustomClass, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -50,10 +80,13 @@ public interface UndeleteCustomClassRequestOrBuilder extends
    * 
* * string etag = 4; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -61,8 +94,8 @@ public interface UndeleteCustomClassRequestOrBuilder extends
    * 
* * string etag = 4; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java index abf4b2329690..76616b3d3e23 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [UndeletePhraseSet][google.cloud.speech.v2.Speech.UndeletePhraseSet]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.UndeletePhraseSetRequest}
  */
-public final class UndeletePhraseSetRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UndeletePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.UndeletePhraseSetRequest)
     UndeletePhraseSetRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UndeletePhraseSetRequest.newBuilder() to construct.
   private UndeletePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UndeletePhraseSetRequest() {
     name_ = "";
     etag_ = "";
@@ -28,39 +46,46 @@ private UndeletePhraseSetRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UndeletePhraseSetRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UndeletePhraseSetRequest.class, com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder.class);
+            com.google.cloud.speech.v2.UndeletePhraseSetRequest.class,
+            com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the PhraseSet to undelete.
    * 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 @@ -69,30 +94,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 PhraseSet to undelete.
    * 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 { @@ -103,12 +130,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the undeleted PhraseSet, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -117,9 +147,12 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -127,6 +160,7 @@ public boolean getValidateOnly() {
    * 
* * string etag = 4; + * * @return The etag. */ @java.lang.Override @@ -135,14 +169,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -150,16 +185,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 4; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -168,6 +202,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +214,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_); } @@ -203,8 +237,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, etag_); @@ -217,19 +250,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.v2.UndeletePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UndeletePhraseSetRequest other = (com.google.cloud.speech.v2.UndeletePhraseSetRequest) obj; + com.google.cloud.speech.v2.UndeletePhraseSetRequest other = + (com.google.cloud.speech.v2.UndeletePhraseSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,8 +275,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -254,96 +284,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UndeletePhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UndeletePhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest 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; } /** + * + * *
    * Request message for the
    * [UndeletePhraseSet][google.cloud.speech.v2.Speech.UndeletePhraseSet]
@@ -352,33 +389,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.UndeletePhraseSetRequest}
    */
-  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.v2.UndeletePhraseSetRequest)
       com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UndeletePhraseSetRequest.class, com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder.class);
+              com.google.cloud.speech.v2.UndeletePhraseSetRequest.class,
+              com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UndeletePhraseSetRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -390,9 +426,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -411,8 +447,11 @@ public com.google.cloud.speech.v2.UndeletePhraseSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UndeletePhraseSetRequest buildPartial() {
-      com.google.cloud.speech.v2.UndeletePhraseSetRequest result = new com.google.cloud.speech.v2.UndeletePhraseSetRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.UndeletePhraseSetRequest result =
+          new com.google.cloud.speech.v2.UndeletePhraseSetRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -434,38 +473,39 @@ private void buildPartial0(com.google.cloud.speech.v2.UndeletePhraseSetRequest r
     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.v2.UndeletePhraseSetRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UndeletePhraseSetRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.UndeletePhraseSetRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -473,7 +513,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UndeletePhraseSetRequest other) {
-      if (other == com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -513,27 +554,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 24: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 24
-            case 34: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 24:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 24
+            case 34:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -543,23 +588,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the PhraseSet to undelete.
      * 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; @@ -568,21 +618,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the PhraseSet to undelete.
      * 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 { @@ -590,30 +643,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the PhraseSet to undelete.
      * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the PhraseSet to undelete.
      * 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() { @@ -623,18 +687,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the PhraseSet to undelete.
      * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -642,14 +712,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the undeleted PhraseSet, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -657,29 +730,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the undeleted PhraseSet, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the undeleted PhraseSet, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -691,6 +770,8 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -698,13 +779,13 @@ public Builder clearValidateOnly() {
      * 
* * string etag = 4; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -713,6 +794,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -720,15 +803,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 4; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -736,6 +818,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -743,18 +827,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 4; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -762,6 +850,7 @@ public Builder setEtag(
      * 
* * string etag = 4; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -771,6 +860,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -778,21 +869,23 @@ public Builder clearEtag() {
      * 
* * string etag = 4; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -802,12 +895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UndeletePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UndeletePhraseSetRequest) private static final com.google.cloud.speech.v2.UndeletePhraseSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UndeletePhraseSetRequest(); } @@ -816,27 +909,27 @@ public static com.google.cloud.speech.v2.UndeletePhraseSetRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeletePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeletePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -851,6 +944,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.UndeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java index 2e93ee02b6f0..57ddba361792 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java @@ -1,46 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UndeletePhraseSetRequestOrBuilder extends +public interface UndeletePhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UndeletePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the PhraseSet to undelete.
    * 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.String getName(); /** + * + * *
    * Required. The name of the PhraseSet to undelete.
    * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set, validate the request and preview the undeleted PhraseSet, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -48,10 +78,13 @@ public interface UndeletePhraseSetRequestOrBuilder extends
    * 
* * string etag = 4; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -59,8 +92,8 @@ public interface UndeletePhraseSetRequestOrBuilder extends
    * 
* * string etag = 4; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java index 0f4d5175bc86..bda5cf7ddc37 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [UndeleteRecognizer][google.cloud.speech.v2.Speech.UndeleteRecognizer]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.UndeleteRecognizerRequest}
  */
-public final class UndeleteRecognizerRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UndeleteRecognizerRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.UndeleteRecognizerRequest)
     UndeleteRecognizerRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UndeleteRecognizerRequest.newBuilder() to construct.
   private UndeleteRecognizerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UndeleteRecognizerRequest() {
     name_ = "";
     etag_ = "";
@@ -28,39 +46,46 @@ private UndeleteRecognizerRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UndeleteRecognizerRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UndeleteRecognizerRequest.class, com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder.class);
+            com.google.cloud.speech.v2.UndeleteRecognizerRequest.class,
+            com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the Recognizer to undelete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * 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 @@ -69,30 +94,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 Recognizer to undelete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * 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 { @@ -103,12 +130,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the undeleted Recognizer, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -117,9 +147,12 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -127,6 +160,7 @@ public boolean getValidateOnly() {
    * 
* * string etag = 4; + * * @return The etag. */ @java.lang.Override @@ -135,14 +169,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -150,16 +185,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 4; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -168,6 +202,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +214,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_); } @@ -203,8 +237,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, etag_); @@ -217,19 +250,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.v2.UndeleteRecognizerRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UndeleteRecognizerRequest other = (com.google.cloud.speech.v2.UndeleteRecognizerRequest) obj; + com.google.cloud.speech.v2.UndeleteRecognizerRequest other = + (com.google.cloud.speech.v2.UndeleteRecognizerRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,8 +275,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -254,96 +284,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UndeleteRecognizerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UndeleteRecognizerRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest 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; } /** + * + * *
    * Request message for the
    * [UndeleteRecognizer][google.cloud.speech.v2.Speech.UndeleteRecognizer]
@@ -352,33 +389,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.UndeleteRecognizerRequest}
    */
-  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.v2.UndeleteRecognizerRequest)
       com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UndeleteRecognizerRequest.class, com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder.class);
+              com.google.cloud.speech.v2.UndeleteRecognizerRequest.class,
+              com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UndeleteRecognizerRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -390,9 +426,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
@@ -411,8 +447,11 @@ public com.google.cloud.speech.v2.UndeleteRecognizerRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UndeleteRecognizerRequest buildPartial() {
-      com.google.cloud.speech.v2.UndeleteRecognizerRequest result = new com.google.cloud.speech.v2.UndeleteRecognizerRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.UndeleteRecognizerRequest result =
+          new com.google.cloud.speech.v2.UndeleteRecognizerRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -434,38 +473,39 @@ private void buildPartial0(com.google.cloud.speech.v2.UndeleteRecognizerRequest
     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.v2.UndeleteRecognizerRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UndeleteRecognizerRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.UndeleteRecognizerRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -473,7 +513,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UndeleteRecognizerRequest other) {
-      if (other == com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -513,27 +554,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 24: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 24
-            case 34: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 24:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 24
+            case 34:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -543,23 +588,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the Recognizer to undelete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * 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; @@ -568,21 +618,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Recognizer to undelete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * 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 { @@ -590,30 +643,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Recognizer to undelete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the Recognizer to undelete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * 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() { @@ -623,18 +687,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the Recognizer to undelete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -642,14 +712,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the undeleted Recognizer, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -657,29 +730,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the undeleted Recognizer, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the undeleted Recognizer, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -691,6 +770,8 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -698,13 +779,13 @@ public Builder clearValidateOnly() {
      * 
* * string etag = 4; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -713,6 +794,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -720,15 +803,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 4; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -736,6 +818,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -743,18 +827,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 4; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -762,6 +850,7 @@ public Builder setEtag(
      * 
* * string etag = 4; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -771,6 +860,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -778,21 +869,23 @@ public Builder clearEtag() {
      * 
* * string etag = 4; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -802,12 +895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UndeleteRecognizerRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UndeleteRecognizerRequest) private static final com.google.cloud.speech.v2.UndeleteRecognizerRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UndeleteRecognizerRequest(); } @@ -816,27 +909,27 @@ public static com.google.cloud.speech.v2.UndeleteRecognizerRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeleteRecognizerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeleteRecognizerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -851,6 +944,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.UndeleteRecognizerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java index cb43fb97d00d..a1a11469b1d1 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java @@ -1,46 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UndeleteRecognizerRequestOrBuilder extends +public interface UndeleteRecognizerRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UndeleteRecognizerRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Recognizer to undelete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * 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 Recognizer to undelete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * 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(); /** + * + * *
    * If set, validate the request and preview the undeleted Recognizer, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -48,10 +78,13 @@ public interface UndeleteRecognizerRequestOrBuilder extends
    * 
* * string etag = 4; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -59,8 +92,8 @@ public interface UndeleteRecognizerRequestOrBuilder extends
    * 
* * string etag = 4; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java similarity index 69% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java index 1d449cc5fca2..fcf2dc0642c1 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [UpdateConfig][google.cloud.speech.v2.Speech.UpdateConfig] method.
@@ -11,53 +28,58 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.UpdateConfigRequest}
  */
-public final class UpdateConfigRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateConfigRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.UpdateConfigRequest)
     UpdateConfigRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateConfigRequest.newBuilder() to construct.
   private UpdateConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private UpdateConfigRequest() {
-  }
+
+  private UpdateConfigRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateConfigRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UpdateConfigRequest.class, com.google.cloud.speech.v2.UpdateConfigRequest.Builder.class);
+            com.google.cloud.speech.v2.UpdateConfigRequest.class,
+            com.google.cloud.speech.v2.UpdateConfigRequest.Builder.class);
   }
 
   public static final int CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.Config config_;
   /**
+   *
+   *
    * 
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -65,13 +87,17 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ @java.lang.Override @@ -79,13 +105,16 @@ public com.google.cloud.speech.v2.Config getConfig() { return config_ == null ? com.google.cloud.speech.v2.Config.getDefaultInstance() : config_; } /** + * + * *
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v2.ConfigOrBuilder getConfigOrBuilder() { @@ -95,11 +124,14 @@ public com.google.cloud.speech.v2.ConfigOrBuilder getConfigOrBuilder() { 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 @@ -107,11 +139,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 @@ -119,6 +154,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * 
@@ -131,6 +168,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,8 +180,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()); } @@ -160,12 +197,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 (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -175,22 +210,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.v2.UpdateConfigRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UpdateConfigRequest other = (com.google.cloud.speech.v2.UpdateConfigRequest) obj; + com.google.cloud.speech.v2.UpdateConfigRequest other = + (com.google.cloud.speech.v2.UpdateConfigRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -216,97 +250,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.UpdateConfigRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.UpdateConfigRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UpdateConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest 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; } /** + * + * *
    * Request message for the
    * [UpdateConfig][google.cloud.speech.v2.Speech.UpdateConfig] method.
@@ -314,33 +355,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.UpdateConfigRequest}
    */
-  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.v2.UpdateConfigRequest)
       com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UpdateConfigRequest.class, com.google.cloud.speech.v2.UpdateConfigRequest.Builder.class);
+              com.google.cloud.speech.v2.UpdateConfigRequest.class,
+              com.google.cloud.speech.v2.UpdateConfigRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UpdateConfigRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -359,9 +399,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
     }
 
     @java.lang.Override
@@ -380,8 +420,11 @@ public com.google.cloud.speech.v2.UpdateConfigRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UpdateConfigRequest buildPartial() {
-      com.google.cloud.speech.v2.UpdateConfigRequest result = new com.google.cloud.speech.v2.UpdateConfigRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.UpdateConfigRequest result =
+          new com.google.cloud.speech.v2.UpdateConfigRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -389,14 +432,10 @@ public com.google.cloud.speech.v2.UpdateConfigRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.UpdateConfigRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.config_ = configBuilder_ == null
-            ? config_
-            : configBuilder_.build();
+        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
       }
     }
 
@@ -404,38 +443,39 @@ private void buildPartial0(com.google.cloud.speech.v2.UpdateConfigRequest result
     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.v2.UpdateConfigRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UpdateConfigRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.UpdateConfigRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -476,26 +516,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -505,32 +544,44 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.speech.v2.Config config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.Config, com.google.cloud.speech.v2.Config.Builder, com.google.cloud.speech.v2.ConfigOrBuilder> configBuilder_;
+            com.google.cloud.speech.v2.Config,
+            com.google.cloud.speech.v2.Config.Builder,
+            com.google.cloud.speech.v2.ConfigOrBuilder>
+        configBuilder_;
     /**
+     *
+     *
      * 
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v2.Config getConfig() { @@ -541,13 +592,16 @@ public com.google.cloud.speech.v2.Config getConfig() { } } /** + * + * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v2.Config value) { if (configBuilder_ == null) { @@ -563,16 +617,18 @@ public Builder setConfig(com.google.cloud.speech.v2.Config value) { return this; } /** + * + * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setConfig( - com.google.cloud.speech.v2.Config.Builder builderForValue) { + public Builder setConfig(com.google.cloud.speech.v2.Config.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); } else { @@ -583,19 +639,22 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v2.Config value) { if (configBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - config_ != null && - config_ != com.google.cloud.speech.v2.Config.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && config_ != null + && config_ != com.google.cloud.speech.v2.Config.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -608,13 +667,16 @@ public Builder mergeConfig(com.google.cloud.speech.v2.Config value) { return this; } /** + * + * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { bitField0_ = (bitField0_ & ~0x00000001); @@ -627,13 +689,16 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.Config.Builder getConfigBuilder() { bitField0_ |= 0x00000001; @@ -641,40 +706,48 @@ public com.google.cloud.speech.v2.Config.Builder getConfigBuilder() { return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.ConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v2.Config.getDefaultInstance() : config_; + return config_ == null ? com.google.cloud.speech.v2.Config.getDefaultInstance() : config_; } } /** + * + * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Config, com.google.cloud.speech.v2.Config.Builder, com.google.cloud.speech.v2.ConfigOrBuilder> + com.google.cloud.speech.v2.Config, + com.google.cloud.speech.v2.Config.Builder, + com.google.cloud.speech.v2.ConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Config, com.google.cloud.speech.v2.Config.Builder, com.google.cloud.speech.v2.ConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.Config, + com.google.cloud.speech.v2.Config.Builder, + com.google.cloud.speech.v2.ConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; @@ -682,34 +755,47 @@ public com.google.cloud.speech.v2.ConfigOrBuilder getConfigOrBuilder() { 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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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.
      * 
@@ -730,14 +816,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(); } else { @@ -748,6 +835,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -756,9 +845,9 @@ public Builder setUpdateMask( */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -771,6 +860,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -788,6 +879,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -800,6 +893,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -810,11 +905,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.
      * 
@@ -822,21 +920,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); } @@ -846,12 +947,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UpdateConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UpdateConfigRequest) private static final com.google.cloud.speech.v2.UpdateConfigRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UpdateConfigRequest(); } @@ -860,27 +961,27 @@ public static com.google.cloud.speech.v2.UpdateConfigRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -895,6 +996,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.UpdateConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java index 336b01b5753f..934ae4f143d3 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java @@ -1,64 +1,99 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UpdateConfigRequestOrBuilder extends +public interface UpdateConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UpdateConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ com.google.cloud.speech.v2.Config getConfig(); /** + * + * *
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v2.ConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * 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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java index 8634ee573ae2..15ac97450832 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [UpdateCustomClass][google.cloud.speech.v2.Speech.UpdateCustomClass] method.
@@ -11,46 +28,49 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UpdateCustomClassRequest.class, com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder.class);
+            com.google.cloud.speech.v2.UpdateCustomClassRequest.class,
+            com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder.class);
   }
 
   public static final int CUSTOM_CLASS_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.CustomClass customClass_;
   /**
+   *
+   *
    * 
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -58,7 +78,10 @@ protected java.lang.Object newInstance(
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ @java.lang.Override @@ -66,6 +89,8 @@ public boolean hasCustomClass() { return customClass_ != null; } /** + * + * *
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -73,14 +98,21 @@ public boolean hasCustomClass() {
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ @java.lang.Override public com.google.cloud.speech.v2.CustomClass getCustomClass() { - return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() + : customClass_; } /** + * + * *
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -88,22 +120,29 @@ public com.google.cloud.speech.v2.CustomClass getCustomClass() {
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder() { - return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() + : customClass_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -111,12 +150,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -124,6 +166,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
@@ -139,12 +183,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int VALIDATE_ONLY_FIELD_NUMBER = 4;
   private boolean validateOnly_ = false;
   /**
+   *
+   *
    * 
    * If set, validate the request and preview the updated CustomClass, but do
    * not actually update it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -153,6 +200,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,8 +212,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()); } @@ -185,16 +232,13 @@ 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()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -204,25 +248,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.v2.UpdateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UpdateCustomClassRequest other = (com.google.cloud.speech.v2.UpdateCustomClassRequest) obj; + com.google.cloud.speech.v2.UpdateCustomClassRequest other = + (com.google.cloud.speech.v2.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 (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -243,104 +285,110 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v2.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.v2.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.v2.UpdateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.UpdateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.UpdateCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UpdateCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.UpdateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UpdateCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [UpdateCustomClass][google.cloud.speech.v2.Speech.UpdateCustomClass] method.
@@ -348,33 +396,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.UpdateCustomClassRequest)
       com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UpdateCustomClassRequest.class, com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder.class);
+              com.google.cloud.speech.v2.UpdateCustomClassRequest.class,
+              com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UpdateCustomClassRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -394,9 +441,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
@@ -415,8 +462,11 @@ public com.google.cloud.speech.v2.UpdateCustomClassRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UpdateCustomClassRequest buildPartial() {
-      com.google.cloud.speech.v2.UpdateCustomClassRequest result = new com.google.cloud.speech.v2.UpdateCustomClassRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.UpdateCustomClassRequest result =
+          new com.google.cloud.speech.v2.UpdateCustomClassRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -424,14 +474,11 @@ public com.google.cloud.speech.v2.UpdateCustomClassRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.UpdateCustomClassRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.customClass_ = customClassBuilder_ == null
-            ? customClass_
-            : customClassBuilder_.build();
+        result.customClass_ =
+            customClassBuilder_ == null ? customClass_ : customClassBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -442,38 +489,39 @@ private void buildPartial0(com.google.cloud.speech.v2.UpdateCustomClassRequest r
     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.v2.UpdateCustomClassRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UpdateCustomClassRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.UpdateCustomClassRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -481,7 +529,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UpdateCustomClassRequest other) {
-      if (other == com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance())
+        return this;
       if (other.hasCustomClass()) {
         mergeCustomClass(other.getCustomClass());
       }
@@ -517,31 +566,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getCustomClassFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 32: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 32:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -551,12 +600,18 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.speech.v2.CustomClass customClass_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> customClassBuilder_;
+            com.google.cloud.speech.v2.CustomClass,
+            com.google.cloud.speech.v2.CustomClass.Builder,
+            com.google.cloud.speech.v2.CustomClassOrBuilder>
+        customClassBuilder_;
     /**
+     *
+     *
      * 
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -564,13 +619,18 @@ public Builder mergeFrom(
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -578,17 +638,24 @@ public boolean hasCustomClass() {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ public com.google.cloud.speech.v2.CustomClass getCustomClass() { if (customClassBuilder_ == null) { - return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() + : customClass_; } else { return customClassBuilder_.getMessage(); } } /** + * + * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -596,7 +663,9 @@ public com.google.cloud.speech.v2.CustomClass getCustomClass() {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass value) { if (customClassBuilder_ == null) { @@ -612,6 +681,8 @@ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass value) { return this; } /** + * + * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -619,10 +690,11 @@ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass value) {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCustomClass( - com.google.cloud.speech.v2.CustomClass.Builder builderForValue) { + public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass.Builder builderForValue) { if (customClassBuilder_ == null) { customClass_ = builderForValue.build(); } else { @@ -633,6 +705,8 @@ public Builder setCustomClass( return this; } /** + * + * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -640,13 +714,15 @@ public Builder setCustomClass(
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCustomClass(com.google.cloud.speech.v2.CustomClass value) { if (customClassBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - customClass_ != null && - customClass_ != com.google.cloud.speech.v2.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && customClass_ != null + && customClass_ != com.google.cloud.speech.v2.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -659,6 +735,8 @@ public Builder mergeCustomClass(com.google.cloud.speech.v2.CustomClass value) { return this; } /** + * + * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -666,7 +744,9 @@ public Builder mergeCustomClass(com.google.cloud.speech.v2.CustomClass value) {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCustomClass() { bitField0_ = (bitField0_ & ~0x00000001); @@ -679,6 +759,8 @@ public Builder clearCustomClass() { return this; } /** + * + * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -686,7 +768,9 @@ public Builder clearCustomClass() {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassBuilder() { bitField0_ |= 0x00000001; @@ -694,6 +778,8 @@ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassBuilder() { return getCustomClassFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -701,17 +787,22 @@ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassBuilder() {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder() { if (customClassBuilder_ != null) { return customClassBuilder_.getMessageOrBuilder(); } else { - return customClass_ == null ? - com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() + : customClass_; } } /** + * + * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -719,17 +810,22 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder()
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> + com.google.cloud.speech.v2.CustomClass, + com.google.cloud.speech.v2.CustomClass.Builder, + com.google.cloud.speech.v2.CustomClassOrBuilder> getCustomClassFieldBuilder() { if (customClassBuilder_ == null) { - customClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder>( - getCustomClass(), - getParentForChildren(), - isClean()); + customClassBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.CustomClass, + com.google.cloud.speech.v2.CustomClass.Builder, + com.google.cloud.speech.v2.CustomClassOrBuilder>( + getCustomClass(), getParentForChildren(), isClean()); customClass_ = null; } return customClassBuilder_; @@ -737,36 +833,49 @@ public com.google.cloud.speech.v2.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. If empty, all fields are considered for
      * update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
      * 
* * .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. If empty, all fields are considered for
      * update.
@@ -788,6 +897,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
@@ -795,8 +906,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .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();
       } else {
@@ -807,6 +917,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
@@ -816,9 +928,9 @@ public Builder setUpdateMask(
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          updateMask_ != null &&
-          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && updateMask_ != null
+            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -831,6 +943,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
@@ -849,6 +963,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
@@ -862,6 +978,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
@@ -873,11 +991,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. If empty, all fields are considered for
      * update.
@@ -886,27 +1007,33 @@ 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_;
     }
 
-    private boolean validateOnly_ ;
+    private boolean validateOnly_;
     /**
+     *
+     *
      * 
      * If set, validate the request and preview the updated CustomClass, but do
      * not actually update it.
      * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -914,29 +1041,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the updated CustomClass, but do
      * not actually update it.
      * 
* * bool validate_only = 4; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the updated CustomClass, but do
      * not actually update it.
      * 
* * bool validate_only = 4; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -945,9 +1078,9 @@ public Builder clearValidateOnly() { 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); } @@ -957,12 +1090,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UpdateCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UpdateCustomClassRequest) private static final com.google.cloud.speech.v2.UpdateCustomClassRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UpdateCustomClassRequest(); } @@ -971,27 +1104,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,6 +1139,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.UpdateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java index 38d67c91c3d4..fcd686776acc 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UpdateCustomClassRequestOrBuilder extends +public interface UpdateCustomClassRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UpdateCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -15,11 +33,16 @@ public interface UpdateCustomClassRequestOrBuilder extends
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ boolean hasCustomClass(); /** + * + * *
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -27,11 +50,16 @@ public interface UpdateCustomClassRequestOrBuilder extends
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ com.google.cloud.speech.v2.CustomClass getCustomClass(); /** + * + * *
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -39,31 +67,41 @@ public interface UpdateCustomClassRequestOrBuilder extends
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder(); /** + * + * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
@@ -74,12 +112,15 @@ public interface UpdateCustomClassRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * If set, validate the request and preview the updated CustomClass, but do
    * not actually update it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java similarity index 68% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java index 0308a920ff72..34f1dea70e2f 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [UpdatePhraseSet][google.cloud.speech.v2.Speech.UpdatePhraseSet] method.
@@ -11,53 +28,59 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UpdatePhraseSetRequest.class, com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder.class);
+            com.google.cloud.speech.v2.UpdatePhraseSetRequest.class,
+            com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder.class);
   }
 
   public static final int PHRASE_SET_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.PhraseSet phraseSet_;
   /**
+   *
+   *
    * 
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -65,42 +88,58 @@ public boolean hasPhraseSet() { return phraseSet_ != null; } /** + * + * *
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSet getPhraseSet() { - return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() + : phraseSet_; } /** + * + * *
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder() { - return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() + : phraseSet_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -108,12 +147,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -121,6 +163,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -136,12 +180,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int VALIDATE_ONLY_FIELD_NUMBER = 4;
   private boolean validateOnly_ = false;
   /**
+   *
+   *
    * 
    * If set, validate the request and preview the updated PhraseSet, but do not
    * actually update it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -150,6 +197,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +209,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()); } @@ -182,16 +229,13 @@ 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()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -201,25 +245,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.v2.UpdatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UpdatePhraseSetRequest other = (com.google.cloud.speech.v2.UpdatePhraseSetRequest) obj; + com.google.cloud.speech.v2.UpdatePhraseSetRequest other = + (com.google.cloud.speech.v2.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 (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -240,104 +282,110 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v2.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.v2.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.v2.UpdatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.UpdatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.UpdatePhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UpdatePhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.UpdatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UpdatePhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [UpdatePhraseSet][google.cloud.speech.v2.Speech.UpdatePhraseSet] method.
@@ -345,33 +393,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.UpdatePhraseSetRequest)
       com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UpdatePhraseSetRequest.class, com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder.class);
+              com.google.cloud.speech.v2.UpdatePhraseSetRequest.class,
+              com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UpdatePhraseSetRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -391,9 +438,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -412,8 +459,11 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UpdatePhraseSetRequest buildPartial() {
-      com.google.cloud.speech.v2.UpdatePhraseSetRequest result = new com.google.cloud.speech.v2.UpdatePhraseSetRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.UpdatePhraseSetRequest result =
+          new com.google.cloud.speech.v2.UpdatePhraseSetRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -421,14 +471,10 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.UpdatePhraseSetRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.phraseSet_ = phraseSetBuilder_ == null
-            ? phraseSet_
-            : phraseSetBuilder_.build();
+        result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -439,38 +485,39 @@ private void buildPartial0(com.google.cloud.speech.v2.UpdatePhraseSetRequest res
     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.v2.UpdatePhraseSetRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UpdatePhraseSetRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.UpdatePhraseSetRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -478,7 +525,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UpdatePhraseSetRequest other) {
-      if (other == com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance())
+        return this;
       if (other.hasPhraseSet()) {
         mergePhraseSet(other.getPhraseSet());
       }
@@ -514,31 +562,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getPhraseSetFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 32: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 32:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -548,49 +596,69 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.speech.v2.PhraseSet phraseSet_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> phraseSetBuilder_;
+            com.google.cloud.speech.v2.PhraseSet,
+            com.google.cloud.speech.v2.PhraseSet.Builder,
+            com.google.cloud.speech.v2.PhraseSetOrBuilder>
+        phraseSetBuilder_;
     /**
+     *
+     *
      * 
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ public com.google.cloud.speech.v2.PhraseSet getPhraseSet() { if (phraseSetBuilder_ == null) { - return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() + : phraseSet_; } else { return phraseSetBuilder_.getMessage(); } } /** + * + * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetBuilder_ == null) { @@ -606,16 +674,19 @@ public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** + * + * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setPhraseSet( - com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { + public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { if (phraseSetBuilder_ == null) { phraseSet_ = builderForValue.build(); } else { @@ -626,19 +697,23 @@ public Builder setPhraseSet( return this; } /** + * + * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - phraseSet_ != null && - phraseSet_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && phraseSet_ != null + && phraseSet_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -651,13 +726,17 @@ public Builder mergePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** + * + * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPhraseSet() { bitField0_ = (bitField0_ & ~0x00000001); @@ -670,13 +749,17 @@ public Builder clearPhraseSet() { return this; } /** + * + * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetBuilder() { bitField0_ |= 0x00000001; @@ -684,40 +767,52 @@ public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetBuilder() { return getPhraseSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder() { if (phraseSetBuilder_ != null) { return phraseSetBuilder_.getMessageOrBuilder(); } else { - return phraseSet_ == null ? - com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() + : phraseSet_; } } /** + * + * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> + com.google.cloud.speech.v2.PhraseSet, + com.google.cloud.speech.v2.PhraseSet.Builder, + com.google.cloud.speech.v2.PhraseSetOrBuilder> getPhraseSetFieldBuilder() { if (phraseSetBuilder_ == null) { - phraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder>( - getPhraseSet(), - getParentForChildren(), - isClean()); + phraseSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.PhraseSet, + com.google.cloud.speech.v2.PhraseSet.Builder, + com.google.cloud.speech.v2.PhraseSetOrBuilder>( + getPhraseSet(), getParentForChildren(), isClean()); phraseSet_ = null; } return phraseSetBuilder_; @@ -725,36 +820,49 @@ public com.google.cloud.speech.v2.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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
      * 
* * .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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -776,6 +884,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -783,8 +893,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .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();
       } else {
@@ -795,6 +904,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -804,9 +915,9 @@ public Builder setUpdateMask(
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          updateMask_ != null &&
-          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && updateMask_ != null
+            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -819,6 +930,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -837,6 +950,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -850,6 +965,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -861,11 +978,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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -874,27 +994,33 @@ 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_;
     }
 
-    private boolean validateOnly_ ;
+    private boolean validateOnly_;
     /**
+     *
+     *
      * 
      * If set, validate the request and preview the updated PhraseSet, but do not
      * actually update it.
      * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -902,29 +1028,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the updated PhraseSet, but do not
      * actually update it.
      * 
* * bool validate_only = 4; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the updated PhraseSet, but do not
      * actually update it.
      * 
* * bool validate_only = 4; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -933,9 +1065,9 @@ public Builder clearValidateOnly() { 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); } @@ -945,12 +1077,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UpdatePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UpdatePhraseSetRequest) private static final com.google.cloud.speech.v2.UpdatePhraseSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UpdatePhraseSetRequest(); } @@ -959,27 +1091,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -994,6 +1126,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.UpdatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java index 216191fec0a8..c45c34e09307 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java @@ -1,66 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UpdatePhraseSetRequestOrBuilder extends +public interface UpdatePhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UpdatePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** + * + * *
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ com.google.cloud.speech.v2.PhraseSet getPhraseSet(); /** + * + * *
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder(); /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -71,12 +109,15 @@ public interface UpdatePhraseSetRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * If set, validate the request and preview the updated PhraseSet, but do not
    * actually update it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java index c8155b5da2ac..cdc3d817982a 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [UpdateRecognizer][google.cloud.speech.v2.Speech.UpdateRecognizer] method.
@@ -11,53 +28,59 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.UpdateRecognizerRequest}
  */
-public final class UpdateRecognizerRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateRecognizerRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.UpdateRecognizerRequest)
     UpdateRecognizerRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateRecognizerRequest.newBuilder() to construct.
   private UpdateRecognizerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private UpdateRecognizerRequest() {
-  }
+
+  private UpdateRecognizerRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateRecognizerRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UpdateRecognizerRequest.class, com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder.class);
+            com.google.cloud.speech.v2.UpdateRecognizerRequest.class,
+            com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder.class);
   }
 
   public static final int RECOGNIZER_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.Recognizer recognizer_;
   /**
+   *
+   *
    * 
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the recognizer field is set. */ @java.lang.Override @@ -65,42 +88,58 @@ public boolean hasRecognizer() { return recognizer_ != null; } /** + * + * *
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The recognizer. */ @java.lang.Override public com.google.cloud.speech.v2.Recognizer getRecognizer() { - return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; + return recognizer_ == null + ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() + : recognizer_; } /** + * + * *
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder() { - return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; + return recognizer_ == null + ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() + : recognizer_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -108,12 +147,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -121,6 +163,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
@@ -136,12 +180,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int VALIDATE_ONLY_FIELD_NUMBER = 4;
   private boolean validateOnly_ = false;
   /**
+   *
+   *
    * 
    * If set, validate the request and preview the updated Recognizer, but do not
    * actually update it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -150,6 +197,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +209,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 (recognizer_ != null) { output.writeMessage(1, getRecognizer()); } @@ -182,16 +229,13 @@ public int getSerializedSize() { size = 0; if (recognizer_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRecognizer()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRecognizer()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -201,25 +245,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.v2.UpdateRecognizerRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UpdateRecognizerRequest other = (com.google.cloud.speech.v2.UpdateRecognizerRequest) obj; + com.google.cloud.speech.v2.UpdateRecognizerRequest other = + (com.google.cloud.speech.v2.UpdateRecognizerRequest) obj; if (hasRecognizer() != other.hasRecognizer()) return false; if (hasRecognizer()) { - if (!getRecognizer() - .equals(other.getRecognizer())) return false; + if (!getRecognizer().equals(other.getRecognizer())) 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 (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -240,104 +282,110 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UpdateRecognizerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UpdateRecognizerRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest 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; } /** + * + * *
    * Request message for the
    * [UpdateRecognizer][google.cloud.speech.v2.Speech.UpdateRecognizer] method.
@@ -345,33 +393,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.UpdateRecognizerRequest}
    */
-  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.v2.UpdateRecognizerRequest)
       com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UpdateRecognizerRequest.class, com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder.class);
+              com.google.cloud.speech.v2.UpdateRecognizerRequest.class,
+              com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UpdateRecognizerRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -391,9 +438,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
@@ -412,8 +459,11 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UpdateRecognizerRequest buildPartial() {
-      com.google.cloud.speech.v2.UpdateRecognizerRequest result = new com.google.cloud.speech.v2.UpdateRecognizerRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.UpdateRecognizerRequest result =
+          new com.google.cloud.speech.v2.UpdateRecognizerRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -421,14 +471,10 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.UpdateRecognizerRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.recognizer_ = recognizerBuilder_ == null
-            ? recognizer_
-            : recognizerBuilder_.build();
+        result.recognizer_ = recognizerBuilder_ == null ? recognizer_ : recognizerBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -439,38 +485,39 @@ private void buildPartial0(com.google.cloud.speech.v2.UpdateRecognizerRequest re
     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.v2.UpdateRecognizerRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UpdateRecognizerRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.UpdateRecognizerRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -478,7 +525,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UpdateRecognizerRequest other) {
-      if (other == com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance())
+        return this;
       if (other.hasRecognizer()) {
         mergeRecognizer(other.getRecognizer());
       }
@@ -514,31 +562,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getRecognizerFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 32: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getRecognizerFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 32:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -548,49 +596,69 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.speech.v2.Recognizer recognizer_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> recognizerBuilder_;
+            com.google.cloud.speech.v2.Recognizer,
+            com.google.cloud.speech.v2.Recognizer.Builder,
+            com.google.cloud.speech.v2.RecognizerOrBuilder>
+        recognizerBuilder_;
     /**
+     *
+     *
      * 
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the recognizer field is set. */ public boolean hasRecognizer() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The recognizer. */ public com.google.cloud.speech.v2.Recognizer getRecognizer() { if (recognizerBuilder_ == null) { - return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; + return recognizer_ == null + ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() + : recognizer_; } else { return recognizerBuilder_.getMessage(); } } /** + * + * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer value) { if (recognizerBuilder_ == null) { @@ -606,16 +674,19 @@ public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer value) { return this; } /** + * + * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setRecognizer( - com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { + public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { if (recognizerBuilder_ == null) { recognizer_ = builderForValue.build(); } else { @@ -626,19 +697,23 @@ public Builder setRecognizer( return this; } /** + * + * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeRecognizer(com.google.cloud.speech.v2.Recognizer value) { if (recognizerBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - recognizer_ != null && - recognizer_ != com.google.cloud.speech.v2.Recognizer.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && recognizer_ != null + && recognizer_ != com.google.cloud.speech.v2.Recognizer.getDefaultInstance()) { getRecognizerBuilder().mergeFrom(value); } else { recognizer_ = value; @@ -651,13 +726,17 @@ public Builder mergeRecognizer(com.google.cloud.speech.v2.Recognizer value) { return this; } /** + * + * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRecognizer() { bitField0_ = (bitField0_ & ~0x00000001); @@ -670,13 +749,17 @@ public Builder clearRecognizer() { return this; } /** + * + * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.Recognizer.Builder getRecognizerBuilder() { bitField0_ |= 0x00000001; @@ -684,40 +767,52 @@ public com.google.cloud.speech.v2.Recognizer.Builder getRecognizerBuilder() { return getRecognizerFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder() { if (recognizerBuilder_ != null) { return recognizerBuilder_.getMessageOrBuilder(); } else { - return recognizer_ == null ? - com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; + return recognizer_ == null + ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() + : recognizer_; } } /** + * + * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> + com.google.cloud.speech.v2.Recognizer, + com.google.cloud.speech.v2.Recognizer.Builder, + com.google.cloud.speech.v2.RecognizerOrBuilder> getRecognizerFieldBuilder() { if (recognizerBuilder_ == null) { - recognizerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder>( - getRecognizer(), - getParentForChildren(), - isClean()); + recognizerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.Recognizer, + com.google.cloud.speech.v2.Recognizer.Builder, + com.google.cloud.speech.v2.RecognizerOrBuilder>( + getRecognizer(), getParentForChildren(), isClean()); recognizer_ = null; } return recognizerBuilder_; @@ -725,36 +820,49 @@ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder() { 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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
      * 
* * .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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -776,6 +884,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -783,8 +893,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .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();
       } else {
@@ -795,6 +904,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -804,9 +915,9 @@ public Builder setUpdateMask(
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          updateMask_ != null &&
-          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && updateMask_ != null
+            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -819,6 +930,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -837,6 +950,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -850,6 +965,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -861,11 +978,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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -874,27 +994,33 @@ 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_;
     }
 
-    private boolean validateOnly_ ;
+    private boolean validateOnly_;
     /**
+     *
+     *
      * 
      * If set, validate the request and preview the updated Recognizer, but do not
      * actually update it.
      * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -902,29 +1028,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the updated Recognizer, but do not
      * actually update it.
      * 
* * bool validate_only = 4; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the updated Recognizer, but do not
      * actually update it.
      * 
* * bool validate_only = 4; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -933,9 +1065,9 @@ public Builder clearValidateOnly() { 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); } @@ -945,12 +1077,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UpdateRecognizerRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UpdateRecognizerRequest) private static final com.google.cloud.speech.v2.UpdateRecognizerRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UpdateRecognizerRequest(); } @@ -959,27 +1091,27 @@ public static com.google.cloud.speech.v2.UpdateRecognizerRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateRecognizerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateRecognizerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -994,6 +1126,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.UpdateRecognizerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java index 4ee8739be893..b2625dfe5eeb 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java @@ -1,66 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UpdateRecognizerRequestOrBuilder extends +public interface UpdateRecognizerRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UpdateRecognizerRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the recognizer field is set. */ boolean hasRecognizer(); /** + * + * *
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The recognizer. */ com.google.cloud.speech.v2.Recognizer getRecognizer(); /** + * + * *
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder(); /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
@@ -71,12 +109,15 @@ public interface UpdateRecognizerRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * If set, validate the request and preview the updated Recognizer, but do not
    * actually update it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java similarity index 77% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java index 50feb29138ee..d4d3f21f5b70 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Word-specific information for recognized words.
  * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = ""; speakerLabel_ = ""; @@ -26,32 +44,35 @@ private WordInfo() { @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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_WordInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.WordInfo.class, com.google.cloud.speech.v2.WordInfo.Builder.class); + com.google.cloud.speech.v2.WordInfo.class, + com.google.cloud.speech.v2.WordInfo.Builder.class); } public static final int START_OFFSET_FIELD_NUMBER = 1; private com.google.protobuf.Duration startOffset_; /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -62,6 +83,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.protobuf.Duration start_offset = 1; + * * @return Whether the startOffset field is set. */ @java.lang.Override @@ -69,6 +91,8 @@ public boolean hasStartOffset() { return startOffset_ != null; } /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -79,6 +103,7 @@ public boolean hasStartOffset() {
    * 
* * .google.protobuf.Duration start_offset = 1; + * * @return The startOffset. */ @java.lang.Override @@ -86,6 +111,8 @@ public com.google.protobuf.Duration getStartOffset() { return startOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startOffset_; } /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -105,6 +132,8 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
   public static final int END_OFFSET_FIELD_NUMBER = 2;
   private com.google.protobuf.Duration endOffset_;
   /**
+   *
+   *
    * 
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -115,6 +144,7 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
    * 
* * .google.protobuf.Duration end_offset = 2; + * * @return Whether the endOffset field is set. */ @java.lang.Override @@ -122,6 +152,8 @@ public boolean hasEndOffset() { return endOffset_ != null; } /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -132,6 +164,7 @@ public boolean hasEndOffset() {
    * 
* * .google.protobuf.Duration end_offset = 2; + * * @return The endOffset. */ @java.lang.Override @@ -139,6 +172,8 @@ public com.google.protobuf.Duration getEndOffset() { return endOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endOffset_; } /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -156,14 +191,18 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
   }
 
   public static final int WORD_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object word_ = "";
   /**
+   *
+   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The word. */ @java.lang.Override @@ -172,29 +211,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 { @@ -205,6 +244,8 @@ public java.lang.String getWord() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_ = 0F; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -217,6 +258,7 @@ public java.lang.String getWord() {
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -225,9 +267,12 @@ public float getConfidence() { } public static final int SPEAKER_LABEL_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object speakerLabel_ = ""; /** + * + * *
    * A distinct label is assigned for every speaker within the audio. This field
    * specifies which one of those speakers was detected to have spoken this
@@ -237,6 +282,7 @@ public float getConfidence() {
    * 
* * string speaker_label = 6; + * * @return The speakerLabel. */ @java.lang.Override @@ -245,14 +291,15 @@ public java.lang.String getSpeakerLabel() { 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(); speakerLabel_ = s; return s; } } /** + * + * *
    * A distinct label is assigned for every speaker within the audio. This field
    * specifies which one of those speakers was detected to have spoken this
@@ -262,16 +309,15 @@ public java.lang.String getSpeakerLabel() {
    * 
* * string speaker_label = 6; + * * @return The bytes for speakerLabel. */ @java.lang.Override - public com.google.protobuf.ByteString - getSpeakerLabelBytes() { + public com.google.protobuf.ByteString getSpeakerLabelBytes() { java.lang.Object ref = speakerLabel_; 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); speakerLabel_ = b; return b; } else { @@ -280,6 +326,7 @@ public java.lang.String getSpeakerLabel() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -291,8 +338,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 (startOffset_ != null) { output.writeMessage(1, getStartOffset()); } @@ -318,19 +364,16 @@ public int getSerializedSize() { size = 0; if (startOffset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartOffset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartOffset()); } if (endOffset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndOffset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndOffset()); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(speakerLabel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, speakerLabel_); @@ -343,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.v2.WordInfo)) { return super.equals(obj); @@ -352,21 +395,16 @@ public boolean equals(final java.lang.Object obj) { if (hasStartOffset() != other.hasStartOffset()) return false; if (hasStartOffset()) { - if (!getStartOffset() - .equals(other.getStartOffset())) return false; + if (!getStartOffset().equals(other.getStartOffset())) return false; } if (hasEndOffset() != other.hasEndOffset()) return false; if (hasEndOffset()) { - if (!getEndOffset() - .equals(other.getEndOffset())) return false; + if (!getEndOffset().equals(other.getEndOffset())) 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 (!getSpeakerLabel() - .equals(other.getSpeakerLabel())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + if (!getSpeakerLabel().equals(other.getSpeakerLabel())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -389,8 +427,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_LABEL_FIELD_NUMBER; hash = (53 * hash) + getSpeakerLabel().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -398,130 +435,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.WordInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.WordInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.WordInfo parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.speech.v2.WordInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.WordInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.WordInfo) com.google.cloud.speech.v2.WordInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_WordInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.WordInfo.class, com.google.cloud.speech.v2.WordInfo.Builder.class); + com.google.cloud.speech.v2.WordInfo.class, + com.google.cloud.speech.v2.WordInfo.Builder.class); } // Construct using com.google.cloud.speech.v2.WordInfo.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -543,9 +585,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_WordInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_WordInfo_descriptor; } @java.lang.Override @@ -565,7 +607,9 @@ public com.google.cloud.speech.v2.WordInfo build() { @java.lang.Override public com.google.cloud.speech.v2.WordInfo buildPartial() { com.google.cloud.speech.v2.WordInfo result = new com.google.cloud.speech.v2.WordInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -573,14 +617,11 @@ public com.google.cloud.speech.v2.WordInfo buildPartial() { private void buildPartial0(com.google.cloud.speech.v2.WordInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startOffset_ = startOffsetBuilder_ == null - ? startOffset_ - : startOffsetBuilder_.build(); + result.startOffset_ = + startOffsetBuilder_ == null ? startOffset_ : startOffsetBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endOffset_ = endOffsetBuilder_ == null - ? endOffset_ - : endOffsetBuilder_.build(); + result.endOffset_ = endOffsetBuilder_ == null ? endOffset_ : endOffsetBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.word_ = word_; @@ -597,38 +638,39 @@ private void buildPartial0(com.google.cloud.speech.v2.WordInfo result) { 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.v2.WordInfo) { - return mergeFrom((com.google.cloud.speech.v2.WordInfo)other); + return mergeFrom((com.google.cloud.speech.v2.WordInfo) other); } else { super.mergeFrom(other); return this; @@ -682,41 +724,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStartOffsetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndOffsetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - word_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 37: { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000008; - break; - } // case 37 - case 50: { - speakerLabel_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStartOffsetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndOffsetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + word_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 37: + { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + case 50: + { + speakerLabel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -726,12 +770,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Duration startOffset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> startOffsetBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + startOffsetBuilder_; /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -742,12 +792,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_offset = 1; + * * @return Whether the startOffset field is set. */ public boolean hasStartOffset() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -758,16 +811,21 @@ public boolean hasStartOffset() {
      * 
* * .google.protobuf.Duration start_offset = 1; + * * @return The startOffset. */ public com.google.protobuf.Duration getStartOffset() { if (startOffsetBuilder_ == null) { - return startOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startOffset_; + return startOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : startOffset_; } else { return startOffsetBuilder_.getMessage(); } } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -793,6 +851,8 @@ public Builder setStartOffset(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.
@@ -804,8 +864,7 @@ public Builder setStartOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration start_offset = 1;
      */
-    public Builder setStartOffset(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setStartOffset(com.google.protobuf.Duration.Builder builderForValue) {
       if (startOffsetBuilder_ == null) {
         startOffset_ = builderForValue.build();
       } else {
@@ -816,6 +875,8 @@ public Builder setStartOffset(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -829,9 +890,9 @@ public Builder setStartOffset(
      */
     public Builder mergeStartOffset(com.google.protobuf.Duration value) {
       if (startOffsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          startOffset_ != null &&
-          startOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && startOffset_ != null
+            && startOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getStartOffsetBuilder().mergeFrom(value);
         } else {
           startOffset_ = value;
@@ -844,6 +905,8 @@ public Builder mergeStartOffset(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.
@@ -866,6 +929,8 @@ public Builder clearStartOffset() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -883,6 +948,8 @@ public com.google.protobuf.Duration.Builder getStartOffsetBuilder() {
       return getStartOffsetFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -898,11 +965,14 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
       if (startOffsetBuilder_ != null) {
         return startOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return startOffset_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : startOffset_;
+        return startOffset_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : startOffset_;
       }
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -915,14 +985,17 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
      * .google.protobuf.Duration start_offset = 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>
         getStartOffsetFieldBuilder() {
       if (startOffsetBuilder_ == null) {
-        startOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getStartOffset(),
-                getParentForChildren(),
-                isClean());
+        startOffsetBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getStartOffset(), getParentForChildren(), isClean());
         startOffset_ = null;
       }
       return startOffsetBuilder_;
@@ -930,8 +1003,13 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
 
     private com.google.protobuf.Duration endOffset_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> endOffsetBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        endOffsetBuilder_;
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -942,12 +1020,15 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
      * 
* * .google.protobuf.Duration end_offset = 2; + * * @return Whether the endOffset field is set. */ public boolean hasEndOffset() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -958,6 +1039,7 @@ public boolean hasEndOffset() {
      * 
* * .google.protobuf.Duration end_offset = 2; + * * @return The endOffset. */ public com.google.protobuf.Duration getEndOffset() { @@ -968,6 +1050,8 @@ public com.google.protobuf.Duration getEndOffset() { } } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -993,6 +1077,8 @@ public Builder setEndOffset(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.
@@ -1004,8 +1090,7 @@ public Builder setEndOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration end_offset = 2;
      */
-    public Builder setEndOffset(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setEndOffset(com.google.protobuf.Duration.Builder builderForValue) {
       if (endOffsetBuilder_ == null) {
         endOffset_ = builderForValue.build();
       } else {
@@ -1016,6 +1101,8 @@ public Builder setEndOffset(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1029,9 +1116,9 @@ public Builder setEndOffset(
      */
     public Builder mergeEndOffset(com.google.protobuf.Duration value) {
       if (endOffsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          endOffset_ != null &&
-          endOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && endOffset_ != null
+            && endOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getEndOffsetBuilder().mergeFrom(value);
         } else {
           endOffset_ = value;
@@ -1044,6 +1131,8 @@ public Builder mergeEndOffset(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.
@@ -1066,6 +1155,8 @@ public Builder clearEndOffset() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1083,6 +1174,8 @@ public com.google.protobuf.Duration.Builder getEndOffsetBuilder() {
       return getEndOffsetFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1098,11 +1191,12 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
       if (endOffsetBuilder_ != null) {
         return endOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return endOffset_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : endOffset_;
+        return endOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endOffset_;
       }
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1115,14 +1209,17 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
      * .google.protobuf.Duration end_offset = 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>
         getEndOffsetFieldBuilder() {
       if (endOffsetBuilder_ == null) {
-        endOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getEndOffset(),
-                getParentForChildren(),
-                isClean());
+        endOffsetBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getEndOffset(), getParentForChildren(), isClean());
         endOffset_ = null;
       }
       return endOffsetBuilder_;
@@ -1130,18 +1227,20 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
 
     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; @@ -1150,20 +1249,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 { @@ -1171,28 +1271,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setWord(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } word_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @return This builder for chaining. */ public Builder clearWord() { @@ -1202,17 +1309,21 @@ public Builder clearWord() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setWordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); word_ = value; bitField0_ |= 0x00000004; @@ -1220,8 +1331,10 @@ public Builder setWordBytes( 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
@@ -1234,6 +1347,7 @@ public Builder setWordBytes(
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1241,6 +1355,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
@@ -1253,17 +1369,20 @@ public float getConfidence() {
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000008; 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
@@ -1276,6 +1395,7 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -1287,6 +1407,8 @@ public Builder clearConfidence() { private java.lang.Object speakerLabel_ = ""; /** + * + * *
      * A distinct label is assigned for every speaker within the audio. This field
      * specifies which one of those speakers was detected to have spoken this
@@ -1296,13 +1418,13 @@ public Builder clearConfidence() {
      * 
* * string speaker_label = 6; + * * @return The speakerLabel. */ public java.lang.String getSpeakerLabel() { java.lang.Object ref = speakerLabel_; 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(); speakerLabel_ = s; return s; @@ -1311,6 +1433,8 @@ public java.lang.String getSpeakerLabel() { } } /** + * + * *
      * A distinct label is assigned for every speaker within the audio. This field
      * specifies which one of those speakers was detected to have spoken this
@@ -1320,15 +1444,14 @@ public java.lang.String getSpeakerLabel() {
      * 
* * string speaker_label = 6; + * * @return The bytes for speakerLabel. */ - public com.google.protobuf.ByteString - getSpeakerLabelBytes() { + public com.google.protobuf.ByteString getSpeakerLabelBytes() { java.lang.Object ref = speakerLabel_; 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); speakerLabel_ = b; return b; } else { @@ -1336,6 +1459,8 @@ public java.lang.String getSpeakerLabel() { } } /** + * + * *
      * A distinct label is assigned for every speaker within the audio. This field
      * specifies which one of those speakers was detected to have spoken this
@@ -1345,18 +1470,22 @@ public java.lang.String getSpeakerLabel() {
      * 
* * string speaker_label = 6; + * * @param value The speakerLabel to set. * @return This builder for chaining. */ - public Builder setSpeakerLabel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpeakerLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } speakerLabel_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * A distinct label is assigned for every speaker within the audio. This field
      * specifies which one of those speakers was detected to have spoken this
@@ -1366,6 +1495,7 @@ public Builder setSpeakerLabel(
      * 
* * string speaker_label = 6; + * * @return This builder for chaining. */ public Builder clearSpeakerLabel() { @@ -1375,6 +1505,8 @@ public Builder clearSpeakerLabel() { return this; } /** + * + * *
      * A distinct label is assigned for every speaker within the audio. This field
      * specifies which one of those speakers was detected to have spoken this
@@ -1384,21 +1516,23 @@ public Builder clearSpeakerLabel() {
      * 
* * string speaker_label = 6; + * * @param value The bytes for speakerLabel to set. * @return This builder for chaining. */ - public Builder setSpeakerLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpeakerLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); speakerLabel_ = value; bitField0_ |= 0x00000010; 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); } @@ -1408,12 +1542,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.WordInfo) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.WordInfo) private static final com.google.cloud.speech.v2.WordInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.WordInfo(); } @@ -1422,27 +1556,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1457,6 +1591,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java similarity index 86% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java index c58cbf30568e..c6c183016e20 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface WordInfoOrBuilder extends +public interface WordInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.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_offset = 1; + * * @return Whether the startOffset field is set. */ boolean hasStartOffset(); /** + * + * *
    * 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_offset = 1; + * * @return The startOffset. */ com.google.protobuf.Duration getStartOffset(); /** + * + * *
    * 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 getStartOffsetOrBuilder();
 
   /**
+   *
+   *
    * 
    * 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_offset = 2; + * * @return Whether the endOffset field is set. */ boolean hasEndOffset(); /** + * + * *
    * 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_offset = 2; + * * @return The endOffset. */ com.google.protobuf.Duration getEndOffset(); /** + * + * *
    * 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 getEndOffsetOrBuilder();
 
   /**
+   *
+   *
    * 
    * 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
@@ -124,11 +163,14 @@ public interface WordInfoOrBuilder extends
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); /** + * + * *
    * A distinct label is assigned for every speaker within the audio. This field
    * specifies which one of those speakers was detected to have spoken this
@@ -138,10 +180,13 @@ public interface WordInfoOrBuilder extends
    * 
* * string speaker_label = 6; + * * @return The speakerLabel. */ java.lang.String getSpeakerLabel(); /** + * + * *
    * A distinct label is assigned for every speaker within the audio. This field
    * specifies which one of those speakers was detected to have spoken this
@@ -151,8 +196,8 @@ public interface WordInfoOrBuilder extends
    * 
* * string speaker_label = 6; + * * @return The bytes for speakerLabel. */ - com.google.protobuf.ByteString - getSpeakerLabelBytes(); + com.google.protobuf.ByteString getSpeakerLabelBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto b/java-speech/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto similarity index 100% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto rename to java-speech/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetEndpoint.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetEndpoint.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/AsyncCreateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/AsyncCreateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/AsyncCreateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/AsyncCreateCustomClass.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClass.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/AsyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/AsyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/AsyncCreatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/AsyncCreatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClass.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/AsyncDeletePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/AsyncDeletePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/AsyncDeletePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/AsyncDeletePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetString.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetString.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/AsyncGetCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/AsyncGetCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/AsyncGetCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/AsyncGetCustomClass.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClass.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassString.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassString.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/AsyncGetPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/AsyncGetPhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/AsyncGetPhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/AsyncGetPhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetString.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetString.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClasses.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClasses.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClasses.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClasses.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClasses.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClasses.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClasses.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClasses.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesString.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesString.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSetPaged.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSetPaged.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSetPaged.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSetPaged.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetLocationname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetLocationname.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetLocationname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetLocationname.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetString.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetString.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClass.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetEndpoint.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetEndpoint.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognize.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognize.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/AsyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/AsyncRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/AsyncRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/AsyncRecognize.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognize.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/streamingrecognize/AsyncStreamingRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/streamingrecognize/AsyncStreamingRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/streamingrecognize/AsyncStreamingRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/streamingrecognize/AsyncStreamingRecognize.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetEndpoint.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetEndpoint.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/AsyncCreateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/AsyncCreateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/AsyncCreateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/AsyncCreateCustomClass.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClass.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/AsyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/AsyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/AsyncCreatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/AsyncCreatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClass.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/AsyncDeletePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/AsyncDeletePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/AsyncDeletePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/AsyncDeletePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetString.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetString.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/AsyncGetCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/AsyncGetCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/AsyncGetCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/AsyncGetCustomClass.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClass.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassString.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassString.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/AsyncGetPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/AsyncGetPhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/AsyncGetPhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/AsyncGetPhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetString.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetString.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClasses.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClasses.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClasses.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClasses.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClasses.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClasses.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClasses.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClasses.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesString.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesString.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSetPaged.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSetPaged.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSetPaged.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSetPaged.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetLocationname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetLocationname.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetLocationname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetLocationname.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetString.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetString.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClass.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetEndpoint.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetEndpoint.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognize.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognize.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/AsyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/AsyncRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/AsyncRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/AsyncRecognize.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognize.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/streamingrecognize/AsyncStreamingRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/streamingrecognize/AsyncStreamingRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/streamingrecognize/AsyncStreamingRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/streamingrecognize/AsyncStreamingRecognize.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognize.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognizeLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognizeLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognizeLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognizeLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognize.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeRecognizernameRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeRecognizernameRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeRecognizernameRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeRecognizernameRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeStringRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeStringRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeStringRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeStringRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetEndpoint.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetEndpoint.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClass.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClassLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClassLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClassLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClassLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClass.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassStringCustomclassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassStringCustomclassString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassStringCustomclassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassStringCustomclassString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSetLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSetLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSetLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSetLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizerLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizerLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizerLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizerLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerLocationnameRecognizerString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerLocationnameRecognizerString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerLocationnameRecognizerString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerLocationnameRecognizerString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerStringRecognizerString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerStringRecognizerString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerStringRecognizerString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerStringRecognizerString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClass.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClassLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClassLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClassLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClassLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClass.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassCustomclassname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassCustomclassname.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassCustomclassname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassCustomclassname.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSet.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSetLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSetLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSetLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSetLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSet.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetPhrasesetname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetPhrasesetname.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetPhrasesetname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetPhrasesetname.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizerLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizerLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizerLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizerLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerRecognizername.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerRecognizername.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerRecognizername.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerRecognizername.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/AsyncGetConfig.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/AsyncGetConfig.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/AsyncGetConfig.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/AsyncGetConfig.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfig.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfig.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfig.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfig.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigConfigname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigConfigname.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigConfigname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigConfigname.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/AsyncGetCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/AsyncGetCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/AsyncGetCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/AsyncGetCustomClass.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClass.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassCustomclassname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassCustomclassname.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassCustomclassname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassCustomclassname.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/AsyncGetPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/AsyncGetPhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/AsyncGetPhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/AsyncGetPhraseSet.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSet.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetPhrasesetname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetPhrasesetname.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetPhrasesetname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetPhrasesetname.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/AsyncGetRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/AsyncGetRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/AsyncGetRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/AsyncGetRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerRecognizername.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerRecognizername.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerRecognizername.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerRecognizername.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClasses.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClasses.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClasses.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClasses.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClassesPaged.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClassesPaged.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClassesPaged.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClassesPaged.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClasses.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClasses.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClasses.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClasses.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesLocationname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesLocationname.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesLocationname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesLocationname.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSets.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSets.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSets.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSets.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSetsPaged.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSetsPaged.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSetsPaged.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSetsPaged.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSets.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSets.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSets.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSets.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsLocationname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsLocationname.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsLocationname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsLocationname.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizers.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizers.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizers.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizers.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizersPaged.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizersPaged.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizersPaged.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizersPaged.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizers.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizers.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizers.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizers.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersLocationname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersLocationname.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersLocationname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersLocationname.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/AsyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/AsyncRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/AsyncRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/AsyncRecognize.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognize.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskBytestring.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskBytestring.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskBytestring.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskBytestring.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskBytestring.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskBytestring.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskBytestring.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskBytestring.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/streamingrecognize/AsyncStreamingRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/streamingrecognize/AsyncStreamingRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/streamingrecognize/AsyncStreamingRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/streamingrecognize/AsyncStreamingRecognize.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClass.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClassLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClassLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClassLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClassLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClass.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassCustomclassname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassCustomclassname.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassCustomclassname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassCustomclassname.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSet.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSetLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSetLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSetLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSetLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSet.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetPhrasesetname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetPhrasesetname.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetPhrasesetname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetPhrasesetname.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizerLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizerLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizerLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizerLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerRecognizername.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerRecognizername.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerRecognizername.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerRecognizername.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/AsyncUpdateConfig.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/AsyncUpdateConfig.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/AsyncUpdateConfig.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/AsyncUpdateConfig.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfig.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfig.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfig.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfig.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfigConfigFieldmask.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfigConfigFieldmask.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfigConfigFieldmask.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfigConfigFieldmask.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClass.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClassLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClassLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClassLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClassLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClass.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSetLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSetLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSetLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSetLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizerLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizerLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizerLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizerLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizerRecognizerFieldmask.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizerRecognizerFieldmask.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizerRecognizerFieldmask.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizerRecognizerFieldmask.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speechsettings/getrecognizer/SyncGetRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speechsettings/getrecognizer/SyncGetRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speechsettings/getrecognizer/SyncGetRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speechsettings/getrecognizer/SyncGetRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/stub/speechstubsettings/getrecognizer/SyncGetRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/stub/speechstubsettings/getrecognizer/SyncGetRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/stub/speechstubsettings/getrecognizer/SyncGetRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/stub/speechstubsettings/getrecognizer/SyncGetRecognizer.java diff --git a/owl-bot-staging/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java b/owl-bot-staging/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java deleted file mode 100644 index b536dba14db7..000000000000 --- a/owl-bot-staging/java-speech/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/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java b/owl-bot-staging/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java deleted file mode 100644 index 46b71822a661..000000000000 --- a/owl-bot-staging/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java deleted file mode 100644 index 6e63a397ad6a..000000000000 --- a/owl-bot-staging/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java deleted file mode 100644 index 61476aadbf58..000000000000 --- a/owl-bot-staging/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java deleted file mode 100644 index 5811af70356e..000000000000 --- a/owl-bot-staging/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java deleted file mode 100644 index 314543722847..000000000000 --- a/owl-bot-staging/java-speech/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\"\355\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\022L\n\026speech_adaptation_info\030\007 " + - "\001(\0132,.google.cloud.speech.v1.SpeechAdapt" + - "ationInfo\022\022\n\nrequest_id\030\010 \001(\003\"\351\002\n\034LongRu" + - "nningRecognizeResponse\022@\n\007results\030\002 \003(\0132" + - "/.google.cloud.speech.v1.SpeechRecogniti" + - "onResult\0224\n\021total_billed_time\030\003 \001(\0132\031.go" + - "ogle.protobuf.Duration\022E\n\routput_config\030" + - "\006 \001(\0132..google.cloud.speech.v1.Transcrip" + - "tOutputConfig\022(\n\014output_error\030\007 \001(\0132\022.go" + - "ogle.rpc.Status\022L\n\026speech_adaptation_inf" + - "o\030\010 \001(\0132,.google.cloud.speech.v1.SpeechA" + - "daptationInfo\022\022\n\nrequest_id\030\t \001(\003\"\260\001\n\034Lo" + - "ngRunningRecognizeMetadata\022\030\n\020progress_p" + - "ercent\030\001 \001(\005\022.\n\nstart_time\030\002 \001(\0132\032.googl" + - "e.protobuf.Timestamp\0224\n\020last_update_time" + - "\030\003 \001(\0132\032.google.protobuf.Timestamp\022\020\n\003ur" + - "i\030\004 \001(\tB\003\340A\003\"\311\003\n\032StreamingRecognizeRespo" + - "nse\022!\n\005error\030\001 \001(\0132\022.google.rpc.Status\022C" + - "\n\007results\030\002 \003(\01322.google.cloud.speech.v1" + - ".StreamingRecognitionResult\022]\n\021speech_ev" + - "ent_type\030\004 \001(\0162B.google.cloud.speech.v1." + - "StreamingRecognizeResponse.SpeechEventTy" + - "pe\0224\n\021total_billed_time\030\005 \001(\0132\031.google.p" + - "rotobuf.Duration\022L\n\026speech_adaptation_in" + - "fo\030\t \001(\0132,.google.cloud.speech.v1.Speech" + - "AdaptationInfo\022\022\n\nrequest_id\030\n \001(\003\"L\n\017Sp" + - "eechEventType\022\034\n\030SPEECH_EVENT_UNSPECIFIE" + - "D\020\000\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\362\001\n\032Str" + - "eamingRecognitionResult\022J\n\014alternatives\030" + - "\001 \003(\01324.google.cloud.speech.v1.SpeechRec" + - "ognitionAlternative\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\"\312\001" + - "\n\027SpeechRecognitionResult\022J\n\014alternative" + - "s\030\001 \003(\01324.google.cloud.speech.v1.SpeechR" + - "ecognitionAlternative\022\023\n\013channel_tag\030\002 \001" + - "(\005\0222\n\017result_end_time\030\004 \001(\0132\031.google.pro" + - "tobuf.Duration\022\032\n\rlanguage_code\030\005 \001(\tB\003\340" + - "A\003\"w\n\034SpeechRecognitionAlternative\022\022\n\ntr" + - "anscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022/\n\005wo" + - "rds\030\003 \003(\0132 .google.cloud.speech.v1.WordI" + - "nfo\"\242\001\n\010WordInfo\022-\n\nstart_time\030\001 \001(\0132\031.g" + - "oogle.protobuf.Duration\022+\n\010end_time\030\002 \001(" + - "\0132\031.google.protobuf.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\003\"K\n\024SpeechAdaptationInfo\022\032\n\022adap" + - "tation_timeout\030\001 \001(\010\022\027\n\017timeout_message\030" + - "\004 \001(\t2\321\004\n\006Speech\022\220\001\n\tRecognize\022(.google." + - "cloud.speech.v1.RecognizeRequest\032).googl" + - "e.cloud.speech.v1.RecognizeResponse\".\202\323\344" + - "\223\002\031\"\024/v1/speech:recognize:\001*\332A\014config,au" + - "dio\022\344\001\n\024LongRunningRecognize\0223.google.cl" + - "oud.speech.v1.LongRunningRecognizeReques" + - "t\032\035.google.longrunning.Operation\"x\202\323\344\223\002$" + - "\"\037/v1/speech:longrunningrecognize:\001*\332A\014c" + - "onfig,audio\312A<\n\034LongRunningRecognizeResp" + - "onse\022\034LongRunningRecognizeMetadata\022\201\001\n\022S" + - "treamingRecognize\0221.google.cloud.speech." + - "v1.StreamingRecognizeRequest\0322.google.cl" + - "oud.speech.v1.StreamingRecognizeResponse" + - "\"\000(\0010\001\032I\312A\025speech.googleapis.com\322A.https" + - "://www.googleapis.com/auth/cloud-platfor" + - "mBr\n\032com.google.cloud.speech.v1B\013SpeechP" + - "rotoP\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/java-speech/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java b/owl-bot-staging/java-speech/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java deleted file mode 100644 index 5879fdc4465f..000000000000 --- a/owl-bot-staging/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java deleted file mode 100644 index 246c425ca97f..000000000000 --- a/owl-bot-staging/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java deleted file mode 100644 index 721b97fda97f..000000000000 --- a/owl-bot-staging/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java deleted file mode 100644 index 2e594dfddc8f..000000000000 --- a/owl-bot-staging/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java deleted file mode 100644 index 0322b2c20ba1..000000000000 --- a/owl-bot-staging/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java deleted file mode 100644 index e04be912f63d..000000000000 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java +++ /dev/null @@ -1,441 +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; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_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\"\373\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\022S\n\026" + - "speech_adaptation_info\030\007 \001(\01323.google.cl" + - "oud.speech.v1p1beta1.SpeechAdaptationInf" + - "o\022\022\n\nrequest_id\030\010 \001(\003\"\376\002\n\034LongRunningRec" + - "ognizeResponse\022G\n\007results\030\002 \003(\01326.google" + - ".cloud.speech.v1p1beta1.SpeechRecognitio" + - "nResult\0224\n\021total_billed_time\030\003 \001(\0132\031.goo" + - "gle.protobuf.Duration\022L\n\routput_config\030\006" + - " \001(\01325.google.cloud.speech.v1p1beta1.Tra" + - "nscriptOutputConfig\022(\n\014output_error\030\007 \001(" + - "\0132\022.google.rpc.Status\022S\n\026speech_adaptati" + - "on_info\030\010 \001(\01323.google.cloud.speech.v1p1" + - "beta1.SpeechAdaptationInfo\022\022\n\nrequest_id" + - "\030\t \001(\003\"\203\002\n\034LongRunningRecognizeMetadata\022" + - "\030\n\020progress_percent\030\001 \001(\005\022.\n\nstart_time\030" + - "\002 \001(\0132\032.google.protobuf.Timestamp\0224\n\020las" + - "t_update_time\030\003 \001(\0132\032.google.protobuf.Ti" + - "mestamp\022\020\n\003uri\030\004 \001(\tB\003\340A\003\022Q\n\routput_conf" + - "ig\030\005 \001(\01325.google.cloud.speech.v1p1beta1" + - ".TranscriptOutputConfigB\003\340A\003\"\336\003\n\032Streami" + - "ngRecognizeResponse\022!\n\005error\030\001 \001(\0132\022.goo" + - "gle.rpc.Status\022J\n\007results\030\002 \003(\01329.google" + - ".cloud.speech.v1p1beta1.StreamingRecogni" + - "tionResult\022d\n\021speech_event_type\030\004 \001(\0162I." + - "google.cloud.speech.v1p1beta1.StreamingR" + - "ecognizeResponse.SpeechEventType\0224\n\021tota" + - "l_billed_time\030\005 \001(\0132\031.google.protobuf.Du" + - "ration\022S\n\026speech_adaptation_info\030\t \001(\01323" + - ".google.cloud.speech.v1p1beta1.SpeechAda" + - "ptationInfo\022\022\n\nrequest_id\030\n \001(\003\"L\n\017Speec" + - "hEventType\022\034\n\030SPEECH_EVENT_UNSPECIFIED\020\000" + - "\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\371\001\n\032Stream" + - "ingRecognitionResult\022Q\n\014alternatives\030\001 \003" + - "(\0132;.google.cloud.speech.v1p1beta1.Speec" + - "hRecognitionAlternative\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\013chan" + - "nel_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A" + - "\003\"\321\001\n\027SpeechRecognitionResult\022Q\n\014alterna" + - "tives\030\001 \003(\0132;.google.cloud.speech.v1p1be" + - "ta1.SpeechRecognitionAlternative\022\023\n\013chan" + - "nel_tag\030\002 \001(\005\0222\n\017result_end_time\030\004 \001(\0132\031" + - ".google.protobuf.Duration\022\032\n\rlanguage_co" + - "de\030\005 \001(\tB\003\340A\003\"~\n\034SpeechRecognitionAltern" + - "ative\022\022\n\ntranscript\030\001 \001(\t\022\022\n\nconfidence\030" + - "\002 \001(\002\0226\n\005words\030\003 \003(\0132\'.google.cloud.spee" + - "ch.v1p1beta1.WordInfo\"\242\001\n\010WordInfo\022-\n\nst" + - "art_time\030\001 \001(\0132\031.google.protobuf.Duratio" + - "n\022+\n\010end_time\030\002 \001(\0132\031.google.protobuf.Du" + - "ration\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\003\"K\n\024SpeechAdap" + - "tationInfo\022\032\n\022adaptation_timeout\030\001 \001(\010\022\027" + - "\n\017timeout_message\030\004 \001(\t2\202\005\n\006Speech\022\245\001\n\tR" + - "ecognize\022/.google.cloud.speech.v1p1beta1" + - ".RecognizeRequest\0320.google.cloud.speech." + - "v1p1beta1.RecognizeResponse\"5\202\323\344\223\002 \"\033/v1" + - "p1beta1/speech:recognize:\001*\332A\014config,aud" + - "io\022\362\001\n\024LongRunningRecognize\022:.google.clo" + - "ud.speech.v1p1beta1.LongRunningRecognize" + - "Request\032\035.google.longrunning.Operation\"\177" + - "\202\323\344\223\002+\"&/v1p1beta1/speech:longrunningrec" + - "ognize:\001*\332A\014config,audio\312A<\n\034LongRunning" + - "RecognizeResponse\022\034LongRunningRecognizeM" + - "etadata\022\217\001\n\022StreamingRecognize\0228.google." + - "cloud.speech.v1p1beta1.StreamingRecogniz" + - "eRequest\0329.google.cloud.speech.v1p1beta1" + - ".StreamingRecognizeResponse\"\000(\0010\001\032I\312A\025sp" + - "eech.googleapis.com\322A.https://www.google" + - "apis.com/auth/cloud-platformB\200\001\n!com.goo" + - "gle.cloud.speech.v1p1beta1B\013SpeechProtoP" + - "\001ZCgoogle.golang.org/genproto/googleapis" + - "/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", "SpeechAdaptationInfo", "RequestId", }); - 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", "SpeechAdaptationInfo", "RequestId", }); - 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", "SpeechAdaptationInfo", "RequestId", }); - 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", }); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor, - new java.lang.String[] { "AdaptationTimeout", "TimeoutMessage", }); - 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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java deleted file mode 100644 index 6e3a93b944e8..000000000000 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java +++ /dev/null @@ -1,162 +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_SpeechAdaptation_ABNFGrammar_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_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}\"\322\002\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\022" + - "Q\n\014abnf_grammar\030\004 \001(\0132;.google.cloud.spe" + - "ech.v1p1beta1.SpeechAdaptation.ABNFGramm" + - "ar\032#\n\013ABNFGrammar\022\024\n\014abnf_strings\030\001 \003(\t\"" + - "\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", "AbnfGrammar", }); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor = - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor, - new java.lang.String[] { "AbnfStrings", }); - 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/java-speech/v2/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java b/owl-bot-staging/java-speech/v2/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java deleted file mode 100644 index 9d4c9c88b68d..000000000000 --- a/owl-bot-staging/java-speech/v2/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java +++ /dev/null @@ -1,2207 +0,0 @@ -package com.google.cloud.speech.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Enables speech transcription and resource management.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v2/cloud_speech.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SpeechGrpc { - - private SpeechGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.speech.v2.Speech"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateRecognizerMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRecognizer", - requestType = com.google.cloud.speech.v2.CreateRecognizerRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateRecognizerMethod() { - io.grpc.MethodDescriptor getCreateRecognizerMethod; - if ((getCreateRecognizerMethod = SpeechGrpc.getCreateRecognizerMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getCreateRecognizerMethod = SpeechGrpc.getCreateRecognizerMethod) == null) { - SpeechGrpc.getCreateRecognizerMethod = getCreateRecognizerMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRecognizer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreateRecognizer")) - .build(); - } - } - } - return getCreateRecognizerMethod; - } - - private static volatile io.grpc.MethodDescriptor getListRecognizersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRecognizers", - requestType = com.google.cloud.speech.v2.ListRecognizersRequest.class, - responseType = com.google.cloud.speech.v2.ListRecognizersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListRecognizersMethod() { - io.grpc.MethodDescriptor getListRecognizersMethod; - if ((getListRecognizersMethod = SpeechGrpc.getListRecognizersMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getListRecognizersMethod = SpeechGrpc.getListRecognizersMethod) == null) { - SpeechGrpc.getListRecognizersMethod = getListRecognizersMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRecognizers")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.ListRecognizersRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.ListRecognizersResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListRecognizers")) - .build(); - } - } - } - return getListRecognizersMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetRecognizerMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRecognizer", - requestType = com.google.cloud.speech.v2.GetRecognizerRequest.class, - responseType = com.google.cloud.speech.v2.Recognizer.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetRecognizerMethod() { - io.grpc.MethodDescriptor getGetRecognizerMethod; - if ((getGetRecognizerMethod = SpeechGrpc.getGetRecognizerMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getGetRecognizerMethod = SpeechGrpc.getGetRecognizerMethod) == null) { - SpeechGrpc.getGetRecognizerMethod = getGetRecognizerMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRecognizer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.GetRecognizerRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.Recognizer.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetRecognizer")) - .build(); - } - } - } - return getGetRecognizerMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateRecognizerMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateRecognizer", - requestType = com.google.cloud.speech.v2.UpdateRecognizerRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateRecognizerMethod() { - io.grpc.MethodDescriptor getUpdateRecognizerMethod; - if ((getUpdateRecognizerMethod = SpeechGrpc.getUpdateRecognizerMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUpdateRecognizerMethod = SpeechGrpc.getUpdateRecognizerMethod) == null) { - SpeechGrpc.getUpdateRecognizerMethod = getUpdateRecognizerMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRecognizer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdateRecognizer")) - .build(); - } - } - } - return getUpdateRecognizerMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteRecognizerMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRecognizer", - requestType = com.google.cloud.speech.v2.DeleteRecognizerRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteRecognizerMethod() { - io.grpc.MethodDescriptor getDeleteRecognizerMethod; - if ((getDeleteRecognizerMethod = SpeechGrpc.getDeleteRecognizerMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getDeleteRecognizerMethod = SpeechGrpc.getDeleteRecognizerMethod) == null) { - SpeechGrpc.getDeleteRecognizerMethod = getDeleteRecognizerMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRecognizer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeleteRecognizer")) - .build(); - } - } - } - return getDeleteRecognizerMethod; - } - - private static volatile io.grpc.MethodDescriptor getUndeleteRecognizerMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UndeleteRecognizer", - requestType = com.google.cloud.speech.v2.UndeleteRecognizerRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUndeleteRecognizerMethod() { - io.grpc.MethodDescriptor getUndeleteRecognizerMethod; - if ((getUndeleteRecognizerMethod = SpeechGrpc.getUndeleteRecognizerMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUndeleteRecognizerMethod = SpeechGrpc.getUndeleteRecognizerMethod) == null) { - SpeechGrpc.getUndeleteRecognizerMethod = getUndeleteRecognizerMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeleteRecognizer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UndeleteRecognizer")) - .build(); - } - } - } - return getUndeleteRecognizerMethod; - } - - private static volatile io.grpc.MethodDescriptor getRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Recognize", - requestType = com.google.cloud.speech.v2.RecognizeRequest.class, - responseType = com.google.cloud.speech.v2.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.v2.RecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.RecognizeResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) - .build(); - } - } - } - return getRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamingRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", - requestType = com.google.cloud.speech.v2.StreamingRecognizeRequest.class, - responseType = com.google.cloud.speech.v2.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.v2.StreamingRecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.StreamingRecognizeResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) - .build(); - } - } - } - return getStreamingRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor getBatchRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchRecognize", - requestType = com.google.cloud.speech.v2.BatchRecognizeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBatchRecognizeMethod() { - io.grpc.MethodDescriptor getBatchRecognizeMethod; - if ((getBatchRecognizeMethod = SpeechGrpc.getBatchRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getBatchRecognizeMethod = SpeechGrpc.getBatchRecognizeMethod) == null) { - SpeechGrpc.getBatchRecognizeMethod = getBatchRecognizeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("BatchRecognize")) - .build(); - } - } - } - return getBatchRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConfig", - requestType = com.google.cloud.speech.v2.GetConfigRequest.class, - responseType = com.google.cloud.speech.v2.Config.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetConfigMethod() { - io.grpc.MethodDescriptor getGetConfigMethod; - if ((getGetConfigMethod = SpeechGrpc.getGetConfigMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getGetConfigMethod = SpeechGrpc.getGetConfigMethod) == null) { - SpeechGrpc.getGetConfigMethod = getGetConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.GetConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.Config.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetConfig")) - .build(); - } - } - } - return getGetConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConfig", - requestType = com.google.cloud.speech.v2.UpdateConfigRequest.class, - responseType = com.google.cloud.speech.v2.Config.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateConfigMethod() { - io.grpc.MethodDescriptor getUpdateConfigMethod; - if ((getUpdateConfigMethod = SpeechGrpc.getUpdateConfigMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUpdateConfigMethod = SpeechGrpc.getUpdateConfigMethod) == null) { - SpeechGrpc.getUpdateConfigMethod = getUpdateConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.Config.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdateConfig")) - .build(); - } - } - } - return getUpdateConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", - requestType = com.google.cloud.speech.v2.CreateCustomClassRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateCustomClassMethod() { - io.grpc.MethodDescriptor getCreateCustomClassMethod; - if ((getCreateCustomClassMethod = SpeechGrpc.getCreateCustomClassMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getCreateCustomClassMethod = SpeechGrpc.getCreateCustomClassMethod) == null) { - SpeechGrpc.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.v2.CreateCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreateCustomClass")) - .build(); - } - } - } - return getCreateCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCustomClassesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", - requestType = com.google.cloud.speech.v2.ListCustomClassesRequest.class, - responseType = com.google.cloud.speech.v2.ListCustomClassesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCustomClassesMethod() { - io.grpc.MethodDescriptor getListCustomClassesMethod; - if ((getListCustomClassesMethod = SpeechGrpc.getListCustomClassesMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getListCustomClassesMethod = SpeechGrpc.getListCustomClassesMethod) == null) { - SpeechGrpc.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.v2.ListCustomClassesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.ListCustomClassesResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListCustomClasses")) - .build(); - } - } - } - return getListCustomClassesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", - requestType = com.google.cloud.speech.v2.GetCustomClassRequest.class, - responseType = com.google.cloud.speech.v2.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCustomClassMethod() { - io.grpc.MethodDescriptor getGetCustomClassMethod; - if ((getGetCustomClassMethod = SpeechGrpc.getGetCustomClassMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getGetCustomClassMethod = SpeechGrpc.getGetCustomClassMethod) == null) { - SpeechGrpc.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.v2.GetCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.CustomClass.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetCustomClass")) - .build(); - } - } - } - return getGetCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", - requestType = com.google.cloud.speech.v2.UpdateCustomClassRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateCustomClassMethod() { - io.grpc.MethodDescriptor getUpdateCustomClassMethod; - if ((getUpdateCustomClassMethod = SpeechGrpc.getUpdateCustomClassMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUpdateCustomClassMethod = SpeechGrpc.getUpdateCustomClassMethod) == null) { - SpeechGrpc.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.v2.UpdateCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("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.v2.DeleteCustomClassRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteCustomClassMethod() { - io.grpc.MethodDescriptor getDeleteCustomClassMethod; - if ((getDeleteCustomClassMethod = SpeechGrpc.getDeleteCustomClassMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getDeleteCustomClassMethod = SpeechGrpc.getDeleteCustomClassMethod) == null) { - SpeechGrpc.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.v2.DeleteCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeleteCustomClass")) - .build(); - } - } - } - return getDeleteCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor getUndeleteCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UndeleteCustomClass", - requestType = com.google.cloud.speech.v2.UndeleteCustomClassRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUndeleteCustomClassMethod() { - io.grpc.MethodDescriptor getUndeleteCustomClassMethod; - if ((getUndeleteCustomClassMethod = SpeechGrpc.getUndeleteCustomClassMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUndeleteCustomClassMethod = SpeechGrpc.getUndeleteCustomClassMethod) == null) { - SpeechGrpc.getUndeleteCustomClassMethod = getUndeleteCustomClassMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeleteCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UndeleteCustomClass")) - .build(); - } - } - } - return getUndeleteCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", - requestType = com.google.cloud.speech.v2.CreatePhraseSetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreatePhraseSetMethod() { - io.grpc.MethodDescriptor getCreatePhraseSetMethod; - if ((getCreatePhraseSetMethod = SpeechGrpc.getCreatePhraseSetMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getCreatePhraseSetMethod = SpeechGrpc.getCreatePhraseSetMethod) == null) { - SpeechGrpc.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.v2.CreatePhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreatePhraseSet")) - .build(); - } - } - } - return getCreatePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getListPhraseSetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPhraseSets", - requestType = com.google.cloud.speech.v2.ListPhraseSetsRequest.class, - responseType = com.google.cloud.speech.v2.ListPhraseSetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListPhraseSetsMethod() { - io.grpc.MethodDescriptor getListPhraseSetsMethod; - if ((getListPhraseSetsMethod = SpeechGrpc.getListPhraseSetsMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getListPhraseSetsMethod = SpeechGrpc.getListPhraseSetsMethod) == null) { - SpeechGrpc.getListPhraseSetsMethod = getListPhraseSetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.ListPhraseSetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.ListPhraseSetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListPhraseSets")) - .build(); - } - } - } - return getListPhraseSetsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetPhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", - requestType = com.google.cloud.speech.v2.GetPhraseSetRequest.class, - responseType = com.google.cloud.speech.v2.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetPhraseSetMethod() { - io.grpc.MethodDescriptor getGetPhraseSetMethod; - if ((getGetPhraseSetMethod = SpeechGrpc.getGetPhraseSetMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getGetPhraseSetMethod = SpeechGrpc.getGetPhraseSetMethod) == null) { - SpeechGrpc.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.v2.GetPhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetPhraseSet")) - .build(); - } - } - } - return getGetPhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", - requestType = com.google.cloud.speech.v2.UpdatePhraseSetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdatePhraseSetMethod() { - io.grpc.MethodDescriptor getUpdatePhraseSetMethod; - if ((getUpdatePhraseSetMethod = SpeechGrpc.getUpdatePhraseSetMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUpdatePhraseSetMethod = SpeechGrpc.getUpdatePhraseSetMethod) == null) { - SpeechGrpc.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.v2.UpdatePhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("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.v2.DeletePhraseSetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeletePhraseSetMethod() { - io.grpc.MethodDescriptor getDeletePhraseSetMethod; - if ((getDeletePhraseSetMethod = SpeechGrpc.getDeletePhraseSetMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getDeletePhraseSetMethod = SpeechGrpc.getDeletePhraseSetMethod) == null) { - SpeechGrpc.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.v2.DeletePhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeletePhraseSet")) - .build(); - } - } - } - return getDeletePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getUndeletePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UndeletePhraseSet", - requestType = com.google.cloud.speech.v2.UndeletePhraseSetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUndeletePhraseSetMethod() { - io.grpc.MethodDescriptor getUndeletePhraseSetMethod; - if ((getUndeletePhraseSetMethod = SpeechGrpc.getUndeletePhraseSetMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUndeletePhraseSetMethod = SpeechGrpc.getUndeletePhraseSetMethod) == null) { - SpeechGrpc.getUndeletePhraseSetMethod = getUndeletePhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeletePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UndeletePhraseSet")) - .build(); - } - } - } - return getUndeletePhraseSetMethod; - } - - /** - * 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); - } - - /** - *
-   * Enables speech transcription and resource management.
-   * 
- */ - public static abstract class SpeechImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void createRecognizer(com.google.cloud.speech.v2.CreateRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRecognizerMethod(), responseObserver); - } - - /** - *
-     * Lists Recognizers.
-     * 
- */ - public void listRecognizers(com.google.cloud.speech.v2.ListRecognizersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRecognizersMethod(), responseObserver); - } - - /** - *
-     * Returns the requested
-     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
-     * exist.
-     * 
- */ - public void getRecognizer(com.google.cloud.speech.v2.GetRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRecognizerMethod(), responseObserver); - } - - /** - *
-     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void updateRecognizer(com.google.cloud.speech.v2.UpdateRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateRecognizerMethod(), responseObserver); - } - - /** - *
-     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void deleteRecognizer(com.google.cloud.speech.v2.DeleteRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRecognizerMethod(), responseObserver); - } - - /** - *
-     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void undeleteRecognizer(com.google.cloud.speech.v2.UndeleteRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeleteRecognizerMethod(), responseObserver); - } - - /** - *
-     * Performs synchronous Speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize(com.google.cloud.speech.v2.RecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), 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); - } - - /** - *
-     * Performs batch asynchronous speech recognition: send a request with N
-     * audio files and receive a long running operation that can be polled to see
-     * when the transcriptions are finished.
-     * 
- */ - public void batchRecognize(com.google.cloud.speech.v2.BatchRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchRecognizeMethod(), responseObserver); - } - - /** - *
-     * Returns the requested [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public void getConfig(com.google.cloud.speech.v2.GetConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConfigMethod(), responseObserver); - } - - /** - *
-     * Updates the [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public void updateConfig(com.google.cloud.speech.v2.UpdateConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConfigMethod(), responseObserver); - } - - /** - *
-     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void createCustomClass(com.google.cloud.speech.v2.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCustomClassMethod(), responseObserver); - } - - /** - *
-     * Lists CustomClasses.
-     * 
- */ - public void listCustomClasses(com.google.cloud.speech.v2.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCustomClassesMethod(), responseObserver); - } - - /** - *
-     * Returns the requested
-     * [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void getCustomClass(com.google.cloud.speech.v2.GetCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCustomClassMethod(), responseObserver); - } - - /** - *
-     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void updateCustomClass(com.google.cloud.speech.v2.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCustomClassMethod(), responseObserver); - } - - /** - *
-     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void deleteCustomClass(com.google.cloud.speech.v2.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCustomClassMethod(), responseObserver); - } - - /** - *
-     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void undeleteCustomClass(com.google.cloud.speech.v2.UndeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeleteCustomClassMethod(), responseObserver); - } - - /** - *
-     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void createPhraseSet(com.google.cloud.speech.v2.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePhraseSetMethod(), responseObserver); - } - - /** - *
-     * Lists PhraseSets.
-     * 
- */ - public void listPhraseSets(com.google.cloud.speech.v2.ListPhraseSetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPhraseSetsMethod(), responseObserver); - } - - /** - *
-     * Returns the requested
-     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void getPhraseSet(com.google.cloud.speech.v2.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPhraseSetMethod(), responseObserver); - } - - /** - *
-     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void updatePhraseSet(com.google.cloud.speech.v2.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePhraseSetMethod(), responseObserver); - } - - /** - *
-     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void deletePhraseSet(com.google.cloud.speech.v2.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePhraseSetMethod(), responseObserver); - } - - /** - *
-     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void undeletePhraseSet(com.google.cloud.speech.v2.UndeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeletePhraseSetMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateRecognizerMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.CreateRecognizerRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_RECOGNIZER))) - .addMethod( - getListRecognizersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.ListRecognizersRequest, - com.google.cloud.speech.v2.ListRecognizersResponse>( - this, METHODID_LIST_RECOGNIZERS))) - .addMethod( - getGetRecognizerMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.GetRecognizerRequest, - com.google.cloud.speech.v2.Recognizer>( - this, METHODID_GET_RECOGNIZER))) - .addMethod( - getUpdateRecognizerMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UpdateRecognizerRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_RECOGNIZER))) - .addMethod( - getDeleteRecognizerMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.DeleteRecognizerRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_RECOGNIZER))) - .addMethod( - getUndeleteRecognizerMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, - com.google.longrunning.Operation>( - this, METHODID_UNDELETE_RECOGNIZER))) - .addMethod( - getRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.RecognizeRequest, - com.google.cloud.speech.v2.RecognizeResponse>( - this, METHODID_RECOGNIZE))) - .addMethod( - getStreamingRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.speech.v2.StreamingRecognizeRequest, - com.google.cloud.speech.v2.StreamingRecognizeResponse>( - this, METHODID_STREAMING_RECOGNIZE))) - .addMethod( - getBatchRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.BatchRecognizeRequest, - com.google.longrunning.Operation>( - this, METHODID_BATCH_RECOGNIZE))) - .addMethod( - getGetConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.GetConfigRequest, - com.google.cloud.speech.v2.Config>( - this, METHODID_GET_CONFIG))) - .addMethod( - getUpdateConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UpdateConfigRequest, - com.google.cloud.speech.v2.Config>( - this, METHODID_UPDATE_CONFIG))) - .addMethod( - getCreateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.CreateCustomClassRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_CUSTOM_CLASS))) - .addMethod( - getListCustomClassesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.ListCustomClassesRequest, - com.google.cloud.speech.v2.ListCustomClassesResponse>( - this, METHODID_LIST_CUSTOM_CLASSES))) - .addMethod( - getGetCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.GetCustomClassRequest, - com.google.cloud.speech.v2.CustomClass>( - this, METHODID_GET_CUSTOM_CLASS))) - .addMethod( - getUpdateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UpdateCustomClassRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_CUSTOM_CLASS))) - .addMethod( - getDeleteCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.DeleteCustomClassRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_CUSTOM_CLASS))) - .addMethod( - getUndeleteCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, - com.google.longrunning.Operation>( - this, METHODID_UNDELETE_CUSTOM_CLASS))) - .addMethod( - getCreatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.CreatePhraseSetRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_PHRASE_SET))) - .addMethod( - getListPhraseSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.ListPhraseSetsRequest, - com.google.cloud.speech.v2.ListPhraseSetsResponse>( - this, METHODID_LIST_PHRASE_SETS))) - .addMethod( - getGetPhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.GetPhraseSetRequest, - com.google.cloud.speech.v2.PhraseSet>( - this, METHODID_GET_PHRASE_SET))) - .addMethod( - getUpdatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_PHRASE_SET))) - .addMethod( - getDeletePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.DeletePhraseSetRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_PHRASE_SET))) - .addMethod( - getUndeletePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, - com.google.longrunning.Operation>( - this, METHODID_UNDELETE_PHRASE_SET))) - .build(); - } - } - - /** - *
-   * Enables speech transcription and resource management.
-   * 
- */ - 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); - } - - /** - *
-     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void createRecognizer(com.google.cloud.speech.v2.CreateRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRecognizerMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists Recognizers.
-     * 
- */ - public void listRecognizers(com.google.cloud.speech.v2.ListRecognizersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRecognizersMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the requested
-     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
-     * exist.
-     * 
- */ - public void getRecognizer(com.google.cloud.speech.v2.GetRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRecognizerMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void updateRecognizer(com.google.cloud.speech.v2.UpdateRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateRecognizerMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void deleteRecognizer(com.google.cloud.speech.v2.DeleteRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRecognizerMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void undeleteRecognizer(com.google.cloud.speech.v2.UndeleteRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeleteRecognizerMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Performs synchronous Speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize(com.google.cloud.speech.v2.RecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRecognizeMethod(), 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); - } - - /** - *
-     * Performs batch asynchronous speech recognition: send a request with N
-     * audio files and receive a long running operation that can be polled to see
-     * when the transcriptions are finished.
-     * 
- */ - public void batchRecognize(com.google.cloud.speech.v2.BatchRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchRecognizeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the requested [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public void getConfig(com.google.cloud.speech.v2.GetConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public void updateConfig(com.google.cloud.speech.v2.UpdateConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void createCustomClass(com.google.cloud.speech.v2.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists CustomClasses.
-     * 
- */ - public void listCustomClasses(com.google.cloud.speech.v2.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the requested
-     * [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void getCustomClass(com.google.cloud.speech.v2.GetCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void updateCustomClass(com.google.cloud.speech.v2.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void deleteCustomClass(com.google.cloud.speech.v2.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void undeleteCustomClass(com.google.cloud.speech.v2.UndeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeleteCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void createPhraseSet(com.google.cloud.speech.v2.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists PhraseSets.
-     * 
- */ - public void listPhraseSets(com.google.cloud.speech.v2.ListPhraseSetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPhraseSetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the requested
-     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void getPhraseSet(com.google.cloud.speech.v2.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void updatePhraseSet(com.google.cloud.speech.v2.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void deletePhraseSet(com.google.cloud.speech.v2.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void undeletePhraseSet(com.google.cloud.speech.v2.UndeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeletePhraseSetMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Enables speech transcription and resource management.
-   * 
- */ - 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); - } - - /** - *
-     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.longrunning.Operation createRecognizer(com.google.cloud.speech.v2.CreateRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateRecognizerMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists Recognizers.
-     * 
- */ - public com.google.cloud.speech.v2.ListRecognizersResponse listRecognizers(com.google.cloud.speech.v2.ListRecognizersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRecognizersMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the requested
-     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.speech.v2.Recognizer getRecognizer(com.google.cloud.speech.v2.GetRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRecognizerMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.longrunning.Operation updateRecognizer(com.google.cloud.speech.v2.UpdateRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateRecognizerMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.longrunning.Operation deleteRecognizer(com.google.cloud.speech.v2.DeleteRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRecognizerMethod(), getCallOptions(), request); - } - - /** - *
-     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.longrunning.Operation undeleteRecognizer(com.google.cloud.speech.v2.UndeleteRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUndeleteRecognizerMethod(), getCallOptions(), request); - } - - /** - *
-     * Performs synchronous Speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.cloud.speech.v2.RecognizeResponse recognize(com.google.cloud.speech.v2.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRecognizeMethod(), getCallOptions(), request); - } - - /** - *
-     * Performs batch asynchronous speech recognition: send a request with N
-     * audio files and receive a long running operation that can be polled to see
-     * when the transcriptions are finished.
-     * 
- */ - public com.google.longrunning.Operation batchRecognize(com.google.cloud.speech.v2.BatchRecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchRecognizeMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the requested [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public com.google.cloud.speech.v2.Config getConfig(com.google.cloud.speech.v2.GetConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public com.google.cloud.speech.v2.Config updateConfig(com.google.cloud.speech.v2.UpdateConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.longrunning.Operation createCustomClass(com.google.cloud.speech.v2.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists CustomClasses.
-     * 
- */ - public com.google.cloud.speech.v2.ListCustomClassesResponse listCustomClasses(com.google.cloud.speech.v2.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCustomClassesMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the requested
-     * [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.cloud.speech.v2.CustomClass getCustomClass(com.google.cloud.speech.v2.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.longrunning.Operation updateCustomClass(com.google.cloud.speech.v2.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.longrunning.Operation deleteCustomClass(com.google.cloud.speech.v2.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.longrunning.Operation undeleteCustomClass(com.google.cloud.speech.v2.UndeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUndeleteCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.longrunning.Operation createPhraseSet(com.google.cloud.speech.v2.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists PhraseSets.
-     * 
- */ - public com.google.cloud.speech.v2.ListPhraseSetsResponse listPhraseSets(com.google.cloud.speech.v2.ListPhraseSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPhraseSetsMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the requested
-     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.cloud.speech.v2.PhraseSet getPhraseSet(com.google.cloud.speech.v2.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.longrunning.Operation updatePhraseSet(com.google.cloud.speech.v2.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.longrunning.Operation deletePhraseSet(com.google.cloud.speech.v2.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.longrunning.Operation undeletePhraseSet(com.google.cloud.speech.v2.UndeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUndeletePhraseSetMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Enables speech transcription and resource management.
-   * 
- */ - 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); - } - - /** - *
-     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createRecognizer( - com.google.cloud.speech.v2.CreateRecognizerRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateRecognizerMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists Recognizers.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listRecognizers( - com.google.cloud.speech.v2.ListRecognizersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRecognizersMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the requested
-     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getRecognizer( - com.google.cloud.speech.v2.GetRecognizerRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRecognizerMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateRecognizer( - com.google.cloud.speech.v2.UpdateRecognizerRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateRecognizerMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteRecognizer( - com.google.cloud.speech.v2.DeleteRecognizerRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRecognizerMethod(), getCallOptions()), request); - } - - /** - *
-     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture undeleteRecognizer( - com.google.cloud.speech.v2.UndeleteRecognizerRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUndeleteRecognizerMethod(), getCallOptions()), request); - } - - /** - *
-     * 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.v2.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); - } - - /** - *
-     * Performs batch asynchronous speech recognition: send a request with N
-     * audio files and receive a long running operation that can be polled to see
-     * when the transcriptions are finished.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture batchRecognize( - com.google.cloud.speech.v2.BatchRecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchRecognizeMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the requested [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getConfig( - com.google.cloud.speech.v2.GetConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateConfig( - com.google.cloud.speech.v2.UpdateConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createCustomClass( - com.google.cloud.speech.v2.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists CustomClasses.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCustomClasses( - com.google.cloud.speech.v2.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the requested
-     * [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getCustomClass( - com.google.cloud.speech.v2.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateCustomClass( - com.google.cloud.speech.v2.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteCustomClass( - com.google.cloud.speech.v2.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture undeleteCustomClass( - com.google.cloud.speech.v2.UndeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUndeleteCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createPhraseSet( - com.google.cloud.speech.v2.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists PhraseSets.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listPhraseSets( - com.google.cloud.speech.v2.ListPhraseSetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPhraseSetsMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the requested
-     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getPhraseSet( - com.google.cloud.speech.v2.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updatePhraseSet( - com.google.cloud.speech.v2.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deletePhraseSet( - com.google.cloud.speech.v2.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture undeletePhraseSet( - com.google.cloud.speech.v2.UndeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUndeletePhraseSetMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_RECOGNIZER = 0; - private static final int METHODID_LIST_RECOGNIZERS = 1; - private static final int METHODID_GET_RECOGNIZER = 2; - private static final int METHODID_UPDATE_RECOGNIZER = 3; - private static final int METHODID_DELETE_RECOGNIZER = 4; - private static final int METHODID_UNDELETE_RECOGNIZER = 5; - private static final int METHODID_RECOGNIZE = 6; - private static final int METHODID_BATCH_RECOGNIZE = 7; - private static final int METHODID_GET_CONFIG = 8; - private static final int METHODID_UPDATE_CONFIG = 9; - private static final int METHODID_CREATE_CUSTOM_CLASS = 10; - private static final int METHODID_LIST_CUSTOM_CLASSES = 11; - private static final int METHODID_GET_CUSTOM_CLASS = 12; - private static final int METHODID_UPDATE_CUSTOM_CLASS = 13; - private static final int METHODID_DELETE_CUSTOM_CLASS = 14; - private static final int METHODID_UNDELETE_CUSTOM_CLASS = 15; - private static final int METHODID_CREATE_PHRASE_SET = 16; - private static final int METHODID_LIST_PHRASE_SETS = 17; - private static final int METHODID_GET_PHRASE_SET = 18; - private static final int METHODID_UPDATE_PHRASE_SET = 19; - private static final int METHODID_DELETE_PHRASE_SET = 20; - private static final int METHODID_UNDELETE_PHRASE_SET = 21; - private static final int METHODID_STREAMING_RECOGNIZE = 22; - - 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_CREATE_RECOGNIZER: - serviceImpl.createRecognizer((com.google.cloud.speech.v2.CreateRecognizerRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RECOGNIZERS: - serviceImpl.listRecognizers((com.google.cloud.speech.v2.ListRecognizersRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_RECOGNIZER: - serviceImpl.getRecognizer((com.google.cloud.speech.v2.GetRecognizerRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_RECOGNIZER: - serviceImpl.updateRecognizer((com.google.cloud.speech.v2.UpdateRecognizerRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_RECOGNIZER: - serviceImpl.deleteRecognizer((com.google.cloud.speech.v2.DeleteRecognizerRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNDELETE_RECOGNIZER: - serviceImpl.undeleteRecognizer((com.google.cloud.speech.v2.UndeleteRecognizerRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RECOGNIZE: - serviceImpl.recognize((com.google.cloud.speech.v2.RecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_RECOGNIZE: - serviceImpl.batchRecognize((com.google.cloud.speech.v2.BatchRecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CONFIG: - serviceImpl.getConfig((com.google.cloud.speech.v2.GetConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CONFIG: - serviceImpl.updateConfig((com.google.cloud.speech.v2.UpdateConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CUSTOM_CLASS: - serviceImpl.createCustomClass((com.google.cloud.speech.v2.CreateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CUSTOM_CLASSES: - serviceImpl.listCustomClasses((com.google.cloud.speech.v2.ListCustomClassesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CUSTOM_CLASS: - serviceImpl.getCustomClass((com.google.cloud.speech.v2.GetCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CUSTOM_CLASS: - serviceImpl.updateCustomClass((com.google.cloud.speech.v2.UpdateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CUSTOM_CLASS: - serviceImpl.deleteCustomClass((com.google.cloud.speech.v2.DeleteCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNDELETE_CUSTOM_CLASS: - serviceImpl.undeleteCustomClass((com.google.cloud.speech.v2.UndeleteCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_PHRASE_SET: - serviceImpl.createPhraseSet((com.google.cloud.speech.v2.CreatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_PHRASE_SETS: - serviceImpl.listPhraseSets((com.google.cloud.speech.v2.ListPhraseSetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PHRASE_SET: - serviceImpl.getPhraseSet((com.google.cloud.speech.v2.GetPhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_PHRASE_SET: - serviceImpl.updatePhraseSet((com.google.cloud.speech.v2.UpdatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_PHRASE_SET: - serviceImpl.deletePhraseSet((com.google.cloud.speech.v2.DeletePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNDELETE_PHRASE_SET: - serviceImpl.undeletePhraseSet((com.google.cloud.speech.v2.UndeletePhraseSetRequest) 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.v2.CloudSpeechProto.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(getCreateRecognizerMethod()) - .addMethod(getListRecognizersMethod()) - .addMethod(getGetRecognizerMethod()) - .addMethod(getUpdateRecognizerMethod()) - .addMethod(getDeleteRecognizerMethod()) - .addMethod(getUndeleteRecognizerMethod()) - .addMethod(getRecognizeMethod()) - .addMethod(getStreamingRecognizeMethod()) - .addMethod(getBatchRecognizeMethod()) - .addMethod(getGetConfigMethod()) - .addMethod(getUpdateConfigMethod()) - .addMethod(getCreateCustomClassMethod()) - .addMethod(getListCustomClassesMethod()) - .addMethod(getGetCustomClassMethod()) - .addMethod(getUpdateCustomClassMethod()) - .addMethod(getDeleteCustomClassMethod()) - .addMethod(getUndeleteCustomClassMethod()) - .addMethod(getCreatePhraseSetMethod()) - .addMethod(getListPhraseSetsMethod()) - .addMethod(getGetPhraseSetMethod()) - .addMethod(getUpdatePhraseSetMethod()) - .addMethod(getDeletePhraseSetMethod()) - .addMethod(getUndeletePhraseSetMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java deleted file mode 100644 index a00b9e8f5df9..000000000000 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public interface AutoDetectDecodingConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.AutoDetectDecodingConfig) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java deleted file mode 100644 index 3a87adc47c62..000000000000 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public interface BatchRecognizeMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Map from provided filename to the transcription metadata for that file.
-   * 
- * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - */ - int getTranscriptionMetadataCount(); - /** - *
-   * Map from provided filename to the transcription metadata for that file.
-   * 
- * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - */ - boolean containsTranscriptionMetadata( - java.lang.String key); - /** - * Use {@link #getTranscriptionMetadataMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getTranscriptionMetadata(); - /** - *
-   * Map from provided filename to the transcription metadata for that file.
-   * 
- * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - */ - java.util.Map - getTranscriptionMetadataMap(); - /** - *
-   * Map from provided filename to the transcription metadata for that file.
-   * 
- * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - */ - /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue); - /** - *
-   * Map from provided filename to the transcription metadata for that file.
-   * 
- * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - */ - com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrThrow( - java.lang.String key); -} diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java deleted file mode 100644 index 9267d4ec1726..000000000000 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java +++ /dev/null @@ -1,1186 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public final class CloudSpeechProto { - private CloudSpeechProto() {} - 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_v2_CreateRecognizerRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_Recognizer_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_WordInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_Config_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_Config_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_CustomClass_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_PhraseSet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_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/v2/cloud_speech.pr" + - "oto\022\026google.cloud.speech.v2\032\034google/api/" + - "annotations.proto\032\027google/api/client.pro" + - "to\032\037google/api/field_behavior.proto\032\031goo" + - "gle/api/resource.proto\032#google/longrunni" + - "ng/operations.proto\032\036google/protobuf/dur" + - "ation.proto\032 google/protobuf/field_mask." + - "proto\032\037google/protobuf/timestamp.proto\032\027" + - "google/rpc/status.proto\"\276\001\n\027CreateRecogn" + - "izerRequest\022;\n\nrecognizer\030\001 \001(\0132\".google" + - ".cloud.speech.v2.RecognizerB\003\340A\002\022\025\n\rvali" + - "date_only\030\002 \001(\010\022\025\n\rrecognizer_id\030\003 \001(\t\0228" + - "\n\006parent\030\004 \001(\tB(\340A\002\372A\"\022 speech.googleapi" + - "s.com/Recognizer\"\343\014\n\021OperationMetadata\022/" + - "\n\013create_time\030\001 \001(\0132\032.google.protobuf.Ti" + - "mestamp\022/\n\013update_time\030\002 \001(\0132\032.google.pr" + - "otobuf.Timestamp\022\020\n\010resource\030\003 \001(\t\022\016\n\006me" + - "thod\030\004 \001(\t\022<\n\014kms_key_name\030\006 \001(\tB&\372A#\n!c" + - "loudkms.googleapis.com/CryptoKey\022K\n\024kms_" + - "key_version_name\030\007 \001(\tB-\372A*\n(cloudkms.go" + - "ogleapis.com/CryptoKeyVersion\022P\n\027batch_r" + - "ecognize_request\030\010 \001(\0132-.google.cloud.sp" + - "eech.v2.BatchRecognizeRequestH\000\022T\n\031creat" + - "e_recognizer_request\030\t \001(\0132/.google.clou" + - "d.speech.v2.CreateRecognizerRequestH\000\022T\n" + - "\031update_recognizer_request\030\n \001(\0132/.googl" + - "e.cloud.speech.v2.UpdateRecognizerReques" + - "tH\000\022T\n\031delete_recognizer_request\030\013 \001(\0132/" + - ".google.cloud.speech.v2.DeleteRecognizer" + - "RequestH\000\022X\n\033undelete_recognizer_request" + - "\030\014 \001(\01321.google.cloud.speech.v2.Undelete" + - "RecognizerRequestH\000\022W\n\033create_custom_cla" + - "ss_request\030\r \001(\01320.google.cloud.speech.v" + - "2.CreateCustomClassRequestH\000\022W\n\033update_c" + - "ustom_class_request\030\016 \001(\01320.google.cloud" + - ".speech.v2.UpdateCustomClassRequestH\000\022W\n" + - "\033delete_custom_class_request\030\017 \001(\01320.goo" + - "gle.cloud.speech.v2.DeleteCustomClassReq" + - "uestH\000\022[\n\035undelete_custom_class_request\030" + - "\020 \001(\01322.google.cloud.speech.v2.UndeleteC" + - "ustomClassRequestH\000\022S\n\031create_phrase_set" + - "_request\030\021 \001(\0132..google.cloud.speech.v2." + - "CreatePhraseSetRequestH\000\022S\n\031update_phras" + - "e_set_request\030\022 \001(\0132..google.cloud.speec" + - "h.v2.UpdatePhraseSetRequestH\000\022S\n\031delete_" + - "phrase_set_request\030\023 \001(\0132..google.cloud." + - "speech.v2.DeletePhraseSetRequestH\000\022W\n\033un" + - "delete_phrase_set_request\030\024 \001(\01320.google" + - ".cloud.speech.v2.UndeletePhraseSetReques" + - "tH\000\022L\n\025update_config_request\030\025 \001(\0132+.goo" + - "gle.cloud.speech.v2.UpdateConfigRequestH" + - "\000\022\030\n\020progress_percent\030\026 \001(\005\022R\n\030batch_rec" + - "ognize_metadata\030\027 \001(\0132..google.cloud.spe" + - "ech.v2.BatchRecognizeMetadataH\001B\t\n\007reque" + - "stB\n\n\010metadata\"\220\001\n\026ListRecognizersReques" + - "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goo" + - "gleapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022" + - "\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(" + - "\010\"k\n\027ListRecognizersResponse\0227\n\013recogniz" + - "ers\030\001 \003(\0132\".google.cloud.speech.v2.Recog" + - "nizer\022\027\n\017next_page_token\030\002 \001(\t\"N\n\024GetRec" + - "ognizerRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n sp" + - "eech.googleapis.com/Recognizer\"\236\001\n\027Updat" + - "eRecognizerRequest\022;\n\nrecognizer\030\001 \001(\0132\"" + - ".google.cloud.speech.v2.RecognizerB\003\340A\002\022" + - "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + - "ieldMask\022\025\n\rvalidate_only\030\004 \001(\010\"\215\001\n\027Dele" + - "teRecognizerRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A" + - "\"\n speech.googleapis.com/Recognizer\022\025\n\rv" + - "alidate_only\030\002 \001(\010\022\025\n\rallow_missing\030\004 \001(" + - "\010\022\014\n\004etag\030\003 \001(\t\"x\n\031UndeleteRecognizerReq" + - "uest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n speech.googl" + - "eapis.com/Recognizer\022\025\n\rvalidate_only\030\003 " + - "\001(\010\022\014\n\004etag\030\004 \001(\t\"\276\007\n\nRecognizer\022\021\n\004name" + - "\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\024\n\014display" + - "_name\030\003 \001(\t\022\022\n\005model\030\004 \001(\tB\003\340A\002\022\033\n\016langu" + - "age_codes\030\021 \003(\tB\003\340A\002\022M\n\032default_recognit" + - "ion_config\030\006 \001(\0132).google.cloud.speech.v" + - "2.RecognitionConfig\022H\n\013annotations\030\007 \003(\013" + - "23.google.cloud.speech.v2.Recognizer.Ann" + - "otationsEntry\022<\n\005state\030\010 \001(\0162(.google.cl" + - "oud.speech.v2.Recognizer.StateB\003\340A\003\0224\n\013c" + - "reate_time\030\t \001(\0132\032.google.protobuf.Times" + - "tampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.google." + - "protobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\013" + - " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + - "\013expire_time\030\016 \001(\0132\032.google.protobuf.Tim" + - "estampB\003\340A\003\022\021\n\004etag\030\014 \001(\tB\003\340A\003\022\030\n\013reconc" + - "iling\030\r \001(\010B\003\340A\003\022?\n\014kms_key_name\030\017 \001(\tB)" + - "\340A\003\372A#\n!cloudkms.googleapis.com/CryptoKe" + - "y\022N\n\024kms_key_version_name\030\020 \001(\tB0\340A\003\372A*\n" + - "(cloudkms.googleapis.com/CryptoKeyVersio" + - "n\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + - "lue\030\002 \001(\t:\0028\001\"7\n\005State\022\025\n\021STATE_UNSPECIF" + - "IED\020\000\022\n\n\006ACTIVE\020\002\022\013\n\007DELETED\020\004:j\352Ag\n spe" + - "ech.googleapis.com/Recognizer\022@projects/" + - "{project}/locations/{location}/recognize" + - "rs/{recognizer}R\001\001\"\032\n\030AutoDetectDecoding" + - "Config\"\371\001\n\026ExplicitDecodingConfig\022S\n\010enc" + - "oding\030\001 \001(\0162<.google.cloud.speech.v2.Exp" + - "licitDecodingConfig.AudioEncodingB\003\340A\002\022\031" + - "\n\021sample_rate_hertz\030\002 \001(\005\022\033\n\023audio_chann" + - "el_count\030\003 \001(\005\"R\n\rAudioEncoding\022\036\n\032AUDIO" + - "_ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\t\n" + - "\005MULAW\020\002\022\010\n\004ALAW\020\003\"Z\n\030SpeakerDiarization" + - "Config\022\036\n\021min_speaker_count\030\002 \001(\005B\003\340A\002\022\036" + - "\n\021max_speaker_count\030\003 \001(\005B\003\340A\002\"\370\003\n\023Recog" + - "nitionFeatures\022\030\n\020profanity_filter\030\001 \001(\010" + - "\022 \n\030enable_word_time_offsets\030\002 \001(\010\022\036\n\026en" + - "able_word_confidence\030\003 \001(\010\022$\n\034enable_aut" + - "omatic_punctuation\030\004 \001(\010\022!\n\031enable_spoke" + - "n_punctuation\030\016 \001(\010\022\034\n\024enable_spoken_emo" + - "jis\030\017 \001(\010\022X\n\022multi_channel_mode\030\021 \001(\0162<." + - "google.cloud.speech.v2.RecognitionFeatur" + - "es.MultiChannelMode\022L\n\022diarization_confi" + - "g\030\t \001(\01320.google.cloud.speech.v2.Speaker" + - "DiarizationConfig\022\030\n\020max_alternatives\030\020 " + - "\001(\005\"\\\n\020MultiChannelMode\022\"\n\036MULTI_CHANNEL" + - "_MODE_UNSPECIFIED\020\000\022$\n SEPARATE_RECOGNIT" + - "ION_PER_CHANNEL\020\001\"\277\002\n\020SpeechAdaptation\022Q" + - "\n\013phrase_sets\030\001 \003(\0132<.google.cloud.speec" + - "h.v2.SpeechAdaptation.AdaptationPhraseSe" + - "t\022;\n\016custom_classes\030\002 \003(\0132#.google.cloud" + - ".speech.v2.CustomClass\032\232\001\n\023AdaptationPhr" + - "aseSet\022:\n\nphrase_set\030\001 \001(\tB$\372A!\n\037speech." + - "googleapis.com/PhraseSetH\000\022>\n\021inline_phr" + - "ase_set\030\002 \001(\0132!.google.cloud.speech.v2.P" + - "hraseSetH\000B\007\n\005value\"\311\002\n\021RecognitionConfi" + - "g\022P\n\024auto_decoding_config\030\007 \001(\01320.google" + - ".cloud.speech.v2.AutoDetectDecodingConfi" + - "gH\000\022R\n\030explicit_decoding_config\030\010 \001(\0132.." + - "google.cloud.speech.v2.ExplicitDecodingC" + - "onfigH\000\022=\n\010features\030\002 \001(\0132+.google.cloud" + - ".speech.v2.RecognitionFeatures\022<\n\nadapta" + - "tion\030\006 \001(\0132(.google.cloud.speech.v2.Spee" + - "chAdaptationB\021\n\017decoding_config\"\356\001\n\020Reco" + - "gnizeRequest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A\"" + - "\n speech.googleapis.com/Recognizer\0229\n\006co" + - "nfig\030\001 \001(\0132).google.cloud.speech.v2.Reco" + - "gnitionConfig\022/\n\013config_mask\030\010 \001(\0132\032.goo" + - "gle.protobuf.FieldMask\022\021\n\007content\030\005 \001(\014H" + - "\000\022\r\n\003uri\030\006 \001(\tH\000B\016\n\014audio_source\"W\n\033Reco" + - "gnitionResponseMetadata\0228\n\025total_billed_" + - "duration\030\006 \001(\0132\031.google.protobuf.Duratio" + - "n\"w\n\034SpeechRecognitionAlternative\022\022\n\ntra" + - "nscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022/\n\005wor" + - "ds\030\003 \003(\0132 .google.cloud.speech.v2.WordIn" + - "fo\"\243\001\n\010WordInfo\022/\n\014start_offset\030\001 \001(\0132\031." + - "google.protobuf.Duration\022-\n\nend_offset\030\002" + - " \001(\0132\031.google.protobuf.Duration\022\014\n\004word\030" + - "\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002\022\025\n\rspeaker_lab" + - "el\030\006 \001(\t\"\314\001\n\027SpeechRecognitionResult\022J\n\014" + - "alternatives\030\001 \003(\01324.google.cloud.speech" + - ".v2.SpeechRecognitionAlternative\022\023\n\013chan" + - "nel_tag\030\002 \001(\005\0224\n\021result_end_offset\030\004 \001(\013" + - "2\031.google.protobuf.Duration\022\032\n\rlanguage_" + - "code\030\005 \001(\tB\003\340A\003\"\234\001\n\021RecognizeResponse\022@\n" + - "\007results\030\003 \003(\0132/.google.cloud.speech.v2." + - "SpeechRecognitionResult\022E\n\010metadata\030\002 \001(" + - "\01323.google.cloud.speech.v2.RecognitionRe" + - "sponseMetadata\"\321\002\n\034StreamingRecognitionF" + - "eatures\022$\n\034enable_voice_activity_events\030" + - "\001 \001(\010\022\027\n\017interim_results\030\002 \001(\010\022i\n\026voice_" + - "activity_timeout\030\003 \001(\0132I.google.cloud.sp" + - "eech.v2.StreamingRecognitionFeatures.Voi" + - "ceActivityTimeout\032\206\001\n\024VoiceActivityTimeo" + - "ut\0227\n\024speech_start_timeout\030\001 \001(\0132\031.googl" + - "e.protobuf.Duration\0225\n\022speech_end_timeou" + - "t\030\002 \001(\0132\031.google.protobuf.Duration\"\337\001\n\032S" + - "treamingRecognitionConfig\022>\n\006config\030\001 \001(" + - "\0132).google.cloud.speech.v2.RecognitionCo" + - "nfigB\003\340A\002\022/\n\013config_mask\030\003 \001(\0132\032.google." + - "protobuf.FieldMask\022P\n\022streaming_features" + - "\030\002 \001(\01324.google.cloud.speech.v2.Streamin" + - "gRecognitionFeatures\"\317\001\n\031StreamingRecogn" + - "izeRequest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A\"\n " + - "speech.googleapis.com/Recognizer\022N\n\020stre" + - "aming_config\030\006 \001(\01322.google.cloud.speech" + - ".v2.StreamingRecognitionConfigH\000\022\017\n\005audi" + - "o\030\005 \001(\014H\000B\023\n\021streaming_request\"\204\002\n\025Batch" + - "RecognizeRequest\022<\n\nrecognizer\030\001 \001(\tB(\340A" + - "\002\372A\"\n speech.googleapis.com/Recognizer\0229" + - "\n\006config\030\004 \001(\0132).google.cloud.speech.v2." + - "RecognitionConfig\022/\n\013config_mask\030\005 \001(\0132\032" + - ".google.protobuf.FieldMask\022A\n\005files\030\003 \003(" + - "\01322.google.cloud.speech.v2.BatchRecogniz" + - "eFileMetadata\"\310\001\n\026BatchRecognizeResponse" + - "\022L\n\007results\030\001 \003(\0132;.google.cloud.speech." + - "v2.BatchRecognizeResponse.ResultsEntry\032`" + - "\n\014ResultsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001" + - "(\01320.google.cloud.speech.v2.BatchRecogni" + - "zeFileResult:\0028\001\"J\n\030BatchRecognizeFileRe" + - "sult\022\013\n\003uri\030\001 \001(\t\022!\n\005error\030\002 \001(\0132\022.googl" + - "e.rpc.Status\"o\n#BatchRecognizeTranscript" + - "ionMetadata\022\030\n\020progress_percent\030\001 \001(\005\022!\n" + - "\005error\030\002 \001(\0132\022.google.rpc.Status\022\013\n\003uri\030" + - "\003 \001(\t\"\376\001\n\026BatchRecognizeMetadata\022i\n\026tran" + - "scription_metadata\030\001 \003(\0132I.google.cloud." + - "speech.v2.BatchRecognizeMetadata.Transcr" + - "iptionMetadataEntry\032y\n\032TranscriptionMeta" + - "dataEntry\022\013\n\003key\030\001 \001(\t\022J\n\005value\030\002 \001(\0132;." + - "google.cloud.speech.v2.BatchRecognizeTra" + - "nscriptionMetadata:\0028\001\"\247\001\n\032BatchRecogniz" + - "eFileMetadata\022\r\n\003uri\030\001 \001(\tH\000\0229\n\006config\030\004" + - " \001(\0132).google.cloud.speech.v2.Recognitio" + - "nConfig\022/\n\013config_mask\030\005 \001(\0132\032.google.pr" + - "otobuf.FieldMaskB\016\n\014audio_source\"\364\001\n\032Str" + - "eamingRecognitionResult\022J\n\014alternatives\030" + - "\001 \003(\01324.google.cloud.speech.v2.SpeechRec" + - "ognitionAlternative\022\020\n\010is_final\030\002 \001(\010\022\021\n" + - "\tstability\030\003 \001(\002\0224\n\021result_end_offset\030\004 " + - "\001(\0132\031.google.protobuf.Duration\022\023\n\013channe" + - "l_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A\003\"" + - "\307\003\n\032StreamingRecognizeResponse\022C\n\007result" + - "s\030\006 \003(\01322.google.cloud.speech.v2.Streami" + - "ngRecognitionResult\022]\n\021speech_event_type" + - "\030\003 \001(\0162B.google.cloud.speech.v2.Streamin" + - "gRecognizeResponse.SpeechEventType\0226\n\023sp" + - "eech_event_offset\030\007 \001(\0132\031.google.protobu" + - "f.Duration\022E\n\010metadata\030\005 \001(\01323.google.cl" + - "oud.speech.v2.RecognitionResponseMetadat" + - "a\"\205\001\n\017SpeechEventType\022!\n\035SPEECH_EVENT_TY" + - "PE_UNSPECIFIED\020\000\022\033\n\027END_OF_SINGLE_UTTERA" + - "NCE\020\001\022\031\n\025SPEECH_ACTIVITY_BEGIN\020\002\022\027\n\023SPEE" + - "CH_ACTIVITY_END\020\003\"\345\001\n\006Config\022\021\n\004name\030\001 \001" + - "(\tB\003\340A\003\022?\n\014kms_key_name\030\002 \001(\tB)\340A\001\372A#\n!c" + - "loudkms.googleapis.com/CryptoKey\0224\n\013upda" + - "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" + - "pB\003\340A\003:Q\352AN\n\034speech.googleapis.com/Confi" + - "g\022.projects/{project}/locations/{locatio" + - "n}/config\"F\n\020GetConfigRequest\0222\n\004name\030\001 " + - "\001(\tB$\340A\002\372A\036\n\034speech.googleapis.com/Confi" + - "g\"{\n\023UpdateConfigRequest\0223\n\006config\030\001 \001(\013" + - "2\036.google.cloud.speech.v2.ConfigB\003\340A\002\022/\n" + - "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + - "ldMask\"\240\007\n\013CustomClass\022\021\n\004name\030\001 \001(\tB\003\340A" + - "\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\024\n\014display_name\030\004 \001(" + - "\t\022<\n\005items\030\005 \003(\0132-.google.cloud.speech.v" + - "2.CustomClass.ClassItem\022=\n\005state\030\017 \001(\0162)" + - ".google.cloud.speech.v2.CustomClass.Stat" + - "eB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.pro" + - "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(" + - "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013de" + - "lete_time\030\010 \001(\0132\032.google.protobuf.Timest" + - "ampB\003\340A\003\0224\n\013expire_time\030\t \001(\0132\032.google.p" + - "rotobuf.TimestampB\003\340A\003\022I\n\013annotations\030\n " + - "\003(\01324.google.cloud.speech.v2.CustomClass" + - ".AnnotationsEntry\022\021\n\004etag\030\013 \001(\tB\003\340A\003\022\030\n\013" + - "reconciling\030\014 \001(\010B\003\340A\003\022?\n\014kms_key_name\030\r" + - " \001(\tB)\340A\003\372A#\n!cloudkms.googleapis.com/Cr" + - "yptoKey\022N\n\024kms_key_version_name\030\016 \001(\tB0\340" + - "A\003\372A*\n(cloudkms.googleapis.com/CryptoKey" + - "Version\032\032\n\tClassItem\022\r\n\005value\030\001 \001(\t\0322\n\020A" + - "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\t:\0028\001\"7\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + - "\n\n\006ACTIVE\020\002\022\013\n\007DELETED\020\004:o\352Al\n!speech.go" + - "ogleapis.com/CustomClass\022Dprojects/{proj" + - "ect}/locations/{location}/customClasses/" + - "{custom_class}R\001\001\"\253\007\n\tPhraseSet\022\021\n\004name\030" + - "\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0229\n\007phrases\030" + - "\003 \003(\0132(.google.cloud.speech.v2.PhraseSet" + - ".Phrase\022\r\n\005boost\030\004 \001(\002\022\024\n\014display_name\030\005" + - " \001(\t\022;\n\005state\030\017 \001(\0162\'.google.cloud.speec" + - "h.v2.PhraseSet.StateB\003\340A\003\0224\n\013create_time" + - "\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + - "4\n\013update_time\030\007 \001(\0132\032.google.protobuf.T" + - "imestampB\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032.goo" + - "gle.protobuf.TimestampB\003\340A\003\0224\n\013expire_ti" + - "me\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A" + - "\003\022G\n\013annotations\030\n \003(\01322.google.cloud.sp" + - "eech.v2.PhraseSet.AnnotationsEntry\022\021\n\004et" + - "ag\030\013 \001(\tB\003\340A\003\022\030\n\013reconciling\030\014 \001(\010B\003\340A\003\022" + - "?\n\014kms_key_name\030\r \001(\tB)\340A\003\372A#\n!cloudkms." + - "googleapis.com/CryptoKey\022N\n\024kms_key_vers" + - "ion_name\030\016 \001(\tB0\340A\003\372A*\n(cloudkms.googlea" + - "pis.com/CryptoKeyVersion\032&\n\006Phrase\022\r\n\005va" + - "lue\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002\0322\n\020AnnotationsE" + - "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\005" + - "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\002" + - "\022\013\n\007DELETED\020\004:h\352Ae\n\037speech.googleapis.co" + - "m/PhraseSet\022?projects/{project}/location" + - "s/{location}/phraseSets/{phrase_set}R\001\001\"" + - "\305\001\n\030CreateCustomClassRequest\022>\n\014custom_c" + - "lass\030\001 \001(\0132#.google.cloud.speech.v2.Cust" + - "omClassB\003\340A\002\022\025\n\rvalidate_only\030\002 \001(\010\022\027\n\017c" + - "ustom_class_id\030\003 \001(\t\0229\n\006parent\030\004 \001(\tB)\340A" + - "\002\372A#\022!speech.googleapis.com/CustomClass\"" + - "\222\001\n\030ListCustomClassesRequest\0229\n\006parent\030\001" + - " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + - "ocation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + - "\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"q\n\031ListCust" + - "omClassesResponse\022;\n\016custom_classes\030\001 \003(" + - "\0132#.google.cloud.speech.v2.CustomClass\022\027" + - "\n\017next_page_token\030\002 \001(\t\"P\n\025GetCustomClas" + - "sRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.g" + - "oogleapis.com/CustomClass\"\242\001\n\030UpdateCust" + - "omClassRequest\022>\n\014custom_class\030\001 \001(\0132#.g" + - "oogle.cloud.speech.v2.CustomClassB\003\340A\002\022/" + - "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + - "eldMask\022\025\n\rvalidate_only\030\004 \001(\010\"\217\001\n\030Delet" + - "eCustomClassRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A" + - "#\n!speech.googleapis.com/CustomClass\022\025\n\r" + - "validate_only\030\002 \001(\010\022\025\n\rallow_missing\030\004 \001" + - "(\010\022\014\n\004etag\030\003 \001(\t\"z\n\032UndeleteCustomClassR" + - "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.goo" + - "gleapis.com/CustomClass\022\025\n\rvalidate_only" + - "\030\003 \001(\010\022\014\n\004etag\030\004 \001(\t\"\273\001\n\026CreatePhraseSet" + - "Request\022:\n\nphrase_set\030\001 \001(\0132!.google.clo" + - "ud.speech.v2.PhraseSetB\003\340A\002\022\025\n\rvalidate_" + - "only\030\002 \001(\010\022\025\n\rphrase_set_id\030\003 \001(\t\0227\n\006par" + - "ent\030\004 \001(\tB\'\340A\002\372A!\022\037speech.googleapis.com" + - "/PhraseSet\"\217\001\n\025ListPhraseSetsRequest\0229\n\006" + - "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + - "is.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + - "ge_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"i\n\026" + - "ListPhraseSetsResponse\0226\n\013phrase_sets\030\001 " + - "\003(\0132!.google.cloud.speech.v2.PhraseSet\022\027" + - "\n\017next_page_token\030\002 \001(\t\"L\n\023GetPhraseSetR" + - "equest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.goo" + - "gleapis.com/PhraseSet\"\234\001\n\026UpdatePhraseSe" + - "tRequest\022:\n\nphrase_set\030\001 \001(\0132!.google.cl" + - "oud.speech.v2.PhraseSetB\003\340A\002\022/\n\013update_m" + - "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\022\025\n" + - "\rvalidate_only\030\004 \001(\010\"\213\001\n\026DeletePhraseSet" + - "Request\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.go" + - "ogleapis.com/PhraseSet\022\025\n\rvalidate_only\030" + - "\002 \001(\010\022\025\n\rallow_missing\030\004 \001(\010\022\014\n\004etag\030\003 \001" + - "(\t\"v\n\030UndeletePhraseSetRequest\0225\n\004name\030\001" + - " \001(\tB\'\340A\002\372A!\n\037speech.googleapis.com/Phra" + - "seSet\022\025\n\rvalidate_only\030\003 \001(\010\022\014\n\004etag\030\004 \001" + - "(\t2\277%\n\006Speech\022\354\001\n\020CreateRecognizer\022/.goo" + - "gle.cloud.speech.v2.CreateRecognizerRequ" + - "est\032\035.google.longrunning.Operation\"\207\001\202\323\344" + - "\223\002=\"//v2/{parent=projects/*/locations/*}" + - "/recognizers:\nrecognizer\332A\037parent,recogn" + - "izer,recognizer_id\312A\037\n\nRecognizer\022\021Opera" + - "tionMetadata\022\264\001\n\017ListRecognizers\022..googl" + - "e.cloud.speech.v2.ListRecognizersRequest" + - "\032/.google.cloud.speech.v2.ListRecognizer" + - "sResponse\"@\202\323\344\223\0021\022//v2/{parent=projects/" + - "*/locations/*}/recognizers\332A\006parent\022\241\001\n\r" + - "GetRecognizer\022,.google.cloud.speech.v2.G" + - "etRecognizerRequest\032\".google.cloud.speec" + - "h.v2.Recognizer\">\202\323\344\223\0021\022//v2/{name=proje" + - "cts/*/locations/*/recognizers/*}\332A\004name\022" + - "\356\001\n\020UpdateRecognizer\022/.google.cloud.spee" + - "ch.v2.UpdateRecognizerRequest\032\035.google.l" + - "ongrunning.Operation\"\211\001\202\323\344\223\002H2:/v2/{reco" + - "gnizer.name=projects/*/locations/*/recog" + - "nizers/*}:\nrecognizer\332A\026recognizer,updat" + - "e_mask\312A\037\n\nRecognizer\022\021OperationMetadata" + - "\022\304\001\n\020DeleteRecognizer\022/.google.cloud.spe" + - "ech.v2.DeleteRecognizerRequest\032\035.google." + - "longrunning.Operation\"`\202\323\344\223\0021*//v2/{name" + - "=projects/*/locations/*/recognizers/*}\332A" + - "\004name\312A\037\n\nRecognizer\022\021OperationMetadata\022" + - "\324\001\n\022UndeleteRecognizer\0221.google.cloud.sp" + - "eech.v2.UndeleteRecognizerRequest\032\035.goog" + - "le.longrunning.Operation\"l\202\323\344\223\002=\"8/v2/{n" + - "ame=projects/*/locations/*/recognizers/*" + - "}:undelete:\001*\332A\004name\312A\037\n\nRecognizer\022\021Ope" + - "rationMetadata\022\371\001\n\tRecognize\022(.google.cl" + - "oud.speech.v2.RecognizeRequest\032).google." + - "cloud.speech.v2.RecognizeResponse\"\226\001\202\323\344\223" + - "\002D\"?/v2/{recognizer=projects/*/locations" + - "/*/recognizers/*}:recognize:\001*\332A%recogni" + - "zer,config,config_mask,content\332A!recogni" + - "zer,config,config_mask,uri\022\201\001\n\022Streaming" + - "Recognize\0221.google.cloud.speech.v2.Strea" + - "mingRecognizeRequest\0322.google.cloud.spee" + - "ch.v2.StreamingRecognizeResponse\"\000(\0010\001\022\204" + - "\002\n\016BatchRecognize\022-.google.cloud.speech." + - "v2.BatchRecognizeRequest\032\035.google.longru" + - "nning.Operation\"\243\001\202\323\344\223\002I\"D/v2/{recognize" + - "r=projects/*/locations/*/recognizers/*}:" + - "batchRecognize:\001*\332A#recognizer,config,co" + - "nfig_mask,files\312A+\n\026BatchRecognizeRespon" + - "se\022\021OperationMetadata\022\216\001\n\tGetConfig\022(.go" + - "ogle.cloud.speech.v2.GetConfigRequest\032\036." + - "google.cloud.speech.v2.Config\"7\202\323\344\223\002*\022(/" + - "v2/{name=projects/*/locations/*/config}\332" + - "A\004name\022\261\001\n\014UpdateConfig\022+.google.cloud.s" + - "peech.v2.UpdateConfigRequest\032\036.google.cl" + - "oud.speech.v2.Config\"T\202\323\344\223\00292//v2/{confi" + - "g.name=projects/*/locations/*/config}:\006c" + - "onfig\332A\022config,update_mask\022\367\001\n\021CreateCus" + - "tomClass\0220.google.cloud.speech.v2.Create" + - "CustomClassRequest\032\035.google.longrunning." + - "Operation\"\220\001\202\323\344\223\002A\"1/v2/{parent=projects" + - "/*/locations/*}/customClasses:\014custom_cl" + - "ass\332A#parent,custom_class,custom_class_i" + - "d\312A \n\013CustomClass\022\021OperationMetadata\022\274\001\n" + - "\021ListCustomClasses\0220.google.cloud.speech" + - ".v2.ListCustomClassesRequest\0321.google.cl" + - "oud.speech.v2.ListCustomClassesResponse\"" + - "B\202\323\344\223\0023\0221/v2/{parent=projects/*/location" + - "s/*}/customClasses\332A\006parent\022\246\001\n\016GetCusto" + - "mClass\022-.google.cloud.speech.v2.GetCusto" + - "mClassRequest\032#.google.cloud.speech.v2.C" + - "ustomClass\"@\202\323\344\223\0023\0221/v2/{name=projects/*", - "/locations/*/customClasses/*}\332A\004name\022\371\001\n" + - "\021UpdateCustomClass\0220.google.cloud.speech" + - ".v2.UpdateCustomClassRequest\032\035.google.lo" + - "ngrunning.Operation\"\222\001\202\323\344\223\002N2>/v2/{custo" + - "m_class.name=projects/*/locations/*/cust" + - "omClasses/*}:\014custom_class\332A\030custom_clas" + - "s,update_mask\312A \n\013CustomClass\022\021Operation" + - "Metadata\022\311\001\n\021DeleteCustomClass\0220.google." + - "cloud.speech.v2.DeleteCustomClassRequest" + - "\032\035.google.longrunning.Operation\"c\202\323\344\223\0023*" + - "1/v2/{name=projects/*/locations/*/custom" + - "Classes/*}\332A\004name\312A \n\013CustomClass\022\021Opera" + - "tionMetadata\022\331\001\n\023UndeleteCustomClass\0222.g" + - "oogle.cloud.speech.v2.UndeleteCustomClas" + - "sRequest\032\035.google.longrunning.Operation\"" + - "o\202\323\344\223\002?\":/v2/{name=projects/*/locations/" + - "*/customClasses/*}:undelete:\001*\332A\004name\312A " + - "\n\013CustomClass\022\021OperationMetadata\022\350\001\n\017Cre" + - "atePhraseSet\022..google.cloud.speech.v2.Cr" + - "eatePhraseSetRequest\032\035.google.longrunnin" + - "g.Operation\"\205\001\202\323\344\223\002<\"./v2/{parent=projec" + - "ts/*/locations/*}/phraseSets:\nphrase_set" + - "\332A\037parent,phrase_set,phrase_set_id\312A\036\n\tP" + - "hraseSet\022\021OperationMetadata\022\260\001\n\016ListPhra" + - "seSets\022-.google.cloud.speech.v2.ListPhra" + - "seSetsRequest\032..google.cloud.speech.v2.L" + - "istPhraseSetsResponse\"?\202\323\344\223\0020\022./v2/{pare" + - "nt=projects/*/locations/*}/phraseSets\332A\006" + - "parent\022\235\001\n\014GetPhraseSet\022+.google.cloud.s" + - "peech.v2.GetPhraseSetRequest\032!.google.cl" + - "oud.speech.v2.PhraseSet\"=\202\323\344\223\0020\022./v2/{na" + - "me=projects/*/locations/*/phraseSets/*}\332" + - "A\004name\022\352\001\n\017UpdatePhraseSet\022..google.clou" + - "d.speech.v2.UpdatePhraseSetRequest\032\035.goo" + - "gle.longrunning.Operation\"\207\001\202\323\344\223\002G29/v2/" + - "{phrase_set.name=projects/*/locations/*/" + - "phraseSets/*}:\nphrase_set\332A\026phrase_set,u" + - "pdate_mask\312A\036\n\tPhraseSet\022\021OperationMetad" + - "ata\022\300\001\n\017DeletePhraseSet\022..google.cloud.s" + - "peech.v2.DeletePhraseSetRequest\032\035.google" + - ".longrunning.Operation\"^\202\323\344\223\0020*./v2/{nam" + - "e=projects/*/locations/*/phraseSets/*}\332A" + - "\004name\312A\036\n\tPhraseSet\022\021OperationMetadata\022\320" + - "\001\n\021UndeletePhraseSet\0220.google.cloud.spee" + - "ch.v2.UndeletePhraseSetRequest\032\035.google." + - "longrunning.Operation\"j\202\323\344\223\002<\"7/v2/{name" + - "=projects/*/locations/*/phraseSets/*}:un" + - "delete:\001*\332A\004name\312A\036\n\tPhraseSet\022\021Operatio" + - "nMetadata\032I\312A\025speech.googleapis.com\322A.ht" + - "tps://www.googleapis.com/auth/cloud-plat" + - "formB\223\003\n\032com.google.cloud.speech.v2B\020Clo" + - "udSpeechProtoP\001Z - * Required. The name of the config to retrieve. There is exactly one config - * resource per project per location. The expected format is - * `projects/{project}/locations/{location}/config`. - *
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the config to retrieve. There is exactly one config
-   * resource per project per location. The expected format is
-   * `projects/{project}/locations/{location}/config`.
-   * 
- * - * 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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java deleted file mode 100644 index 802b65dfe8d3..000000000000 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public interface GetCustomClassRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetCustomClassRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the CustomClass to retrieve. The expected format is
-   * `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 CustomClass to retrieve. The expected format is
-   * `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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java deleted file mode 100644 index 1d4c50701f84..000000000000 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public interface GetPhraseSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetPhraseSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the PhraseSet to retrieve. The expected format is
-   * `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 PhraseSet to retrieve. The expected format is
-   * `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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java deleted file mode 100644 index de49eac1d47b..000000000000 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public interface GetRecognizerRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetRecognizerRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the Recognizer to retrieve. The expected format is
-   * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the Recognizer to retrieve. The expected format is
-   * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} From e1e05e01c71ce85e3c8ca9f0ecea34b4f0495df5 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 2 Feb 2023 00:12:08 +0000 Subject: [PATCH 3/4] docs: Clarified boost usage PiperOrigin-RevId: 506405333 Source-Link: https://github.com/googleapis/googleapis/commit/c8a382b9980b59a241a561aef1599980209a5e87 Source-Link: https://github.com/googleapis/googleapis-gen/commit/655941e193fa93cbb2eac7ad5cd2b943b3cf287e Copy-Tag: eyJwIjoiamF2YS1zcGVlY2gvLk93bEJvdC55YW1sIiwiaCI6IjY1NTk0MWUxOTNmYTkzY2JiMmVhYzdhZDVjZDJiOTQzYjNjZjI4N2UifQ== --- .../cloud/speech/v1/AdaptationGrpc.java | 1393 -------- .../google/cloud/speech/v1/SpeechGrpc.java | 579 ---- .../speech/v1p1beta1/AdaptationGrpc.java | 1424 --------- .../cloud/speech/v1p1beta1/SpeechGrpc.java | 589 ---- .../google/cloud/speech/v2/SpeechGrpc.java | 2830 ----------------- .../v1/DeletePhraseSetRequestOrBuilder.java | 56 - .../v1/GetCustomClassRequestOrBuilder.java | 56 - .../speech/v1/RecognizeRequestOrBuilder.java | 110 - .../speech/v1/SpeechAdaptationProto.java | 311 -- .../google/cloud/speech/v1/SpeechProto.java | 495 --- .../cloud/speech/v1/SpeechResourceProto.java | 155 - .../DeletePhraseSetRequestOrBuilder.java | 56 - .../GetCustomClassRequestOrBuilder.java | 56 - .../v1p1beta1/RecognizeRequestOrBuilder.java | 110 - .../v1p1beta1/SpeechAdaptationProto.java | 318 -- .../cloud/speech/v1p1beta1/SpeechProto.java | 513 --- .../speech/v1p1beta1/SpeechResourceProto.java | 190 -- .../v2/AutoDetectDecodingConfigOrBuilder.java | 24 - .../v2/BatchRecognizeMetadataOrBuilder.java | 96 - .../cloud/speech/v2/CloudSpeechProto.java | 1346 -------- .../speech/v2/GetConfigRequestOrBuilder.java | 58 - .../v2/GetCustomClassRequestOrBuilder.java | 56 - .../v2/GetPhraseSetRequestOrBuilder.java | 56 - .../v2/GetRecognizerRequestOrBuilder.java | 56 - .../cloud/speech/v1/AdaptationClient.java | 0 .../cloud/speech/v1/AdaptationSettings.java | 1 + .../google/cloud/speech/v1/SpeechClient.java | 0 .../cloud/speech/v1/SpeechSettings.java | 1 + .../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 | 0 .../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 | 0 .../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 | 0 .../cloud/speech/v1/SpeechClientTest.java | 0 .../cloud/speech/v1/AdaptationGrpc.java | 1085 +++++++ .../google/cloud/speech/v1/SpeechGrpc.java | 479 +++ .../speech/v1/CreateCustomClassRequest.java | 592 ++-- .../v1/CreateCustomClassRequestOrBuilder.java | 70 +- .../speech/v1/CreatePhraseSetRequest.java | 591 ++-- .../v1/CreatePhraseSetRequestOrBuilder.java | 70 +- .../google/cloud/speech/v1/CustomClass.java | 856 ++--- .../cloud/speech/v1/CustomClassName.java | 0 .../cloud/speech/v1/CustomClassOrBuilder.java | 54 +- .../speech/v1/DeleteCustomClassRequest.java | 353 +- .../v1/DeleteCustomClassRequestOrBuilder.java | 35 +- .../speech/v1/DeletePhraseSetRequest.java | 353 +- .../v1/DeletePhraseSetRequestOrBuilder.java | 31 + .../speech/v1/GetCustomClassRequest.java | 353 +- .../v1/GetCustomClassRequestOrBuilder.java | 31 + .../cloud/speech/v1/GetPhraseSetRequest.java | 346 +- .../v1/GetPhraseSetRequestOrBuilder.java | 35 +- .../speech/v1/ListCustomClassesRequest.java | 458 ++- .../v1/ListCustomClassesRequestOrBuilder.java | 47 +- .../speech/v1/ListCustomClassesResponse.java | 481 ++- .../ListCustomClassesResponseOrBuilder.java | 45 +- .../cloud/speech/v1/ListPhraseSetRequest.java | 454 ++- .../v1/ListPhraseSetRequestOrBuilder.java | 47 +- .../speech/v1/ListPhraseSetResponse.java | 485 ++- .../v1/ListPhraseSetResponseOrBuilder.java | 45 +- .../google/cloud/speech/v1/LocationName.java | 0 .../v1/LongRunningRecognizeMetadata.java | 542 ++-- ...LongRunningRecognizeMetadataOrBuilder.java | 46 +- .../v1/LongRunningRecognizeRequest.java | 693 ++-- .../LongRunningRecognizeRequestOrBuilder.java | 78 +- .../v1/LongRunningRecognizeResponse.java | 835 ++--- ...LongRunningRecognizeResponseOrBuilder.java | 71 +- .../com/google/cloud/speech/v1/PhraseSet.java | 898 +++--- .../google/cloud/speech/v1/PhraseSetName.java | 0 .../cloud/speech/v1/PhraseSetOrBuilder.java | 52 +- .../cloud/speech/v1/RecognitionAudio.java | 433 ++- .../speech/v1/RecognitionAudioOrBuilder.java | 36 +- .../cloud/speech/v1/RecognitionConfig.java | 1646 ++++------ .../speech/v1/RecognitionConfigOrBuilder.java | 145 +- .../cloud/speech/v1/RecognitionMetadata.java | 1201 +++---- .../v1/RecognitionMetadataOrBuilder.java | 93 +- .../cloud/speech/v1/RecognizeRequest.java | 539 ++-- .../speech/v1/RecognizeRequestOrBuilder.java | 66 + .../cloud/speech/v1/RecognizeResponse.java | 646 ++-- .../speech/v1/RecognizeResponseOrBuilder.java | 55 +- .../speech/v1/SpeakerDiarizationConfig.java | 431 +-- .../v1/SpeakerDiarizationConfigOrBuilder.java | 40 +- .../cloud/speech/v1/SpeechAdaptation.java | 1163 +++---- .../cloud/speech/v1/SpeechAdaptationInfo.java | 357 +-- .../v1/SpeechAdaptationInfoOrBuilder.java | 30 +- .../speech/v1/SpeechAdaptationOrBuilder.java | 92 +- .../speech/v1/SpeechAdaptationProto.java | 285 ++ .../google/cloud/speech/v1/SpeechContext.java | 380 +-- .../speech/v1/SpeechContextOrBuilder.java | 39 +- .../google/cloud/speech/v1/SpeechProto.java | 427 +++ .../v1/SpeechRecognitionAlternative.java | 524 ++- ...SpeechRecognitionAlternativeOrBuilder.java | 49 +- .../speech/v1/SpeechRecognitionResult.java | 625 ++-- .../v1/SpeechRecognitionResultOrBuilder.java | 53 +- .../cloud/speech/v1/SpeechResourceProto.java | 135 + .../speech/v1/StreamingRecognitionConfig.java | 476 ++- .../StreamingRecognitionConfigOrBuilder.java | 44 +- .../speech/v1/StreamingRecognitionResult.java | 700 ++-- .../StreamingRecognitionResultOrBuilder.java | 59 +- .../speech/v1/StreamingRecognizeRequest.java | 459 ++- .../StreamingRecognizeRequestOrBuilder.java | 35 +- .../speech/v1/StreamingRecognizeResponse.java | 891 ++---- .../StreamingRecognizeResponseOrBuilder.java | 75 +- .../speech/v1/TranscriptOutputConfig.java | 383 +-- .../v1/TranscriptOutputConfigOrBuilder.java | 30 +- .../speech/v1/UpdateCustomClassRequest.java | 491 ++- .../v1/UpdateCustomClassRequestOrBuilder.java | 46 +- .../speech/v1/UpdatePhraseSetRequest.java | 490 ++- .../v1/UpdatePhraseSetRequestOrBuilder.java | 46 +- .../com/google/cloud/speech/v1/WordInfo.java | 546 ++-- .../cloud/speech/v1/WordInfoOrBuilder.java | 49 +- .../google/cloud/speech/v1/cloud_speech.proto | 0 .../speech/v1/cloud_speech_adaptation.proto | 18 +- .../google/cloud/speech/v1/resource.proto | 12 +- .../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 | 0 .../SyncDeleteCustomClassCustomclassname.java | 0 .../SyncDeleteCustomClassString.java | 0 .../deletephraseset/AsyncDeletePhraseSet.java | 0 .../deletephraseset/SyncDeletePhraseSet.java | 0 .../SyncDeletePhraseSetPhrasesetname.java | 0 .../SyncDeletePhraseSetString.java | 0 .../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 .../speech/create/SyncCreateSetEndpoint.java | 0 .../AsyncLongRunningRecognize.java | 0 .../AsyncLongRunningRecognizeLRO.java | 0 .../SyncLongRunningRecognize.java | 0 ...nizeRecognitionconfigRecognitionaudio.java | 0 .../v1/speech/recognize/AsyncRecognize.java | 0 .../v1/speech/recognize/SyncRecognize.java | 0 ...nizeRecognitionconfigRecognitionaudio.java | 0 .../AsyncStreamingRecognize.java | 0 .../recognize/SyncRecognize.java | 0 .../createphraseset/SyncCreatePhraseSet.java | 0 .../recognize/SyncRecognize.java | 0 .../speech/v1p1beta1/AdaptationClient.java | 0 .../speech/v1p1beta1/AdaptationSettings.java | 1 + .../cloud/speech/v1p1beta1/SpeechClient.java | 0 .../speech/v1p1beta1/SpeechSettings.java | 1 + .../speech/v1p1beta1/gapic_metadata.json | 0 .../cloud/speech/v1p1beta1/package-info.java | 0 .../speech/v1p1beta1/stub/AdaptationStub.java | 0 .../stub/AdaptationStubSettings.java | 0 .../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 | 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 | 0 .../speech/v1p1beta1/SpeechClientTest.java | 0 .../speech/v1p1beta1/AdaptationGrpc.java | 1085 +++++++ .../cloud/speech/v1p1beta1/SpeechGrpc.java | 479 +++ .../v1p1beta1/CreateCustomClassRequest.java | 592 ++-- .../CreateCustomClassRequestOrBuilder.java | 70 +- .../v1p1beta1/CreatePhraseSetRequest.java | 591 ++-- .../CreatePhraseSetRequestOrBuilder.java | 70 +- .../cloud/speech/v1p1beta1/CustomClass.java | 863 ++--- .../speech/v1p1beta1/CustomClassName.java | 0 .../v1p1beta1/CustomClassOrBuilder.java | 54 +- .../v1p1beta1/DeleteCustomClassRequest.java | 356 +-- .../DeleteCustomClassRequestOrBuilder.java | 35 +- .../v1p1beta1/DeletePhraseSetRequest.java | 356 +-- .../DeletePhraseSetRequestOrBuilder.java | 31 + .../v1p1beta1/GetCustomClassRequest.java | 356 +-- .../GetCustomClassRequestOrBuilder.java | 31 + .../speech/v1p1beta1/GetPhraseSetRequest.java | 356 +-- .../GetPhraseSetRequestOrBuilder.java | 35 +- .../v1p1beta1/ListCustomClassesRequest.java | 461 ++- .../ListCustomClassesRequestOrBuilder.java | 47 +- .../v1p1beta1/ListCustomClassesResponse.java | 466 ++- .../ListCustomClassesResponseOrBuilder.java | 45 +- .../v1p1beta1/ListPhraseSetRequest.java | 461 ++- .../ListPhraseSetRequestOrBuilder.java | 47 +- .../v1p1beta1/ListPhraseSetResponse.java | 489 ++- .../ListPhraseSetResponseOrBuilder.java | 45 +- .../cloud/speech/v1p1beta1/LocationName.java | 0 .../LongRunningRecognizeMetadata.java | 718 ++--- ...LongRunningRecognizeMetadataOrBuilder.java | 66 +- .../LongRunningRecognizeRequest.java | 710 ++--- .../LongRunningRecognizeRequestOrBuilder.java | 78 +- .../LongRunningRecognizeResponse.java | 878 ++--- ...LongRunningRecognizeResponseOrBuilder.java | 74 +- .../cloud/speech/v1p1beta1/PhraseSet.java | 872 ++--- .../cloud/speech/v1p1beta1/PhraseSetName.java | 0 .../speech/v1p1beta1/PhraseSetOrBuilder.java | 48 +- .../speech/v1p1beta1/RecognitionAudio.java | 440 ++- .../v1p1beta1/RecognitionAudioOrBuilder.java | 36 +- .../speech/v1p1beta1/RecognitionConfig.java | 1943 ++++------- .../v1p1beta1/RecognitionConfigOrBuilder.java | 188 +- .../speech/v1p1beta1/RecognitionMetadata.java | 1314 +++----- .../RecognitionMetadataOrBuilder.java | 116 +- .../speech/v1p1beta1/RecognizeRequest.java | 541 ++-- .../v1p1beta1/RecognizeRequestOrBuilder.java | 66 + .../speech/v1p1beta1/RecognizeResponse.java | 667 ++-- .../v1p1beta1/RecognizeResponseOrBuilder.java | 58 +- .../v1p1beta1/SpeakerDiarizationConfig.java | 418 +-- .../SpeakerDiarizationConfigOrBuilder.java | 36 +- .../speech/v1p1beta1/SpeechAdaptation.java | 1189 +++---- .../v1p1beta1/SpeechAdaptationInfo.java | 364 +-- .../SpeechAdaptationInfoOrBuilder.java | 30 +- .../v1p1beta1/SpeechAdaptationOrBuilder.java | 92 +- .../v1p1beta1/SpeechAdaptationProto.java | 292 ++ .../cloud/speech/v1p1beta1/SpeechContext.java | 389 +-- .../v1p1beta1/SpeechContextOrBuilder.java | 39 +- .../cloud/speech/v1p1beta1/SpeechProto.java | 441 +++ .../SpeechRecognitionAlternative.java | 545 ++-- ...SpeechRecognitionAlternativeOrBuilder.java | 48 +- .../v1p1beta1/SpeechRecognitionResult.java | 723 ++--- .../SpeechRecognitionResultOrBuilder.java | 67 +- .../speech/v1p1beta1/SpeechResourceProto.java | 162 + .../v1p1beta1/StreamingRecognitionConfig.java | 484 ++- .../StreamingRecognitionConfigOrBuilder.java | 44 +- .../v1p1beta1/StreamingRecognitionResult.java | 805 ++--- .../StreamingRecognitionResultOrBuilder.java | 73 +- .../v1p1beta1/StreamingRecognizeRequest.java | 470 ++- .../StreamingRecognizeRequestOrBuilder.java | 38 +- .../v1p1beta1/StreamingRecognizeResponse.java | 930 ++---- .../StreamingRecognizeResponseOrBuilder.java | 77 +- .../v1p1beta1/TranscriptNormalization.java | 971 +++--- .../TranscriptNormalizationOrBuilder.java | 33 +- .../v1p1beta1/TranscriptOutputConfig.java | 389 +-- .../TranscriptOutputConfigOrBuilder.java | 33 +- .../v1p1beta1/UpdateCustomClassRequest.java | 491 ++- .../UpdateCustomClassRequestOrBuilder.java | 46 +- .../v1p1beta1/UpdatePhraseSetRequest.java | 490 ++- .../UpdatePhraseSetRequestOrBuilder.java | 46 +- .../cloud/speech/v1p1beta1/WordInfo.java | 553 ++-- .../speech/v1p1beta1/WordInfoOrBuilder.java | 49 +- .../cloud/speech/v1p1beta1/cloud_speech.proto | 0 .../v1p1beta1/cloud_speech_adaptation.proto | 18 +- .../cloud/speech/v1p1beta1/resource.proto | 4 +- .../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 | 0 .../SyncDeleteCustomClassCustomclassname.java | 0 .../SyncDeleteCustomClassString.java | 0 .../deletephraseset/AsyncDeletePhraseSet.java | 0 .../deletephraseset/SyncDeletePhraseSet.java | 0 .../SyncDeletePhraseSetPhrasesetname.java | 0 .../SyncDeletePhraseSetString.java | 0 .../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 .../speech/create/SyncCreateSetEndpoint.java | 0 .../AsyncLongRunningRecognize.java | 0 .../AsyncLongRunningRecognizeLRO.java | 0 .../SyncLongRunningRecognize.java | 0 ...nizeRecognitionconfigRecognitionaudio.java | 0 .../speech/recognize/AsyncRecognize.java | 0 .../speech/recognize/SyncRecognize.java | 0 ...nizeRecognitionconfigRecognitionaudio.java | 0 .../AsyncStreamingRecognize.java | 0 .../recognize/SyncRecognize.java | 0 .../createphraseset/SyncCreatePhraseSet.java | 0 .../recognize/SyncRecognize.java | 0 .../google/cloud/speech/v2/SpeechClient.java | 0 .../cloud/speech/v2/SpeechSettings.java | 1 + .../cloud/speech/v2/gapic_metadata.json | 0 .../google/cloud/speech/v2/package-info.java | 0 .../v2/stub/GrpcSpeechCallableFactory.java | 0 .../cloud/speech/v2/stub/GrpcSpeechStub.java | 1 + .../stub/HttpJsonSpeechCallableFactory.java | 0 .../speech/v2/stub/HttpJsonSpeechStub.java | 1 + .../cloud/speech/v2/stub/SpeechStub.java | 0 .../speech/v2/stub/SpeechStubSettings.java | 0 .../google/cloud/speech/v2/MockSpeech.java | 0 .../cloud/speech/v2/MockSpeechImpl.java | 0 .../speech/v2/SpeechClientHttpJsonTest.java | 0 .../cloud/speech/v2/SpeechClientTest.java | 0 .../google/cloud/speech/v2/SpeechGrpc.java | 2207 +++++++++++++ .../speech/v2/AutoDetectDecodingConfig.java | 251 +- .../v2/AutoDetectDecodingConfigOrBuilder.java | 9 + .../speech/v2/BatchRecognizeFileMetadata.java | 572 ++-- .../BatchRecognizeFileMetadataOrBuilder.java | 46 +- .../speech/v2/BatchRecognizeFileResult.java | 403 +-- .../v2/BatchRecognizeFileResultOrBuilder.java | 35 +- .../speech/v2/BatchRecognizeMetadata.java | 584 ++-- .../v2/BatchRecognizeMetadataOrBuilder.java | 63 + .../speech/v2/BatchRecognizeRequest.java | 687 ++-- .../v2/BatchRecognizeRequestOrBuilder.java | 69 +- .../speech/v2/BatchRecognizeResponse.java | 504 ++- .../v2/BatchRecognizeResponseOrBuilder.java | 47 +- .../BatchRecognizeTranscriptionMetadata.java | 463 ++- ...cognizeTranscriptionMetadataOrBuilder.java | 38 +- .../cloud/speech/v2/CloudSpeechProto.java | 1186 +++++++ .../com/google/cloud/speech/v2/Config.java | 545 ++-- .../google/cloud/speech/v2/ConfigName.java | 0 .../cloud/speech/v2/ConfigOrBuilder.java | 61 +- .../speech/v2/CreateCustomClassRequest.java | 607 ++-- .../v2/CreateCustomClassRequestOrBuilder.java | 67 +- .../speech/v2/CreatePhraseSetRequest.java | 606 ++-- .../v2/CreatePhraseSetRequestOrBuilder.java | 67 +- .../speech/v2/CreateRecognizerRequest.java | 606 ++-- .../v2/CreateRecognizerRequestOrBuilder.java | 67 +- .../google/cloud/speech/v2/CustomClass.java | 2161 +++++-------- .../cloud/speech/v2/CustomClassName.java | 0 .../cloud/speech/v2/CustomClassOrBuilder.java | 221 +- .../speech/v2/DeleteCustomClassRequest.java | 497 ++- .../v2/DeleteCustomClassRequestOrBuilder.java | 50 +- .../speech/v2/DeletePhraseSetRequest.java | 497 ++- .../v2/DeletePhraseSetRequestOrBuilder.java | 50 +- .../speech/v2/DeleteRecognizerRequest.java | 497 ++- .../v2/DeleteRecognizerRequestOrBuilder.java | 50 +- .../speech/v2/ExplicitDecodingConfig.java | 493 ++- .../v2/ExplicitDecodingConfigOrBuilder.java | 38 +- .../cloud/speech/v2/GetConfigRequest.java | 346 +- .../speech/v2/GetConfigRequestOrBuilder.java | 33 + .../speech/v2/GetCustomClassRequest.java | 353 +- .../v2/GetCustomClassRequestOrBuilder.java | 31 + .../cloud/speech/v2/GetPhraseSetRequest.java | 346 +- .../v2/GetPhraseSetRequestOrBuilder.java | 31 + .../cloud/speech/v2/GetRecognizerRequest.java | 349 +- .../v2/GetRecognizerRequestOrBuilder.java | 31 + .../speech/v2/ListCustomClassesRequest.java | 494 ++- .../v2/ListCustomClassesRequestOrBuilder.java | 50 +- .../speech/v2/ListCustomClassesResponse.java | 481 ++- .../ListCustomClassesResponseOrBuilder.java | 45 +- .../speech/v2/ListPhraseSetsRequest.java | 494 ++- .../v2/ListPhraseSetsRequestOrBuilder.java | 50 +- .../speech/v2/ListPhraseSetsResponse.java | 485 ++- .../v2/ListPhraseSetsResponseOrBuilder.java | 45 +- .../speech/v2/ListRecognizersRequest.java | 494 ++- .../v2/ListRecognizersRequestOrBuilder.java | 50 +- .../speech/v2/ListRecognizersResponse.java | 486 ++- .../v2/ListRecognizersResponseOrBuilder.java | 45 +- .../google/cloud/speech/v2/LocationName.java | 0 .../cloud/speech/v2/OperationMetadata.java | 2660 +++++----------- .../speech/v2/OperationMetadataOrBuilder.java | 229 +- .../com/google/cloud/speech/v2/PhraseSet.java | 2231 +++++-------- .../google/cloud/speech/v2/PhraseSetName.java | 0 .../cloud/speech/v2/PhraseSetOrBuilder.java | 224 +- .../cloud/speech/v2/RecognitionConfig.java | 696 ++-- .../speech/v2/RecognitionConfigOrBuilder.java | 50 +- .../cloud/speech/v2/RecognitionFeatures.java | 757 ++--- .../v2/RecognitionFeaturesOrBuilder.java | 59 +- .../v2/RecognitionResponseMetadata.java | 360 +-- .../RecognitionResponseMetadataOrBuilder.java | 26 +- .../cloud/speech/v2/RecognizeRequest.java | 716 ++--- .../speech/v2/RecognizeRequestOrBuilder.java | 69 +- .../cloud/speech/v2/RecognizeResponse.java | 495 ++- .../speech/v2/RecognizeResponseOrBuilder.java | 44 +- .../google/cloud/speech/v2/Recognizer.java | 1977 +++++------- .../cloud/speech/v2/RecognizerName.java | 0 .../cloud/speech/v2/RecognizerOrBuilder.java | 238 +- .../speech/v2/SpeakerDiarizationConfig.java | 322 +- .../v2/SpeakerDiarizationConfigOrBuilder.java | 24 +- .../cloud/speech/v2/SpeechAdaptation.java | 1184 +++---- .../speech/v2/SpeechAdaptationOrBuilder.java | 65 +- .../v2/SpeechRecognitionAlternative.java | 524 ++- ...SpeechRecognitionAlternativeOrBuilder.java | 49 +- .../speech/v2/SpeechRecognitionResult.java | 625 ++-- .../v2/SpeechRecognitionResultOrBuilder.java | 53 +- .../speech/v2/StreamingRecognitionConfig.java | 607 ++-- .../StreamingRecognitionConfigOrBuilder.java | 54 +- .../v2/StreamingRecognitionFeatures.java | 1078 +++---- ...StreamingRecognitionFeaturesOrBuilder.java | 50 +- .../speech/v2/StreamingRecognitionResult.java | 700 ++-- .../StreamingRecognitionResultOrBuilder.java | 59 +- .../speech/v2/StreamingRecognizeRequest.java | 556 ++-- .../StreamingRecognizeRequestOrBuilder.java | 52 +- .../speech/v2/StreamingRecognizeResponse.java | 777 ++--- .../StreamingRecognizeResponseOrBuilder.java | 64 +- .../speech/v2/UndeleteCustomClassRequest.java | 464 ++- .../UndeleteCustomClassRequestOrBuilder.java | 47 +- .../speech/v2/UndeletePhraseSetRequest.java | 461 ++- .../v2/UndeletePhraseSetRequestOrBuilder.java | 47 +- .../speech/v2/UndeleteRecognizerRequest.java | 461 ++- .../UndeleteRecognizerRequestOrBuilder.java | 47 +- .../cloud/speech/v2/UpdateConfigRequest.java | 457 ++- .../v2/UpdateConfigRequestOrBuilder.java | 43 +- .../speech/v2/UpdateCustomClassRequest.java | 527 ++- .../v2/UpdateCustomClassRequestOrBuilder.java | 49 +- .../speech/v2/UpdatePhraseSetRequest.java | 526 ++- .../v2/UpdatePhraseSetRequestOrBuilder.java | 49 +- .../speech/v2/UpdateRecognizerRequest.java | 526 ++- .../v2/UpdateRecognizerRequestOrBuilder.java | 49 +- .../com/google/cloud/speech/v2/WordInfo.java | 592 ++-- .../cloud/speech/v2/WordInfoOrBuilder.java | 55 +- .../google/cloud/speech/v2/cloud_speech.proto | 0 .../batchrecognize/AsyncBatchRecognize.java | 0 .../AsyncBatchRecognizeLRO.java | 0 .../batchrecognize/SyncBatchRecognize.java | 0 ...eldmaskListbatchrecognizefilemetadata.java | 0 ...eldmaskListbatchrecognizefilemetadata.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../speech/create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateCustomClass.java | 0 .../AsyncCreateCustomClassLRO.java | 0 .../SyncCreateCustomClass.java | 0 ...tomClassLocationnameCustomclassString.java | 0 ...ateCustomClassStringCustomclassString.java | 0 .../createphraseset/AsyncCreatePhraseSet.java | 0 .../AsyncCreatePhraseSetLRO.java | 0 .../createphraseset/SyncCreatePhraseSet.java | 0 ...ePhraseSetLocationnamePhrasesetString.java | 0 ...cCreatePhraseSetStringPhrasesetString.java | 0 .../AsyncCreateRecognizer.java | 0 .../AsyncCreateRecognizerLRO.java | 0 .../SyncCreateRecognizer.java | 0 ...ecognizerLocationnameRecognizerString.java | 0 ...reateRecognizerStringRecognizerString.java | 0 .../AsyncDeleteCustomClass.java | 0 .../AsyncDeleteCustomClassLRO.java | 0 .../SyncDeleteCustomClass.java | 0 .../SyncDeleteCustomClassCustomclassname.java | 0 .../SyncDeleteCustomClassString.java | 0 .../deletephraseset/AsyncDeletePhraseSet.java | 0 .../AsyncDeletePhraseSetLRO.java | 0 .../deletephraseset/SyncDeletePhraseSet.java | 0 .../SyncDeletePhraseSetPhrasesetname.java | 0 .../SyncDeletePhraseSetString.java | 0 .../AsyncDeleteRecognizer.java | 0 .../AsyncDeleteRecognizerLRO.java | 0 .../SyncDeleteRecognizer.java | 0 .../SyncDeleteRecognizerRecognizername.java | 0 .../SyncDeleteRecognizerString.java | 0 .../v2/speech/getconfig/AsyncGetConfig.java | 0 .../v2/speech/getconfig/SyncGetConfig.java | 0 .../getconfig/SyncGetConfigConfigname.java | 0 .../speech/getconfig/SyncGetConfigString.java | 0 .../getcustomclass/AsyncGetCustomClass.java | 0 .../getcustomclass/SyncGetCustomClass.java | 0 .../SyncGetCustomClassCustomclassname.java | 0 .../SyncGetCustomClassString.java | 0 .../getphraseset/AsyncGetPhraseSet.java | 0 .../speech/getphraseset/SyncGetPhraseSet.java | 0 .../SyncGetPhraseSetPhrasesetname.java | 0 .../getphraseset/SyncGetPhraseSetString.java | 0 .../getrecognizer/AsyncGetRecognizer.java | 0 .../getrecognizer/SyncGetRecognizer.java | 0 .../SyncGetRecognizerRecognizername.java | 0 .../SyncGetRecognizerString.java | 0 .../AsyncListCustomClasses.java | 0 .../AsyncListCustomClassesPaged.java | 0 .../SyncListCustomClasses.java | 0 .../SyncListCustomClassesLocationname.java | 0 .../SyncListCustomClassesString.java | 0 .../listphrasesets/AsyncListPhraseSets.java | 0 .../AsyncListPhraseSetsPaged.java | 0 .../listphrasesets/SyncListPhraseSets.java | 0 .../SyncListPhraseSetsLocationname.java | 0 .../SyncListPhraseSetsString.java | 0 .../listrecognizers/AsyncListRecognizers.java | 0 .../AsyncListRecognizersPaged.java | 0 .../listrecognizers/SyncListRecognizers.java | 0 .../SyncListRecognizersLocationname.java | 0 .../SyncListRecognizersString.java | 0 .../v2/speech/recognize/AsyncRecognize.java | 0 .../v2/speech/recognize/SyncRecognize.java | 0 ...eRecognitionconfigFieldmaskBytestring.java | 0 ...rnameRecognitionconfigFieldmaskString.java | 0 ...gRecognitionconfigFieldmaskBytestring.java | 0 ...tringRecognitionconfigFieldmaskString.java | 0 .../AsyncStreamingRecognize.java | 0 .../AsyncUndeleteCustomClass.java | 0 .../AsyncUndeleteCustomClassLRO.java | 0 .../SyncUndeleteCustomClass.java | 0 ...yncUndeleteCustomClassCustomclassname.java | 0 .../SyncUndeleteCustomClassString.java | 0 .../AsyncUndeletePhraseSet.java | 0 .../AsyncUndeletePhraseSetLRO.java | 0 .../SyncUndeletePhraseSet.java | 0 .../SyncUndeletePhraseSetPhrasesetname.java | 0 .../SyncUndeletePhraseSetString.java | 0 .../AsyncUndeleteRecognizer.java | 0 .../AsyncUndeleteRecognizerLRO.java | 0 .../SyncUndeleteRecognizer.java | 0 .../SyncUndeleteRecognizerRecognizername.java | 0 .../SyncUndeleteRecognizerString.java | 0 .../updateconfig/AsyncUpdateConfig.java | 0 .../speech/updateconfig/SyncUpdateConfig.java | 0 .../SyncUpdateConfigConfigFieldmask.java | 0 .../AsyncUpdateCustomClass.java | 0 .../AsyncUpdateCustomClassLRO.java | 0 .../SyncUpdateCustomClass.java | 0 ...UpdateCustomClassCustomclassFieldmask.java | 0 .../updatephraseset/AsyncUpdatePhraseSet.java | 0 .../AsyncUpdatePhraseSetLRO.java | 0 .../updatephraseset/SyncUpdatePhraseSet.java | 0 ...SyncUpdatePhraseSetPhrasesetFieldmask.java | 0 .../AsyncUpdateRecognizer.java | 0 .../AsyncUpdateRecognizerLRO.java | 0 .../SyncUpdateRecognizer.java | 0 ...ncUpdateRecognizerRecognizerFieldmask.java | 0 .../getrecognizer/SyncGetRecognizer.java | 0 .../getrecognizer/SyncGetRecognizer.java | 0 584 files changed, 39092 insertions(+), 65073 deletions(-) delete mode 100644 java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java delete mode 100644 java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java delete mode 100644 java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java delete mode 100644 java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java delete mode 100644 java-speech/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java delete mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java delete mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java delete mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java delete mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java delete mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java delete mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java delete mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java delete mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequestOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java delete mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java (99%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java (99%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java (99%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java (99%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java (100%) create mode 100644 owl-bot-staging/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java create mode 100644 owl-bot-staging/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java (66%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java (64%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java (66%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java (64%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java (71%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java (66%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java (59%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java (62%) create mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java (62%) create mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java (66%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java (59%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java (72%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java (67%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java (69%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java (71%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java (66%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java (74%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java (58%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java (51%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java (73%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java (84%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java (73%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java (68%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java (73%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java (79%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java (83%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java (94%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java (71%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java (76%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java (59%) create mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java (72%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java (80%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java (69%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java (64%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java (76%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java (68%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java (58%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java (82%) create mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContext.java (78%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java (85%) create mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternative.java (75%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java (78%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java (75%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java (83%) create mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfig.java (69%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java (76%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java (85%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java (72%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java (79%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java (75%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java (85%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java (67%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java (63%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java (69%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java (73%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java (69%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java (72%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java (76%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java (84%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto (97%) rename {java-speech => owl-bot-staging/java-speech/v1}/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto (93%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetEndpoint.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/AsyncCreateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/AsyncCreatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/AsyncDeletePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/AsyncGetCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/AsyncGetPhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClasses.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClasses.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSetPaged.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetLocationname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetEndpoint.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/AsyncRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speech/streamingrecognize/AsyncStreamingRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1}/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java (99%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java (99%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java (99%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java (99%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java (100%) create mode 100644 owl-bot-staging/java-speech/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java create mode 100644 owl-bot-staging/java-speech/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java (67%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java (64%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java (67%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java (64%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java (72%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java (67%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java (59%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java (64%) create mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java (63%) create mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java (67%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java (59%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java (71%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java (73%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java (69%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java (71%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java (69%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java (71%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java (67%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java (66%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java (58%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java (51%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java (72%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java (83%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java (75%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java (74%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java (73%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java (79%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java (82%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java (93%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java (69%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java (69%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java (59%) create mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java (71%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java (79%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java (68%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java (76%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java (67%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java (59%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java (83%) create mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java (78%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java (85%) create mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java (74%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java (79%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java (72%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java (79%) create mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java (68%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java (73%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java (82%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java (71%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java (78%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java (74%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java (83%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java (71%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java (78%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java (67%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java (61%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java (72%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java (70%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java (72%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java (76%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java (84%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto (97%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto (98%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetEndpoint.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/AsyncCreateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/AsyncCreatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/AsyncDeletePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/AsyncGetCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/AsyncGetPhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClasses.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClasses.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSetPaged.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetLocationname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetEndpoint.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/AsyncRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/streamingrecognize/AsyncStreamingRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v1p1beta1}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java (99%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/gapic_metadata.json (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/package-info.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechCallableFactory.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java (99%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechCallableFactory.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java (99%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeech.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeechImpl.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientHttpJsonTest.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientTest.java (100%) create mode 100644 owl-bot-staging/java-speech/v2/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java (64%) create mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java (77%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java (87%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java (68%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java (60%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java (51%) create mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java (76%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java (84%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java (59%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java (60%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java (67%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java (63%) create mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Config.java (67%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java (68%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java (65%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java (59%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java (65%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java (58%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java (65%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java (58%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java (69%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java (75%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java (68%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java (63%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java (68%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java (63%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java (68%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java (63%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java (68%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java (64%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java (63%) create mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java (63%) create mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java (63%) create mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java (63%) create mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java (70%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java (68%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java (72%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java (70%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java (67%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java (72%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java (70%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java (66%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java (72%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java (72%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java (87%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java (70%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java (75%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java (70%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java (83%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java (76%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java (86%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java (65%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java (61%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java (78%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java (87%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java (72%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java (75%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java (71%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java (81%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java (69%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java (64%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java (72%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java (71%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java (75%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java (78%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java (75%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java (82%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java (73%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java (83%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java (66%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java (61%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java (76%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java (85%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java (70%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java (71%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java (76%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java (84%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java (67%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java (60%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java (67%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java (60%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java (67%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java (60%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java (69%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java (70%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java (67%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java (67%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java (68%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java (69%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java (67%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java (69%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java (77%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java (86%) rename {java-speech => owl-bot-staging/java-speech/v2}/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognizeLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeRecognizernameRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeStringRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetEndpoint.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClassLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassStringCustomclassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSetLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizerLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerLocationnameRecognizerString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerStringRecognizerString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClassLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassCustomclassname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSetLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetPhrasesetname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizerLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerRecognizername.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/AsyncGetConfig.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfig.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigConfigname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/AsyncGetCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassCustomclassname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/AsyncGetPhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetPhrasesetname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/AsyncGetRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerRecognizername.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClasses.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClassesPaged.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClasses.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesLocationname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSets.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSetsPaged.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSets.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsLocationname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizers.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizersPaged.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizers.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersLocationname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/AsyncRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskBytestring.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskBytestring.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/streamingrecognize/AsyncStreamingRecognize.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClassLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassCustomclassname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSetLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetPhrasesetname.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizerLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerRecognizername.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerString.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/AsyncUpdateConfig.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfig.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfigConfigFieldmask.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClassLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClass.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSetLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSet.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizerLRO.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizerRecognizerFieldmask.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/speechsettings/getrecognizer/SyncGetRecognizer.java (100%) rename {java-speech => owl-bot-staging/java-speech/v2}/samples/snippets/generated/com/google/cloud/speech/v2/stub/speechstubsettings/getrecognizer/SyncGetRecognizer.java (100%) diff --git a/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java b/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java deleted file mode 100644 index 5a6d1e037728..000000000000 --- a/java-speech/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/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java b/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java deleted file mode 100644 index 846458da2c9f..000000000000 --- a/java-speech/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/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java b/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java deleted file mode 100644 index 5a5395620967..000000000000 --- a/java-speech/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/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java b/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java deleted file mode 100644 index c3bc87f0fa55..000000000000 --- a/java-speech/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/java-speech/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java b/java-speech/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java deleted file mode 100644 index f70343dfe149..000000000000 --- a/java-speech/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java +++ /dev/null @@ -1,2830 +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.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Enables speech transcription and resource management.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v2/cloud_speech.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SpeechGrpc { - - private SpeechGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.speech.v2.Speech"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.longrunning.Operation> - getCreateRecognizerMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRecognizer", - requestType = com.google.cloud.speech.v2.CreateRecognizerRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.longrunning.Operation> - getCreateRecognizerMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.longrunning.Operation> - getCreateRecognizerMethod; - if ((getCreateRecognizerMethod = SpeechGrpc.getCreateRecognizerMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getCreateRecognizerMethod = SpeechGrpc.getCreateRecognizerMethod) == null) { - SpeechGrpc.getCreateRecognizerMethod = - getCreateRecognizerMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRecognizer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.CreateRecognizerRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreateRecognizer")) - .build(); - } - } - } - return getCreateRecognizerMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.ListRecognizersRequest, - com.google.cloud.speech.v2.ListRecognizersResponse> - getListRecognizersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRecognizers", - requestType = com.google.cloud.speech.v2.ListRecognizersRequest.class, - responseType = com.google.cloud.speech.v2.ListRecognizersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.ListRecognizersRequest, - com.google.cloud.speech.v2.ListRecognizersResponse> - getListRecognizersMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.ListRecognizersRequest, - com.google.cloud.speech.v2.ListRecognizersResponse> - getListRecognizersMethod; - if ((getListRecognizersMethod = SpeechGrpc.getListRecognizersMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getListRecognizersMethod = SpeechGrpc.getListRecognizersMethod) == null) { - SpeechGrpc.getListRecognizersMethod = - getListRecognizersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRecognizers")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.ListRecognizersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.ListRecognizersResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListRecognizers")) - .build(); - } - } - } - return getListRecognizersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetRecognizerRequest, com.google.cloud.speech.v2.Recognizer> - getGetRecognizerMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRecognizer", - requestType = com.google.cloud.speech.v2.GetRecognizerRequest.class, - responseType = com.google.cloud.speech.v2.Recognizer.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetRecognizerRequest, com.google.cloud.speech.v2.Recognizer> - getGetRecognizerMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetRecognizerRequest, com.google.cloud.speech.v2.Recognizer> - getGetRecognizerMethod; - if ((getGetRecognizerMethod = SpeechGrpc.getGetRecognizerMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getGetRecognizerMethod = SpeechGrpc.getGetRecognizerMethod) == null) { - SpeechGrpc.getGetRecognizerMethod = - getGetRecognizerMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRecognizer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.GetRecognizerRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.Recognizer.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetRecognizer")) - .build(); - } - } - } - return getGetRecognizerMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.longrunning.Operation> - getUpdateRecognizerMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateRecognizer", - requestType = com.google.cloud.speech.v2.UpdateRecognizerRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.longrunning.Operation> - getUpdateRecognizerMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.longrunning.Operation> - getUpdateRecognizerMethod; - if ((getUpdateRecognizerMethod = SpeechGrpc.getUpdateRecognizerMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUpdateRecognizerMethod = SpeechGrpc.getUpdateRecognizerMethod) == null) { - SpeechGrpc.getUpdateRecognizerMethod = - getUpdateRecognizerMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRecognizer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.UpdateRecognizerRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdateRecognizer")) - .build(); - } - } - } - return getUpdateRecognizerMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.longrunning.Operation> - getDeleteRecognizerMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRecognizer", - requestType = com.google.cloud.speech.v2.DeleteRecognizerRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.longrunning.Operation> - getDeleteRecognizerMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.longrunning.Operation> - getDeleteRecognizerMethod; - if ((getDeleteRecognizerMethod = SpeechGrpc.getDeleteRecognizerMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getDeleteRecognizerMethod = SpeechGrpc.getDeleteRecognizerMethod) == null) { - SpeechGrpc.getDeleteRecognizerMethod = - getDeleteRecognizerMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRecognizer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.DeleteRecognizerRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeleteRecognizer")) - .build(); - } - } - } - return getDeleteRecognizerMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.longrunning.Operation> - getUndeleteRecognizerMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UndeleteRecognizer", - requestType = com.google.cloud.speech.v2.UndeleteRecognizerRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.longrunning.Operation> - getUndeleteRecognizerMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.longrunning.Operation> - getUndeleteRecognizerMethod; - if ((getUndeleteRecognizerMethod = SpeechGrpc.getUndeleteRecognizerMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUndeleteRecognizerMethod = SpeechGrpc.getUndeleteRecognizerMethod) == null) { - SpeechGrpc.getUndeleteRecognizerMethod = - getUndeleteRecognizerMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeleteRecognizer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.UndeleteRecognizerRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UndeleteRecognizer")) - .build(); - } - } - } - return getUndeleteRecognizerMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.RecognizeRequest, com.google.cloud.speech.v2.RecognizeResponse> - getRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Recognize", - requestType = com.google.cloud.speech.v2.RecognizeRequest.class, - responseType = com.google.cloud.speech.v2.RecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.RecognizeRequest, com.google.cloud.speech.v2.RecognizeResponse> - getRecognizeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.RecognizeRequest, - com.google.cloud.speech.v2.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.v2.RecognizeRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.RecognizeResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) - .build(); - } - } - } - return getRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.StreamingRecognizeRequest, - com.google.cloud.speech.v2.StreamingRecognizeResponse> - getStreamingRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", - requestType = com.google.cloud.speech.v2.StreamingRecognizeRequest.class, - responseType = com.google.cloud.speech.v2.StreamingRecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.StreamingRecognizeRequest, - com.google.cloud.speech.v2.StreamingRecognizeResponse> - getStreamingRecognizeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.StreamingRecognizeRequest, - com.google.cloud.speech.v2.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.v2.StreamingRecognizeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.StreamingRecognizeResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) - .build(); - } - } - } - return getStreamingRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.longrunning.Operation> - getBatchRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchRecognize", - requestType = com.google.cloud.speech.v2.BatchRecognizeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.longrunning.Operation> - getBatchRecognizeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.longrunning.Operation> - getBatchRecognizeMethod; - if ((getBatchRecognizeMethod = SpeechGrpc.getBatchRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getBatchRecognizeMethod = SpeechGrpc.getBatchRecognizeMethod) == null) { - SpeechGrpc.getBatchRecognizeMethod = - getBatchRecognizeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.BatchRecognizeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("BatchRecognize")) - .build(); - } - } - } - return getBatchRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetConfigRequest, com.google.cloud.speech.v2.Config> - getGetConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConfig", - requestType = com.google.cloud.speech.v2.GetConfigRequest.class, - responseType = com.google.cloud.speech.v2.Config.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetConfigRequest, com.google.cloud.speech.v2.Config> - getGetConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetConfigRequest, com.google.cloud.speech.v2.Config> - getGetConfigMethod; - if ((getGetConfigMethod = SpeechGrpc.getGetConfigMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getGetConfigMethod = SpeechGrpc.getGetConfigMethod) == null) { - SpeechGrpc.getGetConfigMethod = - getGetConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.GetConfigRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.Config.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetConfig")) - .build(); - } - } - } - return getGetConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.Config> - getUpdateConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConfig", - requestType = com.google.cloud.speech.v2.UpdateConfigRequest.class, - responseType = com.google.cloud.speech.v2.Config.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.Config> - getUpdateConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.Config> - getUpdateConfigMethod; - if ((getUpdateConfigMethod = SpeechGrpc.getUpdateConfigMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUpdateConfigMethod = SpeechGrpc.getUpdateConfigMethod) == null) { - SpeechGrpc.getUpdateConfigMethod = - getUpdateConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.Config.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdateConfig")) - .build(); - } - } - } - return getUpdateConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.longrunning.Operation> - getCreateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", - requestType = com.google.cloud.speech.v2.CreateCustomClassRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.longrunning.Operation> - getCreateCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.longrunning.Operation> - getCreateCustomClassMethod; - if ((getCreateCustomClassMethod = SpeechGrpc.getCreateCustomClassMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getCreateCustomClassMethod = SpeechGrpc.getCreateCustomClassMethod) == null) { - SpeechGrpc.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.v2.CreateCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreateCustomClass")) - .build(); - } - } - } - return getCreateCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.ListCustomClassesRequest, - com.google.cloud.speech.v2.ListCustomClassesResponse> - getListCustomClassesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", - requestType = com.google.cloud.speech.v2.ListCustomClassesRequest.class, - responseType = com.google.cloud.speech.v2.ListCustomClassesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.ListCustomClassesRequest, - com.google.cloud.speech.v2.ListCustomClassesResponse> - getListCustomClassesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.ListCustomClassesRequest, - com.google.cloud.speech.v2.ListCustomClassesResponse> - getListCustomClassesMethod; - if ((getListCustomClassesMethod = SpeechGrpc.getListCustomClassesMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getListCustomClassesMethod = SpeechGrpc.getListCustomClassesMethod) == null) { - SpeechGrpc.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.v2.ListCustomClassesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.ListCustomClassesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListCustomClasses")) - .build(); - } - } - } - return getListCustomClassesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetCustomClassRequest, com.google.cloud.speech.v2.CustomClass> - getGetCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", - requestType = com.google.cloud.speech.v2.GetCustomClassRequest.class, - responseType = com.google.cloud.speech.v2.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetCustomClassRequest, com.google.cloud.speech.v2.CustomClass> - getGetCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetCustomClassRequest, - com.google.cloud.speech.v2.CustomClass> - getGetCustomClassMethod; - if ((getGetCustomClassMethod = SpeechGrpc.getGetCustomClassMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getGetCustomClassMethod = SpeechGrpc.getGetCustomClassMethod) == null) { - SpeechGrpc.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.v2.GetCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.CustomClass.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetCustomClass")) - .build(); - } - } - } - return getGetCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.longrunning.Operation> - getUpdateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", - requestType = com.google.cloud.speech.v2.UpdateCustomClassRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.longrunning.Operation> - getUpdateCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.longrunning.Operation> - getUpdateCustomClassMethod; - if ((getUpdateCustomClassMethod = SpeechGrpc.getUpdateCustomClassMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUpdateCustomClassMethod = SpeechGrpc.getUpdateCustomClassMethod) == null) { - SpeechGrpc.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.v2.UpdateCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdateCustomClass")) - .build(); - } - } - } - return getUpdateCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.longrunning.Operation> - getDeleteCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCustomClass", - requestType = com.google.cloud.speech.v2.DeleteCustomClassRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.longrunning.Operation> - getDeleteCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.longrunning.Operation> - getDeleteCustomClassMethod; - if ((getDeleteCustomClassMethod = SpeechGrpc.getDeleteCustomClassMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getDeleteCustomClassMethod = SpeechGrpc.getDeleteCustomClassMethod) == null) { - SpeechGrpc.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.v2.DeleteCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeleteCustomClass")) - .build(); - } - } - } - return getDeleteCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.longrunning.Operation> - getUndeleteCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UndeleteCustomClass", - requestType = com.google.cloud.speech.v2.UndeleteCustomClassRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.longrunning.Operation> - getUndeleteCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.longrunning.Operation> - getUndeleteCustomClassMethod; - if ((getUndeleteCustomClassMethod = SpeechGrpc.getUndeleteCustomClassMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUndeleteCustomClassMethod = SpeechGrpc.getUndeleteCustomClassMethod) == null) { - SpeechGrpc.getUndeleteCustomClassMethod = - getUndeleteCustomClassMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UndeleteCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.UndeleteCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new SpeechMethodDescriptorSupplier("UndeleteCustomClass")) - .build(); - } - } - } - return getUndeleteCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.longrunning.Operation> - getCreatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", - requestType = com.google.cloud.speech.v2.CreatePhraseSetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.longrunning.Operation> - getCreatePhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.longrunning.Operation> - getCreatePhraseSetMethod; - if ((getCreatePhraseSetMethod = SpeechGrpc.getCreatePhraseSetMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getCreatePhraseSetMethod = SpeechGrpc.getCreatePhraseSetMethod) == null) { - SpeechGrpc.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.v2.CreatePhraseSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreatePhraseSet")) - .build(); - } - } - } - return getCreatePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.ListPhraseSetsRequest, - com.google.cloud.speech.v2.ListPhraseSetsResponse> - getListPhraseSetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPhraseSets", - requestType = com.google.cloud.speech.v2.ListPhraseSetsRequest.class, - responseType = com.google.cloud.speech.v2.ListPhraseSetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.ListPhraseSetsRequest, - com.google.cloud.speech.v2.ListPhraseSetsResponse> - getListPhraseSetsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.ListPhraseSetsRequest, - com.google.cloud.speech.v2.ListPhraseSetsResponse> - getListPhraseSetsMethod; - if ((getListPhraseSetsMethod = SpeechGrpc.getListPhraseSetsMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getListPhraseSetsMethod = SpeechGrpc.getListPhraseSetsMethod) == null) { - SpeechGrpc.getListPhraseSetsMethod = - getListPhraseSetsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.ListPhraseSetsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.ListPhraseSetsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListPhraseSets")) - .build(); - } - } - } - return getListPhraseSetsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetPhraseSetRequest, com.google.cloud.speech.v2.PhraseSet> - getGetPhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", - requestType = com.google.cloud.speech.v2.GetPhraseSetRequest.class, - responseType = com.google.cloud.speech.v2.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetPhraseSetRequest, com.google.cloud.speech.v2.PhraseSet> - getGetPhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.GetPhraseSetRequest, com.google.cloud.speech.v2.PhraseSet> - getGetPhraseSetMethod; - if ((getGetPhraseSetMethod = SpeechGrpc.getGetPhraseSetMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getGetPhraseSetMethod = SpeechGrpc.getGetPhraseSetMethod) == null) { - SpeechGrpc.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.v2.GetPhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetPhraseSet")) - .build(); - } - } - } - return getGetPhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.longrunning.Operation> - getUpdatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", - requestType = com.google.cloud.speech.v2.UpdatePhraseSetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.longrunning.Operation> - getUpdatePhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.longrunning.Operation> - getUpdatePhraseSetMethod; - if ((getUpdatePhraseSetMethod = SpeechGrpc.getUpdatePhraseSetMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUpdatePhraseSetMethod = SpeechGrpc.getUpdatePhraseSetMethod) == null) { - SpeechGrpc.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.v2.UpdatePhraseSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdatePhraseSet")) - .build(); - } - } - } - return getUpdatePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.longrunning.Operation> - getDeletePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePhraseSet", - requestType = com.google.cloud.speech.v2.DeletePhraseSetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.longrunning.Operation> - getDeletePhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.longrunning.Operation> - getDeletePhraseSetMethod; - if ((getDeletePhraseSetMethod = SpeechGrpc.getDeletePhraseSetMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getDeletePhraseSetMethod = SpeechGrpc.getDeletePhraseSetMethod) == null) { - SpeechGrpc.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.v2.DeletePhraseSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeletePhraseSet")) - .build(); - } - } - } - return getDeletePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.longrunning.Operation> - getUndeletePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UndeletePhraseSet", - requestType = com.google.cloud.speech.v2.UndeletePhraseSetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.longrunning.Operation> - getUndeletePhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.longrunning.Operation> - getUndeletePhraseSetMethod; - if ((getUndeletePhraseSetMethod = SpeechGrpc.getUndeletePhraseSetMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUndeletePhraseSetMethod = SpeechGrpc.getUndeletePhraseSetMethod) == null) { - SpeechGrpc.getUndeletePhraseSetMethod = - getUndeletePhraseSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeletePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.UndeletePhraseSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UndeletePhraseSet")) - .build(); - } - } - } - return getUndeletePhraseSetMethod; - } - - /** 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); - } - - /** - * - * - *
-   * Enables speech transcription and resource management.
-   * 
- */ - public abstract static class SpeechImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void createRecognizer( - com.google.cloud.speech.v2.CreateRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateRecognizerMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists Recognizers.
-     * 
- */ - public void listRecognizers( - com.google.cloud.speech.v2.ListRecognizersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListRecognizersMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the requested
-     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
-     * exist.
-     * 
- */ - public void getRecognizer( - com.google.cloud.speech.v2.GetRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetRecognizerMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void updateRecognizer( - com.google.cloud.speech.v2.UpdateRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateRecognizerMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void deleteRecognizer( - com.google.cloud.speech.v2.DeleteRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteRecognizerMethod(), responseObserver); - } - - /** - * - * - *
-     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void undeleteRecognizer( - com.google.cloud.speech.v2.UndeleteRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUndeleteRecognizerMethod(), responseObserver); - } - - /** - * - * - *
-     * Performs synchronous Speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize( - com.google.cloud.speech.v2.RecognizeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), 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); - } - - /** - * - * - *
-     * Performs batch asynchronous speech recognition: send a request with N
-     * audio files and receive a long running operation that can be polled to see
-     * when the transcriptions are finished.
-     * 
- */ - public void batchRecognize( - com.google.cloud.speech.v2.BatchRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchRecognizeMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the requested [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public void getConfig( - com.google.cloud.speech.v2.GetConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public void updateConfig( - com.google.cloud.speech.v2.UpdateConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void createCustomClass( - com.google.cloud.speech.v2.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateCustomClassMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists CustomClasses.
-     * 
- */ - public void listCustomClasses( - com.google.cloud.speech.v2.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCustomClassesMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the requested
-     * [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void getCustomClass( - com.google.cloud.speech.v2.GetCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCustomClassMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void updateCustomClass( - com.google.cloud.speech.v2.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCustomClassMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void deleteCustomClass( - com.google.cloud.speech.v2.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteCustomClassMethod(), responseObserver); - } - - /** - * - * - *
-     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void undeleteCustomClass( - com.google.cloud.speech.v2.UndeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUndeleteCustomClassMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void createPhraseSet( - com.google.cloud.speech.v2.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreatePhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists PhraseSets.
-     * 
- */ - public void listPhraseSets( - com.google.cloud.speech.v2.ListPhraseSetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPhraseSetsMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the requested
-     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void getPhraseSet( - com.google.cloud.speech.v2.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetPhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void updatePhraseSet( - com.google.cloud.speech.v2.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdatePhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void deletePhraseSet( - com.google.cloud.speech.v2.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void undeletePhraseSet( - com.google.cloud.speech.v2.UndeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUndeletePhraseSetMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateRecognizerMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.CreateRecognizerRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_RECOGNIZER))) - .addMethod( - getListRecognizersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.ListRecognizersRequest, - com.google.cloud.speech.v2.ListRecognizersResponse>( - this, METHODID_LIST_RECOGNIZERS))) - .addMethod( - getGetRecognizerMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.GetRecognizerRequest, - com.google.cloud.speech.v2.Recognizer>(this, METHODID_GET_RECOGNIZER))) - .addMethod( - getUpdateRecognizerMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UpdateRecognizerRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_RECOGNIZER))) - .addMethod( - getDeleteRecognizerMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.DeleteRecognizerRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_RECOGNIZER))) - .addMethod( - getUndeleteRecognizerMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, - com.google.longrunning.Operation>(this, METHODID_UNDELETE_RECOGNIZER))) - .addMethod( - getRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.RecognizeRequest, - com.google.cloud.speech.v2.RecognizeResponse>(this, METHODID_RECOGNIZE))) - .addMethod( - getStreamingRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.speech.v2.StreamingRecognizeRequest, - com.google.cloud.speech.v2.StreamingRecognizeResponse>( - this, METHODID_STREAMING_RECOGNIZE))) - .addMethod( - getBatchRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.BatchRecognizeRequest, - com.google.longrunning.Operation>(this, METHODID_BATCH_RECOGNIZE))) - .addMethod( - getGetConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.GetConfigRequest, - com.google.cloud.speech.v2.Config>(this, METHODID_GET_CONFIG))) - .addMethod( - getUpdateConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UpdateConfigRequest, - com.google.cloud.speech.v2.Config>(this, METHODID_UPDATE_CONFIG))) - .addMethod( - getCreateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.CreateCustomClassRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_CUSTOM_CLASS))) - .addMethod( - getListCustomClassesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.ListCustomClassesRequest, - com.google.cloud.speech.v2.ListCustomClassesResponse>( - this, METHODID_LIST_CUSTOM_CLASSES))) - .addMethod( - getGetCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.GetCustomClassRequest, - com.google.cloud.speech.v2.CustomClass>(this, METHODID_GET_CUSTOM_CLASS))) - .addMethod( - getUpdateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UpdateCustomClassRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_CUSTOM_CLASS))) - .addMethod( - getDeleteCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.DeleteCustomClassRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_CUSTOM_CLASS))) - .addMethod( - getUndeleteCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, - com.google.longrunning.Operation>(this, METHODID_UNDELETE_CUSTOM_CLASS))) - .addMethod( - getCreatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.CreatePhraseSetRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_PHRASE_SET))) - .addMethod( - getListPhraseSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.ListPhraseSetsRequest, - com.google.cloud.speech.v2.ListPhraseSetsResponse>( - this, METHODID_LIST_PHRASE_SETS))) - .addMethod( - getGetPhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.GetPhraseSetRequest, - com.google.cloud.speech.v2.PhraseSet>(this, METHODID_GET_PHRASE_SET))) - .addMethod( - getUpdatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_PHRASE_SET))) - .addMethod( - getDeletePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.DeletePhraseSetRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_PHRASE_SET))) - .addMethod( - getUndeletePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, - com.google.longrunning.Operation>(this, METHODID_UNDELETE_PHRASE_SET))) - .build(); - } - } - - /** - * - * - *
-   * Enables speech transcription and resource management.
-   * 
- */ - 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); - } - - /** - * - * - *
-     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void createRecognizer( - com.google.cloud.speech.v2.CreateRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRecognizerMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists Recognizers.
-     * 
- */ - public void listRecognizers( - com.google.cloud.speech.v2.ListRecognizersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRecognizersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the requested
-     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
-     * exist.
-     * 
- */ - public void getRecognizer( - com.google.cloud.speech.v2.GetRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRecognizerMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void updateRecognizer( - com.google.cloud.speech.v2.UpdateRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateRecognizerMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void deleteRecognizer( - com.google.cloud.speech.v2.DeleteRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRecognizerMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void undeleteRecognizer( - com.google.cloud.speech.v2.UndeleteRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeleteRecognizerMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Performs synchronous Speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize( - com.google.cloud.speech.v2.RecognizeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRecognizeMethod(), 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); - } - - /** - * - * - *
-     * Performs batch asynchronous speech recognition: send a request with N
-     * audio files and receive a long running operation that can be polled to see
-     * when the transcriptions are finished.
-     * 
- */ - public void batchRecognize( - com.google.cloud.speech.v2.BatchRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchRecognizeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the requested [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public void getConfig( - com.google.cloud.speech.v2.GetConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates the [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public void updateConfig( - com.google.cloud.speech.v2.UpdateConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void createCustomClass( - com.google.cloud.speech.v2.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists CustomClasses.
-     * 
- */ - public void listCustomClasses( - com.google.cloud.speech.v2.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the requested
-     * [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void getCustomClass( - com.google.cloud.speech.v2.GetCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void updateCustomClass( - com.google.cloud.speech.v2.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void deleteCustomClass( - com.google.cloud.speech.v2.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void undeleteCustomClass( - com.google.cloud.speech.v2.UndeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeleteCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void createPhraseSet( - com.google.cloud.speech.v2.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists PhraseSets.
-     * 
- */ - public void listPhraseSets( - com.google.cloud.speech.v2.ListPhraseSetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPhraseSetsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the requested
-     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void getPhraseSet( - com.google.cloud.speech.v2.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void updatePhraseSet( - com.google.cloud.speech.v2.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void deletePhraseSet( - com.google.cloud.speech.v2.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void undeletePhraseSet( - com.google.cloud.speech.v2.UndeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeletePhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Enables speech transcription and resource management.
-   * 
- */ - 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); - } - - /** - * - * - *
-     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.longrunning.Operation createRecognizer( - com.google.cloud.speech.v2.CreateRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateRecognizerMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists Recognizers.
-     * 
- */ - public com.google.cloud.speech.v2.ListRecognizersResponse listRecognizers( - com.google.cloud.speech.v2.ListRecognizersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRecognizersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the requested
-     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.speech.v2.Recognizer getRecognizer( - com.google.cloud.speech.v2.GetRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRecognizerMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.longrunning.Operation updateRecognizer( - com.google.cloud.speech.v2.UpdateRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateRecognizerMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.longrunning.Operation deleteRecognizer( - com.google.cloud.speech.v2.DeleteRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRecognizerMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.longrunning.Operation undeleteRecognizer( - com.google.cloud.speech.v2.UndeleteRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUndeleteRecognizerMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Performs synchronous Speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.cloud.speech.v2.RecognizeResponse recognize( - com.google.cloud.speech.v2.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRecognizeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Performs batch asynchronous speech recognition: send a request with N
-     * audio files and receive a long running operation that can be polled to see
-     * when the transcriptions are finished.
-     * 
- */ - public com.google.longrunning.Operation batchRecognize( - com.google.cloud.speech.v2.BatchRecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchRecognizeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the requested [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public com.google.cloud.speech.v2.Config getConfig( - com.google.cloud.speech.v2.GetConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public com.google.cloud.speech.v2.Config updateConfig( - com.google.cloud.speech.v2.UpdateConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.longrunning.Operation createCustomClass( - com.google.cloud.speech.v2.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists CustomClasses.
-     * 
- */ - public com.google.cloud.speech.v2.ListCustomClassesResponse listCustomClasses( - com.google.cloud.speech.v2.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCustomClassesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the requested
-     * [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.cloud.speech.v2.CustomClass getCustomClass( - com.google.cloud.speech.v2.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCustomClassMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.longrunning.Operation updateCustomClass( - com.google.cloud.speech.v2.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.longrunning.Operation deleteCustomClass( - com.google.cloud.speech.v2.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.longrunning.Operation undeleteCustomClass( - com.google.cloud.speech.v2.UndeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUndeleteCustomClassMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.longrunning.Operation createPhraseSet( - com.google.cloud.speech.v2.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists PhraseSets.
-     * 
- */ - public com.google.cloud.speech.v2.ListPhraseSetsResponse listPhraseSets( - com.google.cloud.speech.v2.ListPhraseSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPhraseSetsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the requested
-     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.cloud.speech.v2.PhraseSet getPhraseSet( - com.google.cloud.speech.v2.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.longrunning.Operation updatePhraseSet( - com.google.cloud.speech.v2.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.longrunning.Operation deletePhraseSet( - com.google.cloud.speech.v2.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.longrunning.Operation undeletePhraseSet( - com.google.cloud.speech.v2.UndeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUndeletePhraseSetMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Enables speech transcription and resource management.
-   * 
- */ - 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); - } - - /** - * - * - *
-     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createRecognizer(com.google.cloud.speech.v2.CreateRecognizerRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateRecognizerMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists Recognizers.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v2.ListRecognizersResponse> - listRecognizers(com.google.cloud.speech.v2.ListRecognizersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRecognizersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the requested
-     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getRecognizer(com.google.cloud.speech.v2.GetRecognizerRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRecognizerMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateRecognizer(com.google.cloud.speech.v2.UpdateRecognizerRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateRecognizerMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteRecognizer(com.google.cloud.speech.v2.DeleteRecognizerRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRecognizerMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - undeleteRecognizer(com.google.cloud.speech.v2.UndeleteRecognizerRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUndeleteRecognizerMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * 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.v2.RecognizeResponse> - recognize(com.google.cloud.speech.v2.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Performs batch asynchronous speech recognition: send a request with N
-     * audio files and receive a long running operation that can be polled to see
-     * when the transcriptions are finished.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - batchRecognize(com.google.cloud.speech.v2.BatchRecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchRecognizeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the requested [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getConfig(com.google.cloud.speech.v2.GetConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateConfig(com.google.cloud.speech.v2.UpdateConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createCustomClass(com.google.cloud.speech.v2.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists CustomClasses.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v2.ListCustomClassesResponse> - listCustomClasses(com.google.cloud.speech.v2.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the requested
-     * [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v2.CustomClass> - getCustomClass(com.google.cloud.speech.v2.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateCustomClass(com.google.cloud.speech.v2.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteCustomClass(com.google.cloud.speech.v2.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - undeleteCustomClass(com.google.cloud.speech.v2.UndeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUndeleteCustomClassMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createPhraseSet(com.google.cloud.speech.v2.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists PhraseSets.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v2.ListPhraseSetsResponse> - listPhraseSets(com.google.cloud.speech.v2.ListPhraseSetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPhraseSetsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the requested
-     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getPhraseSet(com.google.cloud.speech.v2.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updatePhraseSet(com.google.cloud.speech.v2.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deletePhraseSet(com.google.cloud.speech.v2.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - undeletePhraseSet(com.google.cloud.speech.v2.UndeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUndeletePhraseSetMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_RECOGNIZER = 0; - private static final int METHODID_LIST_RECOGNIZERS = 1; - private static final int METHODID_GET_RECOGNIZER = 2; - private static final int METHODID_UPDATE_RECOGNIZER = 3; - private static final int METHODID_DELETE_RECOGNIZER = 4; - private static final int METHODID_UNDELETE_RECOGNIZER = 5; - private static final int METHODID_RECOGNIZE = 6; - private static final int METHODID_BATCH_RECOGNIZE = 7; - private static final int METHODID_GET_CONFIG = 8; - private static final int METHODID_UPDATE_CONFIG = 9; - private static final int METHODID_CREATE_CUSTOM_CLASS = 10; - private static final int METHODID_LIST_CUSTOM_CLASSES = 11; - private static final int METHODID_GET_CUSTOM_CLASS = 12; - private static final int METHODID_UPDATE_CUSTOM_CLASS = 13; - private static final int METHODID_DELETE_CUSTOM_CLASS = 14; - private static final int METHODID_UNDELETE_CUSTOM_CLASS = 15; - private static final int METHODID_CREATE_PHRASE_SET = 16; - private static final int METHODID_LIST_PHRASE_SETS = 17; - private static final int METHODID_GET_PHRASE_SET = 18; - private static final int METHODID_UPDATE_PHRASE_SET = 19; - private static final int METHODID_DELETE_PHRASE_SET = 20; - private static final int METHODID_UNDELETE_PHRASE_SET = 21; - private static final int METHODID_STREAMING_RECOGNIZE = 22; - - 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_CREATE_RECOGNIZER: - serviceImpl.createRecognizer( - (com.google.cloud.speech.v2.CreateRecognizerRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RECOGNIZERS: - serviceImpl.listRecognizers( - (com.google.cloud.speech.v2.ListRecognizersRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_RECOGNIZER: - serviceImpl.getRecognizer( - (com.google.cloud.speech.v2.GetRecognizerRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_RECOGNIZER: - serviceImpl.updateRecognizer( - (com.google.cloud.speech.v2.UpdateRecognizerRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_RECOGNIZER: - serviceImpl.deleteRecognizer( - (com.google.cloud.speech.v2.DeleteRecognizerRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNDELETE_RECOGNIZER: - serviceImpl.undeleteRecognizer( - (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RECOGNIZE: - serviceImpl.recognize( - (com.google.cloud.speech.v2.RecognizeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_BATCH_RECOGNIZE: - serviceImpl.batchRecognize( - (com.google.cloud.speech.v2.BatchRecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CONFIG: - serviceImpl.getConfig( - (com.google.cloud.speech.v2.GetConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CONFIG: - serviceImpl.updateConfig( - (com.google.cloud.speech.v2.UpdateConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CUSTOM_CLASS: - serviceImpl.createCustomClass( - (com.google.cloud.speech.v2.CreateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CUSTOM_CLASSES: - serviceImpl.listCustomClasses( - (com.google.cloud.speech.v2.ListCustomClassesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_CUSTOM_CLASS: - serviceImpl.getCustomClass( - (com.google.cloud.speech.v2.GetCustomClassRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_CUSTOM_CLASS: - serviceImpl.updateCustomClass( - (com.google.cloud.speech.v2.UpdateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CUSTOM_CLASS: - serviceImpl.deleteCustomClass( - (com.google.cloud.speech.v2.DeleteCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNDELETE_CUSTOM_CLASS: - serviceImpl.undeleteCustomClass( - (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_PHRASE_SET: - serviceImpl.createPhraseSet( - (com.google.cloud.speech.v2.CreatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_PHRASE_SETS: - serviceImpl.listPhraseSets( - (com.google.cloud.speech.v2.ListPhraseSetsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_PHRASE_SET: - serviceImpl.getPhraseSet( - (com.google.cloud.speech.v2.GetPhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_PHRASE_SET: - serviceImpl.updatePhraseSet( - (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_PHRASE_SET: - serviceImpl.deletePhraseSet( - (com.google.cloud.speech.v2.DeletePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNDELETE_PHRASE_SET: - serviceImpl.undeletePhraseSet( - (com.google.cloud.speech.v2.UndeletePhraseSetRequest) 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.v2.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.v2.CloudSpeechProto.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(getCreateRecognizerMethod()) - .addMethod(getListRecognizersMethod()) - .addMethod(getGetRecognizerMethod()) - .addMethod(getUpdateRecognizerMethod()) - .addMethod(getDeleteRecognizerMethod()) - .addMethod(getUndeleteRecognizerMethod()) - .addMethod(getRecognizeMethod()) - .addMethod(getStreamingRecognizeMethod()) - .addMethod(getBatchRecognizeMethod()) - .addMethod(getGetConfigMethod()) - .addMethod(getUpdateConfigMethod()) - .addMethod(getCreateCustomClassMethod()) - .addMethod(getListCustomClassesMethod()) - .addMethod(getGetCustomClassMethod()) - .addMethod(getUpdateCustomClassMethod()) - .addMethod(getDeleteCustomClassMethod()) - .addMethod(getUndeleteCustomClassMethod()) - .addMethod(getCreatePhraseSetMethod()) - .addMethod(getListPhraseSetsMethod()) - .addMethod(getGetPhraseSetMethod()) - .addMethod(getUpdatePhraseSetMethod()) - .addMethod(getDeletePhraseSetMethod()) - .addMethod(getUndeletePhraseSetMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java deleted file mode 100644 index acfe28df3c0d..000000000000 --- a/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java deleted file mode 100644 index 73e1fc4cca40..000000000000 --- a/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java deleted file mode 100644 index df0bfe2abf0f..000000000000 --- a/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java deleted file mode 100644 index 081817d7ecba..000000000000 --- a/java-speech/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\"\355\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\022L\n\026speech_adaptation_info\030\007 " - + "\001(\0132,.google.cloud.speech.v1.SpeechAdapt" - + "ationInfo\022\022\n\nrequest_id\030\010 \001(\003\"\351\002\n\034LongRu" - + "nningRecognizeResponse\022@\n\007results\030\002 \003(\0132" - + "/.google.cloud.speech.v1.SpeechRecogniti" - + "onResult\0224\n\021total_billed_time\030\003 \001(\0132\031.go" - + "ogle.protobuf.Duration\022E\n\routput_config\030" - + "\006 \001(\0132..google.cloud.speech.v1.Transcrip" - + "tOutputConfig\022(\n\014output_error\030\007 \001(\0132\022.go" - + "ogle.rpc.Status\022L\n\026speech_adaptation_inf" - + "o\030\010 \001(\0132,.google.cloud.speech.v1.SpeechA" - + "daptationInfo\022\022\n\nrequest_id\030\t \001(\003\"\260\001\n\034Lo" - + "ngRunningRecognizeMetadata\022\030\n\020progress_p" - + "ercent\030\001 \001(\005\022.\n\nstart_time\030\002 \001(\0132\032.googl" - + "e.protobuf.Timestamp\0224\n\020last_update_time" - + "\030\003 \001(\0132\032.google.protobuf.Timestamp\022\020\n\003ur" - + "i\030\004 \001(\tB\003\340A\003\"\311\003\n\032StreamingRecognizeRespo" - + "nse\022!\n\005error\030\001 \001(\0132\022.google.rpc.Status\022C" - + "\n\007results\030\002 \003(\01322.google.cloud.speech.v1" - + ".StreamingRecognitionResult\022]\n\021speech_ev" - + "ent_type\030\004 \001(\0162B.google.cloud.speech.v1." - + "StreamingRecognizeResponse.SpeechEventTy" - + "pe\0224\n\021total_billed_time\030\005 \001(\0132\031.google.p" - + "rotobuf.Duration\022L\n\026speech_adaptation_in" - + "fo\030\t \001(\0132,.google.cloud.speech.v1.Speech" - + "AdaptationInfo\022\022\n\nrequest_id\030\n \001(\003\"L\n\017Sp" - + "eechEventType\022\034\n\030SPEECH_EVENT_UNSPECIFIE" - + "D\020\000\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\362\001\n\032Str" - + "eamingRecognitionResult\022J\n\014alternatives\030" - + "\001 \003(\01324.google.cloud.speech.v1.SpeechRec" - + "ognitionAlternative\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\"\312\001" - + "\n\027SpeechRecognitionResult\022J\n\014alternative" - + "s\030\001 \003(\01324.google.cloud.speech.v1.SpeechR" - + "ecognitionAlternative\022\023\n\013channel_tag\030\002 \001" - + "(\005\0222\n\017result_end_time\030\004 \001(\0132\031.google.pro" - + "tobuf.Duration\022\032\n\rlanguage_code\030\005 \001(\tB\003\340" - + "A\003\"w\n\034SpeechRecognitionAlternative\022\022\n\ntr" - + "anscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022/\n\005wo" - + "rds\030\003 \003(\0132 .google.cloud.speech.v1.WordI" - + "nfo\"\242\001\n\010WordInfo\022-\n\nstart_time\030\001 \001(\0132\031.g" - + "oogle.protobuf.Duration\022+\n\010end_time\030\002 \001(" - + "\0132\031.google.protobuf.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\003\"K\n\024SpeechAdaptationInfo\022\032\n\022adap" - + "tation_timeout\030\001 \001(\010\022\027\n\017timeout_message\030" - + "\004 \001(\t2\321\004\n\006Speech\022\220\001\n\tRecognize\022(.google." - + "cloud.speech.v1.RecognizeRequest\032).googl" - + "e.cloud.speech.v1.RecognizeResponse\".\202\323\344" - + "\223\002\031\"\024/v1/speech:recognize:\001*\332A\014config,au" - + "dio\022\344\001\n\024LongRunningRecognize\0223.google.cl" - + "oud.speech.v1.LongRunningRecognizeReques" - + "t\032\035.google.longrunning.Operation\"x\202\323\344\223\002$" - + "\"\037/v1/speech:longrunningrecognize:\001*\332A\014c" - + "onfig,audio\312A<\n\034LongRunningRecognizeResp" - + "onse\022\034LongRunningRecognizeMetadata\022\201\001\n\022S" - + "treamingRecognize\0221.google.cloud.speech." - + "v1.StreamingRecognizeRequest\0322.google.cl" - + "oud.speech.v1.StreamingRecognizeResponse" - + "\"\000(\0010\001\032I\312A\025speech.googleapis.com\322A.https" - + "://www.googleapis.com/auth/cloud-platfor" - + "mBr\n\032com.google.cloud.speech.v1B\013SpeechP" - + "rotoP\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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java deleted file mode 100644 index 05350941a005..000000000000 --- a/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java deleted file mode 100644 index 2f3e881fd154..000000000000 --- a/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java deleted file mode 100644 index 2d3104cbb88a..000000000000 --- a/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java deleted file mode 100644 index c0e43bb88557..000000000000 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java +++ /dev/null @@ -1,513 +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; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_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\"\373\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\022S\n\026" - + "speech_adaptation_info\030\007 \001(\01323.google.cl" - + "oud.speech.v1p1beta1.SpeechAdaptationInf" - + "o\022\022\n\nrequest_id\030\010 \001(\003\"\376\002\n\034LongRunningRec" - + "ognizeResponse\022G\n\007results\030\002 \003(\01326.google" - + ".cloud.speech.v1p1beta1.SpeechRecognitio" - + "nResult\0224\n\021total_billed_time\030\003 \001(\0132\031.goo" - + "gle.protobuf.Duration\022L\n\routput_config\030\006" - + " \001(\01325.google.cloud.speech.v1p1beta1.Tra" - + "nscriptOutputConfig\022(\n\014output_error\030\007 \001(" - + "\0132\022.google.rpc.Status\022S\n\026speech_adaptati" - + "on_info\030\010 \001(\01323.google.cloud.speech.v1p1" - + "beta1.SpeechAdaptationInfo\022\022\n\nrequest_id" - + "\030\t \001(\003\"\203\002\n\034LongRunningRecognizeMetadata\022" - + "\030\n\020progress_percent\030\001 \001(\005\022.\n\nstart_time\030" - + "\002 \001(\0132\032.google.protobuf.Timestamp\0224\n\020las" - + "t_update_time\030\003 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022\020\n\003uri\030\004 \001(\tB\003\340A\003\022Q\n\routput_conf" - + "ig\030\005 \001(\01325.google.cloud.speech.v1p1beta1" - + ".TranscriptOutputConfigB\003\340A\003\"\336\003\n\032Streami" - + "ngRecognizeResponse\022!\n\005error\030\001 \001(\0132\022.goo" - + "gle.rpc.Status\022J\n\007results\030\002 \003(\01329.google" - + ".cloud.speech.v1p1beta1.StreamingRecogni" - + "tionResult\022d\n\021speech_event_type\030\004 \001(\0162I." - + "google.cloud.speech.v1p1beta1.StreamingR" - + "ecognizeResponse.SpeechEventType\0224\n\021tota" - + "l_billed_time\030\005 \001(\0132\031.google.protobuf.Du" - + "ration\022S\n\026speech_adaptation_info\030\t \001(\01323" - + ".google.cloud.speech.v1p1beta1.SpeechAda" - + "ptationInfo\022\022\n\nrequest_id\030\n \001(\003\"L\n\017Speec" - + "hEventType\022\034\n\030SPEECH_EVENT_UNSPECIFIED\020\000" - + "\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\371\001\n\032Stream" - + "ingRecognitionResult\022Q\n\014alternatives\030\001 \003" - + "(\0132;.google.cloud.speech.v1p1beta1.Speec" - + "hRecognitionAlternative\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\013chan" - + "nel_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A" - + "\003\"\321\001\n\027SpeechRecognitionResult\022Q\n\014alterna" - + "tives\030\001 \003(\0132;.google.cloud.speech.v1p1be" - + "ta1.SpeechRecognitionAlternative\022\023\n\013chan" - + "nel_tag\030\002 \001(\005\0222\n\017result_end_time\030\004 \001(\0132\031" - + ".google.protobuf.Duration\022\032\n\rlanguage_co" - + "de\030\005 \001(\tB\003\340A\003\"~\n\034SpeechRecognitionAltern" - + "ative\022\022\n\ntranscript\030\001 \001(\t\022\022\n\nconfidence\030" - + "\002 \001(\002\0226\n\005words\030\003 \003(\0132\'.google.cloud.spee" - + "ch.v1p1beta1.WordInfo\"\242\001\n\010WordInfo\022-\n\nst" - + "art_time\030\001 \001(\0132\031.google.protobuf.Duratio" - + "n\022+\n\010end_time\030\002 \001(\0132\031.google.protobuf.Du" - + "ration\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\003\"K\n\024SpeechAdap" - + "tationInfo\022\032\n\022adaptation_timeout\030\001 \001(\010\022\027" - + "\n\017timeout_message\030\004 \001(\t2\202\005\n\006Speech\022\245\001\n\tR" - + "ecognize\022/.google.cloud.speech.v1p1beta1" - + ".RecognizeRequest\0320.google.cloud.speech." - + "v1p1beta1.RecognizeResponse\"5\202\323\344\223\002 \"\033/v1" - + "p1beta1/speech:recognize:\001*\332A\014config,aud" - + "io\022\362\001\n\024LongRunningRecognize\022:.google.clo" - + "ud.speech.v1p1beta1.LongRunningRecognize" - + "Request\032\035.google.longrunning.Operation\"\177" - + "\202\323\344\223\002+\"&/v1p1beta1/speech:longrunningrec" - + "ognize:\001*\332A\014config,audio\312A<\n\034LongRunning" - + "RecognizeResponse\022\034LongRunningRecognizeM" - + "etadata\022\217\001\n\022StreamingRecognize\0228.google." - + "cloud.speech.v1p1beta1.StreamingRecogniz" - + "eRequest\0329.google.cloud.speech.v1p1beta1" - + ".StreamingRecognizeResponse\"\000(\0010\001\032I\312A\025sp" - + "eech.googleapis.com\322A.https://www.google" - + "apis.com/auth/cloud-platformB\200\001\n!com.goo" - + "gle.cloud.speech.v1p1beta1B\013SpeechProtoP" - + "\001ZCgoogle.golang.org/genproto/googleapis" - + "/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", "SpeechAdaptationInfo", "RequestId", - }); - 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", - "SpeechAdaptationInfo", - "RequestId", - }); - 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", - "SpeechAdaptationInfo", - "RequestId", - }); - 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", - }); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor, - new java.lang.String[] { - "AdaptationTimeout", "TimeoutMessage", - }); - 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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java deleted file mode 100644 index 71f4e12c7685..000000000000 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java +++ /dev/null @@ -1,190 +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_SpeechAdaptation_ABNFGrammar_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_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}\"\322\002\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\022" - + "Q\n\014abnf_grammar\030\004 \001(\0132;.google.cloud.spe" - + "ech.v1p1beta1.SpeechAdaptation.ABNFGramm" - + "ar\032#\n\013ABNFGrammar\022\024\n\014abnf_strings\030\001 \003(\t\"" - + "\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", "AbnfGrammar", - }); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor = - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor, - new java.lang.String[] { - "AbnfStrings", - }); - 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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java deleted file mode 100644 index eb900c2c33fb..000000000000 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java +++ /dev/null @@ -1,24 +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/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public interface AutoDetectDecodingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.AutoDetectDecodingConfig) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java deleted file mode 100644 index 353613c3a61f..000000000000 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java +++ /dev/null @@ -1,96 +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/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public interface BatchRecognizeMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Map from provided filename to the transcription metadata for that file.
-   * 
- * - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * - */ - int getTranscriptionMetadataCount(); - /** - * - * - *
-   * Map from provided filename to the transcription metadata for that file.
-   * 
- * - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * - */ - boolean containsTranscriptionMetadata(java.lang.String key); - /** Use {@link #getTranscriptionMetadataMap()} instead. */ - @java.lang.Deprecated - java.util.Map - getTranscriptionMetadata(); - /** - * - * - *
-   * Map from provided filename to the transcription metadata for that file.
-   * 
- * - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * - */ - java.util.Map - getTranscriptionMetadataMap(); - /** - * - * - *
-   * Map from provided filename to the transcription metadata for that file.
-   * 
- * - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * - */ - /* nullable */ - com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue); - /** - * - * - *
-   * Map from provided filename to the transcription metadata for that file.
-   * 
- * - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * - */ - com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrThrow( - java.lang.String key); -} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java deleted file mode 100644 index dabcad59583b..000000000000 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java +++ /dev/null @@ -1,1346 +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/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public final class CloudSpeechProto { - private CloudSpeechProto() {} - - 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_v2_CreateRecognizerRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_Recognizer_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_WordInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_Config_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_Config_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_CustomClass_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_PhraseSet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_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/v2/cloud_speech.pr" - + "oto\022\026google.cloud.speech.v2\032\034google/api/" - + "annotations.proto\032\027google/api/client.pro" - + "to\032\037google/api/field_behavior.proto\032\031goo" - + "gle/api/resource.proto\032#google/longrunni" - + "ng/operations.proto\032\036google/protobuf/dur" - + "ation.proto\032 google/protobuf/field_mask." - + "proto\032\037google/protobuf/timestamp.proto\032\027" - + "google/rpc/status.proto\"\276\001\n\027CreateRecogn" - + "izerRequest\022;\n\nrecognizer\030\001 \001(\0132\".google" - + ".cloud.speech.v2.RecognizerB\003\340A\002\022\025\n\rvali" - + "date_only\030\002 \001(\010\022\025\n\rrecognizer_id\030\003 \001(\t\0228" - + "\n\006parent\030\004 \001(\tB(\340A\002\372A\"\022 speech.googleapi" - + "s.com/Recognizer\"\343\014\n\021OperationMetadata\022/" - + "\n\013create_time\030\001 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022/\n\013update_time\030\002 \001(\0132\032.google.pr" - + "otobuf.Timestamp\022\020\n\010resource\030\003 \001(\t\022\016\n\006me" - + "thod\030\004 \001(\t\022<\n\014kms_key_name\030\006 \001(\tB&\372A#\n!c" - + "loudkms.googleapis.com/CryptoKey\022K\n\024kms_" - + "key_version_name\030\007 \001(\tB-\372A*\n(cloudkms.go" - + "ogleapis.com/CryptoKeyVersion\022P\n\027batch_r" - + "ecognize_request\030\010 \001(\0132-.google.cloud.sp" - + "eech.v2.BatchRecognizeRequestH\000\022T\n\031creat" - + "e_recognizer_request\030\t \001(\0132/.google.clou" - + "d.speech.v2.CreateRecognizerRequestH\000\022T\n" - + "\031update_recognizer_request\030\n \001(\0132/.googl" - + "e.cloud.speech.v2.UpdateRecognizerReques" - + "tH\000\022T\n\031delete_recognizer_request\030\013 \001(\0132/" - + ".google.cloud.speech.v2.DeleteRecognizer" - + "RequestH\000\022X\n\033undelete_recognizer_request" - + "\030\014 \001(\01321.google.cloud.speech.v2.Undelete" - + "RecognizerRequestH\000\022W\n\033create_custom_cla" - + "ss_request\030\r \001(\01320.google.cloud.speech.v" - + "2.CreateCustomClassRequestH\000\022W\n\033update_c" - + "ustom_class_request\030\016 \001(\01320.google.cloud" - + ".speech.v2.UpdateCustomClassRequestH\000\022W\n" - + "\033delete_custom_class_request\030\017 \001(\01320.goo" - + "gle.cloud.speech.v2.DeleteCustomClassReq" - + "uestH\000\022[\n\035undelete_custom_class_request\030" - + "\020 \001(\01322.google.cloud.speech.v2.UndeleteC" - + "ustomClassRequestH\000\022S\n\031create_phrase_set" - + "_request\030\021 \001(\0132..google.cloud.speech.v2." - + "CreatePhraseSetRequestH\000\022S\n\031update_phras" - + "e_set_request\030\022 \001(\0132..google.cloud.speec" - + "h.v2.UpdatePhraseSetRequestH\000\022S\n\031delete_" - + "phrase_set_request\030\023 \001(\0132..google.cloud." - + "speech.v2.DeletePhraseSetRequestH\000\022W\n\033un" - + "delete_phrase_set_request\030\024 \001(\01320.google" - + ".cloud.speech.v2.UndeletePhraseSetReques" - + "tH\000\022L\n\025update_config_request\030\025 \001(\0132+.goo" - + "gle.cloud.speech.v2.UpdateConfigRequestH" - + "\000\022\030\n\020progress_percent\030\026 \001(\005\022R\n\030batch_rec" - + "ognize_metadata\030\027 \001(\0132..google.cloud.spe" - + "ech.v2.BatchRecognizeMetadataH\001B\t\n\007reque" - + "stB\n\n\010metadata\"\220\001\n\026ListRecognizersReques" - + "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goo" - + "gleapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022" - + "\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(" - + "\010\"k\n\027ListRecognizersResponse\0227\n\013recogniz" - + "ers\030\001 \003(\0132\".google.cloud.speech.v2.Recog" - + "nizer\022\027\n\017next_page_token\030\002 \001(\t\"N\n\024GetRec" - + "ognizerRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n sp" - + "eech.googleapis.com/Recognizer\"\236\001\n\027Updat" - + "eRecognizerRequest\022;\n\nrecognizer\030\001 \001(\0132\"" - + ".google.cloud.speech.v2.RecognizerB\003\340A\002\022" - + "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" - + "ieldMask\022\025\n\rvalidate_only\030\004 \001(\010\"\215\001\n\027Dele" - + "teRecognizerRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A" - + "\"\n speech.googleapis.com/Recognizer\022\025\n\rv" - + "alidate_only\030\002 \001(\010\022\025\n\rallow_missing\030\004 \001(" - + "\010\022\014\n\004etag\030\003 \001(\t\"x\n\031UndeleteRecognizerReq" - + "uest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n speech.googl" - + "eapis.com/Recognizer\022\025\n\rvalidate_only\030\003 " - + "\001(\010\022\014\n\004etag\030\004 \001(\t\"\276\007\n\nRecognizer\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\024\n\014display" - + "_name\030\003 \001(\t\022\022\n\005model\030\004 \001(\tB\003\340A\002\022\033\n\016langu" - + "age_codes\030\021 \003(\tB\003\340A\002\022M\n\032default_recognit" - + "ion_config\030\006 \001(\0132).google.cloud.speech.v" - + "2.RecognitionConfig\022H\n\013annotations\030\007 \003(\013" - + "23.google.cloud.speech.v2.Recognizer.Ann" - + "otationsEntry\022<\n\005state\030\010 \001(\0162(.google.cl" - + "oud.speech.v2.Recognizer.StateB\003\340A\003\0224\n\013c" - + "reate_time\030\t \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\013" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013expire_time\030\016 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\022\021\n\004etag\030\014 \001(\tB\003\340A\003\022\030\n\013reconc" - + "iling\030\r \001(\010B\003\340A\003\022?\n\014kms_key_name\030\017 \001(\tB)" - + "\340A\003\372A#\n!cloudkms.googleapis.com/CryptoKe" - + "y\022N\n\024kms_key_version_name\030\020 \001(\tB0\340A\003\372A*\n" - + "(cloudkms.googleapis.com/CryptoKeyVersio" - + "n\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001\"7\n\005State\022\025\n\021STATE_UNSPECIF" - + "IED\020\000\022\n\n\006ACTIVE\020\002\022\013\n\007DELETED\020\004:j\352Ag\n spe" - + "ech.googleapis.com/Recognizer\022@projects/" - + "{project}/locations/{location}/recognize" - + "rs/{recognizer}R\001\001\"\032\n\030AutoDetectDecoding" - + "Config\"\371\001\n\026ExplicitDecodingConfig\022S\n\010enc" - + "oding\030\001 \001(\0162<.google.cloud.speech.v2.Exp" - + "licitDecodingConfig.AudioEncodingB\003\340A\002\022\031" - + "\n\021sample_rate_hertz\030\002 \001(\005\022\033\n\023audio_chann" - + "el_count\030\003 \001(\005\"R\n\rAudioEncoding\022\036\n\032AUDIO" - + "_ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\t\n" - + "\005MULAW\020\002\022\010\n\004ALAW\020\003\"Z\n\030SpeakerDiarization" - + "Config\022\036\n\021min_speaker_count\030\002 \001(\005B\003\340A\002\022\036" - + "\n\021max_speaker_count\030\003 \001(\005B\003\340A\002\"\370\003\n\023Recog" - + "nitionFeatures\022\030\n\020profanity_filter\030\001 \001(\010" - + "\022 \n\030enable_word_time_offsets\030\002 \001(\010\022\036\n\026en" - + "able_word_confidence\030\003 \001(\010\022$\n\034enable_aut" - + "omatic_punctuation\030\004 \001(\010\022!\n\031enable_spoke" - + "n_punctuation\030\016 \001(\010\022\034\n\024enable_spoken_emo" - + "jis\030\017 \001(\010\022X\n\022multi_channel_mode\030\021 \001(\0162<." - + "google.cloud.speech.v2.RecognitionFeatur" - + "es.MultiChannelMode\022L\n\022diarization_confi" - + "g\030\t \001(\01320.google.cloud.speech.v2.Speaker" - + "DiarizationConfig\022\030\n\020max_alternatives\030\020 " - + "\001(\005\"\\\n\020MultiChannelMode\022\"\n\036MULTI_CHANNEL" - + "_MODE_UNSPECIFIED\020\000\022$\n SEPARATE_RECOGNIT" - + "ION_PER_CHANNEL\020\001\"\277\002\n\020SpeechAdaptation\022Q" - + "\n\013phrase_sets\030\001 \003(\0132<.google.cloud.speec" - + "h.v2.SpeechAdaptation.AdaptationPhraseSe" - + "t\022;\n\016custom_classes\030\002 \003(\0132#.google.cloud" - + ".speech.v2.CustomClass\032\232\001\n\023AdaptationPhr" - + "aseSet\022:\n\nphrase_set\030\001 \001(\tB$\372A!\n\037speech." - + "googleapis.com/PhraseSetH\000\022>\n\021inline_phr" - + "ase_set\030\002 \001(\0132!.google.cloud.speech.v2.P" - + "hraseSetH\000B\007\n\005value\"\311\002\n\021RecognitionConfi" - + "g\022P\n\024auto_decoding_config\030\007 \001(\01320.google" - + ".cloud.speech.v2.AutoDetectDecodingConfi" - + "gH\000\022R\n\030explicit_decoding_config\030\010 \001(\0132.." - + "google.cloud.speech.v2.ExplicitDecodingC" - + "onfigH\000\022=\n\010features\030\002 \001(\0132+.google.cloud" - + ".speech.v2.RecognitionFeatures\022<\n\nadapta" - + "tion\030\006 \001(\0132(.google.cloud.speech.v2.Spee" - + "chAdaptationB\021\n\017decoding_config\"\356\001\n\020Reco" - + "gnizeRequest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A\"" - + "\n speech.googleapis.com/Recognizer\0229\n\006co" - + "nfig\030\001 \001(\0132).google.cloud.speech.v2.Reco" - + "gnitionConfig\022/\n\013config_mask\030\010 \001(\0132\032.goo" - + "gle.protobuf.FieldMask\022\021\n\007content\030\005 \001(\014H" - + "\000\022\r\n\003uri\030\006 \001(\tH\000B\016\n\014audio_source\"W\n\033Reco" - + "gnitionResponseMetadata\0228\n\025total_billed_" - + "duration\030\006 \001(\0132\031.google.protobuf.Duratio" - + "n\"w\n\034SpeechRecognitionAlternative\022\022\n\ntra" - + "nscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022/\n\005wor" - + "ds\030\003 \003(\0132 .google.cloud.speech.v2.WordIn" - + "fo\"\243\001\n\010WordInfo\022/\n\014start_offset\030\001 \001(\0132\031." - + "google.protobuf.Duration\022-\n\nend_offset\030\002" - + " \001(\0132\031.google.protobuf.Duration\022\014\n\004word\030" - + "\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002\022\025\n\rspeaker_lab" - + "el\030\006 \001(\t\"\314\001\n\027SpeechRecognitionResult\022J\n\014" - + "alternatives\030\001 \003(\01324.google.cloud.speech" - + ".v2.SpeechRecognitionAlternative\022\023\n\013chan" - + "nel_tag\030\002 \001(\005\0224\n\021result_end_offset\030\004 \001(\013" - + "2\031.google.protobuf.Duration\022\032\n\rlanguage_" - + "code\030\005 \001(\tB\003\340A\003\"\234\001\n\021RecognizeResponse\022@\n" - + "\007results\030\003 \003(\0132/.google.cloud.speech.v2." - + "SpeechRecognitionResult\022E\n\010metadata\030\002 \001(" - + "\01323.google.cloud.speech.v2.RecognitionRe" - + "sponseMetadata\"\321\002\n\034StreamingRecognitionF" - + "eatures\022$\n\034enable_voice_activity_events\030" - + "\001 \001(\010\022\027\n\017interim_results\030\002 \001(\010\022i\n\026voice_" - + "activity_timeout\030\003 \001(\0132I.google.cloud.sp" - + "eech.v2.StreamingRecognitionFeatures.Voi" - + "ceActivityTimeout\032\206\001\n\024VoiceActivityTimeo" - + "ut\0227\n\024speech_start_timeout\030\001 \001(\0132\031.googl" - + "e.protobuf.Duration\0225\n\022speech_end_timeou" - + "t\030\002 \001(\0132\031.google.protobuf.Duration\"\337\001\n\032S" - + "treamingRecognitionConfig\022>\n\006config\030\001 \001(" - + "\0132).google.cloud.speech.v2.RecognitionCo" - + "nfigB\003\340A\002\022/\n\013config_mask\030\003 \001(\0132\032.google." - + "protobuf.FieldMask\022P\n\022streaming_features" - + "\030\002 \001(\01324.google.cloud.speech.v2.Streamin" - + "gRecognitionFeatures\"\317\001\n\031StreamingRecogn" - + "izeRequest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A\"\n " - + "speech.googleapis.com/Recognizer\022N\n\020stre" - + "aming_config\030\006 \001(\01322.google.cloud.speech" - + ".v2.StreamingRecognitionConfigH\000\022\017\n\005audi" - + "o\030\005 \001(\014H\000B\023\n\021streaming_request\"\204\002\n\025Batch" - + "RecognizeRequest\022<\n\nrecognizer\030\001 \001(\tB(\340A" - + "\002\372A\"\n speech.googleapis.com/Recognizer\0229" - + "\n\006config\030\004 \001(\0132).google.cloud.speech.v2." - + "RecognitionConfig\022/\n\013config_mask\030\005 \001(\0132\032" - + ".google.protobuf.FieldMask\022A\n\005files\030\003 \003(" - + "\01322.google.cloud.speech.v2.BatchRecogniz" - + "eFileMetadata\"\310\001\n\026BatchRecognizeResponse" - + "\022L\n\007results\030\001 \003(\0132;.google.cloud.speech." - + "v2.BatchRecognizeResponse.ResultsEntry\032`" - + "\n\014ResultsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001" - + "(\01320.google.cloud.speech.v2.BatchRecogni" - + "zeFileResult:\0028\001\"J\n\030BatchRecognizeFileRe" - + "sult\022\013\n\003uri\030\001 \001(\t\022!\n\005error\030\002 \001(\0132\022.googl" - + "e.rpc.Status\"o\n#BatchRecognizeTranscript" - + "ionMetadata\022\030\n\020progress_percent\030\001 \001(\005\022!\n" - + "\005error\030\002 \001(\0132\022.google.rpc.Status\022\013\n\003uri\030" - + "\003 \001(\t\"\376\001\n\026BatchRecognizeMetadata\022i\n\026tran" - + "scription_metadata\030\001 \003(\0132I.google.cloud." - + "speech.v2.BatchRecognizeMetadata.Transcr" - + "iptionMetadataEntry\032y\n\032TranscriptionMeta" - + "dataEntry\022\013\n\003key\030\001 \001(\t\022J\n\005value\030\002 \001(\0132;." - + "google.cloud.speech.v2.BatchRecognizeTra" - + "nscriptionMetadata:\0028\001\"\247\001\n\032BatchRecogniz" - + "eFileMetadata\022\r\n\003uri\030\001 \001(\tH\000\0229\n\006config\030\004" - + " \001(\0132).google.cloud.speech.v2.Recognitio" - + "nConfig\022/\n\013config_mask\030\005 \001(\0132\032.google.pr" - + "otobuf.FieldMaskB\016\n\014audio_source\"\364\001\n\032Str" - + "eamingRecognitionResult\022J\n\014alternatives\030" - + "\001 \003(\01324.google.cloud.speech.v2.SpeechRec" - + "ognitionAlternative\022\020\n\010is_final\030\002 \001(\010\022\021\n" - + "\tstability\030\003 \001(\002\0224\n\021result_end_offset\030\004 " - + "\001(\0132\031.google.protobuf.Duration\022\023\n\013channe" - + "l_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A\003\"" - + "\307\003\n\032StreamingRecognizeResponse\022C\n\007result" - + "s\030\006 \003(\01322.google.cloud.speech.v2.Streami" - + "ngRecognitionResult\022]\n\021speech_event_type" - + "\030\003 \001(\0162B.google.cloud.speech.v2.Streamin" - + "gRecognizeResponse.SpeechEventType\0226\n\023sp" - + "eech_event_offset\030\007 \001(\0132\031.google.protobu" - + "f.Duration\022E\n\010metadata\030\005 \001(\01323.google.cl" - + "oud.speech.v2.RecognitionResponseMetadat" - + "a\"\205\001\n\017SpeechEventType\022!\n\035SPEECH_EVENT_TY" - + "PE_UNSPECIFIED\020\000\022\033\n\027END_OF_SINGLE_UTTERA" - + "NCE\020\001\022\031\n\025SPEECH_ACTIVITY_BEGIN\020\002\022\027\n\023SPEE" - + "CH_ACTIVITY_END\020\003\"\345\001\n\006Config\022\021\n\004name\030\001 \001" - + "(\tB\003\340A\003\022?\n\014kms_key_name\030\002 \001(\tB)\340A\001\372A#\n!c" - + "loudkms.googleapis.com/CryptoKey\0224\n\013upda" - + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003:Q\352AN\n\034speech.googleapis.com/Confi" - + "g\022.projects/{project}/locations/{locatio" - + "n}/config\"F\n\020GetConfigRequest\0222\n\004name\030\001 " - + "\001(\tB$\340A\002\372A\036\n\034speech.googleapis.com/Confi" - + "g\"{\n\023UpdateConfigRequest\0223\n\006config\030\001 \001(\013" - + "2\036.google.cloud.speech.v2.ConfigB\003\340A\002\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" - + "ldMask\"\240\007\n\013CustomClass\022\021\n\004name\030\001 \001(\tB\003\340A" - + "\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\024\n\014display_name\030\004 \001(" - + "\t\022<\n\005items\030\005 \003(\0132-.google.cloud.speech.v" - + "2.CustomClass.ClassItem\022=\n\005state\030\017 \001(\0162)" - + ".google.cloud.speech.v2.CustomClass.Stat" - + "eB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013de" - + "lete_time\030\010 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0224\n\013expire_time\030\t \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022I\n\013annotations\030\n " - + "\003(\01324.google.cloud.speech.v2.CustomClass" - + ".AnnotationsEntry\022\021\n\004etag\030\013 \001(\tB\003\340A\003\022\030\n\013" - + "reconciling\030\014 \001(\010B\003\340A\003\022?\n\014kms_key_name\030\r" - + " \001(\tB)\340A\003\372A#\n!cloudkms.googleapis.com/Cr" - + "yptoKey\022N\n\024kms_key_version_name\030\016 \001(\tB0\340" - + "A\003\372A*\n(cloudkms.googleapis.com/CryptoKey" - + "Version\032\032\n\tClassItem\022\r\n\005value\030\001 \001(\t\0322\n\020A" - + "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001\"7\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" - + "\n\n\006ACTIVE\020\002\022\013\n\007DELETED\020\004:o\352Al\n!speech.go" - + "ogleapis.com/CustomClass\022Dprojects/{proj" - + "ect}/locations/{location}/customClasses/" - + "{custom_class}R\001\001\"\253\007\n\tPhraseSet\022\021\n\004name\030" - + "\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0229\n\007phrases\030" - + "\003 \003(\0132(.google.cloud.speech.v2.PhraseSet" - + ".Phrase\022\r\n\005boost\030\004 \001(\002\022\024\n\014display_name\030\005" - + " \001(\t\022;\n\005state\030\017 \001(\0162\'.google.cloud.speec" - + "h.v2.PhraseSet.StateB\003\340A\003\0224\n\013create_time" - + "\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "4\n\013update_time\030\007 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\0224\n\013expire_ti" - + "me\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\022G\n\013annotations\030\n \003(\01322.google.cloud.sp" - + "eech.v2.PhraseSet.AnnotationsEntry\022\021\n\004et" - + "ag\030\013 \001(\tB\003\340A\003\022\030\n\013reconciling\030\014 \001(\010B\003\340A\003\022" - + "?\n\014kms_key_name\030\r \001(\tB)\340A\003\372A#\n!cloudkms." - + "googleapis.com/CryptoKey\022N\n\024kms_key_vers" - + "ion_name\030\016 \001(\tB0\340A\003\372A*\n(cloudkms.googlea" - + "pis.com/CryptoKeyVersion\032&\n\006Phrase\022\r\n\005va" - + "lue\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002\0322\n\020AnnotationsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\005" - + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\002" - + "\022\013\n\007DELETED\020\004:h\352Ae\n\037speech.googleapis.co" - + "m/PhraseSet\022?projects/{project}/location" - + "s/{location}/phraseSets/{phrase_set}R\001\001\"" - + "\305\001\n\030CreateCustomClassRequest\022>\n\014custom_c" - + "lass\030\001 \001(\0132#.google.cloud.speech.v2.Cust" - + "omClassB\003\340A\002\022\025\n\rvalidate_only\030\002 \001(\010\022\027\n\017c" - + "ustom_class_id\030\003 \001(\t\0229\n\006parent\030\004 \001(\tB)\340A" - + "\002\372A#\022!speech.googleapis.com/CustomClass\"" - + "\222\001\n\030ListCustomClassesRequest\0229\n\006parent\030\001" - + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" - + "ocation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" - + "\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"q\n\031ListCust" - + "omClassesResponse\022;\n\016custom_classes\030\001 \003(" - + "\0132#.google.cloud.speech.v2.CustomClass\022\027" - + "\n\017next_page_token\030\002 \001(\t\"P\n\025GetCustomClas" - + "sRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.g" - + "oogleapis.com/CustomClass\"\242\001\n\030UpdateCust" - + "omClassRequest\022>\n\014custom_class\030\001 \001(\0132#.g" - + "oogle.cloud.speech.v2.CustomClassB\003\340A\002\022/" - + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" - + "eldMask\022\025\n\rvalidate_only\030\004 \001(\010\"\217\001\n\030Delet" - + "eCustomClassRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A" - + "#\n!speech.googleapis.com/CustomClass\022\025\n\r" - + "validate_only\030\002 \001(\010\022\025\n\rallow_missing\030\004 \001" - + "(\010\022\014\n\004etag\030\003 \001(\t\"z\n\032UndeleteCustomClassR" - + "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.goo" - + "gleapis.com/CustomClass\022\025\n\rvalidate_only" - + "\030\003 \001(\010\022\014\n\004etag\030\004 \001(\t\"\273\001\n\026CreatePhraseSet" - + "Request\022:\n\nphrase_set\030\001 \001(\0132!.google.clo" - + "ud.speech.v2.PhraseSetB\003\340A\002\022\025\n\rvalidate_" - + "only\030\002 \001(\010\022\025\n\rphrase_set_id\030\003 \001(\t\0227\n\006par" - + "ent\030\004 \001(\tB\'\340A\002\372A!\022\037speech.googleapis.com" - + "/PhraseSet\"\217\001\n\025ListPhraseSetsRequest\0229\n\006" - + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" - + "is.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" - + "ge_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"i\n\026" - + "ListPhraseSetsResponse\0226\n\013phrase_sets\030\001 " - + "\003(\0132!.google.cloud.speech.v2.PhraseSet\022\027" - + "\n\017next_page_token\030\002 \001(\t\"L\n\023GetPhraseSetR" - + "equest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.goo" - + "gleapis.com/PhraseSet\"\234\001\n\026UpdatePhraseSe" - + "tRequest\022:\n\nphrase_set\030\001 \001(\0132!.google.cl" - + "oud.speech.v2.PhraseSetB\003\340A\002\022/\n\013update_m" - + "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\022\025\n" - + "\rvalidate_only\030\004 \001(\010\"\213\001\n\026DeletePhraseSet" - + "Request\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.go" - + "ogleapis.com/PhraseSet\022\025\n\rvalidate_only\030" - + "\002 \001(\010\022\025\n\rallow_missing\030\004 \001(\010\022\014\n\004etag\030\003 \001" - + "(\t\"v\n\030UndeletePhraseSetRequest\0225\n\004name\030\001" - + " \001(\tB\'\340A\002\372A!\n\037speech.googleapis.com/Phra" - + "seSet\022\025\n\rvalidate_only\030\003 \001(\010\022\014\n\004etag\030\004 \001" - + "(\t2\277%\n\006Speech\022\354\001\n\020CreateRecognizer\022/.goo" - + "gle.cloud.speech.v2.CreateRecognizerRequ" - + "est\032\035.google.longrunning.Operation\"\207\001\202\323\344" - + "\223\002=\"//v2/{parent=projects/*/locations/*}" - + "/recognizers:\nrecognizer\332A\037parent,recogn" - + "izer,recognizer_id\312A\037\n\nRecognizer\022\021Opera" - + "tionMetadata\022\264\001\n\017ListRecognizers\022..googl" - + "e.cloud.speech.v2.ListRecognizersRequest" - + "\032/.google.cloud.speech.v2.ListRecognizer" - + "sResponse\"@\202\323\344\223\0021\022//v2/{parent=projects/" - + "*/locations/*}/recognizers\332A\006parent\022\241\001\n\r" - + "GetRecognizer\022,.google.cloud.speech.v2.G" - + "etRecognizerRequest\032\".google.cloud.speec" - + "h.v2.Recognizer\">\202\323\344\223\0021\022//v2/{name=proje" - + "cts/*/locations/*/recognizers/*}\332A\004name\022" - + "\356\001\n\020UpdateRecognizer\022/.google.cloud.spee" - + "ch.v2.UpdateRecognizerRequest\032\035.google.l" - + "ongrunning.Operation\"\211\001\202\323\344\223\002H2:/v2/{reco" - + "gnizer.name=projects/*/locations/*/recog" - + "nizers/*}:\nrecognizer\332A\026recognizer,updat" - + "e_mask\312A\037\n\nRecognizer\022\021OperationMetadata" - + "\022\304\001\n\020DeleteRecognizer\022/.google.cloud.spe" - + "ech.v2.DeleteRecognizerRequest\032\035.google." - + "longrunning.Operation\"`\202\323\344\223\0021*//v2/{name" - + "=projects/*/locations/*/recognizers/*}\332A" - + "\004name\312A\037\n\nRecognizer\022\021OperationMetadata\022" - + "\324\001\n\022UndeleteRecognizer\0221.google.cloud.sp" - + "eech.v2.UndeleteRecognizerRequest\032\035.goog" - + "le.longrunning.Operation\"l\202\323\344\223\002=\"8/v2/{n" - + "ame=projects/*/locations/*/recognizers/*" - + "}:undelete:\001*\332A\004name\312A\037\n\nRecognizer\022\021Ope" - + "rationMetadata\022\371\001\n\tRecognize\022(.google.cl" - + "oud.speech.v2.RecognizeRequest\032).google." - + "cloud.speech.v2.RecognizeResponse\"\226\001\202\323\344\223" - + "\002D\"?/v2/{recognizer=projects/*/locations" - + "/*/recognizers/*}:recognize:\001*\332A%recogni" - + "zer,config,config_mask,content\332A!recogni" - + "zer,config,config_mask,uri\022\201\001\n\022Streaming" - + "Recognize\0221.google.cloud.speech.v2.Strea" - + "mingRecognizeRequest\0322.google.cloud.spee" - + "ch.v2.StreamingRecognizeResponse\"\000(\0010\001\022\204" - + "\002\n\016BatchRecognize\022-.google.cloud.speech." - + "v2.BatchRecognizeRequest\032\035.google.longru" - + "nning.Operation\"\243\001\202\323\344\223\002I\"D/v2/{recognize" - + "r=projects/*/locations/*/recognizers/*}:" - + "batchRecognize:\001*\332A#recognizer,config,co" - + "nfig_mask,files\312A+\n\026BatchRecognizeRespon" - + "se\022\021OperationMetadata\022\216\001\n\tGetConfig\022(.go" - + "ogle.cloud.speech.v2.GetConfigRequest\032\036." - + "google.cloud.speech.v2.Config\"7\202\323\344\223\002*\022(/" - + "v2/{name=projects/*/locations/*/config}\332" - + "A\004name\022\261\001\n\014UpdateConfig\022+.google.cloud.s" - + "peech.v2.UpdateConfigRequest\032\036.google.cl" - + "oud.speech.v2.Config\"T\202\323\344\223\00292//v2/{confi" - + "g.name=projects/*/locations/*/config}:\006c" - + "onfig\332A\022config,update_mask\022\367\001\n\021CreateCus" - + "tomClass\0220.google.cloud.speech.v2.Create" - + "CustomClassRequest\032\035.google.longrunning." - + "Operation\"\220\001\202\323\344\223\002A\"1/v2/{parent=projects" - + "/*/locations/*}/customClasses:\014custom_cl" - + "ass\332A#parent,custom_class,custom_class_i" - + "d\312A \n\013CustomClass\022\021OperationMetadata\022\274\001\n" - + "\021ListCustomClasses\0220.google.cloud.speech" - + ".v2.ListCustomClassesRequest\0321.google.cl" - + "oud.speech.v2.ListCustomClassesResponse\"" - + "B\202\323\344\223\0023\0221/v2/{parent=projects/*/location" - + "s/*}/customClasses\332A\006parent\022\246\001\n\016GetCusto" - + "mClass\022-.google.cloud.speech.v2.GetCusto" - + "mClassRequest\032#.google.cloud.speech.v2.C" - + "ustomClass\"@\202\323\344\223\0023\0221/v2/{name=projects/*", - "/locations/*/customClasses/*}\332A\004name\022\371\001\n" - + "\021UpdateCustomClass\0220.google.cloud.speech" - + ".v2.UpdateCustomClassRequest\032\035.google.lo" - + "ngrunning.Operation\"\222\001\202\323\344\223\002N2>/v2/{custo" - + "m_class.name=projects/*/locations/*/cust" - + "omClasses/*}:\014custom_class\332A\030custom_clas" - + "s,update_mask\312A \n\013CustomClass\022\021Operation" - + "Metadata\022\311\001\n\021DeleteCustomClass\0220.google." - + "cloud.speech.v2.DeleteCustomClassRequest" - + "\032\035.google.longrunning.Operation\"c\202\323\344\223\0023*" - + "1/v2/{name=projects/*/locations/*/custom" - + "Classes/*}\332A\004name\312A \n\013CustomClass\022\021Opera" - + "tionMetadata\022\331\001\n\023UndeleteCustomClass\0222.g" - + "oogle.cloud.speech.v2.UndeleteCustomClas" - + "sRequest\032\035.google.longrunning.Operation\"" - + "o\202\323\344\223\002?\":/v2/{name=projects/*/locations/" - + "*/customClasses/*}:undelete:\001*\332A\004name\312A " - + "\n\013CustomClass\022\021OperationMetadata\022\350\001\n\017Cre" - + "atePhraseSet\022..google.cloud.speech.v2.Cr" - + "eatePhraseSetRequest\032\035.google.longrunnin" - + "g.Operation\"\205\001\202\323\344\223\002<\"./v2/{parent=projec" - + "ts/*/locations/*}/phraseSets:\nphrase_set" - + "\332A\037parent,phrase_set,phrase_set_id\312A\036\n\tP" - + "hraseSet\022\021OperationMetadata\022\260\001\n\016ListPhra" - + "seSets\022-.google.cloud.speech.v2.ListPhra" - + "seSetsRequest\032..google.cloud.speech.v2.L" - + "istPhraseSetsResponse\"?\202\323\344\223\0020\022./v2/{pare" - + "nt=projects/*/locations/*}/phraseSets\332A\006" - + "parent\022\235\001\n\014GetPhraseSet\022+.google.cloud.s" - + "peech.v2.GetPhraseSetRequest\032!.google.cl" - + "oud.speech.v2.PhraseSet\"=\202\323\344\223\0020\022./v2/{na" - + "me=projects/*/locations/*/phraseSets/*}\332" - + "A\004name\022\352\001\n\017UpdatePhraseSet\022..google.clou" - + "d.speech.v2.UpdatePhraseSetRequest\032\035.goo" - + "gle.longrunning.Operation\"\207\001\202\323\344\223\002G29/v2/" - + "{phrase_set.name=projects/*/locations/*/" - + "phraseSets/*}:\nphrase_set\332A\026phrase_set,u" - + "pdate_mask\312A\036\n\tPhraseSet\022\021OperationMetad" - + "ata\022\300\001\n\017DeletePhraseSet\022..google.cloud.s" - + "peech.v2.DeletePhraseSetRequest\032\035.google" - + ".longrunning.Operation\"^\202\323\344\223\0020*./v2/{nam" - + "e=projects/*/locations/*/phraseSets/*}\332A" - + "\004name\312A\036\n\tPhraseSet\022\021OperationMetadata\022\320" - + "\001\n\021UndeletePhraseSet\0220.google.cloud.spee" - + "ch.v2.UndeletePhraseSetRequest\032\035.google." - + "longrunning.Operation\"j\202\323\344\223\002<\"7/v2/{name" - + "=projects/*/locations/*/phraseSets/*}:un" - + "delete:\001*\332A\004name\312A\036\n\tPhraseSet\022\021Operatio" - + "nMetadata\032I\312A\025speech.googleapis.com\322A.ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "formB\223\003\n\032com.google.cloud.speech.v2B\020Clo" - + "udSpeechProtoP\001Z - * Required. The name of the config to retrieve. There is exactly one config - * resource per project per location. The expected format is - * `projects/{project}/locations/{location}/config`. - *
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the config to retrieve. There is exactly one config
-   * resource per project per location. The expected format is
-   * `projects/{project}/locations/{location}/config`.
-   * 
- * - * - * 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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java deleted file mode 100644 index 4988dd99a937..000000000000 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public interface GetCustomClassRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetCustomClassRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the CustomClass to retrieve. The expected format is
-   * `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 CustomClass to retrieve. The expected format is
-   * `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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java deleted file mode 100644 index d1e52870afb2..000000000000 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.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/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public interface GetPhraseSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetPhraseSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the PhraseSet to retrieve. The expected format is
-   * `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 PhraseSet to retrieve. The expected format is
-   * `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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java deleted file mode 100644 index 0b709d73d3e5..000000000000 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.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/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public interface GetRecognizerRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetRecognizerRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the Recognizer to retrieve. The expected format is
-   * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the Recognizer to retrieve. The expected format is
-   * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
-   * 
- * - * - * 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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java index 88585863167f..ef2af1fea060 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java +++ b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java @@ -29,6 +29,7 @@ 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; diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java index 410fbe1afbe6..e9f6e4ac2293 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java +++ b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java @@ -27,6 +27,7 @@ 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; diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java index 881efcbe3130..45bd5bdce97f 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java +++ b/owl-bot-staging/java-speech/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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java index 2d1dc5eb7ee8..1735c61d96ae 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java +++ b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java @@ -28,6 +28,7 @@ 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.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java b/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java rename to owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java diff --git a/owl-bot-staging/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java b/owl-bot-staging/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java new file mode 100644 index 000000000000..b536dba14db7 --- /dev/null +++ b/owl-bot-staging/java-speech/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/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java b/owl-bot-staging/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java new file mode 100644 index 000000000000..46b71822a661 --- /dev/null +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java similarity index 66% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java index 406224f1174c..928c9f330657 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java +++ b/owl-bot-staging/java-speech/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,39 +26,36 @@ 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
-   * Required. The parent resource where this custom class will be created. Format:
+   * Required. The parent resource where this custom class will be created.
+   * Format:
    * `projects/{project}/locations/{location}/customClasses`
    * Speech-to-Text supports three locations: `global`, `us` (US North America),
    * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -85,10 +64,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 @@ -97,17 +73,17 @@ 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:
+   * Required. The parent resource where this custom class will be created.
+   * Format:
    * `projects/{project}/locations/{location}/customClasses`
    * Speech-to-Text supports three locations: `global`, `us` (US North America),
    * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -116,18 +92,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 { @@ -136,12 +111,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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.
@@ -150,7 +122,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The customClassId. */ @java.lang.Override @@ -159,15 +130,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.
@@ -176,15 +146,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 { @@ -195,16 +166,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 @@ -212,44 +178,30 @@ 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() { - return customClass_ == null - ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() : customClass_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -287,7 +240,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -297,19 +251,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -336,135 +292,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +430,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 @@ -501,11 +451,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.CreateCustomClassRequest result = new com.google.cloud.speech.v1.CreateCustomClassRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -519,8 +466,9 @@ private void buildPartial0(com.google.cloud.speech.v1.CreateCustomClassRequest r result.customClassId_ = customClassId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.customClass_ = - customClassBuilder_ == null ? customClass_ : customClassBuilder_.build(); + result.customClass_ = customClassBuilder_ == null + ? customClass_ + : customClassBuilder_.build(); } } @@ -528,39 +476,38 @@ private void buildPartial0(com.google.cloud.speech.v1.CreateCustomClassRequest r 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; @@ -568,8 +515,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_; bitField0_ |= 0x00000001; @@ -609,31 +555,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - customClassId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + customClassId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getCustomClassFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -643,15 +587,13 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
-     * Required. The parent resource where this custom class will be created. Format:
+     * Required. The parent resource where this custom class will be created.
+     * Format:
      * `projects/{project}/locations/{location}/customClasses`
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -660,16 +602,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; @@ -678,10 +618,9 @@ public java.lang.String getParent() { } } /** - * - * *
-     * Required. The parent resource where this custom class will be created. Format:
+     * Required. The parent resource where this custom class will be created.
+     * Format:
      * `projects/{project}/locations/{location}/customClasses`
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -690,17 +629,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 { @@ -708,10 +646,9 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
-     * Required. The parent resource where this custom class will be created. Format:
+     * Required. The parent resource where this custom class will be created.
+     * Format:
      * `projects/{project}/locations/{location}/customClasses`
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -720,27 +657,22 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
-     * Required. The parent resource where this custom class will be created. Format:
+     * Required. The parent resource where this custom class will be created.
+     * Format:
      * `projects/{project}/locations/{location}/customClasses`
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -749,10 +681,7 @@ 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() { @@ -762,10 +691,9 @@ public Builder clearParent() { return this; } /** - * - * *
-     * Required. The parent resource where this custom class will be created. Format:
+     * Required. The parent resource where this custom class will be created.
+     * Format:
      * `projects/{project}/locations/{location}/customClasses`
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -774,17 +702,13 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -794,8 +718,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.
@@ -804,13 +726,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; @@ -819,8 +741,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.
@@ -829,14 +749,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 { @@ -844,8 +765,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.
@@ -854,22 +773,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomClassId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } customClassId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -878,7 +793,6 @@ 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() { @@ -888,8 +802,6 @@ public Builder clearCustomClassId() { return this; } /** - * - * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -898,14 +810,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomClassIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customClassId_ = value; bitField0_ |= 0x00000002; @@ -915,58 +825,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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) { @@ -982,17 +873,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(); } else { @@ -1003,21 +891,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 (((bitField0_ & 0x00000004) != 0) - && customClass_ != null - && customClass_ != com.google.cloud.speech.v1.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + customClass_ != null && + customClass_ != com.google.cloud.speech.v1.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -1030,15 +914,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1051,15 +931,11 @@ 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() { bitField0_ |= 0x00000004; @@ -1067,55 +943,43 @@ public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassBuilder() { 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); } @@ -1125,12 +989,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(); } @@ -1139,27 +1003,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1174,4 +1038,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CreateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java similarity index 64% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java index 14ccf162cb13..a854a4c098fa 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java @@ -1,33 +1,16 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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:
+   * Required. The parent resource where this custom class will be created.
+   * Format:
    * `projects/{project}/locations/{location}/customClasses`
    * Speech-to-Text supports three locations: `global`, `us` (US North America),
    * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -36,18 +19,14 @@ 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:
+   * Required. The parent resource where this custom class will be created.
+   * Format:
    * `projects/{project}/locations/{location}/customClasses`
    * Speech-to-Text supports three locations: `global`, `us` (US North America),
    * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -56,17 +35,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 +50,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 +62,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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java similarity index 66% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java index 5fc91b3d7289..0e4edea01710 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java +++ b/owl-bot-staging/java-speech/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,39 +26,36 @@ 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
-   * Required. The parent resource where this phrase set will be created. Format:
+   * Required. The parent resource where this phrase set will be created.
+   * Format:
    * `projects/{project}/locations/{location}/phraseSets`
    * Speech-to-Text supports three locations: `global`, `us` (US North America),
    * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -85,10 +64,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 @@ -97,17 +73,17 @@ 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:
+   * Required. The parent resource where this phrase set will be created.
+   * Format:
    * `projects/{project}/locations/{location}/phraseSets`
    * Speech-to-Text supports three locations: `global`, `us` (US North America),
    * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -116,18 +92,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 { @@ -136,12 +111,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PHRASE_SET_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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.
@@ -150,7 +122,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The phraseSetId. */ @java.lang.Override @@ -159,15 +130,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.
@@ -176,15 +146,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 { @@ -195,16 +166,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 @@ -212,44 +178,30 @@ 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() { - return phraseSet_ == null - ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() : phraseSet_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -287,7 +240,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -297,19 +251,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -336,135 +292,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +430,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 @@ -501,11 +451,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.CreatePhraseSetRequest result = new com.google.cloud.speech.v1.CreatePhraseSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -519,7 +466,9 @@ private void buildPartial0(com.google.cloud.speech.v1.CreatePhraseSetRequest res result.phraseSetId_ = phraseSetId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build(); + result.phraseSet_ = phraseSetBuilder_ == null + ? phraseSet_ + : phraseSetBuilder_.build(); } } @@ -527,39 +476,38 @@ private void buildPartial0(com.google.cloud.speech.v1.CreatePhraseSetRequest res 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; @@ -567,8 +515,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_; bitField0_ |= 0x00000001; @@ -608,31 +555,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - phraseSetId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + phraseSetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getPhraseSetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -642,15 +587,13 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
-     * Required. The parent resource where this phrase set will be created. Format:
+     * Required. The parent resource where this phrase set will be created.
+     * Format:
      * `projects/{project}/locations/{location}/phraseSets`
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -659,16 +602,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; @@ -677,10 +618,9 @@ public java.lang.String getParent() { } } /** - * - * *
-     * Required. The parent resource where this phrase set will be created. Format:
+     * Required. The parent resource where this phrase set will be created.
+     * Format:
      * `projects/{project}/locations/{location}/phraseSets`
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -689,17 +629,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 { @@ -707,10 +646,9 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
-     * Required. The parent resource where this phrase set will be created. Format:
+     * Required. The parent resource where this phrase set will be created.
+     * Format:
      * `projects/{project}/locations/{location}/phraseSets`
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -719,27 +657,22 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
-     * Required. The parent resource where this phrase set will be created. Format:
+     * Required. The parent resource where this phrase set will be created.
+     * Format:
      * `projects/{project}/locations/{location}/phraseSets`
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -748,10 +681,7 @@ 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() { @@ -761,10 +691,9 @@ public Builder clearParent() { return this; } /** - * - * *
-     * Required. The parent resource where this phrase set will be created. Format:
+     * Required. The parent resource where this phrase set will be created.
+     * Format:
      * `projects/{project}/locations/{location}/phraseSets`
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -773,17 +702,13 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -793,8 +718,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.
@@ -803,13 +726,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; @@ -818,8 +741,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.
@@ -828,14 +749,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 { @@ -843,8 +765,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.
@@ -853,22 +773,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhraseSetId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } phraseSetId_ = value; bitField0_ |= 0x00000002; 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.
@@ -877,7 +793,6 @@ 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() { @@ -887,8 +802,6 @@ public Builder clearPhraseSetId() { return this; } /** - * - * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -897,14 +810,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhraseSetIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); phraseSetId_ = value; bitField0_ |= 0x00000002; @@ -914,58 +825,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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) { @@ -981,17 +873,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(); } else { @@ -1002,21 +891,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 (((bitField0_ & 0x00000004) != 0) - && phraseSet_ != null - && phraseSet_ != com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + phraseSet_ != null && + phraseSet_ != com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -1029,15 +914,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1050,15 +931,11 @@ 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() { bitField0_ |= 0x00000004; @@ -1066,55 +943,43 @@ public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetBuilder() { 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); } @@ -1124,12 +989,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(); } @@ -1138,27 +1003,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1173,4 +1038,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CreatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java similarity index 64% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java index f8fffaec1d9b..b833871fc1f5 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java @@ -1,33 +1,16 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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:
+   * Required. The parent resource where this phrase set will be created.
+   * Format:
    * `projects/{project}/locations/{location}/phraseSets`
    * Speech-to-Text supports three locations: `global`, `us` (US North America),
    * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -36,18 +19,14 @@ 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:
+   * Required. The parent resource where this phrase set will be created.
+   * Format:
    * `projects/{project}/locations/{location}/phraseSets`
    * Speech-to-Text supports three locations: `global`, `us` (US North America),
    * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -56,17 +35,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 +50,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 +62,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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java index 44124e3d80a2..e8de5865b8f1 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java +++ b/owl-bot-staging/java-speech/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,122 +29,107 @@ 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;
   }
-
-  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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** - * - * *
      * The class item's value.
      * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -171,29 +138,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 { @@ -202,7 +169,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,7 +180,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_); } @@ -238,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.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,93 +233,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 @@ -362,41 +323,39 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -406,9 +365,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 @@ -427,11 +386,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.CustomClass.ClassItem result = new com.google.cloud.speech.v1.CustomClass.ClassItem(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -447,41 +403,38 @@ private void buildPartial0(com.google.cloud.speech.v1.CustomClass.ClassItem resu 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; @@ -489,8 +442,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_; bitField0_ |= 0x00000001; @@ -522,19 +474,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -544,25 +494,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -571,21 +518,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 { @@ -593,35 +539,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -631,28 +570,23 @@ public Builder clearValue() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -665,12 +599,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(); } @@ -679,28 +613,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -715,21 +648,18 @@ 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name of the custom class.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -738,29 +668,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 { @@ -769,19 +699,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -790,30 +716,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 { @@ -822,12 +748,9 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() { } public static final int ITEMS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List items_; /** - * - * *
    * A collection of class items.
    * 
@@ -839,8 +762,6 @@ public java.util.List getItems return items_; } /** - * - * *
    * A collection of class items.
    * 
@@ -848,13 +769,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.
    * 
@@ -866,8 +785,6 @@ public int getItemsCount() { return items_.size(); } /** - * - * *
    * A collection of class items.
    * 
@@ -879,8 +796,6 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem getItems(int index) { return items_.get(index); } /** - * - * *
    * A collection of class items.
    * 
@@ -888,12 +803,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; @@ -905,7 +820,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_); } @@ -931,7 +847,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -941,16 +858,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -975,104 +895,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
@@ -1081,32 +994,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1124,9 +1038,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
@@ -1145,12 +1059,9 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1181,39 +1092,38 @@ private void buildPartial0(com.google.cloud.speech.v1.CustomClass result) {
     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;
@@ -1250,10 +1160,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            itemsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getItemsFieldBuilder()
-                    : null;
+            itemsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getItemsFieldBuilder() : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -1285,39 +1194,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                customClassId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                com.google.cloud.speech.v1.CustomClass.ClassItem m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1.CustomClass.ClassItem.parser(),
-                        extensionRegistry);
-                if (itemsBuilder_ == null) {
-                  ensureItemsIsMutable();
-                  items_.add(m);
-                } else {
-                  itemsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              customClassId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              com.google.cloud.speech.v1.CustomClass.ClassItem m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.CustomClass.ClassItem.parser(),
+                      extensionRegistry);
+              if (itemsBuilder_ == null) {
+                ensureItemsIsMutable();
+                items_.add(m);
+              } else {
+                itemsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1327,25 +1232,22 @@ public Builder mergeFrom(
       } // finally
       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; @@ -1354,21 +1256,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 { @@ -1376,35 +1277,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1414,21 +1308,17 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1438,21 +1328,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; @@ -1461,22 +1349,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 { @@ -1484,37 +1371,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomClassId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } customClassId_ = value; bitField0_ |= 0x00000002; 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() { @@ -1524,22 +1404,18 @@ public Builder clearCustomClassId() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomClassIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customClassId_ = value; bitField0_ |= 0x00000002; @@ -1548,24 +1424,18 @@ public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { } private java.util.List items_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000004; - } + } } 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.
      * 
@@ -1580,8 +1450,6 @@ public java.util.List getItems } } /** - * - * *
      * A collection of class items.
      * 
@@ -1596,8 +1464,6 @@ public int getItemsCount() { } } /** - * - * *
      * A collection of class items.
      * 
@@ -1612,15 +1478,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(); @@ -1634,8 +1499,6 @@ public Builder setItems(int index, com.google.cloud.speech.v1.CustomClass.ClassI return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1654,8 +1517,6 @@ public Builder setItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1676,15 +1537,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(); @@ -1698,8 +1558,6 @@ public Builder addItems(int index, com.google.cloud.speech.v1.CustomClass.ClassI return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1718,8 +1576,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1738,8 +1594,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1750,7 +1604,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); @@ -1758,8 +1613,6 @@ public Builder addAllItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1777,8 +1630,6 @@ public Builder clearItems() { return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1796,44 +1647,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 { @@ -1841,8 +1687,6 @@ public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuild } } /** - * - * *
      * A collection of class items.
      * 
@@ -1850,55 +1694,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_ & 0x00000004) != 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_ & 0x00000004) != 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); } @@ -1908,12 +1746,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(); } @@ -1922,27 +1760,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1957,4 +1795,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java index a32a11ff4e57..d22bd6cc0b5e 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java similarity index 66% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java index 4cd036fca68a..d867ebd6f041 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java @@ -1,79 +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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -84,10 +62,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 @@ -96,15 +71,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}`
@@ -115,18 +89,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 { @@ -135,7 +108,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,7 +119,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_); } @@ -171,15 +144,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -199,135 +172,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -337,9 +304,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 @@ -358,11 +325,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.DeleteCustomClassRequest result = new com.google.cloud.speech.v1.DeleteCustomClassRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -378,39 +342,38 @@ private void buildPartial0(com.google.cloud.speech.v1.DeleteCustomClassRequest r 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; @@ -418,8 +381,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_; bitField0_ |= 0x00000001; @@ -451,19 +413,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -473,13 +433,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -490,16 +447,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; @@ -508,8 +463,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -520,17 +473,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 { @@ -538,8 +490,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -550,25 +500,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -579,10 +523,7 @@ 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() { @@ -592,8 +533,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -604,26 +543,22 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -633,12 +568,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(); } @@ -647,27 +582,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -682,4 +617,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.DeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java similarity index 59% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java index 9fdb35391b70..a534c8411380 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java similarity index 62% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java index 4d25db7465c7..f39cb0f17a14 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java @@ -1,88 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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; } - - 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; - @SuppressWarnings("serial") 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 @@ -91,32 +66,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 { @@ -125,7 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +109,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_); } @@ -161,15 +134,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,135 +162,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -327,9 +294,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 @@ -348,11 +315,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.DeletePhraseSetRequest result = new com.google.cloud.speech.v1.DeletePhraseSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -368,39 +332,38 @@ private void buildPartial0(com.google.cloud.speech.v1.DeletePhraseSetRequest res 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; @@ -408,8 +371,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_; bitField0_ |= 0x00000001; @@ -441,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -463,28 +423,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -493,24 +448,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 { @@ -518,41 +470,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -562,33 +503,27 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -598,12 +533,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(); } @@ -612,27 +547,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +582,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.DeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java new file mode 100644 index 000000000000..6e63a397ad6a --- /dev/null +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java similarity index 62% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java index 2febfb796ae4..fea2579924f3 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java @@ -1,88 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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; } - - 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; - @SuppressWarnings("serial") 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 @@ -91,32 +66,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 { @@ -125,7 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +109,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_); } @@ -161,15 +134,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -188,136 +161,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -327,9 +294,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 @@ -348,11 +315,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.GetCustomClassRequest result = new com.google.cloud.speech.v1.GetCustomClassRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -368,39 +332,38 @@ private void buildPartial0(com.google.cloud.speech.v1.GetCustomClassRequest resu 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; @@ -408,8 +371,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_; bitField0_ |= 0x00000001; @@ -441,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -463,28 +423,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -493,24 +448,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 { @@ -518,41 +470,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -562,33 +503,27 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -598,12 +533,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(); } @@ -612,27 +547,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +582,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.GetCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java new file mode 100644 index 000000000000..61476aadbf58 --- /dev/null +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java similarity index 66% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java index 33160c7f7863..b76f8f8c6820 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java @@ -1,79 +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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -84,10 +62,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 @@ -96,15 +71,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}`
@@ -115,18 +89,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 { @@ -135,7 +108,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,7 +119,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_); } @@ -171,15 +144,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -198,136 +171,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -337,9 +304,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 @@ -358,11 +325,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.GetPhraseSetRequest result = new com.google.cloud.speech.v1.GetPhraseSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -378,39 +342,38 @@ private void buildPartial0(com.google.cloud.speech.v1.GetPhraseSetRequest result 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; @@ -450,19 +413,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -472,13 +433,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -489,16 +447,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; @@ -507,8 +463,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -519,17 +473,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 { @@ -537,8 +490,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -549,25 +500,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -578,10 +523,7 @@ 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() { @@ -591,8 +533,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -603,26 +543,22 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -632,12 +568,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(); } @@ -646,27 +582,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -681,4 +617,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.GetPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java similarity index 59% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java index 84f560a798b3..a7aa5beacb2e 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java index f880b405cd2a..b135c1117a81 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -85,10 +63,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 @@ -97,15 +72,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`
@@ -116,18 +90,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 { @@ -138,8 +111,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * 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
@@ -148,7 +119,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -157,12 +127,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -171,7 +138,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -180,15 +146,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.
@@ -197,15 +162,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 { @@ -214,7 +180,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,7 +191,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_); } @@ -249,7 +215,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_); @@ -262,17 +229,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -296,135 +265,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -436,9 +399,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 @@ -457,11 +420,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.ListCustomClassesRequest result = new com.google.cloud.speech.v1.ListCustomClassesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -483,39 +443,38 @@ private void buildPartial0(com.google.cloud.speech.v1.ListCustomClassesRequest r 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; @@ -523,8 +482,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_; bitField0_ |= 0x00000001; @@ -564,31 +522,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -598,13 +552,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -615,16 +566,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; @@ -633,8 +582,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -645,17 +592,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 { @@ -663,8 +609,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -675,25 +619,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -704,10 +642,7 @@ 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() { @@ -717,8 +652,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -729,17 +662,13 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -747,10 +676,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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
@@ -759,7 +686,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -767,8 +693,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
@@ -777,20 +701,17 @@ 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; bitField0_ |= 0x00000002; 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
@@ -799,7 +720,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -811,8 +731,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.
@@ -821,13 +739,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; @@ -836,8 +754,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -846,14 +762,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 { @@ -861,8 +778,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -871,22 +786,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -895,7 +806,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -905,8 +815,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -915,23 +823,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -941,12 +847,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(); } @@ -955,27 +861,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -990,4 +896,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.ListCustomClassesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java index 8644a10667d2..5e2d443bfaad 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java index a12356f80bc4..1d187f70614c 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private java.util.List customClasses_; /** - * - * *
    * The custom classes.
    * 
@@ -86,8 +64,6 @@ public java.util.List getCustomClassesLi return customClasses_; } /** - * - * *
    * The custom classes.
    * 
@@ -95,13 +71,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.
    * 
@@ -113,8 +87,6 @@ public int getCustomClassesCount() { return customClasses_.size(); } /** - * - * *
    * The custom classes.
    * 
@@ -126,8 +98,6 @@ public com.google.cloud.speech.v1.CustomClass getCustomClasses(int index) { return customClasses_.get(index); } /** - * - * *
    * The custom classes.
    * 
@@ -135,24 +105,21 @@ 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; - @SuppressWarnings("serial") 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 @@ -161,30 +128,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 { @@ -193,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +171,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)); } @@ -222,7 +189,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_); @@ -235,16 +203,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,135 +237,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -413,9 +376,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 @@ -434,18 +397,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1.ListCustomClassesResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1.ListCustomClassesResponse result) { if (customClassesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { customClasses_ = java.util.Collections.unmodifiableList(customClasses_); @@ -468,39 +427,38 @@ private void buildPartial0(com.google.cloud.speech.v1.ListCustomClassesResponse 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; @@ -508,8 +466,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()) { @@ -528,10 +485,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_); } @@ -568,32 +524,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1.CustomClass m = - input.readMessage( - com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry); - if (customClassesBuilder_ == null) { - ensureCustomClassesIsMutable(); - customClasses_.add(m); - } else { - customClassesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.speech.v1.CustomClass m = + input.readMessage( + com.google.cloud.speech.v1.CustomClass.parser(), + extensionRegistry); + if (customClassesBuilder_ == null) { + ensureCustomClassesIsMutable(); + customClasses_.add(m); + } else { + customClassesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -603,29 +557,21 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -640,8 +586,6 @@ public java.util.List getCustomClassesLi } } /** - * - * *
      * The custom classes.
      * 
@@ -656,8 +600,6 @@ public int getCustomClassesCount() { } } /** - * - * *
      * The custom classes.
      * 
@@ -672,15 +614,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(); @@ -694,8 +635,6 @@ public Builder setCustomClasses(int index, com.google.cloud.speech.v1.CustomClas return this; } /** - * - * *
      * The custom classes.
      * 
@@ -714,8 +653,6 @@ public Builder setCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -736,15 +673,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(); @@ -758,8 +694,6 @@ public Builder addCustomClasses(int index, com.google.cloud.speech.v1.CustomClas return this; } /** - * - * *
      * The custom classes.
      * 
@@ -778,8 +712,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -798,8 +730,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -810,7 +740,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); @@ -818,8 +749,6 @@ public Builder addAllCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -837,8 +766,6 @@ public Builder clearCustomClasses() { return this; } /** - * - * *
      * The custom classes.
      * 
@@ -856,44 +783,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 { @@ -901,8 +823,6 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder } } /** - * - * *
      * The custom classes.
      * 
@@ -910,47 +830,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(), @@ -962,21 +873,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; @@ -985,22 +894,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 { @@ -1008,37 +916,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1048,31 +949,27 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1082,12 +979,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(); } @@ -1096,27 +993,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1131,4 +1028,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.ListCustomClassesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java index 187213b4a1cc..59b5c44f8cf4 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java index 279e1256747e..40f7a9b35b96 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -85,10 +63,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 @@ -97,15 +72,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}`
@@ -116,18 +90,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 { @@ -138,8 +111,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * 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
@@ -148,7 +119,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -157,12 +127,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -171,7 +138,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -180,15 +146,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.
@@ -197,15 +162,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 { @@ -214,7 +180,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,7 +191,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_); } @@ -249,7 +215,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_); @@ -262,17 +229,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -295,136 +264,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -436,9 +399,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 @@ -457,11 +420,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.ListPhraseSetRequest result = new com.google.cloud.speech.v1.ListPhraseSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -483,39 +443,38 @@ private void buildPartial0(com.google.cloud.speech.v1.ListPhraseSetRequest resul 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; @@ -523,8 +482,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_; bitField0_ |= 0x00000001; @@ -564,31 +522,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -598,13 +552,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -615,16 +566,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; @@ -633,8 +582,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -645,17 +592,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 { @@ -663,8 +609,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -675,25 +619,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -704,10 +642,7 @@ 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() { @@ -717,8 +652,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -729,17 +662,13 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -747,10 +676,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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
@@ -759,7 +686,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -767,8 +693,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
@@ -777,20 +701,17 @@ 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; bitField0_ |= 0x00000002; 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
@@ -799,7 +720,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -811,8 +731,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.
@@ -821,13 +739,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; @@ -836,8 +754,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -846,14 +762,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 { @@ -861,8 +778,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -871,22 +786,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -895,7 +806,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -905,8 +815,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -915,23 +823,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -941,12 +847,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(); } @@ -955,27 +861,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -990,4 +896,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.ListPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java index 21e2b44cf07c..0077943458ba 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java index ce02bef96807..86740efe5c81 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private java.util.List phraseSets_; /** - * - * *
    * The phrase set.
    * 
@@ -86,8 +64,6 @@ public java.util.List getPhraseSetsList() return phraseSets_; } /** - * - * *
    * The phrase set.
    * 
@@ -95,13 +71,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.
    * 
@@ -113,8 +87,6 @@ public int getPhraseSetsCount() { return phraseSets_.size(); } /** - * - * *
    * The phrase set.
    * 
@@ -126,8 +98,6 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** - * - * *
    * The phrase set.
    * 
@@ -135,24 +105,21 @@ 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; - @SuppressWarnings("serial") 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 @@ -161,30 +128,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 { @@ -193,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +171,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)); } @@ -222,7 +189,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_); @@ -235,16 +203,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -267,136 +236,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -413,9 +376,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 @@ -434,18 +397,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1.ListPhraseSetResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1.ListPhraseSetResponse result) { if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -468,39 +427,38 @@ private void buildPartial0(com.google.cloud.speech.v1.ListPhraseSetResponse resu 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; @@ -508,8 +466,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()) { @@ -528,10 +485,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_); } @@ -568,32 +524,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1.PhraseSet m = - input.readMessage( - com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry); - if (phraseSetsBuilder_ == null) { - ensurePhraseSetsIsMutable(); - phraseSets_.add(m); - } else { - phraseSetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.speech.v1.PhraseSet m = + input.readMessage( + com.google.cloud.speech.v1.PhraseSet.parser(), + extensionRegistry); + if (phraseSetsBuilder_ == null) { + ensurePhraseSetsIsMutable(); + phraseSets_.add(m); + } else { + phraseSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -603,28 +557,21 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -639,8 +586,6 @@ public java.util.List getPhraseSetsList() } } /** - * - * *
      * The phrase set.
      * 
@@ -655,8 +600,6 @@ public int getPhraseSetsCount() { } } /** - * - * *
      * The phrase set.
      * 
@@ -671,15 +614,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(); @@ -693,8 +635,6 @@ public Builder setPhraseSets(int index, com.google.cloud.speech.v1.PhraseSet val return this; } /** - * - * *
      * The phrase set.
      * 
@@ -713,8 +653,6 @@ public Builder setPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -735,15 +673,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(); @@ -757,15 +694,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()); @@ -776,8 +712,6 @@ public Builder addPhraseSets(com.google.cloud.speech.v1.PhraseSet.Builder builde return this; } /** - * - * *
      * The phrase set.
      * 
@@ -796,8 +730,6 @@ public Builder addPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -808,7 +740,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); @@ -816,8 +749,6 @@ public Builder addAllPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -835,8 +766,6 @@ public Builder clearPhraseSets() { return this; } /** - * - * *
      * The phrase set.
      * 
@@ -854,44 +783,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 { @@ -899,8 +823,6 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int } } /** - * - * *
      * The phrase set.
      * 
@@ -908,47 +830,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_; @@ -956,21 +873,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; @@ -979,22 +894,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 { @@ -1002,37 +916,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1042,31 +949,27 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1076,12 +979,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(); } @@ -1090,27 +993,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1125,4 +1028,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.ListPhraseSetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java similarity index 66% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java index 4b06b62509dc..8f78e4160d41 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java index 0ac185cf74f7..e88617c106db 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java +++ b/owl-bot-staging/java-speech/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,58 +12,53 @@
  *
  * 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;
   }
-
-  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_ = 0;
   /**
-   *
-   *
    * 
    * 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 @@ -91,14 +69,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 @@ -106,14 +81,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 @@ -121,8 +93,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Time when the request was received.
    * 
@@ -137,14 +107,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 @@ -152,25 +119,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.
    * 
@@ -179,25 +139,19 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - return lastUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastUpdateTime_; + return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } public static final int URI_FIELD_NUMBER = 4; - @SuppressWarnings("serial") 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 @@ -206,30 +160,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 { @@ -238,7 +192,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,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 (progressPercent_ != 0) { output.writeInt32(1, progressPercent_); } @@ -273,13 +227,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_); @@ -292,24 +249,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,104 +299,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
@@ -445,32 +397,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -491,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_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
@@ -512,11 +465,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v1.LongRunningRecognizeMetadata result = new com.google.cloud.speech.v1.LongRunningRecognizeMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -527,11 +477,14 @@ private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeMetada
         result.progressPercent_ = progressPercent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null
+            ? startTime_
+            : startTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.lastUpdateTime_ =
-            lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build();
+        result.lastUpdateTime_ = lastUpdateTimeBuilder_ == null
+            ? lastUpdateTime_
+            : lastUpdateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.uri_ = uri_;
@@ -542,39 +495,38 @@ private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeMetada
     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;
@@ -582,8 +534,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());
       }
@@ -624,37 +575,36 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                progressPercent_ = input.readInt32();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                uri_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              progressPercent_ = input.readInt32();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              input.readMessage(
+                  getStartTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getLastUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              uri_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -664,20 +614,16 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    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 @@ -685,35 +631,29 @@ 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; bitField0_ |= 0x00000001; 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() { @@ -725,33 +665,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -762,8 +693,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Time when the request was received.
      * 
@@ -784,15 +713,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(); } else { @@ -803,8 +731,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -813,9 +739,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -828,8 +754,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -847,8 +771,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -861,8 +783,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the request was received.
      * 
@@ -873,12 +793,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.
      * 
@@ -886,17 +805,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_; @@ -904,47 +820,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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.
      * 
@@ -965,15 +868,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(); } else { @@ -984,8 +886,6 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -994,9 +894,9 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && lastUpdateTime_ != null - && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + lastUpdateTime_ != null && + lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; @@ -1009,8 +909,6 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1028,8 +926,6 @@ public Builder clearLastUpdateTime() { return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1042,8 +938,6 @@ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { return getLastUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1054,14 +948,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.
      * 
@@ -1069,17 +960,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_; @@ -1087,21 +975,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; @@ -1110,22 +996,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 { @@ -1133,37 +1018,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000008; 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() { @@ -1173,31 +1051,27 @@ public Builder clearUri() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000008; 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); } @@ -1207,12 +1081,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(); } @@ -1221,27 +1095,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; 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.LongRunningRecognizeMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java similarity index 74% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java index 2b8a33c7f5ef..ccedbf890615 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java similarity index 58% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java index 71531d95df77..848c9c5dcfb1 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java +++ b/owl-bot-staging/java-speech/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,58 +11,52 @@
  *
  * 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;
   }
-
-  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 @@ -87,57 +64,39 @@ 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() { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } 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 @@ -145,55 +104,37 @@ 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() { - return audio_ == null - ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; } 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 @@ -201,44 +142,30 @@ 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() { - return outputConfig_ == null - ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,7 +177,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()); } @@ -270,13 +198,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -286,25 +217,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -335,104 +268,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.
@@ -440,32 +365,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -489,9 +415,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
@@ -510,11 +436,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v1.LongRunningRecognizeRequest result = new com.google.cloud.speech.v1.LongRunningRecognizeRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -522,14 +445,19 @@ public com.google.cloud.speech.v1.LongRunningRecognizeRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
+        result.config_ = configBuilder_ == null
+            ? config_
+            : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.audio_ = audioBuilder_ == null ? audio_ : audioBuilder_.build();
+        result.audio_ = audioBuilder_ == null
+            ? audio_
+            : audioBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.outputConfig_ =
-            outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
+        result.outputConfig_ = outputConfigBuilder_ == null
+            ? outputConfig_
+            : outputConfigBuilder_.build();
       }
     }
 
@@ -537,39 +465,38 @@ private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeReques
     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;
@@ -577,8 +504,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());
       }
@@ -614,31 +540,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getAudioFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 34:
-              {
-                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getAudioFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 34: {
+              input.readMessage(
+                  getOutputConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -648,66 +576,46 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * 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) { @@ -723,18 +631,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(); } else { @@ -745,22 +650,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 (((bitField0_ & 0x00000001) != 0) - && config_ != null - && config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + config_ != null && + config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -773,16 +674,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -795,16 +692,12 @@ 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() { bitField0_ |= 0x00000001; @@ -812,50 +705,38 @@ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { 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_; @@ -863,58 +744,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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) { @@ -930,17 +792,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(); } else { @@ -951,21 +810,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 (((bitField0_ & 0x00000002) != 0) - && audio_ != null - && audio_ != com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + audio_ != null && + audio_ != com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) { getAudioBuilder().mergeFrom(value); } else { audio_ = value; @@ -978,15 +833,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -999,15 +850,11 @@ 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() { bitField0_ |= 0x00000002; @@ -1015,48 +862,36 @@ public com.google.cloud.speech.v1.RecognitionAudio.Builder getAudioBuilder() { 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_; @@ -1064,58 +899,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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) { @@ -1131,15 +947,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) { @@ -1153,22 +965,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 (((bitField0_ & 0x00000004) != 0) - && outputConfig_ != null - && outputConfig_ - != com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + outputConfig_ != null && + outputConfig_ != com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -1181,15 +988,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1202,15 +1005,11 @@ 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() { bitField0_ |= 0x00000004; @@ -1218,55 +1017,43 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig.Builder getOutputConfig 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); } @@ -1276,12 +1063,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(); } @@ -1290,27 +1077,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1325,4 +1112,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v1.LongRunningRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java similarity index 51% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java index 3a4e90c85d6f..fe890f69a390 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java similarity index 73% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java index e9effc5e23ac..dfe8f2186768 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java +++ b/owl-bot-staging/java-speech/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,53 +14,48 @@
  *
  * 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -90,8 +68,6 @@ public java.util.List getRes
     return results_;
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -100,13 +76,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.
@@ -119,8 +93,6 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -133,8 +105,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.
@@ -151,14 +121,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 @@ -166,25 +133,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.
    * 
@@ -193,22 +153,17 @@ public com.google.protobuf.Duration getTotalBilledTime() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } 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 @@ -216,25 +171,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.
    * 
@@ -243,22 +191,17 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig() { */ @java.lang.Override public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { - return outputConfig_ == null - ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } 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 @@ -266,14 +209,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 @@ -281,8 +221,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.
    * 
@@ -297,14 +235,11 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 8; private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_; /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -312,25 +247,18 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
@@ -338,25 +266,19 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; */ @java.lang.Override - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 9; private long requestId_ = 0L; /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 9; - * * @return The requestId. */ @java.lang.Override @@ -365,7 +287,6 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -377,7 +298,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)); } @@ -406,23 +328,28 @@ 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()); } if (speechAdaptationInfo_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSpeechAdaptationInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, requestId_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -432,32 +359,37 @@ 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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo() + .equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() != other.getRequestId()) return false; + if (getRequestId() + != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -490,111 +422,104 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } 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`
@@ -605,32 +530,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -667,9 +593,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
@@ -688,18 +614,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v1.LongRunningRecognizeResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v1.LongRunningRecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -714,22 +636,24 @@ private void buildPartialRepeatedFields(
     private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.totalBilledTime_ =
-            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
+            ? totalBilledTime_
+            : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.outputConfig_ =
-            outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
+        result.outputConfig_ = outputConfigBuilder_ == null
+            ? outputConfig_
+            : outputConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.outputError_ =
-            outputErrorBuilder_ == null ? outputError_ : outputErrorBuilder_.build();
+        result.outputError_ = outputErrorBuilder_ == null
+            ? outputError_
+            : outputErrorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.speechAdaptationInfo_ =
-            speechAdaptationInfoBuilder_ == null
-                ? speechAdaptationInfo_
-                : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
+            ? speechAdaptationInfo_
+            : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.requestId_ = requestId_;
@@ -740,39 +664,38 @@ private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeRespon
     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;
@@ -780,8 +703,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()) {
@@ -800,10 +722,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_);
           }
@@ -850,58 +771,58 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18:
-              {
-                com.google.cloud.speech.v1.SpeechRecognitionResult m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
-                        extensionRegistry);
-                if (resultsBuilder_ == null) {
-                  ensureResultsIsMutable();
-                  results_.add(m);
-                } else {
-                  resultsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-            case 50:
-              {
-                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getOutputErrorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(
-                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 66
-            case 72:
-              {
-                requestId_ = input.readInt64();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 72
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 18: {
+              com.google.cloud.speech.v1.SpeechRecognitionResult m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
+                      extensionRegistry);
+              if (resultsBuilder_ == null) {
+                ensureResultsIsMutable();
+                results_.add(m);
+              } else {
+                resultsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getTotalBilledTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 26
+            case 50: {
+              input.readMessage(
+                  getOutputConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getOutputErrorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 66
+            case 72: {
+              requestId_ = input.readInt64();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 72
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -911,29 +832,21 @@ public Builder mergeFrom(
       } // finally
       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.
@@ -949,8 +862,6 @@ public java.util.List getRes
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -966,8 +877,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -983,8 +892,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -992,7 +899,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();
@@ -1006,8 +914,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.
@@ -1027,8 +933,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1050,8 +954,6 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1059,7 +961,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();
@@ -1073,8 +976,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.
@@ -1094,8 +995,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1115,8 +1014,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1128,7 +1025,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);
@@ -1136,8 +1034,6 @@ public Builder addAllResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1156,8 +1052,6 @@ public Builder clearResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1176,8 +1070,6 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1185,12 +1077,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.
@@ -1201,14 +1092,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.
@@ -1216,8 +1104,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 {
@@ -1225,8 +1113,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1235,12 +1121,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.
@@ -1248,14 +1132,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.
@@ -1263,23 +1145,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_;
@@ -1287,47 +1166,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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.
      * 
@@ -1348,15 +1214,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(); } else { @@ -1367,8 +1232,6 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1377,9 +1240,9 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo */ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && totalBilledTime_ != null - && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + totalBilledTime_ != null && + totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getTotalBilledTimeBuilder().mergeFrom(value); } else { totalBilledTime_ = value; @@ -1392,8 +1255,6 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1411,8 +1272,6 @@ public Builder clearTotalBilledTime() { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1425,8 +1284,6 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { return getTotalBilledTimeFieldBuilder().getBuilder(); } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1437,14 +1294,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.
      * 
@@ -1452,17 +1306,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_; @@ -1470,47 +1321,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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.
      * 
@@ -1531,8 +1369,6 @@ public Builder setOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1551,8 +1387,6 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1561,10 +1395,9 @@ public Builder setOutputConfig( */ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && outputConfig_ != null - && outputConfig_ - != com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + outputConfig_ != null && + outputConfig_ != com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -1577,8 +1410,6 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConf return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1596,8 +1427,6 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1610,8 +1439,6 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig.Builder getOutputConfig return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1622,14 +1449,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.
      * 
@@ -1637,17 +1461,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_; @@ -1655,31 +1476,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 ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * 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() { @@ -1690,8 +1504,6 @@ public com.google.rpc.Status getOutputError() { } } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1712,15 +1524,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(); } else { @@ -1731,8 +1542,6 @@ public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1741,9 +1550,9 @@ public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeOutputError(com.google.rpc.Status value) { if (outputErrorBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && outputError_ != null - && outputError_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + outputError_ != null && + outputError_ != com.google.rpc.Status.getDefaultInstance()) { getOutputErrorBuilder().mergeFrom(value); } else { outputError_ = value; @@ -1756,8 +1565,6 @@ public Builder mergeOutputError(com.google.rpc.Status value) { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1775,8 +1582,6 @@ public Builder clearOutputError() { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1789,8 +1594,6 @@ public com.google.rpc.Status.Builder getOutputErrorBuilder() { return getOutputErrorFieldBuilder().getBuilder(); } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1801,12 +1604,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.
      * 
@@ -1814,15 +1616,14 @@ 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_; @@ -1830,47 +1631,34 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, - com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> - speechAdaptationInfoBuilder_; + com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_; /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1891,8 +1679,6 @@ public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptati return this; } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1911,21 +1697,17 @@ public Builder setSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public Builder mergeSpeechAdaptationInfo( - com.google.cloud.speech.v1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && speechAdaptationInfo_ != null - && speechAdaptationInfo_ - != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + speechAdaptationInfo_ != null && + speechAdaptationInfo_ != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -1938,8 +1720,6 @@ public Builder mergeSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1957,42 +1737,33 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder - getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? + com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -2000,33 +1771,27 @@ public Builder clearSpeechAdaptationInfo() { * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, - com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, - com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), getParentForChildren(), isClean()); + speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), + getParentForChildren(), + isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_; + private long requestId_ ; /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; - * * @return The requestId. */ @java.lang.Override @@ -2034,35 +1799,29 @@ public long getRequestId() { return requestId_; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; - * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -2071,9 +1830,9 @@ public Builder clearRequestId() { 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); } @@ -2083,12 +1842,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(); } @@ -2097,27 +1856,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2132,4 +1891,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.speech.v1.LongRunningRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java similarity index 84% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java index 38e77a1cc96c..1faf564a96a8 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/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.
    * 
@@ -186,32 +138,24 @@ public interface LongRunningRecognizeResponseOrBuilder com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder(); /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
@@ -221,15 +165,12 @@ public interface LongRunningRecognizeResponseOrBuilder com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 9; - * * @return The requestId. */ long getRequestId(); diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java similarity index 73% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java index 6587e7bb6196..2db60ebdd2ac 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java +++ b/owl-bot-staging/java-speech/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,63 +27,54 @@ 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;
   }
-
-  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
@@ -110,19 +83,16 @@ public interface PhraseOrBuilder
      * boost will simply be ignored. Though `boost` can accept a wide range of
      * positive values, most use cases are best served
      * with values between 0 and 20. We recommend using a binary search approach
-     * to finding the optimal value for your use case. Speech recognition
-     * will skip PhraseSets with a boost value of 0.
+     * to finding the optimal value for your use case as well as adding
+     * phrases both with and without boost to your requests.
      * 
* * 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
@@ -145,65 +115,59 @@ public interface PhraseOrBuilder
    * Speech-to-Text supports three locations: `global`, `us` (US North America),
    * and `eu` (Europe). If you are calling the `speech.googleapis.com`
    * endpoint, use the `global` location. To specify a region, use a
-   * [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or
-   * `eu` location value.
+   * [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
+   * with matching `us` or `eu` location value.
    * 
* * 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** - * - * *
      * The phrase itself.
      * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -212,29 +176,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 { @@ -245,8 +209,6 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_ = 0F; /** - * - * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -255,12 +217,11 @@ public com.google.protobuf.ByteString getValueBytes() {
      * boost will simply be ignored. Though `boost` can accept a wide range of
      * positive values, most use cases are best served
      * with values between 0 and 20. We recommend using a binary search approach
-     * to finding the optimal value for your use case. Speech recognition
-     * will skip PhraseSets with a boost value of 0.
+     * to finding the optimal value for your use case as well as adding
+     * phrases both with and without boost to your requests.
      * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -269,7 +230,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -281,7 +241,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_); } @@ -301,7 +262,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -311,17 +273,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -336,100 +299,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) + getUnknownFields().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 @@ -439,8 +397,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
@@ -463,39 +419,39 @@ protected Builder newBuilderForType(
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
      * endpoint, use the `global` location. To specify a region, use a
-     * [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or
-     * `eu` location value.
+     * [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
+     * with matching `us` or `eu` location value.
      * 
* * 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -506,9 +462,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 @@ -527,11 +483,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.PhraseSet.Phrase result = new com.google.cloud.speech.v1.PhraseSet.Phrase(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -550,41 +503,38 @@ private void buildPartial0(com.google.cloud.speech.v1.PhraseSet.Phrase result) { 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; @@ -627,25 +577,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: - { - boost_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + boost_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -655,25 +602,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -682,21 +626,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 { @@ -704,35 +647,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The phrase itself.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -742,21 +678,17 @@ public Builder clearValue() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; @@ -764,10 +696,8 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { 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
@@ -776,12 +706,11 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) {
        * boost will simply be ignored. Though `boost` can accept a wide range of
        * positive values, most use cases are best served
        * with values between 0 and 20. We recommend using a binary search approach
-       * to finding the optimal value for your use case. Speech recognition
-       * will skip PhraseSets with a boost value of 0.
+       * to finding the optimal value for your use case as well as adding
+       * phrases both with and without boost to your requests.
        * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -789,8 +718,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
@@ -799,25 +726,22 @@ public float getBoost() {
        * boost will simply be ignored. Though `boost` can accept a wide range of
        * positive values, most use cases are best served
        * with values between 0 and 20. We recommend using a binary search approach
-       * to finding the optimal value for your use case. Speech recognition
-       * will skip PhraseSets with a boost value of 0.
+       * to finding the optimal value for your use case as well as adding
+       * phrases both with and without boost to your requests.
        * 
* * float boost = 2; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000002; 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
@@ -826,12 +750,11 @@ public Builder setBoost(float value) {
        * boost will simply be ignored. Though `boost` can accept a wide range of
        * positive values, most use cases are best served
        * with values between 0 and 20. We recommend using a binary search approach
-       * to finding the optimal value for your use case. Speech recognition
-       * will skip PhraseSets with a boost value of 0.
+       * to finding the optimal value for your use case as well as adding
+       * phrases both with and without boost to your requests.
        * 
* * float boost = 2; - * * @return This builder for chaining. */ public Builder clearBoost() { @@ -840,7 +763,6 @@ public Builder clearBoost() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -853,12 +775,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(); } @@ -867,28 +789,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -903,21 +824,18 @@ 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name of the phrase set.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -926,29 +844,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 { @@ -957,12 +875,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int PHRASES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List phrases_; /** - * - * *
    * A list of word and phrases.
    * 
@@ -974,8 +889,6 @@ public java.util.List getPhrasesLis return phrases_; } /** - * - * *
    * A list of word and phrases.
    * 
@@ -983,13 +896,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.
    * 
@@ -1001,8 +912,6 @@ public int getPhrasesCount() { return phrases_.size(); } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1014,8 +923,6 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase getPhrases(int index) { return phrases_.get(index); } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1023,15 +930,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_ = 0F; /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -1040,12 +946,11 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    * enabled, so negative boost will simply be ignored. Though `boost` can
    * accept a wide range of positive values, most use cases are best served with
    * values between 0 (exclusive) and 20. We recommend using a binary search
-   * approach to finding the optimal value for your use case. Speech recognition
-   * will skip PhraseSets with a boost value of 0.
+   * approach to finding the optimal value for your use case as well as adding
+   * phrases both with and without boost to your requests.
    * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -1054,7 +959,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1066,7 +970,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_); } @@ -1089,10 +994,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1102,17 +1009,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1131,109 +1041,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) + getUnknownFields().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.
@@ -1241,32 +1146,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1284,9 +1190,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
@@ -1307,9 +1213,7 @@ public com.google.cloud.speech.v1.PhraseSet build() {
     public com.google.cloud.speech.v1.PhraseSet buildPartial() {
       com.google.cloud.speech.v1.PhraseSet result = new com.google.cloud.speech.v1.PhraseSet(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1340,39 +1244,38 @@ private void buildPartial0(com.google.cloud.speech.v1.PhraseSet result) {
     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;
@@ -1404,10 +1307,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            phrasesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPhrasesFieldBuilder()
-                    : null;
+            phrasesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPhrasesFieldBuilder() : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -1442,38 +1344,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.cloud.speech.v1.PhraseSet.Phrase m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1.PhraseSet.Phrase.parser(), extensionRegistry);
-                if (phrasesBuilder_ == null) {
-                  ensurePhrasesIsMutable();
-                  phrases_.add(m);
-                } else {
-                  phrasesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 37:
-              {
-                boost_ = input.readFloat();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 37
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              com.google.cloud.speech.v1.PhraseSet.Phrase m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.PhraseSet.Phrase.parser(),
+                      extensionRegistry);
+              if (phrasesBuilder_ == null) {
+                ensurePhrasesIsMutable();
+                phrases_.add(m);
+              } else {
+                phrasesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 37: {
+              boost_ = input.readFloat();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 37
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1483,25 +1382,22 @@ public Builder mergeFrom(
       } // finally
       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; @@ -1510,21 +1406,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 { @@ -1532,35 +1427,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1570,21 +1458,17 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1593,24 +1477,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private java.util.List phrases_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { phrases_ = new java.util.ArrayList(phrases_); bitField0_ |= 0x00000002; - } + } } 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.
      * 
@@ -1625,8 +1503,6 @@ public java.util.List getPhrasesLis } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1641,8 +1517,6 @@ public int getPhrasesCount() { } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1657,15 +1531,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(); @@ -1679,8 +1552,6 @@ public Builder setPhrases(int index, com.google.cloud.speech.v1.PhraseSet.Phrase return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1699,8 +1570,6 @@ public Builder setPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1721,15 +1590,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(); @@ -1743,15 +1611,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()); @@ -1762,8 +1629,6 @@ public Builder addPhrases(com.google.cloud.speech.v1.PhraseSet.Phrase.Builder bu return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1782,8 +1647,6 @@ public Builder addPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1794,7 +1657,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); @@ -1802,8 +1666,6 @@ public Builder addAllPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1821,8 +1683,6 @@ public Builder clearPhrases() { return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1840,44 +1700,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 { @@ -1885,8 +1740,6 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1894,57 +1747,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_ & 0x00000002) != 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_ & 0x00000002) != 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
@@ -1953,12 +1798,11 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder(int
      * enabled, so negative boost will simply be ignored. Though `boost` can
      * accept a wide range of positive values, most use cases are best served with
      * values between 0 (exclusive) and 20. We recommend using a binary search
-     * approach to finding the optimal value for your use case. Speech recognition
-     * will skip PhraseSets with a boost value of 0.
+     * approach to finding the optimal value for your use case as well as adding
+     * phrases both with and without boost to your requests.
      * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -1966,8 +1810,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
@@ -1976,25 +1818,22 @@ public float getBoost() {
      * enabled, so negative boost will simply be ignored. Though `boost` can
      * accept a wide range of positive values, most use cases are best served with
      * values between 0 (exclusive) and 20. We recommend using a binary search
-     * approach to finding the optimal value for your use case. Speech recognition
-     * will skip PhraseSets with a boost value of 0.
+     * approach to finding the optimal value for your use case as well as adding
+     * phrases both with and without boost to your requests.
      * 
* * float boost = 4; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000004; 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
@@ -2003,12 +1842,11 @@ public Builder setBoost(float value) {
      * enabled, so negative boost will simply be ignored. Though `boost` can
      * accept a wide range of positive values, most use cases are best served with
      * values between 0 (exclusive) and 20. We recommend using a binary search
-     * approach to finding the optimal value for your use case. Speech recognition
-     * will skip PhraseSets with a boost value of 0.
+     * approach to finding the optimal value for your use case as well as adding
+     * phrases both with and without boost to your requests.
      * 
* * float boost = 4; - * * @return This builder for chaining. */ public Builder clearBoost() { @@ -2017,9 +1855,9 @@ public Builder clearBoost() { 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); } @@ -2029,12 +1867,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(); } @@ -2043,27 +1881,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2078,4 +1916,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java similarity index 68% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java index 39857ed50248..0119e7f7482e 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java +++ b/owl-bot-staging/java-speech/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
@@ -111,12 +80,11 @@ public interface PhraseSetOrBuilder
    * enabled, so negative boost will simply be ignored. Though `boost` can
    * accept a wide range of positive values, most use cases are best served with
    * values between 0 (exclusive) and 20. We recommend using a binary search
-   * approach to finding the optimal value for your use case. Speech recognition
-   * will skip PhraseSets with a boost value of 0.
+   * approach to finding the optimal value for your use case as well as adding
+   * phrases both with and without boost to your requests.
    * 
* * float boost = 4; - * * @return The boost. */ float getBoost(); diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java similarity index 73% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java index 359a12656d5b..2f024eabd65d 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java +++ b/owl-bot-staging/java-speech/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,56 +13,52 @@
  *
  * 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;
   }
-
-  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;
     }
@@ -95,30 +74,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
@@ -126,7 +100,6 @@ public AudioSourceCase getAudioSourceCase() {
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ @java.lang.Override @@ -134,8 +107,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
@@ -143,7 +114,6 @@ public boolean hasContent() {
    * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -156,8 +126,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).
@@ -169,15 +137,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).
@@ -189,7 +154,6 @@ public boolean hasUri() {
    * 
* * string uri = 2; - * * @return The uri. */ public java.lang.String getUri() { @@ -200,7 +164,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; @@ -209,8 +174,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).
@@ -222,17 +185,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; } @@ -243,7 +207,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,9 +218,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_); @@ -272,9 +237,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_); @@ -287,21 +252,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: @@ -334,104 +300,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
@@ -441,32 +400,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -477,9 +437,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
@@ -498,11 +458,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v1.RecognitionAudio result = new com.google.cloud.speech.v1.RecognitionAudio(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -521,39 +478,38 @@ private void buildPartialOneofs(com.google.cloud.speech.v1.RecognitionAudio resu
     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;
@@ -563,22 +519,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.getUnknownFields());
       onChanged();
@@ -606,26 +559,23 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                audioSource_ = input.readBytes();
-                audioSourceCase_ = 1;
-                break;
-              } // case 10
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                audioSourceCase_ = 2;
-                audioSource_ = s;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              audioSource_ = input.readBytes();
+              audioSourceCase_ = 1;
+              break;
+            } // case 10
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              audioSourceCase_ = 2;
+              audioSource_ = s;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -635,12 +585,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -653,8 +603,6 @@ public Builder clearAudioSource() {
     private int bitField0_;
 
     /**
-     *
-     *
      * 
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -662,15 +610,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
@@ -678,7 +623,6 @@ public boolean hasContent() {
      * 
* * bytes content = 1; - * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -688,8 +632,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
@@ -697,22 +639,17 @@ 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(); - } + if (value == null) { 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
@@ -720,7 +657,6 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -733,8 +669,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).
@@ -746,7 +680,6 @@ public Builder clearContent() {
      * 
* * string uri = 2; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -754,8 +687,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).
@@ -767,7 +698,6 @@ public boolean hasUri() {
      * 
* * string uri = 2; - * * @return The uri. */ @java.lang.Override @@ -777,7 +707,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; @@ -788,8 +719,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).
@@ -801,18 +730,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; } @@ -822,8 +752,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).
@@ -835,22 +763,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { 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).
@@ -862,7 +786,6 @@ public Builder setUri(java.lang.String value) {
      * 
* * string uri = 2; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -874,8 +797,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).
@@ -887,23 +808,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { 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); } @@ -913,12 +832,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(); } @@ -927,27 +846,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -962,4 +881,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionAudio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java similarity index 79% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java index b8330aa93016..4347fb6f5a58 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java similarity index 83% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java index 8bf3511d1e87..edeacb7e360d 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java +++ b/owl-bot-staging/java-speech/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,33 +30,30 @@ 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;
   }
-
-  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
@@ -100,10 +79,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.
      * 
@@ -112,8 +90,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ ENCODING_UNSPECIFIED(0), /** - * - * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -122,8 +98,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ LINEAR16(1), /** - * - * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -137,8 +111,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.
      * 
@@ -147,8 +119,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ MULAW(3), /** - * - * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -157,8 +127,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ AMR(4), /** - * - * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -167,8 +135,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)).
@@ -179,8 +145,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
@@ -201,8 +165,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
@@ -216,8 +178,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -226,8 +186,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).
      * 
@@ -236,8 +194,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
@@ -251,8 +207,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.
      * 
@@ -261,8 +215,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.
      * 
@@ -271,8 +223,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.
      * 
@@ -281,8 +231,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)).
@@ -293,8 +241,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
@@ -315,8 +261,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
@@ -327,6 +271,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(
@@ -351,61 +296,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;
@@ -425,8 +364,6 @@ private AudioEncoding(int value) {
   public static final int ENCODING_FIELD_NUMBER = 1;
   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
@@ -434,16 +371,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
@@ -451,23 +384,16 @@ 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() { - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.forNumber(encoding_); - return result == null - ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding() { + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.forNumber(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_ = 0; /** - * - * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -479,7 +405,6 @@ public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding()
    * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -490,8 +415,6 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 7; private int audioChannelCount_ = 0; /** - * - * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -504,7 +427,6 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 7; - * * @return The audioChannelCount. */ @java.lang.Override @@ -515,8 +437,6 @@ public int getAudioChannelCount() { public static final int ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER = 12; private boolean enableSeparateRecognitionPerChannel_ = false; /** - * - * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -527,7 +447,6 @@ public int getAudioChannelCount() {
    * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -536,12 +455,9 @@ public boolean getEnableSeparateRecognitionPerChannel() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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.
@@ -552,7 +468,6 @@ public boolean getEnableSeparateRecognitionPerChannel() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The languageCode. */ @java.lang.Override @@ -561,15 +476,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.
@@ -580,15 +494,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 { @@ -597,12 +512,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } public static final int ALTERNATIVE_LANGUAGE_CODES_FIELD_NUMBER = 18; - @SuppressWarnings("serial") 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,
@@ -619,15 +531,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,
@@ -644,15 +554,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,
@@ -669,7 +576,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. */ @@ -677,8 +583,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,
@@ -695,19 +599,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_ = 0; /** - * - * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -718,7 +620,6 @@ public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index
    * 
* * int32 max_alternatives = 4; - * * @return The maxAlternatives. */ @java.lang.Override @@ -729,8 +630,6 @@ public int getMaxAlternatives() { public static final int PROFANITY_FILTER_FIELD_NUMBER = 5; private boolean profanityFilter_ = false; /** - * - * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -739,7 +638,6 @@ public int getMaxAlternatives() {
    * 
* * bool profanity_filter = 5; - * * @return The profanityFilter. */ @java.lang.Override @@ -750,8 +648,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
@@ -761,7 +657,6 @@ public boolean getProfanityFilter() {
    * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; - * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -769,8 +664,6 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -780,18 +673,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
@@ -804,18 +692,13 @@ public com.google.cloud.speech.v1.SpeechAdaptation getAdaptation() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v1.SpeechAdaptationOrBuilder getAdaptationOrBuilder() {
-    return adaptation_ == null
-        ? com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance()
-        : adaptation_;
+    return adaptation_ == null ? com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance() : adaptation_;
   }
 
   public static final int SPEECH_CONTEXTS_FIELD_NUMBER = 6;
-
   @SuppressWarnings("serial")
   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
@@ -831,8 +714,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
@@ -844,13 +725,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
@@ -866,8 +745,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
@@ -883,8 +760,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
@@ -896,15 +771,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_ = false;
   /**
-   *
-   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -913,7 +787,6 @@ public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool enable_word_time_offsets = 8; - * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -924,8 +797,6 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 15; private boolean enableWordConfidence_ = false; /** - * - * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -933,7 +804,6 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 15; - * * @return The enableWordConfidence. */ @java.lang.Override @@ -944,8 +814,6 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 11; private boolean enableAutomaticPunctuation_ = false; /** - * - * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -954,7 +822,6 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 11; - * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -965,8 +832,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
@@ -978,7 +843,6 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return Whether the enableSpokenPunctuation field is set. */ @java.lang.Override @@ -986,8 +850,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
@@ -999,18 +861,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
@@ -1025,16 +882,12 @@ public com.google.protobuf.BoolValue getEnableSpokenPunctuation() {
    */
   @java.lang.Override
   public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilder() {
-    return enableSpokenPunctuation_ == null
-        ? com.google.protobuf.BoolValue.getDefaultInstance()
-        : enableSpokenPunctuation_;
+    return enableSpokenPunctuation_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenPunctuation_;
   }
 
   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
@@ -1044,7 +897,6 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return Whether the enableSpokenEmojis field is set. */ @java.lang.Override @@ -1052,8 +904,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
@@ -1063,18 +913,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
@@ -1087,16 +932,12 @@ public com.google.protobuf.BoolValue getEnableSpokenEmojis() {
    */
   @java.lang.Override
   public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
-    return enableSpokenEmojis_ == null
-        ? com.google.protobuf.BoolValue.getDefaultInstance()
-        : enableSpokenEmojis_;
+    return enableSpokenEmojis_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenEmojis_;
   }
 
   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.
@@ -1109,7 +950,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 @@ -1117,8 +957,6 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** - * - * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1131,18 +969,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.
@@ -1157,24 +990,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() {
-    return diarizationConfig_ == null
-        ? com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance()
-        : diarizationConfig_;
+  public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
+    return diarizationConfig_ == null ? com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_;
   }
 
   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 @@ -1182,25 +1009,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.
    * 
@@ -1209,18 +1029,13 @@ public com.google.cloud.speech.v1.RecognitionMetadata getMetadata() { */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuilder() { - return metadata_ == null - ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() : metadata_; } public static final int MODEL_FIELD_NUMBER = 13; - @SuppressWarnings("serial") 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
@@ -1276,7 +1091,6 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil
    * 
* * string model = 13; - * * @return The model. */ @java.lang.Override @@ -1285,15 +1099,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
@@ -1349,15 +1162,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 { @@ -1368,8 +1182,6 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int USE_ENHANCED_FIELD_NUMBER = 14; private boolean useEnhanced_ = false; /** - * - * *
    * 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
@@ -1381,7 +1193,6 @@ public com.google.protobuf.ByteString getModelBytes() {
    * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ @java.lang.Override @@ -1390,7 +1201,6 @@ public boolean getUseEnhanced() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1402,10 +1212,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) { @@ -1448,8 +1257,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()); @@ -1472,52 +1280,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; @@ -1528,18 +1343,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1549,50 +1366,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1611,9 +1443,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) { @@ -1623,7 +1454,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(); @@ -1633,11 +1465,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(); @@ -1657,110 +1492,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) + getUnknownFields().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.
@@ -1768,32 +1597,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1848,9 +1678,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
@@ -1869,12 +1699,9 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1920,7 +1747,9 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognitionConfig result)
         result.profanityFilter_ = profanityFilter_;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.adaptation_ = adaptationBuilder_ == null ? adaptation_ : adaptationBuilder_.build();
+        result.adaptation_ = adaptationBuilder_ == null
+            ? adaptation_
+            : adaptationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
         result.enableWordTimeOffsets_ = enableWordTimeOffsets_;
@@ -1932,25 +1761,24 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognitionConfig result)
         result.enableAutomaticPunctuation_ = enableAutomaticPunctuation_;
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.enableSpokenPunctuation_ =
-            enableSpokenPunctuationBuilder_ == null
-                ? enableSpokenPunctuation_
-                : enableSpokenPunctuationBuilder_.build();
+        result.enableSpokenPunctuation_ = enableSpokenPunctuationBuilder_ == null
+            ? enableSpokenPunctuation_
+            : enableSpokenPunctuationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.enableSpokenEmojis_ =
-            enableSpokenEmojisBuilder_ == null
-                ? enableSpokenEmojis_
-                : enableSpokenEmojisBuilder_.build();
+        result.enableSpokenEmojis_ = enableSpokenEmojisBuilder_ == null
+            ? enableSpokenEmojis_
+            : enableSpokenEmojisBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.diarizationConfig_ =
-            diarizationConfigBuilder_ == null
-                ? diarizationConfig_
-                : diarizationConfigBuilder_.build();
+        result.diarizationConfig_ = diarizationConfigBuilder_ == null
+            ? diarizationConfig_
+            : diarizationConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00010000) != 0)) {
-        result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
+        result.metadata_ = metadataBuilder_ == null
+            ? metadata_
+            : metadataBuilder_.build();
       }
       if (((from_bitField0_ & 0x00020000) != 0)) {
         result.model_ = model_;
@@ -1964,39 +1792,38 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognitionConfig result)
     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;
@@ -2059,10 +1886,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.RecognitionConfig other) {
             speechContextsBuilder_ = null;
             speechContexts_ = other.speechContexts_;
             bitField0_ = (bitField0_ & ~0x00000200);
-            speechContextsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getSpeechContextsFieldBuilder()
-                    : null;
+            speechContextsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getSpeechContextsFieldBuilder() : null;
           } else {
             speechContextsBuilder_.addAllMessages(other.speechContexts_);
           }
@@ -2123,138 +1949,126 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                encoding_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 16:
-              {
-                sampleRateHertz_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                languageCode_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 26
-            case 32:
-              {
-                maxAlternatives_ = input.readInt32();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 32
-            case 40:
-              {
-                profanityFilter_ = input.readBool();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 40
-            case 50:
-              {
-                com.google.cloud.speech.v1.SpeechContext m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1.SpeechContext.parser(), extensionRegistry);
-                if (speechContextsBuilder_ == null) {
-                  ensureSpeechContextsIsMutable();
-                  speechContexts_.add(m);
-                } else {
-                  speechContextsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 50
-            case 56:
-              {
-                audioChannelCount_ = input.readInt32();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 56
-            case 64:
-              {
-                enableWordTimeOffsets_ = input.readBool();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 64
-            case 74:
-              {
-                input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00010000;
-                break;
-              } // case 74
-            case 88:
-              {
-                enableAutomaticPunctuation_ = input.readBool();
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 88
-            case 96:
-              {
-                enableSeparateRecognitionPerChannel_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 96
-            case 106:
-              {
-                model_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00020000;
-                break;
-              } // case 106
-            case 112:
-              {
-                useEnhanced_ = input.readBool();
-                bitField0_ |= 0x00040000;
-                break;
-              } // case 112
-            case 120:
-              {
-                enableWordConfidence_ = input.readBool();
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 120
-            case 146:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureAlternativeLanguageCodesIsMutable();
-                alternativeLanguageCodes_.add(s);
-                break;
-              } // case 146
-            case 154:
-              {
-                input.readMessage(
-                    getDiarizationConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00008000;
-                break;
-              } // case 154
-            case 162:
-              {
-                input.readMessage(getAdaptationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 162
-            case 178:
-              {
-                input.readMessage(
-                    getEnableSpokenPunctuationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 178
-            case 186:
-              {
-                input.readMessage(
-                    getEnableSpokenEmojisFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00004000;
-                break;
-              } // case 186
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              encoding_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 16: {
+              sampleRateHertz_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              languageCode_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 26
+            case 32: {
+              maxAlternatives_ = input.readInt32();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 32
+            case 40: {
+              profanityFilter_ = input.readBool();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 40
+            case 50: {
+              com.google.cloud.speech.v1.SpeechContext m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechContext.parser(),
+                      extensionRegistry);
+              if (speechContextsBuilder_ == null) {
+                ensureSpeechContextsIsMutable();
+                speechContexts_.add(m);
+              } else {
+                speechContextsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 50
+            case 56: {
+              audioChannelCount_ = input.readInt32();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 56
+            case 64: {
+              enableWordTimeOffsets_ = input.readBool();
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 64
+            case 74: {
+              input.readMessage(
+                  getMetadataFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00010000;
+              break;
+            } // case 74
+            case 88: {
+              enableAutomaticPunctuation_ = input.readBool();
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 88
+            case 96: {
+              enableSeparateRecognitionPerChannel_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 96
+            case 106: {
+              model_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00020000;
+              break;
+            } // case 106
+            case 112: {
+              useEnhanced_ = input.readBool();
+              bitField0_ |= 0x00040000;
+              break;
+            } // case 112
+            case 120: {
+              enableWordConfidence_ = input.readBool();
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 120
+            case 146: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureAlternativeLanguageCodesIsMutable();
+              alternativeLanguageCodes_.add(s);
+              break;
+            } // case 146
+            case 154: {
+              input.readMessage(
+                  getDiarizationConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00008000;
+              break;
+            } // case 154
+            case 162: {
+              input.readMessage(
+                  getAdaptationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 162
+            case 178: {
+              input.readMessage(
+                  getEnableSpokenPunctuationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 178
+            case 186: {
+              input.readMessage(
+                  getEnableSpokenEmojisFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00004000;
+              break;
+            } // case 186
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2264,13 +2078,10 @@ public Builder mergeFrom(
       } // finally
       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
@@ -2278,16 +2089,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
@@ -2295,7 +2102,6 @@ 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. */ @@ -2306,8 +2112,6 @@ public Builder setEncodingValue(int value) { return this; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2315,20 +2119,14 @@ 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() { - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.forNumber(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.forNumber(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
@@ -2336,7 +2134,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. */ @@ -2350,8 +2147,6 @@ public Builder setEncoding(com.google.cloud.speech.v1.RecognitionConfig.AudioEnc return this; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2359,7 +2154,6 @@ 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() { @@ -2369,10 +2163,8 @@ public Builder clearEncoding() { 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.
@@ -2384,7 +2176,6 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -2392,8 +2183,6 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** - * - * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2405,20 +2194,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2430,7 +2216,6 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; - * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { @@ -2440,10 +2225,8 @@ public Builder clearSampleRateHertz() { return this; } - private int audioChannelCount_; + private int audioChannelCount_ ; /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2456,7 +2239,6 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 7; - * * @return The audioChannelCount. */ @java.lang.Override @@ -2464,8 +2246,6 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2478,20 +2258,17 @@ 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2504,7 +2281,6 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 7; - * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { @@ -2514,10 +2290,8 @@ public Builder clearAudioChannelCount() { 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
@@ -2528,7 +2302,6 @@ public Builder clearAudioChannelCount() {
      * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -2536,8 +2309,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
@@ -2548,20 +2319,17 @@ 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; bitField0_ |= 0x00000008; 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
@@ -2572,7 +2340,6 @@ public Builder setEnableSeparateRecognitionPerChannel(boolean value) {
      * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return This builder for chaining. */ public Builder clearEnableSeparateRecognitionPerChannel() { @@ -2584,8 +2351,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.
@@ -2596,13 +2361,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; @@ -2611,8 +2376,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.
@@ -2623,14 +2386,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 { @@ -2638,8 +2402,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.
@@ -2650,22 +2412,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000010; 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.
@@ -2676,7 +2434,6 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -2686,8 +2443,6 @@ public Builder clearLanguageCode() { return this; } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2698,14 +2453,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000010; @@ -2713,19 +2466,14 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { 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_ & 0x00000020) != 0)) { - alternativeLanguageCodes_ = - new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); + alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); bitField0_ |= 0x00000020; - } + } } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2742,15 +2490,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,
@@ -2767,15 +2513,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,
@@ -2792,7 +2535,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. */ @@ -2800,8 +2542,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,
@@ -2818,16 +2558,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,
@@ -2844,23 +2582,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAlternativeLanguageCodes( + int index, java.lang.String value) { + if (value == null) { 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,
@@ -2877,22 +2611,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAlternativeLanguageCodes( + java.lang.String value) { + if (value == null) { 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,
@@ -2909,19 +2639,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,
@@ -2938,7 +2667,6 @@ public Builder addAllAlternativeLanguageCodes(java.lang.Iterable
      *
      * repeated string alternative_language_codes = 18;
-     *
      * @return This builder for chaining.
      */
     public Builder clearAlternativeLanguageCodes() {
@@ -2948,8 +2676,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,
@@ -2966,14 +2692,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAlternativeLanguageCodesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); @@ -2981,10 +2705,8 @@ public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString v return this; } - private int maxAlternatives_; + private int maxAlternatives_ ; /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2995,7 +2717,6 @@ public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString v
      * 
* * int32 max_alternatives = 4; - * * @return The maxAlternatives. */ @java.lang.Override @@ -3003,8 +2724,6 @@ public int getMaxAlternatives() { return maxAlternatives_; } /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3015,20 +2734,17 @@ 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3039,7 +2755,6 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 4; - * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { @@ -3049,10 +2764,8 @@ public Builder clearMaxAlternatives() { 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
@@ -3061,7 +2774,6 @@ public Builder clearMaxAlternatives() {
      * 
* * bool profanity_filter = 5; - * * @return The profanityFilter. */ @java.lang.Override @@ -3069,8 +2781,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
@@ -3079,20 +2789,17 @@ 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; bitField0_ |= 0x00000080; 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
@@ -3101,7 +2808,6 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 5; - * * @return This builder for chaining. */ public Builder clearProfanityFilter() { @@ -3113,13 +2819,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
@@ -3129,15 +2830,12 @@ public Builder clearProfanityFilter() {
      * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; - * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3147,21 +2845,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
@@ -3186,8 +2879,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
@@ -3210,8 +2901,6 @@ public Builder setAdaptation(
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3224,9 +2913,9 @@ public Builder setAdaptation(
      */
     public Builder mergeAdaptation(com.google.cloud.speech.v1.SpeechAdaptation value) {
       if (adaptationBuilder_ == null) {
-        if (((bitField0_ & 0x00000100) != 0)
-            && adaptation_ != null
-            && adaptation_ != com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000100) != 0) &&
+          adaptation_ != null &&
+          adaptation_ != com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance()) {
           getAdaptationBuilder().mergeFrom(value);
         } else {
           adaptation_ = value;
@@ -3239,8 +2928,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
@@ -3262,8 +2949,6 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3280,8 +2965,6 @@ public com.google.cloud.speech.v1.SpeechAdaptation.Builder getAdaptationBuilder(
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3296,14 +2979,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
@@ -3315,42 +2995,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_ & 0x00000200) != 0)) {
-        speechContexts_ =
-            new java.util.ArrayList(speechContexts_);
+        speechContexts_ = new java.util.ArrayList(speechContexts_);
         bitField0_ |= 0x00000200;
-      }
+       }
     }
 
     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
@@ -3369,8 +3039,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
@@ -3389,8 +3057,6 @@ public int getSpeechContextsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3409,8 +3075,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
@@ -3421,7 +3085,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();
@@ -3435,8 +3100,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
@@ -3459,8 +3122,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
@@ -3485,8 +3146,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
@@ -3497,7 +3156,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();
@@ -3511,8 +3171,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
@@ -3535,8 +3193,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
@@ -3559,8 +3215,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
@@ -3575,7 +3229,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);
@@ -3583,8 +3238,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
@@ -3606,8 +3259,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
@@ -3629,8 +3280,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
@@ -3641,12 +3290,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
@@ -3657,16 +3305,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
@@ -3677,8 +3323,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 {
@@ -3686,8 +3332,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
@@ -3699,12 +3343,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
@@ -3715,13 +3357,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
@@ -3732,22 +3373,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_ & 0x00000200) != 0),
                 getParentForChildren(),
@@ -3757,10 +3392,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
@@ -3769,7 +3402,6 @@ public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder
      * 
* * bool enable_word_time_offsets = 8; - * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -3777,8 +3409,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
@@ -3787,20 +3417,17 @@ 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; bitField0_ |= 0x00000400; 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
@@ -3809,7 +3436,6 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 8; - * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { @@ -3819,10 +3445,8 @@ public Builder clearEnableWordTimeOffsets() { 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
@@ -3830,7 +3454,6 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 15; - * * @return The enableWordConfidence. */ @java.lang.Override @@ -3838,8 +3461,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
@@ -3847,20 +3468,17 @@ 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; bitField0_ |= 0x00000800; 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
@@ -3868,7 +3486,6 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 15; - * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { @@ -3878,10 +3495,8 @@ public Builder clearEnableWordConfidence() { 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
@@ -3890,7 +3505,6 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 11; - * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -3898,8 +3512,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
@@ -3908,20 +3520,17 @@ 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; bitField0_ |= 0x00001000; onChanged(); return this; } /** - * - * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3930,7 +3539,6 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 11; - * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { @@ -3942,13 +3550,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
@@ -3960,15 +3563,12 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return Whether the enableSpokenPunctuation field is set. */ public boolean hasEnableSpokenPunctuation() { return ((bitField0_ & 0x00002000) != 0); } /** - * - * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3980,21 +3580,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
@@ -4021,8 +3616,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
@@ -4047,8 +3640,6 @@ public Builder setEnableSpokenPunctuation(
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4063,9 +3654,9 @@ public Builder setEnableSpokenPunctuation(
      */
     public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value) {
       if (enableSpokenPunctuationBuilder_ == null) {
-        if (((bitField0_ & 0x00002000) != 0)
-            && enableSpokenPunctuation_ != null
-            && enableSpokenPunctuation_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
+        if (((bitField0_ & 0x00002000) != 0) &&
+          enableSpokenPunctuation_ != null &&
+          enableSpokenPunctuation_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
           getEnableSpokenPunctuationBuilder().mergeFrom(value);
         } else {
           enableSpokenPunctuation_ = value;
@@ -4078,8 +3669,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
@@ -4103,8 +3692,6 @@ public Builder clearEnableSpokenPunctuation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4123,8 +3710,6 @@ public com.google.protobuf.BoolValue.Builder getEnableSpokenPunctuationBuilder()
       return getEnableSpokenPunctuationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4141,14 +3726,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
@@ -4162,17 +3744,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_;
@@ -4180,13 +3759,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
@@ -4196,15 +3770,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 ((bitField0_ & 0x00004000) != 0); } /** - * - * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4214,21 +3785,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
@@ -4253,8 +3819,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
@@ -4265,7 +3829,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();
       } else {
@@ -4276,8 +3841,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
@@ -4290,9 +3853,9 @@ public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue.Builder build
      */
     public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       if (enableSpokenEmojisBuilder_ == null) {
-        if (((bitField0_ & 0x00004000) != 0)
-            && enableSpokenEmojis_ != null
-            && enableSpokenEmojis_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
+        if (((bitField0_ & 0x00004000) != 0) &&
+          enableSpokenEmojis_ != null &&
+          enableSpokenEmojis_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
           getEnableSpokenEmojisBuilder().mergeFrom(value);
         } else {
           enableSpokenEmojis_ = value;
@@ -4305,8 +3868,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
@@ -4328,8 +3889,6 @@ public Builder clearEnableSpokenEmojis() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4346,8 +3905,6 @@ public com.google.protobuf.BoolValue.Builder getEnableSpokenEmojisBuilder() {
       return getEnableSpokenEmojisFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4362,14 +3919,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
@@ -4381,17 +3935,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_;
@@ -4399,13 +3950,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.
@@ -4418,15 +3964,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 ((bitField0_ & 0x00008000) != 0); } /** - * - * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4439,21 +3982,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.
@@ -4481,8 +4019,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.
@@ -4508,8 +4044,6 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4523,13 +4057,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 (((bitField0_ & 0x00008000) != 0)
-            && diarizationConfig_ != null
-            && diarizationConfig_
-                != com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00008000) != 0) &&
+          diarizationConfig_ != null &&
+          diarizationConfig_ != com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance()) {
           getDiarizationConfigBuilder().mergeFrom(value);
         } else {
           diarizationConfig_ = value;
@@ -4542,8 +4074,6 @@ public Builder mergeDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4568,8 +4098,6 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4583,15 +4111,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() {
       bitField0_ |= 0x00008000;
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4605,19 +4130,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.
@@ -4632,17 +4153,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_;
@@ -4650,47 +4168,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 ((bitField0_ & 0x00010000) != 0); } /** - * - * *
      * 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.
      * 
@@ -4711,8 +4216,6 @@ public Builder setMetadata(com.google.cloud.speech.v1.RecognitionMetadata value) return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4731,8 +4234,6 @@ public Builder setMetadata( return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4741,9 +4242,9 @@ public Builder setMetadata( */ public Builder mergeMetadata(com.google.cloud.speech.v1.RecognitionMetadata value) { if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && metadata_ != null - && metadata_ != com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00010000) != 0) && + metadata_ != null && + metadata_ != com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; @@ -4756,8 +4257,6 @@ public Builder mergeMetadata(com.google.cloud.speech.v1.RecognitionMetadata valu return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4775,8 +4274,6 @@ public Builder clearMetadata() { return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4789,8 +4286,6 @@ public com.google.cloud.speech.v1.RecognitionMetadata.Builder getMetadataBuilder return getMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4801,14 +4296,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.
      * 
@@ -4816,17 +4308,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_; @@ -4834,8 +4323,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
@@ -4891,13 +4378,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; @@ -4906,8 +4393,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
@@ -4963,14 +4448,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 { @@ -4978,8 +4464,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
@@ -5035,22 +4519,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00020000; 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
@@ -5106,7 +4586,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 13; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -5116,8 +4595,6 @@ public Builder clearModel() { 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
@@ -5173,14 +4650,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00020000; @@ -5188,10 +4663,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { 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
@@ -5203,7 +4676,6 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) {
      * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ @java.lang.Override @@ -5211,8 +4683,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
@@ -5224,20 +4694,17 @@ 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; bitField0_ |= 0x00040000; 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
@@ -5249,7 +4716,6 @@ public Builder setUseEnhanced(boolean value) {
      * 
* * bool use_enhanced = 14; - * * @return This builder for chaining. */ public Builder clearUseEnhanced() { @@ -5258,9 +4724,9 @@ public Builder clearUseEnhanced() { 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); } @@ -5270,12 +4736,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(); } @@ -5284,27 +4750,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5319,4 +4785,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java similarity index 94% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java index 323d1dbc34f4..dc92690ff25c 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/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.
@@ -86,14 +59,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
@@ -104,14 +74,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.
@@ -122,13 +89,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.
@@ -139,14 +103,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,
@@ -163,13 +125,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,
@@ -186,13 +146,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,
@@ -209,14 +166,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,
@@ -233,15 +187,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
@@ -252,14 +204,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
@@ -268,14 +217,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
@@ -285,13 +231,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
@@ -301,13 +244,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
@@ -321,8 +261,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
@@ -333,10 +271,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
@@ -349,8 +286,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
@@ -363,8 +298,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
@@ -375,11 +308,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
@@ -390,11 +321,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
@@ -403,14 +333,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
@@ -418,14 +345,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
@@ -434,14 +358,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
@@ -453,13 +374,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
@@ -471,13 +389,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
@@ -493,8 +408,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
@@ -504,13 +417,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
@@ -520,13 +430,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
@@ -540,8 +447,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.
@@ -554,13 +459,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.
@@ -573,13 +475,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.
@@ -596,32 +495,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.
    * 
@@ -631,8 +522,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
@@ -688,13 +577,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
@@ -750,14 +636,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
@@ -769,7 +653,6 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ boolean getUseEnhanced(); diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java index 67310e166c44..6f469e5762cd 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java +++ b/owl-bot-staging/java-speech/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,33 +31,30 @@ 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; } - - 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.
@@ -84,10 +62,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.
@@ -97,8 +74,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
@@ -110,8 +85,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     DISCUSSION(1),
     /**
-     *
-     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -121,8 +94,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.
@@ -132,8 +103,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     PHONE_CALL(3),
     /**
-     *
-     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -142,8 +111,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ VOICEMAIL(4), /** - * - * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -152,8 +119,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ PROFESSIONALLY_PRODUCED(5), /** - * - * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -162,8 +127,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ VOICE_SEARCH(6), /** - * - * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -172,8 +135,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.
@@ -186,8 +147,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.
@@ -197,8 +156,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
@@ -210,8 +167,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.
@@ -221,8 +176,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.
@@ -232,8 +185,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.
      * 
@@ -242,8 +193,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VOICEMAIL_VALUE = 4; /** - * - * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -252,8 +201,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROFESSIONALLY_PRODUCED_VALUE = 5; /** - * - * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -262,8 +209,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.
      * 
@@ -272,8 +217,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.
@@ -283,6 +226,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(
@@ -307,54 +251,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);
     }
 
@@ -363,7 +298,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;
@@ -381,18 +317,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.
      * 
@@ -401,8 +334,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
@@ -413,8 +344,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu
      */
     NEARFIELD(1),
     /**
-     *
-     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -423,8 +352,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu */ MIDFIELD(2), /** - * - * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -436,8 +363,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
      * Audio type is not known.
      * 
@@ -446,8 +371,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
@@ -458,8 +381,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.
      * 
@@ -468,8 +389,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.
      * 
@@ -478,6 +397,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( @@ -502,16 +422,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; } } @@ -519,28 +434,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); } @@ -549,7 +464,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; @@ -567,18 +483,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.
      * 
@@ -587,8 +500,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ ORIGINAL_MEDIA_TYPE_UNSPECIFIED(0), /** - * - * *
      * The speech data is an audio recording.
      * 
@@ -597,8 +508,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ AUDIO(1), /** - * - * *
      * The speech data originally recorded on a video.
      * 
@@ -610,8 +519,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Unknown original media type.
      * 
@@ -620,8 +527,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.
      * 
@@ -630,8 +535,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ public static final int AUDIO_VALUE = 1; /** - * - * *
      * The speech data originally recorded on a video.
      * 
@@ -640,6 +543,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( @@ -664,14 +568,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; } } @@ -679,28 +579,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); } @@ -709,7 +609,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; @@ -727,18 +628,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.
      * 
@@ -747,8 +645,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ RECORDING_DEVICE_TYPE_UNSPECIFIED(0), /** - * - * *
      * Speech was recorded on a smartphone.
      * 
@@ -757,8 +653,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ SMARTPHONE(1), /** - * - * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -767,8 +661,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ PC(2), /** - * - * *
      * Speech was recorded over a phone line.
      * 
@@ -777,8 +669,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ PHONE_LINE(3), /** - * - * *
      * Speech was recorded in a vehicle.
      * 
@@ -787,8 +677,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ VEHICLE(4), /** - * - * *
      * Speech was recorded outdoors.
      * 
@@ -797,8 +685,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ OTHER_OUTDOOR_DEVICE(5), /** - * - * *
      * Speech was recorded indoors.
      * 
@@ -810,8 +696,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn ; /** - * - * *
      * The recording device is unknown.
      * 
@@ -820,8 +704,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.
      * 
@@ -830,8 +712,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.
      * 
@@ -840,8 +720,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int PC_VALUE = 2; /** - * - * *
      * Speech was recorded over a phone line.
      * 
@@ -850,8 +728,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int PHONE_LINE_VALUE = 3; /** - * - * *
      * Speech was recorded in a vehicle.
      * 
@@ -860,8 +736,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int VEHICLE_VALUE = 4; /** - * - * *
      * Speech was recorded outdoors.
      * 
@@ -870,8 +744,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int OTHER_OUTDOOR_DEVICE_VALUE = 5; /** - * - * *
      * Speech was recorded indoors.
      * 
@@ -880,6 +752,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( @@ -904,22 +777,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; } } @@ -927,28 +792,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); } @@ -957,7 +822,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; @@ -977,45 +843,32 @@ private RecordingDeviceType(int value) { public static final int INTERACTION_TYPE_FIELD_NUMBER = 1; 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; - * * @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() { - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.forNumber(interactionType_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInteractionType() { + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.forNumber(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_ = 0; /** - * - * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -1024,7 +877,6 @@ public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInterac
    * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1035,133 +887,85 @@ public int getIndustryNaicsCodeOfAudio() { public static final int MICROPHONE_DISTANCE_FIELD_NUMBER = 4; 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; * @return The microphoneDistance. */ - @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.forNumber( - microphoneDistance_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.forNumber(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_ = 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; * @return The originalMediaType. */ - @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.forNumber( - originalMediaType_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.forNumber(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_ = 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; * @return The recordingDeviceType. */ - @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType - getRecordingDeviceType() { - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.forNumber( - recordingDeviceType_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.forNumber(recordingDeviceType_); + return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; } public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER = 7; - @SuppressWarnings("serial") 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
@@ -1169,7 +973,6 @@ public int getRecordingDeviceTypeValue() {
    * 
* * string recording_device_name = 7; - * * @return The recordingDeviceName. */ @java.lang.Override @@ -1178,15 +981,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
@@ -1194,15 +996,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 { @@ -1211,12 +1014,9 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() { } public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER = 8; - @SuppressWarnings("serial") 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`.
@@ -1225,7 +1025,6 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() {
    * 
* * string original_mime_type = 8; - * * @return The originalMimeType. */ @java.lang.Override @@ -1234,15 +1033,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`.
@@ -1251,15 +1049,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 { @@ -1268,19 +1067,15 @@ public com.google.protobuf.ByteString getOriginalMimeTypeBytes() { } public static final int AUDIO_TOPIC_FIELD_NUMBER = 10; - @SuppressWarnings("serial") 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 @@ -1289,30 +1084,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 { @@ -1321,7 +1116,6 @@ public com.google.protobuf.ByteString getAudioTopicBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1333,32 +1127,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_)) { @@ -1379,32 +1162,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_); @@ -1423,22 +1199,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1471,136 +1250,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1617,9 +1390,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 @@ -1638,11 +1411,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.RecognitionMetadata result = new com.google.cloud.speech.v1.RecognitionMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1679,39 +1449,38 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognitionMetadata result 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; @@ -1776,61 +1545,52 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - interactionType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 24: - { - industryNaicsCodeOfAudio_ = input.readUInt32(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 32: - { - microphoneDistance_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 40: - { - originalMediaType_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 48: - { - recordingDeviceType_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 58: - { - recordingDeviceName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: - { - originalMimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 82: - { - audioTopic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + interactionType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 24: { + industryNaicsCodeOfAudio_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: { + microphoneDistance_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: { + originalMediaType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: { + recordingDeviceType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: { + recordingDeviceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: { + originalMimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 82: { + audioTopic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1840,36 +1600,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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. */ @@ -1880,41 +1630,28 @@ public Builder setInteractionTypeValue(int value) { 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() { - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.forNumber( - 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.forNumber(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(); } @@ -1924,15 +1661,11 @@ public Builder setInteractionType( 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() { @@ -1942,10 +1675,8 @@ public Builder clearInteractionType() { 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
@@ -1954,7 +1685,6 @@ public Builder clearInteractionType() {
      * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1962,8 +1692,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
@@ -1972,20 +1700,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1994,7 +1719,6 @@ public Builder setIndustryNaicsCodeOfAudio(int value) {
      * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return This builder for chaining. */ public Builder clearIndustryNaicsCodeOfAudio() { @@ -2006,31 +1730,22 @@ 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. */ @@ -2041,42 +1756,28 @@ public Builder setMicrophoneDistanceValue(int value) { 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() { - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.forNumber( - microphoneDistance_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED - : result; + public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.forNumber(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(); } @@ -2086,15 +1787,11 @@ public Builder setMicrophoneDistance( 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() { @@ -2106,31 +1803,22 @@ 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. */ @@ -2141,41 +1829,28 @@ public Builder setOriginalMediaTypeValue(int value) { 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() { - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.forNumber( - 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.forNumber(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(); } @@ -2185,15 +1860,11 @@ public Builder setOriginalMediaType( 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() { @@ -2205,33 +1876,22 @@ 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. */ @@ -2242,44 +1902,28 @@ public Builder setRecordingDeviceTypeValue(int value) { 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() { - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.forNumber( - recordingDeviceType_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED - : result; + public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.forNumber(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(); } @@ -2289,16 +1933,11 @@ public Builder setRecordingDeviceType( 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() { @@ -2310,8 +1949,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
@@ -2319,13 +1956,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; @@ -2334,8 +1971,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
@@ -2343,14 +1978,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 { @@ -2358,8 +1994,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
@@ -2367,22 +2001,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecordingDeviceName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } recordingDeviceName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2390,7 +2020,6 @@ public Builder setRecordingDeviceName(java.lang.String value) {
      * 
* * string recording_device_name = 7; - * * @return This builder for chaining. */ public Builder clearRecordingDeviceName() { @@ -2400,8 +2029,6 @@ public Builder clearRecordingDeviceName() { return this; } /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2409,14 +2036,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecordingDeviceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); recordingDeviceName_ = value; bitField0_ |= 0x00000020; @@ -2426,8 +2051,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`.
@@ -2436,13 +2059,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; @@ -2451,8 +2074,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`.
@@ -2461,14 +2082,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 { @@ -2476,8 +2098,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`.
@@ -2486,22 +2106,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOriginalMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } originalMimeType_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2510,7 +2126,6 @@ public Builder setOriginalMimeType(java.lang.String value) {
      * 
* * string original_mime_type = 8; - * * @return This builder for chaining. */ public Builder clearOriginalMimeType() { @@ -2520,8 +2135,6 @@ public Builder clearOriginalMimeType() { return this; } /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2530,14 +2143,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOriginalMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); originalMimeType_ = value; bitField0_ |= 0x00000040; @@ -2547,21 +2158,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; @@ -2570,22 +2179,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 { @@ -2593,37 +2201,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAudioTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } audioTopic_ = value; bitField0_ |= 0x00000080; 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() { @@ -2633,31 +2234,27 @@ public Builder clearAudioTopic() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAudioTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); audioTopic_ = value; bitField0_ |= 0x00000080; 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); } @@ -2667,12 +2264,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(); } @@ -2681,27 +2278,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2716,4 +2313,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java similarity index 76% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java index bd7b23985e30..5b3a0073fc09 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java similarity index 59% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java index 09e4d70b8582..1e69cbf4d513 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java @@ -1,84 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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; } - - 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 @@ -86,57 +63,39 @@ 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() { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } 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 @@ -144,44 +103,30 @@ 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() { - return audio_ == null - ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,7 +138,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()); } @@ -210,10 +156,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -223,21 +171,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -263,136 +212,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +354,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 @@ -432,11 +375,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.RecognizeRequest result = new com.google.cloud.speech.v1.RecognizeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -444,10 +384,14 @@ public com.google.cloud.speech.v1.RecognizeRequest buildPartial() { private void buildPartial0(com.google.cloud.speech.v1.RecognizeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + result.config_ = configBuilder_ == null + ? config_ + : configBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.audio_ = audioBuilder_ == null ? audio_ : audioBuilder_.build(); + result.audio_ = audioBuilder_ == null + ? audio_ + : audioBuilder_.build(); } } @@ -455,39 +399,38 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognizeRequest result) { 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; @@ -528,25 +471,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getAudioFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getAudioFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -556,66 +500,46 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * 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) { @@ -631,18 +555,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(); } else { @@ -653,22 +574,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 (((bitField0_ & 0x00000001) != 0) - && config_ != null - && config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + config_ != null && + config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -681,16 +598,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -703,16 +616,12 @@ 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() { bitField0_ |= 0x00000001; @@ -720,50 +629,38 @@ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { 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_; @@ -771,58 +668,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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) { @@ -838,17 +716,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(); } else { @@ -859,21 +734,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 (((bitField0_ & 0x00000002) != 0) - && audio_ != null - && audio_ != com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + audio_ != null && + audio_ != com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) { getAudioBuilder().mergeFrom(value); } else { audio_ = value; @@ -886,15 +757,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -907,15 +774,11 @@ 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() { bitField0_ |= 0x00000002; @@ -923,55 +786,43 @@ public com.google.cloud.speech.v1.RecognitionAudio.Builder getAudioBuilder() { 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); } @@ -981,12 +832,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(); } @@ -995,27 +846,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1030,4 +881,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java new file mode 100644 index 000000000000..5811af70356e --- /dev/null +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java index 1e903b6aecc6..3a4609c04b81 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java +++ b/owl-bot-staging/java-speech/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,53 +12,48 @@
  *
  * 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -88,8 +66,6 @@ public java.util.List getRes
     return results_;
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -98,13 +74,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.
@@ -117,8 +91,6 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -131,8 +103,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.
@@ -149,14 +119,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 @@ -164,25 +131,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.
    * 
@@ -191,22 +151,17 @@ public com.google.protobuf.Duration getTotalBilledTime() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 7; private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_; /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -214,25 +169,18 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } /** - * - * *
    * Provides information on adaptation behavior in response
    * 
@@ -240,25 +188,19 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; */ @java.lang.Override - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 8; private long requestId_ = 0L; /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 8; - * * @return The requestId. */ @java.lang.Override @@ -267,7 +209,6 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -279,7 +220,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)); } @@ -302,17 +244,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 (speechAdaptationInfo_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSpeechAdaptationInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, requestId_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -322,24 +267,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.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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo() + .equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() != other.getRequestId()) return false; + if (getRequestId() + != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -364,110 +312,104 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; 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`
@@ -476,32 +418,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -528,9 +471,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
@@ -549,12 +492,9 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -574,14 +514,14 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1.RecognizeResp
     private void buildPartial0(com.google.cloud.speech.v1.RecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.totalBilledTime_ =
-            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
+            ? totalBilledTime_
+            : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.speechAdaptationInfo_ =
-            speechAdaptationInfoBuilder_ == null
-                ? speechAdaptationInfo_
-                : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
+            ? speechAdaptationInfo_
+            : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.requestId_ = requestId_;
@@ -592,39 +532,38 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognizeResponse result)
     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;
@@ -651,10 +590,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_);
           }
@@ -695,46 +633,44 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18:
-              {
-                com.google.cloud.speech.v1.SpeechRecognitionResult m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
-                        extensionRegistry);
-                if (resultsBuilder_ == null) {
-                  ensureResultsIsMutable();
-                  results_.add(m);
-                } else {
-                  resultsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-            case 58:
-              {
-                input.readMessage(
-                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 58
-            case 64:
-              {
-                requestId_ = input.readInt64();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 64
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 18: {
+              com.google.cloud.speech.v1.SpeechRecognitionResult m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
+                      extensionRegistry);
+              if (resultsBuilder_ == null) {
+                ensureResultsIsMutable();
+                results_.add(m);
+              } else {
+                resultsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getTotalBilledTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 26
+            case 58: {
+              input.readMessage(
+                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 58
+            case 64: {
+              requestId_ = input.readInt64();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 64
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -744,29 +680,21 @@ public Builder mergeFrom(
       } // finally
       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.
@@ -782,8 +710,6 @@ public java.util.List getRes
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -799,8 +725,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -816,8 +740,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -825,7 +747,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();
@@ -839,8 +762,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.
@@ -860,8 +781,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -883,8 +802,6 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -892,7 +809,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();
@@ -906,8 +824,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.
@@ -927,8 +843,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -948,8 +862,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -961,7 +873,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);
@@ -969,8 +882,6 @@ public Builder addAllResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -989,8 +900,6 @@ public Builder clearResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1009,8 +918,6 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1018,12 +925,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.
@@ -1034,14 +940,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.
@@ -1049,8 +952,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 {
@@ -1058,8 +961,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1068,12 +969,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.
@@ -1081,14 +980,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.
@@ -1096,23 +993,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_;
@@ -1120,47 +1014,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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.
      * 
@@ -1181,15 +1062,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(); } else { @@ -1200,8 +1080,6 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1210,9 +1088,9 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo */ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && totalBilledTime_ != null - && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + totalBilledTime_ != null && + totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getTotalBilledTimeBuilder().mergeFrom(value); } else { totalBilledTime_ = value; @@ -1225,8 +1103,6 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1244,8 +1120,6 @@ public Builder clearTotalBilledTime() { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1258,8 +1132,6 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { return getTotalBilledTimeFieldBuilder().getBuilder(); } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1270,14 +1142,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.
      * 
@@ -1285,17 +1154,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_; @@ -1303,47 +1169,34 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, - com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> - speechAdaptationInfoBuilder_; + com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_; /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -1364,8 +1217,6 @@ public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptati return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -1384,21 +1235,17 @@ public Builder setSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public Builder mergeSpeechAdaptationInfo( - com.google.cloud.speech.v1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && speechAdaptationInfo_ != null - && speechAdaptationInfo_ - != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + speechAdaptationInfo_ != null && + speechAdaptationInfo_ != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -1411,8 +1258,6 @@ public Builder mergeSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -1430,42 +1275,33 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder - getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? + com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -1473,33 +1309,27 @@ public Builder clearSpeechAdaptationInfo() { * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, - com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, - com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), getParentForChildren(), isClean()); + speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), + getParentForChildren(), + isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_; + private long requestId_ ; /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; - * * @return The requestId. */ @java.lang.Override @@ -1507,35 +1337,29 @@ public long getRequestId() { return requestId_; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; - * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1544,9 +1368,9 @@ public Builder clearRequestId() { 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); } @@ -1556,12 +1380,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(); } @@ -1570,27 +1394,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1605,4 +1429,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java similarity index 80% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java index 47f347663cae..abeea15f5484 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/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.
    * 
@@ -116,32 +84,24 @@ public interface RecognizeResponseOrBuilder com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder(); /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** - * - * *
    * Provides information on adaptation behavior in response
    * 
@@ -151,15 +111,12 @@ public interface RecognizeResponseOrBuilder com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 8; - * * @return The requestId. */ long getRequestId(); diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java index b73e5b4f202b..a3625012a50b 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java @@ -1,75 +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; } - - 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_ = false; /** - * - * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -77,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool enable_speaker_diarization = 1; - * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -88,8 +67,6 @@ public boolean getEnableSpeakerDiarization() { public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_ = 0; /** - * - * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -97,7 +74,6 @@ public boolean getEnableSpeakerDiarization() {
    * 
* * int32 min_speaker_count = 2; - * * @return The minSpeakerCount. */ @java.lang.Override @@ -108,8 +84,6 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_ = 0; /** - * - * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -117,7 +91,6 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3; - * * @return The maxSpeakerCount. */ @java.lang.Override @@ -128,27 +101,21 @@ public int getMaxSpeakerCount() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_ = 0; /** - * - * *
    * 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=456 + * 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=456 * @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; @@ -160,7 +127,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_); } @@ -183,16 +151,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -202,18 +174,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -226,7 +201,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; @@ -239,135 +215,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +350,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 @@ -401,11 +371,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.SpeakerDiarizationConfig result = new com.google.cloud.speech.v1.SpeakerDiarizationConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -430,39 +397,38 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeakerDiarizationConfig r 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; @@ -470,8 +436,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()); } @@ -510,37 +475,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enableSpeakerDiarization_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - minSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - maxSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 40: - { - speakerTag_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enableSpeakerDiarization_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + minSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + maxSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 40: { + speakerTag_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -550,13 +510,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - 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
@@ -564,7 +521,6 @@ public Builder mergeFrom(
      * 
* * bool enable_speaker_diarization = 1; - * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -572,8 +528,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
@@ -581,20 +535,17 @@ 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; bitField0_ |= 0x00000001; 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
@@ -602,7 +553,6 @@ public Builder setEnableSpeakerDiarization(boolean value) {
      * 
* * bool enable_speaker_diarization = 1; - * * @return This builder for chaining. */ public Builder clearEnableSpeakerDiarization() { @@ -612,10 +562,8 @@ public Builder clearEnableSpeakerDiarization() { 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
@@ -623,7 +571,6 @@ public Builder clearEnableSpeakerDiarization() {
      * 
* * int32 min_speaker_count = 2; - * * @return The minSpeakerCount. */ @java.lang.Override @@ -631,8 +578,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
@@ -640,20 +585,17 @@ 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; bitField0_ |= 0x00000002; 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
@@ -661,7 +603,6 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2; - * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { @@ -671,10 +612,8 @@ public Builder clearMinSpeakerCount() { 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
@@ -682,7 +621,6 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; - * * @return The maxSpeakerCount. */ @java.lang.Override @@ -690,8 +628,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
@@ -699,20 +635,17 @@ 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; bitField0_ |= 0x00000004; 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
@@ -720,7 +653,6 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3; - * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { @@ -730,73 +662,58 @@ public Builder clearMaxSpeakerCount() { 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=456 + * 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=456 * @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=456 + * 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=456 * @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; bitField0_ |= 0x00000008; 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=456 + * 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=456 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearSpeakerTag() { + @java.lang.Deprecated public Builder clearSpeakerTag() { bitField0_ = (bitField0_ & ~0x00000008); 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); } @@ -806,12 +723,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(); } @@ -820,27 +737,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -855,4 +772,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeakerDiarizationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java similarity index 64% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java index d754b4e464ec..0da15ac5a99d 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/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=456 + * 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=456 * @return The speakerTag. */ - @java.lang.Deprecated - int getSpeakerTag(); + @java.lang.Deprecated int getSpeakerTag(); } diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java similarity index 76% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java index 526bd25894c3..1c4672f85a6d 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java +++ b/owl-bot-staging/java-speech/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,175 +27,154 @@ 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; } - - 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 interface ABNFGrammarOrBuilder - extends + public interface ABNFGrammarOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @return A list containing the abnfStrings. */ - java.util.List getAbnfStringsList(); + java.util.List + getAbnfStringsList(); /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @return The count of abnfStrings. */ int getAbnfStringsCount(); /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ java.lang.String getAbnfStrings(int index); /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - com.google.protobuf.ByteString getAbnfStringsBytes(int index); + com.google.protobuf.ByteString + getAbnfStringsBytes(int index); } - /** Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar} */ - public static final class ABNFGrammar extends com.google.protobuf.GeneratedMessageV3 - implements + /** + * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar} + */ + public static final class ABNFGrammar extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) ABNFGrammarOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ABNFGrammar.newBuilder() to construct. private ABNFGrammar(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ABNFGrammar() { abnfStrings_ = 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 ABNFGrammar(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_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_ABNFGrammar_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.class, - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.class, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder.class); } public static final int ABNF_STRINGS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList abnfStrings_; /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @return A list containing the abnfStrings. */ - public com.google.protobuf.ProtocolStringList getAbnfStringsList() { + public com.google.protobuf.ProtocolStringList + getAbnfStringsList() { return abnfStrings_; } /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @return The count of abnfStrings. */ public int getAbnfStringsCount() { return abnfStrings_.size(); } /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ @@ -221,24 +182,21 @@ public java.lang.String getAbnfStrings(int index) { return abnfStrings_.get(index); } /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - public com.google.protobuf.ByteString getAbnfStringsBytes(int index) { + public com.google.protobuf.ByteString + getAbnfStringsBytes(int index) { return abnfStrings_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,7 +208,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 < abnfStrings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, abnfStrings_.getRaw(i)); } @@ -279,15 +238,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.SpeechAdaptation.ABNFGrammar)) { return super.equals(obj); } - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar other = - (com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) obj; + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar other = (com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) obj; - if (!getAbnfStringsList().equals(other.getAbnfStringsList())) return false; + if (!getAbnfStringsList() + .equals(other.getAbnfStringsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -309,94 +268,87 @@ public int hashCode() { } public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar 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.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar 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 @@ -405,34 +357,36 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_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_ABNFGrammar_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.class, - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.class, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +397,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_ABNFGrammar_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_descriptor; } @java.lang.Override @@ -464,18 +418,14 @@ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar buildPartial() { - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar result = - new com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar(this); + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar result = new com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar result) { if (((bitField0_ & 0x00000001) != 0)) { abnfStrings_ = abnfStrings_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -491,41 +441,38 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGramm 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.SpeechAdaptation.ABNFGrammar) { - return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) other); + return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar)other); } else { super.mergeFrom(other); return this; @@ -533,8 +480,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar other) { - if (other == com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) return this; if (!other.abnfStrings_.isEmpty()) { if (abnfStrings_.isEmpty()) { abnfStrings_ = other.abnfStrings_; @@ -571,20 +517,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAbnfStringsIsMutable(); - abnfStrings_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAbnfStringsIsMutable(); + abnfStrings_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -594,58 +538,47 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList abnfStrings_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList abnfStrings_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAbnfStringsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { abnfStrings_ = new com.google.protobuf.LazyStringArrayList(abnfStrings_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @return A list containing the abnfStrings. */ - public com.google.protobuf.ProtocolStringList getAbnfStringsList() { + public com.google.protobuf.ProtocolStringList + getAbnfStringsList() { return abnfStrings_.getUnmodifiableView(); } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @return The count of abnfStrings. */ public int getAbnfStringsCount() { return abnfStrings_.size(); } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ @@ -653,95 +586,81 @@ public java.lang.String getAbnfStrings(int index) { return abnfStrings_.get(index); } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - public com.google.protobuf.ByteString getAbnfStringsBytes(int index) { + public com.google.protobuf.ByteString + getAbnfStringsBytes(int index) { return abnfStrings_.getByteString(index); } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param index The index to set the value at. * @param value The abnfStrings to set. * @return This builder for chaining. */ - public Builder setAbnfStrings(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAbnfStrings( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAbnfStringsIsMutable(); abnfStrings_.set(index, value); onChanged(); return this; } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param value The abnfStrings to add. * @return This builder for chaining. */ - public Builder addAbnfStrings(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAbnfStrings( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAbnfStringsIsMutable(); abnfStrings_.add(value); onChanged(); return this; } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param values The abnfStrings to add. * @return This builder for chaining. */ - public Builder addAllAbnfStrings(java.lang.Iterable values) { + public Builder addAllAbnfStrings( + java.lang.Iterable values) { ensureAbnfStringsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, abnfStrings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, abnfStrings_); onChanged(); return this; } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @return This builder for chaining. */ public Builder clearAbnfStrings() { @@ -751,29 +670,24 @@ public Builder clearAbnfStrings() { return this; } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param value The bytes of the abnfStrings to add. * @return This builder for chaining. */ - public Builder addAbnfStringsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAbnfStringsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAbnfStringsIsMutable(); abnfStrings_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -786,12 +700,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) private static final com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar(); } @@ -800,28 +714,27 @@ public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ABNFGrammar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ABNFGrammar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -836,15 +749,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int PHRASE_SETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") 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
@@ -858,8 +769,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
@@ -869,13 +778,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
@@ -889,8 +796,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
@@ -904,8 +809,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
@@ -915,54 +818,43 @@ 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;
-
   @SuppressWarnings("serial")
   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. */ @@ -970,29 +862,23 @@ 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; - @SuppressWarnings("serial") 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
@@ -1007,8 +893,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
@@ -1019,13 +903,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
@@ -1040,8 +922,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
@@ -1056,8 +936,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
@@ -1068,15 +946,14 @@ 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);
   }
 
   public static final int ABNF_GRAMMAR_FIELD_NUMBER = 4;
   private com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnfGrammar_;
   /**
-   *
-   *
    * 
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -1084,7 +961,6 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder
    * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return Whether the abnfGrammar field is set. */ @java.lang.Override @@ -1092,8 +968,6 @@ public boolean hasAbnfGrammar() { return abnfGrammar_ != null; } /** - * - * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -1101,18 +975,13 @@ public boolean hasAbnfGrammar() {
    * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return The abnfGrammar. */ @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getAbnfGrammar() { - return abnfGrammar_ == null - ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() - : abnfGrammar_; + return abnfGrammar_ == null ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_; } /** - * - * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -1122,15 +991,11 @@ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getAbnfGrammar()
    * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder
-      getAbnfGrammarOrBuilder() {
-    return abnfGrammar_ == null
-        ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()
-        : abnfGrammar_;
+  public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder getAbnfGrammarOrBuilder() {
+    return abnfGrammar_ == null ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1142,7 +1007,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));
     }
@@ -1165,7 +1031,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;
@@ -1176,10 +1043,12 @@ 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));
     }
     if (abnfGrammar_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAbnfGrammar());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getAbnfGrammar());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1189,20 +1058,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.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 (hasAbnfGrammar() != other.hasAbnfGrammar()) return false;
     if (hasAbnfGrammar()) {
-      if (!getAbnfGrammar().equals(other.getAbnfGrammar())) return false;
+      if (!getAbnfGrammar()
+          .equals(other.getAbnfGrammar())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -1236,136 +1108,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1395,9 +1261,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 @@ -1416,12 +1282,9 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1455,8 +1318,9 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1.SpeechAdaptat private void buildPartial0(com.google.cloud.speech.v1.SpeechAdaptation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000008) != 0)) { - result.abnfGrammar_ = - abnfGrammarBuilder_ == null ? abnfGrammar_ : abnfGrammarBuilder_.build(); + result.abnfGrammar_ = abnfGrammarBuilder_ == null + ? abnfGrammar_ + : abnfGrammarBuilder_.build(); } } @@ -1464,39 +1328,38 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechAdaptation result) { 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; @@ -1523,10 +1386,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_); } @@ -1560,10 +1422,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_); } @@ -1598,52 +1459,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1.PhraseSet m = - input.readMessage( - com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry); - if (phraseSetsBuilder_ == null) { - ensurePhraseSetsIsMutable(); - phraseSets_.add(m); - } else { - phraseSetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePhraseSetReferencesIsMutable(); - phraseSetReferences_.add(s); - break; - } // case 18 - case 26: - { - com.google.cloud.speech.v1.CustomClass m = - input.readMessage( - com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry); - if (customClassesBuilder_ == null) { - ensureCustomClassesIsMutable(); - customClasses_.add(m); - } else { - customClassesBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - input.readMessage(getAbnfGrammarFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.speech.v1.PhraseSet m = + input.readMessage( + com.google.cloud.speech.v1.PhraseSet.parser(), + extensionRegistry); + if (phraseSetsBuilder_ == null) { + ensurePhraseSetsIsMutable(); + phraseSets_.add(m); + } else { + phraseSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePhraseSetReferencesIsMutable(); + phraseSetReferences_.add(s); + break; + } // case 18 + case 26: { + com.google.cloud.speech.v1.CustomClass m = + input.readMessage( + com.google.cloud.speech.v1.CustomClass.parser(), + extensionRegistry); + if (customClassesBuilder_ == null) { + ensureCustomClassesIsMutable(); + customClasses_.add(m); + } else { + customClassesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + input.readMessage( + getAbnfGrammarFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1653,28 +1513,21 @@ public Builder mergeFrom( } // finally 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
@@ -1691,8 +1544,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
@@ -1709,8 +1560,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
@@ -1727,8 +1576,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
@@ -1737,7 +1584,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();
@@ -1751,8 +1599,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
@@ -1773,8 +1619,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
@@ -1797,8 +1641,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
@@ -1807,7 +1649,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();
@@ -1821,8 +1664,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
@@ -1831,7 +1672,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());
@@ -1842,8 +1684,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
@@ -1864,8 +1704,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
@@ -1878,7 +1716,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);
@@ -1886,8 +1725,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
@@ -1907,8 +1744,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
@@ -1928,8 +1763,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
@@ -1938,12 +1771,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
@@ -1952,16 +1784,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
@@ -1970,8 +1800,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 {
@@ -1979,8 +1809,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
@@ -1990,12 +1818,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
@@ -2004,13 +1830,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
@@ -2019,76 +1844,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. */ @@ -2096,95 +1906,76 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhraseSetReferences( + int index, java.lang.String value) { + if (value == null) { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPhraseSetReferences( + java.lang.String value) { + if (value == null) { 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() { @@ -2194,22 +1985,17 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPhraseSetReferencesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); @@ -2218,25 +2004,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
@@ -2254,8 +2033,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
@@ -2273,8 +2050,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
@@ -2292,8 +2067,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
@@ -2303,7 +2076,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();
@@ -2317,8 +2091,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
@@ -2340,8 +2112,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
@@ -2365,8 +2135,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
@@ -2376,7 +2144,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();
@@ -2390,8 +2159,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
@@ -2413,8 +2180,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
@@ -2436,8 +2201,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
@@ -2451,7 +2214,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);
@@ -2459,8 +2223,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
@@ -2481,8 +2243,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
@@ -2503,8 +2263,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
@@ -2514,12 +2272,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
@@ -2529,16 +2286,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
@@ -2548,8 +2303,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 {
@@ -2557,8 +2312,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
@@ -2569,12 +2322,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
@@ -2584,13 +2335,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
@@ -2600,22 +2350,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(),
@@ -2627,13 +2371,8 @@ public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(in
 
     private com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnfGrammar_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar,
-            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder,
-            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder>
-        abnfGrammarBuilder_;
+        com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder> abnfGrammarBuilder_;
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2641,15 +2380,12 @@ public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(in
      * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return Whether the abnfGrammar field is set. */ public boolean hasAbnfGrammar() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2657,21 +2393,16 @@ public boolean hasAbnfGrammar() {
      * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return The abnfGrammar. */ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getAbnfGrammar() { if (abnfGrammarBuilder_ == null) { - return abnfGrammar_ == null - ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() - : abnfGrammar_; + return abnfGrammar_ == null ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_; } else { return abnfGrammarBuilder_.getMessage(); } } /** - * - * *
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2694,8 +2425,6 @@ public Builder setAbnfGrammar(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGr
       return this;
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2716,8 +2445,6 @@ public Builder setAbnfGrammar(
       return this;
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2728,10 +2455,9 @@ public Builder setAbnfGrammar(
      */
     public Builder mergeAbnfGrammar(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar value) {
       if (abnfGrammarBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && abnfGrammar_ != null
-            && abnfGrammar_
-                != com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          abnfGrammar_ != null &&
+          abnfGrammar_ != com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) {
           getAbnfGrammarBuilder().mergeFrom(value);
         } else {
           abnfGrammar_ = value;
@@ -2744,8 +2470,6 @@ public Builder mergeAbnfGrammar(com.google.cloud.speech.v1.SpeechAdaptation.ABNF
       return this;
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2765,8 +2489,6 @@ public Builder clearAbnfGrammar() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2781,8 +2503,6 @@ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder getAbnfGr
       return getAbnfGrammarFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2791,19 +2511,15 @@ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder getAbnfGr
      *
      * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
-    public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder
-        getAbnfGrammarOrBuilder() {
+    public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder getAbnfGrammarOrBuilder() {
       if (abnfGrammarBuilder_ != null) {
         return abnfGrammarBuilder_.getMessageOrBuilder();
       } else {
-        return abnfGrammar_ == null
-            ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()
-            : abnfGrammar_;
+        return abnfGrammar_ == null ?
+            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_;
       }
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2813,24 +2529,21 @@ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder getAbnfGr
      * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar,
-            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder,
-            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder>
+        com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder> 
         getAbnfGrammarFieldBuilder() {
       if (abnfGrammarBuilder_ == null) {
-        abnfGrammarBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar,
-                com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder,
-                com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder>(
-                getAbnfGrammar(), getParentForChildren(), isClean());
+        abnfGrammarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder>(
+                getAbnfGrammar(),
+                getParentForChildren(),
+                isClean());
         abnfGrammar_ = null;
       }
       return abnfGrammarBuilder_;
     }
-
     @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);
     }
 
@@ -2840,12 +2553,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();
   }
@@ -2854,27 +2567,27 @@ 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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  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 {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2889,4 +2602,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v1.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java
similarity index 68%
rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java
rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java
index b0420ecba70f..30c16d3b25ce 100644
--- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java
+++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java
@@ -1,84 +1,62 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License 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;
 
 /**
- *
- *
  * 
  * Information on speech adaptation use in results
  * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptationInfo} */ -public final class SpeechAdaptationInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpeechAdaptationInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechAdaptationInfo) SpeechAdaptationInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpeechAdaptationInfo.newBuilder() to construct. private SpeechAdaptationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeechAdaptationInfo() { timeoutMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpeechAdaptationInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptationInfo.class, - com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptationInfo.class, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder.class); } public static final int ADAPTATION_TIMEOUT_FIELD_NUMBER = 1; private boolean adaptationTimeout_ = false; /** - * - * *
    * Whether there was a timeout when applying speech adaptation. If true,
    * adaptation had no effect in the response transcript.
    * 
* * bool adaptation_timeout = 1; - * * @return The adaptationTimeout. */ @java.lang.Override @@ -87,19 +65,15 @@ public boolean getAdaptationTimeout() { } public static final int TIMEOUT_MESSAGE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object timeoutMessage_ = ""; /** - * - * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; - * * @return The timeoutMessage. */ @java.lang.Override @@ -108,30 +82,30 @@ public java.lang.String getTimeoutMessage() { 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(); timeoutMessage_ = s; return s; } } /** - * - * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; - * * @return The bytes for timeoutMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getTimeoutMessageBytes() { + public com.google.protobuf.ByteString + getTimeoutMessageBytes() { java.lang.Object ref = timeoutMessage_; 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); timeoutMessage_ = b; return b; } else { @@ -140,7 +114,6 @@ public com.google.protobuf.ByteString getTimeoutMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -152,7 +125,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 (adaptationTimeout_ != false) { output.writeBool(1, adaptationTimeout_); } @@ -169,7 +143,8 @@ public int getSerializedSize() { size = 0; if (adaptationTimeout_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, adaptationTimeout_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, adaptationTimeout_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeoutMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, timeoutMessage_); @@ -182,16 +157,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.SpeechAdaptationInfo)) { return super.equals(obj); } - com.google.cloud.speech.v1.SpeechAdaptationInfo other = - (com.google.cloud.speech.v1.SpeechAdaptationInfo) obj; + com.google.cloud.speech.v1.SpeechAdaptationInfo other = (com.google.cloud.speech.v1.SpeechAdaptationInfo) obj; - if (getAdaptationTimeout() != other.getAdaptationTimeout()) return false; - if (!getTimeoutMessage().equals(other.getTimeoutMessage())) return false; + if (getAdaptationTimeout() + != other.getAdaptationTimeout()) return false; + if (!getTimeoutMessage() + .equals(other.getTimeoutMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -204,7 +180,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADAPTATION_TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAdaptationTimeout()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAdaptationTimeout()); hash = (37 * hash) + TIMEOUT_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getTimeoutMessage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -212,136 +189,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.SpeechAdaptationInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.SpeechAdaptationInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.SpeechAdaptationInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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; } /** - * - * *
    * Information on speech adaptation use in results
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptationInfo} */ - 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.SpeechAdaptationInfo) com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptationInfo.class, - com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptationInfo.class, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechAdaptationInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -352,9 +323,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_SpeechAdaptationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; } @java.lang.Override @@ -373,11 +344,8 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfo build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptationInfo buildPartial() { - com.google.cloud.speech.v1.SpeechAdaptationInfo result = - new com.google.cloud.speech.v1.SpeechAdaptationInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.SpeechAdaptationInfo result = new com.google.cloud.speech.v1.SpeechAdaptationInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -396,39 +364,38 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechAdaptationInfo resul 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.SpeechAdaptationInfo) { - return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptationInfo) other); + return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptationInfo)other); } else { super.mergeFrom(other); return this; @@ -436,8 +403,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.SpeechAdaptationInfo other) { - if (other == com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) return this; if (other.getAdaptationTimeout() != false) { setAdaptationTimeout(other.getAdaptationTimeout()); } @@ -472,25 +438,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - adaptationTimeout_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 34: - { - timeoutMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + adaptationTimeout_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 34: { + timeoutMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,20 +463,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean adaptationTimeout_; + private boolean adaptationTimeout_ ; /** - * - * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; - * * @return The adaptationTimeout. */ @java.lang.Override @@ -521,35 +480,29 @@ public boolean getAdaptationTimeout() { return adaptationTimeout_; } /** - * - * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; - * * @param value The adaptationTimeout to set. * @return This builder for chaining. */ public Builder setAdaptationTimeout(boolean value) { - + adaptationTimeout_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; - * * @return This builder for chaining. */ public Builder clearAdaptationTimeout() { @@ -561,21 +514,19 @@ public Builder clearAdaptationTimeout() { private java.lang.Object timeoutMessage_ = ""; /** - * - * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; - * * @return The timeoutMessage. */ public java.lang.String getTimeoutMessage() { java.lang.Object ref = timeoutMessage_; 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(); timeoutMessage_ = s; return s; @@ -584,22 +535,21 @@ public java.lang.String getTimeoutMessage() { } } /** - * - * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; - * * @return The bytes for timeoutMessage. */ - public com.google.protobuf.ByteString getTimeoutMessageBytes() { + public com.google.protobuf.ByteString + getTimeoutMessageBytes() { java.lang.Object ref = timeoutMessage_; 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); timeoutMessage_ = b; return b; } else { @@ -607,37 +557,30 @@ public com.google.protobuf.ByteString getTimeoutMessageBytes() { } } /** - * - * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; - * * @param value The timeoutMessage to set. * @return This builder for chaining. */ - public Builder setTimeoutMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTimeoutMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } timeoutMessage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; - * * @return This builder for chaining. */ public Builder clearTimeoutMessage() { @@ -647,31 +590,27 @@ public Builder clearTimeoutMessage() { return this; } /** - * - * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; - * * @param value The bytes for timeoutMessage to set. * @return This builder for chaining. */ - public Builder setTimeoutMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTimeoutMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); timeoutMessage_ = value; bitField0_ |= 0x00000002; 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); } @@ -681,12 +620,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.SpeechAdaptationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechAdaptationInfo) private static final com.google.cloud.speech.v1.SpeechAdaptationInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.SpeechAdaptationInfo(); } @@ -695,27 +634,27 @@ public static com.google.cloud.speech.v1.SpeechAdaptationInfo getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechAdaptationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechAdaptationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -730,4 +669,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechAdaptationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java similarity index 58% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java index da65be18b760..7be8c26b1e8b 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.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/cloud_speech.proto package com.google.cloud.speech.v1; -public interface SpeechAdaptationInfoOrBuilder - extends +public interface SpeechAdaptationInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechAdaptationInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Whether there was a timeout when applying speech adaptation. If true,
    * adaptation had no effect in the response transcript.
    * 
* * bool adaptation_timeout = 1; - * * @return The adaptationTimeout. */ boolean getAdaptationTimeout(); /** - * - * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; - * * @return The timeoutMessage. */ java.lang.String getTimeoutMessage(); /** - * - * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; - * * @return The bytes for timeoutMessage. */ - com.google.protobuf.ByteString getTimeoutMessageBytes(); + com.google.protobuf.ByteString + getTimeoutMessageBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java similarity index 82% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java index af5aec644d5e..97607d1d668f 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java +++ b/owl-bot-staging/java-speech/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,11 +158,10 @@ 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);
 
   /**
-   *
-   *
    * 
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -217,13 +169,10 @@ public interface SpeechAdaptationOrBuilder
    * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return Whether the abnfGrammar field is set. */ boolean hasAbnfGrammar(); /** - * - * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -231,13 +180,10 @@ public interface SpeechAdaptationOrBuilder
    * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return The abnfGrammar. */ com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getAbnfGrammar(); /** - * - * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java
new file mode 100644
index 000000000000..314543722847
--- /dev/null
+++ b/owl-bot-staging/java-speech/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,53 +11,48 @@
  *
  * 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
   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
@@ -90,15 +68,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
@@ -114,15 +90,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
@@ -138,7 +111,6 @@ public int getPhrasesCount() {
    * 
* * repeated string phrases = 1; - * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -146,8 +118,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
@@ -163,19 +133,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_ = 0F; /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -188,7 +156,6 @@ public com.google.protobuf.ByteString getPhrasesBytes(int index) {
    * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -197,7 +164,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +175,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)); } @@ -234,7 +201,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -244,16 +212,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -270,110 +240,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) + getUnknownFields().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.
@@ -381,32 +345,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -418,9 +383,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
@@ -439,12 +404,9 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -468,39 +430,38 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechContext result) {
     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;
@@ -548,26 +509,23 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensurePhrasesIsMutable();
-                phrases_.add(s);
-                break;
-              } // case 10
-            case 37:
-              {
-                boost_ = input.readFloat();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 37
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensurePhrasesIsMutable();
+              phrases_.add(s);
+              break;
+            } // case 10
+            case 37: {
+              boost_ = input.readFloat();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 37
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -577,21 +535,16 @@ public Builder mergeFrom(
       } // finally
       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
@@ -607,15 +560,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
@@ -631,15 +582,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
@@ -655,7 +603,6 @@ public int getPhrasesCount() {
      * 
* * repeated string phrases = 1; - * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -663,8 +610,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
@@ -680,16 +625,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
@@ -705,23 +648,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhrases( + int index, java.lang.String value) { + if (value == null) { 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
@@ -737,22 +676,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPhrases( + java.lang.String value) { + if (value == null) { 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
@@ -768,19 +703,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
@@ -796,7 +730,6 @@ public Builder addAllPhrases(java.lang.Iterable values) {
      * 
* * repeated string phrases = 1; - * * @return This builder for chaining. */ public Builder clearPhrases() { @@ -806,8 +739,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
@@ -823,14 +754,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPhrasesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePhrasesIsMutable(); phrases_.add(value); @@ -838,10 +767,8 @@ public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { 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
@@ -854,7 +781,6 @@ public Builder addPhrasesBytes(com.google.protobuf.ByteString value) {
      * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -862,8 +788,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
@@ -876,20 +800,17 @@ public float getBoost() {
      * 
* * float boost = 4; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000002; 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
@@ -902,7 +823,6 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; - * * @return This builder for chaining. */ public Builder clearBoost() { @@ -911,9 +831,9 @@ public Builder clearBoost() { 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); } @@ -923,12 +843,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(); } @@ -937,27 +857,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -972,4 +892,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java similarity index 85% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java index a529f04289b7..97fbd87c39aa 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java new file mode 100644 index 000000000000..94eb2eab65a3 --- /dev/null +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java @@ -0,0 +1,427 @@ +// 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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_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\"\355\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\022L\n\026speech_adaptation_info\030\007 " + + "\001(\0132,.google.cloud.speech.v1.SpeechAdapt" + + "ationInfo\022\022\n\nrequest_id\030\010 \001(\003\"\351\002\n\034LongRu" + + "nningRecognizeResponse\022@\n\007results\030\002 \003(\0132" + + "/.google.cloud.speech.v1.SpeechRecogniti" + + "onResult\0224\n\021total_billed_time\030\003 \001(\0132\031.go" + + "ogle.protobuf.Duration\022E\n\routput_config\030" + + "\006 \001(\0132..google.cloud.speech.v1.Transcrip" + + "tOutputConfig\022(\n\014output_error\030\007 \001(\0132\022.go" + + "ogle.rpc.Status\022L\n\026speech_adaptation_inf" + + "o\030\010 \001(\0132,.google.cloud.speech.v1.SpeechA" + + "daptationInfo\022\022\n\nrequest_id\030\t \001(\003\"\260\001\n\034Lo" + + "ngRunningRecognizeMetadata\022\030\n\020progress_p" + + "ercent\030\001 \001(\005\022.\n\nstart_time\030\002 \001(\0132\032.googl" + + "e.protobuf.Timestamp\0224\n\020last_update_time" + + "\030\003 \001(\0132\032.google.protobuf.Timestamp\022\020\n\003ur" + + "i\030\004 \001(\tB\003\340A\003\"\311\003\n\032StreamingRecognizeRespo" + + "nse\022!\n\005error\030\001 \001(\0132\022.google.rpc.Status\022C" + + "\n\007results\030\002 \003(\01322.google.cloud.speech.v1" + + ".StreamingRecognitionResult\022]\n\021speech_ev" + + "ent_type\030\004 \001(\0162B.google.cloud.speech.v1." + + "StreamingRecognizeResponse.SpeechEventTy" + + "pe\0224\n\021total_billed_time\030\005 \001(\0132\031.google.p" + + "rotobuf.Duration\022L\n\026speech_adaptation_in" + + "fo\030\t \001(\0132,.google.cloud.speech.v1.Speech" + + "AdaptationInfo\022\022\n\nrequest_id\030\n \001(\003\"L\n\017Sp" + + "eechEventType\022\034\n\030SPEECH_EVENT_UNSPECIFIE" + + "D\020\000\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\362\001\n\032Str" + + "eamingRecognitionResult\022J\n\014alternatives\030" + + "\001 \003(\01324.google.cloud.speech.v1.SpeechRec" + + "ognitionAlternative\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\"\312\001" + + "\n\027SpeechRecognitionResult\022J\n\014alternative" + + "s\030\001 \003(\01324.google.cloud.speech.v1.SpeechR" + + "ecognitionAlternative\022\023\n\013channel_tag\030\002 \001" + + "(\005\0222\n\017result_end_time\030\004 \001(\0132\031.google.pro" + + "tobuf.Duration\022\032\n\rlanguage_code\030\005 \001(\tB\003\340" + + "A\003\"w\n\034SpeechRecognitionAlternative\022\022\n\ntr" + + "anscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022/\n\005wo" + + "rds\030\003 \003(\0132 .google.cloud.speech.v1.WordI" + + "nfo\"\242\001\n\010WordInfo\022-\n\nstart_time\030\001 \001(\0132\031.g" + + "oogle.protobuf.Duration\022+\n\010end_time\030\002 \001(" + + "\0132\031.google.protobuf.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\003\"K\n\024SpeechAdaptationInfo\022\032\n\022adap" + + "tation_timeout\030\001 \001(\010\022\027\n\017timeout_message\030" + + "\004 \001(\t2\321\004\n\006Speech\022\220\001\n\tRecognize\022(.google." + + "cloud.speech.v1.RecognizeRequest\032).googl" + + "e.cloud.speech.v1.RecognizeResponse\".\202\323\344" + + "\223\002\031\"\024/v1/speech:recognize:\001*\332A\014config,au" + + "dio\022\344\001\n\024LongRunningRecognize\0223.google.cl" + + "oud.speech.v1.LongRunningRecognizeReques" + + "t\032\035.google.longrunning.Operation\"x\202\323\344\223\002$" + + "\"\037/v1/speech:longrunningrecognize:\001*\332A\014c" + + "onfig,audio\312A<\n\034LongRunningRecognizeResp" + + "onse\022\034LongRunningRecognizeMetadata\022\201\001\n\022S" + + "treamingRecognize\0221.google.cloud.speech." + + "v1.StreamingRecognizeRequest\0322.google.cl" + + "oud.speech.v1.StreamingRecognizeResponse" + + "\"\000(\0010\001\032I\312A\025speech.googleapis.com\322A.https" + + "://www.googleapis.com/auth/cloud-platfor" + + "mBr\n\032com.google.cloud.speech.v1B\013SpeechP" + + "rotoP\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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") 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
@@ -83,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string transcript = 1; - * * @return The transcript. */ @java.lang.Override @@ -92,15 +69,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
@@ -109,15 +85,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 { @@ -128,8 +105,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_ = 0F; /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -141,7 +116,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -150,12 +124,9 @@ public float getConfidence() { } public static final int WORDS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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
@@ -169,8 +140,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
@@ -180,13 +149,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
@@ -200,8 +167,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
@@ -215,8 +180,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
@@ -226,12 +189,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;
@@ -243,7 +206,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_);
     }
@@ -266,10 +230,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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -279,18 +245,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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -305,7 +273,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();
@@ -316,136 +285,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -463,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_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 @@ -484,18 +446,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1.SpeechRecognitionAlternative result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1.SpeechRecognitionAlternative result) { if (wordsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -521,39 +479,38 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechRecognitionAlternati 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; @@ -561,8 +518,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_; bitField0_ |= 0x00000001; @@ -589,10 +545,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.SpeechRecognitionAlternative wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000004); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWordsFieldBuilder() - : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWordsFieldBuilder() : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -624,38 +579,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - transcript_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: - { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - case 26: - { - com.google.cloud.speech.v1.WordInfo m = - input.readMessage( - com.google.cloud.speech.v1.WordInfo.parser(), extensionRegistry); - if (wordsBuilder_ == null) { - ensureWordsIsMutable(); - words_.add(m); - } else { - wordsBuilder_.addMessage(m); - } - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + transcript_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 26: { + com.google.cloud.speech.v1.WordInfo m = + input.readMessage( + com.google.cloud.speech.v1.WordInfo.parser(), + extensionRegistry); + if (wordsBuilder_ == null) { + ensureWordsIsMutable(); + words_.add(m); + } else { + wordsBuilder_.addMessage(m); + } + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -665,13 +617,10 @@ public Builder mergeFrom( } // finally 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
@@ -680,13 +629,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; @@ -695,8 +644,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
@@ -705,14 +652,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 { @@ -720,8 +668,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
@@ -730,22 +676,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTranscript( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } transcript_ = value; bitField0_ |= 0x00000001; 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
@@ -754,7 +696,6 @@ public Builder setTranscript(java.lang.String value) {
      * 
* * string transcript = 1; - * * @return This builder for chaining. */ public Builder clearTranscript() { @@ -764,8 +705,6 @@ public Builder clearTranscript() { 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,14 +713,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTranscriptBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); transcript_ = value; bitField0_ |= 0x00000001; @@ -789,10 +726,8 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { 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
@@ -804,7 +739,6 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -812,8 +746,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
@@ -825,20 +757,17 @@ public float getConfidence() {
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000002; 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
@@ -850,7 +779,6 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -861,24 +789,18 @@ public Builder clearConfidence() { } private java.util.List words_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000004; - } + } } 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
@@ -895,8 +817,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
@@ -913,8 +833,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
@@ -931,8 +849,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
@@ -941,7 +857,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();
@@ -955,8 +872,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
@@ -977,8 +892,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
@@ -1001,8 +914,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
@@ -1011,7 +922,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();
@@ -1025,8 +937,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
@@ -1035,7 +945,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());
@@ -1046,8 +957,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
@@ -1068,8 +977,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
@@ -1082,7 +989,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);
@@ -1090,8 +998,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
@@ -1111,8 +1017,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
@@ -1132,8 +1036,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
@@ -1142,12 +1044,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
@@ -1156,16 +1057,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
@@ -1174,8 +1073,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 {
@@ -1183,8 +1082,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
@@ -1194,12 +1091,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
@@ -1208,13 +1103,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
@@ -1223,29 +1117,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_ & 0x00000004) != 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_ & 0x00000004) != 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);
     }
 
@@ -1255,12 +1147,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();
   }
@@ -1269,27 +1161,27 @@ 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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  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 {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1304,4 +1196,6 @@ public com.google.protobuf.Parser getParserForType
   public com.google.cloud.speech.v1.SpeechRecognitionAlternative getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
similarity index 78%
rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
index 058f60aa9d01..90fecb6d97c4 100644
--- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
+++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
similarity index 75%
rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
index cec60f257c60..35e9bd85f0b2 100644
--- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
+++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private java.util.List alternatives_; /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -85,13 +63,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`).
@@ -102,13 +77,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`).
@@ -123,8 +96,6 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -139,8 +110,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`).
@@ -159,8 +128,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int CHANNEL_TAG_FIELD_NUMBER = 2;
   private int channelTag_ = 0;
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -168,7 +135,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ @java.lang.Override @@ -179,15 +145,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 @@ -195,26 +158,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.
@@ -224,18 +180,13 @@ public com.google.protobuf.Duration getResultEndTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
-    return resultEndTime_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : resultEndTime_;
+    return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
-
   @SuppressWarnings("serial")
   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
@@ -243,7 +194,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ @java.lang.Override @@ -252,15 +202,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
@@ -268,15 +217,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 { @@ -285,7 +235,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -297,7 +246,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)); } @@ -320,13 +270,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_); @@ -339,21 +292,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -383,135 +339,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -534,9 +484,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 @@ -555,18 +505,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1.SpeechRecognitionResult result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1.SpeechRecognitionResult result) { if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -584,8 +530,9 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechRecognitionResult re result.channelTag_ = channelTag_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.resultEndTime_ = - resultEndTimeBuilder_ == null ? resultEndTime_ : resultEndTimeBuilder_.build(); + result.resultEndTime_ = resultEndTimeBuilder_ == null + ? resultEndTime_ + : resultEndTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.languageCode_ = languageCode_; @@ -596,39 +543,38 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechRecognitionResult re 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; @@ -636,8 +582,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()) { @@ -656,10 +601,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_); } @@ -702,45 +646,42 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1.SpeechRecognitionAlternative m = - input.readMessage( - com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), - extensionRegistry); - if (alternativesBuilder_ == null) { - ensureAlternativesIsMutable(); - alternatives_.add(m); - } else { - alternativesBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: - { - channelTag_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 34: - { - input.readMessage(getResultEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.speech.v1.SpeechRecognitionAlternative m = + input.readMessage( + com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), + extensionRegistry); + if (alternativesBuilder_ == null) { + ensureAlternativesIsMutable(); + alternatives_.add(m); + } else { + alternativesBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + channelTag_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 34: { + input.readMessage( + getResultEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -750,30 +691,21 @@ public Builder mergeFrom( } // finally 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`).
@@ -783,8 +715,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 {
@@ -792,8 +723,6 @@ private void ensureAlternativesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -811,8 +740,6 @@ public int getAlternativesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -830,8 +757,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`).
@@ -856,8 +781,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -868,8 +791,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());
@@ -880,8 +802,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -905,8 +825,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`).
@@ -931,8 +849,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -954,8 +870,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -966,8 +880,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());
@@ -978,8 +891,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -990,11 +901,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);
@@ -1002,8 +913,6 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1024,8 +933,6 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1046,8 +953,6 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1062,8 +967,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`).
@@ -1073,17 +976,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`).
@@ -1093,9 +993,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 {
@@ -1103,8 +1002,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`).
@@ -1114,14 +1011,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`).
@@ -1133,13 +1027,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`).
@@ -1149,32 +1040,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.
@@ -1182,7 +1068,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ @java.lang.Override @@ -1190,8 +1075,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.
@@ -1199,20 +1082,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1220,7 +1100,6 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; - * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1232,49 +1111,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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.
@@ -1296,8 +1162,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.
@@ -1305,7 +1169,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();
       } else {
@@ -1316,8 +1181,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.
@@ -1327,9 +1190,9 @@ public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForV
      */
     public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && resultEndTime_ != null
-            && resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          resultEndTime_ != null &&
+          resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndTimeBuilder().mergeFrom(value);
         } else {
           resultEndTime_ = value;
@@ -1342,8 +1205,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.
@@ -1362,8 +1223,6 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1377,8 +1236,6 @@ public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1390,14 +1247,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.
@@ -1406,17 +1260,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_;
@@ -1424,8 +1275,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
@@ -1433,13 +1282,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; @@ -1448,8 +1297,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
@@ -1457,14 +1304,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 { @@ -1472,8 +1320,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
@@ -1481,22 +1327,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000008; 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
@@ -1504,7 +1346,6 @@ 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() { @@ -1514,8 +1355,6 @@ public Builder clearLanguageCode() { 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
@@ -1523,23 +1362,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000008; 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); } @@ -1549,12 +1386,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(); } @@ -1563,27 +1400,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1598,4 +1435,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java similarity index 83% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java index 50085b974066..aa2bef7b69e6 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java new file mode 100644 index 000000000000..9efbe77cc9c8 --- /dev/null +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java @@ -0,0 +1,135 @@ +// 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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_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}\"\275\002\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.CustomClass\022J\n" + + "\014abnf_grammar\030\004 \001(\01324.google.cloud.speec" + + "h.v1.SpeechAdaptation.ABNFGrammar\032#\n\013ABN" + + "FGrammar\022\024\n\014abnf_strings\030\001 \003(\tBz\n\032com.go" + + "ogle.cloud.speech.v1B\023SpeechResourceProt" + + "oP\001Z * Provides information to the recognizer that specifies how to process the * request. @@ -28,58 +11,52 @@ * * 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; } - - 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 @@ -87,49 +64,34 @@ 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() { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 2; private boolean singleUtterance_ = false; /** - * - * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -152,7 +114,6 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * bool single_utterance = 2; - * * @return The singleUtterance. */ @java.lang.Override @@ -163,8 +124,6 @@ public boolean getSingleUtterance() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 3; private boolean interimResults_ = false; /** - * - * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -173,7 +132,6 @@ public boolean getSingleUtterance() {
    * 
* * bool interim_results = 3; - * * @return The interimResults. */ @java.lang.Override @@ -182,7 +140,6 @@ public boolean getInterimResults() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,7 +151,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()); } @@ -214,13 +172,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -230,20 +191,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -260,113 +223,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) + getUnknownFields().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.
@@ -374,32 +331,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -415,9 +373,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
@@ -436,11 +394,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v1.StreamingRecognitionConfig result = new com.google.cloud.speech.v1.StreamingRecognitionConfig(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -448,7 +403,9 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognitionConfig result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
+        result.config_ = configBuilder_ == null
+            ? config_
+            : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.singleUtterance_ = singleUtterance_;
@@ -462,39 +419,38 @@ private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognitionConfig
     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;
@@ -502,8 +458,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());
       }
@@ -539,31 +494,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                singleUtterance_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 24:
-              {
-                interimResults_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              singleUtterance_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 24: {
+              interimResults_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -573,66 +526,46 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * 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) { @@ -648,18 +581,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(); } else { @@ -670,22 +600,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 (((bitField0_ & 0x00000001) != 0) - && config_ != null - && config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + config_ != null && + config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -698,16 +624,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -720,16 +642,12 @@ 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() { bitField0_ |= 0x00000001; @@ -737,59 +655,45 @@ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { 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
@@ -812,7 +716,6 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * bool single_utterance = 2; - * * @return The singleUtterance. */ @java.lang.Override @@ -820,8 +723,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
@@ -844,20 +745,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -880,7 +778,6 @@ public Builder setSingleUtterance(boolean value) {
      * 
* * bool single_utterance = 2; - * * @return This builder for chaining. */ public Builder clearSingleUtterance() { @@ -890,10 +787,8 @@ public Builder clearSingleUtterance() { 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
@@ -902,7 +797,6 @@ public Builder clearSingleUtterance() {
      * 
* * bool interim_results = 3; - * * @return The interimResults. */ @java.lang.Override @@ -910,8 +804,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
@@ -920,20 +812,17 @@ 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -942,7 +831,6 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 3; - * * @return This builder for chaining. */ public Builder clearInterimResults() { @@ -951,9 +839,9 @@ public Builder clearInterimResults() { 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); } @@ -963,12 +851,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(); } @@ -977,27 +865,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1012,4 +900,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java index 7b3064599957..8c5cfecdc1c5 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java similarity index 76% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java index 1ee89c35cdc8..8b0f758aa248 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java +++ b/owl-bot-staging/java-speech/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,37 +27,33 @@ 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
   private java.util.List alternatives_;
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -86,13 +64,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`).
@@ -103,13 +78,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`).
@@ -124,8 +97,6 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -140,8 +111,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`).
@@ -160,8 +129,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int IS_FINAL_FIELD_NUMBER = 2;
   private boolean isFinal_ = false;
   /**
-   *
-   *
    * 
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -171,7 +138,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * bool is_final = 2; - * * @return The isFinal. */ @java.lang.Override @@ -182,8 +148,6 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_ = 0F; /** - * - * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -193,7 +157,6 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; - * * @return The stability. */ @java.lang.Override @@ -204,15 +167,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 @@ -220,26 +180,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.
@@ -249,16 +202,12 @@ public com.google.protobuf.Duration getResultEndTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
-    return resultEndTime_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : resultEndTime_;
+    return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
   }
 
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_ = 0;
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -266,7 +215,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ @java.lang.Override @@ -275,12 +223,9 @@ public int getChannelTag() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; - @SuppressWarnings("serial") 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
@@ -288,7 +233,6 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ @java.lang.Override @@ -297,15 +241,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
@@ -313,15 +256,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 { @@ -330,7 +274,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -342,7 +285,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)); } @@ -371,19 +315,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_); @@ -396,24 +345,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -430,9 +384,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(); @@ -447,104 +403,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.
@@ -552,32 +500,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -602,9 +551,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
@@ -623,18 +572,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v1.StreamingRecognitionResult result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v1.StreamingRecognitionResult result) {
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -655,8 +600,9 @@ private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognitionResult
         result.stability_ = stability_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.resultEndTime_ =
-            resultEndTimeBuilder_ == null ? resultEndTime_ : resultEndTimeBuilder_.build();
+        result.resultEndTime_ = resultEndTimeBuilder_ == null
+            ? resultEndTime_
+            : resultEndTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.channelTag_ = channelTag_;
@@ -670,39 +616,38 @@ private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognitionResult
     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;
@@ -710,8 +655,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()) {
@@ -730,10 +674,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_);
           }
@@ -782,57 +725,52 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.speech.v1.SpeechRecognitionAlternative m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(),
-                        extensionRegistry);
-                if (alternativesBuilder_ == null) {
-                  ensureAlternativesIsMutable();
-                  alternatives_.add(m);
-                } else {
-                  alternativesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 16:
-              {
-                isFinal_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 29:
-              {
-                stability_ = input.readFloat();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 29
-            case 34:
-              {
-                input.readMessage(getResultEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 40:
-              {
-                channelTag_ = input.readInt32();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-            case 50:
-              {
-                languageCode_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.speech.v1.SpeechRecognitionAlternative m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(),
+                      extensionRegistry);
+              if (alternativesBuilder_ == null) {
+                ensureAlternativesIsMutable();
+                alternatives_.add(m);
+              } else {
+                alternativesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 16: {
+              isFinal_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 29: {
+              stability_ = input.readFloat();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 29
+            case 34: {
+              input.readMessage(
+                  getResultEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 40: {
+              channelTag_ = input.readInt32();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            case 50: {
+              languageCode_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -842,30 +780,21 @@ public Builder mergeFrom(
       } // finally
       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`).
@@ -875,8 +804,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 {
@@ -884,8 +812,6 @@ private void ensureAlternativesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -903,8 +829,6 @@ public int getAlternativesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -922,8 +846,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`).
@@ -948,8 +870,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -960,8 +880,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());
@@ -972,8 +891,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -997,8 +914,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`).
@@ -1023,8 +938,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1046,8 +959,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1058,8 +969,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());
@@ -1070,8 +980,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1082,11 +990,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);
@@ -1094,8 +1002,6 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1116,8 +1022,6 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1138,8 +1042,6 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1154,8 +1056,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`).
@@ -1165,17 +1065,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`).
@@ -1185,9 +1082,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 {
@@ -1195,8 +1091,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`).
@@ -1206,14 +1100,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`).
@@ -1225,13 +1116,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`).
@@ -1241,32 +1129,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
@@ -1276,7 +1159,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      * 
* * bool is_final = 2; - * * @return The isFinal. */ @java.lang.Override @@ -1284,8 +1166,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
@@ -1295,20 +1175,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1318,7 +1195,6 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; - * * @return This builder for chaining. */ public Builder clearIsFinal() { @@ -1328,10 +1204,8 @@ public Builder clearIsFinal() { 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
@@ -1341,7 +1215,6 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; - * * @return The stability. */ @java.lang.Override @@ -1349,8 +1222,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
@@ -1360,20 +1231,17 @@ public float getStability() {
      * 
* * float stability = 3; - * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; bitField0_ |= 0x00000004; 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
@@ -1383,7 +1251,6 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; - * * @return This builder for chaining. */ public Builder clearStability() { @@ -1395,49 +1262,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 ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * 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.
@@ -1459,8 +1313,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.
@@ -1468,7 +1320,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();
       } else {
@@ -1479,8 +1332,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.
@@ -1490,9 +1341,9 @@ public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForV
      */
     public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && resultEndTime_ != null
-            && resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          resultEndTime_ != null &&
+          resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndTimeBuilder().mergeFrom(value);
         } else {
           resultEndTime_ = value;
@@ -1505,8 +1356,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.
@@ -1525,8 +1374,6 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1540,8 +1387,6 @@ public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1553,14 +1398,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.
@@ -1569,26 +1411,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.
@@ -1596,7 +1433,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ @java.lang.Override @@ -1604,8 +1440,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.
@@ -1613,20 +1447,17 @@ 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1634,7 +1465,6 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; - * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1646,8 +1476,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
@@ -1655,13 +1483,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; @@ -1670,8 +1498,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
@@ -1679,14 +1505,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 { @@ -1694,8 +1521,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
@@ -1703,22 +1528,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000020; 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
@@ -1726,7 +1547,6 @@ 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() { @@ -1736,8 +1556,6 @@ public Builder clearLanguageCode() { 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
@@ -1745,23 +1563,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000020; 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); } @@ -1771,12 +1587,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(); } @@ -1785,27 +1601,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1820,4 +1636,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java similarity index 85% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java index 21ef917f18b9..c44aa1077a0d 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java index d72b525f59ea..66731bd86572 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java +++ b/owl-bot-staging/java-speech/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,56 +14,52 @@
  *
  * 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;
   }
-
-  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;
     }
@@ -96,30 +75,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
@@ -127,7 +101,6 @@ public StreamingRequestCase getStreamingRequestCase() {
    * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; - * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -135,8 +108,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
@@ -144,19 +115,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
@@ -166,18 +134,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
@@ -190,7 +155,6 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig getStreamingConfig(
    * 
* * bytes audio_content = 2; - * * @return Whether the audioContent field is set. */ @java.lang.Override @@ -198,8 +162,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
@@ -212,7 +174,6 @@ public boolean hasAudioContent() {
    * 
* * bytes audio_content = 2; - * * @return The audioContent. */ @java.lang.Override @@ -224,7 +185,6 @@ public com.google.protobuf.ByteString getAudioContent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,13 +196,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_); } getUnknownFields().writeTo(output); } @@ -254,14 +215,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -271,21 +231,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: @@ -319,103 +280,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
@@ -426,32 +380,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -465,9 +420,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
@@ -486,11 +441,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v1.StreamingRecognizeRequest result = new com.google.cloud.speech.v1.StreamingRecognizeRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -503,7 +455,8 @@ private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognizeRequest
     private void buildPartialOneofs(com.google.cloud.speech.v1.StreamingRecognizeRequest result) {
       result.streamingRequestCase_ = streamingRequestCase_;
       result.streamingRequest_ = this.streamingRequest_;
-      if (streamingRequestCase_ == 1 && streamingConfigBuilder_ != null) {
+      if (streamingRequestCase_ == 1 &&
+          streamingConfigBuilder_ != null) {
         result.streamingRequest_ = streamingConfigBuilder_.build();
       }
     }
@@ -512,39 +465,38 @@ private void buildPartialOneofs(com.google.cloud.speech.v1.StreamingRecognizeReq
     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;
@@ -552,23 +504,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.getUnknownFields());
       onChanged();
@@ -596,25 +544,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getStreamingConfigFieldBuilder().getBuilder(), extensionRegistry);
-                streamingRequestCase_ = 1;
-                break;
-              } // case 10
-            case 18:
-              {
-                streamingRequest_ = input.readBytes();
-                streamingRequestCase_ = 2;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getStreamingConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              streamingRequestCase_ = 1;
+              break;
+            } // case 10
+            case 18: {
+              streamingRequest_ = input.readBytes();
+              streamingRequestCase_ = 2;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -624,12 +571,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -642,13 +589,8 @@ public Builder clearStreamingRequest() {
     private int bitField0_;
 
     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
@@ -656,7 +598,6 @@ public Builder clearStreamingRequest() {
      * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; - * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -664,8 +605,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
@@ -673,7 +612,6 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; - * * @return The streamingConfig. */ @java.lang.Override @@ -691,8 +629,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
@@ -715,8 +651,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
@@ -737,8 +671,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
@@ -747,17 +679,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;
         }
@@ -773,8 +700,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
@@ -800,8 +725,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
@@ -810,13 +733,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
@@ -826,8 +746,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 {
@@ -838,8 +757,6 @@ public Builder clearStreamingConfig() {
       }
     }
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -849,20 +766,14 @@ 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());
@@ -874,8 +785,6 @@ public Builder clearStreamingConfig() {
     }
 
     /**
-     *
-     *
      * 
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -888,15 +797,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
@@ -909,7 +815,6 @@ public boolean hasAudioContent() {
      * 
* * bytes audio_content = 2; - * * @return The audioContent. */ public com.google.protobuf.ByteString getAudioContent() { @@ -919,8 +824,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
@@ -933,22 +836,17 @@ 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(); - } + if (value == null) { 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
@@ -961,7 +859,6 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 2; - * * @return This builder for chaining. */ public Builder clearAudioContent() { @@ -972,9 +869,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); } @@ -984,12 +881,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(); } @@ -998,27 +895,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1033,4 +930,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java similarity index 79% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java index 13fc461c9e7b..28ed92b158ab 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java similarity index 75% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java index d35855eadc79..9a06793de786 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java +++ b/owl-bot-staging/java-speech/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,43 +61,39 @@ 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;
   }
-
-  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.
      * 
@@ -124,8 +102,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
@@ -143,8 +119,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * No speech event specified.
      * 
@@ -153,8 +127,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
@@ -169,6 +141,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(
@@ -193,43 +166,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();
@@ -237,7 +206,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;
@@ -257,15 +227,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 @@ -273,15 +240,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 @@ -289,8 +253,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.
@@ -304,12 +266,9 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -324,8 +283,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.
@@ -336,13 +293,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.
@@ -357,8 +312,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.
@@ -373,8 +326,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.
@@ -393,56 +344,38 @@ public com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResults
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 4;
   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; * @return The speechEventType. */ - @java.lang.Override - public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType - getSpeechEventType() { - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.forNumber( - speechEventType_); - return result == null - ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.forNumber(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 @@ -450,26 +383,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.
@@ -479,22 +405,17 @@ public com.google.protobuf.Duration getTotalBilledTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
-    return totalBilledTime_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : totalBilledTime_;
+    return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_;
   }
 
   public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 9;
   private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_;
   /**
-   *
-   *
    * 
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -502,25 +423,18 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } /** - * - * *
    * Provides information on adaptation behavior in response
    * 
@@ -528,25 +442,19 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; */ @java.lang.Override - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 10; private long requestId_ = 0L; /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 10; - * * @return The requestId. */ @java.lang.Override @@ -555,7 +463,6 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -567,17 +474,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) { @@ -599,26 +504,28 @@ 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()); } if (speechAdaptationInfo_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSpeechAdaptationInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, requestId_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(10, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -628,29 +535,33 @@ 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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo() + .equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() != other.getRequestId()) return false; + if (getRequestId() + != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -681,111 +592,104 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } 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`
@@ -827,32 +731,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -885,9 +790,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,18 +811,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v1.StreamingRecognizeResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v1.StreamingRecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000002) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -932,20 +833,22 @@ private void buildPartialRepeatedFields(
     private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
+        result.error_ = errorBuilder_ == null
+            ? error_
+            : errorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.speechEventType_ = speechEventType_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.totalBilledTime_ =
-            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
+            ? totalBilledTime_
+            : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.speechAdaptationInfo_ =
-            speechAdaptationInfoBuilder_ == null
-                ? speechAdaptationInfo_
-                : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
+            ? speechAdaptationInfo_
+            : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.requestId_ = requestId_;
@@ -956,39 +859,38 @@ private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognizeResponse
     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;
@@ -996,8 +898,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());
       }
@@ -1019,10 +920,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognizeResponse o
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            resultsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getResultsFieldBuilder()
-                    : null;
+            resultsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getResultsFieldBuilder() : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -1066,58 +966,56 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.cloud.speech.v1.StreamingRecognitionResult m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1.StreamingRecognitionResult.parser(),
-                        extensionRegistry);
-                if (resultsBuilder_ == null) {
-                  ensureResultsIsMutable();
-                  results_.add(m);
-                } else {
-                  resultsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 32:
-              {
-                speechEventType_ = input.readEnum();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 32
-            case 42:
-              {
-                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 42
-            case 74:
-              {
-                input.readMessage(
-                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 74
-            case 80:
-              {
-                requestId_ = input.readInt64();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 80
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getErrorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              com.google.cloud.speech.v1.StreamingRecognitionResult m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.StreamingRecognitionResult.parser(),
+                      extensionRegistry);
+              if (resultsBuilder_ == null) {
+                ensureResultsIsMutable();
+                results_.add(m);
+              } else {
+                resultsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 32: {
+              speechEventType_ = input.readEnum();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 32
+            case 42: {
+              input.readMessage(
+                  getTotalBilledTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 42
+            case 74: {
+              input.readMessage(
+                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 74
+            case 80: {
+              requestId_ = input.readInt64();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 80
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1127,38 +1025,30 @@ public Builder mergeFrom(
       } // finally
       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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * 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() { @@ -1169,8 +1059,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.
@@ -1192,8 +1080,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.
@@ -1201,7 +1087,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();
       } else {
@@ -1212,8 +1099,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.
@@ -1223,9 +1108,9 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
      */
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && error_ != null
-            && error_ != com.google.rpc.Status.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          error_ != null &&
+          error_ != com.google.rpc.Status.getDefaultInstance()) {
           getErrorBuilder().mergeFrom(value);
         } else {
           error_ = value;
@@ -1238,8 +1123,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.
@@ -1258,8 +1141,6 @@ public Builder clearError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1273,8 +1154,6 @@ public com.google.rpc.Status.Builder getErrorBuilder() {
       return getErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1286,12 +1165,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.
@@ -1300,40 +1178,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_ & 0x00000002) != 0)) {
-        results_ =
-            new java.util.ArrayList(
-                results_);
+        results_ = new java.util.ArrayList(results_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     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.
@@ -1351,8 +1221,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.
@@ -1370,8 +1238,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1389,8 +1255,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.
@@ -1415,8 +1279,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.
@@ -1438,8 +1300,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.
@@ -1463,8 +1323,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.
@@ -1489,8 +1347,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.
@@ -1512,8 +1368,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.
@@ -1535,8 +1389,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.
@@ -1547,11 +1399,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);
@@ -1559,8 +1411,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.
@@ -1581,8 +1431,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.
@@ -1603,8 +1451,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.
@@ -1619,8 +1465,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.
@@ -1633,14 +1477,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.
@@ -1650,8 +1491,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 {
@@ -1659,8 +1500,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.
@@ -1671,12 +1510,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.
@@ -1688,13 +1525,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.
@@ -1704,23 +1538,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_ & 0x00000002) != 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_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1728,33 +1559,22 @@ 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. */ @@ -1765,44 +1585,28 @@ public Builder setSpeechEventTypeValue(int value) { 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() { - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.forNumber( - speechEventType_); - return result == null - ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED - : result; + public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.forNumber(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(); } @@ -1812,16 +1616,11 @@ public Builder setSpeechEventType( 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() { @@ -1833,49 +1632,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 ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * 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.
@@ -1897,8 +1683,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.
@@ -1906,7 +1690,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();
       } else {
@@ -1917,8 +1702,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.
@@ -1928,9 +1711,9 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo
      */
     public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       if (totalBilledTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && totalBilledTime_ != null
-            && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          totalBilledTime_ != null &&
+          totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getTotalBilledTimeBuilder().mergeFrom(value);
         } else {
           totalBilledTime_ = value;
@@ -1943,8 +1726,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.
@@ -1963,8 +1744,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.
@@ -1978,8 +1757,6 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() {
       return getTotalBilledTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1991,14 +1768,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.
@@ -2007,17 +1781,14 @@ 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_;
@@ -2025,47 +1796,34 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
 
     private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechAdaptationInfo,
-            com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder,
-            com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>
-        speechAdaptationInfoBuilder_;
+        com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_;
     /**
-     *
-     *
      * 
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -2086,8 +1844,6 @@ public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptati return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -2106,21 +1862,17 @@ public Builder setSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public Builder mergeSpeechAdaptationInfo( - com.google.cloud.speech.v1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && speechAdaptationInfo_ != null - && speechAdaptationInfo_ - != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + speechAdaptationInfo_ != null && + speechAdaptationInfo_ != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -2133,8 +1885,6 @@ public Builder mergeSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -2152,42 +1902,33 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder - getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? + com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -2195,33 +1936,27 @@ public Builder clearSpeechAdaptationInfo() { * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, - com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, - com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), getParentForChildren(), isClean()); + speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), + getParentForChildren(), + isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_; + private long requestId_ ; /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; - * * @return The requestId. */ @java.lang.Override @@ -2229,35 +1964,29 @@ public long getRequestId() { return requestId_; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; - * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -2266,9 +1995,9 @@ public Builder clearRequestId() { 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); } @@ -2278,12 +2007,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(); } @@ -2292,27 +2021,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2327,4 +2056,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java similarity index 85% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java index d047556c57ee..d6bf3c6b1c3f 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/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.
@@ -194,32 +146,24 @@ public interface StreamingRecognizeResponseOrBuilder
   com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** - * - * *
    * Provides information on adaptation behavior in response
    * 
@@ -229,15 +173,12 @@ public interface StreamingRecognizeResponseOrBuilder com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 10; - * * @return The requestId. */ long getRequestId(); diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java index 54abd4a6031d..d06efc0da88b 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java @@ -1,81 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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; } - - 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; } @@ -91,28 +70,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
@@ -120,15 +95,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
@@ -136,7 +108,6 @@ public boolean hasGcsUri() {
    * 
* * string gcs_uri = 1; - * * @return The gcsUri. */ public java.lang.String getGcsUri() { @@ -147,7 +118,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; @@ -156,8 +128,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
@@ -165,17 +135,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; } @@ -186,7 +157,6 @@ public com.google.protobuf.ByteString getGcsUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,7 +168,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_); } @@ -222,18 +193,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: @@ -263,135 +234,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -402,9 +367,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 @@ -423,11 +388,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.TranscriptOutputConfig result = new com.google.cloud.speech.v1.TranscriptOutputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -446,39 +408,38 @@ private void buildPartialOneofs(com.google.cloud.speech.v1.TranscriptOutputConfi 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; @@ -486,20 +447,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.getUnknownFields()); onChanged(); @@ -527,20 +485,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - outputTypeCase_ = 1; - outputType_ = s; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + outputTypeCase_ = 1; + outputType_ = s; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -550,12 +506,12 @@ public Builder mergeFrom( } // finally 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() { @@ -568,8 +524,6 @@ public Builder clearOutputType() { private int bitField0_; /** - * - * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -577,7 +531,6 @@ public Builder clearOutputType() {
      * 
* * string gcs_uri = 1; - * * @return Whether the gcsUri field is set. */ @java.lang.Override @@ -585,8 +538,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
@@ -594,7 +545,6 @@ public boolean hasGcsUri() {
      * 
* * string gcs_uri = 1; - * * @return The gcsUri. */ @java.lang.Override @@ -604,7 +554,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; @@ -615,8 +566,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
@@ -624,18 +573,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; } @@ -645,8 +595,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
@@ -654,22 +602,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGcsUri( + java.lang.String value) { + if (value == null) { 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
@@ -677,7 +621,6 @@ public Builder setGcsUri(java.lang.String value) {
      * 
* * string gcs_uri = 1; - * * @return This builder for chaining. */ public Builder clearGcsUri() { @@ -689,8 +632,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
@@ -698,23 +639,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGcsUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { 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); } @@ -724,12 +663,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(); } @@ -738,27 +677,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -773,4 +712,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.TranscriptOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java similarity index 63% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java index c5255ae7500d..5ce9fd8335aa 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java index 5ae4e26d20f6..45faae6359d4 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java @@ -1,75 +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; } - - 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
@@ -82,10 +62,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 @@ -93,8 +70,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
@@ -107,21 +82,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
@@ -134,28 +102,21 @@ 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() { - return customClass_ == null - ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() : customClass_; } 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 @@ -163,14 +124,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 @@ -178,8 +136,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to be updated.
    * 
@@ -192,7 +148,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +159,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()); } @@ -221,10 +177,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,21 +192,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -275,135 +234,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +375,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 @@ -443,11 +396,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.UpdateCustomClassRequest result = new com.google.cloud.speech.v1.UpdateCustomClassRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -455,11 +405,14 @@ public com.google.cloud.speech.v1.UpdateCustomClassRequest buildPartial() { private void buildPartial0(com.google.cloud.speech.v1.UpdateCustomClassRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.customClass_ = - customClassBuilder_ == null ? customClass_ : customClassBuilder_.build(); + result.customClass_ = customClassBuilder_ == null + ? customClass_ + : customClassBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -467,39 +420,38 @@ private void buildPartial0(com.google.cloud.speech.v1.UpdateCustomClassRequest r 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; @@ -507,8 +459,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()); } @@ -541,25 +492,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCustomClassFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -569,18 +521,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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
@@ -593,18 +539,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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -617,24 +558,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
@@ -647,9 +581,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) { @@ -665,8 +597,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
@@ -679,11 +609,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(); } else { @@ -694,8 +623,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
@@ -708,15 +635,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 (((bitField0_ & 0x00000001) != 0) - && customClass_ != null - && customClass_ != com.google.cloud.speech.v1.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + customClass_ != null && + customClass_ != com.google.cloud.speech.v1.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -729,8 +654,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
@@ -743,9 +666,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -758,8 +679,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
@@ -772,9 +691,7 @@ 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() { bitField0_ |= 0x00000001; @@ -782,8 +699,6 @@ public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassBuilder() { return getCustomClassFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -796,22 +711,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
@@ -824,22 +734,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_; @@ -847,47 +752,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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.
      * 
@@ -908,15 +800,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(); } else { @@ -927,8 +818,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -937,9 +826,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -952,8 +841,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -971,8 +858,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -985,8 +870,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -997,14 +880,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.
      * 
@@ -1012,24 +892,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); } @@ -1039,12 +916,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(); } @@ -1053,27 +930,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1088,4 +965,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.UpdateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java similarity index 73% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java index 884d296e1688..502a36d4010f 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java index 4cd7329df193..d17c351c5f38 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java @@ -1,75 +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; } - - 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
@@ -82,10 +62,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 @@ -93,8 +70,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
@@ -107,21 +82,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
@@ -134,28 +102,21 @@ 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() { - return phraseSet_ == null - ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() : phraseSet_; } 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 @@ -163,14 +124,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 @@ -178,8 +136,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to be updated.
    * 
@@ -192,7 +148,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +159,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()); } @@ -221,10 +177,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,21 +192,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -275,135 +234,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +375,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 @@ -443,11 +396,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1.UpdatePhraseSetRequest result = new com.google.cloud.speech.v1.UpdatePhraseSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -455,10 +405,14 @@ public com.google.cloud.speech.v1.UpdatePhraseSetRequest buildPartial() { private void buildPartial0(com.google.cloud.speech.v1.UpdatePhraseSetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build(); + result.phraseSet_ = phraseSetBuilder_ == null + ? phraseSet_ + : phraseSetBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -466,39 +420,38 @@ private void buildPartial0(com.google.cloud.speech.v1.UpdatePhraseSetRequest res 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; @@ -506,8 +459,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()); } @@ -540,25 +492,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getPhraseSetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -568,18 +521,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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
@@ -592,18 +539,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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -616,24 +558,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
@@ -646,9 +581,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) { @@ -664,8 +597,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
@@ -678,11 +609,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(); } else { @@ -693,8 +623,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
@@ -707,15 +635,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 (((bitField0_ & 0x00000001) != 0) - && phraseSet_ != null - && phraseSet_ != com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + phraseSet_ != null && + phraseSet_ != com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -728,8 +654,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
@@ -742,9 +666,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -757,8 +679,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
@@ -771,9 +691,7 @@ 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() { bitField0_ |= 0x00000001; @@ -781,8 +699,6 @@ public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetBuilder() { return getPhraseSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -795,22 +711,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
@@ -823,22 +734,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_; @@ -846,47 +752,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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.
      * 
@@ -907,15 +800,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(); } else { @@ -926,8 +818,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -936,9 +826,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -951,8 +841,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -970,8 +858,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -984,8 +870,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -996,14 +880,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.
      * 
@@ -1011,24 +892,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); } @@ -1038,12 +916,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(); } @@ -1052,27 +930,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1087,4 +965,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.UpdatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java index f4b31a356377..1c70780af975 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java similarity index 76% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java index 5faee23db9dc..b0d7f6277e06 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java @@ -1,77 +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.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; } - - 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.
@@ -82,7 +61,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 @@ -90,8 +68,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.
@@ -102,7 +78,6 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Duration start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -110,8 +85,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.
@@ -131,8 +104,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.
@@ -143,7 +114,6 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -151,8 +121,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.
@@ -163,7 +131,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -171,8 +138,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.
@@ -190,18 +155,14 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
   }
 
   public static final int WORD_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object word_ = "";
   /**
-   *
-   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; - * * @return The word. */ @java.lang.Override @@ -210,29 +171,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 { @@ -243,8 +204,6 @@ public com.google.protobuf.ByteString getWordBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_ = 0F; /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -256,7 +215,6 @@ public com.google.protobuf.ByteString getWordBytes() {
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -267,8 +225,6 @@ public float getConfidence() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_ = 0; /** - * - * *
    * 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
@@ -278,7 +234,6 @@ public float getConfidence() {
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The speakerTag. */ @java.lang.Override @@ -287,7 +242,6 @@ public int getSpeakerTag() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -299,7 +253,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()); } @@ -325,19 +280,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -347,7 +306,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); @@ -356,16 +315,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -388,7 +352,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) + getUnknownFields().hashCode(); @@ -396,135 +361,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -546,9 +506,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 @@ -568,9 +528,7 @@ public com.google.cloud.speech.v1.WordInfo build() { @java.lang.Override public com.google.cloud.speech.v1.WordInfo buildPartial() { com.google.cloud.speech.v1.WordInfo result = new com.google.cloud.speech.v1.WordInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -578,10 +536,14 @@ public com.google.cloud.speech.v1.WordInfo buildPartial() { private void buildPartial0(com.google.cloud.speech.v1.WordInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.word_ = word_; @@ -598,39 +560,38 @@ private void buildPartial0(com.google.cloud.speech.v1.WordInfo result) { 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; @@ -682,43 +643,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - word_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 37: - { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000008; - break; - } // case 37 - case 40: - { - speakerTag_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + word_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 37: { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + case 40: { + speakerTag_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -728,18 +687,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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.
@@ -750,15 +703,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_time = 1; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -769,7 +719,6 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Duration start_time = 1; - * * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { @@ -780,8 +729,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.
@@ -807,8 +754,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.
@@ -820,7 +765,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();
       } else {
@@ -831,8 +777,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.
@@ -846,9 +790,9 @@ public Builder setStartTime(com.google.protobuf.Duration.Builder builderForValue
      */
     public Builder mergeStartTime(com.google.protobuf.Duration value) {
       if (startTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && startTime_ != null
-            && startTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          startTime_ != null &&
+          startTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getStartTimeBuilder().mergeFrom(value);
         } else {
           startTime_ = value;
@@ -861,8 +805,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.
@@ -885,8 +827,6 @@ public Builder clearStartTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -904,8 +844,6 @@ public com.google.protobuf.Duration.Builder getStartTimeBuilder() {
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -921,12 +859,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.
@@ -939,17 +876,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_;
@@ -957,13 +891,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.
@@ -974,15 +903,12 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Duration end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -993,7 +919,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Duration end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { @@ -1004,8 +929,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.
@@ -1031,8 +954,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.
@@ -1044,7 +965,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();
       } else {
@@ -1055,8 +977,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.
@@ -1070,9 +990,9 @@ public Builder setEndTime(com.google.protobuf.Duration.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Duration value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1085,8 +1005,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.
@@ -1109,8 +1027,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1128,8 +1044,6 @@ public com.google.protobuf.Duration.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1145,12 +1059,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.
@@ -1163,17 +1076,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_;
@@ -1181,20 +1091,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; @@ -1203,21 +1111,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 { @@ -1225,35 +1132,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWord( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } word_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @return This builder for chaining. */ public Builder clearWord() { @@ -1263,21 +1163,17 @@ public Builder clearWord() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); word_ = value; bitField0_ |= 0x00000004; @@ -1285,10 +1181,8 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) { 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
@@ -1300,7 +1194,6 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1308,8 +1201,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
@@ -1321,20 +1212,17 @@ public float getConfidence() {
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000008; 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
@@ -1346,7 +1234,6 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -1356,10 +1243,8 @@ public Builder clearConfidence() { 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
@@ -1369,7 +1254,6 @@ public Builder clearConfidence() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The speakerTag. */ @java.lang.Override @@ -1377,8 +1261,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
@@ -1388,20 +1270,17 @@ 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; bitField0_ |= 0x00000010; 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
@@ -1411,7 +1290,6 @@ public Builder setSpeakerTag(int value) {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSpeakerTag() { @@ -1420,9 +1298,9 @@ public Builder clearSpeakerTag() { 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); } @@ -1432,12 +1310,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(); } @@ -1446,27 +1324,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1481,4 +1359,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java similarity index 84% rename from java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java index 45ed38fc69e3..f8e889216201 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto similarity index 100% rename from java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto similarity index 97% rename from java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto index b0d60ab4a1dd..4a71e673ae66 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto @@ -34,7 +34,8 @@ option objc_class_prefix = "GCS"; // Service that implements Google Cloud Speech Adaptation API. service Adaptation { option (google.api.default_host) = "speech.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // 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 @@ -86,7 +87,8 @@ service Adaptation { post: "/v1/{parent=projects/*/locations/*}/customClasses" body: "*" }; - option (google.api.method_signature) = "parent,custom_class,custom_class_id"; + option (google.api.method_signature) = + "parent,custom_class,custom_class_id"; } // Get a custom class. @@ -98,7 +100,8 @@ service Adaptation { } // List custom classes. - rpc ListCustomClasses(ListCustomClassesRequest) returns (ListCustomClassesResponse) { + rpc ListCustomClasses(ListCustomClassesRequest) + returns (ListCustomClassesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/customClasses" }; @@ -115,7 +118,8 @@ service Adaptation { } // Delete a custom class. - rpc DeleteCustomClass(DeleteCustomClassRequest) returns (google.protobuf.Empty) { + rpc DeleteCustomClass(DeleteCustomClassRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/customClasses/*}" }; @@ -125,7 +129,8 @@ service Adaptation { // Message sent by the client for the `CreatePhraseSet` method. message CreatePhraseSetRequest { - // Required. The parent resource where this phrase set will be created. Format: + // Required. The parent resource where this phrase set will be created. + // Format: // // `projects/{project}/locations/{location}/phraseSets` // @@ -248,7 +253,8 @@ message DeletePhraseSetRequest { // Message sent by the client for the `CreateCustomClass` method. message CreateCustomClassRequest { - // Required. The parent resource where this custom class will be created. Format: + // Required. The parent resource where this custom class will be created. + // Format: // // `projects/{project}/locations/{location}/customClasses` // diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto similarity index 93% rename from java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto rename to owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto index 63b7ae4479ff..212794c75090 100644 --- a/java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto +++ b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto @@ -82,8 +82,8 @@ message PhraseSet { // Speech-to-Text supports three locations: `global`, `us` (US North America), // and `eu` (Europe). If you are calling the `speech.googleapis.com` // endpoint, use the `global` location. To specify a region, use a - // [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or - // `eu` location value. + // [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) + // with matching `us` or `eu` location value. message Phrase { // The phrase itself. string value = 1; @@ -95,8 +95,8 @@ message PhraseSet { // boost will simply be ignored. Though `boost` can accept a wide range of // positive values, most use cases are best served // with values between 0 and 20. We recommend using a binary search approach - // to finding the optimal value for your use case. Speech recognition - // will skip PhraseSets with a boost value of 0. + // to finding the optimal value for your use case as well as adding + // phrases both with and without boost to your requests. float boost = 2; } @@ -113,8 +113,8 @@ message PhraseSet { // enabled, so negative boost will simply be ignored. Though `boost` can // accept a wide range of positive values, most use cases are best served with // values between 0 (exclusive) and 20. We recommend using a binary search - // approach to finding the optimal value for your use case. Speech recognition - // will skip PhraseSets with a boost value of 0. + // approach to finding the optimal value for your use case as well as adding + // phrases both with and without boost to your requests. float boost = 4; } diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetEndpoint.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/AsyncCreateCustomClass.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/AsyncCreateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/AsyncCreateCustomClass.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/AsyncCreateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClass.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClass.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/AsyncCreatePhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/AsyncCreatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/AsyncCreatePhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/AsyncCreatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClass.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClass.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/AsyncDeletePhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/AsyncDeletePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/AsyncDeletePhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/AsyncDeletePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetString.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetString.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/AsyncGetCustomClass.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/AsyncGetCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/AsyncGetCustomClass.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/AsyncGetCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClass.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClass.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassString.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassString.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/AsyncGetPhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/AsyncGetPhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/AsyncGetPhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/AsyncGetPhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetString.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetString.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClasses.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClasses.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClasses.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClasses.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClasses.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClasses.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClasses.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClasses.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesString.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesString.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSetPaged.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSetPaged.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSetPaged.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSetPaged.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetLocationname.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetLocationname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetLocationname.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetLocationname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetString.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetString.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClass.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClass.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetEndpoint.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognize.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognize.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognize.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognize.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/AsyncRecognize.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/AsyncRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/AsyncRecognize.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/AsyncRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognize.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognize.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/streamingrecognize/AsyncStreamingRecognize.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/streamingrecognize/AsyncStreamingRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/streamingrecognize/AsyncStreamingRecognize.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/streamingrecognize/AsyncStreamingRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java b/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java rename to owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java index 12186ff69359..b92302cdf7ed 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java +++ b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java @@ -29,6 +29,7 @@ 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; diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java index a69615793095..b7cd843849ec 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java +++ b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java @@ -27,6 +27,7 @@ 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; diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java index 8875ab91afdd..526e244c2f61 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java +++ b/owl-bot-staging/java-speech/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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java index f59d35f28317..2d68d09a22f4 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java +++ b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java @@ -28,6 +28,7 @@ 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.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java b/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java rename to owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java b/owl-bot-staging/java-speech/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java new file mode 100644 index 000000000000..e41d203e7109 --- /dev/null +++ b/owl-bot-staging/java-speech/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/java-speech/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java b/owl-bot-staging/java-speech/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java new file mode 100644 index 000000000000..5879fdc4465f --- /dev/null +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java index 8b3100d35612..d83a8c206e8f 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java +++ b/owl-bot-staging/java-speech/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,39 +26,36 @@ 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
-   * Required. The parent resource where this custom class will be created. Format:
+   * Required. The parent resource where this custom class will be created.
+   * Format:
    * `projects/{project}/locations/{location}/customClasses`
    * Speech-to-Text supports three locations: `global`, `us` (US North America),
    * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -85,10 +64,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 @@ -97,17 +73,17 @@ 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:
+   * Required. The parent resource where this custom class will be created.
+   * Format:
    * `projects/{project}/locations/{location}/customClasses`
    * Speech-to-Text supports three locations: `global`, `us` (US North America),
    * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -116,18 +92,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 { @@ -136,12 +111,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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.
@@ -150,7 +122,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The customClassId. */ @java.lang.Override @@ -159,15 +130,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.
@@ -176,15 +146,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 { @@ -195,16 +166,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 @@ -212,44 +178,30 @@ 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() { - return customClass_ == null - ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -287,7 +240,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -297,19 +251,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -336,136 +292,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -481,9 +430,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 @@ -502,11 +451,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -520,8 +466,9 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CreateCustomClassRe result.customClassId_ = customClassId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.customClass_ = - customClassBuilder_ == null ? customClass_ : customClassBuilder_.build(); + result.customClass_ = customClassBuilder_ == null + ? customClass_ + : customClassBuilder_.build(); } } @@ -529,39 +476,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CreateCustomClassRe 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; @@ -569,8 +515,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_; bitField0_ |= 0x00000001; @@ -610,31 +555,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - customClassId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + customClassId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getCustomClassFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -644,15 +587,13 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
-     * Required. The parent resource where this custom class will be created. Format:
+     * Required. The parent resource where this custom class will be created.
+     * Format:
      * `projects/{project}/locations/{location}/customClasses`
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -661,16 +602,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; @@ -679,10 +618,9 @@ public java.lang.String getParent() { } } /** - * - * *
-     * Required. The parent resource where this custom class will be created. Format:
+     * Required. The parent resource where this custom class will be created.
+     * Format:
      * `projects/{project}/locations/{location}/customClasses`
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -691,17 +629,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 { @@ -709,10 +646,9 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
-     * Required. The parent resource where this custom class will be created. Format:
+     * Required. The parent resource where this custom class will be created.
+     * Format:
      * `projects/{project}/locations/{location}/customClasses`
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -721,27 +657,22 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
-     * Required. The parent resource where this custom class will be created. Format:
+     * Required. The parent resource where this custom class will be created.
+     * Format:
      * `projects/{project}/locations/{location}/customClasses`
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -750,10 +681,7 @@ 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() { @@ -763,10 +691,9 @@ public Builder clearParent() { return this; } /** - * - * *
-     * Required. The parent resource where this custom class will be created. Format:
+     * Required. The parent resource where this custom class will be created.
+     * Format:
      * `projects/{project}/locations/{location}/customClasses`
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -775,17 +702,13 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -795,8 +718,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.
@@ -805,13 +726,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; @@ -820,8 +741,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.
@@ -830,14 +749,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 { @@ -845,8 +765,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.
@@ -855,22 +773,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomClassId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } customClassId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -879,7 +793,6 @@ 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() { @@ -889,8 +802,6 @@ public Builder clearCustomClassId() { return this; } /** - * - * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -899,14 +810,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomClassIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customClassId_ = value; bitField0_ |= 0x00000002; @@ -916,58 +825,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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) { @@ -983,15 +873,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) { @@ -1005,21 +891,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 (((bitField0_ & 0x00000004) != 0) - && customClass_ != null - && customClass_ != com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + customClass_ != null && + customClass_ != com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -1032,15 +914,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1053,15 +931,11 @@ 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() { bitField0_ |= 0x00000004; @@ -1069,55 +943,43 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassBuild 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); } @@ -1127,12 +989,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(); } @@ -1141,27 +1003,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1176,4 +1038,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java similarity index 64% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java index 0562cbcf6cdd..c027e008393a 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java @@ -1,33 +1,16 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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:
+   * Required. The parent resource where this custom class will be created.
+   * Format:
    * `projects/{project}/locations/{location}/customClasses`
    * Speech-to-Text supports three locations: `global`, `us` (US North America),
    * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -36,18 +19,14 @@ 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:
+   * Required. The parent resource where this custom class will be created.
+   * Format:
    * `projects/{project}/locations/{location}/customClasses`
    * Speech-to-Text supports three locations: `global`, `us` (US North America),
    * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -56,17 +35,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 +50,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 +62,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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java index 39ce8dd20734..d9be2d584232 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java +++ b/owl-bot-staging/java-speech/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,39 +26,36 @@ 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
-   * Required. The parent resource where this phrase set will be created. Format:
+   * Required. The parent resource where this phrase set will be created.
+   * Format:
    * `projects/{project}/locations/{location}/phraseSets`
    * Speech-to-Text supports three locations: `global`, `us` (US North America),
    * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -85,10 +64,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 @@ -97,17 +73,17 @@ 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:
+   * Required. The parent resource where this phrase set will be created.
+   * Format:
    * `projects/{project}/locations/{location}/phraseSets`
    * Speech-to-Text supports three locations: `global`, `us` (US North America),
    * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -116,18 +92,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 { @@ -136,12 +111,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PHRASE_SET_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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.
@@ -150,7 +122,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The phraseSetId. */ @java.lang.Override @@ -159,15 +130,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.
@@ -176,15 +146,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 { @@ -195,16 +166,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 @@ -212,44 +178,30 @@ 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() { - return phraseSet_ == null - ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -287,7 +240,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -297,19 +251,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -336,136 +292,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -481,9 +430,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 @@ -502,11 +451,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -520,7 +466,9 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequ result.phraseSetId_ = phraseSetId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build(); + result.phraseSet_ = phraseSetBuilder_ == null + ? phraseSet_ + : phraseSetBuilder_.build(); } } @@ -528,39 +476,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequ 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; @@ -568,8 +515,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_; bitField0_ |= 0x00000001; @@ -609,31 +555,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - phraseSetId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + phraseSetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getPhraseSetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -643,15 +587,13 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
-     * Required. The parent resource where this phrase set will be created. Format:
+     * Required. The parent resource where this phrase set will be created.
+     * Format:
      * `projects/{project}/locations/{location}/phraseSets`
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -660,16 +602,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; @@ -678,10 +618,9 @@ public java.lang.String getParent() { } } /** - * - * *
-     * Required. The parent resource where this phrase set will be created. Format:
+     * Required. The parent resource where this phrase set will be created.
+     * Format:
      * `projects/{project}/locations/{location}/phraseSets`
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -690,17 +629,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 { @@ -708,10 +646,9 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
-     * Required. The parent resource where this phrase set will be created. Format:
+     * Required. The parent resource where this phrase set will be created.
+     * Format:
      * `projects/{project}/locations/{location}/phraseSets`
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -720,27 +657,22 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
-     * Required. The parent resource where this phrase set will be created. Format:
+     * Required. The parent resource where this phrase set will be created.
+     * Format:
      * `projects/{project}/locations/{location}/phraseSets`
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -749,10 +681,7 @@ 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() { @@ -762,10 +691,9 @@ public Builder clearParent() { return this; } /** - * - * *
-     * Required. The parent resource where this phrase set will be created. Format:
+     * Required. The parent resource where this phrase set will be created.
+     * Format:
      * `projects/{project}/locations/{location}/phraseSets`
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -774,17 +702,13 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -794,8 +718,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.
@@ -804,13 +726,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; @@ -819,8 +741,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.
@@ -829,14 +749,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 { @@ -844,8 +765,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.
@@ -854,22 +773,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhraseSetId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } phraseSetId_ = value; bitField0_ |= 0x00000002; 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.
@@ -878,7 +793,6 @@ 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() { @@ -888,8 +802,6 @@ public Builder clearPhraseSetId() { return this; } /** - * - * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -898,14 +810,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhraseSetIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); phraseSetId_ = value; bitField0_ |= 0x00000002; @@ -915,58 +825,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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) { @@ -982,15 +873,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) { @@ -1004,21 +891,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 (((bitField0_ & 0x00000004) != 0) - && phraseSet_ != null - && phraseSet_ != com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + phraseSet_ != null && + phraseSet_ != com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -1031,15 +914,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1052,15 +931,11 @@ 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() { bitField0_ |= 0x00000004; @@ -1068,55 +943,43 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetBuilder() 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); } @@ -1126,12 +989,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(); } @@ -1140,27 +1003,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1175,4 +1038,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java similarity index 64% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java index 4b4c85e4a32a..0cdb1bc03037 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java @@ -1,33 +1,16 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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:
+   * Required. The parent resource where this phrase set will be created.
+   * Format:
    * `projects/{project}/locations/{location}/phraseSets`
    * Speech-to-Text supports three locations: `global`, `us` (US North America),
    * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -36,18 +19,14 @@ 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:
+   * Required. The parent resource where this phrase set will be created.
+   * Format:
    * `projects/{project}/locations/{location}/phraseSets`
    * Speech-to-Text supports three locations: `global`, `us` (US North America),
    * and `eu` (Europe). If you are calling the `speech.googleapis.com`
@@ -56,17 +35,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 +50,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 +62,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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java index d064e986a5a3..c788eebef313 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java +++ b/owl-bot-staging/java-speech/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,122 +29,107 @@ 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;
   }
-
-  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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** - * - * *
      * The class item's value.
      * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -171,29 +138,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 { @@ -202,7 +169,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,7 +180,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_); } @@ -238,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.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,94 +233,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 @@ -363,41 +323,39 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -407,9 +365,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 @@ -428,11 +386,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem result = new com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -448,41 +403,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CustomClass.ClassIt 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; @@ -490,8 +442,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_; bitField0_ |= 0x00000001; @@ -523,19 +474,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -545,25 +494,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -572,21 +518,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 { @@ -594,35 +539,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -632,28 +570,23 @@ public Builder clearValue() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -666,12 +599,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(); } @@ -680,28 +613,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -716,21 +648,18 @@ 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name of the custom class.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -739,29 +668,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 { @@ -770,19 +699,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -791,30 +716,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 { @@ -823,12 +748,9 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() { } public static final int ITEMS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List items_; /** - * - * *
    * A collection of class items.
    * 
@@ -840,8 +762,6 @@ public java.util.List g return items_; } /** - * - * *
    * A collection of class items.
    * 
@@ -849,13 +769,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.
    * 
@@ -867,8 +785,6 @@ public int getItemsCount() { return items_.size(); } /** - * - * *
    * A collection of class items.
    * 
@@ -880,8 +796,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int inde return items_.get(index); } /** - * - * *
    * A collection of class items.
    * 
@@ -895,7 +809,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItems } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -907,7 +820,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_); } @@ -933,7 +847,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -943,17 +858,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -978,104 +895,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
@@ -1084,32 +994,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1127,9 +1038,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
@@ -1148,12 +1059,9 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1184,39 +1092,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CustomClass result)
     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;
@@ -1253,10 +1160,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            itemsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getItemsFieldBuilder()
-                    : null;
+            itemsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getItemsFieldBuilder() : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -1288,39 +1194,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                customClassId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.parser(),
-                        extensionRegistry);
-                if (itemsBuilder_ == null) {
-                  ensureItemsIsMutable();
-                  items_.add(m);
-                } else {
-                  itemsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              customClassId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.parser(),
+                      extensionRegistry);
+              if (itemsBuilder_ == null) {
+                ensureItemsIsMutable();
+                items_.add(m);
+              } else {
+                itemsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1330,25 +1232,22 @@ public Builder mergeFrom(
       } // finally
       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; @@ -1357,21 +1256,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 { @@ -1379,35 +1277,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1417,21 +1308,17 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1441,21 +1328,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; @@ -1464,22 +1349,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 { @@ -1487,37 +1371,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomClassId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } customClassId_ = value; bitField0_ |= 0x00000002; 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() { @@ -1527,22 +1404,18 @@ public Builder clearCustomClassId() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomClassIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customClassId_ = value; bitField0_ |= 0x00000002; @@ -1551,26 +1424,18 @@ public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { } private java.util.List items_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - items_ = - new java.util.ArrayList( - items_); + items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000004; - } + } } 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.
      * 
@@ -1585,8 +1450,6 @@ public java.util.List g } } /** - * - * *
      * A collection of class items.
      * 
@@ -1601,8 +1464,6 @@ public int getItemsCount() { } } /** - * - * *
      * A collection of class items.
      * 
@@ -1617,8 +1478,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int inde } } /** - * - * *
      * A collection of class items.
      * 
@@ -1640,8 +1499,6 @@ public Builder setItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1649,8 +1506,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()); @@ -1661,8 +1517,6 @@ public Builder setItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1683,8 +1537,6 @@ public Builder addItems(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1706,8 +1558,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1726,8 +1576,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1735,8 +1583,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()); @@ -1747,8 +1594,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1756,11 +1601,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); @@ -1768,8 +1613,6 @@ public Builder addAllItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1787,8 +1630,6 @@ public Builder clearItems() { return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1806,8 +1647,6 @@ public Builder removeItems(int index) { return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1819,8 +1658,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder getItemsB return getItemsFieldBuilder().getBuilder(index); } /** - * - * *
      * A collection of class items.
      * 
@@ -1830,23 +1667,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 { @@ -1854,8 +1687,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItems } } /** - * - * *
      * A collection of class items.
      * 
@@ -1863,12 +1694,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.
      * 
@@ -1877,43 +1706,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_ & 0x00000004) != 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_ & 0x00000004) != 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); } @@ -1923,12 +1746,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(); } @@ -1937,27 +1760,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1972,4 +1795,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java index 49436233656b..5a2383a9cef5 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java index 3b6a7835efad..bbb366cf504b 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java @@ -1,79 +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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -84,10 +62,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 @@ -96,15 +71,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}`
@@ -115,18 +89,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 { @@ -135,7 +108,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,7 +119,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_); } @@ -171,15 +144,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -199,136 +172,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -338,9 +304,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 @@ -359,11 +325,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -379,39 +342,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRe 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; @@ -419,8 +381,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_; bitField0_ |= 0x00000001; @@ -452,19 +413,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -474,13 +433,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -491,16 +447,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; @@ -509,8 +463,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -521,17 +473,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 { @@ -539,8 +490,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -551,25 +500,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -580,10 +523,7 @@ 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() { @@ -593,8 +533,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -605,26 +543,22 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -634,12 +568,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(); } @@ -648,27 +582,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -683,4 +617,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java similarity index 59% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java index 21121096eb41..477f46c0e2f8 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java similarity index 64% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java index b87312b547f8..07d9ddf94c18 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java @@ -1,88 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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; } - - 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; - @SuppressWarnings("serial") 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 @@ -91,32 +66,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 { @@ -125,7 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +109,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_); } @@ -161,15 +134,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,136 +162,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -328,9 +294,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 @@ -349,11 +315,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -369,39 +332,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequ 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; @@ -409,8 +371,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_; bitField0_ |= 0x00000001; @@ -442,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -464,28 +423,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -494,24 +448,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 { @@ -519,41 +470,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -563,33 +503,27 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -599,12 +533,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(); } @@ -613,27 +547,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,4 +582,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java new file mode 100644 index 000000000000..246c425ca97f --- /dev/null +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java similarity index 63% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java index 89016327b398..4ed77d987ed1 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java @@ -1,88 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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; } - - 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; - @SuppressWarnings("serial") 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 @@ -91,32 +66,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 { @@ -125,7 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +109,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_); } @@ -161,15 +134,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,136 +162,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -328,9 +294,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 @@ -349,11 +315,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.GetCustomClassRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -369,39 +332,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.GetCustomClassReque 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; @@ -409,8 +371,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_; bitField0_ |= 0x00000001; @@ -442,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -464,28 +423,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -494,24 +448,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 { @@ -519,41 +470,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -563,33 +503,27 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -599,12 +533,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(); } @@ -613,27 +547,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,4 +582,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java new file mode 100644 index 000000000000..721b97fda97f --- /dev/null +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java index ec9e420513d6..c5510a21f889 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java @@ -1,79 +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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -84,10 +62,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 @@ -96,15 +71,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}`
@@ -115,18 +89,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 { @@ -135,7 +108,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,7 +119,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_); } @@ -171,15 +144,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -199,136 +172,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -338,9 +304,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 @@ -359,11 +325,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -379,39 +342,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest 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; @@ -419,8 +381,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_; bitField0_ |= 0x00000001; @@ -452,19 +413,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -474,13 +433,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -491,16 +447,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; @@ -509,8 +463,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -521,17 +473,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 { @@ -539,8 +490,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -551,25 +500,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -580,10 +523,7 @@ 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() { @@ -593,8 +533,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -605,26 +543,22 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -634,12 +568,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(); } @@ -648,27 +582,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -683,4 +617,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java similarity index 59% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java index fb9fa55ec399..b5ad6ae0036f 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java index b866c124f727..0cec901e8359 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -85,10 +63,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 @@ -97,15 +72,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`
@@ -116,18 +90,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 { @@ -138,8 +111,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * 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
@@ -148,7 +119,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -157,12 +127,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -171,7 +138,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -180,15 +146,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.
@@ -197,15 +162,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 { @@ -214,7 +180,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,7 +191,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_); } @@ -249,7 +215,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_); @@ -262,17 +229,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -296,136 +265,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +399,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 @@ -458,11 +420,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest result = new com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -484,39 +443,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.ListCustomClassesRe 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; @@ -524,8 +482,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_; bitField0_ |= 0x00000001; @@ -565,31 +522,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -599,13 +552,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -616,16 +566,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; @@ -634,8 +582,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -646,17 +592,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 { @@ -664,8 +609,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -676,25 +619,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -705,10 +642,7 @@ 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() { @@ -718,8 +652,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -730,17 +662,13 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -748,10 +676,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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
@@ -760,7 +686,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -768,8 +693,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
@@ -778,20 +701,17 @@ 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; bitField0_ |= 0x00000002; 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
@@ -800,7 +720,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -812,8 +731,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.
@@ -822,13 +739,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; @@ -837,8 +754,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -847,14 +762,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 { @@ -862,8 +778,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -872,22 +786,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -896,7 +806,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -906,8 +815,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -916,23 +823,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -942,12 +847,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(); } @@ -956,27 +861,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -991,4 +896,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java index de9020900455..e83c2e601a5a 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java similarity index 73% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java index 76b2fb87583a..9cd1b9a7e0cd 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private java.util.List customClasses_; /** - * - * *
    * The custom classes.
    * 
@@ -86,8 +64,6 @@ public java.util.List getCustomCl return customClasses_; } /** - * - * *
    * The custom classes.
    * 
@@ -95,13 +71,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.
    * 
@@ -113,8 +87,6 @@ public int getCustomClassesCount() { return customClasses_.size(); } /** - * - * *
    * The custom classes.
    * 
@@ -126,8 +98,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index) return customClasses_.get(index); } /** - * - * *
    * The custom classes.
    * 
@@ -141,19 +111,15 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -162,30 +128,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 { @@ -194,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,7 +171,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)); } @@ -223,7 +189,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_); @@ -236,16 +203,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -269,136 +237,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -415,9 +376,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 @@ -436,18 +397,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse result) { if (customClassesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { customClasses_ = java.util.Collections.unmodifiableList(customClasses_); @@ -470,39 +427,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.ListCustomClassesRe 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; @@ -510,8 +466,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()) { @@ -530,10 +485,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_); } @@ -570,32 +524,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1p1beta1.CustomClass m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); - if (customClassesBuilder_ == null) { - ensureCustomClassesIsMutable(); - customClasses_.add(m); - } else { - customClassesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.speech.v1p1beta1.CustomClass m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.CustomClass.parser(), + extensionRegistry); + if (customClassesBuilder_ == null) { + ensureCustomClassesIsMutable(); + customClasses_.add(m); + } else { + customClassesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -605,29 +557,21 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -642,8 +586,6 @@ public java.util.List getCustomCl } } /** - * - * *
      * The custom classes.
      * 
@@ -658,8 +600,6 @@ public int getCustomClassesCount() { } } /** - * - * *
      * The custom classes.
      * 
@@ -674,8 +614,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index) } } /** - * - * *
      * The custom classes.
      * 
@@ -697,8 +635,6 @@ public Builder setCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -717,8 +653,6 @@ public Builder setCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -739,8 +673,6 @@ public Builder addCustomClasses(com.google.cloud.speech.v1p1beta1.CustomClass va return this; } /** - * - * *
      * The custom classes.
      * 
@@ -762,8 +694,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -782,8 +712,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -802,8 +730,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -814,7 +740,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); @@ -822,8 +749,6 @@ public Builder addAllCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -841,8 +766,6 @@ public Builder clearCustomClasses() { return this; } /** - * - * *
      * The custom classes.
      * 
@@ -860,8 +783,6 @@ public Builder removeCustomClasses(int index) { return this; } /** - * - * *
      * The custom classes.
      * 
@@ -873,8 +794,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassesBui return getCustomClassesFieldBuilder().getBuilder(index); } /** - * - * *
      * The custom classes.
      * 
@@ -884,22 +803,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 { @@ -907,8 +823,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr } } /** - * - * *
      * The custom classes.
      * 
@@ -916,12 +830,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.
      * 
@@ -930,34 +842,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(), @@ -969,21 +873,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; @@ -992,22 +894,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 { @@ -1015,37 +916,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1055,31 +949,27 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1089,12 +979,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(); } @@ -1103,27 +993,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1138,4 +1028,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java index ba426471df4a..bb845e9819e6 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java index ec356159bcab..79bf9654d1e9 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -85,10 +63,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 @@ -97,15 +72,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}`
@@ -116,18 +90,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 { @@ -138,8 +111,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * 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
@@ -148,7 +119,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -157,12 +127,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -171,7 +138,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -180,15 +146,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.
@@ -197,15 +162,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 { @@ -214,7 +180,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,7 +191,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_); } @@ -249,7 +215,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_); @@ -262,17 +229,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -296,136 +265,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +399,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 @@ -458,11 +420,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -484,39 +443,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.ListPhraseSetReques 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; @@ -524,8 +482,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_; bitField0_ |= 0x00000001; @@ -565,31 +522,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -599,13 +552,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -616,16 +566,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; @@ -634,8 +582,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -646,17 +592,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 { @@ -664,8 +609,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -676,25 +619,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -705,10 +642,7 @@ 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() { @@ -718,8 +652,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -730,17 +662,13 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -748,10 +676,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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
@@ -760,7 +686,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -768,8 +693,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
@@ -778,20 +701,17 @@ 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; bitField0_ |= 0x00000002; 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
@@ -800,7 +720,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -812,8 +731,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.
@@ -822,13 +739,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; @@ -837,8 +754,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -847,14 +762,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 { @@ -862,8 +778,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -872,22 +786,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -896,7 +806,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -906,8 +815,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -916,23 +823,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -942,12 +847,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(); } @@ -956,27 +861,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -991,4 +896,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java index 51f5352582e1..1f93fa365224 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java index 93c06391bea1..0450e2136200 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") private java.util.List phraseSets_; /** - * - * *
    * The phrase set.
    * 
@@ -86,8 +64,6 @@ public java.util.List getPhraseSets return phraseSets_; } /** - * - * *
    * The phrase set.
    * 
@@ -95,13 +71,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.
    * 
@@ -113,8 +87,6 @@ public int getPhraseSetsCount() { return phraseSets_.size(); } /** - * - * *
    * The phrase set.
    * 
@@ -126,8 +98,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** - * - * *
    * The phrase set.
    * 
@@ -135,24 +105,21 @@ 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; - @SuppressWarnings("serial") 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 @@ -161,30 +128,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 { @@ -193,7 +160,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +171,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)); } @@ -222,7 +189,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_); @@ -235,16 +203,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,136 +237,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +376,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 @@ -435,18 +397,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse result) { if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -469,39 +427,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.ListPhraseSetRespon 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; @@ -509,8 +466,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()) { @@ -529,10 +485,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_); } @@ -569,32 +524,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1p1beta1.PhraseSet m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); - if (phraseSetsBuilder_ == null) { - ensurePhraseSetsIsMutable(); - phraseSets_.add(m); - } else { - phraseSetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.speech.v1p1beta1.PhraseSet m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), + extensionRegistry); + if (phraseSetsBuilder_ == null) { + ensurePhraseSetsIsMutable(); + phraseSets_.add(m); + } else { + phraseSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -604,29 +557,21 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -641,8 +586,6 @@ public java.util.List getPhraseSets } } /** - * - * *
      * The phrase set.
      * 
@@ -657,8 +600,6 @@ public int getPhraseSetsCount() { } } /** - * - * *
      * The phrase set.
      * 
@@ -673,15 +614,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(); @@ -695,8 +635,6 @@ public Builder setPhraseSets(int index, com.google.cloud.speech.v1p1beta1.Phrase return this; } /** - * - * *
      * The phrase set.
      * 
@@ -715,8 +653,6 @@ public Builder setPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -737,15 +673,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(); @@ -759,8 +694,6 @@ public Builder addPhraseSets(int index, com.google.cloud.speech.v1p1beta1.Phrase return this; } /** - * - * *
      * The phrase set.
      * 
@@ -779,8 +712,6 @@ public Builder addPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -799,8 +730,6 @@ public Builder addPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -811,7 +740,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); @@ -819,8 +749,6 @@ public Builder addAllPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -838,8 +766,6 @@ public Builder clearPhraseSets() { return this; } /** - * - * *
      * The phrase set.
      * 
@@ -857,44 +783,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 { @@ -902,8 +823,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuild } } /** - * - * *
      * The phrase set.
      * 
@@ -911,48 +830,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_; @@ -960,21 +873,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; @@ -983,22 +894,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 { @@ -1006,37 +916,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1046,31 +949,27 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1080,12 +979,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(); } @@ -1094,27 +993,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1129,4 +1028,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java index 319d29f4fab5..7a24d1b77dc3 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java similarity index 66% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java index 67f5dbc14799..a8bf3abc718e 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java +++ b/owl-bot-staging/java-speech/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,58 +12,53 @@
  *
  * 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;
   }
-
-  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_ = 0;
   /**
-   *
-   *
    * 
    * 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 @@ -91,14 +69,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 @@ -106,14 +81,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 @@ -121,8 +93,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Time when the request was received.
    * 
@@ -137,14 +107,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 @@ -152,25 +119,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.
    * 
@@ -179,25 +139,19 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - return lastUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastUpdateTime_; + return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } public static final int URI_FIELD_NUMBER = 4; - @SuppressWarnings("serial") 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 @@ -206,30 +160,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 { @@ -240,16 +194,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 @@ -257,45 +206,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() { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -307,7 +241,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_); } @@ -333,19 +268,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -355,27 +294,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -410,104 +353,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
@@ -516,32 +451,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -567,14 +503,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();
     }
 
@@ -589,34 +524,34 @@ 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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result) {
+    private void buildPartial0(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.progressPercent_ = progressPercent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null
+            ? startTime_
+            : startTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.lastUpdateTime_ =
-            lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build();
+        result.lastUpdateTime_ = lastUpdateTimeBuilder_ == null
+            ? lastUpdateTime_
+            : lastUpdateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.uri_ = uri_;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.outputConfig_ =
-            outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
+        result.outputConfig_ = outputConfigBuilder_ == null
+            ? outputConfig_
+            : outputConfigBuilder_.build();
       }
     }
 
@@ -624,39 +559,38 @@ private void buildPartial0(
     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;
@@ -664,9 +598,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());
       }
@@ -710,43 +642,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                progressPercent_ = input.readInt32();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                uri_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              progressPercent_ = input.readInt32();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              input.readMessage(
+                  getStartTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getLastUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              uri_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getOutputConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -756,20 +688,16 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    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 @@ -777,35 +705,29 @@ 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; bitField0_ |= 0x00000001; 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() { @@ -817,33 +739,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -854,8 +767,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Time when the request was received.
      * 
@@ -876,15 +787,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(); } else { @@ -895,8 +805,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -905,9 +813,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -920,8 +828,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -939,8 +845,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -953,8 +857,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the request was received.
      * 
@@ -965,12 +867,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.
      * 
@@ -978,17 +879,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_; @@ -996,47 +894,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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.
      * 
@@ -1057,15 +942,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(); } else { @@ -1076,8 +960,6 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1086,9 +968,9 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && lastUpdateTime_ != null - && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + lastUpdateTime_ != null && + lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; @@ -1101,8 +983,6 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1120,8 +1000,6 @@ public Builder clearLastUpdateTime() { return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1134,8 +1012,6 @@ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { return getLastUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1146,14 +1022,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.
      * 
@@ -1161,17 +1034,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_; @@ -1179,21 +1049,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; @@ -1202,22 +1070,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 { @@ -1225,37 +1092,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000008; 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() { @@ -1265,22 +1125,18 @@ public Builder clearUri() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000008; @@ -1290,58 +1146,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 ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * 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) { @@ -1357,15 +1194,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) { @@ -1379,23 +1212,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 (((bitField0_ & 0x00000010) != 0) - && outputConfig_ != null - && outputConfig_ - != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + outputConfig_ != null && + outputConfig_ != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -1408,15 +1235,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() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1429,73 +1252,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() { bitField0_ |= 0x00000010; 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); } @@ -1505,43 +1310,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1553,8 +1356,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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java index 0016ab958fc5..2e4b54cbc0f0 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java similarity index 58% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java index 0ec03b1087c8..248cb8f11897 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java +++ b/owl-bot-staging/java-speech/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,58 +11,52 @@
  *
  * 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;
   }
-
-  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 @@ -87,57 +64,39 @@ 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() { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } 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 @@ -145,55 +104,37 @@ 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() { - return audio_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; } 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 @@ -201,45 +142,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() { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,7 +177,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()); } @@ -271,13 +198,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -287,25 +217,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -336,104 +268,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.
@@ -441,32 +365,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -490,14 +415,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();
     }
 
@@ -512,27 +436,28 @@ 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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result) {
+    private void buildPartial0(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
+        result.config_ = configBuilder_ == null
+            ? config_
+            : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.audio_ = audioBuilder_ == null ? audio_ : audioBuilder_.build();
+        result.audio_ = audioBuilder_ == null
+            ? audio_
+            : audioBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.outputConfig_ =
-            outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
+        result.outputConfig_ = outputConfigBuilder_ == null
+            ? outputConfig_
+            : outputConfigBuilder_.build();
       }
     }
 
@@ -540,39 +465,38 @@ private void buildPartial0(
     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;
@@ -580,9 +504,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());
       }
@@ -618,31 +540,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getAudioFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 34:
-              {
-                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getAudioFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 34: {
+              input.readMessage(
+                  getOutputConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -652,66 +576,46 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * 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) { @@ -727,16 +631,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) { @@ -750,23 +650,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 (((bitField0_ & 0x00000001) != 0) - && config_ != null - && config_ - != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + config_ != null && + config_ != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -779,16 +674,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -801,16 +692,12 @@ 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() { bitField0_ |= 0x00000001; @@ -818,50 +705,38 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuil 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_; @@ -869,58 +744,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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) { @@ -936,15 +792,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) { @@ -958,21 +810,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 (((bitField0_ & 0x00000002) != 0) - && audio_ != null - && audio_ != com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + audio_ != null && + audio_ != com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance()) { getAudioBuilder().mergeFrom(value); } else { audio_ = value; @@ -985,15 +833,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1006,15 +850,11 @@ 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() { bitField0_ |= 0x00000002; @@ -1022,48 +862,36 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder getAudioBuilde 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_; @@ -1071,58 +899,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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) { @@ -1138,15 +947,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) { @@ -1160,23 +965,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 (((bitField0_ & 0x00000004) != 0) - && outputConfig_ != null - && outputConfig_ - != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + outputConfig_ != null && + outputConfig_ != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -1189,15 +988,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1210,73 +1005,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() { bitField0_ |= 0x00000004; 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); } @@ -1286,13 +1063,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(); } @@ -1301,27 +1077,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1336,4 +1112,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java similarity index 51% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java index 02d21f70fe28..5a5a7bb3a28f 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java index 2af036458d8c..f91bf577e9df 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java +++ b/owl-bot-staging/java-speech/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,53 +14,48 @@
  *
  * 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -86,13 +64,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.
@@ -101,14 +76,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.
@@ -121,8 +93,6 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -135,8 +105,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.
@@ -153,14 +121,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 @@ -168,25 +133,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.
    * 
@@ -195,22 +153,17 @@ public com.google.protobuf.Duration getTotalBilledTime() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } 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 @@ -218,25 +171,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.
    * 
@@ -244,24 +190,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() { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } 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 @@ -269,14 +209,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 @@ -284,8 +221,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.
    * 
@@ -300,14 +235,11 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 8; private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_; /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -315,25 +247,18 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
@@ -341,25 +266,19 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptatio * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 9; private long requestId_ = 0L; /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 9; - * * @return The requestId. */ @java.lang.Override @@ -368,7 +287,6 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -380,7 +298,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)); } @@ -409,23 +328,28 @@ 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()); } if (speechAdaptationInfo_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSpeechAdaptationInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, requestId_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -435,32 +359,37 @@ 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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo() + .equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() != other.getRequestId()) return false; + if (getRequestId() + != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -493,111 +422,104 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } 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`
@@ -608,32 +530,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -670,14 +593,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();
     }
 
@@ -692,18 +614,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -715,26 +633,27 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    private void buildPartial0(
-        com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result) {
+    private void buildPartial0(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.totalBilledTime_ =
-            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
+            ? totalBilledTime_
+            : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.outputConfig_ =
-            outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
+        result.outputConfig_ = outputConfigBuilder_ == null
+            ? outputConfig_
+            : outputConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.outputError_ =
-            outputErrorBuilder_ == null ? outputError_ : outputErrorBuilder_.build();
+        result.outputError_ = outputErrorBuilder_ == null
+            ? outputError_
+            : outputErrorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.speechAdaptationInfo_ =
-            speechAdaptationInfoBuilder_ == null
-                ? speechAdaptationInfo_
-                : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
+            ? speechAdaptationInfo_
+            : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.requestId_ = requestId_;
@@ -745,39 +664,38 @@ private void buildPartial0(
     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;
@@ -785,9 +703,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()) {
@@ -806,10 +722,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_);
           }
@@ -856,58 +771,58 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18:
-              {
-                com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
-                        extensionRegistry);
-                if (resultsBuilder_ == null) {
-                  ensureResultsIsMutable();
-                  results_.add(m);
-                } else {
-                  resultsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-            case 50:
-              {
-                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getOutputErrorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(
-                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 66
-            case 72:
-              {
-                requestId_ = input.readInt64();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 72
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 18: {
+              com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
+                      extensionRegistry);
+              if (resultsBuilder_ == null) {
+                ensureResultsIsMutable();
+                results_.add(m);
+              } else {
+                resultsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getTotalBilledTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 26
+            case 50: {
+              input.readMessage(
+                  getOutputConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getOutputErrorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 66
+            case 72: {
+              requestId_ = input.readInt64();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 72
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -917,30 +832,21 @@ public Builder mergeFrom(
       } // finally
       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.
@@ -948,8 +854,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 {
@@ -957,8 +862,6 @@ private void ensureResultsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -974,8 +877,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -991,8 +892,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1015,8 +914,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1025,8 +922,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());
@@ -1037,8 +933,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1060,8 +954,6 @@ public Builder addResults(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRes
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1084,8 +976,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1105,8 +995,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1115,8 +1003,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());
@@ -1127,8 +1014,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1137,11 +1022,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);
@@ -1149,8 +1034,6 @@ public Builder addAllResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1169,8 +1052,6 @@ public Builder clearResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1189,8 +1070,6 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1203,8 +1082,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.
@@ -1215,14 +1092,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.
@@ -1230,9 +1104,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 {
@@ -1240,8 +1113,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1250,13 +1121,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.
@@ -1266,14 +1134,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.
@@ -1281,23 +1145,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_;
@@ -1305,47 +1166,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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.
      * 
@@ -1366,15 +1214,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(); } else { @@ -1385,8 +1232,6 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1395,9 +1240,9 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo */ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && totalBilledTime_ != null - && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + totalBilledTime_ != null && + totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getTotalBilledTimeBuilder().mergeFrom(value); } else { totalBilledTime_ = value; @@ -1410,8 +1255,6 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1429,8 +1272,6 @@ public Builder clearTotalBilledTime() { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1443,8 +1284,6 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { return getTotalBilledTimeFieldBuilder().getBuilder(); } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1455,14 +1294,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.
      * 
@@ -1470,17 +1306,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_; @@ -1488,47 +1321,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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.
      * 
@@ -1549,8 +1369,6 @@ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutpu return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1569,21 +1387,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 (((bitField0_ & 0x00000004) != 0) - && outputConfig_ != null - && outputConfig_ - != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + outputConfig_ != null && + outputConfig_ != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -1596,8 +1410,6 @@ public Builder mergeOutputConfig( return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1615,42 +1427,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() { bitField0_ |= 0x00000004; 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.
      * 
@@ -1658,17 +1461,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_; @@ -1676,31 +1476,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 ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * 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() { @@ -1711,8 +1504,6 @@ public com.google.rpc.Status getOutputError() { } } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1733,15 +1524,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(); } else { @@ -1752,8 +1542,6 @@ public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1762,9 +1550,9 @@ public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeOutputError(com.google.rpc.Status value) { if (outputErrorBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && outputError_ != null - && outputError_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + outputError_ != null && + outputError_ != com.google.rpc.Status.getDefaultInstance()) { getOutputErrorBuilder().mergeFrom(value); } else { outputError_ = value; @@ -1777,8 +1565,6 @@ public Builder mergeOutputError(com.google.rpc.Status value) { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1796,8 +1582,6 @@ public Builder clearOutputError() { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1810,8 +1594,6 @@ public com.google.rpc.Status.Builder getOutputErrorBuilder() { return getOutputErrorFieldBuilder().getBuilder(); } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1822,12 +1604,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.
      * 
@@ -1835,15 +1616,14 @@ 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_; @@ -1851,55 +1631,41 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> - speechAdaptationInfoBuilder_; + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_; /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public Builder setSpeechAdaptationInfo( - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1913,8 +1679,6 @@ public Builder setSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1933,21 +1697,17 @@ public Builder setSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public Builder mergeSpeechAdaptationInfo( - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && speechAdaptationInfo_ != null - && speechAdaptationInfo_ - != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + speechAdaptationInfo_ != null && + speechAdaptationInfo_ != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -1960,8 +1720,6 @@ public Builder mergeSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1979,42 +1737,33 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder - getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } } /** - * - * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -2022,33 +1771,27 @@ public Builder clearSpeechAdaptationInfo() { * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), getParentForChildren(), isClean()); + speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), + getParentForChildren(), + isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_; + private long requestId_ ; /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; - * * @return The requestId. */ @java.lang.Override @@ -2056,35 +1799,29 @@ public long getRequestId() { return requestId_; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; - * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -2093,9 +1830,9 @@ public Builder clearRequestId() { 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); } @@ -2105,43 +1842,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2153,8 +1888,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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java similarity index 83% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java index 62b75e4f97ee..76046b9abd9a 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/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.
    * 
@@ -186,51 +138,39 @@ public interface LongRunningRecognizeResponseOrBuilder com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder(); /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; - * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** - * - * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder(); + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 9; - * * @return The requestId. */ long getRequestId(); diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java similarity index 75% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java index 279e7c565016..b16b287a089e 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java +++ b/owl-bot-staging/java-speech/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,63 +27,54 @@ 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;
   }
-
-  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
@@ -115,14 +88,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
@@ -145,65 +115,59 @@ public interface PhraseOrBuilder
    * Speech-to-Text supports three locations: `global`, `us` (US North America),
    * and `eu` (Europe). If you are calling the `speech.googleapis.com`
    * endpoint, use the `global` location. To specify a region, use a
-   * [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or
-   * `eu` location value.
+   * [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
+   * with matching `us` or `eu` location value.
    * 
* * 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** - * - * *
      * The phrase itself.
      * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -212,29 +176,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 { @@ -245,8 +209,6 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_ = 0F; /** - * - * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -260,7 +222,6 @@ public com.google.protobuf.ByteString getValueBytes() {
      * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -269,7 +230,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -281,7 +241,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_); } @@ -301,7 +262,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -311,17 +273,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -336,100 +299,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) + getUnknownFields().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 @@ -439,8 +397,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
@@ -463,39 +419,39 @@ protected Builder newBuilderForType(
      * Speech-to-Text supports three locations: `global`, `us` (US North America),
      * and `eu` (Europe). If you are calling the `speech.googleapis.com`
      * endpoint, use the `global` location. To specify a region, use a
-     * [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or
-     * `eu` location value.
+     * [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
+     * with matching `us` or `eu` location value.
      * 
* * 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -506,9 +462,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 @@ -527,11 +483,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase result = new com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -550,41 +503,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase re 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; @@ -592,8 +542,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_; bitField0_ |= 0x00000001; @@ -628,25 +577,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: - { - boost_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + boost_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -656,25 +602,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -683,21 +626,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 { @@ -705,35 +647,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The phrase itself.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -743,21 +678,17 @@ public Builder clearValue() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; @@ -765,10 +696,8 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { 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
@@ -782,7 +711,6 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) {
        * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -790,8 +718,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
@@ -805,20 +731,17 @@ public float getBoost() {
        * 
* * float boost = 2; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000002; 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
@@ -832,7 +755,6 @@ public Builder setBoost(float value) {
        * 
* * float boost = 2; - * * @return This builder for chaining. */ public Builder clearBoost() { @@ -841,7 +763,6 @@ public Builder clearBoost() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -854,12 +775,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(); } @@ -868,28 +789,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -904,21 +824,18 @@ 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name of the phrase set.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -927,29 +844,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 { @@ -958,12 +875,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int PHRASES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List phrases_; /** - * - * *
    * A list of word and phrases.
    * 
@@ -975,8 +889,6 @@ public java.util.List getPhr return phrases_; } /** - * - * *
    * A list of word and phrases.
    * 
@@ -984,13 +896,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.
    * 
@@ -1002,8 +912,6 @@ public int getPhrasesCount() { return phrases_.size(); } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1015,8 +923,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getPhrases(int index) return phrases_.get(index); } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1032,8 +938,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB public static final int BOOST_FIELD_NUMBER = 4; private float boost_ = 0F; /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -1047,7 +951,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB
    * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -1056,7 +959,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1068,7 +970,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_); } @@ -1091,10 +994,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1104,18 +1009,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1134,110 +1041,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) + getUnknownFields().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.
@@ -1245,32 +1146,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1288,9 +1190,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
@@ -1309,12 +1211,9 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1345,39 +1244,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.PhraseSet result) {
     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;
@@ -1409,10 +1307,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            phrasesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPhrasesFieldBuilder()
-                    : null;
+            phrasesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPhrasesFieldBuilder() : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -1447,39 +1344,35 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.parser(),
-                        extensionRegistry);
-                if (phrasesBuilder_ == null) {
-                  ensurePhrasesIsMutable();
-                  phrases_.add(m);
-                } else {
-                  phrasesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 37:
-              {
-                boost_ = input.readFloat();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 37
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.parser(),
+                      extensionRegistry);
+              if (phrasesBuilder_ == null) {
+                ensurePhrasesIsMutable();
+                phrases_.add(m);
+              } else {
+                phrasesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 37: {
+              boost_ = input.readFloat();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 37
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1489,25 +1382,22 @@ public Builder mergeFrom(
       } // finally
       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; @@ -1516,21 +1406,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 { @@ -1538,35 +1427,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1576,21 +1458,17 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1599,25 +1477,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private java.util.List phrases_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - phrases_ = - new java.util.ArrayList(phrases_); + phrases_ = new java.util.ArrayList(phrases_); bitField0_ |= 0x00000002; - } + } } 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.
      * 
@@ -1632,8 +1503,6 @@ public java.util.List getPhr } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1648,8 +1517,6 @@ public int getPhrasesCount() { } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1664,15 +1531,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(); @@ -1686,8 +1552,6 @@ public Builder setPhrases(int index, com.google.cloud.speech.v1p1beta1.PhraseSet return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1706,8 +1570,6 @@ public Builder setPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1728,15 +1590,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(); @@ -1750,8 +1611,6 @@ public Builder addPhrases(int index, com.google.cloud.speech.v1p1beta1.PhraseSet return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1770,8 +1629,6 @@ public Builder addPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1790,8 +1647,6 @@ public Builder addPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1802,7 +1657,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); @@ -1810,8 +1666,6 @@ public Builder addAllPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1829,8 +1683,6 @@ public Builder clearPhrases() { return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1848,20 +1700,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.
      * 
@@ -1871,22 +1720,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 { @@ -1894,8 +1740,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1903,58 +1747,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_ & 0x00000002) != 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_ & 0x00000002) != 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
@@ -1968,7 +1803,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuil
      * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -1976,8 +1810,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
@@ -1991,20 +1823,17 @@ public float getBoost() {
      * 
* * float boost = 4; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000004; 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
@@ -2018,7 +1847,6 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; - * * @return This builder for chaining. */ public Builder clearBoost() { @@ -2027,9 +1855,9 @@ public Builder clearBoost() { 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); } @@ -2039,12 +1867,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(); } @@ -2053,27 +1881,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2088,4 +1916,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java similarity index 74% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java index 91b548072ad2..a61fb229f984 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java similarity index 73% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java index 651bcd221d10..817d05c5e700 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java +++ b/owl-bot-staging/java-speech/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,56 +13,52 @@
  *
  * 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;
   }
-
-  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;
     }
@@ -95,30 +74,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
@@ -126,7 +100,6 @@ public AudioSourceCase getAudioSourceCase() {
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ @java.lang.Override @@ -134,8 +107,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
@@ -143,7 +114,6 @@ public boolean hasContent() {
    * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -156,8 +126,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).
@@ -169,15 +137,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).
@@ -189,7 +154,6 @@ public boolean hasUri() {
    * 
* * string uri = 2; - * * @return The uri. */ public java.lang.String getUri() { @@ -200,7 +164,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; @@ -209,8 +174,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).
@@ -222,17 +185,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; } @@ -243,7 +207,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,9 +218,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_); @@ -272,9 +237,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_); @@ -287,21 +252,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: @@ -335,103 +301,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
@@ -441,32 +400,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -477,9 +437,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
@@ -498,11 +458,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v1p1beta1.RecognitionAudio result = new com.google.cloud.speech.v1p1beta1.RecognitionAudio(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -521,39 +478,38 @@ private void buildPartialOneofs(com.google.cloud.speech.v1p1beta1.RecognitionAud
     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;
@@ -561,25 +517,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.getUnknownFields());
       onChanged();
@@ -607,26 +559,23 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                audioSource_ = input.readBytes();
-                audioSourceCase_ = 1;
-                break;
-              } // case 10
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                audioSourceCase_ = 2;
-                audioSource_ = s;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              audioSource_ = input.readBytes();
+              audioSourceCase_ = 1;
+              break;
+            } // case 10
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
+              audioSourceCase_ = 2;
+              audioSource_ = s;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -636,12 +585,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -654,8 +603,6 @@ public Builder clearAudioSource() {
     private int bitField0_;
 
     /**
-     *
-     *
      * 
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -663,15 +610,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
@@ -679,7 +623,6 @@ public boolean hasContent() {
      * 
* * bytes content = 1; - * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -689,8 +632,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
@@ -698,22 +639,17 @@ 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(); - } + if (value == null) { 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
@@ -721,7 +657,6 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -734,8 +669,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).
@@ -747,7 +680,6 @@ public Builder clearContent() {
      * 
* * string uri = 2; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -755,8 +687,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).
@@ -768,7 +698,6 @@ public boolean hasUri() {
      * 
* * string uri = 2; - * * @return The uri. */ @java.lang.Override @@ -778,7 +707,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; @@ -789,8 +719,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).
@@ -802,18 +730,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; } @@ -823,8 +752,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).
@@ -836,22 +763,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { 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).
@@ -863,7 +786,6 @@ public Builder setUri(java.lang.String value) {
      * 
* * string uri = 2; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -875,8 +797,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).
@@ -888,23 +808,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { 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); } @@ -914,12 +832,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(); } @@ -928,27 +846,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -963,4 +881,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionAudio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java similarity index 79% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java index 37850c3d9f62..6127a94e206c 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java similarity index 82% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java index 88f75ac38043..8f11f30e7c05 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java +++ b/owl-bot-staging/java-speech/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,33 +30,30 @@ 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;
   }
-
-  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
@@ -100,10 +79,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.
      * 
@@ -112,8 +90,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ ENCODING_UNSPECIFIED(0), /** - * - * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -122,8 +98,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ LINEAR16(1), /** - * - * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -137,8 +111,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.
      * 
@@ -147,8 +119,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ MULAW(3), /** - * - * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -157,8 +127,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ AMR(4), /** - * - * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -167,8 +135,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)).
@@ -179,8 +145,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
@@ -201,8 +165,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
@@ -214,8 +176,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
@@ -229,8 +189,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -239,8 +197,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).
      * 
@@ -249,8 +205,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
@@ -264,8 +218,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.
      * 
@@ -274,8 +226,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.
      * 
@@ -284,8 +234,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.
      * 
@@ -294,8 +242,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)).
@@ -306,8 +252,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
@@ -328,8 +272,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
@@ -341,8 +283,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
@@ -353,6 +293,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(
@@ -377,65 +318,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;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+        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() {
       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;
@@ -455,8 +387,6 @@ private AudioEncoding(int value) {
   public static final int ENCODING_FIELD_NUMBER = 1;
   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
@@ -464,16 +394,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
@@ -481,23 +407,16 @@ 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() { - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.forNumber(encoding_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding() { + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.forNumber(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_ = 0; /** - * - * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -509,7 +428,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEnco
    * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -520,8 +438,6 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 7; private int audioChannelCount_ = 0; /** - * - * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -534,7 +450,6 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 7; - * * @return The audioChannelCount. */ @java.lang.Override @@ -545,8 +460,6 @@ public int getAudioChannelCount() { public static final int ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER = 12; private boolean enableSeparateRecognitionPerChannel_ = false; /** - * - * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -557,7 +470,6 @@ public int getAudioChannelCount() {
    * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -566,12 +478,9 @@ public boolean getEnableSeparateRecognitionPerChannel() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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.
@@ -582,7 +491,6 @@ public boolean getEnableSeparateRecognitionPerChannel() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The languageCode. */ @java.lang.Override @@ -591,15 +499,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.
@@ -610,15 +517,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 { @@ -627,12 +535,9 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } public static final int ALTERNATIVE_LANGUAGE_CODES_FIELD_NUMBER = 18; - @SuppressWarnings("serial") 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,
@@ -649,15 +554,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,
@@ -674,15 +577,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,
@@ -699,7 +599,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. */ @@ -707,8 +606,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,
@@ -725,19 +622,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_ = 0; /** - * - * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -748,7 +643,6 @@ public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index
    * 
* * int32 max_alternatives = 4; - * * @return The maxAlternatives. */ @java.lang.Override @@ -759,8 +653,6 @@ public int getMaxAlternatives() { public static final int PROFANITY_FILTER_FIELD_NUMBER = 5; private boolean profanityFilter_ = false; /** - * - * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -769,7 +661,6 @@ public int getMaxAlternatives() {
    * 
* * bool profanity_filter = 5; - * * @return The profanityFilter. */ @java.lang.Override @@ -780,8 +671,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
@@ -791,7 +680,6 @@ public boolean getProfanityFilter() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; - * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -799,8 +687,6 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -810,18 +696,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
@@ -834,16 +715,12 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation getAdaptation() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptationOrBuilder() {
-    return adaptation_ == null
-        ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance()
-        : adaptation_;
+    return adaptation_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance() : adaptation_;
   }
 
   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
@@ -851,9 +728,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 @@ -861,8 +736,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
@@ -870,20 +743,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
@@ -891,24 +758,17 @@ 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() { - return transcriptNormalization_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance() - : transcriptNormalization_; + public com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder getTranscriptNormalizationOrBuilder() { + return transcriptNormalization_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance() : transcriptNormalization_; } public static final int SPEECH_CONTEXTS_FIELD_NUMBER = 6; - @SuppressWarnings("serial") 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
@@ -924,8 +784,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
@@ -937,13 +795,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
@@ -959,8 +815,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
@@ -976,8 +830,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
@@ -997,8 +849,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
   public static final int ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER = 8;
   private boolean enableWordTimeOffsets_ = false;
   /**
-   *
-   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -1007,7 +857,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
    * 
* * bool enable_word_time_offsets = 8; - * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -1018,8 +867,6 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 15; private boolean enableWordConfidence_ = false; /** - * - * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -1027,7 +874,6 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 15; - * * @return The enableWordConfidence. */ @java.lang.Override @@ -1038,8 +884,6 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 11; private boolean enableAutomaticPunctuation_ = false; /** - * - * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -1048,7 +892,6 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 11; - * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -1059,8 +902,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
@@ -1072,7 +913,6 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return Whether the enableSpokenPunctuation field is set. */ @java.lang.Override @@ -1080,8 +920,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
@@ -1093,18 +931,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
@@ -1119,16 +952,12 @@ public com.google.protobuf.BoolValue getEnableSpokenPunctuation() {
    */
   @java.lang.Override
   public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilder() {
-    return enableSpokenPunctuation_ == null
-        ? com.google.protobuf.BoolValue.getDefaultInstance()
-        : enableSpokenPunctuation_;
+    return enableSpokenPunctuation_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenPunctuation_;
   }
 
   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
@@ -1138,7 +967,6 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return Whether the enableSpokenEmojis field is set. */ @java.lang.Override @@ -1146,8 +974,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
@@ -1157,18 +983,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
@@ -1181,16 +1002,12 @@ public com.google.protobuf.BoolValue getEnableSpokenEmojis() {
    */
   @java.lang.Override
   public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
-    return enableSpokenEmojis_ == null
-        ? com.google.protobuf.BoolValue.getDefaultInstance()
-        : enableSpokenEmojis_;
+    return enableSpokenEmojis_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenEmojis_;
   }
 
   public static final int ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER = 16;
   private boolean enableSpeakerDiarization_ = false;
   /**
-   *
-   *
    * 
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -1199,22 +1016,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=377 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=377 * @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_ = 0; /** - * - * *
    * If set, specifies the estimated number of speakers in the conversation.
    * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -1222,22 +1035,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=382 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=382 * @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.
@@ -1250,7 +1059,6 @@ public int getDiarizationSpeakerCount() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19; - * * @return Whether the diarizationConfig field is set. */ @java.lang.Override @@ -1258,8 +1066,6 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** - * - * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1272,18 +1078,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.
@@ -1298,24 +1099,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() {
-    return diarizationConfig_ == null
-        ? com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance()
-        : diarizationConfig_;
+  public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
+    return diarizationConfig_ == null ? com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_;
   }
 
   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 @@ -1323,25 +1118,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.
    * 
@@ -1350,18 +1138,13 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata getMetadata() { */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadataOrBuilder() { - return metadata_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() : metadata_; } public static final int MODEL_FIELD_NUMBER = 13; - @SuppressWarnings("serial") 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
@@ -1417,7 +1200,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat
    * 
* * string model = 13; - * * @return The model. */ @java.lang.Override @@ -1426,15 +1208,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
@@ -1490,15 +1271,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 { @@ -1509,8 +1291,6 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int USE_ENHANCED_FIELD_NUMBER = 14; private boolean useEnhanced_ = false; /** - * - * *
    * 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
@@ -1522,7 +1302,6 @@ public com.google.protobuf.ByteString getModelBytes() {
    * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ @java.lang.Override @@ -1531,7 +1310,6 @@ public boolean getUseEnhanced() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1543,10 +1321,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) { @@ -1595,8 +1372,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()); @@ -1622,58 +1398,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; @@ -1684,23 +1469,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1710,56 +1496,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1778,9 +1582,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) { @@ -1790,7 +1593,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(); @@ -1804,11 +1608,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(); @@ -1818,7 +1625,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()) { @@ -1832,110 +1640,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) + getUnknownFields().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.
@@ -1943,32 +1745,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2030,9 +1833,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
@@ -2051,18 +1854,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v1p1beta1.RecognitionConfig result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.RecognitionConfig result) {
       if (((bitField0_ & 0x00000020) != 0)) {
         alternativeLanguageCodes_ = alternativeLanguageCodes_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000020);
@@ -2103,13 +1902,14 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognitionConfig r
         result.profanityFilter_ = profanityFilter_;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.adaptation_ = adaptationBuilder_ == null ? adaptation_ : adaptationBuilder_.build();
+        result.adaptation_ = adaptationBuilder_ == null
+            ? adaptation_
+            : adaptationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.transcriptNormalization_ =
-            transcriptNormalizationBuilder_ == null
-                ? transcriptNormalization_
-                : transcriptNormalizationBuilder_.build();
+        result.transcriptNormalization_ = transcriptNormalizationBuilder_ == null
+            ? transcriptNormalization_
+            : transcriptNormalizationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
         result.enableWordTimeOffsets_ = enableWordTimeOffsets_;
@@ -2121,16 +1921,14 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognitionConfig r
         result.enableAutomaticPunctuation_ = enableAutomaticPunctuation_;
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.enableSpokenPunctuation_ =
-            enableSpokenPunctuationBuilder_ == null
-                ? enableSpokenPunctuation_
-                : enableSpokenPunctuationBuilder_.build();
+        result.enableSpokenPunctuation_ = enableSpokenPunctuationBuilder_ == null
+            ? enableSpokenPunctuation_
+            : enableSpokenPunctuationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.enableSpokenEmojis_ =
-            enableSpokenEmojisBuilder_ == null
-                ? enableSpokenEmojis_
-                : enableSpokenEmojisBuilder_.build();
+        result.enableSpokenEmojis_ = enableSpokenEmojisBuilder_ == null
+            ? enableSpokenEmojis_
+            : enableSpokenEmojisBuilder_.build();
       }
       if (((from_bitField0_ & 0x00010000) != 0)) {
         result.enableSpeakerDiarization_ = enableSpeakerDiarization_;
@@ -2139,13 +1937,14 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognitionConfig r
         result.diarizationSpeakerCount_ = diarizationSpeakerCount_;
       }
       if (((from_bitField0_ & 0x00040000) != 0)) {
-        result.diarizationConfig_ =
-            diarizationConfigBuilder_ == null
-                ? diarizationConfig_
-                : diarizationConfigBuilder_.build();
+        result.diarizationConfig_ = diarizationConfigBuilder_ == null
+            ? diarizationConfig_
+            : diarizationConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00080000) != 0)) {
-        result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
+        result.metadata_ = metadataBuilder_ == null
+            ? metadata_
+            : metadataBuilder_.build();
       }
       if (((from_bitField0_ & 0x00100000) != 0)) {
         result.model_ = model_;
@@ -2159,39 +1958,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognitionConfig r
     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;
@@ -2199,8 +1997,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());
       }
@@ -2258,10 +2055,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognitionConfig oth
             speechContextsBuilder_ = null;
             speechContexts_ = other.speechContexts_;
             bitField0_ = (bitField0_ & ~0x00000400);
-            speechContextsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getSpeechContextsFieldBuilder()
-                    : null;
+            speechContextsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getSpeechContextsFieldBuilder() : null;
           } else {
             speechContextsBuilder_.addAllMessages(other.speechContexts_);
           }
@@ -2328,158 +2124,143 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                encoding_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 16:
-              {
-                sampleRateHertz_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                languageCode_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 26
-            case 32:
-              {
-                maxAlternatives_ = input.readInt32();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 32
-            case 40:
-              {
-                profanityFilter_ = input.readBool();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 40
-            case 50:
-              {
-                com.google.cloud.speech.v1p1beta1.SpeechContext m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1p1beta1.SpeechContext.parser(),
-                        extensionRegistry);
-                if (speechContextsBuilder_ == null) {
-                  ensureSpeechContextsIsMutable();
-                  speechContexts_.add(m);
-                } else {
-                  speechContextsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 50
-            case 56:
-              {
-                audioChannelCount_ = input.readInt32();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 56
-            case 64:
-              {
-                enableWordTimeOffsets_ = input.readBool();
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 64
-            case 74:
-              {
-                input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00080000;
-                break;
-              } // case 74
-            case 88:
-              {
-                enableAutomaticPunctuation_ = input.readBool();
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 88
-            case 96:
-              {
-                enableSeparateRecognitionPerChannel_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 96
-            case 106:
-              {
-                model_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00100000;
-                break;
-              } // case 106
-            case 112:
-              {
-                useEnhanced_ = input.readBool();
-                bitField0_ |= 0x00200000;
-                break;
-              } // case 112
-            case 120:
-              {
-                enableWordConfidence_ = input.readBool();
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 120
-            case 128:
-              {
-                enableSpeakerDiarization_ = input.readBool();
-                bitField0_ |= 0x00010000;
-                break;
-              } // case 128
-            case 136:
-              {
-                diarizationSpeakerCount_ = input.readInt32();
-                bitField0_ |= 0x00020000;
-                break;
-              } // case 136
-            case 146:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureAlternativeLanguageCodesIsMutable();
-                alternativeLanguageCodes_.add(s);
-                break;
-              } // case 146
-            case 154:
-              {
-                input.readMessage(
-                    getDiarizationConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00040000;
-                break;
-              } // case 154
-            case 162:
-              {
-                input.readMessage(getAdaptationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 162
-            case 178:
-              {
-                input.readMessage(
-                    getEnableSpokenPunctuationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00004000;
-                break;
-              } // case 178
-            case 186:
-              {
-                input.readMessage(
-                    getEnableSpokenEmojisFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00008000;
-                break;
-              } // case 186
-            case 194:
-              {
-                input.readMessage(
-                    getTranscriptNormalizationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 194
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              encoding_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 16: {
+              sampleRateHertz_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              languageCode_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 26
+            case 32: {
+              maxAlternatives_ = input.readInt32();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 32
+            case 40: {
+              profanityFilter_ = input.readBool();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 40
+            case 50: {
+              com.google.cloud.speech.v1p1beta1.SpeechContext m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechContext.parser(),
+                      extensionRegistry);
+              if (speechContextsBuilder_ == null) {
+                ensureSpeechContextsIsMutable();
+                speechContexts_.add(m);
+              } else {
+                speechContextsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 50
+            case 56: {
+              audioChannelCount_ = input.readInt32();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 56
+            case 64: {
+              enableWordTimeOffsets_ = input.readBool();
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 64
+            case 74: {
+              input.readMessage(
+                  getMetadataFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00080000;
+              break;
+            } // case 74
+            case 88: {
+              enableAutomaticPunctuation_ = input.readBool();
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 88
+            case 96: {
+              enableSeparateRecognitionPerChannel_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 96
+            case 106: {
+              model_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00100000;
+              break;
+            } // case 106
+            case 112: {
+              useEnhanced_ = input.readBool();
+              bitField0_ |= 0x00200000;
+              break;
+            } // case 112
+            case 120: {
+              enableWordConfidence_ = input.readBool();
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 120
+            case 128: {
+              enableSpeakerDiarization_ = input.readBool();
+              bitField0_ |= 0x00010000;
+              break;
+            } // case 128
+            case 136: {
+              diarizationSpeakerCount_ = input.readInt32();
+              bitField0_ |= 0x00020000;
+              break;
+            } // case 136
+            case 146: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureAlternativeLanguageCodesIsMutable();
+              alternativeLanguageCodes_.add(s);
+              break;
+            } // case 146
+            case 154: {
+              input.readMessage(
+                  getDiarizationConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00040000;
+              break;
+            } // case 154
+            case 162: {
+              input.readMessage(
+                  getAdaptationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 162
+            case 178: {
+              input.readMessage(
+                  getEnableSpokenPunctuationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00004000;
+              break;
+            } // case 178
+            case 186: {
+              input.readMessage(
+                  getEnableSpokenEmojisFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00008000;
+              break;
+            } // case 186
+            case 194: {
+              input.readMessage(
+                  getTranscriptNormalizationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 194
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2489,13 +2270,10 @@ public Builder mergeFrom(
       } // finally
       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
@@ -2503,16 +2281,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
@@ -2520,7 +2294,6 @@ 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. */ @@ -2531,8 +2304,6 @@ public Builder setEncodingValue(int value) { return this; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2540,20 +2311,14 @@ 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() { - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.forNumber(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.forNumber(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
@@ -2561,12 +2326,10 @@ 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(); } @@ -2576,8 +2339,6 @@ public Builder setEncoding( return this; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2585,7 +2346,6 @@ public Builder setEncoding(
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return This builder for chaining. */ public Builder clearEncoding() { @@ -2595,10 +2355,8 @@ public Builder clearEncoding() { 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.
@@ -2610,7 +2368,6 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -2618,8 +2375,6 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** - * - * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2631,20 +2386,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2656,7 +2408,6 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; - * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { @@ -2666,10 +2417,8 @@ public Builder clearSampleRateHertz() { return this; } - private int audioChannelCount_; + private int audioChannelCount_ ; /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2682,7 +2431,6 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 7; - * * @return The audioChannelCount. */ @java.lang.Override @@ -2690,8 +2438,6 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2704,20 +2450,17 @@ 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2730,7 +2473,6 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 7; - * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { @@ -2740,10 +2482,8 @@ public Builder clearAudioChannelCount() { 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
@@ -2754,7 +2494,6 @@ public Builder clearAudioChannelCount() {
      * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -2762,8 +2501,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
@@ -2774,20 +2511,17 @@ 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; bitField0_ |= 0x00000008; 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
@@ -2798,7 +2532,6 @@ public Builder setEnableSeparateRecognitionPerChannel(boolean value) {
      * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return This builder for chaining. */ public Builder clearEnableSeparateRecognitionPerChannel() { @@ -2810,8 +2543,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.
@@ -2822,13 +2553,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; @@ -2837,8 +2568,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.
@@ -2849,14 +2578,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 { @@ -2864,8 +2594,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.
@@ -2876,22 +2604,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000010; 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.
@@ -2902,7 +2626,6 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -2912,8 +2635,6 @@ public Builder clearLanguageCode() { return this; } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2924,14 +2645,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000010; @@ -2939,19 +2658,14 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { 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_ & 0x00000020) != 0)) { - alternativeLanguageCodes_ = - new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); + alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); bitField0_ |= 0x00000020; - } + } } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2968,15 +2682,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,
@@ -2993,15 +2705,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,
@@ -3018,7 +2727,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. */ @@ -3026,8 +2734,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,
@@ -3044,16 +2750,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,
@@ -3070,23 +2774,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAlternativeLanguageCodes( + int index, java.lang.String value) { + if (value == null) { 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,
@@ -3103,22 +2803,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAlternativeLanguageCodes( + java.lang.String value) { + if (value == null) { 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,
@@ -3135,19 +2831,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,
@@ -3164,7 +2859,6 @@ public Builder addAllAlternativeLanguageCodes(java.lang.Iterable
      *
      * repeated string alternative_language_codes = 18;
-     *
      * @return This builder for chaining.
      */
     public Builder clearAlternativeLanguageCodes() {
@@ -3174,8 +2868,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,
@@ -3192,14 +2884,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAlternativeLanguageCodesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); @@ -3207,10 +2897,8 @@ public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString v return this; } - private int maxAlternatives_; + private int maxAlternatives_ ; /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3221,7 +2909,6 @@ public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString v
      * 
* * int32 max_alternatives = 4; - * * @return The maxAlternatives. */ @java.lang.Override @@ -3229,8 +2916,6 @@ public int getMaxAlternatives() { return maxAlternatives_; } /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3241,20 +2926,17 @@ 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3265,7 +2947,6 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 4; - * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { @@ -3275,10 +2956,8 @@ public Builder clearMaxAlternatives() { 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
@@ -3287,7 +2966,6 @@ public Builder clearMaxAlternatives() {
      * 
* * bool profanity_filter = 5; - * * @return The profanityFilter. */ @java.lang.Override @@ -3295,8 +2973,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
@@ -3305,20 +2981,17 @@ 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; bitField0_ |= 0x00000080; 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
@@ -3327,7 +3000,6 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 5; - * * @return This builder for chaining. */ public Builder clearProfanityFilter() { @@ -3339,13 +3011,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
@@ -3355,15 +3022,12 @@ public Builder clearProfanityFilter() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; - * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3373,21 +3037,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
@@ -3412,8 +3071,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
@@ -3436,8 +3093,6 @@ public Builder setAdaptation(
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3450,10 +3105,9 @@ public Builder setAdaptation(
      */
     public Builder mergeAdaptation(com.google.cloud.speech.v1p1beta1.SpeechAdaptation value) {
       if (adaptationBuilder_ == null) {
-        if (((bitField0_ & 0x00000100) != 0)
-            && adaptation_ != null
-            && adaptation_
-                != com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000100) != 0) &&
+          adaptation_ != null &&
+          adaptation_ != com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance()) {
           getAdaptationBuilder().mergeFrom(value);
         } else {
           adaptation_ = value;
@@ -3466,8 +3120,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
@@ -3489,8 +3141,6 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3507,8 +3157,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder getAdaptationB
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3523,14 +3171,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
@@ -3542,17 +3187,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_;
@@ -3560,13 +3202,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
@@ -3574,17 +3211,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 ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3592,23 +3225,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
@@ -3616,11 +3243,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(); @@ -3634,8 +3259,6 @@ public Builder setTranscriptNormalization( return this; } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3643,8 +3266,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) { @@ -3658,8 +3280,6 @@ public Builder setTranscriptNormalization( return this; } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3667,16 +3287,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 (((bitField0_ & 0x00000200) != 0) - && transcriptNormalization_ != null - && transcriptNormalization_ - != com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + transcriptNormalization_ != null && + transcriptNormalization_ != com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance()) { getTranscriptNormalizationBuilder().mergeFrom(value); } else { transcriptNormalization_ = value; @@ -3689,8 +3306,6 @@ public Builder mergeTranscriptNormalization( return this; } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3698,8 +3313,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() { bitField0_ = (bitField0_ & ~0x00000200); @@ -3712,8 +3326,6 @@ public Builder clearTranscriptNormalization() { return this; } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3721,18 +3333,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() { bitField0_ |= 0x00000200; onChanged(); return getTranscriptNormalizationFieldBuilder().getBuilder(); } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3740,22 +3348,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
@@ -3763,47 +3366,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_ & 0x00000400) != 0)) { - speechContexts_ = - new java.util.ArrayList( - speechContexts_); + speechContexts_ = new java.util.ArrayList(speechContexts_); bitField0_ |= 0x00000400; - } + } } 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
@@ -3822,8 +3413,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
@@ -3842,8 +3431,6 @@ public int getSpeechContextsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3862,8 +3449,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
@@ -3889,8 +3474,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
@@ -3913,8 +3496,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
@@ -3939,8 +3520,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
@@ -3966,8 +3545,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
@@ -3990,8 +3567,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
@@ -4014,8 +3589,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
@@ -4030,7 +3603,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);
@@ -4038,8 +3612,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
@@ -4061,8 +3633,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
@@ -4084,8 +3654,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
@@ -4101,8 +3669,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
@@ -4116,14 +3682,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
@@ -4134,8 +3697,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 {
@@ -4143,8 +3706,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
@@ -4156,12 +3717,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
@@ -4174,12 +3733,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
@@ -4190,22 +3747,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_ & 0x00000400) != 0),
                 getParentForChildren(),
@@ -4215,10 +3766,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
@@ -4227,7 +3776,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContexts
      * 
* * bool enable_word_time_offsets = 8; - * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -4235,8 +3783,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
@@ -4245,20 +3791,17 @@ 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; bitField0_ |= 0x00000800; 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
@@ -4267,7 +3810,6 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 8; - * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { @@ -4277,10 +3819,8 @@ public Builder clearEnableWordTimeOffsets() { 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
@@ -4288,7 +3828,6 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 15; - * * @return The enableWordConfidence. */ @java.lang.Override @@ -4296,8 +3835,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
@@ -4305,20 +3842,17 @@ 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; bitField0_ |= 0x00001000; 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
@@ -4326,7 +3860,6 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 15; - * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { @@ -4336,10 +3869,8 @@ public Builder clearEnableWordConfidence() { 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
@@ -4348,7 +3879,6 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 11; - * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -4356,8 +3886,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
@@ -4366,20 +3894,17 @@ 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; bitField0_ |= 0x00002000; onChanged(); return this; } /** - * - * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -4388,7 +3913,6 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 11; - * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { @@ -4400,13 +3924,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
@@ -4418,15 +3937,12 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return Whether the enableSpokenPunctuation field is set. */ public boolean hasEnableSpokenPunctuation() { return ((bitField0_ & 0x00004000) != 0); } /** - * - * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4438,21 +3954,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
@@ -4479,8 +3990,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
@@ -4505,8 +4014,6 @@ public Builder setEnableSpokenPunctuation(
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4521,9 +4028,9 @@ public Builder setEnableSpokenPunctuation(
      */
     public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value) {
       if (enableSpokenPunctuationBuilder_ == null) {
-        if (((bitField0_ & 0x00004000) != 0)
-            && enableSpokenPunctuation_ != null
-            && enableSpokenPunctuation_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
+        if (((bitField0_ & 0x00004000) != 0) &&
+          enableSpokenPunctuation_ != null &&
+          enableSpokenPunctuation_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
           getEnableSpokenPunctuationBuilder().mergeFrom(value);
         } else {
           enableSpokenPunctuation_ = value;
@@ -4536,8 +4043,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
@@ -4561,8 +4066,6 @@ public Builder clearEnableSpokenPunctuation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4581,8 +4084,6 @@ public com.google.protobuf.BoolValue.Builder getEnableSpokenPunctuationBuilder()
       return getEnableSpokenPunctuationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4599,14 +4100,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
@@ -4620,17 +4118,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_;
@@ -4638,13 +4133,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
@@ -4654,15 +4144,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 ((bitField0_ & 0x00008000) != 0); } /** - * - * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4672,21 +4159,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
@@ -4711,8 +4193,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
@@ -4723,7 +4203,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();
       } else {
@@ -4734,8 +4215,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
@@ -4748,9 +4227,9 @@ public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue.Builder build
      */
     public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       if (enableSpokenEmojisBuilder_ == null) {
-        if (((bitField0_ & 0x00008000) != 0)
-            && enableSpokenEmojis_ != null
-            && enableSpokenEmojis_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
+        if (((bitField0_ & 0x00008000) != 0) &&
+          enableSpokenEmojis_ != null &&
+          enableSpokenEmojis_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
           getEnableSpokenEmojisBuilder().mergeFrom(value);
         } else {
           enableSpokenEmojis_ = value;
@@ -4763,8 +4242,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
@@ -4786,8 +4263,6 @@ public Builder clearEnableSpokenEmojis() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4804,8 +4279,6 @@ public com.google.protobuf.BoolValue.Builder getEnableSpokenEmojisBuilder() {
       return getEnableSpokenEmojisFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4820,14 +4293,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
@@ -4839,26 +4309,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
@@ -4867,19 +4332,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=377 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=377 * @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
@@ -4888,23 +4349,19 @@ 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=377 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=377 * @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; bitField0_ |= 0x00010000; 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
@@ -4913,23 +4370,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=377 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=377 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearEnableSpeakerDiarization() { + @java.lang.Deprecated public Builder clearEnableSpeakerDiarization() { bitField0_ = (bitField0_ & ~0x00010000); 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.
@@ -4937,19 +4390,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=382 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=382 * @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.
@@ -4957,23 +4406,19 @@ 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=382 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=382 * @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; bitField0_ |= 0x00020000; 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.
@@ -4981,13 +4426,11 @@ 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=382 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=382 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearDiarizationSpeakerCount() { + @java.lang.Deprecated public Builder clearDiarizationSpeakerCount() { bitField0_ = (bitField0_ & ~0x00020000); diarizationSpeakerCount_ = 0; onChanged(); @@ -4996,13 +4439,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.
@@ -5015,15 +4453,12 @@ public Builder clearDiarizationSpeakerCount() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19; - * * @return Whether the diarizationConfig field is set. */ public boolean hasDiarizationConfig() { return ((bitField0_ & 0x00040000) != 0); } /** - * - * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5036,21 +4471,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.
@@ -5064,8 +4494,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();
@@ -5079,8 +4508,6 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5106,8 +4533,6 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5121,14 +4546,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 (((bitField0_ & 0x00040000) != 0)
-            && diarizationConfig_ != null
-            && diarizationConfig_
-                != com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig
-                    .getDefaultInstance()) {
+        if (((bitField0_ & 0x00040000) != 0) &&
+          diarizationConfig_ != null &&
+          diarizationConfig_ != com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance()) {
           getDiarizationConfigBuilder().mergeFrom(value);
         } else {
           diarizationConfig_ = value;
@@ -5141,8 +4563,6 @@ public Builder mergeDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5167,8 +4587,6 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5182,15 +4600,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() {
       bitField0_ |= 0x00040000;
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5204,19 +4619,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.
@@ -5231,17 +4642,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_;
@@ -5249,47 +4657,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 ((bitField0_ & 0x00080000) != 0); } /** - * - * *
      * 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.
      * 
@@ -5310,8 +4705,6 @@ public Builder setMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetadata return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5330,8 +4723,6 @@ public Builder setMetadata( return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5340,10 +4731,9 @@ public Builder setMetadata( */ public Builder mergeMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetadata value) { if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) - && metadata_ != null - && metadata_ - != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00080000) != 0) && + metadata_ != null && + metadata_ != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; @@ -5356,8 +4746,6 @@ public Builder mergeMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetada return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5375,8 +4763,6 @@ public Builder clearMetadata() { return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5389,8 +4775,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder getMetadata return getMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5401,14 +4785,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.
      * 
@@ -5416,17 +4797,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_; @@ -5434,8 +4812,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
@@ -5491,13 +4867,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; @@ -5506,8 +4882,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
@@ -5563,14 +4937,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 { @@ -5578,8 +4953,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
@@ -5635,22 +5008,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00100000; 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
@@ -5706,7 +5075,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 13; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -5716,8 +5084,6 @@ public Builder clearModel() { 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
@@ -5773,14 +5139,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00100000; @@ -5788,10 +5152,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { 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
@@ -5803,7 +5165,6 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) {
      * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ @java.lang.Override @@ -5811,8 +5172,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
@@ -5824,20 +5183,17 @@ 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; bitField0_ |= 0x00200000; 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
@@ -5849,7 +5205,6 @@ public Builder setUseEnhanced(boolean value) {
      * 
* * bool use_enhanced = 14; - * * @return This builder for chaining. */ public Builder clearUseEnhanced() { @@ -5858,9 +5213,9 @@ public Builder clearUseEnhanced() { 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); } @@ -5870,12 +5225,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(); } @@ -5884,27 +5239,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5919,4 +5274,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java similarity index 93% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java index 8511b88f1247..3662ea486fe6 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/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.
@@ -86,14 +59,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
@@ -104,14 +74,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.
@@ -122,13 +89,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.
@@ -139,14 +103,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,
@@ -163,13 +125,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,
@@ -186,13 +146,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,
@@ -209,14 +166,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,
@@ -233,15 +187,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
@@ -252,14 +204,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
@@ -268,14 +217,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
@@ -285,13 +231,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
@@ -301,13 +244,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
@@ -321,8 +261,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
@@ -330,15 +268,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
@@ -346,15 +280,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
@@ -362,15 +292,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
@@ -381,10 +307,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
@@ -397,8 +322,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
@@ -411,8 +334,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
@@ -423,11 +344,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
@@ -438,11 +357,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
@@ -451,14 +369,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
@@ -466,14 +381,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
@@ -482,14 +394,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
@@ -501,13 +410,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
@@ -519,13 +425,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
@@ -541,8 +444,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
@@ -552,13 +453,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
@@ -568,13 +466,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
@@ -588,8 +483,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
@@ -598,17 +491,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=377 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=377 * @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.
@@ -616,17 +505,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=382 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=382 * @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.
@@ -639,13 +524,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.
@@ -658,13 +540,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.
@@ -678,36 +557,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.
    * 
@@ -717,8 +587,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
@@ -774,13 +642,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
@@ -836,14 +701,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
@@ -855,7 +718,6 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ boolean getUseEnhanced(); diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java index 45cd4cf4163a..c39ea85770a7 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java +++ b/owl-bot-staging/java-speech/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,33 +31,30 @@ 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; } - - 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.
@@ -84,10 +62,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.
@@ -97,8 +74,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
@@ -110,8 +85,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     DISCUSSION(1),
     /**
-     *
-     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -121,8 +94,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.
@@ -132,8 +103,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     PHONE_CALL(3),
     /**
-     *
-     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -142,8 +111,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ VOICEMAIL(4), /** - * - * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -152,8 +119,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ PROFESSIONALLY_PRODUCED(5), /** - * - * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -162,8 +127,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ VOICE_SEARCH(6), /** - * - * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -172,8 +135,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.
@@ -186,8 +147,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.
@@ -197,8 +156,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
@@ -210,8 +167,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.
@@ -221,8 +176,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.
@@ -232,8 +185,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.
      * 
@@ -242,8 +193,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VOICEMAIL_VALUE = 4; /** - * - * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -252,8 +201,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROFESSIONALLY_PRODUCED_VALUE = 5; /** - * - * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -262,8 +209,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.
      * 
@@ -272,8 +217,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.
@@ -283,6 +226,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(
@@ -307,57 +251,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();
@@ -365,7 +298,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;
@@ -383,18 +317,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.
      * 
@@ -403,8 +334,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
@@ -415,8 +344,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu
      */
     NEARFIELD(1),
     /**
-     *
-     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -425,8 +352,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu */ MIDFIELD(2), /** - * - * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -438,8 +363,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
      * Audio type is not known.
      * 
@@ -448,8 +371,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
@@ -460,8 +381,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.
      * 
@@ -470,8 +389,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.
      * 
@@ -480,6 +397,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( @@ -504,16 +422,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; } } @@ -521,31 +434,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(); @@ -553,7 +464,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; @@ -571,18 +483,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.
      * 
@@ -591,8 +500,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ ORIGINAL_MEDIA_TYPE_UNSPECIFIED(0), /** - * - * *
      * The speech data is an audio recording.
      * 
@@ -601,8 +508,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ AUDIO(1), /** - * - * *
      * The speech data originally recorded on a video.
      * 
@@ -614,8 +519,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Unknown original media type.
      * 
@@ -624,8 +527,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.
      * 
@@ -634,8 +535,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ public static final int AUDIO_VALUE = 1; /** - * - * *
      * The speech data originally recorded on a video.
      * 
@@ -644,6 +543,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( @@ -668,14 +568,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; } } @@ -683,31 +579,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(); @@ -715,7 +609,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; @@ -733,18 +628,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.
      * 
@@ -753,8 +645,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ RECORDING_DEVICE_TYPE_UNSPECIFIED(0), /** - * - * *
      * Speech was recorded on a smartphone.
      * 
@@ -763,8 +653,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ SMARTPHONE(1), /** - * - * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -773,8 +661,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ PC(2), /** - * - * *
      * Speech was recorded over a phone line.
      * 
@@ -783,8 +669,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ PHONE_LINE(3), /** - * - * *
      * Speech was recorded in a vehicle.
      * 
@@ -793,8 +677,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ VEHICLE(4), /** - * - * *
      * Speech was recorded outdoors.
      * 
@@ -803,8 +685,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ OTHER_OUTDOOR_DEVICE(5), /** - * - * *
      * Speech was recorded indoors.
      * 
@@ -816,8 +696,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn ; /** - * - * *
      * The recording device is unknown.
      * 
@@ -826,8 +704,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.
      * 
@@ -836,8 +712,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.
      * 
@@ -846,8 +720,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int PC_VALUE = 2; /** - * - * *
      * Speech was recorded over a phone line.
      * 
@@ -856,8 +728,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int PHONE_LINE_VALUE = 3; /** - * - * *
      * Speech was recorded in a vehicle.
      * 
@@ -866,8 +736,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int VEHICLE_VALUE = 4; /** - * - * *
      * Speech was recorded outdoors.
      * 
@@ -876,8 +744,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int OTHER_OUTDOOR_DEVICE_VALUE = 5; /** - * - * *
      * Speech was recorded indoors.
      * 
@@ -886,6 +752,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( @@ -910,22 +777,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; } } @@ -933,31 +792,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(); @@ -965,7 +822,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; @@ -985,49 +843,32 @@ private RecordingDeviceType(int value) { public static final int INTERACTION_TYPE_FIELD_NUMBER = 1; 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; * @return The interactionType. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType - getInteractionType() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.forNumber( - interactionType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType getInteractionType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.forNumber(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_ = 0; /** - * - * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -1036,7 +877,6 @@ public int getInteractionTypeValue() {
    * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1047,139 +887,85 @@ public int getIndustryNaicsCodeOfAudio() { public static final int MICROPHONE_DISTANCE_FIELD_NUMBER = 4; 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; * @return The microphoneDistance. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance - getMicrophoneDistance() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.forNumber( - microphoneDistance_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.forNumber(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_ = 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; * @return The originalMediaType. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType - getOriginalMediaType() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.forNumber( - originalMediaType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.forNumber(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_ = 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; * @return The recordingDeviceType. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType - getRecordingDeviceType() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.forNumber( - recordingDeviceType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.forNumber(recordingDeviceType_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; } public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER = 7; - @SuppressWarnings("serial") 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
@@ -1187,7 +973,6 @@ public int getRecordingDeviceTypeValue() {
    * 
* * string recording_device_name = 7; - * * @return The recordingDeviceName. */ @java.lang.Override @@ -1196,15 +981,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
@@ -1212,15 +996,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 { @@ -1229,12 +1014,9 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() { } public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER = 8; - @SuppressWarnings("serial") 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`.
@@ -1243,7 +1025,6 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() {
    * 
* * string original_mime_type = 8; - * * @return The originalMimeType. */ @java.lang.Override @@ -1252,15 +1033,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`.
@@ -1269,15 +1049,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 { @@ -1288,39 +1069,31 @@ public com.google.protobuf.ByteString getOriginalMimeTypeBytes() { public static final int OBFUSCATED_ID_FIELD_NUMBER = 9; private long obfuscatedId_ = 0L; /** - * - * *
    * 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=611 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=611 * @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; - @SuppressWarnings("serial") 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 @@ -1329,30 +1102,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 { @@ -1361,7 +1134,6 @@ public com.google.protobuf.ByteString getAudioTopicBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1373,32 +1145,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_)) { @@ -1422,32 +1183,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_); @@ -1456,7 +1210,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_); @@ -1469,23 +1224,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1512,7 +1271,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) + getUnknownFields().hashCode(); @@ -1521,136 +1281,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1668,9 +1421,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 @@ -1689,11 +1442,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.RecognitionMetadata result = new com.google.cloud.speech.v1p1beta1.RecognitionMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1733,39 +1483,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognitionMetadata 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; @@ -1773,8 +1522,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()); } @@ -1834,67 +1582,57 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - interactionType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 24: - { - industryNaicsCodeOfAudio_ = input.readUInt32(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 32: - { - microphoneDistance_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 40: - { - originalMediaType_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 48: - { - recordingDeviceType_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 58: - { - recordingDeviceName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: - { - originalMimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 72: - { - obfuscatedId_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 72 - case 82: - { - audioTopic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + interactionType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 24: { + industryNaicsCodeOfAudio_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: { + microphoneDistance_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: { + originalMediaType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: { + recordingDeviceType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: { + recordingDeviceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: { + originalMimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 72: { + obfuscatedId_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 82: { + audioTopic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1904,38 +1642,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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. */ @@ -1946,44 +1672,28 @@ public Builder setInteractionTypeValue(int value) { 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() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.forNumber( - interactionType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED - : result; + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType getInteractionType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.forNumber(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(); } @@ -1993,16 +1703,11 @@ public Builder setInteractionType( 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() { @@ -2012,10 +1717,8 @@ public Builder clearInteractionType() { 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
@@ -2024,7 +1727,6 @@ public Builder clearInteractionType() {
      * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -2032,8 +1734,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
@@ -2042,20 +1742,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -2064,7 +1761,6 @@ public Builder setIndustryNaicsCodeOfAudio(int value) {
      * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return This builder for chaining. */ public Builder clearIndustryNaicsCodeOfAudio() { @@ -2076,33 +1772,22 @@ 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. */ @@ -2113,44 +1798,28 @@ public Builder setMicrophoneDistanceValue(int value) { 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() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.forNumber( - microphoneDistance_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED - : result; + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.forNumber(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(); } @@ -2160,16 +1829,11 @@ public Builder setMicrophoneDistance( 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() { @@ -2181,33 +1845,22 @@ 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. */ @@ -2218,44 +1871,28 @@ public Builder setOriginalMediaTypeValue(int value) { 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() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.forNumber( - originalMediaType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED - : result; + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.forNumber(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(); } @@ -2265,16 +1902,11 @@ public Builder setOriginalMediaType( 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() { @@ -2286,33 +1918,22 @@ 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. */ @@ -2323,44 +1944,28 @@ public Builder setRecordingDeviceTypeValue(int value) { 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() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.forNumber( - recordingDeviceType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED - : result; + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.forNumber(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(); } @@ -2370,16 +1975,11 @@ public Builder setRecordingDeviceType( 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() { @@ -2391,8 +1991,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
@@ -2400,13 +1998,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; @@ -2415,8 +2013,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
@@ -2424,14 +2020,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 { @@ -2439,8 +2036,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
@@ -2448,22 +2043,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecordingDeviceName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } recordingDeviceName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2471,7 +2062,6 @@ public Builder setRecordingDeviceName(java.lang.String value) {
      * 
* * string recording_device_name = 7; - * * @return This builder for chaining. */ public Builder clearRecordingDeviceName() { @@ -2481,8 +2071,6 @@ public Builder clearRecordingDeviceName() { return this; } /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2490,14 +2078,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecordingDeviceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); recordingDeviceName_ = value; bitField0_ |= 0x00000020; @@ -2507,8 +2093,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`.
@@ -2517,13 +2101,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; @@ -2532,8 +2116,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`.
@@ -2542,14 +2124,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 { @@ -2557,8 +2140,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`.
@@ -2567,22 +2148,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOriginalMimeType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } originalMimeType_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2591,7 +2168,6 @@ public Builder setOriginalMimeType(java.lang.String value) {
      * 
* * string original_mime_type = 8; - * * @return This builder for chaining. */ public Builder clearOriginalMimeType() { @@ -2601,8 +2177,6 @@ public Builder clearOriginalMimeType() { return this; } /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2611,14 +2185,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOriginalMimeTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); originalMimeType_ = value; bitField0_ |= 0x00000040; @@ -2626,65 +2198,53 @@ public Builder setOriginalMimeTypeBytes(com.google.protobuf.ByteString value) { 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=611 * @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=611 * @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; bitField0_ |= 0x00000080; 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=611 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearObfuscatedId() { + @java.lang.Deprecated public Builder clearObfuscatedId() { bitField0_ = (bitField0_ & ~0x00000080); obfuscatedId_ = 0L; onChanged(); @@ -2693,21 +2253,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; @@ -2716,22 +2274,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 { @@ -2739,37 +2296,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAudioTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } audioTopic_ = value; bitField0_ |= 0x00000100; 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() { @@ -2779,31 +2329,27 @@ public Builder clearAudioTopic() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAudioTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); audioTopic_ = value; bitField0_ |= 0x00000100; 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); } @@ -2813,12 +2359,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(); } @@ -2827,27 +2373,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2862,4 +2408,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java index 592a1fe85d0e..34934518b6b8 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java +++ b/owl-bot-staging/java-speech/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=611 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=611 * @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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java similarity index 59% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java index 086a278dc2d0..72f5a09d10e2 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java @@ -1,84 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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; } - - 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 @@ -86,57 +63,39 @@ 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() { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } 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 @@ -144,44 +103,30 @@ 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() { - return audio_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,7 +138,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()); } @@ -210,10 +156,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -223,21 +171,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -264,135 +213,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +354,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 @@ -432,11 +375,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.RecognizeRequest result = new com.google.cloud.speech.v1p1beta1.RecognizeRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -444,10 +384,14 @@ public com.google.cloud.speech.v1p1beta1.RecognizeRequest buildPartial() { private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognizeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + result.config_ = configBuilder_ == null + ? config_ + : configBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.audio_ = audioBuilder_ == null ? audio_ : audioBuilder_.build(); + result.audio_ = audioBuilder_ == null + ? audio_ + : audioBuilder_.build(); } } @@ -455,39 +399,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognizeRequest re 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; @@ -495,8 +438,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()); } @@ -529,25 +471,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getAudioFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getAudioFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,66 +500,46 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * 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) { @@ -632,16 +555,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) { @@ -655,23 +574,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 (((bitField0_ & 0x00000001) != 0) - && config_ != null - && config_ - != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + config_ != null && + config_ != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -684,16 +598,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -706,16 +616,12 @@ 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() { bitField0_ |= 0x00000001; @@ -723,50 +629,38 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuil 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_; @@ -774,58 +668,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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) { @@ -841,15 +716,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) { @@ -863,21 +734,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 (((bitField0_ & 0x00000002) != 0) - && audio_ != null - && audio_ != com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + audio_ != null && + audio_ != com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance()) { getAudioBuilder().mergeFrom(value); } else { audio_ = value; @@ -890,15 +757,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -911,15 +774,11 @@ 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() { bitField0_ |= 0x00000002; @@ -927,55 +786,43 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder getAudioBuilde 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); } @@ -985,12 +832,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(); } @@ -999,27 +846,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1034,4 +881,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java new file mode 100644 index 000000000000..2e594dfddc8f --- /dev/null +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java index 332085672c61..14b944493319 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java +++ b/owl-bot-staging/java-speech/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,53 +12,48 @@
  *
  * 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -84,13 +62,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.
@@ -99,14 +74,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.
@@ -119,8 +91,6 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -133,8 +103,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.
@@ -151,14 +119,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 @@ -166,25 +131,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.
    * 
@@ -193,22 +151,17 @@ public com.google.protobuf.Duration getTotalBilledTime() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 7; private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_; /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -216,25 +169,18 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } /** - * - * *
    * Provides information on adaptation behavior in response
    * 
@@ -242,25 +188,19 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptatio * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 8; private long requestId_ = 0L; /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 8; - * * @return The requestId. */ @java.lang.Override @@ -269,7 +209,6 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -281,7 +220,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)); } @@ -304,17 +244,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 (speechAdaptationInfo_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSpeechAdaptationInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, requestId_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -324,24 +267,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.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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo() + .equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() != other.getRequestId()) return false; + if (getRequestId() + != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -366,110 +312,104 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } 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`
@@ -478,32 +418,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -530,9 +471,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
@@ -551,18 +492,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v1p1beta1.RecognizeResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.RecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -577,14 +514,14 @@ private void buildPartialRepeatedFields(
     private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.totalBilledTime_ =
-            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
+            ? totalBilledTime_
+            : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.speechAdaptationInfo_ =
-            speechAdaptationInfoBuilder_ == null
-                ? speechAdaptationInfo_
-                : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
+            ? speechAdaptationInfo_
+            : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.requestId_ = requestId_;
@@ -595,39 +532,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognizeResponse r
     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;
@@ -635,8 +571,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()) {
@@ -655,10 +590,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_);
           }
@@ -699,46 +633,44 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18:
-              {
-                com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
-                        extensionRegistry);
-                if (resultsBuilder_ == null) {
-                  ensureResultsIsMutable();
-                  results_.add(m);
-                } else {
-                  resultsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 26
-            case 58:
-              {
-                input.readMessage(
-                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 58
-            case 64:
-              {
-                requestId_ = input.readInt64();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 64
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 18: {
+              com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
+                      extensionRegistry);
+              if (resultsBuilder_ == null) {
+                ensureResultsIsMutable();
+                results_.add(m);
+              } else {
+                resultsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getTotalBilledTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 26
+            case 58: {
+              input.readMessage(
+                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 58
+            case 64: {
+              requestId_ = input.readInt64();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 64
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -748,30 +680,21 @@ public Builder mergeFrom(
       } // finally
       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.
@@ -779,8 +702,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 {
@@ -788,8 +710,6 @@ private void ensureResultsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -805,8 +725,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -822,8 +740,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -846,8 +762,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -856,8 +770,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());
@@ -868,8 +781,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -891,8 +802,6 @@ public Builder addResults(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRes
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -915,8 +824,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -936,8 +843,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -946,8 +851,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());
@@ -958,8 +862,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -968,11 +870,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);
@@ -980,8 +882,6 @@ public Builder addAllResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1000,8 +900,6 @@ public Builder clearResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1020,8 +918,6 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1034,8 +930,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.
@@ -1046,14 +940,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.
@@ -1061,9 +952,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 {
@@ -1071,8 +961,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1081,13 +969,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.
@@ -1097,14 +982,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.
@@ -1112,23 +993,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_;
@@ -1136,47 +1014,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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.
      * 
@@ -1197,15 +1062,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(); } else { @@ -1216,8 +1080,6 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1226,9 +1088,9 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo */ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && totalBilledTime_ != null - && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + totalBilledTime_ != null && + totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getTotalBilledTimeBuilder().mergeFrom(value); } else { totalBilledTime_ = value; @@ -1241,8 +1103,6 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1260,8 +1120,6 @@ public Builder clearTotalBilledTime() { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1274,8 +1132,6 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { return getTotalBilledTimeFieldBuilder().getBuilder(); } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1286,14 +1142,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.
      * 
@@ -1301,17 +1154,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_; @@ -1319,55 +1169,41 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> - speechAdaptationInfoBuilder_; + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_; /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public Builder setSpeechAdaptationInfo( - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1381,8 +1217,6 @@ public Builder setSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -1401,21 +1235,17 @@ public Builder setSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public Builder mergeSpeechAdaptationInfo( - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && speechAdaptationInfo_ != null - && speechAdaptationInfo_ - != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + speechAdaptationInfo_ != null && + speechAdaptationInfo_ != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -1428,8 +1258,6 @@ public Builder mergeSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -1447,42 +1275,33 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder - getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -1490,33 +1309,27 @@ public Builder clearSpeechAdaptationInfo() { * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), getParentForChildren(), isClean()); + speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), + getParentForChildren(), + isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_; + private long requestId_ ; /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; - * * @return The requestId. */ @java.lang.Override @@ -1524,35 +1337,29 @@ public long getRequestId() { return requestId_; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; - * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1561,9 +1368,9 @@ public Builder clearRequestId() { 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); } @@ -1573,12 +1380,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(); } @@ -1587,27 +1394,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1622,4 +1429,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java similarity index 79% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java index e98bffda311b..9e93219032fb 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/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.
    * 
@@ -116,51 +84,39 @@ public interface RecognizeResponseOrBuilder com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder(); /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; - * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder(); + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 8; - * * @return The requestId. */ long getRequestId(); diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java index ca33cbc211a7..6041c4903edb 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java @@ -1,75 +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; } - - 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_ = false; /** - * - * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -77,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool enable_speaker_diarization = 1; - * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -88,8 +67,6 @@ public boolean getEnableSpeakerDiarization() { public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_ = 0; /** - * - * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -97,7 +74,6 @@ public boolean getEnableSpeakerDiarization() {
    * 
* * int32 min_speaker_count = 2; - * * @return The minSpeakerCount. */ @java.lang.Override @@ -108,8 +84,6 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_ = 0; /** - * - * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -117,7 +91,6 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3; - * * @return The maxSpeakerCount. */ @java.lang.Override @@ -128,27 +101,21 @@ public int getMaxSpeakerCount() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_ = 0; /** - * - * *
    * 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=479 * @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; @@ -160,7 +127,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_); } @@ -183,16 +151,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -202,18 +174,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -226,7 +201,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; @@ -239,136 +215,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +350,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 @@ -402,11 +371,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig result = new com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -431,39 +397,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationC 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; @@ -471,8 +436,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()); } @@ -511,37 +475,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enableSpeakerDiarization_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - minSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - maxSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 40: - { - speakerTag_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enableSpeakerDiarization_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + minSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + maxSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 40: { + speakerTag_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -551,13 +510,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - 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
@@ -565,7 +521,6 @@ public Builder mergeFrom(
      * 
* * bool enable_speaker_diarization = 1; - * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -573,8 +528,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
@@ -582,20 +535,17 @@ 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; bitField0_ |= 0x00000001; 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
@@ -603,7 +553,6 @@ public Builder setEnableSpeakerDiarization(boolean value) {
      * 
* * bool enable_speaker_diarization = 1; - * * @return This builder for chaining. */ public Builder clearEnableSpeakerDiarization() { @@ -613,10 +562,8 @@ public Builder clearEnableSpeakerDiarization() { 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
@@ -624,7 +571,6 @@ public Builder clearEnableSpeakerDiarization() {
      * 
* * int32 min_speaker_count = 2; - * * @return The minSpeakerCount. */ @java.lang.Override @@ -632,8 +578,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
@@ -641,20 +585,17 @@ 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; bitField0_ |= 0x00000002; 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
@@ -662,7 +603,6 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2; - * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { @@ -672,10 +612,8 @@ public Builder clearMinSpeakerCount() { 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
@@ -683,7 +621,6 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; - * * @return The maxSpeakerCount. */ @java.lang.Override @@ -691,8 +628,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
@@ -700,20 +635,17 @@ 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; bitField0_ |= 0x00000004; 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
@@ -721,7 +653,6 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3; - * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { @@ -731,73 +662,58 @@ public Builder clearMaxSpeakerCount() { 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=479 * @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=479 * @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; bitField0_ |= 0x00000008; 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=479 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearSpeakerTag() { + @java.lang.Deprecated public Builder clearSpeakerTag() { bitField0_ = (bitField0_ & ~0x00000008); 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); } @@ -807,12 +723,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(); } @@ -821,27 +737,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -856,4 +772,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java similarity index 68% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java index 37f7409eca89..48953e669d2a 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/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=479 * @return The speakerTag. */ - @java.lang.Deprecated - int getSpeakerTag(); + @java.lang.Deprecated int getSpeakerTag(); } diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java similarity index 76% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java index 156b2694de08..4e7cd8399c91 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java +++ b/owl-bot-staging/java-speech/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,175 +27,154 @@ 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; } - - 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 interface ABNFGrammarOrBuilder - extends + public interface ABNFGrammarOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @return A list containing the abnfStrings. */ - java.util.List getAbnfStringsList(); + java.util.List + getAbnfStringsList(); /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @return The count of abnfStrings. */ int getAbnfStringsCount(); /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ java.lang.String getAbnfStrings(int index); /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - com.google.protobuf.ByteString getAbnfStringsBytes(int index); + com.google.protobuf.ByteString + getAbnfStringsBytes(int index); } - /** Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar} */ - public static final class ABNFGrammar extends com.google.protobuf.GeneratedMessageV3 - implements + /** + * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar} + */ + public static final class ABNFGrammar extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) ABNFGrammarOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ABNFGrammar.newBuilder() to construct. private ABNFGrammar(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ABNFGrammar() { abnfStrings_ = 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 ABNFGrammar(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_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_ABNFGrammar_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.class, - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder.class); } public static final int ABNF_STRINGS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList abnfStrings_; /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @return A list containing the abnfStrings. */ - public com.google.protobuf.ProtocolStringList getAbnfStringsList() { + public com.google.protobuf.ProtocolStringList + getAbnfStringsList() { return abnfStrings_; } /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @return The count of abnfStrings. */ public int getAbnfStringsCount() { return abnfStrings_.size(); } /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ @@ -221,24 +182,21 @@ public java.lang.String getAbnfStrings(int index) { return abnfStrings_.get(index); } /** - * - * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; - * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - public com.google.protobuf.ByteString getAbnfStringsBytes(int index) { + public com.google.protobuf.ByteString + getAbnfStringsBytes(int index) { return abnfStrings_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,7 +208,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 < abnfStrings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, abnfStrings_.getRaw(i)); } @@ -279,15 +238,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.SpeechAdaptation.ABNFGrammar)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar other = - (com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) obj; + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar other = (com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) obj; - if (!getAbnfStringsList().equals(other.getAbnfStringsList())) return false; + if (!getAbnfStringsList() + .equals(other.getAbnfStringsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -309,94 +268,87 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar 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 @@ -405,34 +357,36 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_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_ABNFGrammar_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.class, - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -443,14 +397,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_SpeechAdaptation_ABNFGrammar_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor; } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar - getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getDefaultInstanceForType() { return com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance(); } @@ -465,18 +418,14 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result = - new com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar(this); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result = new com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result) { if (((bitField0_ & 0x00000001) != 0)) { abnfStrings_ = abnfStrings_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -484,8 +433,7 @@ private void buildPartialRepeatedFields( result.abnfStrings_ = abnfStrings_; } - private void buildPartial0( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result) { + private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result) { int from_bitField0_ = bitField0_; } @@ -493,52 +441,46 @@ private void buildPartial0( 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.SpeechAdaptation.ABNFGrammar) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar other) { - if (other - == com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar other) { + if (other == com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) return this; if (!other.abnfStrings_.isEmpty()) { if (abnfStrings_.isEmpty()) { abnfStrings_ = other.abnfStrings_; @@ -575,20 +517,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAbnfStringsIsMutable(); - abnfStrings_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAbnfStringsIsMutable(); + abnfStrings_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -598,58 +538,47 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList abnfStrings_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList abnfStrings_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAbnfStringsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { abnfStrings_ = new com.google.protobuf.LazyStringArrayList(abnfStrings_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @return A list containing the abnfStrings. */ - public com.google.protobuf.ProtocolStringList getAbnfStringsList() { + public com.google.protobuf.ProtocolStringList + getAbnfStringsList() { return abnfStrings_.getUnmodifiableView(); } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @return The count of abnfStrings. */ public int getAbnfStringsCount() { return abnfStrings_.size(); } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ @@ -657,95 +586,81 @@ public java.lang.String getAbnfStrings(int index) { return abnfStrings_.get(index); } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - public com.google.protobuf.ByteString getAbnfStringsBytes(int index) { + public com.google.protobuf.ByteString + getAbnfStringsBytes(int index) { return abnfStrings_.getByteString(index); } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param index The index to set the value at. * @param value The abnfStrings to set. * @return This builder for chaining. */ - public Builder setAbnfStrings(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAbnfStrings( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAbnfStringsIsMutable(); abnfStrings_.set(index, value); onChanged(); return this; } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param value The abnfStrings to add. * @return This builder for chaining. */ - public Builder addAbnfStrings(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAbnfStrings( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAbnfStringsIsMutable(); abnfStrings_.add(value); onChanged(); return this; } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param values The abnfStrings to add. * @return This builder for chaining. */ - public Builder addAllAbnfStrings(java.lang.Iterable values) { + public Builder addAllAbnfStrings( + java.lang.Iterable values) { ensureAbnfStringsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, abnfStrings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, abnfStrings_); onChanged(); return this; } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @return This builder for chaining. */ public Builder clearAbnfStrings() { @@ -755,29 +670,24 @@ public Builder clearAbnfStrings() { return this; } /** - * - * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; - * * @param value The bytes of the abnfStrings to add. * @return This builder for chaining. */ - public Builder addAbnfStringsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAbnfStringsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAbnfStringsIsMutable(); abnfStrings_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -790,44 +700,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) - private static final com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar - DEFAULT_INSTANCE; - + private static final com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar(); } - public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar - getDefaultInstance() { + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ABNFGrammar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ABNFGrammar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -839,19 +746,16 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar - getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int PHRASE_SETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") 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
@@ -865,8 +769,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
@@ -876,13 +778,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
@@ -896,8 +796,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
@@ -911,8 +809,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
@@ -922,54 +818,43 @@ 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;
-
   @SuppressWarnings("serial")
   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. */ @@ -977,29 +862,23 @@ 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; - @SuppressWarnings("serial") 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
@@ -1014,8 +893,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
@@ -1026,13 +903,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
@@ -1047,8 +922,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
@@ -1063,8 +936,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
@@ -1083,8 +954,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr
   public static final int ABNF_GRAMMAR_FIELD_NUMBER = 4;
   private com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnfGrammar_;
   /**
-   *
-   *
    * 
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -1092,7 +961,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return Whether the abnfGrammar field is set. */ @java.lang.Override @@ -1100,8 +968,6 @@ public boolean hasAbnfGrammar() { return abnfGrammar_ != null; } /** - * - * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -1109,18 +975,13 @@ public boolean hasAbnfGrammar() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return The abnfGrammar. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getAbnfGrammar() { - return abnfGrammar_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() - : abnfGrammar_; + return abnfGrammar_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_; } /** - * - * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -1130,15 +991,11 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getAbnfGra
    * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder
-      getAbnfGrammarOrBuilder() {
-    return abnfGrammar_ == null
-        ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()
-        : abnfGrammar_;
+  public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder getAbnfGrammarOrBuilder() {
+    return abnfGrammar_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1150,7 +1007,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));
     }
@@ -1173,7 +1031,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;
@@ -1184,10 +1043,12 @@ 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));
     }
     if (abnfGrammar_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAbnfGrammar());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getAbnfGrammar());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1197,20 +1058,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.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 (hasAbnfGrammar() != other.hasAbnfGrammar()) return false;
     if (hasAbnfGrammar()) {
-      if (!getAbnfGrammar().equals(other.getAbnfGrammar())) return false;
+      if (!getAbnfGrammar()
+          .equals(other.getAbnfGrammar())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -1245,135 +1109,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1403,9 +1261,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 @@ -1424,18 +1282,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.SpeechAdaptation result) { if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -1464,8 +1318,9 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechAdaptation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000008) != 0)) { - result.abnfGrammar_ = - abnfGrammarBuilder_ == null ? abnfGrammar_ : abnfGrammarBuilder_.build(); + result.abnfGrammar_ = abnfGrammarBuilder_ == null + ? abnfGrammar_ + : abnfGrammarBuilder_.build(); } } @@ -1473,39 +1328,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechAdaptation re 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; @@ -1513,8 +1367,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()) { @@ -1533,10 +1386,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_); } @@ -1570,10 +1422,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_); } @@ -1608,52 +1459,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1p1beta1.PhraseSet m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); - if (phraseSetsBuilder_ == null) { - ensurePhraseSetsIsMutable(); - phraseSets_.add(m); - } else { - phraseSetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePhraseSetReferencesIsMutable(); - phraseSetReferences_.add(s); - break; - } // case 18 - case 26: - { - com.google.cloud.speech.v1p1beta1.CustomClass m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); - if (customClassesBuilder_ == null) { - ensureCustomClassesIsMutable(); - customClasses_.add(m); - } else { - customClassesBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - input.readMessage(getAbnfGrammarFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.speech.v1p1beta1.PhraseSet m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), + extensionRegistry); + if (phraseSetsBuilder_ == null) { + ensurePhraseSetsIsMutable(); + phraseSets_.add(m); + } else { + phraseSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePhraseSetReferencesIsMutable(); + phraseSetReferences_.add(s); + break; + } // case 18 + case 26: { + com.google.cloud.speech.v1p1beta1.CustomClass m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.CustomClass.parser(), + extensionRegistry); + if (customClassesBuilder_ == null) { + ensureCustomClassesIsMutable(); + customClasses_.add(m); + } else { + customClassesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + input.readMessage( + getAbnfGrammarFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1663,29 +1513,21 @@ public Builder mergeFrom( } // finally 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
@@ -1702,8 +1544,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
@@ -1720,8 +1560,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
@@ -1738,8 +1576,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
@@ -1748,7 +1584,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();
@@ -1762,8 +1599,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
@@ -1784,8 +1619,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
@@ -1808,8 +1641,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
@@ -1818,7 +1649,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();
@@ -1832,8 +1664,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
@@ -1854,8 +1684,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
@@ -1876,8 +1704,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
@@ -1890,7 +1716,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);
@@ -1898,8 +1725,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
@@ -1919,8 +1744,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
@@ -1940,8 +1763,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
@@ -1950,12 +1771,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
@@ -1964,16 +1784,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
@@ -1982,8 +1800,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 {
@@ -1991,8 +1809,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
@@ -2002,12 +1818,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
@@ -2016,13 +1830,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
@@ -2031,77 +1844,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. */ @@ -2109,95 +1906,76 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhraseSetReferences( + int index, java.lang.String value) { + if (value == null) { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPhraseSetReferences( + java.lang.String value) { + if (value == null) { 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() { @@ -2207,22 +1985,17 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPhraseSetReferencesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); @@ -2231,25 +2004,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
@@ -2267,8 +2033,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
@@ -2286,8 +2050,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
@@ -2305,8 +2067,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
@@ -2331,8 +2091,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
@@ -2354,8 +2112,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
@@ -2379,8 +2135,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
@@ -2405,8 +2159,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
@@ -2428,8 +2180,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
@@ -2451,8 +2201,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
@@ -2466,7 +2214,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);
@@ -2474,8 +2223,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
@@ -2496,8 +2243,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
@@ -2518,8 +2263,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
@@ -2534,8 +2277,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
@@ -2548,14 +2289,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
@@ -2565,8 +2303,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 {
@@ -2574,8 +2312,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
@@ -2586,12 +2322,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
@@ -2603,12 +2337,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
@@ -2618,22 +2350,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(),
@@ -2645,13 +2371,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBui
 
     private com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnfGrammar_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar,
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder,
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder>
-        abnfGrammarBuilder_;
+        com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder> abnfGrammarBuilder_;
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2659,15 +2380,12 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBui
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return Whether the abnfGrammar field is set. */ public boolean hasAbnfGrammar() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2675,21 +2393,16 @@ public boolean hasAbnfGrammar() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return The abnfGrammar. */ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getAbnfGrammar() { if (abnfGrammarBuilder_ == null) { - return abnfGrammar_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() - : abnfGrammar_; + return abnfGrammar_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_; } else { return abnfGrammarBuilder_.getMessage(); } } /** - * - * *
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2698,8 +2411,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getAbnfGra
      *
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
-    public Builder setAbnfGrammar(
-        com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar value) {
+    public Builder setAbnfGrammar(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar value) {
       if (abnfGrammarBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2713,8 +2425,6 @@ public Builder setAbnfGrammar(
       return this;
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2735,8 +2445,6 @@ public Builder setAbnfGrammar(
       return this;
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2745,14 +2453,11 @@ public Builder setAbnfGrammar(
      *
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
-    public Builder mergeAbnfGrammar(
-        com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar value) {
+    public Builder mergeAbnfGrammar(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar value) {
       if (abnfGrammarBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && abnfGrammar_ != null
-            && abnfGrammar_
-                != com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar
-                    .getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          abnfGrammar_ != null &&
+          abnfGrammar_ != com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) {
           getAbnfGrammarBuilder().mergeFrom(value);
         } else {
           abnfGrammar_ = value;
@@ -2765,8 +2470,6 @@ public Builder mergeAbnfGrammar(
       return this;
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2786,8 +2489,6 @@ public Builder clearAbnfGrammar() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2796,15 +2497,12 @@ public Builder clearAbnfGrammar() {
      *
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
-    public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder
-        getAbnfGrammarBuilder() {
+    public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder getAbnfGrammarBuilder() {
       bitField0_ |= 0x00000008;
       onChanged();
       return getAbnfGrammarFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2813,19 +2511,15 @@ public Builder clearAbnfGrammar() {
      *
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
-    public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder
-        getAbnfGrammarOrBuilder() {
+    public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder getAbnfGrammarOrBuilder() {
       if (abnfGrammarBuilder_ != null) {
         return abnfGrammarBuilder_.getMessageOrBuilder();
       } else {
-        return abnfGrammar_ == null
-            ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()
-            : abnfGrammar_;
+        return abnfGrammar_ == null ?
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_;
       }
     }
     /**
-     *
-     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2835,24 +2529,21 @@ public Builder clearAbnfGrammar() {
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar,
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder,
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder>
+        com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder> 
         getAbnfGrammarFieldBuilder() {
       if (abnfGrammarBuilder_ == null) {
-        abnfGrammarBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar,
-                com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder,
-                com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder>(
-                getAbnfGrammar(), getParentForChildren(), isClean());
+        abnfGrammarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder>(
+                getAbnfGrammar(),
+                getParentForChildren(),
+                isClean());
         abnfGrammar_ = null;
       }
       return abnfGrammarBuilder_;
     }
-
     @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);
     }
 
@@ -2862,12 +2553,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();
   }
@@ -2876,27 +2567,27 @@ 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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  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 {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2911,4 +2602,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v1p1beta1.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java
similarity index 67%
rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java
rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java
index 25386dead1cf..2395ba4ad4ff 100644
--- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java
+++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java
@@ -1,84 +1,62 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License 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;
 
 /**
- *
- *
  * 
  * Information on speech adaptation use in results
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptationInfo} */ -public final class SpeechAdaptationInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpeechAdaptationInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) SpeechAdaptationInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpeechAdaptationInfo.newBuilder() to construct. private SpeechAdaptationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeechAdaptationInfo() { timeoutMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpeechAdaptationInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.class, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder.class); } public static final int ADAPTATION_TIMEOUT_FIELD_NUMBER = 1; private boolean adaptationTimeout_ = false; /** - * - * *
    * Whether there was a timeout when applying speech adaptation. If true,
    * adaptation had no effect in the response transcript.
    * 
* * bool adaptation_timeout = 1; - * * @return The adaptationTimeout. */ @java.lang.Override @@ -87,19 +65,15 @@ public boolean getAdaptationTimeout() { } public static final int TIMEOUT_MESSAGE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object timeoutMessage_ = ""; /** - * - * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; - * * @return The timeoutMessage. */ @java.lang.Override @@ -108,30 +82,30 @@ public java.lang.String getTimeoutMessage() { 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(); timeoutMessage_ = s; return s; } } /** - * - * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; - * * @return The bytes for timeoutMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getTimeoutMessageBytes() { + public com.google.protobuf.ByteString + getTimeoutMessageBytes() { java.lang.Object ref = timeoutMessage_; 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); timeoutMessage_ = b; return b; } else { @@ -140,7 +114,6 @@ public com.google.protobuf.ByteString getTimeoutMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -152,7 +125,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 (adaptationTimeout_ != false) { output.writeBool(1, adaptationTimeout_); } @@ -169,7 +143,8 @@ public int getSerializedSize() { size = 0; if (adaptationTimeout_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, adaptationTimeout_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, adaptationTimeout_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeoutMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, timeoutMessage_); @@ -182,16 +157,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.SpeechAdaptationInfo)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo other = - (com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) obj; + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo other = (com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) obj; - if (getAdaptationTimeout() != other.getAdaptationTimeout()) return false; - if (!getTimeoutMessage().equals(other.getTimeoutMessage())) return false; + if (getAdaptationTimeout() + != other.getAdaptationTimeout()) return false; + if (!getTimeoutMessage() + .equals(other.getTimeoutMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -204,7 +180,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADAPTATION_TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAdaptationTimeout()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAdaptationTimeout()); hash = (37 * hash) + TIMEOUT_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getTimeoutMessage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -213,136 +190,129 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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; } /** - * - * *
    * Information on speech adaptation use in results
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptationInfo} */ - 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.SpeechAdaptationInfo) com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.class, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -353,9 +323,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_SpeechAdaptationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; } @java.lang.Override @@ -374,11 +344,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo result = - new com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo result = new com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -397,39 +364,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInf 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.SpeechAdaptationInfo) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo)other); } else { super.mergeFrom(other); return this; @@ -437,8 +403,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo other) { - if (other == com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) return this; if (other.getAdaptationTimeout() != false) { setAdaptationTimeout(other.getAdaptationTimeout()); } @@ -473,25 +438,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - adaptationTimeout_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 34: - { - timeoutMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + adaptationTimeout_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 34: { + timeoutMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -501,20 +463,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean adaptationTimeout_; + private boolean adaptationTimeout_ ; /** - * - * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; - * * @return The adaptationTimeout. */ @java.lang.Override @@ -522,35 +480,29 @@ public boolean getAdaptationTimeout() { return adaptationTimeout_; } /** - * - * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; - * * @param value The adaptationTimeout to set. * @return This builder for chaining. */ public Builder setAdaptationTimeout(boolean value) { - + adaptationTimeout_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; - * * @return This builder for chaining. */ public Builder clearAdaptationTimeout() { @@ -562,21 +514,19 @@ public Builder clearAdaptationTimeout() { private java.lang.Object timeoutMessage_ = ""; /** - * - * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; - * * @return The timeoutMessage. */ public java.lang.String getTimeoutMessage() { java.lang.Object ref = timeoutMessage_; 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(); timeoutMessage_ = s; return s; @@ -585,22 +535,21 @@ public java.lang.String getTimeoutMessage() { } } /** - * - * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; - * * @return The bytes for timeoutMessage. */ - public com.google.protobuf.ByteString getTimeoutMessageBytes() { + public com.google.protobuf.ByteString + getTimeoutMessageBytes() { java.lang.Object ref = timeoutMessage_; 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); timeoutMessage_ = b; return b; } else { @@ -608,37 +557,30 @@ public com.google.protobuf.ByteString getTimeoutMessageBytes() { } } /** - * - * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; - * * @param value The timeoutMessage to set. * @return This builder for chaining. */ - public Builder setTimeoutMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTimeoutMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } timeoutMessage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; - * * @return This builder for chaining. */ public Builder clearTimeoutMessage() { @@ -648,31 +590,27 @@ public Builder clearTimeoutMessage() { return this; } /** - * - * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; - * * @param value The bytes for timeoutMessage to set. * @return This builder for chaining. */ - public Builder setTimeoutMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTimeoutMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); timeoutMessage_ = value; bitField0_ |= 0x00000002; 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); } @@ -682,12 +620,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) private static final com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo(); } @@ -696,27 +634,27 @@ public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechAdaptationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechAdaptationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -731,4 +669,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java similarity index 59% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java index bd5508cea1c6..0a1b98bbef2e 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.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/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface SpeechAdaptationInfoOrBuilder - extends +public interface SpeechAdaptationInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Whether there was a timeout when applying speech adaptation. If true,
    * adaptation had no effect in the response transcript.
    * 
* * bool adaptation_timeout = 1; - * * @return The adaptationTimeout. */ boolean getAdaptationTimeout(); /** - * - * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; - * * @return The timeoutMessage. */ java.lang.String getTimeoutMessage(); /** - * - * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; - * * @return The bytes for timeoutMessage. */ - com.google.protobuf.ByteString getTimeoutMessageBytes(); + com.google.protobuf.ByteString + getTimeoutMessageBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java similarity index 83% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java index 637902e79fb0..037c2dbd76f7 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java +++ b/owl-bot-staging/java-speech/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,11 +158,10 @@ 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);
 
   /**
-   *
-   *
    * 
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -217,13 +169,10 @@ public interface SpeechAdaptationOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return Whether the abnfGrammar field is set. */ boolean hasAbnfGrammar(); /** - * - * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -231,13 +180,10 @@ public interface SpeechAdaptationOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; - * * @return The abnfGrammar. */ com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getAbnfGrammar(); /** - * - * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java
new file mode 100644
index 000000000000..0322b2c20ba1
--- /dev/null
+++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
similarity index 78%
rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
index 6ae937dad075..2d92e1404445 100644
--- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
+++ b/owl-bot-staging/java-speech/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,53 +11,48 @@
  *
  * 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
   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
@@ -90,15 +68,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
@@ -114,15 +90,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
@@ -138,7 +111,6 @@ public int getPhrasesCount() {
    * 
* * repeated string phrases = 1; - * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -146,8 +118,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
@@ -163,19 +133,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_ = 0F; /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -188,7 +156,6 @@ public com.google.protobuf.ByteString getPhrasesBytes(int index) {
    * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -197,7 +164,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +175,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)); } @@ -234,7 +201,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -244,17 +212,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -271,110 +240,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) + getUnknownFields().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.
@@ -382,32 +345,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -419,9 +383,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
@@ -440,18 +404,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v1p1beta1.SpeechContext result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.SpeechContext result) {
       if (((bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000001);
@@ -470,39 +430,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechContext resul
     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;
@@ -510,8 +469,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_;
@@ -551,26 +509,23 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensurePhrasesIsMutable();
-                phrases_.add(s);
-                break;
-              } // case 10
-            case 37:
-              {
-                boost_ = input.readFloat();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 37
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensurePhrasesIsMutable();
+              phrases_.add(s);
+              break;
+            } // case 10
+            case 37: {
+              boost_ = input.readFloat();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 37
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -580,21 +535,16 @@ public Builder mergeFrom(
       } // finally
       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
@@ -610,15 +560,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
@@ -634,15 +582,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
@@ -658,7 +603,6 @@ public int getPhrasesCount() {
      * 
* * repeated string phrases = 1; - * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -666,8 +610,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
@@ -683,16 +625,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
@@ -708,23 +648,19 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhrases( + int index, java.lang.String value) { + if (value == null) { 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
@@ -740,22 +676,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPhrases( + java.lang.String value) { + if (value == null) { 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
@@ -771,19 +703,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
@@ -799,7 +730,6 @@ public Builder addAllPhrases(java.lang.Iterable values) {
      * 
* * repeated string phrases = 1; - * * @return This builder for chaining. */ public Builder clearPhrases() { @@ -809,8 +739,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
@@ -826,14 +754,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPhrasesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePhrasesIsMutable(); phrases_.add(value); @@ -841,10 +767,8 @@ public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { 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
@@ -857,7 +781,6 @@ public Builder addPhrasesBytes(com.google.protobuf.ByteString value) {
      * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -865,8 +788,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
@@ -879,20 +800,17 @@ public float getBoost() {
      * 
* * float boost = 4; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000002; 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
@@ -905,7 +823,6 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; - * * @return This builder for chaining. */ public Builder clearBoost() { @@ -914,9 +831,9 @@ public Builder clearBoost() { 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); } @@ -926,12 +843,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(); } @@ -940,27 +857,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -975,4 +892,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java similarity index 85% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java index 9c1e1ba589d1..1daae97d3d7c 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java new file mode 100644 index 000000000000..e04be912f63d --- /dev/null +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java @@ -0,0 +1,441 @@ +// 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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_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\"\373\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\022S\n\026" + + "speech_adaptation_info\030\007 \001(\01323.google.cl" + + "oud.speech.v1p1beta1.SpeechAdaptationInf" + + "o\022\022\n\nrequest_id\030\010 \001(\003\"\376\002\n\034LongRunningRec" + + "ognizeResponse\022G\n\007results\030\002 \003(\01326.google" + + ".cloud.speech.v1p1beta1.SpeechRecognitio" + + "nResult\0224\n\021total_billed_time\030\003 \001(\0132\031.goo" + + "gle.protobuf.Duration\022L\n\routput_config\030\006" + + " \001(\01325.google.cloud.speech.v1p1beta1.Tra" + + "nscriptOutputConfig\022(\n\014output_error\030\007 \001(" + + "\0132\022.google.rpc.Status\022S\n\026speech_adaptati" + + "on_info\030\010 \001(\01323.google.cloud.speech.v1p1" + + "beta1.SpeechAdaptationInfo\022\022\n\nrequest_id" + + "\030\t \001(\003\"\203\002\n\034LongRunningRecognizeMetadata\022" + + "\030\n\020progress_percent\030\001 \001(\005\022.\n\nstart_time\030" + + "\002 \001(\0132\032.google.protobuf.Timestamp\0224\n\020las" + + "t_update_time\030\003 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022\020\n\003uri\030\004 \001(\tB\003\340A\003\022Q\n\routput_conf" + + "ig\030\005 \001(\01325.google.cloud.speech.v1p1beta1" + + ".TranscriptOutputConfigB\003\340A\003\"\336\003\n\032Streami" + + "ngRecognizeResponse\022!\n\005error\030\001 \001(\0132\022.goo" + + "gle.rpc.Status\022J\n\007results\030\002 \003(\01329.google" + + ".cloud.speech.v1p1beta1.StreamingRecogni" + + "tionResult\022d\n\021speech_event_type\030\004 \001(\0162I." + + "google.cloud.speech.v1p1beta1.StreamingR" + + "ecognizeResponse.SpeechEventType\0224\n\021tota" + + "l_billed_time\030\005 \001(\0132\031.google.protobuf.Du" + + "ration\022S\n\026speech_adaptation_info\030\t \001(\01323" + + ".google.cloud.speech.v1p1beta1.SpeechAda" + + "ptationInfo\022\022\n\nrequest_id\030\n \001(\003\"L\n\017Speec" + + "hEventType\022\034\n\030SPEECH_EVENT_UNSPECIFIED\020\000" + + "\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\371\001\n\032Stream" + + "ingRecognitionResult\022Q\n\014alternatives\030\001 \003" + + "(\0132;.google.cloud.speech.v1p1beta1.Speec" + + "hRecognitionAlternative\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\013chan" + + "nel_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A" + + "\003\"\321\001\n\027SpeechRecognitionResult\022Q\n\014alterna" + + "tives\030\001 \003(\0132;.google.cloud.speech.v1p1be" + + "ta1.SpeechRecognitionAlternative\022\023\n\013chan" + + "nel_tag\030\002 \001(\005\0222\n\017result_end_time\030\004 \001(\0132\031" + + ".google.protobuf.Duration\022\032\n\rlanguage_co" + + "de\030\005 \001(\tB\003\340A\003\"~\n\034SpeechRecognitionAltern" + + "ative\022\022\n\ntranscript\030\001 \001(\t\022\022\n\nconfidence\030" + + "\002 \001(\002\0226\n\005words\030\003 \003(\0132\'.google.cloud.spee" + + "ch.v1p1beta1.WordInfo\"\242\001\n\010WordInfo\022-\n\nst" + + "art_time\030\001 \001(\0132\031.google.protobuf.Duratio" + + "n\022+\n\010end_time\030\002 \001(\0132\031.google.protobuf.Du" + + "ration\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\003\"K\n\024SpeechAdap" + + "tationInfo\022\032\n\022adaptation_timeout\030\001 \001(\010\022\027" + + "\n\017timeout_message\030\004 \001(\t2\202\005\n\006Speech\022\245\001\n\tR" + + "ecognize\022/.google.cloud.speech.v1p1beta1" + + ".RecognizeRequest\0320.google.cloud.speech." + + "v1p1beta1.RecognizeResponse\"5\202\323\344\223\002 \"\033/v1" + + "p1beta1/speech:recognize:\001*\332A\014config,aud" + + "io\022\362\001\n\024LongRunningRecognize\022:.google.clo" + + "ud.speech.v1p1beta1.LongRunningRecognize" + + "Request\032\035.google.longrunning.Operation\"\177" + + "\202\323\344\223\002+\"&/v1p1beta1/speech:longrunningrec" + + "ognize:\001*\332A\014config,audio\312A<\n\034LongRunning" + + "RecognizeResponse\022\034LongRunningRecognizeM" + + "etadata\022\217\001\n\022StreamingRecognize\0228.google." + + "cloud.speech.v1p1beta1.StreamingRecogniz" + + "eRequest\0329.google.cloud.speech.v1p1beta1" + + ".StreamingRecognizeResponse\"\000(\0010\001\032I\312A\025sp" + + "eech.googleapis.com\322A.https://www.google" + + "apis.com/auth/cloud-platformB\200\001\n!com.goo" + + "gle.cloud.speech.v1p1beta1B\013SpeechProtoP" + + "\001ZCgoogle.golang.org/genproto/googleapis" + + "/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", "SpeechAdaptationInfo", "RequestId", }); + 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", "SpeechAdaptationInfo", "RequestId", }); + 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", "SpeechAdaptationInfo", "RequestId", }); + 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", }); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor, + new java.lang.String[] { "AdaptationTimeout", "TimeoutMessage", }); + 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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java similarity index 74% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java index e6ddb84c1de8..180eb2a0b33f 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java +++ b/owl-bot-staging/java-speech/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,37 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") 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
@@ -83,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string transcript = 1; - * * @return The transcript. */ @java.lang.Override @@ -92,15 +69,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
@@ -109,15 +85,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 { @@ -128,8 +105,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_ = 0F; /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -141,7 +116,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -150,12 +124,9 @@ public float getConfidence() { } public static final int WORDS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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
@@ -169,8 +140,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
@@ -180,13 +149,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
@@ -200,8 +167,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
@@ -215,8 +180,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
@@ -226,12 +189,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;
@@ -243,7 +206,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_);
     }
@@ -266,10 +230,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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -279,18 +245,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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -305,7 +273,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();
@@ -316,136 +285,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -463,14 +425,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(); } @@ -485,18 +446,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result) { if (wordsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -508,8 +465,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result) { + private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.transcript_ = transcript_; @@ -523,39 +479,38 @@ private void buildPartial0( 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; @@ -563,9 +518,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_; bitField0_ |= 0x00000001; @@ -592,10 +545,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlte wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000004); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWordsFieldBuilder() - : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWordsFieldBuilder() : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -627,38 +579,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - transcript_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: - { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - case 26: - { - com.google.cloud.speech.v1p1beta1.WordInfo m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.WordInfo.parser(), extensionRegistry); - if (wordsBuilder_ == null) { - ensureWordsIsMutable(); - words_.add(m); - } else { - wordsBuilder_.addMessage(m); - } - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + transcript_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 26: { + com.google.cloud.speech.v1p1beta1.WordInfo m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.WordInfo.parser(), + extensionRegistry); + if (wordsBuilder_ == null) { + ensureWordsIsMutable(); + words_.add(m); + } else { + wordsBuilder_.addMessage(m); + } + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -668,13 +617,10 @@ public Builder mergeFrom( } // finally 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
@@ -683,13 +629,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; @@ -698,8 +644,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
@@ -708,14 +652,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 { @@ -723,8 +668,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
@@ -733,22 +676,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTranscript( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } transcript_ = value; bitField0_ |= 0x00000001; 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
@@ -757,7 +696,6 @@ public Builder setTranscript(java.lang.String value) {
      * 
* * string transcript = 1; - * * @return This builder for chaining. */ public Builder clearTranscript() { @@ -767,8 +705,6 @@ public Builder clearTranscript() { return this; } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -777,14 +713,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTranscriptBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); transcript_ = value; bitField0_ |= 0x00000001; @@ -792,10 +726,8 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { 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
@@ -807,7 +739,6 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -815,8 +746,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
@@ -828,20 +757,17 @@ public float getConfidence() {
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000002; 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
@@ -853,7 +779,6 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -864,24 +789,18 @@ public Builder clearConfidence() { } private java.util.List words_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000004; - } + } } 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
@@ -898,8 +817,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
@@ -916,8 +833,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
@@ -934,8 +849,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
@@ -944,7 +857,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();
@@ -958,8 +872,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
@@ -980,8 +892,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
@@ -1004,8 +914,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
@@ -1014,7 +922,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();
@@ -1028,8 +937,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
@@ -1038,7 +945,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());
@@ -1049,8 +957,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
@@ -1071,8 +977,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
@@ -1085,7 +989,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);
@@ -1093,8 +998,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
@@ -1114,8 +1017,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
@@ -1135,8 +1036,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
@@ -1145,12 +1044,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
@@ -1159,16 +1057,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
@@ -1177,8 +1073,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 {
@@ -1186,8 +1082,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
@@ -1197,12 +1091,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
@@ -1211,13 +1103,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
@@ -1226,30 +1117,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_ & 0x00000004) != 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_ & 0x00000004) != 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);
     }
 
@@ -1259,43 +1147,41 @@ 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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  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 {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1307,8 +1193,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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
similarity index 79%
rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
index 8b8eb60eb325..24dc349ab976 100644
--- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
+++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
similarity index 72%
rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
index 8068ee456a05..4b1ae85bc937 100644
--- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
+++ b/owl-bot-staging/java-speech/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,38 +26,33 @@ 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; } - - 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; - @SuppressWarnings("serial") - 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`).
@@ -83,17 +60,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`).
@@ -101,18 +74,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`).
@@ -120,16 +89,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`).
@@ -137,16 +103,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`).
@@ -154,20 +117,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_ = 0; /** - * - * *
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -175,7 +135,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
    * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ @java.lang.Override @@ -186,15 +145,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 @@ -202,26 +158,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.
@@ -231,18 +180,13 @@ public com.google.protobuf.Duration getResultEndTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
-    return resultEndTime_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : resultEndTime_;
+    return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
-
   @SuppressWarnings("serial")
   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
@@ -250,7 +194,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ @java.lang.Override @@ -259,15 +202,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
@@ -275,15 +217,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 { @@ -292,7 +235,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -304,7 +246,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)); } @@ -327,13 +270,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_); @@ -346,21 +292,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -390,136 +339,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -542,9 +484,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 @@ -563,18 +505,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult result) { if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -592,8 +530,9 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRe result.channelTag_ = channelTag_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.resultEndTime_ = - resultEndTimeBuilder_ == null ? resultEndTime_ : resultEndTimeBuilder_.build(); + result.resultEndTime_ = resultEndTimeBuilder_ == null + ? resultEndTime_ + : resultEndTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.languageCode_ = languageCode_; @@ -604,39 +543,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRe 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; @@ -644,8 +582,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()) { @@ -664,10 +601,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_); } @@ -710,45 +646,42 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), - extensionRegistry); - if (alternativesBuilder_ == null) { - ensureAlternativesIsMutable(); - alternatives_.add(m); - } else { - alternativesBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: - { - channelTag_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 34: - { - input.readMessage(getResultEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), + extensionRegistry); + if (alternativesBuilder_ == null) { + ensureAlternativesIsMutable(); + alternatives_.add(m); + } else { + alternativesBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + channelTag_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 34: { + input.readMessage( + getResultEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -758,30 +691,21 @@ public Builder mergeFrom( } // finally 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`).
@@ -789,11 +713,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 { @@ -801,8 +723,6 @@ private void ensureAlternativesIsMutable() { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -810,8 +730,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) { @@ -821,8 +740,6 @@ public int getAlternativesCount() { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -830,11 +747,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 { @@ -842,8 +757,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -851,8 +764,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) { @@ -869,8 +781,6 @@ public Builder setAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -878,12 +788,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()); @@ -894,8 +802,6 @@ public Builder setAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -903,11 +809,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(); @@ -921,8 +825,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -930,8 +832,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) { @@ -948,8 +849,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -957,8 +856,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) { @@ -972,8 +870,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -981,12 +877,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()); @@ -997,8 +891,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1006,15 +898,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); @@ -1022,8 +913,6 @@ public Builder addAllAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1031,8 +920,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) { @@ -1045,8 +933,6 @@ public Builder clearAlternatives() { return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1054,8 +940,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) { @@ -1068,8 +953,6 @@ public Builder removeAlternatives(int index) { return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1077,16 +960,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`).
@@ -1094,20 +974,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`).
@@ -1115,12 +991,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 { @@ -1128,8 +1002,6 @@ public Builder removeAlternatives(int index) { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1137,18 +1009,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`).
@@ -1156,19 +1023,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`).
@@ -1176,35 +1038,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.
@@ -1212,7 +1068,6 @@ public Builder removeAlternatives(int index) {
      * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ @java.lang.Override @@ -1220,8 +1075,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.
@@ -1229,20 +1082,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1250,7 +1100,6 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; - * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1262,49 +1111,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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.
@@ -1326,8 +1162,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.
@@ -1335,7 +1169,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();
       } else {
@@ -1346,8 +1181,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.
@@ -1357,9 +1190,9 @@ public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForV
      */
     public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && resultEndTime_ != null
-            && resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          resultEndTime_ != null &&
+          resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndTimeBuilder().mergeFrom(value);
         } else {
           resultEndTime_ = value;
@@ -1372,8 +1205,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.
@@ -1392,8 +1223,6 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1407,8 +1236,6 @@ public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1420,14 +1247,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.
@@ -1436,17 +1260,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_;
@@ -1454,8 +1275,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
@@ -1463,13 +1282,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; @@ -1478,8 +1297,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
@@ -1487,14 +1304,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 { @@ -1502,8 +1320,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
@@ -1511,22 +1327,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000008; 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
@@ -1534,7 +1346,6 @@ 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() { @@ -1544,8 +1355,6 @@ public Builder clearLanguageCode() { 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
@@ -1553,23 +1362,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000008; 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); } @@ -1579,12 +1386,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(); } @@ -1593,27 +1400,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1628,4 +1435,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java similarity index 79% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java index b836a20e796b..55e3c978e3c9 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java new file mode 100644 index 000000000000..6e3a93b944e8 --- /dev/null +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java @@ -0,0 +1,162 @@ +// 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_SpeechAdaptation_ABNFGrammar_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_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}\"\322\002\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\022" + + "Q\n\014abnf_grammar\030\004 \001(\0132;.google.cloud.spe" + + "ech.v1p1beta1.SpeechAdaptation.ABNFGramm" + + "ar\032#\n\013ABNFGrammar\022\024\n\014abnf_strings\030\001 \003(\t\"" + + "\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", "AbnfGrammar", }); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor = + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor, + new java.lang.String[] { "AbnfStrings", }); + 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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java similarity index 68% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java index f88b8d2f1c25..08f9f8234503 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java +++ b/owl-bot-staging/java-speech/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,58 +11,52 @@
  *
  * 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;
   }
-
-  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 @@ -87,49 +64,34 @@ 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() { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 2; private boolean singleUtterance_ = false; /** - * - * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -152,7 +114,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB
    * 
* * bool single_utterance = 2; - * * @return The singleUtterance. */ @java.lang.Override @@ -163,8 +124,6 @@ public boolean getSingleUtterance() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 3; private boolean interimResults_ = false; /** - * - * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -173,7 +132,6 @@ public boolean getSingleUtterance() {
    * 
* * bool interim_results = 3; - * * @return The interimResults. */ @java.lang.Override @@ -182,7 +140,6 @@ public boolean getInterimResults() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,7 +151,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()); } @@ -214,13 +172,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -230,20 +191,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -260,113 +223,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) + getUnknownFields().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.
@@ -374,32 +331,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -415,14 +373,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();
     }
 
@@ -437,20 +394,18 @@ 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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result = new com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result) {
+    private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
+        result.config_ = configBuilder_ == null
+            ? config_
+            : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.singleUtterance_ = singleUtterance_;
@@ -464,39 +419,38 @@ private void buildPartial0(
     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;
@@ -504,9 +458,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());
       }
@@ -542,31 +494,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                singleUtterance_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 24:
-              {
-                interimResults_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              singleUtterance_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 24: {
+              interimResults_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -576,66 +526,46 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * 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) { @@ -651,16 +581,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) { @@ -674,23 +600,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 (((bitField0_ & 0x00000001) != 0) - && config_ != null - && config_ - != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + config_ != null && + config_ != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -703,16 +624,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -725,16 +642,12 @@ 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() { bitField0_ |= 0x00000001; @@ -742,59 +655,45 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuil 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
@@ -817,7 +716,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB
      * 
* * bool single_utterance = 2; - * * @return The singleUtterance. */ @java.lang.Override @@ -825,8 +723,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
@@ -849,20 +745,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -885,7 +778,6 @@ public Builder setSingleUtterance(boolean value) {
      * 
* * bool single_utterance = 2; - * * @return This builder for chaining. */ public Builder clearSingleUtterance() { @@ -895,10 +787,8 @@ public Builder clearSingleUtterance() { 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
@@ -907,7 +797,6 @@ public Builder clearSingleUtterance() {
      * 
* * bool interim_results = 3; - * * @return The interimResults. */ @java.lang.Override @@ -915,8 +804,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
@@ -925,20 +812,17 @@ 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -947,7 +831,6 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 3; - * * @return This builder for chaining. */ public Builder clearInterimResults() { @@ -956,9 +839,9 @@ public Builder clearInterimResults() { 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); } @@ -968,13 +851,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(); } @@ -983,27 +865,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1018,4 +900,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java index 40aa63db7d36..73a8d60b1e89 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java similarity index 73% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java index 6726065e8e16..d59885078a57 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java +++ b/owl-bot-staging/java-speech/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,38 +27,33 @@ 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
-  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`).
@@ -84,17 +61,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`).
@@ -102,18 +75,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`).
@@ -121,16 +90,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`).
@@ -138,16 +104,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`).
@@ -155,20 +118,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_ = false; /** - * - * *
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -178,7 +138,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
    * 
* * bool is_final = 2; - * * @return The isFinal. */ @java.lang.Override @@ -189,8 +148,6 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_ = 0F; /** - * - * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -200,7 +157,6 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; - * * @return The stability. */ @java.lang.Override @@ -211,15 +167,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 @@ -227,26 +180,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.
@@ -256,16 +202,12 @@ public com.google.protobuf.Duration getResultEndTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
-    return resultEndTime_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : resultEndTime_;
+    return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
   }
 
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_ = 0;
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -273,7 +215,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ @java.lang.Override @@ -282,12 +223,9 @@ public int getChannelTag() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; - @SuppressWarnings("serial") 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
@@ -295,7 +233,6 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ @java.lang.Override @@ -304,15 +241,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
@@ -320,15 +256,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 { @@ -337,7 +274,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -349,7 +285,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)); } @@ -378,19 +315,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_); @@ -403,24 +345,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -437,9 +384,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(); @@ -454,104 +403,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.
@@ -559,32 +500,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -609,14 +551,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();
     }
 
@@ -631,18 +572,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result) {
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -654,8 +591,7 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    private void buildPartial0(
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result) {
+    private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.isFinal_ = isFinal_;
@@ -664,8 +600,9 @@ private void buildPartial0(
         result.stability_ = stability_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.resultEndTime_ =
-            resultEndTimeBuilder_ == null ? resultEndTime_ : resultEndTimeBuilder_.build();
+        result.resultEndTime_ = resultEndTimeBuilder_ == null
+            ? resultEndTime_
+            : resultEndTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.channelTag_ = channelTag_;
@@ -679,39 +616,38 @@ private void buildPartial0(
     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;
@@ -719,9 +655,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()) {
@@ -740,10 +674,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_);
           }
@@ -792,57 +725,52 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(),
-                        extensionRegistry);
-                if (alternativesBuilder_ == null) {
-                  ensureAlternativesIsMutable();
-                  alternatives_.add(m);
-                } else {
-                  alternativesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 16:
-              {
-                isFinal_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 29:
-              {
-                stability_ = input.readFloat();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 29
-            case 34:
-              {
-                input.readMessage(getResultEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 40:
-              {
-                channelTag_ = input.readInt32();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-            case 50:
-              {
-                languageCode_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(),
+                      extensionRegistry);
+              if (alternativesBuilder_ == null) {
+                ensureAlternativesIsMutable();
+                alternatives_.add(m);
+              } else {
+                alternativesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 16: {
+              isFinal_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 29: {
+              stability_ = input.readFloat();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 29
+            case 34: {
+              input.readMessage(
+                  getResultEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 40: {
+              channelTag_ = input.readInt32();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            case 50: {
+              languageCode_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -852,30 +780,21 @@ public Builder mergeFrom(
       } // finally
       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`).
@@ -883,11 +802,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 { @@ -895,8 +812,6 @@ private void ensureAlternativesIsMutable() { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -904,8 +819,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) { @@ -915,8 +829,6 @@ public int getAlternativesCount() { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -924,11 +836,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 { @@ -936,8 +846,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -945,8 +853,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) { @@ -963,8 +870,6 @@ public Builder setAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -972,12 +877,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()); @@ -988,8 +891,6 @@ public Builder setAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -997,11 +898,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(); @@ -1015,8 +914,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1024,8 +921,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) { @@ -1042,8 +938,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1051,8 +945,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) { @@ -1066,8 +959,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1075,12 +966,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()); @@ -1091,8 +980,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1100,15 +987,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); @@ -1116,8 +1002,6 @@ public Builder addAllAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1125,8 +1009,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) { @@ -1139,8 +1022,6 @@ public Builder clearAlternatives() { return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1148,8 +1029,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) { @@ -1162,8 +1042,6 @@ public Builder removeAlternatives(int index) { return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1171,16 +1049,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`).
@@ -1188,20 +1063,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`).
@@ -1209,12 +1080,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 { @@ -1222,8 +1091,6 @@ public Builder removeAlternatives(int index) { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1231,18 +1098,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`).
@@ -1250,19 +1112,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`).
@@ -1270,35 +1127,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
@@ -1308,7 +1159,6 @@ public Builder removeAlternatives(int index) {
      * 
* * bool is_final = 2; - * * @return The isFinal. */ @java.lang.Override @@ -1316,8 +1166,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
@@ -1327,20 +1175,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1350,7 +1195,6 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; - * * @return This builder for chaining. */ public Builder clearIsFinal() { @@ -1360,10 +1204,8 @@ public Builder clearIsFinal() { 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
@@ -1373,7 +1215,6 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; - * * @return The stability. */ @java.lang.Override @@ -1381,8 +1222,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
@@ -1392,20 +1231,17 @@ public float getStability() {
      * 
* * float stability = 3; - * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; bitField0_ |= 0x00000004; 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
@@ -1415,7 +1251,6 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; - * * @return This builder for chaining. */ public Builder clearStability() { @@ -1427,49 +1262,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 ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * 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.
@@ -1491,8 +1313,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.
@@ -1500,7 +1320,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();
       } else {
@@ -1511,8 +1332,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.
@@ -1522,9 +1341,9 @@ public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForV
      */
     public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && resultEndTime_ != null
-            && resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          resultEndTime_ != null &&
+          resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndTimeBuilder().mergeFrom(value);
         } else {
           resultEndTime_ = value;
@@ -1537,8 +1356,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.
@@ -1557,8 +1374,6 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1572,8 +1387,6 @@ public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1585,14 +1398,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.
@@ -1601,26 +1411,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.
@@ -1628,7 +1433,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ @java.lang.Override @@ -1636,8 +1440,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.
@@ -1645,20 +1447,17 @@ 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1666,7 +1465,6 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; - * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1678,8 +1476,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
@@ -1687,13 +1483,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; @@ -1702,8 +1498,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
@@ -1711,14 +1505,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 { @@ -1726,8 +1521,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
@@ -1735,22 +1528,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000020; 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
@@ -1758,7 +1547,6 @@ 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() { @@ -1768,8 +1556,6 @@ public Builder clearLanguageCode() { 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
@@ -1777,23 +1563,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000020; 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); } @@ -1803,13 +1587,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(); } @@ -1818,27 +1601,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1853,4 +1636,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java similarity index 82% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java index 8a2935d3769e..3d6da9c0a6f4 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java index b7ab12b6c9c8..3d47de7e1678 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java +++ b/owl-bot-staging/java-speech/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,56 +14,52 @@
  *
  * 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;
   }
-
-  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;
     }
@@ -96,30 +75,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
@@ -127,7 +101,6 @@ public StreamingRequestCase getStreamingRequestCase() {
    * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; - * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -135,8 +108,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
@@ -144,19 +115,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
@@ -166,18 +134,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
@@ -190,7 +155,6 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getStreaming
    * 
* * bytes audio_content = 2; - * * @return Whether the audioContent field is set. */ @java.lang.Override @@ -198,8 +162,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
@@ -212,7 +174,6 @@ public boolean hasAudioContent() {
    * 
* * bytes audio_content = 2; - * * @return The audioContent. */ @java.lang.Override @@ -224,7 +185,6 @@ public com.google.protobuf.ByteString getAudioContent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,13 +196,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_); } getUnknownFields().writeTo(output); } @@ -254,14 +215,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -271,21 +231,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: @@ -319,104 +280,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
@@ -427,32 +380,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -466,9 +420,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
@@ -487,11 +441,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result = new com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -501,11 +452,11 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognizeR
       int from_bitField0_ = bitField0_;
     }
 
-    private void buildPartialOneofs(
-        com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result) {
+    private void buildPartialOneofs(com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result) {
       result.streamingRequestCase_ = streamingRequestCase_;
       result.streamingRequest_ = this.streamingRequest_;
-      if (streamingRequestCase_ == 1 && streamingConfigBuilder_ != null) {
+      if (streamingRequestCase_ == 1 &&
+          streamingConfigBuilder_ != null) {
         result.streamingRequest_ = streamingConfigBuilder_.build();
       }
     }
@@ -514,39 +465,38 @@ private void buildPartialOneofs(
     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;
@@ -554,23 +504,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.getUnknownFields());
       onChanged();
@@ -598,25 +544,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getStreamingConfigFieldBuilder().getBuilder(), extensionRegistry);
-                streamingRequestCase_ = 1;
-                break;
-              } // case 10
-            case 18:
-              {
-                streamingRequest_ = input.readBytes();
-                streamingRequestCase_ = 2;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getStreamingConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              streamingRequestCase_ = 1;
+              break;
+            } // case 10
+            case 18: {
+              streamingRequest_ = input.readBytes();
+              streamingRequestCase_ = 2;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -626,12 +571,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -644,13 +589,8 @@ public Builder clearStreamingRequest() {
     private int bitField0_;
 
     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
@@ -658,7 +598,6 @@ public Builder clearStreamingRequest() {
      * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; - * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -666,8 +605,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
@@ -675,7 +612,6 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; - * * @return The streamingConfig. */ @java.lang.Override @@ -693,8 +629,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
@@ -703,8 +637,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();
@@ -718,8 +651,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
@@ -740,8 +671,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
@@ -750,19 +679,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;
         }
@@ -778,8 +700,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
@@ -805,8 +725,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
@@ -815,13 +733,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
@@ -831,8 +746,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 {
@@ -843,8 +757,6 @@ public Builder clearStreamingConfig() {
       }
     }
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -854,20 +766,14 @@ 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());
@@ -879,8 +785,6 @@ public Builder clearStreamingConfig() {
     }
 
     /**
-     *
-     *
      * 
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -893,15 +797,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
@@ -914,7 +815,6 @@ public boolean hasAudioContent() {
      * 
* * bytes audio_content = 2; - * * @return The audioContent. */ public com.google.protobuf.ByteString getAudioContent() { @@ -924,8 +824,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
@@ -938,22 +836,17 @@ 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(); - } + if (value == null) { 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
@@ -966,7 +859,6 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 2; - * * @return This builder for chaining. */ public Builder clearAudioContent() { @@ -977,9 +869,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); } @@ -989,12 +881,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(); } @@ -1003,27 +895,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1038,4 +930,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java similarity index 78% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java index f6b61734f16b..e77bf66cfcba 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java similarity index 74% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java index fba0d2affa9b..0c9ad5afff96 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java +++ b/owl-bot-staging/java-speech/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,43 +61,39 @@ 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;
   }
-
-  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.
      * 
@@ -124,8 +102,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
@@ -143,8 +119,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * No speech event specified.
      * 
@@ -153,8 +127,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
@@ -169,6 +141,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(
@@ -193,43 +166,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();
@@ -237,7 +206,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;
@@ -257,15 +227,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 @@ -273,15 +240,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 @@ -289,8 +253,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.
@@ -304,12 +266,9 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -320,13 +279,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.
@@ -337,14 +293,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.
@@ -359,8 +312,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.
@@ -375,8 +326,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.
@@ -395,58 +344,38 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder get
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 4;
   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; * @return The speechEventType. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType - getSpeechEventType() { - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.forNumber( - speechEventType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.forNumber(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 @@ -454,26 +383,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.
@@ -483,22 +405,17 @@ public com.google.protobuf.Duration getTotalBilledTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
-    return totalBilledTime_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : totalBilledTime_;
+    return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_;
   }
 
   public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 9;
   private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_;
   /**
-   *
-   *
    * 
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -506,25 +423,18 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } /** - * - * *
    * Provides information on adaptation behavior in response
    * 
@@ -532,25 +442,19 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptatio * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 10; private long requestId_ = 0L; /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 10; - * * @return The requestId. */ @java.lang.Override @@ -559,7 +463,6 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -571,17 +474,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) { @@ -603,26 +504,28 @@ 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()); } if (speechAdaptationInfo_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSpeechAdaptationInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, requestId_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(10, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -632,29 +535,33 @@ 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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo() + .equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() != other.getRequestId()) return false; + if (getRequestId() + != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -685,111 +592,104 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } 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`
@@ -831,32 +731,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -889,14 +790,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,18 +811,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000002) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -934,24 +830,25 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    private void buildPartial0(
-        com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result) {
+    private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
+        result.error_ = errorBuilder_ == null
+            ? error_
+            : errorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.speechEventType_ = speechEventType_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.totalBilledTime_ =
-            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
+            ? totalBilledTime_
+            : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.speechAdaptationInfo_ =
-            speechAdaptationInfoBuilder_ == null
-                ? speechAdaptationInfo_
-                : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
+            ? speechAdaptationInfo_
+            : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.requestId_ = requestId_;
@@ -962,39 +859,38 @@ private void buildPartial0(
     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;
@@ -1002,9 +898,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());
       }
@@ -1026,10 +920,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognizeRes
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            resultsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getResultsFieldBuilder()
-                    : null;
+            resultsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getResultsFieldBuilder() : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -1073,58 +966,56 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.parser(),
-                        extensionRegistry);
-                if (resultsBuilder_ == null) {
-                  ensureResultsIsMutable();
-                  results_.add(m);
-                } else {
-                  resultsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            case 32:
-              {
-                speechEventType_ = input.readEnum();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 32
-            case 42:
-              {
-                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 42
-            case 74:
-              {
-                input.readMessage(
-                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 74
-            case 80:
-              {
-                requestId_ = input.readInt64();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 80
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getErrorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.parser(),
+                      extensionRegistry);
+              if (resultsBuilder_ == null) {
+                ensureResultsIsMutable();
+                results_.add(m);
+              } else {
+                resultsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            case 32: {
+              speechEventType_ = input.readEnum();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 32
+            case 42: {
+              input.readMessage(
+                  getTotalBilledTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 42
+            case 74: {
+              input.readMessage(
+                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 74
+            case 80: {
+              requestId_ = input.readInt64();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 80
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1134,38 +1025,30 @@ public Builder mergeFrom(
       } // finally
       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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * 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() { @@ -1176,8 +1059,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.
@@ -1199,8 +1080,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.
@@ -1208,7 +1087,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();
       } else {
@@ -1219,8 +1099,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.
@@ -1230,9 +1108,9 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
      */
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && error_ != null
-            && error_ != com.google.rpc.Status.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          error_ != null &&
+          error_ != com.google.rpc.Status.getDefaultInstance()) {
           getErrorBuilder().mergeFrom(value);
         } else {
           error_ = value;
@@ -1245,8 +1123,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.
@@ -1265,8 +1141,6 @@ public Builder clearError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1280,8 +1154,6 @@ public com.google.rpc.Status.Builder getErrorBuilder() {
       return getErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1293,12 +1165,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.
@@ -1307,40 +1178,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_ & 0x00000002) != 0)) {
-        results_ =
-            new java.util.ArrayList(
-                results_);
+        results_ = new java.util.ArrayList(results_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     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.
@@ -1350,8 +1213,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 {
@@ -1359,8 +1221,6 @@ private void ensureResultsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1378,8 +1238,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1397,8 +1255,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.
@@ -1423,8 +1279,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.
@@ -1435,8 +1289,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());
@@ -1447,8 +1300,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.
@@ -1472,8 +1323,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.
@@ -1498,8 +1347,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.
@@ -1521,8 +1368,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.
@@ -1533,8 +1378,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());
@@ -1545,8 +1389,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.
@@ -1557,11 +1399,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);
@@ -1569,8 +1411,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.
@@ -1591,8 +1431,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.
@@ -1613,8 +1451,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.
@@ -1629,8 +1465,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.
@@ -1640,17 +1474,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.
@@ -1660,9 +1491,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 {
@@ -1670,8 +1500,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.
@@ -1681,15 +1509,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.
@@ -1701,14 +1525,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.
@@ -1718,23 +1538,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_ & 0x00000002) != 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_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1742,33 +1559,22 @@ 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. */ @@ -1779,45 +1585,28 @@ public Builder setSpeechEventTypeValue(int value) { 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() { - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.forNumber( - speechEventType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType - .UNRECOGNIZED - : result; + public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.forNumber(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(); } @@ -1827,16 +1616,11 @@ public Builder setSpeechEventType( 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() { @@ -1848,49 +1632,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 ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * 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.
@@ -1912,8 +1683,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.
@@ -1921,7 +1690,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();
       } else {
@@ -1932,8 +1702,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.
@@ -1943,9 +1711,9 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo
      */
     public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       if (totalBilledTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && totalBilledTime_ != null
-            && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          totalBilledTime_ != null &&
+          totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getTotalBilledTimeBuilder().mergeFrom(value);
         } else {
           totalBilledTime_ = value;
@@ -1958,8 +1726,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.
@@ -1978,8 +1744,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.
@@ -1993,8 +1757,6 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() {
       return getTotalBilledTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -2006,14 +1768,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.
@@ -2022,17 +1781,14 @@ 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_;
@@ -2040,55 +1796,41 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
 
     private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo,
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder,
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>
-        speechAdaptationInfoBuilder_;
+        com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_;
     /**
-     *
-     *
      * 
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public Builder setSpeechAdaptationInfo( - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2102,8 +1844,6 @@ public Builder setSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -2122,21 +1862,17 @@ public Builder setSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public Builder mergeSpeechAdaptationInfo( - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && speechAdaptationInfo_ != null - && speechAdaptationInfo_ - != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + speechAdaptationInfo_ != null && + speechAdaptationInfo_ != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -2149,8 +1885,6 @@ public Builder mergeSpeechAdaptationInfo( return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -2168,42 +1902,33 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder - getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() - : speechAdaptationInfo_; + return speechAdaptationInfo_ == null ? + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; } } /** - * - * *
      * Provides information on adaptation behavior in response
      * 
@@ -2211,33 +1936,27 @@ public Builder clearSpeechAdaptationInfo() { * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), getParentForChildren(), isClean()); + speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), + getParentForChildren(), + isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_; + private long requestId_ ; /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; - * * @return The requestId. */ @java.lang.Override @@ -2245,35 +1964,29 @@ public long getRequestId() { return requestId_; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; - * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -2282,9 +1995,9 @@ public Builder clearRequestId() { 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); } @@ -2294,13 +2007,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(); } @@ -2309,27 +2021,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2344,4 +2056,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java similarity index 83% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java index 5997fc2d431a..b1386d9a3fa9 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/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.
@@ -197,51 +146,39 @@ com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder getResults
   com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; - * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** - * - * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder - getSpeechAdaptationInfoOrBuilder(); + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); /** - * - * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 10; - * * @return The requestId. */ long getRequestId(); diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java index 615d5bf14767..e15a0b452024 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java +++ b/owl-bot-staging/java-speech/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,133 +13,114 @@
  *
  * 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;
   }
-
-  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_ = ""; @@ -164,43 +128,38 @@ 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object search_ = ""; /** - * - * *
      * What to replace. Max length is 100 characters.
      * 
* * string search = 1; - * * @return The search. */ @java.lang.Override @@ -209,29 +168,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 { @@ -240,18 +199,14 @@ public com.google.protobuf.ByteString getSearchBytes() { } public static final int REPLACE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object replace_ = ""; /** - * - * *
      * What to replace with. Max length is 100 characters.
      * 
* * string replace = 2; - * * @return The replace. */ @java.lang.Override @@ -260,29 +215,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 { @@ -293,14 +248,11 @@ public com.google.protobuf.ByteString getReplaceBytes() { public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; private boolean caseSensitive_ = false; /** - * - * *
      * Whether the search is case sensitive.
      * 
* * bool case_sensitive = 3; - * * @return The caseSensitive. */ @java.lang.Override @@ -309,7 +261,6 @@ public boolean getCaseSensitive() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -321,7 +272,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_); } @@ -347,7 +299,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -357,17 +310,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -384,102 +339,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) + getUnknownFields().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 @@ -489,42 +437,39 @@ 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() - private Builder() {} + // Construct using com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -536,14 +481,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(); } @@ -558,17 +502,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result = new com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result) { + private void buildPartial0(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.search_ = search_; @@ -585,52 +525,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -670,31 +604,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - search_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - replace_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - caseSensitive_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + search_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + replace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + caseSensitive_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -704,25 +634,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -731,21 +658,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 { @@ -753,35 +679,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSearch( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } search_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; - * * @return This builder for chaining. */ public Builder clearSearch() { @@ -791,21 +710,17 @@ public Builder clearSearch() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSearchBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); search_ = value; bitField0_ |= 0x00000001; @@ -815,20 +730,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; @@ -837,21 +750,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 { @@ -859,35 +771,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReplace( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } replace_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; - * * @return This builder for chaining. */ public Builder clearReplace() { @@ -897,21 +802,17 @@ public Builder clearReplace() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReplaceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); replace_ = value; bitField0_ |= 0x00000002; @@ -919,16 +820,13 @@ public Builder setReplaceBytes(com.google.protobuf.ByteString value) { return this; } - private boolean caseSensitive_; + private boolean caseSensitive_ ; /** - * - * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; - * * @return The caseSensitive. */ @java.lang.Override @@ -936,33 +834,27 @@ 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; - * * @return This builder for chaining. */ public Builder clearCaseSensitive() { @@ -971,7 +863,6 @@ public Builder clearCaseSensitive() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -984,44 +875,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1033,19 +921,16 @@ 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; - @SuppressWarnings("serial") 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"
@@ -1056,13 +941,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"
@@ -1073,14 +955,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"
@@ -1095,8 +974,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"
@@ -1111,8 +988,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"
@@ -1123,13 +998,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;
@@ -1141,7 +1015,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));
     }
@@ -1155,7 +1030,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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1165,15 +1041,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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -1195,104 +1071,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
@@ -1302,32 +1170,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1343,9 +1212,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
@@ -1364,18 +1233,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v1p1beta1.TranscriptNormalization result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.TranscriptNormalization result) {
       if (entriesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           entries_ = java.util.Collections.unmodifiableList(entries_);
@@ -1395,39 +1260,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.TranscriptNormaliza
     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;
@@ -1435,8 +1299,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()) {
@@ -1455,10 +1318,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_);
           }
@@ -1490,27 +1352,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry m =
-                    input.readMessage(
-                        com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.parser(),
-                        extensionRegistry);
-                if (entriesBuilder_ == null) {
-                  ensureEntriesIsMutable();
-                  entries_.add(m);
-                } else {
-                  entriesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry m =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.parser(),
+                      extensionRegistry);
+              if (entriesBuilder_ == null) {
+                ensureEntriesIsMutable();
+                entries_.add(m);
+              } else {
+                entriesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1520,30 +1380,21 @@ public Builder mergeFrom(
       } // finally
       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"
@@ -1551,11 +1402,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 { @@ -1563,8 +1412,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"
@@ -1572,8 +1419,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) { @@ -1583,8 +1429,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"
@@ -1592,8 +1436,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) { @@ -1603,8 +1446,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"
@@ -1612,8 +1453,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) { @@ -1630,8 +1470,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"
@@ -1639,12 +1477,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()); @@ -1655,8 +1491,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"
@@ -1664,11 +1498,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(); @@ -1682,8 +1514,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"
@@ -1691,8 +1521,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) { @@ -1709,8 +1538,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"
@@ -1718,8 +1545,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) { @@ -1733,8 +1559,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"
@@ -1742,12 +1566,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()); @@ -1758,8 +1580,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"
@@ -1767,16 +1587,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); @@ -1784,8 +1602,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"
@@ -1793,8 +1609,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) { @@ -1807,8 +1622,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"
@@ -1816,8 +1629,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) { @@ -1830,8 +1642,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"
@@ -1839,16 +1649,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"
@@ -1856,20 +1663,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"
@@ -1877,12 +1680,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 { @@ -1890,8 +1691,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"
@@ -1899,18 +1698,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"
@@ -1918,19 +1712,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"
@@ -1938,33 +1727,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); } @@ -1974,12 +1759,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(); } @@ -1988,27 +1773,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2023,4 +1808,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.TranscriptNormalization getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java similarity index 78% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java index 11549b4c3678..fa51b40b7003 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
similarity index 67%
rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
index 6fb07026dcf3..65a8b62eb71a 100644
--- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
+++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
@@ -1,81 +1,60 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License 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; } - - 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; } @@ -91,28 +70,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
@@ -120,15 +95,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
@@ -136,7 +108,6 @@ public boolean hasGcsUri() {
    * 
* * string gcs_uri = 1; - * * @return The gcsUri. */ public java.lang.String getGcsUri() { @@ -147,7 +118,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; @@ -156,8 +128,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
@@ -165,17 +135,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; } @@ -186,7 +157,6 @@ public com.google.protobuf.ByteString getGcsUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,7 +168,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_); } @@ -222,18 +193,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: @@ -263,136 +234,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -403,9 +367,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 @@ -424,11 +388,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result = new com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -438,8 +399,7 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.TranscriptOutputCon int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result) { + private void buildPartialOneofs(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result) { result.outputTypeCase_ = outputTypeCase_; result.outputType_ = this.outputType_; } @@ -448,39 +408,38 @@ private void buildPartialOneofs( 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; @@ -488,20 +447,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.getUnknownFields()); onChanged(); @@ -529,20 +485,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - outputTypeCase_ = 1; - outputType_ = s; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + outputTypeCase_ = 1; + outputType_ = s; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -552,12 +506,12 @@ public Builder mergeFrom( } // finally 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() { @@ -570,8 +524,6 @@ public Builder clearOutputType() { private int bitField0_; /** - * - * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -579,7 +531,6 @@ public Builder clearOutputType() {
      * 
* * string gcs_uri = 1; - * * @return Whether the gcsUri field is set. */ @java.lang.Override @@ -587,8 +538,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
@@ -596,7 +545,6 @@ public boolean hasGcsUri() {
      * 
* * string gcs_uri = 1; - * * @return The gcsUri. */ @java.lang.Override @@ -606,7 +554,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; @@ -617,8 +566,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
@@ -626,18 +573,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; } @@ -647,8 +595,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
@@ -656,22 +602,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGcsUri( + java.lang.String value) { + if (value == null) { 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
@@ -679,7 +621,6 @@ public Builder setGcsUri(java.lang.String value) {
      * 
* * string gcs_uri = 1; - * * @return This builder for chaining. */ public Builder clearGcsUri() { @@ -691,8 +632,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
@@ -700,23 +639,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setGcsUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { 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); } @@ -726,12 +663,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(); } @@ -740,27 +677,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -775,4 +712,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java similarity index 61% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java index 102d1f01edf5..3733fac7b5f9 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java index 2145f8a07c4f..cdbcccc6ceb9 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java @@ -1,75 +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; } - - 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
@@ -82,10 +62,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 @@ -93,8 +70,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
@@ -107,21 +82,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
@@ -134,28 +102,21 @@ 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() { - return customClass_ == null - ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; } 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 @@ -163,14 +124,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 @@ -178,8 +136,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to be updated.
    * 
@@ -192,7 +148,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +159,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()); } @@ -221,10 +177,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,21 +192,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -275,136 +234,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -423,9 +375,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 @@ -444,11 +396,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -456,11 +405,14 @@ public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest buildPartial() private void buildPartial0(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.customClass_ = - customClassBuilder_ == null ? customClass_ : customClassBuilder_.build(); + result.customClass_ = customClassBuilder_ == null + ? customClass_ + : customClassBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -468,39 +420,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRe 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; @@ -508,8 +459,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()); } @@ -542,25 +492,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCustomClassFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -570,18 +521,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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
@@ -594,18 +539,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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -618,24 +558,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
@@ -648,9 +581,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) { @@ -666,8 +597,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
@@ -680,9 +609,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) { @@ -696,8 +623,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
@@ -710,15 +635,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 (((bitField0_ & 0x00000001) != 0) - && customClass_ != null - && customClass_ != com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + customClass_ != null && + customClass_ != com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -731,8 +654,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
@@ -745,9 +666,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -760,8 +679,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
@@ -774,9 +691,7 @@ 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() { bitField0_ |= 0x00000001; @@ -784,8 +699,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassBuild return getCustomClassFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -798,22 +711,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
@@ -826,22 +734,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_; @@ -849,47 +752,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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.
      * 
@@ -910,15 +800,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(); } else { @@ -929,8 +818,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -939,9 +826,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -954,8 +841,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -973,8 +858,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -987,8 +870,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -999,14 +880,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.
      * 
@@ -1014,24 +892,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); } @@ -1041,12 +916,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(); } @@ -1055,27 +930,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1090,4 +965,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java index debebb1437ec..5ffdf4623cc2 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java index afd2df61b155..1efe0649bd69 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java @@ -1,75 +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; } - - 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
@@ -82,10 +62,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 @@ -93,8 +70,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
@@ -107,21 +82,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
@@ -134,28 +102,21 @@ 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() { - return phraseSet_ == null - ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; } 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 @@ -163,14 +124,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 @@ -178,8 +136,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to be updated.
    * 
@@ -192,7 +148,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +159,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()); } @@ -221,10 +177,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,21 +192,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -275,136 +234,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -423,9 +375,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 @@ -444,11 +396,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -456,10 +405,14 @@ public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest buildPartial() { private void buildPartial0(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build(); + result.phraseSet_ = phraseSetBuilder_ == null + ? phraseSet_ + : phraseSetBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -467,39 +420,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequ 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; @@ -507,8 +459,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()); } @@ -541,25 +492,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getPhraseSetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -569,18 +521,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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
@@ -593,18 +539,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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -617,24 +558,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
@@ -647,9 +581,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) { @@ -665,8 +597,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
@@ -679,9 +609,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) { @@ -695,8 +623,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
@@ -709,15 +635,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 (((bitField0_ & 0x00000001) != 0) - && phraseSet_ != null - && phraseSet_ != com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + phraseSet_ != null && + phraseSet_ != com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -730,8 +654,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
@@ -744,9 +666,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -759,8 +679,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
@@ -773,9 +691,7 @@ 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() { bitField0_ |= 0x00000001; @@ -783,8 +699,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetBuilder() return getPhraseSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -797,22 +711,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
@@ -825,22 +734,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_; @@ -848,47 +752,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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.
      * 
@@ -909,15 +800,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(); } else { @@ -928,8 +818,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -938,9 +826,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -953,8 +841,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -972,8 +858,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -986,8 +870,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -998,14 +880,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.
      * 
@@ -1013,24 +892,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); } @@ -1040,12 +916,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(); } @@ -1054,27 +930,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1089,4 +965,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java index 5bb289426a97..ae3c2a999eb0 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java similarity index 76% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java index a8286eea3f95..4b5613106d6f 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java @@ -1,77 +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.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; } - - 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.
@@ -82,7 +61,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 @@ -90,8 +68,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.
@@ -102,7 +78,6 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Duration start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -110,8 +85,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.
@@ -131,8 +104,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.
@@ -143,7 +114,6 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -151,8 +121,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.
@@ -163,7 +131,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -171,8 +138,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.
@@ -190,18 +155,14 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
   }
 
   public static final int WORD_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object word_ = "";
   /**
-   *
-   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; - * * @return The word. */ @java.lang.Override @@ -210,29 +171,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 { @@ -243,8 +204,6 @@ public com.google.protobuf.ByteString getWordBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_ = 0F; /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -256,7 +215,6 @@ public com.google.protobuf.ByteString getWordBytes() {
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -267,8 +225,6 @@ public float getConfidence() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_ = 0; /** - * - * *
    * 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
@@ -278,7 +234,6 @@ public float getConfidence() {
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The speakerTag. */ @java.lang.Override @@ -287,7 +242,6 @@ public int getSpeakerTag() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -299,7 +253,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()); } @@ -325,19 +280,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -347,26 +306,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -389,7 +352,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) + getUnknownFields().hashCode(); @@ -397,136 +361,130 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -548,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_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 @@ -569,11 +527,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v1p1beta1.WordInfo result = new com.google.cloud.speech.v1p1beta1.WordInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -581,10 +536,14 @@ public com.google.cloud.speech.v1p1beta1.WordInfo buildPartial() { private void buildPartial0(com.google.cloud.speech.v1p1beta1.WordInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.word_ = word_; @@ -601,39 +560,38 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.WordInfo result) { 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; @@ -685,43 +643,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - word_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 37: - { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000008; - break; - } // case 37 - case 40: - { - speakerTag_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + word_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 37: { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + case 40: { + speakerTag_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -731,18 +687,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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.
@@ -753,15 +703,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_time = 1; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -772,7 +719,6 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Duration start_time = 1; - * * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { @@ -783,8 +729,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.
@@ -810,8 +754,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.
@@ -823,7 +765,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();
       } else {
@@ -834,8 +777,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.
@@ -849,9 +790,9 @@ public Builder setStartTime(com.google.protobuf.Duration.Builder builderForValue
      */
     public Builder mergeStartTime(com.google.protobuf.Duration value) {
       if (startTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && startTime_ != null
-            && startTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          startTime_ != null &&
+          startTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getStartTimeBuilder().mergeFrom(value);
         } else {
           startTime_ = value;
@@ -864,8 +805,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.
@@ -888,8 +827,6 @@ public Builder clearStartTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -907,8 +844,6 @@ public com.google.protobuf.Duration.Builder getStartTimeBuilder() {
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -924,12 +859,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.
@@ -942,17 +876,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_;
@@ -960,13 +891,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.
@@ -977,15 +903,12 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Duration end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -996,7 +919,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Duration end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { @@ -1007,8 +929,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.
@@ -1034,8 +954,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.
@@ -1047,7 +965,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();
       } else {
@@ -1058,8 +977,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.
@@ -1073,9 +990,9 @@ public Builder setEndTime(com.google.protobuf.Duration.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Duration value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1088,8 +1005,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.
@@ -1112,8 +1027,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1131,8 +1044,6 @@ public com.google.protobuf.Duration.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1148,12 +1059,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.
@@ -1166,17 +1076,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_;
@@ -1184,20 +1091,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; @@ -1206,21 +1111,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 { @@ -1228,35 +1132,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWord( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } word_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @return This builder for chaining. */ public Builder clearWord() { @@ -1266,21 +1163,17 @@ public Builder clearWord() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); word_ = value; bitField0_ |= 0x00000004; @@ -1288,10 +1181,8 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) { 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
@@ -1303,7 +1194,6 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1311,8 +1201,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
@@ -1324,20 +1212,17 @@ public float getConfidence() {
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000008; 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
@@ -1349,7 +1234,6 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -1359,10 +1243,8 @@ public Builder clearConfidence() { 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
@@ -1372,7 +1254,6 @@ public Builder clearConfidence() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The speakerTag. */ @java.lang.Override @@ -1380,8 +1261,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
@@ -1391,20 +1270,17 @@ 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; bitField0_ |= 0x00000010; 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
@@ -1414,7 +1290,6 @@ public Builder setSpeakerTag(int value) {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSpeakerTag() { @@ -1423,9 +1298,9 @@ public Builder clearSpeakerTag() { 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); } @@ -1435,12 +1310,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(); } @@ -1449,27 +1324,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1484,4 +1359,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java similarity index 84% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java index 0bdb11ab40df..b811f0f3088d 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java +++ b/owl-bot-staging/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto similarity index 100% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto similarity index 97% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto index 45ca97f2d13a..ed13bbefa3a1 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto @@ -34,7 +34,8 @@ option objc_class_prefix = "GCS"; // Service that implements Google Cloud Speech Adaptation API. service Adaptation { option (google.api.default_host) = "speech.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // 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 @@ -86,7 +87,8 @@ service Adaptation { post: "/v1p1beta1/{parent=projects/*/locations/*}/customClasses" body: "*" }; - option (google.api.method_signature) = "parent,custom_class,custom_class_id"; + option (google.api.method_signature) = + "parent,custom_class,custom_class_id"; } // Get a custom class. @@ -98,7 +100,8 @@ service Adaptation { } // List custom classes. - rpc ListCustomClasses(ListCustomClassesRequest) returns (ListCustomClassesResponse) { + rpc ListCustomClasses(ListCustomClassesRequest) + returns (ListCustomClassesResponse) { option (google.api.http) = { get: "/v1p1beta1/{parent=projects/*/locations/*}/customClasses" }; @@ -115,7 +118,8 @@ service Adaptation { } // Delete a custom class. - rpc DeleteCustomClass(DeleteCustomClassRequest) returns (google.protobuf.Empty) { + rpc DeleteCustomClass(DeleteCustomClassRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1p1beta1/{name=projects/*/locations/*/customClasses/*}" }; @@ -125,7 +129,8 @@ service Adaptation { // Message sent by the client for the `CreatePhraseSet` method. message CreatePhraseSetRequest { - // Required. The parent resource where this phrase set will be created. Format: + // Required. The parent resource where this phrase set will be created. + // Format: // // `projects/{project}/locations/{location}/phraseSets` // @@ -248,7 +253,8 @@ message DeletePhraseSetRequest { // Message sent by the client for the `CreateCustomClass` method. message CreateCustomClassRequest { - // Required. The parent resource where this custom class will be created. Format: + // Required. The parent resource where this custom class will be created. + // Format: // // `projects/{project}/locations/{location}/customClasses` // diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto similarity index 98% rename from java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto rename to owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto index 945872618ed5..215a6a8a0215 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto +++ b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto @@ -82,8 +82,8 @@ message PhraseSet { // Speech-to-Text supports three locations: `global`, `us` (US North America), // and `eu` (Europe). If you are calling the `speech.googleapis.com` // endpoint, use the `global` location. To specify a region, use a - // [regional endpoint](/speech-to-text/docs/endpoints) with matching `us` or - // `eu` location value. + // [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) + // with matching `us` or `eu` location value. message Phrase { // The phrase itself. string value = 1; diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetEndpoint.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/AsyncCreateCustomClass.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/AsyncCreateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/AsyncCreateCustomClass.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/AsyncCreateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClass.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClass.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/AsyncCreatePhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/AsyncCreatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/AsyncCreatePhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/AsyncCreatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClass.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClass.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/AsyncDeletePhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/AsyncDeletePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/AsyncDeletePhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/AsyncDeletePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetString.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetString.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/AsyncGetCustomClass.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/AsyncGetCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/AsyncGetCustomClass.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/AsyncGetCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClass.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClass.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassString.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassString.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/AsyncGetPhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/AsyncGetPhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/AsyncGetPhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/AsyncGetPhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetString.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetString.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClasses.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClasses.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClasses.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClasses.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClasses.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClasses.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClasses.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClasses.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesString.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesString.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSetPaged.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSetPaged.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSetPaged.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSetPaged.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetLocationname.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetLocationname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetLocationname.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetLocationname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetString.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetString.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClass.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClass.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetEndpoint.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognize.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognize.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognize.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognize.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/AsyncRecognize.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/AsyncRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/AsyncRecognize.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/AsyncRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognize.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognize.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/streamingrecognize/AsyncStreamingRecognize.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/streamingrecognize/AsyncStreamingRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/streamingrecognize/AsyncStreamingRecognize.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/streamingrecognize/AsyncStreamingRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java b/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java rename to owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java index bfeea92bfc4d..5cd92e22a6e4 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java +++ b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java @@ -32,6 +32,7 @@ import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; 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.v2.stub.SpeechStubSettings; diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/gapic_metadata.json b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/gapic_metadata.json similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/gapic_metadata.json rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/gapic_metadata.json diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/package-info.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/package-info.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/package-info.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/package-info.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechCallableFactory.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechCallableFactory.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechCallableFactory.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java index 00d92d8d8432..6930b03ab6c2 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java +++ b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java @@ -68,6 +68,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/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechCallableFactory.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechCallableFactory.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechCallableFactory.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechCallableFactory.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java similarity index 99% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java index 1a9d59fe1317..44cce61e86aa 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java +++ b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java @@ -32,6 +32,7 @@ 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.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java similarity index 100% rename from java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeech.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeech.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeech.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeech.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeechImpl.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeechImpl.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeechImpl.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeechImpl.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientHttpJsonTest.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientHttpJsonTest.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientHttpJsonTest.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientHttpJsonTest.java diff --git a/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientTest.java b/owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientTest.java similarity index 100% rename from java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientTest.java rename to owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientTest.java diff --git a/owl-bot-staging/java-speech/v2/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java b/owl-bot-staging/java-speech/v2/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java new file mode 100644 index 000000000000..9d4c9c88b68d --- /dev/null +++ b/owl-bot-staging/java-speech/v2/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java @@ -0,0 +1,2207 @@ +package com.google.cloud.speech.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Enables speech transcription and resource management.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/speech/v2/cloud_speech.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SpeechGrpc { + + private SpeechGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.speech.v2.Speech"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateRecognizerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRecognizer", + requestType = com.google.cloud.speech.v2.CreateRecognizerRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateRecognizerMethod() { + io.grpc.MethodDescriptor getCreateRecognizerMethod; + if ((getCreateRecognizerMethod = SpeechGrpc.getCreateRecognizerMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getCreateRecognizerMethod = SpeechGrpc.getCreateRecognizerMethod) == null) { + SpeechGrpc.getCreateRecognizerMethod = getCreateRecognizerMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRecognizer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreateRecognizer")) + .build(); + } + } + } + return getCreateRecognizerMethod; + } + + private static volatile io.grpc.MethodDescriptor getListRecognizersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRecognizers", + requestType = com.google.cloud.speech.v2.ListRecognizersRequest.class, + responseType = com.google.cloud.speech.v2.ListRecognizersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListRecognizersMethod() { + io.grpc.MethodDescriptor getListRecognizersMethod; + if ((getListRecognizersMethod = SpeechGrpc.getListRecognizersMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getListRecognizersMethod = SpeechGrpc.getListRecognizersMethod) == null) { + SpeechGrpc.getListRecognizersMethod = getListRecognizersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRecognizers")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.ListRecognizersRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.ListRecognizersResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListRecognizers")) + .build(); + } + } + } + return getListRecognizersMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetRecognizerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRecognizer", + requestType = com.google.cloud.speech.v2.GetRecognizerRequest.class, + responseType = com.google.cloud.speech.v2.Recognizer.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetRecognizerMethod() { + io.grpc.MethodDescriptor getGetRecognizerMethod; + if ((getGetRecognizerMethod = SpeechGrpc.getGetRecognizerMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getGetRecognizerMethod = SpeechGrpc.getGetRecognizerMethod) == null) { + SpeechGrpc.getGetRecognizerMethod = getGetRecognizerMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRecognizer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.GetRecognizerRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.Recognizer.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetRecognizer")) + .build(); + } + } + } + return getGetRecognizerMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateRecognizerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateRecognizer", + requestType = com.google.cloud.speech.v2.UpdateRecognizerRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateRecognizerMethod() { + io.grpc.MethodDescriptor getUpdateRecognizerMethod; + if ((getUpdateRecognizerMethod = SpeechGrpc.getUpdateRecognizerMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUpdateRecognizerMethod = SpeechGrpc.getUpdateRecognizerMethod) == null) { + SpeechGrpc.getUpdateRecognizerMethod = getUpdateRecognizerMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRecognizer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdateRecognizer")) + .build(); + } + } + } + return getUpdateRecognizerMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteRecognizerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRecognizer", + requestType = com.google.cloud.speech.v2.DeleteRecognizerRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteRecognizerMethod() { + io.grpc.MethodDescriptor getDeleteRecognizerMethod; + if ((getDeleteRecognizerMethod = SpeechGrpc.getDeleteRecognizerMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getDeleteRecognizerMethod = SpeechGrpc.getDeleteRecognizerMethod) == null) { + SpeechGrpc.getDeleteRecognizerMethod = getDeleteRecognizerMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRecognizer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeleteRecognizer")) + .build(); + } + } + } + return getDeleteRecognizerMethod; + } + + private static volatile io.grpc.MethodDescriptor getUndeleteRecognizerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeleteRecognizer", + requestType = com.google.cloud.speech.v2.UndeleteRecognizerRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUndeleteRecognizerMethod() { + io.grpc.MethodDescriptor getUndeleteRecognizerMethod; + if ((getUndeleteRecognizerMethod = SpeechGrpc.getUndeleteRecognizerMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUndeleteRecognizerMethod = SpeechGrpc.getUndeleteRecognizerMethod) == null) { + SpeechGrpc.getUndeleteRecognizerMethod = getUndeleteRecognizerMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeleteRecognizer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UndeleteRecognizer")) + .build(); + } + } + } + return getUndeleteRecognizerMethod; + } + + private static volatile io.grpc.MethodDescriptor getRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Recognize", + requestType = com.google.cloud.speech.v2.RecognizeRequest.class, + responseType = com.google.cloud.speech.v2.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.v2.RecognizeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.RecognizeResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) + .build(); + } + } + } + return getRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor getStreamingRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", + requestType = com.google.cloud.speech.v2.StreamingRecognizeRequest.class, + responseType = com.google.cloud.speech.v2.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.v2.StreamingRecognizeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.StreamingRecognizeResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) + .build(); + } + } + } + return getStreamingRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor getBatchRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchRecognize", + requestType = com.google.cloud.speech.v2.BatchRecognizeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBatchRecognizeMethod() { + io.grpc.MethodDescriptor getBatchRecognizeMethod; + if ((getBatchRecognizeMethod = SpeechGrpc.getBatchRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getBatchRecognizeMethod = SpeechGrpc.getBatchRecognizeMethod) == null) { + SpeechGrpc.getBatchRecognizeMethod = getBatchRecognizeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("BatchRecognize")) + .build(); + } + } + } + return getBatchRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConfig", + requestType = com.google.cloud.speech.v2.GetConfigRequest.class, + responseType = com.google.cloud.speech.v2.Config.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetConfigMethod() { + io.grpc.MethodDescriptor getGetConfigMethod; + if ((getGetConfigMethod = SpeechGrpc.getGetConfigMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getGetConfigMethod = SpeechGrpc.getGetConfigMethod) == null) { + SpeechGrpc.getGetConfigMethod = getGetConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.GetConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.Config.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetConfig")) + .build(); + } + } + } + return getGetConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConfig", + requestType = com.google.cloud.speech.v2.UpdateConfigRequest.class, + responseType = com.google.cloud.speech.v2.Config.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateConfigMethod() { + io.grpc.MethodDescriptor getUpdateConfigMethod; + if ((getUpdateConfigMethod = SpeechGrpc.getUpdateConfigMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUpdateConfigMethod = SpeechGrpc.getUpdateConfigMethod) == null) { + SpeechGrpc.getUpdateConfigMethod = getUpdateConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.Config.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdateConfig")) + .build(); + } + } + } + return getUpdateConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", + requestType = com.google.cloud.speech.v2.CreateCustomClassRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateCustomClassMethod() { + io.grpc.MethodDescriptor getCreateCustomClassMethod; + if ((getCreateCustomClassMethod = SpeechGrpc.getCreateCustomClassMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getCreateCustomClassMethod = SpeechGrpc.getCreateCustomClassMethod) == null) { + SpeechGrpc.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.v2.CreateCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreateCustomClass")) + .build(); + } + } + } + return getCreateCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCustomClassesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", + requestType = com.google.cloud.speech.v2.ListCustomClassesRequest.class, + responseType = com.google.cloud.speech.v2.ListCustomClassesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCustomClassesMethod() { + io.grpc.MethodDescriptor getListCustomClassesMethod; + if ((getListCustomClassesMethod = SpeechGrpc.getListCustomClassesMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getListCustomClassesMethod = SpeechGrpc.getListCustomClassesMethod) == null) { + SpeechGrpc.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.v2.ListCustomClassesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.ListCustomClassesResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListCustomClasses")) + .build(); + } + } + } + return getListCustomClassesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", + requestType = com.google.cloud.speech.v2.GetCustomClassRequest.class, + responseType = com.google.cloud.speech.v2.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetCustomClassMethod() { + io.grpc.MethodDescriptor getGetCustomClassMethod; + if ((getGetCustomClassMethod = SpeechGrpc.getGetCustomClassMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getGetCustomClassMethod = SpeechGrpc.getGetCustomClassMethod) == null) { + SpeechGrpc.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.v2.GetCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.CustomClass.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetCustomClass")) + .build(); + } + } + } + return getGetCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", + requestType = com.google.cloud.speech.v2.UpdateCustomClassRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateCustomClassMethod() { + io.grpc.MethodDescriptor getUpdateCustomClassMethod; + if ((getUpdateCustomClassMethod = SpeechGrpc.getUpdateCustomClassMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUpdateCustomClassMethod = SpeechGrpc.getUpdateCustomClassMethod) == null) { + SpeechGrpc.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.v2.UpdateCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("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.v2.DeleteCustomClassRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteCustomClassMethod() { + io.grpc.MethodDescriptor getDeleteCustomClassMethod; + if ((getDeleteCustomClassMethod = SpeechGrpc.getDeleteCustomClassMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getDeleteCustomClassMethod = SpeechGrpc.getDeleteCustomClassMethod) == null) { + SpeechGrpc.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.v2.DeleteCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeleteCustomClass")) + .build(); + } + } + } + return getDeleteCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor getUndeleteCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeleteCustomClass", + requestType = com.google.cloud.speech.v2.UndeleteCustomClassRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUndeleteCustomClassMethod() { + io.grpc.MethodDescriptor getUndeleteCustomClassMethod; + if ((getUndeleteCustomClassMethod = SpeechGrpc.getUndeleteCustomClassMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUndeleteCustomClassMethod = SpeechGrpc.getUndeleteCustomClassMethod) == null) { + SpeechGrpc.getUndeleteCustomClassMethod = getUndeleteCustomClassMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeleteCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UndeleteCustomClass")) + .build(); + } + } + } + return getUndeleteCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", + requestType = com.google.cloud.speech.v2.CreatePhraseSetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreatePhraseSetMethod() { + io.grpc.MethodDescriptor getCreatePhraseSetMethod; + if ((getCreatePhraseSetMethod = SpeechGrpc.getCreatePhraseSetMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getCreatePhraseSetMethod = SpeechGrpc.getCreatePhraseSetMethod) == null) { + SpeechGrpc.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.v2.CreatePhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreatePhraseSet")) + .build(); + } + } + } + return getCreatePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getListPhraseSetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPhraseSets", + requestType = com.google.cloud.speech.v2.ListPhraseSetsRequest.class, + responseType = com.google.cloud.speech.v2.ListPhraseSetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListPhraseSetsMethod() { + io.grpc.MethodDescriptor getListPhraseSetsMethod; + if ((getListPhraseSetsMethod = SpeechGrpc.getListPhraseSetsMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getListPhraseSetsMethod = SpeechGrpc.getListPhraseSetsMethod) == null) { + SpeechGrpc.getListPhraseSetsMethod = getListPhraseSetsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.ListPhraseSetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.ListPhraseSetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListPhraseSets")) + .build(); + } + } + } + return getListPhraseSetsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetPhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", + requestType = com.google.cloud.speech.v2.GetPhraseSetRequest.class, + responseType = com.google.cloud.speech.v2.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetPhraseSetMethod() { + io.grpc.MethodDescriptor getGetPhraseSetMethod; + if ((getGetPhraseSetMethod = SpeechGrpc.getGetPhraseSetMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getGetPhraseSetMethod = SpeechGrpc.getGetPhraseSetMethod) == null) { + SpeechGrpc.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.v2.GetPhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetPhraseSet")) + .build(); + } + } + } + return getGetPhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", + requestType = com.google.cloud.speech.v2.UpdatePhraseSetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdatePhraseSetMethod() { + io.grpc.MethodDescriptor getUpdatePhraseSetMethod; + if ((getUpdatePhraseSetMethod = SpeechGrpc.getUpdatePhraseSetMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUpdatePhraseSetMethod = SpeechGrpc.getUpdatePhraseSetMethod) == null) { + SpeechGrpc.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.v2.UpdatePhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("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.v2.DeletePhraseSetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeletePhraseSetMethod() { + io.grpc.MethodDescriptor getDeletePhraseSetMethod; + if ((getDeletePhraseSetMethod = SpeechGrpc.getDeletePhraseSetMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getDeletePhraseSetMethod = SpeechGrpc.getDeletePhraseSetMethod) == null) { + SpeechGrpc.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.v2.DeletePhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeletePhraseSet")) + .build(); + } + } + } + return getDeletePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getUndeletePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeletePhraseSet", + requestType = com.google.cloud.speech.v2.UndeletePhraseSetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUndeletePhraseSetMethod() { + io.grpc.MethodDescriptor getUndeletePhraseSetMethod; + if ((getUndeletePhraseSetMethod = SpeechGrpc.getUndeletePhraseSetMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUndeletePhraseSetMethod = SpeechGrpc.getUndeletePhraseSetMethod) == null) { + SpeechGrpc.getUndeletePhraseSetMethod = getUndeletePhraseSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeletePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UndeletePhraseSet")) + .build(); + } + } + } + return getUndeletePhraseSetMethod; + } + + /** + * 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); + } + + /** + *
+   * Enables speech transcription and resource management.
+   * 
+ */ + public static abstract class SpeechImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void createRecognizer(com.google.cloud.speech.v2.CreateRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRecognizerMethod(), responseObserver); + } + + /** + *
+     * Lists Recognizers.
+     * 
+ */ + public void listRecognizers(com.google.cloud.speech.v2.ListRecognizersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRecognizersMethod(), responseObserver); + } + + /** + *
+     * Returns the requested
+     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
+     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
+     * exist.
+     * 
+ */ + public void getRecognizer(com.google.cloud.speech.v2.GetRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRecognizerMethod(), responseObserver); + } + + /** + *
+     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void updateRecognizer(com.google.cloud.speech.v2.UpdateRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateRecognizerMethod(), responseObserver); + } + + /** + *
+     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void deleteRecognizer(com.google.cloud.speech.v2.DeleteRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRecognizerMethod(), responseObserver); + } + + /** + *
+     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void undeleteRecognizer(com.google.cloud.speech.v2.UndeleteRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeleteRecognizerMethod(), responseObserver); + } + + /** + *
+     * Performs synchronous Speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize(com.google.cloud.speech.v2.RecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), 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); + } + + /** + *
+     * Performs batch asynchronous speech recognition: send a request with N
+     * audio files and receive a long running operation that can be polled to see
+     * when the transcriptions are finished.
+     * 
+ */ + public void batchRecognize(com.google.cloud.speech.v2.BatchRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchRecognizeMethod(), responseObserver); + } + + /** + *
+     * Returns the requested [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public void getConfig(com.google.cloud.speech.v2.GetConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConfigMethod(), responseObserver); + } + + /** + *
+     * Updates the [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public void updateConfig(com.google.cloud.speech.v2.UpdateConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConfigMethod(), responseObserver); + } + + /** + *
+     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void createCustomClass(com.google.cloud.speech.v2.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCustomClassMethod(), responseObserver); + } + + /** + *
+     * Lists CustomClasses.
+     * 
+ */ + public void listCustomClasses(com.google.cloud.speech.v2.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCustomClassesMethod(), responseObserver); + } + + /** + *
+     * Returns the requested
+     * [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void getCustomClass(com.google.cloud.speech.v2.GetCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCustomClassMethod(), responseObserver); + } + + /** + *
+     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void updateCustomClass(com.google.cloud.speech.v2.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCustomClassMethod(), responseObserver); + } + + /** + *
+     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void deleteCustomClass(com.google.cloud.speech.v2.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCustomClassMethod(), responseObserver); + } + + /** + *
+     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void undeleteCustomClass(com.google.cloud.speech.v2.UndeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeleteCustomClassMethod(), responseObserver); + } + + /** + *
+     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void createPhraseSet(com.google.cloud.speech.v2.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePhraseSetMethod(), responseObserver); + } + + /** + *
+     * Lists PhraseSets.
+     * 
+ */ + public void listPhraseSets(com.google.cloud.speech.v2.ListPhraseSetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPhraseSetsMethod(), responseObserver); + } + + /** + *
+     * Returns the requested
+     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void getPhraseSet(com.google.cloud.speech.v2.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPhraseSetMethod(), responseObserver); + } + + /** + *
+     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void updatePhraseSet(com.google.cloud.speech.v2.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePhraseSetMethod(), responseObserver); + } + + /** + *
+     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void deletePhraseSet(com.google.cloud.speech.v2.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePhraseSetMethod(), responseObserver); + } + + /** + *
+     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void undeletePhraseSet(com.google.cloud.speech.v2.UndeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeletePhraseSetMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateRecognizerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.CreateRecognizerRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_RECOGNIZER))) + .addMethod( + getListRecognizersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.ListRecognizersRequest, + com.google.cloud.speech.v2.ListRecognizersResponse>( + this, METHODID_LIST_RECOGNIZERS))) + .addMethod( + getGetRecognizerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.GetRecognizerRequest, + com.google.cloud.speech.v2.Recognizer>( + this, METHODID_GET_RECOGNIZER))) + .addMethod( + getUpdateRecognizerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UpdateRecognizerRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_RECOGNIZER))) + .addMethod( + getDeleteRecognizerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.DeleteRecognizerRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_RECOGNIZER))) + .addMethod( + getUndeleteRecognizerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UndeleteRecognizerRequest, + com.google.longrunning.Operation>( + this, METHODID_UNDELETE_RECOGNIZER))) + .addMethod( + getRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.RecognizeRequest, + com.google.cloud.speech.v2.RecognizeResponse>( + this, METHODID_RECOGNIZE))) + .addMethod( + getStreamingRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.speech.v2.StreamingRecognizeRequest, + com.google.cloud.speech.v2.StreamingRecognizeResponse>( + this, METHODID_STREAMING_RECOGNIZE))) + .addMethod( + getBatchRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.BatchRecognizeRequest, + com.google.longrunning.Operation>( + this, METHODID_BATCH_RECOGNIZE))) + .addMethod( + getGetConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.GetConfigRequest, + com.google.cloud.speech.v2.Config>( + this, METHODID_GET_CONFIG))) + .addMethod( + getUpdateConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UpdateConfigRequest, + com.google.cloud.speech.v2.Config>( + this, METHODID_UPDATE_CONFIG))) + .addMethod( + getCreateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.CreateCustomClassRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_CUSTOM_CLASS))) + .addMethod( + getListCustomClassesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.ListCustomClassesRequest, + com.google.cloud.speech.v2.ListCustomClassesResponse>( + this, METHODID_LIST_CUSTOM_CLASSES))) + .addMethod( + getGetCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.GetCustomClassRequest, + com.google.cloud.speech.v2.CustomClass>( + this, METHODID_GET_CUSTOM_CLASS))) + .addMethod( + getUpdateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UpdateCustomClassRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_CUSTOM_CLASS))) + .addMethod( + getDeleteCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.DeleteCustomClassRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_CUSTOM_CLASS))) + .addMethod( + getUndeleteCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UndeleteCustomClassRequest, + com.google.longrunning.Operation>( + this, METHODID_UNDELETE_CUSTOM_CLASS))) + .addMethod( + getCreatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.CreatePhraseSetRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_PHRASE_SET))) + .addMethod( + getListPhraseSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.ListPhraseSetsRequest, + com.google.cloud.speech.v2.ListPhraseSetsResponse>( + this, METHODID_LIST_PHRASE_SETS))) + .addMethod( + getGetPhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.GetPhraseSetRequest, + com.google.cloud.speech.v2.PhraseSet>( + this, METHODID_GET_PHRASE_SET))) + .addMethod( + getUpdatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UpdatePhraseSetRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_PHRASE_SET))) + .addMethod( + getDeletePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.DeletePhraseSetRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_PHRASE_SET))) + .addMethod( + getUndeletePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UndeletePhraseSetRequest, + com.google.longrunning.Operation>( + this, METHODID_UNDELETE_PHRASE_SET))) + .build(); + } + } + + /** + *
+   * Enables speech transcription and resource management.
+   * 
+ */ + 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); + } + + /** + *
+     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void createRecognizer(com.google.cloud.speech.v2.CreateRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRecognizerMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists Recognizers.
+     * 
+ */ + public void listRecognizers(com.google.cloud.speech.v2.ListRecognizersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRecognizersMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the requested
+     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
+     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
+     * exist.
+     * 
+ */ + public void getRecognizer(com.google.cloud.speech.v2.GetRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRecognizerMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void updateRecognizer(com.google.cloud.speech.v2.UpdateRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateRecognizerMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void deleteRecognizer(com.google.cloud.speech.v2.DeleteRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRecognizerMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void undeleteRecognizer(com.google.cloud.speech.v2.UndeleteRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeleteRecognizerMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Performs synchronous Speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize(com.google.cloud.speech.v2.RecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRecognizeMethod(), 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); + } + + /** + *
+     * Performs batch asynchronous speech recognition: send a request with N
+     * audio files and receive a long running operation that can be polled to see
+     * when the transcriptions are finished.
+     * 
+ */ + public void batchRecognize(com.google.cloud.speech.v2.BatchRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchRecognizeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the requested [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public void getConfig(com.google.cloud.speech.v2.GetConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public void updateConfig(com.google.cloud.speech.v2.UpdateConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void createCustomClass(com.google.cloud.speech.v2.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists CustomClasses.
+     * 
+ */ + public void listCustomClasses(com.google.cloud.speech.v2.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the requested
+     * [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void getCustomClass(com.google.cloud.speech.v2.GetCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void updateCustomClass(com.google.cloud.speech.v2.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void deleteCustomClass(com.google.cloud.speech.v2.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void undeleteCustomClass(com.google.cloud.speech.v2.UndeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeleteCustomClassMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void createPhraseSet(com.google.cloud.speech.v2.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists PhraseSets.
+     * 
+ */ + public void listPhraseSets(com.google.cloud.speech.v2.ListPhraseSetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPhraseSetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the requested
+     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void getPhraseSet(com.google.cloud.speech.v2.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void updatePhraseSet(com.google.cloud.speech.v2.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void deletePhraseSet(com.google.cloud.speech.v2.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void undeletePhraseSet(com.google.cloud.speech.v2.UndeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeletePhraseSetMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Enables speech transcription and resource management.
+   * 
+ */ + 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); + } + + /** + *
+     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.longrunning.Operation createRecognizer(com.google.cloud.speech.v2.CreateRecognizerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRecognizerMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists Recognizers.
+     * 
+ */ + public com.google.cloud.speech.v2.ListRecognizersResponse listRecognizers(com.google.cloud.speech.v2.ListRecognizersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRecognizersMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the requested
+     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
+     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.speech.v2.Recognizer getRecognizer(com.google.cloud.speech.v2.GetRecognizerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRecognizerMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.longrunning.Operation updateRecognizer(com.google.cloud.speech.v2.UpdateRecognizerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateRecognizerMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.longrunning.Operation deleteRecognizer(com.google.cloud.speech.v2.DeleteRecognizerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRecognizerMethod(), getCallOptions(), request); + } + + /** + *
+     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.longrunning.Operation undeleteRecognizer(com.google.cloud.speech.v2.UndeleteRecognizerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeleteRecognizerMethod(), getCallOptions(), request); + } + + /** + *
+     * Performs synchronous Speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.cloud.speech.v2.RecognizeResponse recognize(com.google.cloud.speech.v2.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRecognizeMethod(), getCallOptions(), request); + } + + /** + *
+     * Performs batch asynchronous speech recognition: send a request with N
+     * audio files and receive a long running operation that can be polled to see
+     * when the transcriptions are finished.
+     * 
+ */ + public com.google.longrunning.Operation batchRecognize(com.google.cloud.speech.v2.BatchRecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchRecognizeMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the requested [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public com.google.cloud.speech.v2.Config getConfig(com.google.cloud.speech.v2.GetConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public com.google.cloud.speech.v2.Config updateConfig(com.google.cloud.speech.v2.UpdateConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.longrunning.Operation createCustomClass(com.google.cloud.speech.v2.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists CustomClasses.
+     * 
+ */ + public com.google.cloud.speech.v2.ListCustomClassesResponse listCustomClasses(com.google.cloud.speech.v2.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCustomClassesMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the requested
+     * [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.cloud.speech.v2.CustomClass getCustomClass(com.google.cloud.speech.v2.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCustomClassMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.longrunning.Operation updateCustomClass(com.google.cloud.speech.v2.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.longrunning.Operation deleteCustomClass(com.google.cloud.speech.v2.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); + } + + /** + *
+     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.longrunning.Operation undeleteCustomClass(com.google.cloud.speech.v2.UndeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeleteCustomClassMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.longrunning.Operation createPhraseSet(com.google.cloud.speech.v2.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists PhraseSets.
+     * 
+ */ + public com.google.cloud.speech.v2.ListPhraseSetsResponse listPhraseSets(com.google.cloud.speech.v2.ListPhraseSetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPhraseSetsMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the requested
+     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.cloud.speech.v2.PhraseSet getPhraseSet(com.google.cloud.speech.v2.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.longrunning.Operation updatePhraseSet(com.google.cloud.speech.v2.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.longrunning.Operation deletePhraseSet(com.google.cloud.speech.v2.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.longrunning.Operation undeletePhraseSet(com.google.cloud.speech.v2.UndeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeletePhraseSetMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Enables speech transcription and resource management.
+   * 
+ */ + 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); + } + + /** + *
+     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createRecognizer( + com.google.cloud.speech.v2.CreateRecognizerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRecognizerMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists Recognizers.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listRecognizers( + com.google.cloud.speech.v2.ListRecognizersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRecognizersMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the requested
+     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
+     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getRecognizer( + com.google.cloud.speech.v2.GetRecognizerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRecognizerMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateRecognizer( + com.google.cloud.speech.v2.UpdateRecognizerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateRecognizerMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteRecognizer( + com.google.cloud.speech.v2.DeleteRecognizerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRecognizerMethod(), getCallOptions()), request); + } + + /** + *
+     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture undeleteRecognizer( + com.google.cloud.speech.v2.UndeleteRecognizerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeleteRecognizerMethod(), getCallOptions()), request); + } + + /** + *
+     * 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.v2.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); + } + + /** + *
+     * Performs batch asynchronous speech recognition: send a request with N
+     * audio files and receive a long running operation that can be polled to see
+     * when the transcriptions are finished.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture batchRecognize( + com.google.cloud.speech.v2.BatchRecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchRecognizeMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the requested [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getConfig( + com.google.cloud.speech.v2.GetConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateConfig( + com.google.cloud.speech.v2.UpdateConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createCustomClass( + com.google.cloud.speech.v2.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists CustomClasses.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCustomClasses( + com.google.cloud.speech.v2.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the requested
+     * [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getCustomClass( + com.google.cloud.speech.v2.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateCustomClass( + com.google.cloud.speech.v2.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteCustomClass( + com.google.cloud.speech.v2.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); + } + + /** + *
+     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture undeleteCustomClass( + com.google.cloud.speech.v2.UndeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeleteCustomClassMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createPhraseSet( + com.google.cloud.speech.v2.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists PhraseSets.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listPhraseSets( + com.google.cloud.speech.v2.ListPhraseSetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPhraseSetsMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the requested
+     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getPhraseSet( + com.google.cloud.speech.v2.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updatePhraseSet( + com.google.cloud.speech.v2.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deletePhraseSet( + com.google.cloud.speech.v2.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture undeletePhraseSet( + com.google.cloud.speech.v2.UndeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeletePhraseSetMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_RECOGNIZER = 0; + private static final int METHODID_LIST_RECOGNIZERS = 1; + private static final int METHODID_GET_RECOGNIZER = 2; + private static final int METHODID_UPDATE_RECOGNIZER = 3; + private static final int METHODID_DELETE_RECOGNIZER = 4; + private static final int METHODID_UNDELETE_RECOGNIZER = 5; + private static final int METHODID_RECOGNIZE = 6; + private static final int METHODID_BATCH_RECOGNIZE = 7; + private static final int METHODID_GET_CONFIG = 8; + private static final int METHODID_UPDATE_CONFIG = 9; + private static final int METHODID_CREATE_CUSTOM_CLASS = 10; + private static final int METHODID_LIST_CUSTOM_CLASSES = 11; + private static final int METHODID_GET_CUSTOM_CLASS = 12; + private static final int METHODID_UPDATE_CUSTOM_CLASS = 13; + private static final int METHODID_DELETE_CUSTOM_CLASS = 14; + private static final int METHODID_UNDELETE_CUSTOM_CLASS = 15; + private static final int METHODID_CREATE_PHRASE_SET = 16; + private static final int METHODID_LIST_PHRASE_SETS = 17; + private static final int METHODID_GET_PHRASE_SET = 18; + private static final int METHODID_UPDATE_PHRASE_SET = 19; + private static final int METHODID_DELETE_PHRASE_SET = 20; + private static final int METHODID_UNDELETE_PHRASE_SET = 21; + private static final int METHODID_STREAMING_RECOGNIZE = 22; + + 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_CREATE_RECOGNIZER: + serviceImpl.createRecognizer((com.google.cloud.speech.v2.CreateRecognizerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RECOGNIZERS: + serviceImpl.listRecognizers((com.google.cloud.speech.v2.ListRecognizersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_RECOGNIZER: + serviceImpl.getRecognizer((com.google.cloud.speech.v2.GetRecognizerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_RECOGNIZER: + serviceImpl.updateRecognizer((com.google.cloud.speech.v2.UpdateRecognizerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_RECOGNIZER: + serviceImpl.deleteRecognizer((com.google.cloud.speech.v2.DeleteRecognizerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNDELETE_RECOGNIZER: + serviceImpl.undeleteRecognizer((com.google.cloud.speech.v2.UndeleteRecognizerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RECOGNIZE: + serviceImpl.recognize((com.google.cloud.speech.v2.RecognizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_RECOGNIZE: + serviceImpl.batchRecognize((com.google.cloud.speech.v2.BatchRecognizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CONFIG: + serviceImpl.getConfig((com.google.cloud.speech.v2.GetConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONFIG: + serviceImpl.updateConfig((com.google.cloud.speech.v2.UpdateConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CUSTOM_CLASS: + serviceImpl.createCustomClass((com.google.cloud.speech.v2.CreateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CUSTOM_CLASSES: + serviceImpl.listCustomClasses((com.google.cloud.speech.v2.ListCustomClassesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CUSTOM_CLASS: + serviceImpl.getCustomClass((com.google.cloud.speech.v2.GetCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CUSTOM_CLASS: + serviceImpl.updateCustomClass((com.google.cloud.speech.v2.UpdateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CUSTOM_CLASS: + serviceImpl.deleteCustomClass((com.google.cloud.speech.v2.DeleteCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNDELETE_CUSTOM_CLASS: + serviceImpl.undeleteCustomClass((com.google.cloud.speech.v2.UndeleteCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_PHRASE_SET: + serviceImpl.createPhraseSet((com.google.cloud.speech.v2.CreatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_PHRASE_SETS: + serviceImpl.listPhraseSets((com.google.cloud.speech.v2.ListPhraseSetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_PHRASE_SET: + serviceImpl.getPhraseSet((com.google.cloud.speech.v2.GetPhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_PHRASE_SET: + serviceImpl.updatePhraseSet((com.google.cloud.speech.v2.UpdatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_PHRASE_SET: + serviceImpl.deletePhraseSet((com.google.cloud.speech.v2.DeletePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNDELETE_PHRASE_SET: + serviceImpl.undeletePhraseSet((com.google.cloud.speech.v2.UndeletePhraseSetRequest) 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.v2.CloudSpeechProto.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(getCreateRecognizerMethod()) + .addMethod(getListRecognizersMethod()) + .addMethod(getGetRecognizerMethod()) + .addMethod(getUpdateRecognizerMethod()) + .addMethod(getDeleteRecognizerMethod()) + .addMethod(getUndeleteRecognizerMethod()) + .addMethod(getRecognizeMethod()) + .addMethod(getStreamingRecognizeMethod()) + .addMethod(getBatchRecognizeMethod()) + .addMethod(getGetConfigMethod()) + .addMethod(getUpdateConfigMethod()) + .addMethod(getCreateCustomClassMethod()) + .addMethod(getListCustomClassesMethod()) + .addMethod(getGetCustomClassMethod()) + .addMethod(getUpdateCustomClassMethod()) + .addMethod(getDeleteCustomClassMethod()) + .addMethod(getUndeleteCustomClassMethod()) + .addMethod(getCreatePhraseSetMethod()) + .addMethod(getListPhraseSetsMethod()) + .addMethod(getGetPhraseSetMethod()) + .addMethod(getUpdatePhraseSetMethod()) + .addMethod(getDeletePhraseSetMethod()) + .addMethod(getUndeletePhraseSetMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java similarity index 64% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java index 82aaf8ce8a3a..0ad7af9e165f 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Automatically detected decoding parameters.
  * Supported for the following encodings:
@@ -37,46 +20,44 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.AutoDetectDecodingConfig}
  */
-public final class AutoDetectDecodingConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AutoDetectDecodingConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.AutoDetectDecodingConfig)
     AutoDetectDecodingConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AutoDetectDecodingConfig.newBuilder() to construct.
   private AutoDetectDecodingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private AutoDetectDecodingConfig() {}
+  private AutoDetectDecodingConfig() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AutoDetectDecodingConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.AutoDetectDecodingConfig.class,
-            com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder.class);
+            com.google.cloud.speech.v2.AutoDetectDecodingConfig.class, com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -88,7 +69,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 {
     getUnknownFields().writeTo(output);
   }
 
@@ -106,13 +88,12 @@ 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.v2.AutoDetectDecodingConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.AutoDetectDecodingConfig other =
-        (com.google.cloud.speech.v2.AutoDetectDecodingConfig) obj;
+    com.google.cloud.speech.v2.AutoDetectDecodingConfig other = (com.google.cloud.speech.v2.AutoDetectDecodingConfig) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -131,103 +112,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v2.AutoDetectDecodingConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v2.AutoDetectDecodingConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig 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;
   }
   /**
-   *
-   *
    * 
    * Automatically detected decoding parameters.
    * Supported for the following encodings:
@@ -244,32 +218,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.AutoDetectDecodingConfig}
    */
-  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.v2.AutoDetectDecodingConfig)
       com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.AutoDetectDecodingConfig.class,
-              com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder.class);
+              com.google.cloud.speech.v2.AutoDetectDecodingConfig.class, com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.AutoDetectDecodingConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -277,9 +252,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
     }
 
     @java.lang.Override
@@ -298,8 +273,7 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.AutoDetectDecodingConfig buildPartial() {
-      com.google.cloud.speech.v2.AutoDetectDecodingConfig result =
-          new com.google.cloud.speech.v2.AutoDetectDecodingConfig(this);
+      com.google.cloud.speech.v2.AutoDetectDecodingConfig result = new com.google.cloud.speech.v2.AutoDetectDecodingConfig(this);
       onBuilt();
       return result;
     }
@@ -308,39 +282,38 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig) {
-        return mergeFrom((com.google.cloud.speech.v2.AutoDetectDecodingConfig) other);
+        return mergeFrom((com.google.cloud.speech.v2.AutoDetectDecodingConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -348,8 +321,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.AutoDetectDecodingConfig other) {
-      if (other == com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance()) return this;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -376,13 +348,12 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -392,9 +363,9 @@ public Builder mergeFrom(
       } // finally
       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);
     }
 
@@ -404,12 +375,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.AutoDetectDecodingConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.AutoDetectDecodingConfig)
   private static final com.google.cloud.speech.v2.AutoDetectDecodingConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.AutoDetectDecodingConfig();
   }
@@ -418,27 +389,27 @@ public static com.google.cloud.speech.v2.AutoDetectDecodingConfig getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public AutoDetectDecodingConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public AutoDetectDecodingConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -453,4 +424,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v2.AutoDetectDecodingConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java
new file mode 100644
index 000000000000..a00b9e8f5df9
--- /dev/null
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java
@@ -0,0 +1,9 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/speech/v2/cloud_speech.proto
+
+package com.google.cloud.speech.v2;
+
+public interface AutoDetectDecodingConfigOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.AutoDetectDecodingConfig)
+    com.google.protobuf.MessageOrBuilder {
+}
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java
similarity index 77%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java
index 4cfda3d25d30..2759c33fcb35 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java
@@ -1,81 +1,60 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
- *
- *
  * 
  * Metadata about a single file in a batch for BatchRecognize.
  * 
* * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeFileMetadata} */ -public final class BatchRecognizeFileMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchRecognizeFileMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeFileMetadata) BatchRecognizeFileMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchRecognizeFileMetadata.newBuilder() to construct. private BatchRecognizeFileMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchRecognizeFileMetadata() {} + private BatchRecognizeFileMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchRecognizeFileMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.BatchRecognizeFileMetadata.class, - com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder.class); + com.google.cloud.speech.v2.BatchRecognizeFileMetadata.class, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.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 { URI(1), AUDIOSOURCE_NOT_SET(0); private final int value; - private AudioSourceCase(int value) { this.value = value; } @@ -91,48 +70,40 @@ public static AudioSourceCase valueOf(int value) { public static AudioSourceCase forNumber(int value) { switch (value) { - case 1: - return URI; - case 0: - return AUDIOSOURCE_NOT_SET; - default: - return null; + case 1: 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 URI_FIELD_NUMBER = 1; /** - * - * *
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; - * * @return Whether the uri field is set. */ public boolean hasUri() { return audioSourceCase_ == 1; } /** - * - * *
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; - * * @return The uri. */ public java.lang.String getUri() { @@ -143,7 +114,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_ == 1) { audioSource_ = s; @@ -152,24 +124,23 @@ public java.lang.String getUri() { } } /** - * - * *
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (audioSourceCase_ == 1) { 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_ == 1) { audioSource_ = b; } @@ -182,8 +153,6 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int CONFIG_FIELD_NUMBER = 4; private com.google.cloud.speech.v2.RecognitionConfig config_; /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -196,7 +165,6 @@ public com.google.protobuf.ByteString getUriBytes() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return Whether the config field is set. */ @java.lang.Override @@ -204,8 +172,6 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -218,18 +184,13 @@ public boolean hasConfig() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfig getConfig() { - return config_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; } /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -245,16 +206,12 @@ public com.google.cloud.speech.v2.RecognitionConfig getConfig() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder() {
-    return config_ == null
-        ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
-        : config_;
+    return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
   }
 
   public static final int CONFIG_MASK_FIELD_NUMBER = 5;
   private com.google.protobuf.FieldMask configMask_;
   /**
-   *
-   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -272,7 +229,6 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return Whether the configMask field is set. */ @java.lang.Override @@ -280,8 +236,6 @@ public boolean hasConfigMask() { return configMask_ != null; } /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -299,7 +253,6 @@ public boolean hasConfigMask() {
    * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return The configMask. */ @java.lang.Override @@ -307,8 +260,6 @@ public com.google.protobuf.FieldMask getConfigMask() { return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -333,7 +284,6 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -345,7 +295,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 (audioSourceCase_ == 1) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, audioSource_);
     }
@@ -368,10 +319,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, audioSource_);
     }
     if (config_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getConfig());
     }
     if (configMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getConfigMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getConfigMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -381,26 +334,28 @@ 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.v2.BatchRecognizeFileMetadata)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.BatchRecognizeFileMetadata other =
-        (com.google.cloud.speech.v2.BatchRecognizeFileMetadata) obj;
+    com.google.cloud.speech.v2.BatchRecognizeFileMetadata other = (com.google.cloud.speech.v2.BatchRecognizeFileMetadata) obj;
 
     if (hasConfig() != other.hasConfig()) return false;
     if (hasConfig()) {
-      if (!getConfig().equals(other.getConfig())) return false;
+      if (!getConfig()
+          .equals(other.getConfig())) return false;
     }
     if (hasConfigMask() != other.hasConfigMask()) return false;
     if (hasConfigMask()) {
-      if (!getConfigMask().equals(other.getConfigMask())) return false;
+      if (!getConfigMask()
+          .equals(other.getConfigMask())) return false;
     }
     if (!getAudioSourceCase().equals(other.getAudioSourceCase())) return false;
     switch (audioSourceCase_) {
       case 1:
-        if (!getUri().equals(other.getUri())) return false;
+        if (!getUri()
+            .equals(other.getUri())) return false;
         break;
       case 0:
       default:
@@ -438,136 +393,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata prototype) {
+  public static Builder newBuilder(com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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;
   }
   /**
-   *
-   *
    * 
    * Metadata about a single file in a batch for BatchRecognize.
    * 
* * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeFileMetadata} */ - 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.v2.BatchRecognizeFileMetadata) com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.BatchRecognizeFileMetadata.class, - com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder.class); + com.google.cloud.speech.v2.BatchRecognizeFileMetadata.class, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder.class); } // Construct using com.google.cloud.speech.v2.BatchRecognizeFileMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -588,9 +536,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; } @java.lang.Override @@ -609,11 +557,8 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata build() { @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeFileMetadata buildPartial() { - com.google.cloud.speech.v2.BatchRecognizeFileMetadata result = - new com.google.cloud.speech.v2.BatchRecognizeFileMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v2.BatchRecognizeFileMetadata result = new com.google.cloud.speech.v2.BatchRecognizeFileMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -622,10 +567,14 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata buildPartial() { private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeFileMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { - result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + result.config_ = configBuilder_ == null + ? config_ + : configBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.configMask_ = configMaskBuilder_ == null ? configMask_ : configMaskBuilder_.build(); + result.configMask_ = configMaskBuilder_ == null + ? configMask_ + : configMaskBuilder_.build(); } } @@ -638,39 +587,38 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.BatchRecognizeFileMet 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.v2.BatchRecognizeFileMetadata) { - return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeFileMetadata) other); + return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeFileMetadata)other); } else { super.mergeFrom(other); return this; @@ -678,8 +626,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeFileMetadata other) { - if (other == com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()) return this; if (other.hasConfig()) { mergeConfig(other.getConfig()); } @@ -687,17 +634,15 @@ public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeFileMetadata o mergeConfigMask(other.getConfigMask()); } switch (other.getAudioSourceCase()) { - case URI: - { - audioSourceCase_ = 1; - audioSource_ = other.audioSource_; - onChanged(); - break; - } - case AUDIOSOURCE_NOT_SET: - { - break; - } + case URI: { + audioSourceCase_ = 1; + audioSource_ = other.audioSource_; + onChanged(); + break; + } + case AUDIOSOURCE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -725,32 +670,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - audioSourceCase_ = 1; - audioSource_ = s; - break; - } // case 10 - case 34: - { - input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 34 - case 42: - { - input.readMessage(getConfigMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + audioSourceCase_ = 1; + audioSource_ = s; + break; + } // case 10 + case 34: { + input.readMessage( + getConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: { + input.readMessage( + getConfigMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -760,12 +705,12 @@ public Builder mergeFrom( } // finally 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() { @@ -778,14 +723,11 @@ public Builder clearAudioSource() { private int bitField0_; /** - * - * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -793,14 +735,11 @@ public boolean hasUri() { return audioSourceCase_ == 1; } /** - * - * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -810,7 +749,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_ == 1) { audioSource_ = s; @@ -821,25 +761,24 @@ public java.lang.String getUri() { } } /** - * - * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; - * * @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_ == 1) { 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_ == 1) { audioSource_ = b; } @@ -849,35 +788,28 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } audioSourceCase_ = 1; audioSource_ = value; onChanged(); return this; } /** - * - * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -889,21 +821,17 @@ public Builder clearUri() { return this; } /** - * - * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); audioSourceCase_ = 1; audioSource_ = value; @@ -913,13 +841,8 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { private com.google.cloud.speech.v2.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, - com.google.cloud.speech.v2.RecognitionConfig.Builder, - com.google.cloud.speech.v2.RecognitionConfigOrBuilder> - configBuilder_; + com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> configBuilder_; /** - * - * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -932,15 +855,12 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -953,21 +873,16 @@ public boolean hasConfig() {
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return The config. */ public com.google.cloud.speech.v2.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -995,8 +910,6 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1010,7 +923,8 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
      *
      * .google.cloud.speech.v2.RecognitionConfig config = 4;
      */
-    public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
+    public Builder setConfig(
+        com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
       if (configBuilder_ == null) {
         config_ = builderForValue.build();
       } else {
@@ -1021,8 +935,6 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder bu
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1038,9 +950,9 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder bu
      */
     public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       if (configBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && config_ != null
-            && config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          config_ != null &&
+          config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
           getConfigBuilder().mergeFrom(value);
         } else {
           config_ = value;
@@ -1053,8 +965,6 @@ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1079,8 +989,6 @@ public Builder clearConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1100,8 +1008,6 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() {
       return getConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1119,14 +1025,11 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
       if (configBuilder_ != null) {
         return configBuilder_.getMessageOrBuilder();
       } else {
-        return config_ == null
-            ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
-            : config_;
+        return config_ == null ?
+            com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
       }
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1141,17 +1044,14 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * .google.cloud.speech.v2.RecognitionConfig config = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.RecognitionConfig,
-            com.google.cloud.speech.v2.RecognitionConfig.Builder,
-            com.google.cloud.speech.v2.RecognitionConfigOrBuilder>
+        com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> 
         getConfigFieldBuilder() {
       if (configBuilder_ == null) {
-        configBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v2.RecognitionConfig,
-                com.google.cloud.speech.v2.RecognitionConfig.Builder,
-                com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
-                getConfig(), getParentForChildren(), isClean());
+        configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
+                getConfig(),
+                getParentForChildren(),
+                isClean());
         config_ = null;
       }
       return configBuilder_;
@@ -1159,13 +1059,8 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
 
     private com.google.protobuf.FieldMask configMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
-        configMaskBuilder_;
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> configMaskBuilder_;
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1183,15 +1078,12 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return Whether the configMask field is set. */ public boolean hasConfigMask() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1209,21 +1101,16 @@ public boolean hasConfigMask() {
      * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return The configMask. */ public com.google.protobuf.FieldMask getConfigMask() { if (configMaskBuilder_ == null) { - return configMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : configMask_; + return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } else { return configMaskBuilder_.getMessage(); } } /** - * - * *
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1256,8 +1143,6 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1276,7 +1161,8 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask config_mask = 5;
      */
-    public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setConfigMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (configMaskBuilder_ == null) {
         configMask_ = builderForValue.build();
       } else {
@@ -1287,8 +1173,6 @@ public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1309,9 +1193,9 @@ public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       if (configMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && configMask_ != null
-            && configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          configMask_ != null &&
+          configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getConfigMaskBuilder().mergeFrom(value);
         } else {
           configMask_ = value;
@@ -1324,8 +1208,6 @@ public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1355,8 +1237,6 @@ public Builder clearConfigMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1381,8 +1261,6 @@ public com.google.protobuf.FieldMask.Builder getConfigMaskBuilder() {
       return getConfigMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1405,14 +1283,11 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
       if (configMaskBuilder_ != null) {
         return configMaskBuilder_.getMessageOrBuilder();
       } else {
-        return configMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : configMask_;
+        return configMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : configMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1432,24 +1307,21 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
      * .google.protobuf.FieldMask config_mask = 5;
      */
     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> 
         getConfigMaskFieldBuilder() {
       if (configMaskBuilder_ == null) {
-        configMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getConfigMask(), getParentForChildren(), isClean());
+        configMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getConfigMask(),
+                getParentForChildren(),
+                isClean());
         configMask_ = null;
       }
       return configMaskBuilder_;
     }
-
     @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);
     }
 
@@ -1459,12 +1331,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeFileMetadata)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeFileMetadata)
   private static final com.google.cloud.speech.v2.BatchRecognizeFileMetadata DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeFileMetadata();
   }
@@ -1473,27 +1345,27 @@ public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchRecognizeFileMetadata parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchRecognizeFileMetadata parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1508,4 +1380,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.speech.v2.BatchRecognizeFileMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java
similarity index 87%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java
index 8e666904d05e..0769802337de 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java
@@ -1,68 +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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
-public interface BatchRecognizeFileMetadataOrBuilder
-    extends
+public interface BatchRecognizeFileMetadataOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeFileMetadata)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; - * * @return Whether the uri field is set. */ boolean hasUri(); /** - * - * *
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -75,13 +49,10 @@ public interface BatchRecognizeFileMetadataOrBuilder
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -94,13 +65,10 @@ public interface BatchRecognizeFileMetadataOrBuilder
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return The config. */ com.google.cloud.speech.v2.RecognitionConfig getConfig(); /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -117,8 +85,6 @@ public interface BatchRecognizeFileMetadataOrBuilder
   com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -136,13 +102,10 @@ public interface BatchRecognizeFileMetadataOrBuilder
    * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return Whether the configMask field is set. */ boolean hasConfigMask(); /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -160,13 +123,10 @@ public interface BatchRecognizeFileMetadataOrBuilder
    * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return The configMask. */ com.google.protobuf.FieldMask getConfigMask(); /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java
similarity index 68%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java
index 17f5d8a3fbc3..cfb53bc3ef30 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java
@@ -1,85 +1,62 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
- *
- *
  * 
  * Final results for a single file.
  * 
* * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeFileResult} */ -public final class BatchRecognizeFileResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchRecognizeFileResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeFileResult) BatchRecognizeFileResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchRecognizeFileResult.newBuilder() to construct. private BatchRecognizeFileResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchRecognizeFileResult() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchRecognizeFileResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.BatchRecognizeFileResult.class, - com.google.cloud.speech.v2.BatchRecognizeFileResult.Builder.class); + com.google.cloud.speech.v2.BatchRecognizeFileResult.class, com.google.cloud.speech.v2.BatchRecognizeFileResult.Builder.class); } public static final int URI_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** - * - * *
    * The GCS URI to which recognition results were written.
    * 
* * string uri = 1; - * * @return The uri. */ @java.lang.Override @@ -88,29 +65,29 @@ 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; } } /** - * - * *
    * The GCS URI to which recognition results were written.
    * 
* * string uri = 1; - * * @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 { @@ -121,14 +98,11 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int ERROR_FIELD_NUMBER = 2; private com.google.rpc.Status error_; /** - * - * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; - * * @return Whether the error field is set. */ @java.lang.Override @@ -136,14 +110,11 @@ public boolean hasError() { return error_ != null; } /** - * - * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; - * * @return The error. */ @java.lang.Override @@ -151,8 +122,6 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** - * - * *
    * Error if one was encountered.
    * 
@@ -165,7 +134,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +145,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(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -197,7 +166,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (error_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getError()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -207,18 +177,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.v2.BatchRecognizeFileResult)) { return super.equals(obj); } - com.google.cloud.speech.v2.BatchRecognizeFileResult other = - (com.google.cloud.speech.v2.BatchRecognizeFileResult) obj; + com.google.cloud.speech.v2.BatchRecognizeFileResult other = (com.google.cloud.speech.v2.BatchRecognizeFileResult) obj; - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError().equals(other.getError())) return false; + if (!getError() + .equals(other.getError())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -243,135 +214,129 @@ public int hashCode() { } public static com.google.cloud.speech.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.BatchRecognizeFileResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.BatchRecognizeFileResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult 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; } /** - * - * *
    * Final results for a single file.
    * 
* * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeFileResult} */ - 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.v2.BatchRecognizeFileResult) com.google.cloud.speech.v2.BatchRecognizeFileResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.BatchRecognizeFileResult.class, - com.google.cloud.speech.v2.BatchRecognizeFileResult.Builder.class); + com.google.cloud.speech.v2.BatchRecognizeFileResult.class, com.google.cloud.speech.v2.BatchRecognizeFileResult.Builder.class); } // Construct using com.google.cloud.speech.v2.BatchRecognizeFileResult.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -386,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; } @java.lang.Override @@ -407,11 +372,8 @@ public com.google.cloud.speech.v2.BatchRecognizeFileResult build() { @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeFileResult buildPartial() { - com.google.cloud.speech.v2.BatchRecognizeFileResult result = - new com.google.cloud.speech.v2.BatchRecognizeFileResult(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v2.BatchRecognizeFileResult result = new com.google.cloud.speech.v2.BatchRecognizeFileResult(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -422,7 +384,9 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeFileResult r result.uri_ = uri_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + result.error_ = errorBuilder_ == null + ? error_ + : errorBuilder_.build(); } } @@ -430,39 +394,38 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeFileResult r 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.v2.BatchRecognizeFileResult) { - return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeFileResult) other); + return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeFileResult)other); } else { super.mergeFrom(other); return this; @@ -470,8 +433,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeFileResult other) { - if (other == com.google.cloud.speech.v2.BatchRecognizeFileResult.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v2.BatchRecognizeFileResult.getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; bitField0_ |= 0x00000001; @@ -506,25 +468,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getErrorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -534,25 +495,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object uri_ = ""; /** - * - * *
      * The GCS URI to which recognition results were written.
      * 
* * string uri = 1; - * * @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; @@ -561,21 +519,20 @@ public java.lang.String getUri() { } } /** - * - * *
      * The GCS URI to which recognition results were written.
      * 
* * string uri = 1; - * * @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 { @@ -583,35 +540,28 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * The GCS URI to which recognition results were written.
      * 
* * string uri = 1; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The GCS URI to which recognition results were written.
      * 
* * string uri = 1; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -621,21 +571,17 @@ public Builder clearUri() { return this; } /** - * - * *
      * The GCS URI to which recognition results were written.
      * 
* * string uri = 1; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000001; @@ -645,31 +591,24 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { 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_; /** - * - * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; - * * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; - * * @return The error. */ public com.google.rpc.Status getError() { @@ -680,8 +619,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
      * Error if one was encountered.
      * 
@@ -702,15 +639,14 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** - * - * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; */ - public Builder setError(com.google.rpc.Status.Builder builderForValue) { + public Builder setError( + com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); } else { @@ -721,8 +657,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * Error if one was encountered.
      * 
@@ -731,9 +665,9 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && error_ != null - && error_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + error_ != null && + error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; @@ -746,8 +680,6 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** - * - * *
      * Error if one was encountered.
      * 
@@ -765,8 +697,6 @@ public Builder clearError() { return this; } /** - * - * *
      * Error if one was encountered.
      * 
@@ -779,8 +709,6 @@ public com.google.rpc.Status.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** - * - * *
      * Error if one was encountered.
      * 
@@ -791,12 +719,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_; } } /** - * - * *
      * Error if one was encountered.
      * 
@@ -804,21 +731,21 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 2; */ 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_; } - @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); } @@ -828,12 +755,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeFileResult) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeFileResult) private static final com.google.cloud.speech.v2.BatchRecognizeFileResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeFileResult(); } @@ -842,27 +769,27 @@ public static com.google.cloud.speech.v2.BatchRecognizeFileResult getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRecognizeFileResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchRecognizeFileResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -877,4 +804,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.BatchRecognizeFileResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java similarity index 60% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java index 5ec2c3bdb67d..75094b397db2 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java @@ -1,80 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface BatchRecognizeFileResultOrBuilder - extends +public interface BatchRecognizeFileResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeFileResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The GCS URI to which recognition results were written.
    * 
* * string uri = 1; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * The GCS URI to which recognition results were written.
    * 
* * string uri = 1; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
    * Error if one was encountered.
    * 
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java similarity index 51% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java index cfac2e6b4760..d8db2e8bd21f 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Operation metadata for
  * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize].
@@ -28,177 +11,144 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeMetadata}
  */
-public final class BatchRecognizeMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchRecognizeMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeMetadata)
     BatchRecognizeMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchRecognizeMetadata.newBuilder() to construct.
   private BatchRecognizeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchRecognizeMetadata() {}
+  private BatchRecognizeMetadata() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchRecognizeMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 1:
         return internalGetTranscriptionMetadata();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.BatchRecognizeMetadata.class,
-            com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder.class);
+            com.google.cloud.speech.v2.BatchRecognizeMetadata.class, com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder.class);
   }
 
   public static final int TRANSCRIPTION_METADATA_FIELD_NUMBER = 1;
-
   private static final class TranscriptionMetadataDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
-        defaultEntry =
+        java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> defaultEntry =
             com.google.protobuf.MapEntry
-                .
-                    newDefaultInstance(
-                        com.google.cloud.speech.v2.CloudSpeechProto
-                            .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_descriptor,
-                        com.google.protobuf.WireFormat.FieldType.STRING,
-                        "",
-                        com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                        com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata
-                            .getDefaultInstance());
+            .newDefaultInstance(
+                com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.getDefaultInstance());
   }
-
   @SuppressWarnings("serial")
   private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
-      transcriptionMetadata_;
-
-  private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
-      internalGetTranscriptionMetadata() {
+      java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcriptionMetadata_;
+  private com.google.protobuf.MapField
+  internalGetTranscriptionMetadata() {
     if (transcriptionMetadata_ == null) {
       return com.google.protobuf.MapField.emptyMapField(
           TranscriptionMetadataDefaultEntryHolder.defaultEntry);
     }
     return transcriptionMetadata_;
   }
-
   public int getTranscriptionMetadataCount() {
     return internalGetTranscriptionMetadata().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Map from provided filename to the transcription metadata for that file.
    * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ @java.lang.Override - public boolean containsTranscriptionMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsTranscriptionMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetTranscriptionMetadata().getMap().containsKey(key); } - /** Use {@link #getTranscriptionMetadataMap()} instead. */ + /** + * Use {@link #getTranscriptionMetadataMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> - getTranscriptionMetadata() { + public java.util.Map getTranscriptionMetadata() { return getTranscriptionMetadataMap(); } /** - * - * *
    * Map from provided filename to the transcription metadata for that file.
    * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> - getTranscriptionMetadataMap() { + public java.util.Map getTranscriptionMetadataMap() { return internalGetTranscriptionMetadata().getMap(); } /** - * - * *
    * Map from provided filename to the transcription metadata for that file.
    * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ @java.lang.Override - public /* nullable */ com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata - getTranscriptionMetadataOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetTranscriptionMetadata().getMap(); + public /* nullable */ +com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTranscriptionMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Map from provided filename to the transcription metadata for that file.
    * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata - getTranscriptionMetadataOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetTranscriptionMetadata().getMap(); + public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTranscriptionMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -206,7 +156,6 @@ public boolean containsTranscriptionMetadata(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,8 +167,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetTranscriptionMetadata(), TranscriptionMetadataDefaultEntryHolder.defaultEntry, @@ -233,18 +184,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> - entry : internalGetTranscriptionMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> - transcriptionMetadata__ = - TranscriptionMetadataDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, transcriptionMetadata__); + for (java.util.Map.Entry entry + : internalGetTranscriptionMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + transcriptionMetadata__ = TranscriptionMetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, transcriptionMetadata__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -254,16 +202,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.v2.BatchRecognizeMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v2.BatchRecognizeMetadata other = - (com.google.cloud.speech.v2.BatchRecognizeMetadata) obj; + com.google.cloud.speech.v2.BatchRecognizeMetadata other = (com.google.cloud.speech.v2.BatchRecognizeMetadata) obj; - if (!internalGetTranscriptionMetadata().equals(other.internalGetTranscriptionMetadata())) - return false; + if (!internalGetTranscriptionMetadata().equals( + other.internalGetTranscriptionMetadata())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,103 +232,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.BatchRecognizeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.BatchRecognizeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata 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; } /** - * - * *
    * Operation metadata for
    * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize].
@@ -389,52 +329,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeMetadata}
    */
-  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.v2.BatchRecognizeMetadata)
       com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetTranscriptionMetadata();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetMutableTranscriptionMetadata();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.BatchRecognizeMetadata.class,
-              com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder.class);
+              com.google.cloud.speech.v2.BatchRecognizeMetadata.class, com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.BatchRecognizeMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -444,9 +387,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -465,11 +408,8 @@ public com.google.cloud.speech.v2.BatchRecognizeMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.BatchRecognizeMetadata buildPartial() {
-      com.google.cloud.speech.v2.BatchRecognizeMetadata result =
-          new com.google.cloud.speech.v2.BatchRecognizeMetadata(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.BatchRecognizeMetadata result = new com.google.cloud.speech.v2.BatchRecognizeMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -486,39 +426,38 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeMetadata res
     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.v2.BatchRecognizeMetadata) {
-        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeMetadata) other);
+        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -526,9 +465,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeMetadata other) {
-      if (other == com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance())
-        return this;
-      internalGetMutableTranscriptionMetadata().mergeFrom(other.internalGetTranscriptionMetadata());
+      if (other == com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance()) return this;
+      internalGetMutableTranscriptionMetadata().mergeFrom(
+          other.internalGetTranscriptionMetadata());
       bitField0_ |= 0x00000001;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -556,28 +495,21 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.protobuf.MapEntry<
-                        java.lang.String,
-                        com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
-                    transcriptionMetadata__ =
-                        input.readMessage(
-                            TranscriptionMetadataDefaultEntryHolder.defaultEntry.getParserForType(),
-                            extensionRegistry);
-                internalGetMutableTranscriptionMetadata()
-                    .getMutableMap()
-                    .put(transcriptionMetadata__.getKey(), transcriptionMetadata__.getValue());
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.protobuf.MapEntry
+              transcriptionMetadata__ = input.readMessage(
+                  TranscriptionMetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableTranscriptionMetadata().getMutableMap().put(
+                  transcriptionMetadata__.getKey(), transcriptionMetadata__.getValue());
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -587,15 +519,11 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
-        transcriptionMetadata_;
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
+        java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcriptionMetadata_;
+    private com.google.protobuf.MapField
         internalGetTranscriptionMetadata() {
       if (transcriptionMetadata_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
@@ -603,14 +531,11 @@ public Builder mergeFrom(
       }
       return transcriptionMetadata_;
     }
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
+    private com.google.protobuf.MapField
         internalGetMutableTranscriptionMetadata() {
       if (transcriptionMetadata_ == null) {
-        transcriptionMetadata_ =
-            com.google.protobuf.MapField.newMapField(
-                TranscriptionMetadataDefaultEntryHolder.defaultEntry);
+        transcriptionMetadata_ = com.google.protobuf.MapField.newMapField(
+            TranscriptionMetadataDefaultEntryHolder.defaultEntry);
       }
       if (!transcriptionMetadata_.isMutable()) {
         transcriptionMetadata_ = transcriptionMetadata_.copy();
@@ -619,181 +544,140 @@ public Builder mergeFrom(
       onChanged();
       return transcriptionMetadata_;
     }
-
     public int getTranscriptionMetadataCount() {
       return internalGetTranscriptionMetadata().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ @java.lang.Override - public boolean containsTranscriptionMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsTranscriptionMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetTranscriptionMetadata().getMap().containsKey(key); } - /** Use {@link #getTranscriptionMetadataMap()} instead. */ + /** + * Use {@link #getTranscriptionMetadataMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> - getTranscriptionMetadata() { + public java.util.Map getTranscriptionMetadata() { return getTranscriptionMetadataMap(); } /** - * - * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> - getTranscriptionMetadataMap() { + public java.util.Map getTranscriptionMetadataMap() { return internalGetTranscriptionMetadata().getMap(); } /** - * - * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ @java.lang.Override - public /* nullable */ com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata - getTranscriptionMetadataOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> - map = internalGetTranscriptionMetadata().getMap(); + public /* nullable */ +com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTranscriptionMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata - getTranscriptionMetadataOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> - map = internalGetTranscriptionMetadata().getMap(); + public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetTranscriptionMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearTranscriptionMetadata() { bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableTranscriptionMetadata().getMutableMap().clear(); + internalGetMutableTranscriptionMetadata().getMutableMap() + .clear(); return this; } /** - * - * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ - public Builder removeTranscriptionMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableTranscriptionMetadata().getMutableMap().remove(key); + public Builder removeTranscriptionMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableTranscriptionMetadata().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> + public java.util.Map getMutableTranscriptionMetadata() { bitField0_ |= 0x00000001; return internalGetMutableTranscriptionMetadata().getMutableMap(); } /** - * - * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ public Builder putTranscriptionMetadata( java.lang.String key, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableTranscriptionMetadata().getMutableMap().put(key, value); + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableTranscriptionMetadata().getMutableMap() + .put(key, value); bitField0_ |= 0x00000001; return this; } /** - * - * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; */ public Builder putAllTranscriptionMetadata( - java.util.Map< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> - values) { - internalGetMutableTranscriptionMetadata().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableTranscriptionMetadata().getMutableMap() + .putAll(values); bitField0_ |= 0x00000001; 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); } @@ -803,12 +687,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeMetadata) private static final com.google.cloud.speech.v2.BatchRecognizeMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeMetadata(); } @@ -817,27 +701,27 @@ public static com.google.cloud.speech.v2.BatchRecognizeMetadata getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRecognizeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchRecognizeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -852,4 +736,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.BatchRecognizeMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java new file mode 100644 index 000000000000..3a87adc47c62 --- /dev/null +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java @@ -0,0 +1,63 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public interface BatchRecognizeMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Map from provided filename to the transcription metadata for that file.
+   * 
+ * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + */ + int getTranscriptionMetadataCount(); + /** + *
+   * Map from provided filename to the transcription metadata for that file.
+   * 
+ * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + */ + boolean containsTranscriptionMetadata( + java.lang.String key); + /** + * Use {@link #getTranscriptionMetadataMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getTranscriptionMetadata(); + /** + *
+   * Map from provided filename to the transcription metadata for that file.
+   * 
+ * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + */ + java.util.Map + getTranscriptionMetadataMap(); + /** + *
+   * Map from provided filename to the transcription metadata for that file.
+   * 
+ * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + */ + /* nullable */ +com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue); + /** + *
+   * Map from provided filename to the transcription metadata for that file.
+   * 
+ * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + */ + com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrThrow( + java.lang.String key); +} diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java similarity index 76% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java index 563a9d435667..865cc8a206b9 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeRequest}
  */
-public final class BatchRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchRecognizeRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeRequest)
     BatchRecognizeRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchRecognizeRequest.newBuilder() to construct.
   private BatchRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private BatchRecognizeRequest() {
     recognizer_ = "";
     files_ = java.util.Collections.emptyList();
@@ -46,45 +28,38 @@ private BatchRecognizeRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.BatchRecognizeRequest.class,
-            com.google.cloud.speech.v2.BatchRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v2.BatchRecognizeRequest.class, com.google.cloud.speech.v2.BatchRecognizeRequest.Builder.class);
   }
 
   public static final int RECOGNIZER_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object recognizer_ = "";
   /**
-   *
-   *
    * 
    * Required. Resource name of the recognizer to be used for ASR.
    * 
* - * - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The recognizer. */ @java.lang.Override @@ -93,31 +68,29 @@ public java.lang.String getRecognizer() { 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(); recognizer_ = s; return s; } } /** - * - * *
    * Required. Resource name of the recognizer to be used for ASR.
    * 
* - * - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for recognizer. */ @java.lang.Override - public com.google.protobuf.ByteString getRecognizerBytes() { + public com.google.protobuf.ByteString + getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -128,8 +101,6 @@ public com.google.protobuf.ByteString getRecognizerBytes() { public static final int CONFIG_FIELD_NUMBER = 4; private com.google.cloud.speech.v2.RecognitionConfig config_; /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -140,7 +111,6 @@ public com.google.protobuf.ByteString getRecognizerBytes() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return Whether the config field is set. */ @java.lang.Override @@ -148,8 +118,6 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -160,18 +128,13 @@ public boolean hasConfig() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfig getConfig() { - return config_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; } /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -185,16 +148,12 @@ public com.google.cloud.speech.v2.RecognitionConfig getConfig() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder() {
-    return config_ == null
-        ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
-        : config_;
+    return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
   }
 
   public static final int CONFIG_MASK_FIELD_NUMBER = 5;
   private com.google.protobuf.FieldMask configMask_;
   /**
-   *
-   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -212,7 +171,6 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return Whether the configMask field is set. */ @java.lang.Override @@ -220,8 +178,6 @@ public boolean hasConfigMask() { return configMask_ != null; } /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -239,7 +195,6 @@ public boolean hasConfigMask() {
    * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return The configMask. */ @java.lang.Override @@ -247,8 +202,6 @@ public com.google.protobuf.FieldMask getConfigMask() { return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -273,12 +226,9 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
   }
 
   public static final int FILES_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private java.util.List files_;
   /**
-   *
-   *
    * 
    * Audio files with file metadata for ASR.
    * 
@@ -290,8 +240,6 @@ public java.util.List get return files_; } /** - * - * *
    * Audio files with file metadata for ASR.
    * 
@@ -299,13 +247,11 @@ public java.util.List get * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ @java.lang.Override - public java.util.List + public java.util.List getFilesOrBuilderList() { return files_; } /** - * - * *
    * Audio files with file metadata for ASR.
    * 
@@ -317,8 +263,6 @@ public int getFilesCount() { return files_.size(); } /** - * - * *
    * Audio files with file metadata for ASR.
    * 
@@ -330,8 +274,6 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata getFiles(int index) return files_.get(index); } /** - * - * *
    * Audio files with file metadata for ASR.
    * 
@@ -345,7 +287,6 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -357,7 +298,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(recognizer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recognizer_); } @@ -383,13 +325,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, recognizer_); } for (int i = 0; i < files_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, files_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, files_.get(i)); } if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getConfig()); } if (configMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getConfigMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getConfigMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -399,24 +344,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.v2.BatchRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.BatchRecognizeRequest other = - (com.google.cloud.speech.v2.BatchRecognizeRequest) obj; + com.google.cloud.speech.v2.BatchRecognizeRequest other = (com.google.cloud.speech.v2.BatchRecognizeRequest) obj; - if (!getRecognizer().equals(other.getRecognizer())) return false; + if (!getRecognizer() + .equals(other.getRecognizer())) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } if (hasConfigMask() != other.hasConfigMask()) return false; if (hasConfigMask()) { - if (!getConfigMask().equals(other.getConfigMask())) return false; + if (!getConfigMask() + .equals(other.getConfigMask())) return false; } - if (!getFilesList().equals(other.getFilesList())) return false; + if (!getFilesList() + .equals(other.getFilesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -447,104 +395,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.BatchRecognizeRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.BatchRecognizeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.BatchRecognizeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.BatchRecognizeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest 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; } /** - * - * *
    * Request message for the
    * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize]
@@ -553,32 +494,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeRequest}
    */
-  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.v2.BatchRecognizeRequest)
       com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.BatchRecognizeRequest.class,
-              com.google.cloud.speech.v2.BatchRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v2.BatchRecognizeRequest.class, com.google.cloud.speech.v2.BatchRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.BatchRecognizeRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -605,9 +547,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -626,18 +568,14 @@ public com.google.cloud.speech.v2.BatchRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.BatchRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v2.BatchRecognizeRequest result =
-          new com.google.cloud.speech.v2.BatchRecognizeRequest(this);
+      com.google.cloud.speech.v2.BatchRecognizeRequest result = new com.google.cloud.speech.v2.BatchRecognizeRequest(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v2.BatchRecognizeRequest result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.BatchRecognizeRequest result) {
       if (filesBuilder_ == null) {
         if (((bitField0_ & 0x00000008) != 0)) {
           files_ = java.util.Collections.unmodifiableList(files_);
@@ -655,10 +593,14 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeRequest resu
         result.recognizer_ = recognizer_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
+        result.config_ = configBuilder_ == null
+            ? config_
+            : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.configMask_ = configMaskBuilder_ == null ? configMask_ : configMaskBuilder_.build();
+        result.configMask_ = configMaskBuilder_ == null
+            ? configMask_
+            : configMaskBuilder_.build();
       }
     }
 
@@ -666,39 +608,38 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeRequest resu
     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.v2.BatchRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -706,8 +647,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeRequest other) {
-      if (other == com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance()) return this;
       if (!other.getRecognizer().isEmpty()) {
         recognizer_ = other.recognizer_;
         bitField0_ |= 0x00000001;
@@ -737,10 +677,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeRequest other)
             filesBuilder_ = null;
             files_ = other.files_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            filesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getFilesFieldBuilder()
-                    : null;
+            filesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getFilesFieldBuilder() : null;
           } else {
             filesBuilder_.addAllMessages(other.files_);
           }
@@ -772,45 +711,44 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                recognizer_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 26:
-              {
-                com.google.cloud.speech.v2.BatchRecognizeFileMetadata m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.BatchRecognizeFileMetadata.parser(),
-                        extensionRegistry);
-                if (filesBuilder_ == null) {
-                  ensureFilesIsMutable();
-                  files_.add(m);
-                } else {
-                  filesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getConfigMaskFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 42
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              recognizer_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 26: {
+              com.google.cloud.speech.v2.BatchRecognizeFileMetadata m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.BatchRecognizeFileMetadata.parser(),
+                      extensionRegistry);
+              if (filesBuilder_ == null) {
+                ensureFilesIsMutable();
+                files_.add(m);
+              } else {
+                filesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getConfigMaskFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 42
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -820,27 +758,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object recognizer_ = "";
     /**
-     *
-     *
      * 
      * Required. Resource name of the recognizer to be used for ASR.
      * 
* - * - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The recognizer. */ public java.lang.String getRecognizer() { java.lang.Object ref = recognizer_; 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(); recognizer_ = s; return s; @@ -849,23 +782,20 @@ public java.lang.String getRecognizer() { } } /** - * - * *
      * Required. Resource name of the recognizer to be used for ASR.
      * 
* - * - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for recognizer. */ - public com.google.protobuf.ByteString getRecognizerBytes() { + public com.google.protobuf.ByteString + getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -873,39 +803,28 @@ public com.google.protobuf.ByteString getRecognizerBytes() { } } /** - * - * *
      * Required. Resource name of the recognizer to be used for ASR.
      * 
* - * - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizer(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecognizer( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } recognizer_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Resource name of the recognizer to be used for ASR.
      * 
* - * - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearRecognizer() { @@ -915,23 +834,17 @@ public Builder clearRecognizer() { return this; } /** - * - * *
      * Required. Resource name of the recognizer to be used for ASR.
      * 
* - * - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizerBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecognizerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); recognizer_ = value; bitField0_ |= 0x00000001; @@ -941,13 +854,8 @@ public Builder setRecognizerBytes(com.google.protobuf.ByteString value) { private com.google.cloud.speech.v2.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, - com.google.cloud.speech.v2.RecognitionConfig.Builder, - com.google.cloud.speech.v2.RecognitionConfigOrBuilder> - configBuilder_; + com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> configBuilder_; /** - * - * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -958,15 +866,12 @@ public Builder setRecognizerBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -977,21 +882,16 @@ public boolean hasConfig() {
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return The config. */ public com.google.cloud.speech.v2.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1017,8 +917,6 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1030,7 +928,8 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
      *
      * .google.cloud.speech.v2.RecognitionConfig config = 4;
      */
-    public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
+    public Builder setConfig(
+        com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
       if (configBuilder_ == null) {
         config_ = builderForValue.build();
       } else {
@@ -1041,8 +940,6 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder bu
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1056,9 +953,9 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder bu
      */
     public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       if (configBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && config_ != null
-            && config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          config_ != null &&
+          config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
           getConfigBuilder().mergeFrom(value);
         } else {
           config_ = value;
@@ -1071,8 +968,6 @@ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1095,8 +990,6 @@ public Builder clearConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1114,8 +1007,6 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() {
       return getConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1131,14 +1022,11 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
       if (configBuilder_ != null) {
         return configBuilder_.getMessageOrBuilder();
       } else {
-        return config_ == null
-            ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
-            : config_;
+        return config_ == null ?
+            com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
       }
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1151,17 +1039,14 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * .google.cloud.speech.v2.RecognitionConfig config = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.RecognitionConfig,
-            com.google.cloud.speech.v2.RecognitionConfig.Builder,
-            com.google.cloud.speech.v2.RecognitionConfigOrBuilder>
+        com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> 
         getConfigFieldBuilder() {
       if (configBuilder_ == null) {
-        configBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v2.RecognitionConfig,
-                com.google.cloud.speech.v2.RecognitionConfig.Builder,
-                com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
-                getConfig(), getParentForChildren(), isClean());
+        configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
+                getConfig(),
+                getParentForChildren(),
+                isClean());
         config_ = null;
       }
       return configBuilder_;
@@ -1169,13 +1054,8 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
 
     private com.google.protobuf.FieldMask configMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
-        configMaskBuilder_;
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> configMaskBuilder_;
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1193,15 +1073,12 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return Whether the configMask field is set. */ public boolean hasConfigMask() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1219,21 +1096,16 @@ public boolean hasConfigMask() {
      * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return The configMask. */ public com.google.protobuf.FieldMask getConfigMask() { if (configMaskBuilder_ == null) { - return configMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : configMask_; + return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } else { return configMaskBuilder_.getMessage(); } } /** - * - * *
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1266,8 +1138,6 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1286,7 +1156,8 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask config_mask = 5;
      */
-    public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setConfigMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (configMaskBuilder_ == null) {
         configMask_ = builderForValue.build();
       } else {
@@ -1297,8 +1168,6 @@ public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1319,9 +1188,9 @@ public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       if (configMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && configMask_ != null
-            && configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          configMask_ != null &&
+          configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getConfigMaskBuilder().mergeFrom(value);
         } else {
           configMask_ = value;
@@ -1334,8 +1203,6 @@ public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1365,8 +1232,6 @@ public Builder clearConfigMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1391,8 +1256,6 @@ public com.google.protobuf.FieldMask.Builder getConfigMaskBuilder() {
       return getConfigMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1415,14 +1278,11 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
       if (configMaskBuilder_ != null) {
         return configMaskBuilder_.getMessageOrBuilder();
       } else {
-        return configMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : configMask_;
+        return configMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : configMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1442,42 +1302,32 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
      * .google.protobuf.FieldMask config_mask = 5;
      */
     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> 
         getConfigMaskFieldBuilder() {
       if (configMaskBuilder_ == null) {
-        configMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getConfigMask(), getParentForChildren(), isClean());
+        configMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getConfigMask(),
+                getParentForChildren(),
+                isClean());
         configMask_ = null;
       }
       return configMaskBuilder_;
     }
 
     private java.util.List files_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureFilesIsMutable() {
       if (!((bitField0_ & 0x00000008) != 0)) {
-        files_ =
-            new java.util.ArrayList(files_);
+        files_ = new java.util.ArrayList(files_);
         bitField0_ |= 0x00000008;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.BatchRecognizeFileMetadata,
-            com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder,
-            com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder>
-        filesBuilder_;
+        com.google.cloud.speech.v2.BatchRecognizeFileMetadata, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder> filesBuilder_;
 
     /**
-     *
-     *
      * 
      * Audio files with file metadata for ASR.
      * 
@@ -1492,8 +1342,6 @@ public java.util.List get } } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1508,8 +1356,6 @@ public int getFilesCount() { } } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1524,8 +1370,6 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata getFiles(int index) } } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1547,8 +1391,6 @@ public Builder setFiles( return this; } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1567,8 +1409,6 @@ public Builder setFiles( return this; } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1589,8 +1429,6 @@ public Builder addFiles(com.google.cloud.speech.v2.BatchRecognizeFileMetadata va return this; } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1612,8 +1450,6 @@ public Builder addFiles( return this; } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1632,8 +1468,6 @@ public Builder addFiles( return this; } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1652,8 +1486,6 @@ public Builder addFiles( return this; } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1661,11 +1493,11 @@ public Builder addFiles( * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ public Builder addAllFiles( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (filesBuilder_ == null) { ensureFilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, files_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, files_); onChanged(); } else { filesBuilder_.addAllMessages(values); @@ -1673,8 +1505,6 @@ public Builder addAllFiles( return this; } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1692,8 +1522,6 @@ public Builder clearFiles() { return this; } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1711,8 +1539,6 @@ public Builder removeFiles(int index) { return this; } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1724,8 +1550,6 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder getFilesBui return getFilesFieldBuilder().getBuilder(index); } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1735,22 +1559,19 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder getFilesBui public com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOrBuilder( int index) { if (filesBuilder_ == null) { - return files_.get(index); - } else { + return files_.get(index); } else { return filesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
* * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ - public java.util.List - getFilesOrBuilderList() { + public java.util.List + getFilesOrBuilderList() { if (filesBuilder_ != null) { return filesBuilder_.getMessageOrBuilderList(); } else { @@ -1758,8 +1579,6 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOr } } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1767,12 +1586,10 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOr * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder addFilesBuilder() { - return getFilesFieldBuilder() - .addBuilder(com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()); + return getFilesFieldBuilder().addBuilder( + com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()); } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
@@ -1781,43 +1598,37 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder addFilesBui */ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder addFilesBuilder( int index) { - return getFilesFieldBuilder() - .addBuilder( - index, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()); + return getFilesFieldBuilder().addBuilder( + index, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()); } /** - * - * *
      * Audio files with file metadata for ASR.
      * 
* * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ - public java.util.List - getFilesBuilderList() { + public java.util.List + getFilesBuilderList() { return getFilesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeFileMetadata, - com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder, - com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder> + com.google.cloud.speech.v2.BatchRecognizeFileMetadata, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder> getFilesFieldBuilder() { if (filesBuilder_ == null) { - filesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeFileMetadata, - com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder, - com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder>( - files_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + filesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.BatchRecognizeFileMetadata, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder>( + files_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); files_ = null; } return filesBuilder_; } - @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); } @@ -1827,12 +1638,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeRequest) private static final com.google.cloud.speech.v2.BatchRecognizeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeRequest(); } @@ -1841,27 +1652,27 @@ public static com.google.cloud.speech.v2.BatchRecognizeRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1876,4 +1687,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.BatchRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java similarity index 84% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java index 3c9471a9e2cf..e84825dedbfd 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java @@ -1,60 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface BatchRecognizeRequestOrBuilder - extends +public interface BatchRecognizeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Resource name of the recognizer to be used for ASR.
    * 
* - * - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The recognizer. */ java.lang.String getRecognizer(); /** - * - * *
    * Required. Resource name of the recognizer to be used for ASR.
    * 
* - * - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for recognizer. */ - com.google.protobuf.ByteString getRecognizerBytes(); + com.google.protobuf.ByteString + getRecognizerBytes(); /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -65,13 +38,10 @@ public interface BatchRecognizeRequestOrBuilder
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -82,13 +52,10 @@ public interface BatchRecognizeRequestOrBuilder
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; - * * @return The config. */ com.google.cloud.speech.v2.RecognitionConfig getConfig(); /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -103,8 +70,6 @@ public interface BatchRecognizeRequestOrBuilder
   com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -122,13 +87,10 @@ public interface BatchRecognizeRequestOrBuilder
    * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return Whether the configMask field is set. */ boolean hasConfigMask(); /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -146,13 +108,10 @@ public interface BatchRecognizeRequestOrBuilder
    * 
* * .google.protobuf.FieldMask config_mask = 5; - * * @return The configMask. */ com.google.protobuf.FieldMask getConfigMask(); /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -174,18 +133,15 @@ public interface BatchRecognizeRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * Audio files with file metadata for ASR.
    * 
* * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ - java.util.List getFilesList(); + java.util.List + getFilesList(); /** - * - * *
    * Audio files with file metadata for ASR.
    * 
@@ -194,8 +150,6 @@ public interface BatchRecognizeRequestOrBuilder */ com.google.cloud.speech.v2.BatchRecognizeFileMetadata getFiles(int index); /** - * - * *
    * Audio files with file metadata for ASR.
    * 
@@ -204,24 +158,21 @@ public interface BatchRecognizeRequestOrBuilder */ int getFilesCount(); /** - * - * *
    * Audio files with file metadata for ASR.
    * 
* * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ - java.util.List + java.util.List getFilesOrBuilderList(); /** - * - * *
    * Audio files with file metadata for ASR.
    * 
* * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ - com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOrBuilder(int index); + com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOrBuilder( + int index); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java similarity index 59% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java index 21d2081a3b6f..75fe5f37828b 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Response message for
  * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize] that is
@@ -29,92 +12,82 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeResponse}
  */
-public final class BatchRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchRecognizeResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeResponse)
     BatchRecognizeResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchRecognizeResponse.newBuilder() to construct.
   private BatchRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private BatchRecognizeResponse() {}
+  private BatchRecognizeResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 1:
         return internalGetResults();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.BatchRecognizeResponse.class,
-            com.google.cloud.speech.v2.BatchRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v2.BatchRecognizeResponse.class, com.google.cloud.speech.v2.BatchRecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 1;
-
   private static final class ResultsDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
-        defaultEntry =
+        java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult> defaultEntry =
             com.google.protobuf.MapEntry
-                .
-                    newDefaultInstance(
-                        com.google.cloud.speech.v2.CloudSpeechProto
-                            .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_descriptor,
-                        com.google.protobuf.WireFormat.FieldType.STRING,
-                        "",
-                        com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                        com.google.cloud.speech.v2.BatchRecognizeFileResult.getDefaultInstance());
+            .newDefaultInstance(
+                com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                com.google.cloud.speech.v2.BatchRecognizeFileResult.getDefaultInstance());
   }
-
   @SuppressWarnings("serial")
   private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
-      results_;
-
-  private com.google.protobuf.MapField<
-          java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
-      internalGetResults() {
+      java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult> results_;
+  private com.google.protobuf.MapField
+  internalGetResults() {
     if (results_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(ResultsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          ResultsDefaultEntryHolder.defaultEntry);
     }
     return results_;
   }
-
   public int getResultsCount() {
     return internalGetResults().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Map from filename to the final result for that file.
    * 
@@ -122,22 +95,20 @@ public int getResultsCount() { * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public boolean containsResults(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsResults( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetResults().getMap().containsKey(key); } - /** Use {@link #getResultsMap()} instead. */ + /** + * Use {@link #getResultsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getResults() { + public java.util.Map getResults() { return getResultsMap(); } /** - * - * *
    * Map from filename to the final result for that file.
    * 
@@ -145,13 +116,10 @@ public boolean containsResults(java.lang.String key) { * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public java.util.Map - getResultsMap() { + public java.util.Map getResultsMap() { return internalGetResults().getMap(); } /** - * - * *
    * Map from filename to the final result for that file.
    * 
@@ -159,20 +127,17 @@ public boolean containsResults(java.lang.String key) { * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public /* nullable */ com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( + public /* nullable */ +com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResults().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Map from filename to the final result for that file.
    * 
@@ -182,9 +147,7 @@ public boolean containsResults(java.lang.String key) { @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResults().getMap(); if (!map.containsKey(key)) { @@ -194,7 +157,6 @@ public com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,9 +168,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetResults(), ResultsDefaultEntryHolder.defaultEntry, 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetResults(), + ResultsDefaultEntryHolder.defaultEntry, + 1); getUnknownFields().writeTo(output); } @@ -218,17 +185,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry - entry : internalGetResults().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult> - results__ = - ResultsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, results__); + for (java.util.Map.Entry entry + : internalGetResults().getMap().entrySet()) { + com.google.protobuf.MapEntry + results__ = ResultsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, results__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -238,15 +203,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.v2.BatchRecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.BatchRecognizeResponse other = - (com.google.cloud.speech.v2.BatchRecognizeResponse) obj; + com.google.cloud.speech.v2.BatchRecognizeResponse other = (com.google.cloud.speech.v2.BatchRecognizeResponse) obj; - if (!internalGetResults().equals(other.internalGetResults())) return false; + if (!internalGetResults().equals( + other.internalGetResults())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,103 +233,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.BatchRecognizeResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.BatchRecognizeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse 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; } /** - * - * *
    * Response message for
    * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize] that is
@@ -373,52 +331,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeResponse}
    */
-  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.v2.BatchRecognizeResponse)
       com.google.cloud.speech.v2.BatchRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetResults();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 1:
           return internalGetMutableResults();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.BatchRecognizeResponse.class,
-              com.google.cloud.speech.v2.BatchRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v2.BatchRecognizeResponse.class, com.google.cloud.speech.v2.BatchRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.BatchRecognizeResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -428,9 +389,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
@@ -449,11 +410,8 @@ public com.google.cloud.speech.v2.BatchRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.BatchRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v2.BatchRecognizeResponse result =
-          new com.google.cloud.speech.v2.BatchRecognizeResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.BatchRecognizeResponse result = new com.google.cloud.speech.v2.BatchRecognizeResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -470,39 +428,38 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeResponse res
     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.v2.BatchRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeResponse) other);
+        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -510,9 +467,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeResponse other) {
-      if (other == com.google.cloud.speech.v2.BatchRecognizeResponse.getDefaultInstance())
-        return this;
-      internalGetMutableResults().mergeFrom(other.internalGetResults());
+      if (other == com.google.cloud.speech.v2.BatchRecognizeResponse.getDefaultInstance()) return this;
+      internalGetMutableResults().mergeFrom(
+          other.internalGetResults());
       bitField0_ |= 0x00000001;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -540,27 +497,21 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.protobuf.MapEntry<
-                        java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
-                    results__ =
-                        input.readMessage(
-                            ResultsDefaultEntryHolder.defaultEntry.getParserForType(),
-                            extensionRegistry);
-                internalGetMutableResults()
-                    .getMutableMap()
-                    .put(results__.getKey(), results__.getValue());
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.protobuf.MapEntry
+              results__ = input.readMessage(
+                  ResultsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableResults().getMutableMap().put(
+                  results__.getKey(), results__.getValue());
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -570,27 +521,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
-        results_;
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
+        java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult> results_;
+    private com.google.protobuf.MapField
         internalGetResults() {
       if (results_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(ResultsDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(
+            ResultsDefaultEntryHolder.defaultEntry);
       }
       return results_;
     }
-
-    private com.google.protobuf.MapField<
-            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
+    private com.google.protobuf.MapField
         internalGetMutableResults() {
       if (results_ == null) {
-        results_ = com.google.protobuf.MapField.newMapField(ResultsDefaultEntryHolder.defaultEntry);
+        results_ = com.google.protobuf.MapField.newMapField(
+            ResultsDefaultEntryHolder.defaultEntry);
       }
       if (!results_.isMutable()) {
         results_ = results_.copy();
@@ -599,13 +546,10 @@ public Builder mergeFrom(
       onChanged();
       return results_;
     }
-
     public int getResultsCount() {
       return internalGetResults().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Map from filename to the final result for that file.
      * 
@@ -613,22 +557,20 @@ public int getResultsCount() { * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public boolean containsResults(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsResults( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetResults().getMap().containsKey(key); } - /** Use {@link #getResultsMap()} instead. */ + /** + * Use {@link #getResultsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getResults() { + public java.util.Map getResults() { return getResultsMap(); } /** - * - * *
      * Map from filename to the final result for that file.
      * 
@@ -636,13 +578,10 @@ public boolean containsResults(java.lang.String key) { * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public java.util.Map - getResultsMap() { + public java.util.Map getResultsMap() { return internalGetResults().getMap(); } /** - * - * *
      * Map from filename to the final result for that file.
      * 
@@ -650,20 +589,17 @@ public boolean containsResults(java.lang.String key) { * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public /* nullable */ com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( + public /* nullable */ +com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResults().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Map from filename to the final result for that file.
      * 
@@ -673,9 +609,7 @@ public boolean containsResults(java.lang.String key) { @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResults().getMap(); if (!map.containsKey(key)) { @@ -683,29 +617,29 @@ public com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow( } return map.get(key); } - public Builder clearResults() { bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableResults().getMutableMap().clear(); + internalGetMutableResults().getMutableMap() + .clear(); return this; } /** - * - * *
      * Map from filename to the final result for that file.
      * 
* * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ - public Builder removeResults(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableResults().getMutableMap().remove(key); + public Builder removeResults( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableResults().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map getMutableResults() { @@ -713,8 +647,6 @@ public Builder removeResults(java.lang.String key) { return internalGetMutableResults().getMutableMap(); } /** - * - * *
      * Map from filename to the final result for that file.
      * 
@@ -722,20 +654,16 @@ public Builder removeResults(java.lang.String key) { * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ public Builder putResults( - java.lang.String key, com.google.cloud.speech.v2.BatchRecognizeFileResult value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableResults().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.speech.v2.BatchRecognizeFileResult value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableResults().getMutableMap() + .put(key, value); bitField0_ |= 0x00000001; return this; } /** - * - * *
      * Map from filename to the final result for that file.
      * 
@@ -743,15 +671,15 @@ public Builder putResults( * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ public Builder putAllResults( - java.util.Map - values) { - internalGetMutableResults().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableResults().getMutableMap() + .putAll(values); bitField0_ |= 0x00000001; 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); } @@ -761,12 +689,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeResponse) private static final com.google.cloud.speech.v2.BatchRecognizeResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeResponse(); } @@ -775,27 +703,27 @@ public static com.google.cloud.speech.v2.BatchRecognizeResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchRecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -810,4 +738,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.BatchRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java similarity index 60% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java index 26c78951aef5..941fa7e878f7 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface BatchRecognizeResponseOrBuilder - extends +public interface BatchRecognizeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Map from filename to the final result for that file.
    * 
@@ -34,21 +16,21 @@ public interface BatchRecognizeResponseOrBuilder */ int getResultsCount(); /** - * - * *
    * Map from filename to the final result for that file.
    * 
* * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ - boolean containsResults(java.lang.String key); - /** Use {@link #getResultsMap()} instead. */ + boolean containsResults( + java.lang.String key); + /** + * Use {@link #getResultsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getResults(); + java.util.Map + getResults(); /** - * - * *
    * Map from filename to the final result for that file.
    * 
@@ -56,10 +38,8 @@ public interface BatchRecognizeResponseOrBuilder * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ java.util.Map - getResultsMap(); + getResultsMap(); /** - * - * *
    * Map from filename to the final result for that file.
    * 
@@ -67,18 +47,17 @@ public interface BatchRecognizeResponseOrBuilder * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ /* nullable */ - com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( +com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue); +com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue); /** - * - * *
    * Map from filename to the final result for that file.
    * 
* * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ - com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow(java.lang.String key); + com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow( + java.lang.String key); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java index b16bc466813f..7d0584cd7927 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Metadata about transcription for a single file (for example, progress
  * percent).
@@ -28,59 +11,52 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata}
  */
-public final class BatchRecognizeTranscriptionMetadata
-    extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class BatchRecognizeTranscriptionMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata)
     BatchRecognizeTranscriptionMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use BatchRecognizeTranscriptionMetadata.newBuilder() to construct.
-  private BatchRecognizeTranscriptionMetadata(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private BatchRecognizeTranscriptionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private BatchRecognizeTranscriptionMetadata() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new BatchRecognizeTranscriptionMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.class,
-            com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.Builder.class);
+            com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.class, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.Builder.class);
   }
 
   public static final int PROGRESS_PERCENT_FIELD_NUMBER = 1;
   private int progressPercent_ = 0;
   /**
-   *
-   *
    * 
    * How much of the file has been transcribed so far.
    * 
* * int32 progress_percent = 1; - * * @return The progressPercent. */ @java.lang.Override @@ -91,14 +67,11 @@ public int getProgressPercent() { public static final int ERROR_FIELD_NUMBER = 2; private com.google.rpc.Status error_; /** - * - * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; - * * @return Whether the error field is set. */ @java.lang.Override @@ -106,14 +79,11 @@ public boolean hasError() { return error_ != null; } /** - * - * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; - * * @return The error. */ @java.lang.Override @@ -121,8 +91,6 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** - * - * *
    * Error if one was encountered.
    * 
@@ -135,18 +103,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } public static final int URI_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** - * - * *
    * The GCS URI to which recognition results will be written.
    * 
* * string uri = 3; - * * @return The uri. */ @java.lang.Override @@ -155,29 +119,29 @@ 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; } } /** - * - * *
    * The GCS URI to which recognition results will be written.
    * 
* * string uri = 3; - * * @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 { @@ -186,7 +150,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,7 +161,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_); } @@ -218,10 +182,12 @@ 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 (error_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getError()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); @@ -234,20 +200,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.v2.BatchRecognizeTranscriptionMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata other = - (com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) obj; + com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata other = (com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) obj; - if (getProgressPercent() != other.getProgressPercent()) return false; + if (getProgressPercent() + != other.getProgressPercent()) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError().equals(other.getError())) return false; + if (!getError() + .equals(other.getError())) return false; } - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -273,104 +241,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata prototype) { + public static Builder newBuilder(com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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; } /** - * - * *
    * Metadata about transcription for a single file (for example, progress
    * percent).
@@ -378,32 +338,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata}
    */
-  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.v2.BatchRecognizeTranscriptionMetadata)
       com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.class,
-              com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.Builder.class);
+              com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.class, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -419,14 +380,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata
-        getDefaultInstanceForType() {
+    public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getDefaultInstanceForType() {
       return com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.getDefaultInstance();
     }
 
@@ -441,23 +401,21 @@ public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata buildPartial() {
-      com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata result =
-          new com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata result = new com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata result) {
+    private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.progressPercent_ = progressPercent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
+        result.error_ = errorBuilder_ == null
+            ? error_
+            : errorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.uri_ = uri_;
@@ -468,39 +426,38 @@ private void buildPartial0(
     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.v2.BatchRecognizeTranscriptionMetadata) {
-        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) other);
+        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -508,9 +465,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata other) {
-      if (other
-          == com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.getDefaultInstance()) return this;
       if (other.getProgressPercent() != 0) {
         setProgressPercent(other.getProgressPercent());
       }
@@ -548,31 +503,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                progressPercent_ = input.readInt32();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                uri_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              progressPercent_ = input.readInt32();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              input.readMessage(
+                  getErrorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              uri_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -582,19 +535,15 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private int progressPercent_;
+    private int progressPercent_ ;
     /**
-     *
-     *
      * 
      * How much of the file has been transcribed so far.
      * 
* * int32 progress_percent = 1; - * * @return The progressPercent. */ @java.lang.Override @@ -602,33 +551,27 @@ public int getProgressPercent() { return progressPercent_; } /** - * - * *
      * How much of the file has been transcribed so far.
      * 
* * int32 progress_percent = 1; - * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * How much of the file has been transcribed so far.
      * 
* * int32 progress_percent = 1; - * * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -640,31 +583,24 @@ public Builder clearProgressPercent() { 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_; /** - * - * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; - * * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; - * * @return The error. */ public com.google.rpc.Status getError() { @@ -675,8 +611,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
      * Error if one was encountered.
      * 
@@ -697,15 +631,14 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** - * - * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; */ - public Builder setError(com.google.rpc.Status.Builder builderForValue) { + public Builder setError( + com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); } else { @@ -716,8 +649,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * Error if one was encountered.
      * 
@@ -726,9 +657,9 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && error_ != null - && error_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + error_ != null && + error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; @@ -741,8 +672,6 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** - * - * *
      * Error if one was encountered.
      * 
@@ -760,8 +689,6 @@ public Builder clearError() { return this; } /** - * - * *
      * Error if one was encountered.
      * 
@@ -774,8 +701,6 @@ public com.google.rpc.Status.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** - * - * *
      * Error if one was encountered.
      * 
@@ -786,12 +711,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_; } } /** - * - * *
      * Error if one was encountered.
      * 
@@ -799,14 +723,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 2; */ 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_; @@ -814,20 +738,18 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { private java.lang.Object uri_ = ""; /** - * - * *
      * The GCS URI to which recognition results will be written.
      * 
* * string uri = 3; - * * @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; @@ -836,21 +758,20 @@ public java.lang.String getUri() { } } /** - * - * *
      * The GCS URI to which recognition results will be written.
      * 
* * string uri = 3; - * * @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 { @@ -858,35 +779,28 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * The GCS URI to which recognition results will be written.
      * 
* * string uri = 3; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uri_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The GCS URI to which recognition results will be written.
      * 
* * string uri = 3; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -896,30 +810,26 @@ public Builder clearUri() { return this; } /** - * - * *
      * The GCS URI to which recognition results will be written.
      * 
* * string uri = 3; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000004; 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); } @@ -929,43 +839,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) - private static final com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata(); } - public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata - getDefaultInstance() { + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRecognizeTranscriptionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchRecognizeTranscriptionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -977,8 +885,9 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata - getDefaultInstanceForType() { + public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java similarity index 63% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java index f2763466c9d6..3398c30c398a 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java @@ -1,68 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface BatchRecognizeTranscriptionMetadataOrBuilder - extends +public interface BatchRecognizeTranscriptionMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * How much of the file has been transcribed so far.
    * 
* * int32 progress_percent = 1; - * * @return The progressPercent. */ int getProgressPercent(); /** - * - * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
    * Error if one was encountered.
    * 
@@ -72,27 +45,22 @@ public interface BatchRecognizeTranscriptionMetadataOrBuilder com.google.rpc.StatusOrBuilder getErrorOrBuilder(); /** - * - * *
    * The GCS URI to which recognition results will be written.
    * 
* * string uri = 3; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * The GCS URI to which recognition results will be written.
    * 
* * string uri = 3; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java new file mode 100644 index 000000000000..9267d4ec1726 --- /dev/null +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java @@ -0,0 +1,1186 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public final class CloudSpeechProto { + private CloudSpeechProto() {} + 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_v2_CreateRecognizerRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_Recognizer_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_WordInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_Config_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_Config_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_CustomClass_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_PhraseSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_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/v2/cloud_speech.pr" + + "oto\022\026google.cloud.speech.v2\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\032#google/longrunni" + + "ng/operations.proto\032\036google/protobuf/dur" + + "ation.proto\032 google/protobuf/field_mask." + + "proto\032\037google/protobuf/timestamp.proto\032\027" + + "google/rpc/status.proto\"\276\001\n\027CreateRecogn" + + "izerRequest\022;\n\nrecognizer\030\001 \001(\0132\".google" + + ".cloud.speech.v2.RecognizerB\003\340A\002\022\025\n\rvali" + + "date_only\030\002 \001(\010\022\025\n\rrecognizer_id\030\003 \001(\t\0228" + + "\n\006parent\030\004 \001(\tB(\340A\002\372A\"\022 speech.googleapi" + + "s.com/Recognizer\"\343\014\n\021OperationMetadata\022/" + + "\n\013create_time\030\001 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022/\n\013update_time\030\002 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022\020\n\010resource\030\003 \001(\t\022\016\n\006me" + + "thod\030\004 \001(\t\022<\n\014kms_key_name\030\006 \001(\tB&\372A#\n!c" + + "loudkms.googleapis.com/CryptoKey\022K\n\024kms_" + + "key_version_name\030\007 \001(\tB-\372A*\n(cloudkms.go" + + "ogleapis.com/CryptoKeyVersion\022P\n\027batch_r" + + "ecognize_request\030\010 \001(\0132-.google.cloud.sp" + + "eech.v2.BatchRecognizeRequestH\000\022T\n\031creat" + + "e_recognizer_request\030\t \001(\0132/.google.clou" + + "d.speech.v2.CreateRecognizerRequestH\000\022T\n" + + "\031update_recognizer_request\030\n \001(\0132/.googl" + + "e.cloud.speech.v2.UpdateRecognizerReques" + + "tH\000\022T\n\031delete_recognizer_request\030\013 \001(\0132/" + + ".google.cloud.speech.v2.DeleteRecognizer" + + "RequestH\000\022X\n\033undelete_recognizer_request" + + "\030\014 \001(\01321.google.cloud.speech.v2.Undelete" + + "RecognizerRequestH\000\022W\n\033create_custom_cla" + + "ss_request\030\r \001(\01320.google.cloud.speech.v" + + "2.CreateCustomClassRequestH\000\022W\n\033update_c" + + "ustom_class_request\030\016 \001(\01320.google.cloud" + + ".speech.v2.UpdateCustomClassRequestH\000\022W\n" + + "\033delete_custom_class_request\030\017 \001(\01320.goo" + + "gle.cloud.speech.v2.DeleteCustomClassReq" + + "uestH\000\022[\n\035undelete_custom_class_request\030" + + "\020 \001(\01322.google.cloud.speech.v2.UndeleteC" + + "ustomClassRequestH\000\022S\n\031create_phrase_set" + + "_request\030\021 \001(\0132..google.cloud.speech.v2." + + "CreatePhraseSetRequestH\000\022S\n\031update_phras" + + "e_set_request\030\022 \001(\0132..google.cloud.speec" + + "h.v2.UpdatePhraseSetRequestH\000\022S\n\031delete_" + + "phrase_set_request\030\023 \001(\0132..google.cloud." + + "speech.v2.DeletePhraseSetRequestH\000\022W\n\033un" + + "delete_phrase_set_request\030\024 \001(\01320.google" + + ".cloud.speech.v2.UndeletePhraseSetReques" + + "tH\000\022L\n\025update_config_request\030\025 \001(\0132+.goo" + + "gle.cloud.speech.v2.UpdateConfigRequestH" + + "\000\022\030\n\020progress_percent\030\026 \001(\005\022R\n\030batch_rec" + + "ognize_metadata\030\027 \001(\0132..google.cloud.spe" + + "ech.v2.BatchRecognizeMetadataH\001B\t\n\007reque" + + "stB\n\n\010metadata\"\220\001\n\026ListRecognizersReques" + + "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goo" + + "gleapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(" + + "\010\"k\n\027ListRecognizersResponse\0227\n\013recogniz" + + "ers\030\001 \003(\0132\".google.cloud.speech.v2.Recog" + + "nizer\022\027\n\017next_page_token\030\002 \001(\t\"N\n\024GetRec" + + "ognizerRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n sp" + + "eech.googleapis.com/Recognizer\"\236\001\n\027Updat" + + "eRecognizerRequest\022;\n\nrecognizer\030\001 \001(\0132\"" + + ".google.cloud.speech.v2.RecognizerB\003\340A\002\022" + + "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + + "ieldMask\022\025\n\rvalidate_only\030\004 \001(\010\"\215\001\n\027Dele" + + "teRecognizerRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A" + + "\"\n speech.googleapis.com/Recognizer\022\025\n\rv" + + "alidate_only\030\002 \001(\010\022\025\n\rallow_missing\030\004 \001(" + + "\010\022\014\n\004etag\030\003 \001(\t\"x\n\031UndeleteRecognizerReq" + + "uest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n speech.googl" + + "eapis.com/Recognizer\022\025\n\rvalidate_only\030\003 " + + "\001(\010\022\014\n\004etag\030\004 \001(\t\"\276\007\n\nRecognizer\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\024\n\014display" + + "_name\030\003 \001(\t\022\022\n\005model\030\004 \001(\tB\003\340A\002\022\033\n\016langu" + + "age_codes\030\021 \003(\tB\003\340A\002\022M\n\032default_recognit" + + "ion_config\030\006 \001(\0132).google.cloud.speech.v" + + "2.RecognitionConfig\022H\n\013annotations\030\007 \003(\013" + + "23.google.cloud.speech.v2.Recognizer.Ann" + + "otationsEntry\022<\n\005state\030\010 \001(\0162(.google.cl" + + "oud.speech.v2.Recognizer.StateB\003\340A\003\0224\n\013c" + + "reate_time\030\t \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\013" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013expire_time\030\016 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\022\021\n\004etag\030\014 \001(\tB\003\340A\003\022\030\n\013reconc" + + "iling\030\r \001(\010B\003\340A\003\022?\n\014kms_key_name\030\017 \001(\tB)" + + "\340A\003\372A#\n!cloudkms.googleapis.com/CryptoKe" + + "y\022N\n\024kms_key_version_name\030\020 \001(\tB0\340A\003\372A*\n" + + "(cloudkms.googleapis.com/CryptoKeyVersio" + + "n\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"7\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\n\n\006ACTIVE\020\002\022\013\n\007DELETED\020\004:j\352Ag\n spe" + + "ech.googleapis.com/Recognizer\022@projects/" + + "{project}/locations/{location}/recognize" + + "rs/{recognizer}R\001\001\"\032\n\030AutoDetectDecoding" + + "Config\"\371\001\n\026ExplicitDecodingConfig\022S\n\010enc" + + "oding\030\001 \001(\0162<.google.cloud.speech.v2.Exp" + + "licitDecodingConfig.AudioEncodingB\003\340A\002\022\031" + + "\n\021sample_rate_hertz\030\002 \001(\005\022\033\n\023audio_chann" + + "el_count\030\003 \001(\005\"R\n\rAudioEncoding\022\036\n\032AUDIO" + + "_ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\t\n" + + "\005MULAW\020\002\022\010\n\004ALAW\020\003\"Z\n\030SpeakerDiarization" + + "Config\022\036\n\021min_speaker_count\030\002 \001(\005B\003\340A\002\022\036" + + "\n\021max_speaker_count\030\003 \001(\005B\003\340A\002\"\370\003\n\023Recog" + + "nitionFeatures\022\030\n\020profanity_filter\030\001 \001(\010" + + "\022 \n\030enable_word_time_offsets\030\002 \001(\010\022\036\n\026en" + + "able_word_confidence\030\003 \001(\010\022$\n\034enable_aut" + + "omatic_punctuation\030\004 \001(\010\022!\n\031enable_spoke" + + "n_punctuation\030\016 \001(\010\022\034\n\024enable_spoken_emo" + + "jis\030\017 \001(\010\022X\n\022multi_channel_mode\030\021 \001(\0162<." + + "google.cloud.speech.v2.RecognitionFeatur" + + "es.MultiChannelMode\022L\n\022diarization_confi" + + "g\030\t \001(\01320.google.cloud.speech.v2.Speaker" + + "DiarizationConfig\022\030\n\020max_alternatives\030\020 " + + "\001(\005\"\\\n\020MultiChannelMode\022\"\n\036MULTI_CHANNEL" + + "_MODE_UNSPECIFIED\020\000\022$\n SEPARATE_RECOGNIT" + + "ION_PER_CHANNEL\020\001\"\277\002\n\020SpeechAdaptation\022Q" + + "\n\013phrase_sets\030\001 \003(\0132<.google.cloud.speec" + + "h.v2.SpeechAdaptation.AdaptationPhraseSe" + + "t\022;\n\016custom_classes\030\002 \003(\0132#.google.cloud" + + ".speech.v2.CustomClass\032\232\001\n\023AdaptationPhr" + + "aseSet\022:\n\nphrase_set\030\001 \001(\tB$\372A!\n\037speech." + + "googleapis.com/PhraseSetH\000\022>\n\021inline_phr" + + "ase_set\030\002 \001(\0132!.google.cloud.speech.v2.P" + + "hraseSetH\000B\007\n\005value\"\311\002\n\021RecognitionConfi" + + "g\022P\n\024auto_decoding_config\030\007 \001(\01320.google" + + ".cloud.speech.v2.AutoDetectDecodingConfi" + + "gH\000\022R\n\030explicit_decoding_config\030\010 \001(\0132.." + + "google.cloud.speech.v2.ExplicitDecodingC" + + "onfigH\000\022=\n\010features\030\002 \001(\0132+.google.cloud" + + ".speech.v2.RecognitionFeatures\022<\n\nadapta" + + "tion\030\006 \001(\0132(.google.cloud.speech.v2.Spee" + + "chAdaptationB\021\n\017decoding_config\"\356\001\n\020Reco" + + "gnizeRequest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A\"" + + "\n speech.googleapis.com/Recognizer\0229\n\006co" + + "nfig\030\001 \001(\0132).google.cloud.speech.v2.Reco" + + "gnitionConfig\022/\n\013config_mask\030\010 \001(\0132\032.goo" + + "gle.protobuf.FieldMask\022\021\n\007content\030\005 \001(\014H" + + "\000\022\r\n\003uri\030\006 \001(\tH\000B\016\n\014audio_source\"W\n\033Reco" + + "gnitionResponseMetadata\0228\n\025total_billed_" + + "duration\030\006 \001(\0132\031.google.protobuf.Duratio" + + "n\"w\n\034SpeechRecognitionAlternative\022\022\n\ntra" + + "nscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022/\n\005wor" + + "ds\030\003 \003(\0132 .google.cloud.speech.v2.WordIn" + + "fo\"\243\001\n\010WordInfo\022/\n\014start_offset\030\001 \001(\0132\031." + + "google.protobuf.Duration\022-\n\nend_offset\030\002" + + " \001(\0132\031.google.protobuf.Duration\022\014\n\004word\030" + + "\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002\022\025\n\rspeaker_lab" + + "el\030\006 \001(\t\"\314\001\n\027SpeechRecognitionResult\022J\n\014" + + "alternatives\030\001 \003(\01324.google.cloud.speech" + + ".v2.SpeechRecognitionAlternative\022\023\n\013chan" + + "nel_tag\030\002 \001(\005\0224\n\021result_end_offset\030\004 \001(\013" + + "2\031.google.protobuf.Duration\022\032\n\rlanguage_" + + "code\030\005 \001(\tB\003\340A\003\"\234\001\n\021RecognizeResponse\022@\n" + + "\007results\030\003 \003(\0132/.google.cloud.speech.v2." + + "SpeechRecognitionResult\022E\n\010metadata\030\002 \001(" + + "\01323.google.cloud.speech.v2.RecognitionRe" + + "sponseMetadata\"\321\002\n\034StreamingRecognitionF" + + "eatures\022$\n\034enable_voice_activity_events\030" + + "\001 \001(\010\022\027\n\017interim_results\030\002 \001(\010\022i\n\026voice_" + + "activity_timeout\030\003 \001(\0132I.google.cloud.sp" + + "eech.v2.StreamingRecognitionFeatures.Voi" + + "ceActivityTimeout\032\206\001\n\024VoiceActivityTimeo" + + "ut\0227\n\024speech_start_timeout\030\001 \001(\0132\031.googl" + + "e.protobuf.Duration\0225\n\022speech_end_timeou" + + "t\030\002 \001(\0132\031.google.protobuf.Duration\"\337\001\n\032S" + + "treamingRecognitionConfig\022>\n\006config\030\001 \001(" + + "\0132).google.cloud.speech.v2.RecognitionCo" + + "nfigB\003\340A\002\022/\n\013config_mask\030\003 \001(\0132\032.google." + + "protobuf.FieldMask\022P\n\022streaming_features" + + "\030\002 \001(\01324.google.cloud.speech.v2.Streamin" + + "gRecognitionFeatures\"\317\001\n\031StreamingRecogn" + + "izeRequest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A\"\n " + + "speech.googleapis.com/Recognizer\022N\n\020stre" + + "aming_config\030\006 \001(\01322.google.cloud.speech" + + ".v2.StreamingRecognitionConfigH\000\022\017\n\005audi" + + "o\030\005 \001(\014H\000B\023\n\021streaming_request\"\204\002\n\025Batch" + + "RecognizeRequest\022<\n\nrecognizer\030\001 \001(\tB(\340A" + + "\002\372A\"\n speech.googleapis.com/Recognizer\0229" + + "\n\006config\030\004 \001(\0132).google.cloud.speech.v2." + + "RecognitionConfig\022/\n\013config_mask\030\005 \001(\0132\032" + + ".google.protobuf.FieldMask\022A\n\005files\030\003 \003(" + + "\01322.google.cloud.speech.v2.BatchRecogniz" + + "eFileMetadata\"\310\001\n\026BatchRecognizeResponse" + + "\022L\n\007results\030\001 \003(\0132;.google.cloud.speech." + + "v2.BatchRecognizeResponse.ResultsEntry\032`" + + "\n\014ResultsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001" + + "(\01320.google.cloud.speech.v2.BatchRecogni" + + "zeFileResult:\0028\001\"J\n\030BatchRecognizeFileRe" + + "sult\022\013\n\003uri\030\001 \001(\t\022!\n\005error\030\002 \001(\0132\022.googl" + + "e.rpc.Status\"o\n#BatchRecognizeTranscript" + + "ionMetadata\022\030\n\020progress_percent\030\001 \001(\005\022!\n" + + "\005error\030\002 \001(\0132\022.google.rpc.Status\022\013\n\003uri\030" + + "\003 \001(\t\"\376\001\n\026BatchRecognizeMetadata\022i\n\026tran" + + "scription_metadata\030\001 \003(\0132I.google.cloud." + + "speech.v2.BatchRecognizeMetadata.Transcr" + + "iptionMetadataEntry\032y\n\032TranscriptionMeta" + + "dataEntry\022\013\n\003key\030\001 \001(\t\022J\n\005value\030\002 \001(\0132;." + + "google.cloud.speech.v2.BatchRecognizeTra" + + "nscriptionMetadata:\0028\001\"\247\001\n\032BatchRecogniz" + + "eFileMetadata\022\r\n\003uri\030\001 \001(\tH\000\0229\n\006config\030\004" + + " \001(\0132).google.cloud.speech.v2.Recognitio" + + "nConfig\022/\n\013config_mask\030\005 \001(\0132\032.google.pr" + + "otobuf.FieldMaskB\016\n\014audio_source\"\364\001\n\032Str" + + "eamingRecognitionResult\022J\n\014alternatives\030" + + "\001 \003(\01324.google.cloud.speech.v2.SpeechRec" + + "ognitionAlternative\022\020\n\010is_final\030\002 \001(\010\022\021\n" + + "\tstability\030\003 \001(\002\0224\n\021result_end_offset\030\004 " + + "\001(\0132\031.google.protobuf.Duration\022\023\n\013channe" + + "l_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A\003\"" + + "\307\003\n\032StreamingRecognizeResponse\022C\n\007result" + + "s\030\006 \003(\01322.google.cloud.speech.v2.Streami" + + "ngRecognitionResult\022]\n\021speech_event_type" + + "\030\003 \001(\0162B.google.cloud.speech.v2.Streamin" + + "gRecognizeResponse.SpeechEventType\0226\n\023sp" + + "eech_event_offset\030\007 \001(\0132\031.google.protobu" + + "f.Duration\022E\n\010metadata\030\005 \001(\01323.google.cl" + + "oud.speech.v2.RecognitionResponseMetadat" + + "a\"\205\001\n\017SpeechEventType\022!\n\035SPEECH_EVENT_TY" + + "PE_UNSPECIFIED\020\000\022\033\n\027END_OF_SINGLE_UTTERA" + + "NCE\020\001\022\031\n\025SPEECH_ACTIVITY_BEGIN\020\002\022\027\n\023SPEE" + + "CH_ACTIVITY_END\020\003\"\345\001\n\006Config\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022?\n\014kms_key_name\030\002 \001(\tB)\340A\001\372A#\n!c" + + "loudkms.googleapis.com/CryptoKey\0224\n\013upda" + + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003:Q\352AN\n\034speech.googleapis.com/Confi" + + "g\022.projects/{project}/locations/{locatio" + + "n}/config\"F\n\020GetConfigRequest\0222\n\004name\030\001 " + + "\001(\tB$\340A\002\372A\036\n\034speech.googleapis.com/Confi" + + "g\"{\n\023UpdateConfigRequest\0223\n\006config\030\001 \001(\013" + + "2\036.google.cloud.speech.v2.ConfigB\003\340A\002\022/\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMask\"\240\007\n\013CustomClass\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\024\n\014display_name\030\004 \001(" + + "\t\022<\n\005items\030\005 \003(\0132-.google.cloud.speech.v" + + "2.CustomClass.ClassItem\022=\n\005state\030\017 \001(\0162)" + + ".google.cloud.speech.v2.CustomClass.Stat" + + "eB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013de" + + "lete_time\030\010 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0224\n\013expire_time\030\t \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022I\n\013annotations\030\n " + + "\003(\01324.google.cloud.speech.v2.CustomClass" + + ".AnnotationsEntry\022\021\n\004etag\030\013 \001(\tB\003\340A\003\022\030\n\013" + + "reconciling\030\014 \001(\010B\003\340A\003\022?\n\014kms_key_name\030\r" + + " \001(\tB)\340A\003\372A#\n!cloudkms.googleapis.com/Cr" + + "yptoKey\022N\n\024kms_key_version_name\030\016 \001(\tB0\340" + + "A\003\372A*\n(cloudkms.googleapis.com/CryptoKey" + + "Version\032\032\n\tClassItem\022\r\n\005value\030\001 \001(\t\0322\n\020A" + + "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\"7\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + + "\n\n\006ACTIVE\020\002\022\013\n\007DELETED\020\004:o\352Al\n!speech.go" + + "ogleapis.com/CustomClass\022Dprojects/{proj" + + "ect}/locations/{location}/customClasses/" + + "{custom_class}R\001\001\"\253\007\n\tPhraseSet\022\021\n\004name\030" + + "\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0229\n\007phrases\030" + + "\003 \003(\0132(.google.cloud.speech.v2.PhraseSet" + + ".Phrase\022\r\n\005boost\030\004 \001(\002\022\024\n\014display_name\030\005" + + " \001(\t\022;\n\005state\030\017 \001(\0162\'.google.cloud.speec" + + "h.v2.PhraseSet.StateB\003\340A\003\0224\n\013create_time" + + "\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "4\n\013update_time\030\007 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0224\n\013expire_ti" + + "me\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\022G\n\013annotations\030\n \003(\01322.google.cloud.sp" + + "eech.v2.PhraseSet.AnnotationsEntry\022\021\n\004et" + + "ag\030\013 \001(\tB\003\340A\003\022\030\n\013reconciling\030\014 \001(\010B\003\340A\003\022" + + "?\n\014kms_key_name\030\r \001(\tB)\340A\003\372A#\n!cloudkms." + + "googleapis.com/CryptoKey\022N\n\024kms_key_vers" + + "ion_name\030\016 \001(\tB0\340A\003\372A*\n(cloudkms.googlea" + + "pis.com/CryptoKeyVersion\032&\n\006Phrase\022\r\n\005va" + + "lue\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002\0322\n\020AnnotationsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\005" + + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\002" + + "\022\013\n\007DELETED\020\004:h\352Ae\n\037speech.googleapis.co" + + "m/PhraseSet\022?projects/{project}/location" + + "s/{location}/phraseSets/{phrase_set}R\001\001\"" + + "\305\001\n\030CreateCustomClassRequest\022>\n\014custom_c" + + "lass\030\001 \001(\0132#.google.cloud.speech.v2.Cust" + + "omClassB\003\340A\002\022\025\n\rvalidate_only\030\002 \001(\010\022\027\n\017c" + + "ustom_class_id\030\003 \001(\t\0229\n\006parent\030\004 \001(\tB)\340A" + + "\002\372A#\022!speech.googleapis.com/CustomClass\"" + + "\222\001\n\030ListCustomClassesRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + + "ocation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"q\n\031ListCust" + + "omClassesResponse\022;\n\016custom_classes\030\001 \003(" + + "\0132#.google.cloud.speech.v2.CustomClass\022\027" + + "\n\017next_page_token\030\002 \001(\t\"P\n\025GetCustomClas" + + "sRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.g" + + "oogleapis.com/CustomClass\"\242\001\n\030UpdateCust" + + "omClassRequest\022>\n\014custom_class\030\001 \001(\0132#.g" + + "oogle.cloud.speech.v2.CustomClassB\003\340A\002\022/" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMask\022\025\n\rvalidate_only\030\004 \001(\010\"\217\001\n\030Delet" + + "eCustomClassRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A" + + "#\n!speech.googleapis.com/CustomClass\022\025\n\r" + + "validate_only\030\002 \001(\010\022\025\n\rallow_missing\030\004 \001" + + "(\010\022\014\n\004etag\030\003 \001(\t\"z\n\032UndeleteCustomClassR" + + "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.goo" + + "gleapis.com/CustomClass\022\025\n\rvalidate_only" + + "\030\003 \001(\010\022\014\n\004etag\030\004 \001(\t\"\273\001\n\026CreatePhraseSet" + + "Request\022:\n\nphrase_set\030\001 \001(\0132!.google.clo" + + "ud.speech.v2.PhraseSetB\003\340A\002\022\025\n\rvalidate_" + + "only\030\002 \001(\010\022\025\n\rphrase_set_id\030\003 \001(\t\0227\n\006par" + + "ent\030\004 \001(\tB\'\340A\002\372A!\022\037speech.googleapis.com" + + "/PhraseSet\"\217\001\n\025ListPhraseSetsRequest\0229\n\006" + + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + + "ge_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"i\n\026" + + "ListPhraseSetsResponse\0226\n\013phrase_sets\030\001 " + + "\003(\0132!.google.cloud.speech.v2.PhraseSet\022\027" + + "\n\017next_page_token\030\002 \001(\t\"L\n\023GetPhraseSetR" + + "equest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.goo" + + "gleapis.com/PhraseSet\"\234\001\n\026UpdatePhraseSe" + + "tRequest\022:\n\nphrase_set\030\001 \001(\0132!.google.cl" + + "oud.speech.v2.PhraseSetB\003\340A\002\022/\n\013update_m" + + "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\022\025\n" + + "\rvalidate_only\030\004 \001(\010\"\213\001\n\026DeletePhraseSet" + + "Request\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.go" + + "ogleapis.com/PhraseSet\022\025\n\rvalidate_only\030" + + "\002 \001(\010\022\025\n\rallow_missing\030\004 \001(\010\022\014\n\004etag\030\003 \001" + + "(\t\"v\n\030UndeletePhraseSetRequest\0225\n\004name\030\001" + + " \001(\tB\'\340A\002\372A!\n\037speech.googleapis.com/Phra" + + "seSet\022\025\n\rvalidate_only\030\003 \001(\010\022\014\n\004etag\030\004 \001" + + "(\t2\277%\n\006Speech\022\354\001\n\020CreateRecognizer\022/.goo" + + "gle.cloud.speech.v2.CreateRecognizerRequ" + + "est\032\035.google.longrunning.Operation\"\207\001\202\323\344" + + "\223\002=\"//v2/{parent=projects/*/locations/*}" + + "/recognizers:\nrecognizer\332A\037parent,recogn" + + "izer,recognizer_id\312A\037\n\nRecognizer\022\021Opera" + + "tionMetadata\022\264\001\n\017ListRecognizers\022..googl" + + "e.cloud.speech.v2.ListRecognizersRequest" + + "\032/.google.cloud.speech.v2.ListRecognizer" + + "sResponse\"@\202\323\344\223\0021\022//v2/{parent=projects/" + + "*/locations/*}/recognizers\332A\006parent\022\241\001\n\r" + + "GetRecognizer\022,.google.cloud.speech.v2.G" + + "etRecognizerRequest\032\".google.cloud.speec" + + "h.v2.Recognizer\">\202\323\344\223\0021\022//v2/{name=proje" + + "cts/*/locations/*/recognizers/*}\332A\004name\022" + + "\356\001\n\020UpdateRecognizer\022/.google.cloud.spee" + + "ch.v2.UpdateRecognizerRequest\032\035.google.l" + + "ongrunning.Operation\"\211\001\202\323\344\223\002H2:/v2/{reco" + + "gnizer.name=projects/*/locations/*/recog" + + "nizers/*}:\nrecognizer\332A\026recognizer,updat" + + "e_mask\312A\037\n\nRecognizer\022\021OperationMetadata" + + "\022\304\001\n\020DeleteRecognizer\022/.google.cloud.spe" + + "ech.v2.DeleteRecognizerRequest\032\035.google." + + "longrunning.Operation\"`\202\323\344\223\0021*//v2/{name" + + "=projects/*/locations/*/recognizers/*}\332A" + + "\004name\312A\037\n\nRecognizer\022\021OperationMetadata\022" + + "\324\001\n\022UndeleteRecognizer\0221.google.cloud.sp" + + "eech.v2.UndeleteRecognizerRequest\032\035.goog" + + "le.longrunning.Operation\"l\202\323\344\223\002=\"8/v2/{n" + + "ame=projects/*/locations/*/recognizers/*" + + "}:undelete:\001*\332A\004name\312A\037\n\nRecognizer\022\021Ope" + + "rationMetadata\022\371\001\n\tRecognize\022(.google.cl" + + "oud.speech.v2.RecognizeRequest\032).google." + + "cloud.speech.v2.RecognizeResponse\"\226\001\202\323\344\223" + + "\002D\"?/v2/{recognizer=projects/*/locations" + + "/*/recognizers/*}:recognize:\001*\332A%recogni" + + "zer,config,config_mask,content\332A!recogni" + + "zer,config,config_mask,uri\022\201\001\n\022Streaming" + + "Recognize\0221.google.cloud.speech.v2.Strea" + + "mingRecognizeRequest\0322.google.cloud.spee" + + "ch.v2.StreamingRecognizeResponse\"\000(\0010\001\022\204" + + "\002\n\016BatchRecognize\022-.google.cloud.speech." + + "v2.BatchRecognizeRequest\032\035.google.longru" + + "nning.Operation\"\243\001\202\323\344\223\002I\"D/v2/{recognize" + + "r=projects/*/locations/*/recognizers/*}:" + + "batchRecognize:\001*\332A#recognizer,config,co" + + "nfig_mask,files\312A+\n\026BatchRecognizeRespon" + + "se\022\021OperationMetadata\022\216\001\n\tGetConfig\022(.go" + + "ogle.cloud.speech.v2.GetConfigRequest\032\036." + + "google.cloud.speech.v2.Config\"7\202\323\344\223\002*\022(/" + + "v2/{name=projects/*/locations/*/config}\332" + + "A\004name\022\261\001\n\014UpdateConfig\022+.google.cloud.s" + + "peech.v2.UpdateConfigRequest\032\036.google.cl" + + "oud.speech.v2.Config\"T\202\323\344\223\00292//v2/{confi" + + "g.name=projects/*/locations/*/config}:\006c" + + "onfig\332A\022config,update_mask\022\367\001\n\021CreateCus" + + "tomClass\0220.google.cloud.speech.v2.Create" + + "CustomClassRequest\032\035.google.longrunning." + + "Operation\"\220\001\202\323\344\223\002A\"1/v2/{parent=projects" + + "/*/locations/*}/customClasses:\014custom_cl" + + "ass\332A#parent,custom_class,custom_class_i" + + "d\312A \n\013CustomClass\022\021OperationMetadata\022\274\001\n" + + "\021ListCustomClasses\0220.google.cloud.speech" + + ".v2.ListCustomClassesRequest\0321.google.cl" + + "oud.speech.v2.ListCustomClassesResponse\"" + + "B\202\323\344\223\0023\0221/v2/{parent=projects/*/location" + + "s/*}/customClasses\332A\006parent\022\246\001\n\016GetCusto" + + "mClass\022-.google.cloud.speech.v2.GetCusto" + + "mClassRequest\032#.google.cloud.speech.v2.C" + + "ustomClass\"@\202\323\344\223\0023\0221/v2/{name=projects/*", + "/locations/*/customClasses/*}\332A\004name\022\371\001\n" + + "\021UpdateCustomClass\0220.google.cloud.speech" + + ".v2.UpdateCustomClassRequest\032\035.google.lo" + + "ngrunning.Operation\"\222\001\202\323\344\223\002N2>/v2/{custo" + + "m_class.name=projects/*/locations/*/cust" + + "omClasses/*}:\014custom_class\332A\030custom_clas" + + "s,update_mask\312A \n\013CustomClass\022\021Operation" + + "Metadata\022\311\001\n\021DeleteCustomClass\0220.google." + + "cloud.speech.v2.DeleteCustomClassRequest" + + "\032\035.google.longrunning.Operation\"c\202\323\344\223\0023*" + + "1/v2/{name=projects/*/locations/*/custom" + + "Classes/*}\332A\004name\312A \n\013CustomClass\022\021Opera" + + "tionMetadata\022\331\001\n\023UndeleteCustomClass\0222.g" + + "oogle.cloud.speech.v2.UndeleteCustomClas" + + "sRequest\032\035.google.longrunning.Operation\"" + + "o\202\323\344\223\002?\":/v2/{name=projects/*/locations/" + + "*/customClasses/*}:undelete:\001*\332A\004name\312A " + + "\n\013CustomClass\022\021OperationMetadata\022\350\001\n\017Cre" + + "atePhraseSet\022..google.cloud.speech.v2.Cr" + + "eatePhraseSetRequest\032\035.google.longrunnin" + + "g.Operation\"\205\001\202\323\344\223\002<\"./v2/{parent=projec" + + "ts/*/locations/*}/phraseSets:\nphrase_set" + + "\332A\037parent,phrase_set,phrase_set_id\312A\036\n\tP" + + "hraseSet\022\021OperationMetadata\022\260\001\n\016ListPhra" + + "seSets\022-.google.cloud.speech.v2.ListPhra" + + "seSetsRequest\032..google.cloud.speech.v2.L" + + "istPhraseSetsResponse\"?\202\323\344\223\0020\022./v2/{pare" + + "nt=projects/*/locations/*}/phraseSets\332A\006" + + "parent\022\235\001\n\014GetPhraseSet\022+.google.cloud.s" + + "peech.v2.GetPhraseSetRequest\032!.google.cl" + + "oud.speech.v2.PhraseSet\"=\202\323\344\223\0020\022./v2/{na" + + "me=projects/*/locations/*/phraseSets/*}\332" + + "A\004name\022\352\001\n\017UpdatePhraseSet\022..google.clou" + + "d.speech.v2.UpdatePhraseSetRequest\032\035.goo" + + "gle.longrunning.Operation\"\207\001\202\323\344\223\002G29/v2/" + + "{phrase_set.name=projects/*/locations/*/" + + "phraseSets/*}:\nphrase_set\332A\026phrase_set,u" + + "pdate_mask\312A\036\n\tPhraseSet\022\021OperationMetad" + + "ata\022\300\001\n\017DeletePhraseSet\022..google.cloud.s" + + "peech.v2.DeletePhraseSetRequest\032\035.google" + + ".longrunning.Operation\"^\202\323\344\223\0020*./v2/{nam" + + "e=projects/*/locations/*/phraseSets/*}\332A" + + "\004name\312A\036\n\tPhraseSet\022\021OperationMetadata\022\320" + + "\001\n\021UndeletePhraseSet\0220.google.cloud.spee" + + "ch.v2.UndeletePhraseSetRequest\032\035.google." + + "longrunning.Operation\"j\202\323\344\223\002<\"7/v2/{name" + + "=projects/*/locations/*/phraseSets/*}:un" + + "delete:\001*\332A\004name\312A\036\n\tPhraseSet\022\021Operatio" + + "nMetadata\032I\312A\025speech.googleapis.com\322A.ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "formB\223\003\n\032com.google.cloud.speech.v2B\020Clo" + + "udSpeechProtoP\001Z * Message representing the config for the Speech-to-Text API. This includes an * optional [KMS key](https://cloud.google.com/kms/docs/resource-hierarchy#keys) @@ -29,16 +12,15 @@ * * Protobuf type {@code google.cloud.speech.v2.Config} */ -public final class Config extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Config extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.Config) ConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Config.newBuilder() to construct. private Config(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Config() { name_ = ""; kmsKeyName_ = ""; @@ -46,37 +28,33 @@ private Config() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Config(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_Config_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Config_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_Config_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Config_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.Config.class, - com.google.cloud.speech.v2.Config.Builder.class); + com.google.cloud.speech.v2.Config.class, com.google.cloud.speech.v2.Config.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The name of the config resource. There is exactly one config
    * resource per project per location. The expected format is
@@ -84,7 +62,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -93,15 +70,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; } } /** - * - * *
    * Output only. The name of the config resource. There is exactly one config
    * resource per project per location. The expected format is
@@ -109,15 +85,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -126,12 +103,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** - * - * *
    * Optional. An optional [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -141,10 +115,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ @java.lang.Override @@ -153,15 +124,14 @@ public java.lang.String getKmsKeyName() { 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(); kmsKeyName_ = s; return s; } } /** - * - * *
    * Optional. An optional [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -171,18 +141,17 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -193,15 +162,11 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -209,15 +174,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -225,14 +186,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -240,7 +198,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,7 +209,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_); } @@ -278,7 +236,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kmsKeyName_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -288,18 +247,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.v2.Config)) { return super.equals(obj); } com.google.cloud.speech.v2.Config other = (com.google.cloud.speech.v2.Config) obj; - if (!getName().equals(other.getName())) return false; - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -325,103 +287,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.Config parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.Config parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.Config 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.v2.Config parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.speech.v2.Config parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.Config 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.v2.Config parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.Config 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.v2.Config 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.v2.Config 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.v2.Config 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.v2.Config 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.v2.Config 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.v2.Config 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.v2.Config 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 representing the config for the Speech-to-Text API. This includes an
    * optional [KMS key](https://cloud.google.com/kms/docs/resource-hierarchy#keys)
@@ -430,32 +386,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.Config}
    */
-  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.v2.Config)
       com.google.cloud.speech.v2.ConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_Config_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Config_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_Config_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Config_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.Config.class,
-              com.google.cloud.speech.v2.Config.Builder.class);
+              com.google.cloud.speech.v2.Config.class, com.google.cloud.speech.v2.Config.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.Config.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -471,9 +428,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_Config_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Config_descriptor;
     }
 
     @java.lang.Override
@@ -493,9 +450,7 @@ public com.google.cloud.speech.v2.Config build() {
     @java.lang.Override
     public com.google.cloud.speech.v2.Config buildPartial() {
       com.google.cloud.speech.v2.Config result = new com.google.cloud.speech.v2.Config(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -509,7 +464,9 @@ private void buildPartial0(com.google.cloud.speech.v2.Config result) {
         result.kmsKeyName_ = kmsKeyName_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
     }
 
@@ -517,39 +474,38 @@ private void buildPartial0(com.google.cloud.speech.v2.Config result) {
     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.v2.Config) {
-        return mergeFrom((com.google.cloud.speech.v2.Config) other);
+        return mergeFrom((com.google.cloud.speech.v2.Config)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -597,31 +553,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                kmsKeyName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              kmsKeyName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -631,13 +585,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The name of the config resource. There is exactly one config
      * resource per project per location. The expected format is
@@ -645,13 +596,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -660,8 +611,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The name of the config resource. There is exactly one config
      * resource per project per location. The expected format is
@@ -669,14 +618,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -684,8 +634,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The name of the config resource. There is exactly one config
      * resource per project per location. The expected format is
@@ -693,22 +641,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The name of the config resource. There is exactly one config
      * resource per project per location. The expected format is
@@ -716,7 +660,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -726,8 +669,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The name of the config resource. There is exactly one config
      * resource per project per location. The expected format is
@@ -735,14 +676,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -752,8 +691,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyName_ = ""; /** - * - * *
      * Optional. An optional [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -763,16 +700,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; 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(); kmsKeyName_ = s; return s; @@ -781,8 +716,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
      * Optional. An optional [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -792,17 +725,16 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -810,8 +742,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
      * Optional. An optional [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -821,25 +751,19 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. An optional [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -849,10 +773,7 @@ public Builder setKmsKeyName(java.lang.String value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -862,8 +783,6 @@ public Builder clearKmsKeyName() { return this; } /** - * - * *
      * Optional. An optional [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -873,17 +792,13 @@ public Builder clearKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00000002; @@ -893,58 +808,39 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -960,17 +856,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -981,21 +874,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1008,15 +897,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1029,15 +914,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1045,55 +926,43 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - @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); } @@ -1103,12 +972,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.Config) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.Config) private static final com.google.cloud.speech.v2.Config DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.Config(); } @@ -1117,27 +986,27 @@ public static com.google.cloud.speech.v2.Config getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Config parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Config parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1152,4 +1021,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.Config getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java similarity index 68% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java index 6d4dd82b7de2..882c277e0239 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ConfigOrBuilder - extends +public interface ConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.Config) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The name of the config resource. There is exactly one config
    * resource per project per location. The expected format is
@@ -33,13 +15,10 @@ public interface ConfigOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The name of the config resource. There is exactly one config
    * resource per project per location. The expected format is
@@ -47,14 +26,12 @@ public interface ConfigOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. An optional [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -64,16 +41,11 @@ public interface ConfigOrBuilder
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
    * Optional. An optional [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -83,49 +55,36 @@ public interface ConfigOrBuilder
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java similarity index 65% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java index 3c5619413afd..42e674391f4c 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [CreateCustomClass][google.cloud.speech.v2.Speech.CreateCustomClass] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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() {
     customClassId_ = "";
     parent_ = "";
@@ -45,43 +27,37 @@ 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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.CreateCustomClassRequest.class,
-            com.google.cloud.speech.v2.CreateCustomClassRequest.Builder.class);
+            com.google.cloud.speech.v2.CreateCustomClassRequest.class, com.google.cloud.speech.v2.CreateCustomClassRequest.Builder.class);
   }
 
   public static final int CUSTOM_CLASS_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.CustomClass customClass_;
   /**
-   *
-   *
    * 
    * Required. The CustomClass to create.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ @java.lang.Override @@ -89,54 +65,38 @@ public boolean hasCustomClass() { return customClass_ != null; } /** - * - * *
    * Required. The CustomClass to create.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ @java.lang.Override public com.google.cloud.speech.v2.CustomClass getCustomClass() { - return customClass_ == null - ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; } /** - * - * *
    * Required. The CustomClass to create.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder() { - return customClass_ == null - ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the CustomClass, but do not
    * actually create it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -145,12 +105,9 @@ public boolean getValidateOnly() { } public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object customClassId_ = ""; /** - * - * *
    * The ID to use for the CustomClass, which will become the final component of
    * the CustomClass's resource name.
@@ -159,7 +116,6 @@ public boolean getValidateOnly() {
    * 
* * string custom_class_id = 3; - * * @return The customClassId. */ @java.lang.Override @@ -168,15 +124,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; } } /** - * - * *
    * The ID to use for the CustomClass, which will become the final component of
    * the CustomClass's resource name.
@@ -185,15 +140,16 @@ public java.lang.String getCustomClassId() {
    * 
* * string custom_class_id = 3; - * * @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 { @@ -202,21 +158,15 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() { } public static final int PARENT_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The project and location where this CustomClass will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -225,32 +175,30 @@ 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 project and location where this CustomClass will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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 { @@ -259,7 +207,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -271,7 +218,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()); } @@ -294,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 (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customClassId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, customClassId_); @@ -313,21 +263,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.v2.CreateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.CreateCustomClassRequest other = - (com.google.cloud.speech.v2.CreateCustomClassRequest) obj; + com.google.cloud.speech.v2.CreateCustomClassRequest other = (com.google.cloud.speech.v2.CreateCustomClassRequest) obj; if (hasCustomClass() != other.hasCustomClass()) return false; if (hasCustomClass()) { - if (!getCustomClass().equals(other.getCustomClass())) return false; + if (!getCustomClass() + .equals(other.getCustomClass())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getCustomClassId().equals(other.getCustomClassId())) return false; - if (!getParent().equals(other.getParent())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getCustomClassId() + .equals(other.getCustomClassId())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -344,7 +297,8 @@ public int hashCode() { hash = (53 * hash) + getCustomClass().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + CUSTOM_CLASS_ID_FIELD_NUMBER; hash = (53 * hash) + getCustomClassId().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; @@ -355,103 +309,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.CreateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.CreateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.CreateCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.CreateCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.CreateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.CreateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [CreateCustomClass][google.cloud.speech.v2.Speech.CreateCustomClass] method.
@@ -459,32 +406,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.CreateCustomClassRequest)
       com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.CreateCustomClassRequest.class,
-              com.google.cloud.speech.v2.CreateCustomClassRequest.Builder.class);
+              com.google.cloud.speech.v2.CreateCustomClassRequest.class, com.google.cloud.speech.v2.CreateCustomClassRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.CreateCustomClassRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -501,9 +449,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
@@ -522,11 +470,8 @@ public com.google.cloud.speech.v2.CreateCustomClassRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.CreateCustomClassRequest buildPartial() {
-      com.google.cloud.speech.v2.CreateCustomClassRequest result =
-          new com.google.cloud.speech.v2.CreateCustomClassRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.CreateCustomClassRequest result = new com.google.cloud.speech.v2.CreateCustomClassRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -534,8 +479,9 @@ public com.google.cloud.speech.v2.CreateCustomClassRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.CreateCustomClassRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.customClass_ =
-            customClassBuilder_ == null ? customClass_ : customClassBuilder_.build();
+        result.customClass_ = customClassBuilder_ == null
+            ? customClass_
+            : customClassBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -552,39 +498,38 @@ private void buildPartial0(com.google.cloud.speech.v2.CreateCustomClassRequest r
     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.v2.CreateCustomClassRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.CreateCustomClassRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.CreateCustomClassRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -592,8 +537,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.CreateCustomClassRequest other) {
-      if (other == com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance()) return this;
       if (other.hasCustomClass()) {
         mergeCustomClass(other.getCustomClass());
       }
@@ -636,37 +580,34 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                customClassId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getCustomClassFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              customClassId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -676,63 +617,43 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.speech.v2.CustomClass customClass_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.CustomClass,
-            com.google.cloud.speech.v2.CustomClass.Builder,
-            com.google.cloud.speech.v2.CustomClassOrBuilder>
-        customClassBuilder_;
+        com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> customClassBuilder_;
     /**
-     *
-     *
      * 
      * Required. The CustomClass to create.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The CustomClass to create.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ public com.google.cloud.speech.v2.CustomClass getCustomClass() { if (customClassBuilder_ == null) { - return customClass_ == null - ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; } else { return customClassBuilder_.getMessage(); } } /** - * - * *
      * Required. The CustomClass to create.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass value) { if (customClassBuilder_ == null) { @@ -748,17 +669,14 @@ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass value) { return this; } /** - * - * *
      * Required. The CustomClass to create.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass.Builder builderForValue) { + public Builder setCustomClass( + com.google.cloud.speech.v2.CustomClass.Builder builderForValue) { if (customClassBuilder_ == null) { customClass_ = builderForValue.build(); } else { @@ -769,21 +687,17 @@ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass.Builder bui return this; } /** - * - * *
      * Required. The CustomClass to create.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCustomClass(com.google.cloud.speech.v2.CustomClass value) { if (customClassBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && customClass_ != null - && customClass_ != com.google.cloud.speech.v2.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + customClass_ != null && + customClass_ != com.google.cloud.speech.v2.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -796,15 +710,11 @@ public Builder mergeCustomClass(com.google.cloud.speech.v2.CustomClass value) { return this; } /** - * - * *
      * Required. The CustomClass to create.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCustomClass() { bitField0_ = (bitField0_ & ~0x00000001); @@ -817,15 +727,11 @@ public Builder clearCustomClass() { return this; } /** - * - * *
      * Required. The CustomClass to create.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassBuilder() { bitField0_ |= 0x00000001; @@ -833,64 +739,49 @@ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassBuilder() { return getCustomClassFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The CustomClass to create.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder() { if (customClassBuilder_ != null) { return customClassBuilder_.getMessageOrBuilder(); } else { - return customClass_ == null - ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? + com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; } } /** - * - * *
      * Required. The CustomClass to create.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, - com.google.cloud.speech.v2.CustomClass.Builder, - com.google.cloud.speech.v2.CustomClassOrBuilder> + com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> getCustomClassFieldBuilder() { if (customClassBuilder_ == null) { - customClassBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, - com.google.cloud.speech.v2.CustomClass.Builder, - com.google.cloud.speech.v2.CustomClassOrBuilder>( - getCustomClass(), getParentForChildren(), isClean()); + customClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder>( + getCustomClass(), + getParentForChildren(), + isClean()); customClass_ = null; } return customClassBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the CustomClass, but do not
      * actually create it.
      * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -898,35 +789,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the CustomClass, but do not
      * actually create it.
      * 
* * bool validate_only = 2; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the CustomClass, but do not
      * actually create it.
      * 
* * bool validate_only = 2; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -938,8 +823,6 @@ public Builder clearValidateOnly() { private java.lang.Object customClassId_ = ""; /** - * - * *
      * The ID to use for the CustomClass, which will become the final component of
      * the CustomClass's resource name.
@@ -948,13 +831,13 @@ public Builder clearValidateOnly() {
      * 
* * string custom_class_id = 3; - * * @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; @@ -963,8 +846,6 @@ public java.lang.String getCustomClassId() { } } /** - * - * *
      * The ID to use for the CustomClass, which will become the final component of
      * the CustomClass's resource name.
@@ -973,14 +854,15 @@ public java.lang.String getCustomClassId() {
      * 
* * string custom_class_id = 3; - * * @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 { @@ -988,8 +870,6 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() { } } /** - * - * *
      * The ID to use for the CustomClass, which will become the final component of
      * the CustomClass's resource name.
@@ -998,22 +878,18 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() {
      * 
* * string custom_class_id = 3; - * * @param value The customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomClassId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } customClassId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The ID to use for the CustomClass, which will become the final component of
      * the CustomClass's resource name.
@@ -1022,7 +898,6 @@ public Builder setCustomClassId(java.lang.String value) {
      * 
* * string custom_class_id = 3; - * * @return This builder for chaining. */ public Builder clearCustomClassId() { @@ -1032,8 +907,6 @@ public Builder clearCustomClassId() { return this; } /** - * - * *
      * The ID to use for the CustomClass, which will become the final component of
      * the CustomClass's resource name.
@@ -1042,14 +915,12 @@ public Builder clearCustomClassId() {
      * 
* * string custom_class_id = 3; - * * @param value The bytes for customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomClassIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customClassId_ = value; bitField0_ |= 0x00000004; @@ -1059,23 +930,19 @@ public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location where this CustomClass will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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; @@ -1084,24 +951,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location where this CustomClass will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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 { @@ -1109,41 +973,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location where this CustomClass will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. The project and location where this CustomClass will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1153,33 +1006,27 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The project and location where this CustomClass will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000008; 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); } @@ -1189,12 +1036,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.CreateCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.CreateCustomClassRequest) private static final com.google.cloud.speech.v2.CreateCustomClassRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.CreateCustomClassRequest(); } @@ -1203,27 +1050,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1238,4 +1085,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.CreateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java similarity index 59% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java index 4a356278c295..a787ee130a2a 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java @@ -1,86 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface CreateCustomClassRequestOrBuilder - extends +public interface CreateCustomClassRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.CreateCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The CustomClass to create.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ boolean hasCustomClass(); /** - * - * *
    * Required. The CustomClass to create.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ com.google.cloud.speech.v2.CustomClass getCustomClass(); /** - * - * *
    * Required. The CustomClass to create.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder(); /** - * - * *
    * If set, validate the request and preview the CustomClass, but do not
    * actually create it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * The ID to use for the CustomClass, which will become the final component of
    * the CustomClass's resource name.
@@ -89,13 +54,10 @@ public interface CreateCustomClassRequestOrBuilder
    * 
* * string custom_class_id = 3; - * * @return The customClassId. */ java.lang.String getCustomClassId(); /** - * - * *
    * The ID to use for the CustomClass, which will become the final component of
    * the CustomClass's resource name.
@@ -104,39 +66,30 @@ public interface CreateCustomClassRequestOrBuilder
    * 
* * string custom_class_id = 3; - * * @return The bytes for customClassId. */ - com.google.protobuf.ByteString getCustomClassIdBytes(); + com.google.protobuf.ByteString + getCustomClassIdBytes(); /** - * - * *
    * Required. The project and location where this CustomClass will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location where this CustomClass will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java similarity index 65% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java index 7414b3b497b8..81b996533df4 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [CreatePhraseSet][google.cloud.speech.v2.Speech.CreatePhraseSet] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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() {
     phraseSetId_ = "";
     parent_ = "";
@@ -45,43 +27,37 @@ 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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.CreatePhraseSetRequest.class,
-            com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder.class);
+            com.google.cloud.speech.v2.CreatePhraseSetRequest.class, com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder.class);
   }
 
   public static final int PHRASE_SET_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.PhraseSet phraseSet_;
   /**
-   *
-   *
    * 
    * Required. The PhraseSet to create.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -89,54 +65,38 @@ public boolean hasPhraseSet() { return phraseSet_ != null; } /** - * - * *
    * Required. The PhraseSet to create.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSet getPhraseSet() { - return phraseSet_ == null - ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; } /** - * - * *
    * Required. The PhraseSet to create.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder() { - return phraseSet_ == null - ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the PhraseSet, but do not
    * actually create it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -145,12 +105,9 @@ public boolean getValidateOnly() { } public static final int PHRASE_SET_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object phraseSetId_ = ""; /** - * - * *
    * The ID to use for the PhraseSet, which will become the final component of
    * the PhraseSet's resource name.
@@ -159,7 +116,6 @@ public boolean getValidateOnly() {
    * 
* * string phrase_set_id = 3; - * * @return The phraseSetId. */ @java.lang.Override @@ -168,15 +124,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; } } /** - * - * *
    * The ID to use for the PhraseSet, which will become the final component of
    * the PhraseSet's resource name.
@@ -185,15 +140,16 @@ public java.lang.String getPhraseSetId() {
    * 
* * string phrase_set_id = 3; - * * @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 { @@ -202,21 +158,15 @@ public com.google.protobuf.ByteString getPhraseSetIdBytes() { } public static final int PARENT_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The project and location where this PhraseSet will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -225,32 +175,30 @@ 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 project and location where this PhraseSet will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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 { @@ -259,7 +207,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -271,7 +218,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()); } @@ -294,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 (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phraseSetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, phraseSetId_); @@ -313,21 +263,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.v2.CreatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.CreatePhraseSetRequest other = - (com.google.cloud.speech.v2.CreatePhraseSetRequest) obj; + com.google.cloud.speech.v2.CreatePhraseSetRequest other = (com.google.cloud.speech.v2.CreatePhraseSetRequest) obj; if (hasPhraseSet() != other.hasPhraseSet()) return false; if (hasPhraseSet()) { - if (!getPhraseSet().equals(other.getPhraseSet())) return false; + if (!getPhraseSet() + .equals(other.getPhraseSet())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getPhraseSetId().equals(other.getPhraseSetId())) return false; - if (!getParent().equals(other.getParent())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getPhraseSetId() + .equals(other.getPhraseSetId())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -344,7 +297,8 @@ public int hashCode() { hash = (53 * hash) + getPhraseSet().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + PHRASE_SET_ID_FIELD_NUMBER; hash = (53 * hash) + getPhraseSetId().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; @@ -355,103 +309,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.CreatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.CreatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.CreatePhraseSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.CreatePhraseSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.CreatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.CreatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [CreatePhraseSet][google.cloud.speech.v2.Speech.CreatePhraseSet] method.
@@ -459,32 +406,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.CreatePhraseSetRequest)
       com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.CreatePhraseSetRequest.class,
-              com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder.class);
+              com.google.cloud.speech.v2.CreatePhraseSetRequest.class, com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.CreatePhraseSetRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -501,9 +449,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -522,11 +470,8 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.CreatePhraseSetRequest buildPartial() {
-      com.google.cloud.speech.v2.CreatePhraseSetRequest result =
-          new com.google.cloud.speech.v2.CreatePhraseSetRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.CreatePhraseSetRequest result = new com.google.cloud.speech.v2.CreatePhraseSetRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -534,7 +479,9 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.CreatePhraseSetRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build();
+        result.phraseSet_ = phraseSetBuilder_ == null
+            ? phraseSet_
+            : phraseSetBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -551,39 +498,38 @@ private void buildPartial0(com.google.cloud.speech.v2.CreatePhraseSetRequest res
     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.v2.CreatePhraseSetRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.CreatePhraseSetRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.CreatePhraseSetRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -591,8 +537,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.CreatePhraseSetRequest other) {
-      if (other == com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance()) return this;
       if (other.hasPhraseSet()) {
         mergePhraseSet(other.getPhraseSet());
       }
@@ -635,37 +580,34 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                phraseSetId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getPhraseSetFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              phraseSetId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -675,63 +617,43 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.speech.v2.PhraseSet phraseSet_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.PhraseSet,
-            com.google.cloud.speech.v2.PhraseSet.Builder,
-            com.google.cloud.speech.v2.PhraseSetOrBuilder>
-        phraseSetBuilder_;
+        com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> phraseSetBuilder_;
     /**
-     *
-     *
      * 
      * Required. The PhraseSet to create.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The PhraseSet to create.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ public com.google.cloud.speech.v2.PhraseSet getPhraseSet() { if (phraseSetBuilder_ == null) { - return phraseSet_ == null - ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; } else { return phraseSetBuilder_.getMessage(); } } /** - * - * *
      * Required. The PhraseSet to create.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetBuilder_ == null) { @@ -747,17 +669,14 @@ public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** - * - * *
      * Required. The PhraseSet to create.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { + public Builder setPhraseSet( + com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { if (phraseSetBuilder_ == null) { phraseSet_ = builderForValue.build(); } else { @@ -768,21 +687,17 @@ public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet.Builder builder return this; } /** - * - * *
      * Required. The PhraseSet to create.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && phraseSet_ != null - && phraseSet_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + phraseSet_ != null && + phraseSet_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -795,15 +710,11 @@ public Builder mergePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** - * - * *
      * Required. The PhraseSet to create.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPhraseSet() { bitField0_ = (bitField0_ & ~0x00000001); @@ -816,15 +727,11 @@ public Builder clearPhraseSet() { return this; } /** - * - * *
      * Required. The PhraseSet to create.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetBuilder() { bitField0_ |= 0x00000001; @@ -832,64 +739,49 @@ public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetBuilder() { return getPhraseSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The PhraseSet to create.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder() { if (phraseSetBuilder_ != null) { return phraseSetBuilder_.getMessageOrBuilder(); } else { - return phraseSet_ == null - ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? + com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; } } /** - * - * *
      * Required. The PhraseSet to create.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, - com.google.cloud.speech.v2.PhraseSet.Builder, - com.google.cloud.speech.v2.PhraseSetOrBuilder> + com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> getPhraseSetFieldBuilder() { if (phraseSetBuilder_ == null) { - phraseSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, - com.google.cloud.speech.v2.PhraseSet.Builder, - com.google.cloud.speech.v2.PhraseSetOrBuilder>( - getPhraseSet(), getParentForChildren(), isClean()); + phraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder>( + getPhraseSet(), + getParentForChildren(), + isClean()); phraseSet_ = null; } return phraseSetBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the PhraseSet, but do not
      * actually create it.
      * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -897,35 +789,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the PhraseSet, but do not
      * actually create it.
      * 
* * bool validate_only = 2; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the PhraseSet, but do not
      * actually create it.
      * 
* * bool validate_only = 2; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -937,8 +823,6 @@ public Builder clearValidateOnly() { private java.lang.Object phraseSetId_ = ""; /** - * - * *
      * The ID to use for the PhraseSet, which will become the final component of
      * the PhraseSet's resource name.
@@ -947,13 +831,13 @@ public Builder clearValidateOnly() {
      * 
* * string phrase_set_id = 3; - * * @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; @@ -962,8 +846,6 @@ public java.lang.String getPhraseSetId() { } } /** - * - * *
      * The ID to use for the PhraseSet, which will become the final component of
      * the PhraseSet's resource name.
@@ -972,14 +854,15 @@ public java.lang.String getPhraseSetId() {
      * 
* * string phrase_set_id = 3; - * * @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 { @@ -987,8 +870,6 @@ public com.google.protobuf.ByteString getPhraseSetIdBytes() { } } /** - * - * *
      * The ID to use for the PhraseSet, which will become the final component of
      * the PhraseSet's resource name.
@@ -997,22 +878,18 @@ public com.google.protobuf.ByteString getPhraseSetIdBytes() {
      * 
* * string phrase_set_id = 3; - * * @param value The phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhraseSetId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } phraseSetId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The ID to use for the PhraseSet, which will become the final component of
      * the PhraseSet's resource name.
@@ -1021,7 +898,6 @@ public Builder setPhraseSetId(java.lang.String value) {
      * 
* * string phrase_set_id = 3; - * * @return This builder for chaining. */ public Builder clearPhraseSetId() { @@ -1031,8 +907,6 @@ public Builder clearPhraseSetId() { return this; } /** - * - * *
      * The ID to use for the PhraseSet, which will become the final component of
      * the PhraseSet's resource name.
@@ -1041,14 +915,12 @@ public Builder clearPhraseSetId() {
      * 
* * string phrase_set_id = 3; - * * @param value The bytes for phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhraseSetIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); phraseSetId_ = value; bitField0_ |= 0x00000004; @@ -1058,23 +930,19 @@ public Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location where this PhraseSet will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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; @@ -1083,24 +951,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location where this PhraseSet will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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 { @@ -1108,41 +973,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location where this PhraseSet will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. The project and location where this PhraseSet will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1152,33 +1006,27 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The project and location where this PhraseSet will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000008; 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); } @@ -1188,12 +1036,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.CreatePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.CreatePhraseSetRequest) private static final com.google.cloud.speech.v2.CreatePhraseSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.CreatePhraseSetRequest(); } @@ -1202,27 +1050,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1237,4 +1085,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.CreatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java similarity index 58% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java index 862e79fa966f..b5990b5ce7a0 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java @@ -1,86 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface CreatePhraseSetRequestOrBuilder - extends +public interface CreatePhraseSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.CreatePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The PhraseSet to create.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** - * - * *
    * Required. The PhraseSet to create.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ com.google.cloud.speech.v2.PhraseSet getPhraseSet(); /** - * - * *
    * Required. The PhraseSet to create.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder(); /** - * - * *
    * If set, validate the request and preview the PhraseSet, but do not
    * actually create it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * The ID to use for the PhraseSet, which will become the final component of
    * the PhraseSet's resource name.
@@ -89,13 +54,10 @@ public interface CreatePhraseSetRequestOrBuilder
    * 
* * string phrase_set_id = 3; - * * @return The phraseSetId. */ java.lang.String getPhraseSetId(); /** - * - * *
    * The ID to use for the PhraseSet, which will become the final component of
    * the PhraseSet's resource name.
@@ -104,39 +66,30 @@ public interface CreatePhraseSetRequestOrBuilder
    * 
* * string phrase_set_id = 3; - * * @return The bytes for phraseSetId. */ - com.google.protobuf.ByteString getPhraseSetIdBytes(); + com.google.protobuf.ByteString + getPhraseSetIdBytes(); /** - * - * *
    * Required. The project and location where this PhraseSet will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location where this PhraseSet will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java similarity index 65% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java index f9a1139da8fd..1f373bf761f0 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [CreateRecognizer][google.cloud.speech.v2.Speech.CreateRecognizer] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.CreateRecognizerRequest}
  */
-public final class CreateRecognizerRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateRecognizerRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.CreateRecognizerRequest)
     CreateRecognizerRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateRecognizerRequest.newBuilder() to construct.
   private CreateRecognizerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateRecognizerRequest() {
     recognizerId_ = "";
     parent_ = "";
@@ -45,43 +27,37 @@ private CreateRecognizerRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateRecognizerRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.CreateRecognizerRequest.class,
-            com.google.cloud.speech.v2.CreateRecognizerRequest.Builder.class);
+            com.google.cloud.speech.v2.CreateRecognizerRequest.class, com.google.cloud.speech.v2.CreateRecognizerRequest.Builder.class);
   }
 
   public static final int RECOGNIZER_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.Recognizer recognizer_;
   /**
-   *
-   *
    * 
    * Required. The Recognizer to create.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the recognizer field is set. */ @java.lang.Override @@ -89,54 +65,38 @@ public boolean hasRecognizer() { return recognizer_ != null; } /** - * - * *
    * Required. The Recognizer to create.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The recognizer. */ @java.lang.Override public com.google.cloud.speech.v2.Recognizer getRecognizer() { - return recognizer_ == null - ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() - : recognizer_; + return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; } /** - * - * *
    * Required. The Recognizer to create.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder() { - return recognizer_ == null - ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() - : recognizer_; + return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the Recognizer, but do not
    * actually create it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -145,12 +105,9 @@ public boolean getValidateOnly() { } public static final int RECOGNIZER_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object recognizerId_ = ""; /** - * - * *
    * The ID to use for the Recognizer, which will become the final component of
    * the Recognizer's resource name.
@@ -159,7 +116,6 @@ public boolean getValidateOnly() {
    * 
* * string recognizer_id = 3; - * * @return The recognizerId. */ @java.lang.Override @@ -168,15 +124,14 @@ public java.lang.String getRecognizerId() { 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(); recognizerId_ = s; return s; } } /** - * - * *
    * The ID to use for the Recognizer, which will become the final component of
    * the Recognizer's resource name.
@@ -185,15 +140,16 @@ public java.lang.String getRecognizerId() {
    * 
* * string recognizer_id = 3; - * * @return The bytes for recognizerId. */ @java.lang.Override - public com.google.protobuf.ByteString getRecognizerIdBytes() { + public com.google.protobuf.ByteString + getRecognizerIdBytes() { java.lang.Object ref = recognizerId_; 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); recognizerId_ = b; return b; } else { @@ -202,21 +158,15 @@ public com.google.protobuf.ByteString getRecognizerIdBytes() { } public static final int PARENT_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The project and location where this Recognizer will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -225,32 +175,30 @@ 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 project and location where this Recognizer will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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 { @@ -259,7 +207,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -271,7 +218,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 (recognizer_ != null) { output.writeMessage(1, getRecognizer()); } @@ -294,10 +242,12 @@ public int getSerializedSize() { size = 0; if (recognizer_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRecognizer()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRecognizer()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recognizerId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, recognizerId_); @@ -313,21 +263,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.v2.CreateRecognizerRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.CreateRecognizerRequest other = - (com.google.cloud.speech.v2.CreateRecognizerRequest) obj; + com.google.cloud.speech.v2.CreateRecognizerRequest other = (com.google.cloud.speech.v2.CreateRecognizerRequest) obj; if (hasRecognizer() != other.hasRecognizer()) return false; if (hasRecognizer()) { - if (!getRecognizer().equals(other.getRecognizer())) return false; + if (!getRecognizer() + .equals(other.getRecognizer())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getRecognizerId().equals(other.getRecognizerId())) return false; - if (!getParent().equals(other.getParent())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getRecognizerId() + .equals(other.getRecognizerId())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -344,7 +297,8 @@ public int hashCode() { hash = (53 * hash) + getRecognizer().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + RECOGNIZER_ID_FIELD_NUMBER; hash = (53 * hash) + getRecognizerId().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; @@ -355,103 +309,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.CreateRecognizerRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.CreateRecognizerRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest 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; } /** - * - * *
    * Request message for the
    * [CreateRecognizer][google.cloud.speech.v2.Speech.CreateRecognizer] method.
@@ -459,32 +406,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.CreateRecognizerRequest}
    */
-  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.v2.CreateRecognizerRequest)
       com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.CreateRecognizerRequest.class,
-              com.google.cloud.speech.v2.CreateRecognizerRequest.Builder.class);
+              com.google.cloud.speech.v2.CreateRecognizerRequest.class, com.google.cloud.speech.v2.CreateRecognizerRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.CreateRecognizerRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -501,9 +449,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
@@ -522,11 +470,8 @@ public com.google.cloud.speech.v2.CreateRecognizerRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.CreateRecognizerRequest buildPartial() {
-      com.google.cloud.speech.v2.CreateRecognizerRequest result =
-          new com.google.cloud.speech.v2.CreateRecognizerRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.CreateRecognizerRequest result = new com.google.cloud.speech.v2.CreateRecognizerRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -534,7 +479,9 @@ public com.google.cloud.speech.v2.CreateRecognizerRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.CreateRecognizerRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.recognizer_ = recognizerBuilder_ == null ? recognizer_ : recognizerBuilder_.build();
+        result.recognizer_ = recognizerBuilder_ == null
+            ? recognizer_
+            : recognizerBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -551,39 +498,38 @@ private void buildPartial0(com.google.cloud.speech.v2.CreateRecognizerRequest re
     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.v2.CreateRecognizerRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.CreateRecognizerRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.CreateRecognizerRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -591,8 +537,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.CreateRecognizerRequest other) {
-      if (other == com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance()) return this;
       if (other.hasRecognizer()) {
         mergeRecognizer(other.getRecognizer());
       }
@@ -635,37 +580,34 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getRecognizerFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                recognizerId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getRecognizerFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              recognizerId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -675,63 +617,43 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.speech.v2.Recognizer recognizer_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.Recognizer,
-            com.google.cloud.speech.v2.Recognizer.Builder,
-            com.google.cloud.speech.v2.RecognizerOrBuilder>
-        recognizerBuilder_;
+        com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> recognizerBuilder_;
     /**
-     *
-     *
      * 
      * Required. The Recognizer to create.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the recognizer field is set. */ public boolean hasRecognizer() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The Recognizer to create.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The recognizer. */ public com.google.cloud.speech.v2.Recognizer getRecognizer() { if (recognizerBuilder_ == null) { - return recognizer_ == null - ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() - : recognizer_; + return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; } else { return recognizerBuilder_.getMessage(); } } /** - * - * *
      * Required. The Recognizer to create.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer value) { if (recognizerBuilder_ == null) { @@ -747,17 +669,14 @@ public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer value) { return this; } /** - * - * *
      * Required. The Recognizer to create.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { + public Builder setRecognizer( + com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { if (recognizerBuilder_ == null) { recognizer_ = builderForValue.build(); } else { @@ -768,21 +687,17 @@ public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer.Builder build return this; } /** - * - * *
      * Required. The Recognizer to create.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeRecognizer(com.google.cloud.speech.v2.Recognizer value) { if (recognizerBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && recognizer_ != null - && recognizer_ != com.google.cloud.speech.v2.Recognizer.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + recognizer_ != null && + recognizer_ != com.google.cloud.speech.v2.Recognizer.getDefaultInstance()) { getRecognizerBuilder().mergeFrom(value); } else { recognizer_ = value; @@ -795,15 +710,11 @@ public Builder mergeRecognizer(com.google.cloud.speech.v2.Recognizer value) { return this; } /** - * - * *
      * Required. The Recognizer to create.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRecognizer() { bitField0_ = (bitField0_ & ~0x00000001); @@ -816,15 +727,11 @@ public Builder clearRecognizer() { return this; } /** - * - * *
      * Required. The Recognizer to create.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.Recognizer.Builder getRecognizerBuilder() { bitField0_ |= 0x00000001; @@ -832,64 +739,49 @@ public com.google.cloud.speech.v2.Recognizer.Builder getRecognizerBuilder() { return getRecognizerFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Recognizer to create.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder() { if (recognizerBuilder_ != null) { return recognizerBuilder_.getMessageOrBuilder(); } else { - return recognizer_ == null - ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() - : recognizer_; + return recognizer_ == null ? + com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; } } /** - * - * *
      * Required. The Recognizer to create.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, - com.google.cloud.speech.v2.Recognizer.Builder, - com.google.cloud.speech.v2.RecognizerOrBuilder> + com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> getRecognizerFieldBuilder() { if (recognizerBuilder_ == null) { - recognizerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, - com.google.cloud.speech.v2.Recognizer.Builder, - com.google.cloud.speech.v2.RecognizerOrBuilder>( - getRecognizer(), getParentForChildren(), isClean()); + recognizerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder>( + getRecognizer(), + getParentForChildren(), + isClean()); recognizer_ = null; } return recognizerBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the Recognizer, but do not
      * actually create it.
      * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -897,35 +789,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the Recognizer, but do not
      * actually create it.
      * 
* * bool validate_only = 2; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the Recognizer, but do not
      * actually create it.
      * 
* * bool validate_only = 2; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -937,8 +823,6 @@ public Builder clearValidateOnly() { private java.lang.Object recognizerId_ = ""; /** - * - * *
      * The ID to use for the Recognizer, which will become the final component of
      * the Recognizer's resource name.
@@ -947,13 +831,13 @@ public Builder clearValidateOnly() {
      * 
* * string recognizer_id = 3; - * * @return The recognizerId. */ public java.lang.String getRecognizerId() { java.lang.Object ref = recognizerId_; 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(); recognizerId_ = s; return s; @@ -962,8 +846,6 @@ public java.lang.String getRecognizerId() { } } /** - * - * *
      * The ID to use for the Recognizer, which will become the final component of
      * the Recognizer's resource name.
@@ -972,14 +854,15 @@ public java.lang.String getRecognizerId() {
      * 
* * string recognizer_id = 3; - * * @return The bytes for recognizerId. */ - public com.google.protobuf.ByteString getRecognizerIdBytes() { + public com.google.protobuf.ByteString + getRecognizerIdBytes() { java.lang.Object ref = recognizerId_; 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); recognizerId_ = b; return b; } else { @@ -987,8 +870,6 @@ public com.google.protobuf.ByteString getRecognizerIdBytes() { } } /** - * - * *
      * The ID to use for the Recognizer, which will become the final component of
      * the Recognizer's resource name.
@@ -997,22 +878,18 @@ public com.google.protobuf.ByteString getRecognizerIdBytes() {
      * 
* * string recognizer_id = 3; - * * @param value The recognizerId to set. * @return This builder for chaining. */ - public Builder setRecognizerId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecognizerId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } recognizerId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The ID to use for the Recognizer, which will become the final component of
      * the Recognizer's resource name.
@@ -1021,7 +898,6 @@ public Builder setRecognizerId(java.lang.String value) {
      * 
* * string recognizer_id = 3; - * * @return This builder for chaining. */ public Builder clearRecognizerId() { @@ -1031,8 +907,6 @@ public Builder clearRecognizerId() { return this; } /** - * - * *
      * The ID to use for the Recognizer, which will become the final component of
      * the Recognizer's resource name.
@@ -1041,14 +915,12 @@ public Builder clearRecognizerId() {
      * 
* * string recognizer_id = 3; - * * @param value The bytes for recognizerId to set. * @return This builder for chaining. */ - public Builder setRecognizerIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecognizerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); recognizerId_ = value; bitField0_ |= 0x00000004; @@ -1058,23 +930,19 @@ public Builder setRecognizerIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The project and location where this Recognizer will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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; @@ -1083,24 +951,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location where this Recognizer will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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 { @@ -1108,41 +973,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location where this Recognizer will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. The project and location where this Recognizer will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1152,33 +1006,27 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The project and location where this Recognizer will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000008; 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); } @@ -1188,12 +1036,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.CreateRecognizerRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.CreateRecognizerRequest) private static final com.google.cloud.speech.v2.CreateRecognizerRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.CreateRecognizerRequest(); } @@ -1202,27 +1050,27 @@ public static com.google.cloud.speech.v2.CreateRecognizerRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRecognizerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRecognizerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1237,4 +1085,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.CreateRecognizerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java similarity index 58% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java index 77aa7ec49b6a..ae28e33df050 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java @@ -1,86 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface CreateRecognizerRequestOrBuilder - extends +public interface CreateRecognizerRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.CreateRecognizerRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Recognizer to create.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the recognizer field is set. */ boolean hasRecognizer(); /** - * - * *
    * Required. The Recognizer to create.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The recognizer. */ com.google.cloud.speech.v2.Recognizer getRecognizer(); /** - * - * *
    * Required. The Recognizer to create.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder(); /** - * - * *
    * If set, validate the request and preview the Recognizer, but do not
    * actually create it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * The ID to use for the Recognizer, which will become the final component of
    * the Recognizer's resource name.
@@ -89,13 +54,10 @@ public interface CreateRecognizerRequestOrBuilder
    * 
* * string recognizer_id = 3; - * * @return The recognizerId. */ java.lang.String getRecognizerId(); /** - * - * *
    * The ID to use for the Recognizer, which will become the final component of
    * the Recognizer's resource name.
@@ -104,39 +66,30 @@ public interface CreateRecognizerRequestOrBuilder
    * 
* * string recognizer_id = 3; - * * @return The bytes for recognizerId. */ - com.google.protobuf.ByteString getRecognizerIdBytes(); + com.google.protobuf.ByteString + getRecognizerIdBytes(); /** - * - * *
    * Required. The project and location where this Recognizer will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The project and location where this Recognizer will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java index 5fd33410c96d..3c0b408a3a4c 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * CustomClass for biasing in speech recognition. Used to define a set of words
  * or phrases that represents a common concept or theme likely to appear in your
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
     uid_ = "";
@@ -52,54 +34,51 @@ 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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_CustomClass_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 10:
         return internalGetAnnotations();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.CustomClass.class,
-            com.google.cloud.speech.v2.CustomClass.Builder.class);
+            com.google.cloud.speech.v2.CustomClass.class, com.google.cloud.speech.v2.CustomClass.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Set of states that define the lifecycle of a CustomClass.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.CustomClass.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified state.  This is only used/useful for distinguishing
      * unset values.
@@ -109,8 +88,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The normal and active state.
      * 
@@ -119,8 +96,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(2), /** - * - * *
      * This CustomClass has been deleted.
      * 
@@ -132,8 +107,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified state.  This is only used/useful for distinguishing
      * unset values.
@@ -143,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int STATE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * The normal and active state.
      * 
@@ -153,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 2; /** - * - * *
      * This CustomClass has been deleted.
      * 
@@ -163,6 +132,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETED_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -187,49 +157,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 2: - return ACTIVE; - case 4: - return DELETED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 2: return ACTIVE; + case 4: return DELETED; + 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< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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.v2.CustomClass.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -246,98 +216,84 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.speech.v2.CustomClass.State) } - public interface ClassItemOrBuilder - extends + public interface ClassItemOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.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.v2.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.v2.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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.CustomClass.ClassItem.class, - com.google.cloud.speech.v2.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v2.CustomClass.ClassItem.class, com.google.cloud.speech.v2.CustomClass.ClassItem.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** - * - * *
      * The class item's value.
      * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -346,29 +302,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 { @@ -377,7 +333,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -389,7 +344,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_); } @@ -413,15 +369,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.v2.CustomClass.ClassItem)) { return super.equals(obj); } - com.google.cloud.speech.v2.CustomClass.ClassItem other = - (com.google.cloud.speech.v2.CustomClass.ClassItem) obj; + com.google.cloud.speech.v2.CustomClass.ClassItem other = (com.google.cloud.speech.v2.CustomClass.ClassItem) obj; - if (!getValue().equals(other.getValue())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -441,93 +397,87 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.CustomClass.ClassItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.CustomClass.ClassItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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 @@ -537,41 +487,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * An item of the class.
      * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.CustomClass.ClassItem) com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.CustomClass.ClassItem.class, - com.google.cloud.speech.v2.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v2.CustomClass.ClassItem.class, com.google.cloud.speech.v2.CustomClass.ClassItem.Builder.class); } // Construct using com.google.cloud.speech.v2.CustomClass.ClassItem.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -581,9 +529,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; } @java.lang.Override @@ -602,11 +550,8 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem build() { @java.lang.Override public com.google.cloud.speech.v2.CustomClass.ClassItem buildPartial() { - com.google.cloud.speech.v2.CustomClass.ClassItem result = - new com.google.cloud.speech.v2.CustomClass.ClassItem(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v2.CustomClass.ClassItem result = new com.google.cloud.speech.v2.CustomClass.ClassItem(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -622,41 +567,38 @@ private void buildPartial0(com.google.cloud.speech.v2.CustomClass.ClassItem resu 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.v2.CustomClass.ClassItem) { - return mergeFrom((com.google.cloud.speech.v2.CustomClass.ClassItem) other); + return mergeFrom((com.google.cloud.speech.v2.CustomClass.ClassItem)other); } else { super.mergeFrom(other); return this; @@ -664,8 +606,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.CustomClass.ClassItem other) { - if (other == com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()) return this; if (!other.getValue().isEmpty()) { value_ = other.value_; bitField0_ |= 0x00000001; @@ -697,19 +638,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -719,25 +658,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -746,21 +682,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 { @@ -768,35 +703,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -806,28 +734,23 @@ public Builder clearValue() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -840,12 +763,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.CustomClass.ClassItem) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.CustomClass.ClassItem) private static final com.google.cloud.speech.v2.CustomClass.ClassItem DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.CustomClass.ClassItem(); } @@ -854,28 +777,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -890,15 +812,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.CustomClass.ClassItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The resource name of the CustomClass.
    * Format:
@@ -906,7 +826,6 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem getDefaultInstanceForTyp
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -915,15 +834,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; } } /** - * - * *
    * Output only. The resource name of the CustomClass.
    * Format:
@@ -931,15 +849,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -948,18 +867,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int UID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** - * - * *
    * Output only. System-assigned unique identifier for the CustomClass.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -968,29 +883,29 @@ public java.lang.String getUid() { 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(); uid_ = s; return s; } } /** - * - * *
    * Output only. System-assigned unique identifier for the CustomClass.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -999,19 +914,15 @@ public com.google.protobuf.ByteString getUidBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * User-settable, human-readable name for the CustomClass. Must be 63
    * characters or less.
    * 
* * string display_name = 4; - * * @return The displayName. */ @java.lang.Override @@ -1020,30 +931,30 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** - * - * *
    * User-settable, human-readable name for the CustomClass. Must be 63
    * characters or less.
    * 
* * string display_name = 4; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -1052,12 +963,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int ITEMS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private java.util.List items_; /** - * - * *
    * A collection of class items.
    * 
@@ -1069,8 +977,6 @@ public java.util.List getItems return items_; } /** - * - * *
    * A collection of class items.
    * 
@@ -1078,13 +984,11 @@ public java.util.List getItems * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ @java.lang.Override - public java.util.List + public java.util.List getItemsOrBuilderList() { return items_; } /** - * - * *
    * A collection of class items.
    * 
@@ -1096,8 +1000,6 @@ public int getItemsCount() { return items_.size(); } /** - * - * *
    * A collection of class items.
    * 
@@ -1109,8 +1011,6 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem getItems(int index) { return items_.get(index); } /** - * - * *
    * A collection of class items.
    * 
@@ -1118,61 +1018,45 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem getItems(int index) { * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ @java.lang.Override - public com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index) { + public com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder( + int index) { return items_.get(index); } public static final int STATE_FIELD_NUMBER = 15; private int state_ = 0; /** - * - * *
    * Output only. The CustomClass lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The CustomClass lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.speech.v2.CustomClass.State getState() { - com.google.cloud.speech.v2.CustomClass.State result = - com.google.cloud.speech.v2.CustomClass.State.forNumber(state_); + @java.lang.Override public com.google.cloud.speech.v2.CustomClass.State getState() { + com.google.cloud.speech.v2.CustomClass.State result = com.google.cloud.speech.v2.CustomClass.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.CustomClass.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1180,15 +1064,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1196,14 +1076,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1213,15 +1090,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1229,15 +1102,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -1245,14 +1114,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1262,15 +1128,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -1278,15 +1140,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -1294,14 +1152,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -1311,15 +1166,11 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ @java.lang.Override @@ -1327,15 +1178,11 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ @java.lang.Override @@ -1343,14 +1190,11 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -1358,35 +1202,32 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } public static final int ANNOTATIONS_FIELD_NUMBER = 10; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1396,21 +1237,20 @@ public int getAnnotationsCount() {
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public boolean containsAnnotations(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsAnnotations(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetAnnotations().getMap().containsKey(key);
   }
-  /** Use {@link #getAnnotationsMap()} instead. */
+  /**
+   * Use {@link #getAnnotationsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAnnotations() {
     return getAnnotationsMap();
   }
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1424,8 +1264,6 @@ public java.util.Map getAnnotationsMap() {
     return internalGetAnnotations().getMap();
   }
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1435,19 +1273,17 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getAnnotationsOrDefault(
+  public /* nullable */
+java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetAnnotations().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1457,11 +1293,11 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+  public java.lang.String getAnnotationsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1469,12 +1305,9 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
   }
 
   public static final int ETAG_FIELD_NUMBER = 11;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object etag_ = "";
   /**
-   *
-   *
    * 
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -1482,7 +1315,6 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ @java.lang.Override @@ -1491,15 +1323,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -1507,15 +1338,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -1526,15 +1358,12 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int RECONCILING_FIELD_NUMBER = 12; private boolean reconciling_ = false; /** - * - * *
    * Output only. Whether or not this CustomClass is in the process of being
    * updated.
    * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -1543,12 +1372,9 @@ public boolean getReconciling() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 13; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -1556,10 +1382,7 @@ public boolean getReconciling() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ @java.lang.Override @@ -1568,15 +1391,14 @@ public java.lang.String getKmsKeyName() { 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(); kmsKeyName_ = s; return s; } } /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -1584,18 +1406,17 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -1604,12 +1425,9 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER = 14; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyVersionName_ = ""; /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1617,10 +1435,7 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyVersionName. */ @java.lang.Override @@ -1629,15 +1444,14 @@ public java.lang.String getKmsKeyVersionName() { 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(); kmsKeyVersionName_ = s; return s; } } /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1645,18 +1459,17 @@ public java.lang.String getKmsKeyVersionName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyVersionName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -1665,7 +1478,6 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1677,7 +1489,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_); } @@ -1702,8 +1515,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (expireTime_ != null) { output.writeMessage(9, getExpireTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 10); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 10); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, etag_); } @@ -1738,35 +1555,41 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); } for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, items_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, items_.get(i)); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getExpireTime()); - } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, annotations__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getExpireTime()); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, annotations__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etag_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, reconciling_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, reconciling_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kmsKeyName_); @@ -1775,7 +1598,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, kmsKeyVersionName_); } if (state_ != com.google.cloud.speech.v2.CustomClass.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1785,39 +1609,52 @@ 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.v2.CustomClass)) { return super.equals(obj); } com.google.cloud.speech.v2.CustomClass other = (com.google.cloud.speech.v2.CustomClass) obj; - if (!getName().equals(other.getName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getItemsList().equals(other.getItemsList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getItemsList() + .equals(other.getItemsList())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; - } - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (getReconciling() != other.getReconciling()) return false; - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; - if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; + } + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (getReconciling() + != other.getReconciling()) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; + if (!getKmsKeyVersionName() + .equals(other.getKmsKeyVersionName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1864,7 +1701,8 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getKmsKeyName().hashCode(); hash = (37 * hash) + KMS_KEY_VERSION_NAME_FIELD_NUMBER; @@ -1874,104 +1712,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.CustomClass parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.CustomClass parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.CustomClass parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.CustomClass parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * CustomClass for biasing in speech recognition. Used to define a set of words
    * or phrases that represents a common concept or theme likely to appear in your
@@ -1980,52 +1811,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.CustomClass)
       com.google.cloud.speech.v2.CustomClassOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CustomClass_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 10:
           return internalGetAnnotations();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 10:
           return internalGetMutableAnnotations();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.CustomClass.class,
-              com.google.cloud.speech.v2.CustomClass.Builder.class);
+              com.google.cloud.speech.v2.CustomClass.class, com.google.cloud.speech.v2.CustomClass.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.CustomClass.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2070,9 +1904,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_CustomClass_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_descriptor;
     }
 
     @java.lang.Override
@@ -2091,12 +1925,9 @@ public com.google.cloud.speech.v2.CustomClass build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.CustomClass buildPartial() {
-      com.google.cloud.speech.v2.CustomClass result =
-          new com.google.cloud.speech.v2.CustomClass(this);
+      com.google.cloud.speech.v2.CustomClass result = new com.google.cloud.speech.v2.CustomClass(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -2128,16 +1959,24 @@ private void buildPartial0(com.google.cloud.speech.v2.CustomClass result) {
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null
+            ? deleteTime_
+            : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build();
+        result.expireTime_ = expireTimeBuilder_ == null
+            ? expireTime_
+            : expireTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.annotations_ = internalGetAnnotations();
@@ -2161,39 +2000,38 @@ private void buildPartial0(com.google.cloud.speech.v2.CustomClass result) {
     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.v2.CustomClass) {
-        return mergeFrom((com.google.cloud.speech.v2.CustomClass) other);
+        return mergeFrom((com.google.cloud.speech.v2.CustomClass)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2235,10 +2073,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            itemsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getItemsFieldBuilder()
-                    : null;
+            itemsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getItemsFieldBuilder() : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -2259,7 +2096,8 @@ public Builder mergeFrom(com.google.cloud.speech.v2.CustomClass other) {
       if (other.hasExpireTime()) {
         mergeExpireTime(other.getExpireTime());
       }
-      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(
+          other.internalGetAnnotations());
       bitField0_ |= 0x00000200;
       if (!other.getEtag().isEmpty()) {
         etag_ = other.etag_;
@@ -2305,111 +2143,102 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                uid_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 34:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 34
-            case 42:
-              {
-                com.google.cloud.speech.v2.CustomClass.ClassItem m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.CustomClass.ClassItem.parser(),
-                        extensionRegistry);
-                if (itemsBuilder_ == null) {
-                  ensureItemsIsMutable();
-                  items_.add(m);
-                } else {
-                  itemsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 66
-            case 74:
-              {
-                input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 74
-            case 82:
-              {
-                com.google.protobuf.MapEntry annotations__ =
-                    input.readMessage(
-                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableAnnotations()
-                    .getMutableMap()
-                    .put(annotations__.getKey(), annotations__.getValue());
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 82
-            case 90:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 90
-            case 96:
-              {
-                reconciling_ = input.readBool();
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 96
-            case 106:
-              {
-                kmsKeyName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 106
-            case 114:
-              {
-                kmsKeyVersionName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 114
-            case 120:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 120
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              uid_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 34: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 34
+            case 42: {
+              com.google.cloud.speech.v2.CustomClass.ClassItem m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.CustomClass.ClassItem.parser(),
+                      extensionRegistry);
+              if (itemsBuilder_ == null) {
+                ensureItemsIsMutable();
+                items_.add(m);
+              } else {
+                itemsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getDeleteTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 66
+            case 74: {
+              input.readMessage(
+                  getExpireTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 74
+            case 82: {
+              com.google.protobuf.MapEntry
+              annotations__ = input.readMessage(
+                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableAnnotations().getMutableMap().put(
+                  annotations__.getKey(), annotations__.getValue());
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 82
+            case 90: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 90
+            case 96: {
+              reconciling_ = input.readBool();
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 96
+            case 106: {
+              kmsKeyName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 106
+            case 114: {
+              kmsKeyVersionName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 114
+            case 120: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 120
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2419,13 +2248,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name of the CustomClass.
      * Format:
@@ -2433,13 +2259,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -2448,8 +2274,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the CustomClass.
      * Format:
@@ -2457,14 +2281,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -2472,8 +2297,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the CustomClass.
      * Format:
@@ -2481,22 +2304,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the CustomClass.
      * Format:
@@ -2504,7 +2323,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2514,8 +2332,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name of the CustomClass.
      * Format:
@@ -2523,14 +2339,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2540,20 +2354,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. System-assigned unique identifier for the CustomClass.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; 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(); uid_ = s; return s; @@ -2562,21 +2374,20 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. System-assigned unique identifier for the CustomClass.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -2584,35 +2395,28 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. System-assigned unique identifier for the CustomClass.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. System-assigned unique identifier for the CustomClass.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { @@ -2622,21 +2426,17 @@ public Builder clearUid() { return this; } /** - * - * *
      * Output only. System-assigned unique identifier for the CustomClass.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000002; @@ -2646,21 +2446,19 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * User-settable, human-readable name for the CustomClass. Must be 63
      * characters or less.
      * 
* * string display_name = 4; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -2669,22 +2467,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * User-settable, human-readable name for the CustomClass. Must be 63
      * characters or less.
      * 
* * string display_name = 4; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -2692,37 +2489,30 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * User-settable, human-readable name for the CustomClass. Must be 63
      * characters or less.
      * 
* * string display_name = 4; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * User-settable, human-readable name for the CustomClass. Must be 63
      * characters or less.
      * 
* * string display_name = 4; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2732,22 +2522,18 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * User-settable, human-readable name for the CustomClass. Must be 63
      * characters or less.
      * 
* * string display_name = 4; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000004; @@ -2756,24 +2542,18 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } private java.util.List items_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass.ClassItem, - com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, - com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder> - itemsBuilder_; + com.google.cloud.speech.v2.CustomClass.ClassItem, com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder> itemsBuilder_; /** - * - * *
      * A collection of class items.
      * 
@@ -2788,8 +2568,6 @@ public java.util.List getItems } } /** - * - * *
      * A collection of class items.
      * 
@@ -2804,8 +2582,6 @@ public int getItemsCount() { } } /** - * - * *
      * A collection of class items.
      * 
@@ -2820,15 +2596,14 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem getItems(int index) { } } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public Builder setItems(int index, com.google.cloud.speech.v2.CustomClass.ClassItem value) { + public Builder setItems( + int index, com.google.cloud.speech.v2.CustomClass.ClassItem value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2842,8 +2617,6 @@ public Builder setItems(int index, com.google.cloud.speech.v2.CustomClass.ClassI return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -2862,8 +2635,6 @@ public Builder setItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -2884,15 +2655,14 @@ public Builder addItems(com.google.cloud.speech.v2.CustomClass.ClassItem value) return this; } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public Builder addItems(int index, com.google.cloud.speech.v2.CustomClass.ClassItem value) { + public Builder addItems( + int index, com.google.cloud.speech.v2.CustomClass.ClassItem value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2906,8 +2676,6 @@ public Builder addItems(int index, com.google.cloud.speech.v2.CustomClass.ClassI return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -2926,8 +2694,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -2946,8 +2712,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -2958,7 +2722,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); @@ -2966,8 +2731,6 @@ public Builder addAllItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -2985,8 +2748,6 @@ public Builder clearItems() { return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -3004,44 +2765,39 @@ public Builder removeItems(int index) { return this; } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder getItemsBuilder(int index) { + public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder getItemsBuilder( + int index) { return getItemsFieldBuilder().getBuilder(index); } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index) { + public com.google.cloud.speech.v2.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.v2.CustomClass.ClassItem items = 5; */ - public java.util.List - getItemsOrBuilderList() { + public java.util.List + getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { @@ -3049,8 +2805,6 @@ public com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuild } } /** - * - * *
      * A collection of class items.
      * 
@@ -3058,48 +2812,42 @@ public com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuild * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder addItemsBuilder() { - return getItemsFieldBuilder() - .addBuilder(com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()); + return getItemsFieldBuilder().addBuilder( + com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()); } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder addItemsBuilder(int index) { - return getItemsFieldBuilder() - .addBuilder(index, com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()); + public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()); } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public java.util.List - getItemsBuilderList() { + public java.util.List + getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass.ClassItem, - com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, - com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder> + com.google.cloud.speech.v2.CustomClass.ClassItem, com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { - itemsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass.ClassItem, - com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, - com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder>( - items_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.CustomClass.ClassItem, com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder>( + items_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); items_ = null; } return itemsBuilder_; @@ -3107,33 +2855,22 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder addItemsBuilder( private int state_ = 0; /** - * - * *
      * Output only. The CustomClass lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The CustomClass lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3144,35 +2881,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The CustomClass lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.speech.v2.CustomClass.State getState() { - com.google.cloud.speech.v2.CustomClass.State result = - com.google.cloud.speech.v2.CustomClass.State.forNumber(state_); + com.google.cloud.speech.v2.CustomClass.State result = com.google.cloud.speech.v2.CustomClass.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.CustomClass.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The CustomClass lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3186,16 +2912,11 @@ public Builder setState(com.google.cloud.speech.v2.CustomClass.State value) { return this; } /** - * - * *
      * Output only. The CustomClass lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -3207,58 +2928,39 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3274,17 +2976,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -3295,21 +2994,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3322,15 +3017,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -3343,15 +3034,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000020; @@ -3359,48 +3046,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3408,58 +3083,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3475,17 +3131,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3496,21 +3149,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3523,15 +3172,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3544,15 +3189,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000040; @@ -3560,48 +3201,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3609,58 +3238,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3676,17 +3286,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -3697,21 +3304,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -3724,15 +3327,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3745,15 +3344,11 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000080; @@ -3761,48 +3356,36 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -3810,58 +3393,39 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -3877,17 +3441,14 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -3898,21 +3459,17 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && expireTime_ != null - && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + expireTime_ != null && + expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -3925,15 +3482,11 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -3946,15 +3499,11 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000100; @@ -3962,55 +3511,43 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), + getParentForChildren(), + isClean()); expireTime_ = null; } return expireTimeBuilder_; } - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -4019,12 +3556,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } return annotations_; } - private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = - com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -4033,13 +3569,10 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { onChanged(); return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4049,21 +3582,20 @@ public int getAnnotationsCount() {
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public boolean containsAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetAnnotations().getMap().containsKey(key);
     }
-    /** Use {@link #getAnnotationsMap()} instead. */
+    /**
+     * Use {@link #getAnnotationsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAnnotations() {
       return getAnnotationsMap();
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4077,8 +3609,6 @@ public java.util.Map getAnnotationsMap() {
       return internalGetAnnotations().getMap();
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4088,19 +3618,17 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getAnnotationsOrDefault(
+    public /* nullable */
+java.lang.String getAnnotationsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetAnnotations().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4110,25 +3638,23 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+    public java.lang.String getAnnotationsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearAnnotations() {
       bitField0_ = (bitField0_ & ~0x00000200);
-      internalGetMutableAnnotations().getMutableMap().clear();
+      internalGetMutableAnnotations().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4137,22 +3663,23 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 10;
      */
-    public Builder removeAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableAnnotations().getMutableMap().remove(key);
+    public Builder removeAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableAnnotations().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableAnnotations() {
+    public java.util.Map
+        getMutableAnnotations() {
       bitField0_ |= 0x00000200;
       return internalGetMutableAnnotations().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4161,20 +3688,17 @@ public java.util.Map getMutableAnnotations()
      *
      * map<string, string> annotations = 10;
      */
-    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableAnnotations().getMutableMap().put(key, value);
+    public Builder putAnnotations(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableAnnotations().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000200;
       return this;
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4183,16 +3707,16 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> annotations = 10;
      */
-    public Builder putAllAnnotations(java.util.Map values) {
-      internalGetMutableAnnotations().getMutableMap().putAll(values);
+    public Builder putAllAnnotations(
+        java.util.Map values) {
+      internalGetMutableAnnotations().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000200;
       return this;
     }
 
     private java.lang.Object etag_ = "";
     /**
-     *
-     *
      * 
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4200,13 +3724,13 @@ public Builder putAllAnnotations(java.util.Map
      *
      * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
-     *
      * @return The etag.
      */
     public java.lang.String getEtag() {
       java.lang.Object ref = etag_;
       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();
         etag_ = s;
         return s;
@@ -4215,8 +3739,6 @@ public java.lang.String getEtag() {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4224,14 +3746,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -4239,8 +3762,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4248,22 +3769,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4271,7 +3788,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -4281,8 +3797,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4290,14 +3804,12 @@ public Builder clearEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000400; @@ -4305,17 +3817,14 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } - private boolean reconciling_; + private boolean reconciling_ ; /** - * - * *
      * Output only. Whether or not this CustomClass is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -4323,35 +3832,29 @@ public boolean getReconciling() { return reconciling_; } /** - * - * *
      * Output only. Whether or not this CustomClass is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** - * - * *
      * Output only. Whether or not this CustomClass is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -4363,8 +3866,6 @@ public Builder clearReconciling() { private java.lang.Object kmsKeyName_ = ""; /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4372,16 +3873,14 @@ public Builder clearReconciling() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; 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(); kmsKeyName_ = s; return s; @@ -4390,8 +3889,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4399,17 +3896,16 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -4417,8 +3913,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4426,25 +3920,19 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyName_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4452,10 +3940,7 @@ public Builder setKmsKeyName(java.lang.String value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -4465,8 +3950,6 @@ public Builder clearKmsKeyName() { return this; } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4474,17 +3957,13 @@ public Builder clearKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00001000; @@ -4494,8 +3973,6 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyVersionName_ = ""; /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4503,16 +3980,14 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyVersionName. */ public java.lang.String getKmsKeyVersionName() { java.lang.Object ref = kmsKeyVersionName_; 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(); kmsKeyVersionName_ = s; return s; @@ -4521,8 +3996,6 @@ public java.lang.String getKmsKeyVersionName() { } } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4530,17 +4003,16 @@ public java.lang.String getKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyVersionName. */ - public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -4548,8 +4020,6 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { } } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4557,25 +4027,19 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyVersionName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyVersionName_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4583,10 +4047,7 @@ public Builder setKmsKeyVersionName(java.lang.String value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { @@ -4596,8 +4057,6 @@ public Builder clearKmsKeyVersionName() { return this; } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4605,26 +4064,22 @@ public Builder clearKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyVersionNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyVersionName_ = value; bitField0_ |= 0x00002000; 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); } @@ -4634,12 +4089,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.CustomClass) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.CustomClass) private static final com.google.cloud.speech.v2.CustomClass DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.CustomClass(); } @@ -4648,27 +4103,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4683,4 +4138,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java similarity index 75% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java index b30eb892dc41..1104804e72bf 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface CustomClassOrBuilder - extends +public interface CustomClassOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.CustomClass) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the CustomClass.
    * Format:
@@ -33,13 +15,10 @@ public interface CustomClassOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the CustomClass.
    * Format:
@@ -47,76 +26,63 @@ public interface CustomClassOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. System-assigned unique identifier for the CustomClass.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. System-assigned unique identifier for the CustomClass.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * User-settable, human-readable name for the CustomClass. Must be 63
    * characters or less.
    * 
* * string display_name = 4; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * User-settable, human-readable name for the CustomClass. Must be 63
    * characters or less.
    * 
* * string display_name = 4; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - java.util.List getItemsList(); + java.util.List + getItemsList(); /** - * - * *
    * A collection of class items.
    * 
@@ -125,8 +91,6 @@ public interface CustomClassOrBuilder */ com.google.cloud.speech.v2.CustomClass.ClassItem getItems(int index); /** - * - * *
    * A collection of class items.
    * 
@@ -135,211 +99,152 @@ public interface CustomClassOrBuilder */ int getItemsCount(); /** - * - * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - java.util.List + java.util.List getItemsOrBuilderList(); /** - * - * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index); + com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder( + int index); /** - * - * *
    * Output only. The CustomClass lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The CustomClass lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.speech.v2.CustomClass.State getState(); /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * *
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -350,8 +255,6 @@ public interface CustomClassOrBuilder
    */
   int getAnnotationsCount();
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -360,13 +263,15 @@ public interface CustomClassOrBuilder
    *
    * map<string, string> annotations = 10;
    */
-  boolean containsAnnotations(java.lang.String key);
-  /** Use {@link #getAnnotationsMap()} instead. */
+  boolean containsAnnotations(
+      java.lang.String key);
+  /**
+   * Use {@link #getAnnotationsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getAnnotations();
+  java.util.Map
+  getAnnotations();
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -375,10 +280,9 @@ public interface CustomClassOrBuilder
    *
    * map<string, string> annotations = 10;
    */
-  java.util.Map getAnnotationsMap();
+  java.util.Map
+  getAnnotationsMap();
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -388,13 +292,11 @@ public interface CustomClassOrBuilder
    * map<string, string> annotations = 10;
    */
   /* nullable */
-  java.lang.String getAnnotationsOrDefault(
+java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -403,11 +305,10 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> annotations = 10;
    */
-  java.lang.String getAnnotationsOrThrow(java.lang.String key);
+  java.lang.String getAnnotationsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -415,13 +316,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -429,28 +327,23 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Output only. Whether or not this CustomClass is in the process of being
    * updated.
    * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ boolean getReconciling(); /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -458,16 +351,11 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -475,17 +363,13 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -493,16 +377,11 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyVersionName. */ java.lang.String getKmsKeyVersionName(); /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -510,11 +389,9 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyVersionName. */ - com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); + com.google.protobuf.ByteString + getKmsKeyVersionNameBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java similarity index 68% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java index f524a67060a1..5763f51d0eba 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [DeleteCustomClass][google.cloud.speech.v2.Speech.DeleteCustomClass] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
     etag_ = "";
@@ -45,47 +27,40 @@ private DeleteCustomClassRequest() {
 
   @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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.DeleteCustomClassRequest.class,
-            com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder.class);
+            com.google.cloud.speech.v2.DeleteCustomClassRequest.class, com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the CustomClass to delete.
    * 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 @@ -94,33 +69,31 @@ 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 CustomClass to delete.
    * 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 { @@ -131,15 +104,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the deleted CustomClass, but do
    * not actually delete it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -150,15 +120,12 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** - * - * *
    * If set to true, and the CustomClass is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -167,12 +134,9 @@ public boolean getAllowMissing() { } public static final int ETAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -180,7 +144,6 @@ public boolean getAllowMissing() {
    * 
* * string etag = 3; - * * @return The etag. */ @java.lang.Override @@ -189,15 +152,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -205,15 +167,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 3; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -222,7 +185,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,7 +196,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_); } @@ -260,13 +223,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -276,18 +241,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.v2.DeleteCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.DeleteCustomClassRequest other = - (com.google.cloud.speech.v2.DeleteCustomClassRequest) obj; + com.google.cloud.speech.v2.DeleteCustomClassRequest other = (com.google.cloud.speech.v2.DeleteCustomClassRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (getAllowMissing() != other.getAllowMissing()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -302,9 +270,11 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -313,103 +283,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.DeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.DeleteCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.DeleteCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.DeleteCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.DeleteCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.DeleteCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [DeleteCustomClass][google.cloud.speech.v2.Speech.DeleteCustomClass] method.
@@ -417,32 +380,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.DeleteCustomClassRequest)
       com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.DeleteCustomClassRequest.class,
-              com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder.class);
+              com.google.cloud.speech.v2.DeleteCustomClassRequest.class, com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.DeleteCustomClassRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -455,9 +419,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
@@ -476,11 +440,8 @@ public com.google.cloud.speech.v2.DeleteCustomClassRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.DeleteCustomClassRequest buildPartial() {
-      com.google.cloud.speech.v2.DeleteCustomClassRequest result =
-          new com.google.cloud.speech.v2.DeleteCustomClassRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.DeleteCustomClassRequest result = new com.google.cloud.speech.v2.DeleteCustomClassRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -505,39 +466,38 @@ private void buildPartial0(com.google.cloud.speech.v2.DeleteCustomClassRequest r
     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.v2.DeleteCustomClassRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.DeleteCustomClassRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.DeleteCustomClassRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -545,8 +505,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.DeleteCustomClassRequest other) {
-      if (other == com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -589,37 +548,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 26
-            case 32:
-              {
-                allowMissing_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 26
+            case 32: {
+              allowMissing_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -629,29 +583,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the CustomClass to delete.
      * 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; @@ -660,25 +609,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the CustomClass to delete.
      * 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 { @@ -686,43 +632,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the CustomClass to delete.
      * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the CustomClass to delete.
      * 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() { @@ -732,25 +667,19 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the CustomClass to delete.
      * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -758,17 +687,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the deleted CustomClass, but do
      * not actually delete it.
      * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -776,35 +702,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the deleted CustomClass, but do
      * not actually delete it.
      * 
* * bool validate_only = 2; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the deleted CustomClass, but do
      * not actually delete it.
      * 
* * bool validate_only = 2; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -814,17 +734,14 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_; + private boolean allowMissing_ ; /** - * - * *
      * If set to true, and the CustomClass is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -832,35 +749,29 @@ public boolean getAllowMissing() { return allowMissing_; } /** - * - * *
      * If set to true, and the CustomClass is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; - * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If set to true, and the CustomClass is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; - * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -872,8 +783,6 @@ public Builder clearAllowMissing() { private java.lang.Object etag_ = ""; /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -881,13 +790,13 @@ public Builder clearAllowMissing() {
      * 
* * string etag = 3; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -896,8 +805,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -905,14 +812,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 3; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -920,8 +828,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -929,22 +835,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 3; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -952,7 +854,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 3; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -962,8 +863,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -971,23 +870,21 @@ public Builder clearEtag() {
      * 
* * string etag = 3; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000008; 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,12 +894,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.DeleteCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.DeleteCustomClassRequest) private static final com.google.cloud.speech.v2.DeleteCustomClassRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.DeleteCustomClassRequest(); } @@ -1011,27 +908,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1046,4 +943,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.DeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java similarity index 63% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java index 5654d75a604d..8564ba1c46af 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java @@ -1,92 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface DeleteCustomClassRequestOrBuilder - extends +public interface DeleteCustomClassRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.DeleteCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the CustomClass to delete.
    * 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.String getName(); /** - * - * *
    * Required. The name of the CustomClass to delete.
    * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If set, validate the request and preview the deleted CustomClass, but do
    * not actually delete it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * If set to true, and the CustomClass is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ boolean getAllowMissing(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -94,13 +61,10 @@ public interface DeleteCustomClassRequestOrBuilder
    * 
* * string etag = 3; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -108,8 +72,8 @@ public interface DeleteCustomClassRequestOrBuilder
    * 
* * string etag = 3; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java similarity index 68% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java index 76fbfb88e5f5..af0e0d86ccd5 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [DeletePhraseSet][google.cloud.speech.v2.Speech.DeletePhraseSet] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
     etag_ = "";
@@ -45,46 +27,39 @@ private DeletePhraseSetRequest() {
 
   @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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.DeletePhraseSetRequest.class,
-            com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder.class);
+            com.google.cloud.speech.v2.DeletePhraseSetRequest.class, com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the PhraseSet 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 @@ -93,32 +68,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 PhraseSet 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 { @@ -129,15 +102,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the deleted PhraseSet, but do not
    * actually delete it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -148,15 +118,12 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** - * - * *
    * If set to true, and the PhraseSet is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -165,12 +132,9 @@ public boolean getAllowMissing() { } public static final int ETAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -178,7 +142,6 @@ public boolean getAllowMissing() {
    * 
* * string etag = 3; - * * @return The etag. */ @java.lang.Override @@ -187,15 +150,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -203,15 +165,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 3; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -220,7 +183,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,7 +194,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_); } @@ -258,13 +221,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -274,18 +239,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.v2.DeletePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.DeletePhraseSetRequest other = - (com.google.cloud.speech.v2.DeletePhraseSetRequest) obj; + com.google.cloud.speech.v2.DeletePhraseSetRequest other = (com.google.cloud.speech.v2.DeletePhraseSetRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (getAllowMissing() != other.getAllowMissing()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,9 +268,11 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -311,103 +281,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.DeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.DeletePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.DeletePhraseSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.DeletePhraseSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.DeletePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.DeletePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [DeletePhraseSet][google.cloud.speech.v2.Speech.DeletePhraseSet] method.
@@ -415,32 +378,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.DeletePhraseSetRequest)
       com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.DeletePhraseSetRequest.class,
-              com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder.class);
+              com.google.cloud.speech.v2.DeletePhraseSetRequest.class, com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.DeletePhraseSetRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -453,9 +417,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -474,11 +438,8 @@ public com.google.cloud.speech.v2.DeletePhraseSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.DeletePhraseSetRequest buildPartial() {
-      com.google.cloud.speech.v2.DeletePhraseSetRequest result =
-          new com.google.cloud.speech.v2.DeletePhraseSetRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.DeletePhraseSetRequest result = new com.google.cloud.speech.v2.DeletePhraseSetRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -503,39 +464,38 @@ private void buildPartial0(com.google.cloud.speech.v2.DeletePhraseSetRequest res
     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.v2.DeletePhraseSetRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.DeletePhraseSetRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.DeletePhraseSetRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -543,8 +503,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.DeletePhraseSetRequest other) {
-      if (other == com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -587,37 +546,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 26
-            case 32:
-              {
-                allowMissing_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 26
+            case 32: {
+              allowMissing_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -627,28 +581,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the PhraseSet 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; @@ -657,24 +606,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the PhraseSet 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 { @@ -682,41 +628,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the PhraseSet 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the PhraseSet 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() { @@ -726,24 +661,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the PhraseSet 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -751,17 +680,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the deleted PhraseSet, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -769,35 +695,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the deleted PhraseSet, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the deleted PhraseSet, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -807,17 +727,14 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_; + private boolean allowMissing_ ; /** - * - * *
      * If set to true, and the PhraseSet is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -825,35 +742,29 @@ public boolean getAllowMissing() { return allowMissing_; } /** - * - * *
      * If set to true, and the PhraseSet is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; - * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If set to true, and the PhraseSet is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; - * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -865,8 +776,6 @@ public Builder clearAllowMissing() { private java.lang.Object etag_ = ""; /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -874,13 +783,13 @@ public Builder clearAllowMissing() {
      * 
* * string etag = 3; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -889,8 +798,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -898,14 +805,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 3; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -913,8 +821,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -922,22 +828,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 3; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -945,7 +847,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 3; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -955,8 +856,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -964,23 +863,21 @@ public Builder clearEtag() {
      * 
* * string etag = 3; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000008; 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); } @@ -990,12 +887,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.DeletePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.DeletePhraseSetRequest) private static final com.google.cloud.speech.v2.DeletePhraseSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.DeletePhraseSetRequest(); } @@ -1004,27 +901,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1039,4 +936,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.DeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java similarity index 63% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java index 090a269f9461..dc82d1b9ad7f 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java @@ -1,90 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface DeletePhraseSetRequestOrBuilder - extends +public interface DeletePhraseSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.DeletePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the PhraseSet 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.String getName(); /** - * - * *
    * Required. The name of the PhraseSet 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If set, validate the request and preview the deleted PhraseSet, but do not
    * actually delete it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * If set to true, and the PhraseSet is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ boolean getAllowMissing(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -92,13 +59,10 @@ public interface DeletePhraseSetRequestOrBuilder
    * 
* * string etag = 3; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -106,8 +70,8 @@ public interface DeletePhraseSetRequestOrBuilder
    * 
* * string etag = 3; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java similarity index 68% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java index 13142e61a2cf..d089dc1ff61e 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [DeleteRecognizer][google.cloud.speech.v2.Speech.DeleteRecognizer] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.DeleteRecognizerRequest}
  */
-public final class DeleteRecognizerRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteRecognizerRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.DeleteRecognizerRequest)
     DeleteRecognizerRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteRecognizerRequest.newBuilder() to construct.
   private DeleteRecognizerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteRecognizerRequest() {
     name_ = "";
     etag_ = "";
@@ -45,46 +27,39 @@ private DeleteRecognizerRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteRecognizerRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.DeleteRecognizerRequest.class,
-            com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder.class);
+            com.google.cloud.speech.v2.DeleteRecognizerRequest.class, com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the Recognizer to delete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * - * 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 @@ -93,32 +68,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 Recognizer to delete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * - * 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 { @@ -129,15 +102,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the deleted Recognizer, but do not
    * actually delete it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -148,15 +118,12 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** - * - * *
    * If set to true, and the Recognizer is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -165,12 +132,9 @@ public boolean getAllowMissing() { } public static final int ETAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -178,7 +142,6 @@ public boolean getAllowMissing() {
    * 
* * string etag = 3; - * * @return The etag. */ @java.lang.Override @@ -187,15 +150,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -203,15 +165,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 3; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -220,7 +183,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,7 +194,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_); } @@ -258,13 +221,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -274,18 +239,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.v2.DeleteRecognizerRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.DeleteRecognizerRequest other = - (com.google.cloud.speech.v2.DeleteRecognizerRequest) obj; + com.google.cloud.speech.v2.DeleteRecognizerRequest other = (com.google.cloud.speech.v2.DeleteRecognizerRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (getAllowMissing() != other.getAllowMissing()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,9 +268,11 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -311,103 +281,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.DeleteRecognizerRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.DeleteRecognizerRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest 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; } /** - * - * *
    * Request message for the
    * [DeleteRecognizer][google.cloud.speech.v2.Speech.DeleteRecognizer] method.
@@ -415,32 +378,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.DeleteRecognizerRequest}
    */
-  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.v2.DeleteRecognizerRequest)
       com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.DeleteRecognizerRequest.class,
-              com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder.class);
+              com.google.cloud.speech.v2.DeleteRecognizerRequest.class, com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.DeleteRecognizerRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -453,9 +417,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
@@ -474,11 +438,8 @@ public com.google.cloud.speech.v2.DeleteRecognizerRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.DeleteRecognizerRequest buildPartial() {
-      com.google.cloud.speech.v2.DeleteRecognizerRequest result =
-          new com.google.cloud.speech.v2.DeleteRecognizerRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.DeleteRecognizerRequest result = new com.google.cloud.speech.v2.DeleteRecognizerRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -503,39 +464,38 @@ private void buildPartial0(com.google.cloud.speech.v2.DeleteRecognizerRequest re
     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.v2.DeleteRecognizerRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.DeleteRecognizerRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.DeleteRecognizerRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -543,8 +503,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.DeleteRecognizerRequest other) {
-      if (other == com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -587,37 +546,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 26
-            case 32:
-              {
-                allowMissing_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 26
+            case 32: {
+              allowMissing_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -627,28 +581,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the Recognizer to delete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * - * 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; @@ -657,24 +606,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the Recognizer to delete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * - * 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 { @@ -682,41 +628,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the Recognizer to delete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the Recognizer to delete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * - * 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() { @@ -726,24 +661,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the Recognizer to delete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -751,17 +680,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the deleted Recognizer, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; - * * @return The validateOnly. */ @java.lang.Override @@ -769,35 +695,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the deleted Recognizer, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the deleted Recognizer, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -807,17 +727,14 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_; + private boolean allowMissing_ ; /** - * - * *
      * If set to true, and the Recognizer is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ @java.lang.Override @@ -825,35 +742,29 @@ public boolean getAllowMissing() { return allowMissing_; } /** - * - * *
      * If set to true, and the Recognizer is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; - * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If set to true, and the Recognizer is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; - * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -865,8 +776,6 @@ public Builder clearAllowMissing() { private java.lang.Object etag_ = ""; /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -874,13 +783,13 @@ public Builder clearAllowMissing() {
      * 
* * string etag = 3; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -889,8 +798,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -898,14 +805,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 3; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -913,8 +821,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -922,22 +828,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 3; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -945,7 +847,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 3; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -955,8 +856,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -964,23 +863,21 @@ public Builder clearEtag() {
      * 
* * string etag = 3; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000008; 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); } @@ -990,12 +887,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.DeleteRecognizerRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.DeleteRecognizerRequest) private static final com.google.cloud.speech.v2.DeleteRecognizerRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.DeleteRecognizerRequest(); } @@ -1004,27 +901,27 @@ public static com.google.cloud.speech.v2.DeleteRecognizerRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRecognizerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRecognizerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1039,4 +936,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.DeleteRecognizerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java similarity index 63% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java index 929c1f8a9d5d..7c5e32245a21 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java @@ -1,90 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface DeleteRecognizerRequestOrBuilder - extends +public interface DeleteRecognizerRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.DeleteRecognizerRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the Recognizer to delete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * - * 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 Recognizer to delete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * - * 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(); /** - * - * *
    * If set, validate the request and preview the deleted Recognizer, but do not
    * actually delete it.
    * 
* * bool validate_only = 2; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * If set to true, and the Recognizer is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; - * * @return The allowMissing. */ boolean getAllowMissing(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -92,13 +59,10 @@ public interface DeleteRecognizerRequestOrBuilder
    * 
* * string etag = 3; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -106,8 +70,8 @@ public interface DeleteRecognizerRequestOrBuilder
    * 
* * string etag = 3; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java similarity index 68% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java index c72aaef3f952..b154198f542b 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java @@ -1,85 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Explicitly specified decoding parameters.
  * 
* * Protobuf type {@code google.cloud.speech.v2.ExplicitDecodingConfig} */ -public final class ExplicitDecodingConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExplicitDecodingConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ExplicitDecodingConfig) ExplicitDecodingConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExplicitDecodingConfig.newBuilder() to construct. private ExplicitDecodingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExplicitDecodingConfig() { encoding_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExplicitDecodingConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.ExplicitDecodingConfig.class, - com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder.class); + com.google.cloud.speech.v2.ExplicitDecodingConfig.class, com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder.class); } /** - * - * *
    * Supported audio data encodings.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding} */ - public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { + public enum AudioEncoding + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value. This value is unused.
      * 
@@ -88,8 +66,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ AUDIO_ENCODING_UNSPECIFIED(0), /** - * - * *
      * Headerless 16-bit signed little-endian PCM samples.
      * 
@@ -98,8 +74,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ LINEAR16(1), /** - * - * *
      * Headerless 8-bit companded mulaw samples.
      * 
@@ -108,8 +82,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ MULAW(2), /** - * - * *
      * Headerless 8-bit companded alaw samples.
      * 
@@ -121,8 +93,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value. This value is unused.
      * 
@@ -131,8 +101,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AUDIO_ENCODING_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Headerless 16-bit signed little-endian PCM samples.
      * 
@@ -141,8 +109,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LINEAR16_VALUE = 1; /** - * - * *
      * Headerless 8-bit companded mulaw samples.
      * 
@@ -151,8 +117,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MULAW_VALUE = 2; /** - * - * *
      * Headerless 8-bit companded alaw samples.
      * 
@@ -161,6 +125,7 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ALAW_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -185,53 +150,50 @@ public static AudioEncoding valueOf(int value) { */ public static AudioEncoding forNumber(int value) { switch (value) { - case 0: - return AUDIO_ENCODING_UNSPECIFIED; - case 1: - return LINEAR16; - case 2: - return MULAW; - case 3: - return ALAW; - default: - return null; + case 0: return AUDIO_ENCODING_UNSPECIFIED; + case 1: return LINEAR16; + case 2: return MULAW; + case 3: return ALAW; + 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.v2.ExplicitDecodingConfig.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.speech.v2.ExplicitDecodingConfig.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; @@ -251,49 +213,32 @@ private AudioEncoding(int value) { public static final int ENCODING_FIELD_NUMBER = 1; private int encoding_ = 0; /** - * - * *
    * Required. Encoding of the audio data sent for recognition.
    * 
* - * - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override - public int getEncodingValue() { + @java.lang.Override public int getEncodingValue() { return encoding_; } /** - * - * *
    * Required. Encoding of the audio data sent for recognition.
    * 
* - * - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The encoding. */ - @java.lang.Override - public com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncoding() { - com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding result = - com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.forNumber(encoding_); - return result == null - ? com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncoding() { + com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding result = com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.forNumber(encoding_); + return result == null ? com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.UNRECOGNIZED : result; } public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; private int sampleRateHertz_ = 0; /** - * - * *
    * Sample rate in Hertz of the audio data sent for recognition. Valid
    * values are: 8000-48000. 16000 is optimal. For best results, set the
@@ -306,7 +251,6 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncodi
    * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -317,8 +261,6 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 3; private int audioChannelCount_ = 0; /** - * - * *
    * Number of channels present in the audio data sent for recognition.
    * Supported for the following encodings:
@@ -328,7 +270,6 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 3; - * * @return The audioChannelCount. */ @java.lang.Override @@ -337,7 +278,6 @@ public int getAudioChannelCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -349,11 +289,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.v2.ExplicitDecodingConfig.AudioEncoding - .AUDIO_ENCODING_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (encoding_ != com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { output.writeEnum(1, encoding_); } if (sampleRateHertz_ != 0) { @@ -371,17 +309,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (encoding_ - != com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding - .AUDIO_ENCODING_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, encoding_); + if (encoding_ != com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.AUDIO_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 (audioChannelCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, audioChannelCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, audioChannelCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -391,17 +329,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.v2.ExplicitDecodingConfig)) { return super.equals(obj); } - com.google.cloud.speech.v2.ExplicitDecodingConfig other = - (com.google.cloud.speech.v2.ExplicitDecodingConfig) obj; + com.google.cloud.speech.v2.ExplicitDecodingConfig other = (com.google.cloud.speech.v2.ExplicitDecodingConfig) obj; if (encoding_ != other.encoding_) return false; - if (getSampleRateHertz() != other.getSampleRateHertz()) return false; - if (getAudioChannelCount() != other.getAudioChannelCount()) return false; + if (getSampleRateHertz() + != other.getSampleRateHertz()) return false; + if (getAudioChannelCount() + != other.getAudioChannelCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -425,135 +364,129 @@ public int hashCode() { } public static com.google.cloud.speech.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ExplicitDecodingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ExplicitDecodingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig 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; } /** - * - * *
    * Explicitly specified decoding parameters.
    * 
* * Protobuf type {@code google.cloud.speech.v2.ExplicitDecodingConfig} */ - 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.v2.ExplicitDecodingConfig) com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.ExplicitDecodingConfig.class, - com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder.class); + com.google.cloud.speech.v2.ExplicitDecodingConfig.class, com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder.class); } // Construct using com.google.cloud.speech.v2.ExplicitDecodingConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -565,9 +498,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; } @java.lang.Override @@ -586,11 +519,8 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig build() { @java.lang.Override public com.google.cloud.speech.v2.ExplicitDecodingConfig buildPartial() { - com.google.cloud.speech.v2.ExplicitDecodingConfig result = - new com.google.cloud.speech.v2.ExplicitDecodingConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v2.ExplicitDecodingConfig result = new com.google.cloud.speech.v2.ExplicitDecodingConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -612,39 +542,38 @@ private void buildPartial0(com.google.cloud.speech.v2.ExplicitDecodingConfig res 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.v2.ExplicitDecodingConfig) { - return mergeFrom((com.google.cloud.speech.v2.ExplicitDecodingConfig) other); + return mergeFrom((com.google.cloud.speech.v2.ExplicitDecodingConfig)other); } else { super.mergeFrom(other); return this; @@ -652,8 +581,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.ExplicitDecodingConfig other) { - if (other == com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance()) return this; if (other.encoding_ != 0) { setEncodingValue(other.getEncodingValue()); } @@ -689,31 +617,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - encoding_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - sampleRateHertz_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - audioChannelCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + encoding_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + sampleRateHertz_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + audioChannelCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -723,38 +647,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int encoding_ = 0; /** - * - * *
      * Required. Encoding of the audio data sent for recognition.
      * 
* - * - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override - public int getEncodingValue() { + @java.lang.Override public int getEncodingValue() { return encoding_; } /** - * - * *
      * Required. Encoding of the audio data sent for recognition.
      * 
* - * - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. */ @@ -765,42 +677,28 @@ public Builder setEncodingValue(int value) { return this; } /** - * - * *
      * Required. Encoding of the audio data sent for recognition.
      * 
* - * - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The encoding. */ @java.lang.Override public com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncoding() { - com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding result = - com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.forNumber(encoding_); - return result == null - ? com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.UNRECOGNIZED - : result; + com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding result = com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.forNumber(encoding_); + return result == null ? com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.UNRECOGNIZED : result; } /** - * - * *
      * Required. Encoding of the audio data sent for recognition.
      * 
* - * - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The encoding to set. * @return This builder for chaining. */ - public Builder setEncoding( - com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding value) { + public Builder setEncoding(com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding value) { if (value == null) { throw new NullPointerException(); } @@ -810,16 +708,11 @@ public Builder setEncoding( return this; } /** - * - * *
      * Required. Encoding of the audio data sent for recognition.
      * 
* - * - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearEncoding() { @@ -829,10 +722,8 @@ public Builder clearEncoding() { return this; } - private int sampleRateHertz_; + private int sampleRateHertz_ ; /** - * - * *
      * Sample rate in Hertz of the audio data sent for recognition. Valid
      * values are: 8000-48000. 16000 is optimal. For best results, set the
@@ -845,7 +736,6 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -853,8 +743,6 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** - * - * *
      * Sample rate in Hertz of the audio data sent for recognition. Valid
      * values are: 8000-48000. 16000 is optimal. For best results, set the
@@ -867,20 +755,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Sample rate in Hertz of the audio data sent for recognition. Valid
      * values are: 8000-48000. 16000 is optimal. For best results, set the
@@ -893,7 +778,6 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; - * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { @@ -903,10 +787,8 @@ public Builder clearSampleRateHertz() { return this; } - private int audioChannelCount_; + private int audioChannelCount_ ; /** - * - * *
      * Number of channels present in the audio data sent for recognition.
      * Supported for the following encodings:
@@ -916,7 +798,6 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 3; - * * @return The audioChannelCount. */ @java.lang.Override @@ -924,8 +805,6 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** - * - * *
      * Number of channels present in the audio data sent for recognition.
      * Supported for the following encodings:
@@ -935,20 +814,17 @@ public int getAudioChannelCount() {
      * 
* * int32 audio_channel_count = 3; - * * @param value The audioChannelCount to set. * @return This builder for chaining. */ public Builder setAudioChannelCount(int value) { - + audioChannelCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Number of channels present in the audio data sent for recognition.
      * Supported for the following encodings:
@@ -958,7 +834,6 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 3; - * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { @@ -967,9 +842,9 @@ public Builder clearAudioChannelCount() { 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); } @@ -979,12 +854,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ExplicitDecodingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ExplicitDecodingConfig) private static final com.google.cloud.speech.v2.ExplicitDecodingConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ExplicitDecodingConfig(); } @@ -993,27 +868,27 @@ public static com.google.cloud.speech.v2.ExplicitDecodingConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExplicitDecodingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExplicitDecodingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1028,4 +903,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ExplicitDecodingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java similarity index 64% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java index 6ccfdbb1b03f..153b9dad6346 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java @@ -1,60 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ExplicitDecodingConfigOrBuilder - extends +public interface ExplicitDecodingConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ExplicitDecodingConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Encoding of the audio data sent for recognition.
    * 
* - * - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); /** - * - * *
    * Required. Encoding of the audio data sent for recognition.
    * 
* - * - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The encoding. */ com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncoding(); /** - * - * *
    * Sample rate in Hertz of the audio data sent for recognition. Valid
    * values are: 8000-48000. 16000 is optimal. For best results, set the
@@ -67,14 +39,11 @@ public interface ExplicitDecodingConfigOrBuilder
    * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ int getSampleRateHertz(); /** - * - * *
    * Number of channels present in the audio data sent for recognition.
    * Supported for the following encodings:
@@ -84,7 +53,6 @@ public interface ExplicitDecodingConfigOrBuilder
    * 
* * int32 audio_channel_count = 3; - * * @return The audioChannelCount. */ int getAudioChannelCount(); diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java similarity index 63% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java index 96ab9a86fc23..ed962b92dac6 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [GetConfig][google.cloud.speech.v2.Speech.GetConfig] method.
@@ -28,63 +11,55 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.GetConfigRequest}
  */
-public final class GetConfigRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetConfigRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.GetConfigRequest)
     GetConfigRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetConfigRequest.newBuilder() to construct.
   private GetConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetConfigRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetConfigRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.GetConfigRequest.class,
-            com.google.cloud.speech.v2.GetConfigRequest.Builder.class);
+            com.google.cloud.speech.v2.GetConfigRequest.class, com.google.cloud.speech.v2.GetConfigRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the config to retrieve. There is exactly one config
    * resource per project per location. The expected format is
    * `projects/{project}/locations/{location}/config`.
    * 
* - * - * 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 @@ -93,33 +68,31 @@ 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 config to retrieve. There is exactly one config
    * resource per project per location. The expected format is
    * `projects/{project}/locations/{location}/config`.
    * 
* - * - * 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 { @@ -128,7 +101,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,7 +112,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_); } @@ -164,15 +137,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.v2.GetConfigRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.GetConfigRequest other = - (com.google.cloud.speech.v2.GetConfigRequest) obj; + com.google.cloud.speech.v2.GetConfigRequest other = (com.google.cloud.speech.v2.GetConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -191,104 +164,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.GetConfigRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.GetConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.GetConfigRequest 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.v2.GetConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.GetConfigRequest 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.v2.GetConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.GetConfigRequest 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.v2.GetConfigRequest 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.v2.GetConfigRequest 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.v2.GetConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.GetConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.GetConfigRequest 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.v2.GetConfigRequest 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.v2.GetConfigRequest 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.v2.GetConfigRequest 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; } /** - * - * *
    * Request message for the
    * [GetConfig][google.cloud.speech.v2.Speech.GetConfig] method.
@@ -296,32 +262,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.GetConfigRequest}
    */
-  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.v2.GetConfigRequest)
       com.google.cloud.speech.v2.GetConfigRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.GetConfigRequest.class,
-              com.google.cloud.speech.v2.GetConfigRequest.Builder.class);
+              com.google.cloud.speech.v2.GetConfigRequest.class, com.google.cloud.speech.v2.GetConfigRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.GetConfigRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -331,9 +298,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
     }
 
     @java.lang.Override
@@ -352,11 +319,8 @@ public com.google.cloud.speech.v2.GetConfigRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.GetConfigRequest buildPartial() {
-      com.google.cloud.speech.v2.GetConfigRequest result =
-          new com.google.cloud.speech.v2.GetConfigRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.GetConfigRequest result = new com.google.cloud.speech.v2.GetConfigRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -372,39 +336,38 @@ private void buildPartial0(com.google.cloud.speech.v2.GetConfigRequest result) {
     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.v2.GetConfigRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.GetConfigRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.GetConfigRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -444,19 +407,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -466,29 +427,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the config to retrieve. There is exactly one config
      * resource per project per location. The expected format is
      * `projects/{project}/locations/{location}/config`.
      * 
* - * - * 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; @@ -497,25 +453,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the config to retrieve. There is exactly one config
      * resource per project per location. The expected format is
      * `projects/{project}/locations/{location}/config`.
      * 
* - * - * 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 { @@ -523,43 +476,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the config to retrieve. There is exactly one config
      * resource per project per location. The expected format is
      * `projects/{project}/locations/{location}/config`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the config to retrieve. There is exactly one config
      * resource per project per location. The expected format is
      * `projects/{project}/locations/{location}/config`.
      * 
* - * - * 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() { @@ -569,34 +511,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the config to retrieve. There is exactly one config
      * resource per project per location. The expected format is
      * `projects/{project}/locations/{location}/config`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -606,12 +542,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.GetConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.GetConfigRequest) private static final com.google.cloud.speech.v2.GetConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.GetConfigRequest(); } @@ -620,27 +556,27 @@ public static com.google.cloud.speech.v2.GetConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -655,4 +591,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.GetConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequestOrBuilder.java new file mode 100644 index 000000000000..2d89fa988a4a --- /dev/null +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public interface GetConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the config to retrieve. There is exactly one config
+   * resource per project per location. The expected format is
+   * `projects/{project}/locations/{location}/config`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the config to retrieve. There is exactly one config
+   * resource per project per location. The expected format is
+   * `projects/{project}/locations/{location}/config`.
+   * 
+ * + * 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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java similarity index 63% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java index caea196f7c23..dff71e658be2 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [GetCustomClass][google.cloud.speech.v2.Speech.GetCustomClass] method.
@@ -28,62 +11,54 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.GetCustomClassRequest.class,
-            com.google.cloud.speech.v2.GetCustomClassRequest.Builder.class);
+            com.google.cloud.speech.v2.GetCustomClassRequest.class, com.google.cloud.speech.v2.GetCustomClassRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the CustomClass to retrieve. The expected format is
    * `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 @@ -92,32 +67,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 CustomClass to retrieve. The expected format is
    * `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 { @@ -126,7 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,7 +110,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_); } @@ -162,15 +135,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.v2.GetCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.GetCustomClassRequest other = - (com.google.cloud.speech.v2.GetCustomClassRequest) obj; + com.google.cloud.speech.v2.GetCustomClassRequest other = (com.google.cloud.speech.v2.GetCustomClassRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,104 +162,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.GetCustomClassRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.GetCustomClassRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.GetCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.GetCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.GetCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.GetCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.GetCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.GetCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [GetCustomClass][google.cloud.speech.v2.Speech.GetCustomClass] method.
@@ -294,32 +260,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.GetCustomClassRequest)
       com.google.cloud.speech.v2.GetCustomClassRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.GetCustomClassRequest.class,
-              com.google.cloud.speech.v2.GetCustomClassRequest.Builder.class);
+              com.google.cloud.speech.v2.GetCustomClassRequest.class, com.google.cloud.speech.v2.GetCustomClassRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.GetCustomClassRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -329,9 +296,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
@@ -350,11 +317,8 @@ public com.google.cloud.speech.v2.GetCustomClassRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.GetCustomClassRequest buildPartial() {
-      com.google.cloud.speech.v2.GetCustomClassRequest result =
-          new com.google.cloud.speech.v2.GetCustomClassRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.GetCustomClassRequest result = new com.google.cloud.speech.v2.GetCustomClassRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -370,39 +334,38 @@ private void buildPartial0(com.google.cloud.speech.v2.GetCustomClassRequest resu
     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.v2.GetCustomClassRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.GetCustomClassRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.GetCustomClassRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -410,8 +373,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.GetCustomClassRequest other) {
-      if (other == com.google.cloud.speech.v2.GetCustomClassRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.GetCustomClassRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -443,19 +405,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -465,28 +425,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the CustomClass to retrieve. The expected format is
      * `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; @@ -495,24 +450,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the CustomClass to retrieve. The expected format is
      * `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 { @@ -520,41 +472,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the CustomClass to retrieve. The expected format is
      * `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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the CustomClass to retrieve. The expected format is
      * `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() { @@ -564,33 +505,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the CustomClass to retrieve. The expected format is
      * `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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -600,12 +535,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.GetCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.GetCustomClassRequest) private static final com.google.cloud.speech.v2.GetCustomClassRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.GetCustomClassRequest(); } @@ -614,27 +549,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,4 +584,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.GetCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java new file mode 100644 index 000000000000..802b65dfe8d3 --- /dev/null +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public interface GetCustomClassRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetCustomClassRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the CustomClass to retrieve. The expected format is
+   * `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 CustomClass to retrieve. The expected format is
+   * `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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java similarity index 63% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java index dc32063d3bfc..08a136073ad8 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [GetPhraseSet][google.cloud.speech.v2.Speech.GetPhraseSet] method.
@@ -28,62 +11,54 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.GetPhraseSetRequest.class,
-            com.google.cloud.speech.v2.GetPhraseSetRequest.Builder.class);
+            com.google.cloud.speech.v2.GetPhraseSetRequest.class, com.google.cloud.speech.v2.GetPhraseSetRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the PhraseSet to retrieve. The expected format is
    * `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 @@ -92,32 +67,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 PhraseSet to retrieve. The expected format is
    * `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 { @@ -126,7 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,7 +110,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_); } @@ -162,15 +135,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.v2.GetPhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.GetPhraseSetRequest other = - (com.google.cloud.speech.v2.GetPhraseSetRequest) obj; + com.google.cloud.speech.v2.GetPhraseSetRequest other = (com.google.cloud.speech.v2.GetPhraseSetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,104 +162,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.GetPhraseSetRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.GetPhraseSetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.GetPhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.GetPhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.GetPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.GetPhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [GetPhraseSet][google.cloud.speech.v2.Speech.GetPhraseSet] method.
@@ -294,32 +260,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.GetPhraseSetRequest)
       com.google.cloud.speech.v2.GetPhraseSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.GetPhraseSetRequest.class,
-              com.google.cloud.speech.v2.GetPhraseSetRequest.Builder.class);
+              com.google.cloud.speech.v2.GetPhraseSetRequest.class, com.google.cloud.speech.v2.GetPhraseSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.GetPhraseSetRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -329,9 +296,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -350,11 +317,8 @@ public com.google.cloud.speech.v2.GetPhraseSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.GetPhraseSetRequest buildPartial() {
-      com.google.cloud.speech.v2.GetPhraseSetRequest result =
-          new com.google.cloud.speech.v2.GetPhraseSetRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.GetPhraseSetRequest result = new com.google.cloud.speech.v2.GetPhraseSetRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -370,39 +334,38 @@ private void buildPartial0(com.google.cloud.speech.v2.GetPhraseSetRequest result
     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.v2.GetPhraseSetRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.GetPhraseSetRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.GetPhraseSetRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -442,19 +405,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -464,28 +425,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the PhraseSet to retrieve. The expected format is
      * `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; @@ -494,24 +450,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the PhraseSet to retrieve. The expected format is
      * `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 { @@ -519,41 +472,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the PhraseSet to retrieve. The expected format is
      * `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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the PhraseSet to retrieve. The expected format is
      * `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() { @@ -563,33 +505,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the PhraseSet to retrieve. The expected format is
      * `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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -599,12 +535,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.GetPhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.GetPhraseSetRequest) private static final com.google.cloud.speech.v2.GetPhraseSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.GetPhraseSetRequest(); } @@ -613,27 +549,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,4 +584,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.GetPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java new file mode 100644 index 000000000000..1d4c50701f84 --- /dev/null +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public interface GetPhraseSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetPhraseSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the PhraseSet to retrieve. The expected format is
+   * `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 PhraseSet to retrieve. The expected format is
+   * `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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java similarity index 63% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java index 83b03053f25c..fe8ce0b495e5 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [GetRecognizer][google.cloud.speech.v2.Speech.GetRecognizer] method.
@@ -28,62 +11,54 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.GetRecognizerRequest}
  */
-public final class GetRecognizerRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetRecognizerRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.GetRecognizerRequest)
     GetRecognizerRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetRecognizerRequest.newBuilder() to construct.
   private GetRecognizerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetRecognizerRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetRecognizerRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.GetRecognizerRequest.class,
-            com.google.cloud.speech.v2.GetRecognizerRequest.Builder.class);
+            com.google.cloud.speech.v2.GetRecognizerRequest.class, com.google.cloud.speech.v2.GetRecognizerRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the Recognizer to retrieve. The expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * 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 @@ -92,32 +67,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 Recognizer to retrieve. The expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * 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 { @@ -126,7 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,7 +110,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_); } @@ -162,15 +135,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.v2.GetRecognizerRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.GetRecognizerRequest other = - (com.google.cloud.speech.v2.GetRecognizerRequest) obj; + com.google.cloud.speech.v2.GetRecognizerRequest other = (com.google.cloud.speech.v2.GetRecognizerRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,104 +162,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.GetRecognizerRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.GetRecognizerRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.GetRecognizerRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest 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; } /** - * - * *
    * Request message for the
    * [GetRecognizer][google.cloud.speech.v2.Speech.GetRecognizer] method.
@@ -294,32 +260,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.GetRecognizerRequest}
    */
-  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.v2.GetRecognizerRequest)
       com.google.cloud.speech.v2.GetRecognizerRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.GetRecognizerRequest.class,
-              com.google.cloud.speech.v2.GetRecognizerRequest.Builder.class);
+              com.google.cloud.speech.v2.GetRecognizerRequest.class, com.google.cloud.speech.v2.GetRecognizerRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.GetRecognizerRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -329,9 +296,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
@@ -350,11 +317,8 @@ public com.google.cloud.speech.v2.GetRecognizerRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.GetRecognizerRequest buildPartial() {
-      com.google.cloud.speech.v2.GetRecognizerRequest result =
-          new com.google.cloud.speech.v2.GetRecognizerRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.GetRecognizerRequest result = new com.google.cloud.speech.v2.GetRecognizerRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -370,39 +334,38 @@ private void buildPartial0(com.google.cloud.speech.v2.GetRecognizerRequest resul
     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.v2.GetRecognizerRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.GetRecognizerRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.GetRecognizerRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -410,8 +373,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.GetRecognizerRequest other) {
-      if (other == com.google.cloud.speech.v2.GetRecognizerRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.GetRecognizerRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -443,19 +405,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -465,28 +425,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the Recognizer to retrieve. The expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * 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; @@ -495,24 +450,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the Recognizer to retrieve. The expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * 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 { @@ -520,41 +472,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the Recognizer to retrieve. The expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the Recognizer to retrieve. The expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * 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() { @@ -564,33 +505,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the Recognizer to retrieve. The expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -600,12 +535,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.GetRecognizerRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.GetRecognizerRequest) private static final com.google.cloud.speech.v2.GetRecognizerRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.GetRecognizerRequest(); } @@ -614,27 +549,27 @@ public static com.google.cloud.speech.v2.GetRecognizerRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRecognizerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRecognizerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,4 +584,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.GetRecognizerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java new file mode 100644 index 000000000000..de49eac1d47b --- /dev/null +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public interface GetRecognizerRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetRecognizerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the Recognizer to retrieve. The expected format is
+   * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the Recognizer to retrieve. The expected format is
+   * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
+   * 
+ * + * 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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java index d0147c4fff10..3745f8a25c27 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
@@ -45,46 +27,39 @@ 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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListCustomClassesRequest.class,
-            com.google.cloud.speech.v2.ListCustomClassesRequest.Builder.class);
+            com.google.cloud.speech.v2.ListCustomClassesRequest.class, com.google.cloud.speech.v2.ListCustomClassesRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The project and location of CustomClass resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 @@ -93,32 +68,30 @@ 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 project and location of CustomClass resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 { @@ -129,8 +102,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Number of results per requests. A valid page_size ranges from 0 to 20
    * inclusive. If the page_size is zero or unspecified, a page size of 5 will
@@ -139,7 +110,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -148,12 +118,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -164,7 +131,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -173,15 +139,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
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -192,15 +157,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 { @@ -211,14 +177,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int SHOW_DELETED_FIELD_NUMBER = 4; private boolean showDeleted_ = false; /** - * - * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ @java.lang.Override @@ -227,7 +190,6 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -239,7 +201,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_); } @@ -265,13 +228,15 @@ 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_); } if (showDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, showDeleted_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, showDeleted_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -281,18 +246,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.v2.ListCustomClassesRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListCustomClassesRequest other = - (com.google.cloud.speech.v2.ListCustomClassesRequest) obj; + com.google.cloud.speech.v2.ListCustomClassesRequest other = (com.google.cloud.speech.v2.ListCustomClassesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getShowDeleted() != other.getShowDeleted()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getShowDeleted() + != other.getShowDeleted()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -311,110 +279,104 @@ public int hashCode() { hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShowDeleted()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v2.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.v2.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.v2.ListCustomClassesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.ListCustomClassesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.ListCustomClassesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListCustomClassesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.ListCustomClassesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListCustomClassesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.
@@ -422,32 +384,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.ListCustomClassesRequest)
       com.google.cloud.speech.v2.ListCustomClassesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListCustomClassesRequest.class,
-              com.google.cloud.speech.v2.ListCustomClassesRequest.Builder.class);
+              com.google.cloud.speech.v2.ListCustomClassesRequest.class, com.google.cloud.speech.v2.ListCustomClassesRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListCustomClassesRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -460,9 +423,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
     }
 
     @java.lang.Override
@@ -481,11 +444,8 @@ public com.google.cloud.speech.v2.ListCustomClassesRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListCustomClassesRequest buildPartial() {
-      com.google.cloud.speech.v2.ListCustomClassesRequest result =
-          new com.google.cloud.speech.v2.ListCustomClassesRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.ListCustomClassesRequest result = new com.google.cloud.speech.v2.ListCustomClassesRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -510,39 +470,38 @@ private void buildPartial0(com.google.cloud.speech.v2.ListCustomClassesRequest r
     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.v2.ListCustomClassesRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.ListCustomClassesRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.ListCustomClassesRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -550,8 +509,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListCustomClassesRequest other) {
-      if (other == com.google.cloud.speech.v2.ListCustomClassesRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.ListCustomClassesRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -594,37 +552,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                pageSize_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                showDeleted_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              pageSize_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              pageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              showDeleted_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -634,28 +587,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The project and location of CustomClass resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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; @@ -664,24 +612,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location of CustomClass resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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 { @@ -689,41 +634,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location of CustomClass resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The project and location of CustomClass resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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() { @@ -733,24 +667,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The project and location of CustomClass resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -758,10 +686,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Number of results per requests. A valid page_size ranges from 0 to 20
      * inclusive. If the page_size is zero or unspecified, a page size of 5 will
@@ -770,7 +696,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -778,8 +703,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Number of results per requests. A valid page_size ranges from 0 to 20
      * inclusive. If the page_size is zero or unspecified, a page size of 5 will
@@ -788,20 +711,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Number of results per requests. A valid page_size ranges from 0 to 20
      * inclusive. If the page_size is zero or unspecified, a page size of 5 will
@@ -810,7 +730,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -822,8 +741,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous
      * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -834,13 +751,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 +766,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous
      * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -861,14 +776,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 +792,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous
      * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -888,22 +802,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous
      * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -914,7 +824,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -924,8 +833,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous
      * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -936,14 +843,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -951,16 +856,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private boolean showDeleted_; + private boolean showDeleted_ ; /** - * - * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ @java.lang.Override @@ -968,33 +870,27 @@ public boolean getShowDeleted() { return showDeleted_; } /** - * - * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; - * * @param value The showDeleted to set. * @return This builder for chaining. */ public Builder setShowDeleted(boolean value) { - + showDeleted_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; - * * @return This builder for chaining. */ public Builder clearShowDeleted() { @@ -1003,9 +899,9 @@ public Builder clearShowDeleted() { 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); } @@ -1015,12 +911,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListCustomClassesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListCustomClassesRequest) private static final com.google.cloud.speech.v2.ListCustomClassesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListCustomClassesRequest(); } @@ -1029,27 +925,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1064,4 +960,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ListCustomClassesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java similarity index 68% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java index 86ead68f92f1..9a7d873f753a 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListCustomClassesRequestOrBuilder - extends +public interface ListCustomClassesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListCustomClassesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location of CustomClass resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 project and location of CustomClass resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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(); /** - * - * *
    * Number of results per requests. A valid page_size ranges from 0 to 20
    * inclusive. If the page_size is zero or unspecified, a page size of 5 will
@@ -65,14 +38,11 @@ public interface ListCustomClassesRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -83,13 +53,10 @@ public interface ListCustomClassesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -100,20 +67,17 @@ public interface ListCustomClassesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ boolean getShowDeleted(); diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java index fa3c1ad11026..e71e0ce98404 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Response message for the
  * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
@@ -45,37 +27,33 @@ 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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListCustomClassesResponse.class,
-            com.google.cloud.speech.v2.ListCustomClassesResponse.Builder.class);
+            com.google.cloud.speech.v2.ListCustomClassesResponse.class, com.google.cloud.speech.v2.ListCustomClassesResponse.Builder.class);
   }
 
   public static final int CUSTOM_CLASSES_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List customClasses_;
   /**
-   *
-   *
    * 
    * The list of requested CustomClasses.
    * 
@@ -87,8 +65,6 @@ public java.util.List getCustomClassesLi return customClasses_; } /** - * - * *
    * The list of requested CustomClasses.
    * 
@@ -96,13 +72,11 @@ public java.util.List getCustomClassesLi * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCustomClassesOrBuilderList() { return customClasses_; } /** - * - * *
    * The list of requested CustomClasses.
    * 
@@ -114,8 +88,6 @@ public int getCustomClassesCount() { return customClasses_.size(); } /** - * - * *
    * The list of requested CustomClasses.
    * 
@@ -127,8 +99,6 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) { return customClasses_.get(index); } /** - * - * *
    * The list of requested CustomClasses.
    * 
@@ -136,17 +106,15 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) { * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ @java.lang.Override - public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index) { + public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder( + int index) { return customClasses_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -155,7 +123,6 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -164,15 +131,14 @@ 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][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -181,15 +147,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -198,7 +165,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +176,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)); } @@ -227,7 +194,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_); @@ -240,16 +208,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.v2.ListCustomClassesResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListCustomClassesResponse other = - (com.google.cloud.speech.v2.ListCustomClassesResponse) obj; + com.google.cloud.speech.v2.ListCustomClassesResponse other = (com.google.cloud.speech.v2.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -273,103 +242,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.ListCustomClassesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.ListCustomClassesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.ListCustomClassesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListCustomClassesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.ListCustomClassesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListCustomClassesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Response message for the
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.
@@ -377,32 +339,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.ListCustomClassesResponse)
       com.google.cloud.speech.v2.ListCustomClassesResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListCustomClassesResponse.class,
-              com.google.cloud.speech.v2.ListCustomClassesResponse.Builder.class);
+              com.google.cloud.speech.v2.ListCustomClassesResponse.class, com.google.cloud.speech.v2.ListCustomClassesResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListCustomClassesResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -419,9 +382,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
     }
 
     @java.lang.Override
@@ -440,18 +403,14 @@ public com.google.cloud.speech.v2.ListCustomClassesResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListCustomClassesResponse buildPartial() {
-      com.google.cloud.speech.v2.ListCustomClassesResponse result =
-          new com.google.cloud.speech.v2.ListCustomClassesResponse(this);
+      com.google.cloud.speech.v2.ListCustomClassesResponse result = new com.google.cloud.speech.v2.ListCustomClassesResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v2.ListCustomClassesResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.ListCustomClassesResponse result) {
       if (customClassesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           customClasses_ = java.util.Collections.unmodifiableList(customClasses_);
@@ -474,39 +433,38 @@ private void buildPartial0(com.google.cloud.speech.v2.ListCustomClassesResponse
     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.v2.ListCustomClassesResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.ListCustomClassesResponse) other);
+        return mergeFrom((com.google.cloud.speech.v2.ListCustomClassesResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -514,8 +472,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListCustomClassesResponse other) {
-      if (other == com.google.cloud.speech.v2.ListCustomClassesResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.ListCustomClassesResponse.getDefaultInstance()) return this;
       if (customClassesBuilder_ == null) {
         if (!other.customClasses_.isEmpty()) {
           if (customClasses_.isEmpty()) {
@@ -534,10 +491,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_);
           }
@@ -574,32 +530,30 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.speech.v2.CustomClass m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.CustomClass.parser(), extensionRegistry);
-                if (customClassesBuilder_ == null) {
-                  ensureCustomClassesIsMutable();
-                  customClasses_.add(m);
-                } else {
-                  customClassesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.speech.v2.CustomClass m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.CustomClass.parser(),
+                      extensionRegistry);
+              if (customClassesBuilder_ == null) {
+                ensureCustomClassesIsMutable();
+                customClasses_.add(m);
+              } else {
+                customClassesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              nextPageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -609,29 +563,21 @@ public Builder mergeFrom(
       } // finally
       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.v2.CustomClass,
-            com.google.cloud.speech.v2.CustomClass.Builder,
-            com.google.cloud.speech.v2.CustomClassOrBuilder>
-        customClassesBuilder_;
+        com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> customClassesBuilder_;
 
     /**
-     *
-     *
      * 
      * The list of requested CustomClasses.
      * 
@@ -646,8 +592,6 @@ public java.util.List getCustomClassesLi } } /** - * - * *
      * The list of requested CustomClasses.
      * 
@@ -662,8 +606,6 @@ public int getCustomClassesCount() { } } /** - * - * *
      * The list of requested CustomClasses.
      * 
@@ -678,15 +620,14 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) { } } /** - * - * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public Builder setCustomClasses(int index, com.google.cloud.speech.v2.CustomClass value) { + public Builder setCustomClasses( + int index, com.google.cloud.speech.v2.CustomClass value) { if (customClassesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -700,8 +641,6 @@ public Builder setCustomClasses(int index, com.google.cloud.speech.v2.CustomClas return this; } /** - * - * *
      * The list of requested CustomClasses.
      * 
@@ -720,8 +659,6 @@ public Builder setCustomClasses( return this; } /** - * - * *
      * The list of requested CustomClasses.
      * 
@@ -742,15 +679,14 @@ public Builder addCustomClasses(com.google.cloud.speech.v2.CustomClass value) { return this; } /** - * - * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public Builder addCustomClasses(int index, com.google.cloud.speech.v2.CustomClass value) { + public Builder addCustomClasses( + int index, com.google.cloud.speech.v2.CustomClass value) { if (customClassesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -764,8 +700,6 @@ public Builder addCustomClasses(int index, com.google.cloud.speech.v2.CustomClas return this; } /** - * - * *
      * The list of requested CustomClasses.
      * 
@@ -784,8 +718,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The list of requested CustomClasses.
      * 
@@ -804,8 +736,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The list of requested CustomClasses.
      * 
@@ -816,7 +746,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); @@ -824,8 +755,6 @@ public Builder addAllCustomClasses( return this; } /** - * - * *
      * The list of requested CustomClasses.
      * 
@@ -843,8 +772,6 @@ public Builder clearCustomClasses() { return this; } /** - * - * *
      * The list of requested CustomClasses.
      * 
@@ -862,44 +789,39 @@ public Builder removeCustomClasses(int index) { return this; } /** - * - * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassesBuilder(int index) { + public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassesBuilder( + int index) { return getCustomClassesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index) { + public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder( + int index) { if (customClassesBuilder_ == null) { - return customClasses_.get(index); - } else { + return customClasses_.get(index); } else { return customClassesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public java.util.List - getCustomClassesOrBuilderList() { + public java.util.List + getCustomClassesOrBuilderList() { if (customClassesBuilder_ != null) { return customClassesBuilder_.getMessageOrBuilderList(); } else { @@ -907,8 +829,6 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder } } /** - * - * *
      * The list of requested CustomClasses.
      * 
@@ -916,47 +836,38 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder() { - return getCustomClassesFieldBuilder() - .addBuilder(com.google.cloud.speech.v2.CustomClass.getDefaultInstance()); + return getCustomClassesFieldBuilder().addBuilder( + com.google.cloud.speech.v2.CustomClass.getDefaultInstance()); } /** - * - * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(int index) { - return getCustomClassesFieldBuilder() - .addBuilder(index, com.google.cloud.speech.v2.CustomClass.getDefaultInstance()); + public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder( + int index) { + return getCustomClassesFieldBuilder().addBuilder( + index, com.google.cloud.speech.v2.CustomClass.getDefaultInstance()); } /** - * - * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.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.v2.CustomClass, - com.google.cloud.speech.v2.CustomClass.Builder, - com.google.cloud.speech.v2.CustomClassOrBuilder> + com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> getCustomClassesFieldBuilder() { if (customClassesBuilder_ == null) { - customClassesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, - com.google.cloud.speech.v2.CustomClass.Builder, - com.google.cloud.speech.v2.CustomClassOrBuilder>( + customClassesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder>( customClasses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -968,8 +879,6 @@ public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(in private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -978,13 +887,13 @@ public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(in
      * 
* * 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; @@ -993,8 +902,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -1003,14 +910,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1018,8 +926,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -1028,22 +934,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -1052,7 +954,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1062,8 +963,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -1072,23 +971,21 @@ public Builder clearNextPageToken() {
      * 
* * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1098,12 +995,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListCustomClassesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListCustomClassesResponse) private static final com.google.cloud.speech.v2.ListCustomClassesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListCustomClassesResponse(); } @@ -1112,27 +1009,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1147,4 +1044,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.ListCustomClassesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java index 0177a87b7564..125a49023494 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListCustomClassesResponseOrBuilder - extends +public interface ListCustomClassesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListCustomClassesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of requested CustomClasses.
    * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - java.util.List getCustomClassesList(); + java.util.List + getCustomClassesList(); /** - * - * *
    * The list of requested CustomClasses.
    * 
@@ -44,8 +25,6 @@ public interface ListCustomClassesResponseOrBuilder */ com.google.cloud.speech.v2.CustomClass getCustomClasses(int index); /** - * - * *
    * The list of requested CustomClasses.
    * 
@@ -54,30 +33,25 @@ public interface ListCustomClassesResponseOrBuilder */ int getCustomClassesCount(); /** - * - * *
    * The list of requested CustomClasses.
    * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - java.util.List + java.util.List getCustomClassesOrBuilderList(); /** - * - * *
    * The list of requested CustomClasses.
    * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index); + com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -86,13 +60,10 @@ public interface ListCustomClassesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -101,8 +72,8 @@ public interface ListCustomClassesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java index 067383e3f289..e683c6220027 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.ListPhraseSetsRequest}
  */
-public final class ListPhraseSetsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListPhraseSetsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ListPhraseSetsRequest)
     ListPhraseSetsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListPhraseSetsRequest.newBuilder() to construct.
   private ListPhraseSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListPhraseSetsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -45,46 +27,39 @@ private ListPhraseSetsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListPhraseSetsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListPhraseSetsRequest.class,
-            com.google.cloud.speech.v2.ListPhraseSetsRequest.Builder.class);
+            com.google.cloud.speech.v2.ListPhraseSetsRequest.class, com.google.cloud.speech.v2.ListPhraseSetsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The project and location of PhraseSet resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 @@ -93,32 +68,30 @@ 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 project and location of PhraseSet resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 { @@ -129,8 +102,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of PhraseSets to return. The service may return fewer
    * than this value. If unspecified, at most 20 PhraseSets will be returned.
@@ -138,7 +109,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -147,12 +117,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -163,7 +130,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -172,15 +138,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
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -191,15 +156,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 { @@ -210,14 +176,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int SHOW_DELETED_FIELD_NUMBER = 4; private boolean showDeleted_ = false; /** - * - * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ @java.lang.Override @@ -226,7 +189,6 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,7 +200,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_); } @@ -264,13 +227,15 @@ 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_); } if (showDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, showDeleted_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, showDeleted_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -280,18 +245,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.v2.ListPhraseSetsRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListPhraseSetsRequest other = - (com.google.cloud.speech.v2.ListPhraseSetsRequest) obj; + com.google.cloud.speech.v2.ListPhraseSetsRequest other = (com.google.cloud.speech.v2.ListPhraseSetsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getShowDeleted() != other.getShowDeleted()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getShowDeleted() + != other.getShowDeleted()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -310,110 +278,104 @@ public int hashCode() { hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShowDeleted()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v2.ListPhraseSetsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.ListPhraseSetsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListPhraseSetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListPhraseSetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest 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; } /** - * - * *
    * Request message for the
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.
@@ -421,32 +383,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.ListPhraseSetsRequest}
    */
-  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.v2.ListPhraseSetsRequest)
       com.google.cloud.speech.v2.ListPhraseSetsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListPhraseSetsRequest.class,
-              com.google.cloud.speech.v2.ListPhraseSetsRequest.Builder.class);
+              com.google.cloud.speech.v2.ListPhraseSetsRequest.class, com.google.cloud.speech.v2.ListPhraseSetsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListPhraseSetsRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -459,9 +422,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -480,11 +443,8 @@ public com.google.cloud.speech.v2.ListPhraseSetsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListPhraseSetsRequest buildPartial() {
-      com.google.cloud.speech.v2.ListPhraseSetsRequest result =
-          new com.google.cloud.speech.v2.ListPhraseSetsRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.ListPhraseSetsRequest result = new com.google.cloud.speech.v2.ListPhraseSetsRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -509,39 +469,38 @@ private void buildPartial0(com.google.cloud.speech.v2.ListPhraseSetsRequest resu
     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.v2.ListPhraseSetsRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.ListPhraseSetsRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.ListPhraseSetsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -549,8 +508,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListPhraseSetsRequest other) {
-      if (other == com.google.cloud.speech.v2.ListPhraseSetsRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.ListPhraseSetsRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -593,37 +551,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                pageSize_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                showDeleted_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              pageSize_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              pageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              showDeleted_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -633,28 +586,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The project and location of PhraseSet resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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; @@ -663,24 +611,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location of PhraseSet resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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 { @@ -688,41 +633,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location of PhraseSet resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The project and location of PhraseSet resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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() { @@ -732,24 +666,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The project and location of PhraseSet resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -757,10 +685,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of PhraseSets to return. The service may return fewer
      * than this value. If unspecified, at most 20 PhraseSets will be returned.
@@ -768,7 +694,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -776,8 +701,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of PhraseSets to return. The service may return fewer
      * than this value. If unspecified, at most 20 PhraseSets will be returned.
@@ -785,20 +708,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of PhraseSets to return. The service may return fewer
      * than this value. If unspecified, at most 20 PhraseSets will be returned.
@@ -806,7 +726,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -818,8 +737,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous
      * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -830,13 +747,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; @@ -845,8 +762,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous
      * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -857,14 +772,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 { @@ -872,8 +788,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous
      * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -884,22 +798,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous
      * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -910,7 +820,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -920,8 +829,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous
      * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -932,14 +839,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -947,16 +852,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private boolean showDeleted_; + private boolean showDeleted_ ; /** - * - * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ @java.lang.Override @@ -964,33 +866,27 @@ public boolean getShowDeleted() { return showDeleted_; } /** - * - * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; - * * @param value The showDeleted to set. * @return This builder for chaining. */ public Builder setShowDeleted(boolean value) { - + showDeleted_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; - * * @return This builder for chaining. */ public Builder clearShowDeleted() { @@ -999,9 +895,9 @@ public Builder clearShowDeleted() { 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); } @@ -1011,12 +907,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListPhraseSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListPhraseSetsRequest) private static final com.google.cloud.speech.v2.ListPhraseSetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListPhraseSetsRequest(); } @@ -1025,27 +921,27 @@ public static com.google.cloud.speech.v2.ListPhraseSetsRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1060,4 +956,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ListPhraseSetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java index 0d0d9c9ab953..0aae9ecfa7be 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListPhraseSetsRequestOrBuilder - extends +public interface ListPhraseSetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListPhraseSetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location of PhraseSet resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 project and location of PhraseSet resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 PhraseSets to return. The service may return fewer
    * than this value. If unspecified, at most 20 PhraseSets will be returned.
@@ -64,14 +37,11 @@ public interface ListPhraseSetsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -82,13 +52,10 @@ public interface ListPhraseSetsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -99,20 +66,17 @@ public interface ListPhraseSetsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ boolean getShowDeleted(); diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java index b8ebfa5b3910..e216d41baa1c 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Response message for the
  * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.ListPhraseSetsResponse}
  */
-public final class ListPhraseSetsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListPhraseSetsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ListPhraseSetsResponse)
     ListPhraseSetsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListPhraseSetsResponse.newBuilder() to construct.
   private ListPhraseSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListPhraseSetsResponse() {
     phraseSets_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -45,37 +27,33 @@ private ListPhraseSetsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListPhraseSetsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListPhraseSetsResponse.class,
-            com.google.cloud.speech.v2.ListPhraseSetsResponse.Builder.class);
+            com.google.cloud.speech.v2.ListPhraseSetsResponse.class, com.google.cloud.speech.v2.ListPhraseSetsResponse.Builder.class);
   }
 
   public static final int PHRASE_SETS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List phraseSets_;
   /**
-   *
-   *
    * 
    * The list of requested PhraseSets.
    * 
@@ -87,8 +65,6 @@ public java.util.List getPhraseSetsList() return phraseSets_; } /** - * - * *
    * The list of requested PhraseSets.
    * 
@@ -96,13 +72,11 @@ public java.util.List getPhraseSetsList() * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPhraseSetsOrBuilderList() { return phraseSets_; } /** - * - * *
    * The list of requested PhraseSets.
    * 
@@ -114,8 +88,6 @@ public int getPhraseSetsCount() { return phraseSets_.size(); } /** - * - * *
    * The list of requested PhraseSets.
    * 
@@ -127,8 +99,6 @@ public com.google.cloud.speech.v2.PhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** - * - * *
    * The list of requested PhraseSets.
    * 
@@ -136,17 +106,15 @@ public com.google.cloud.speech.v2.PhraseSet getPhraseSets(int index) { * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ @java.lang.Override - public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) { + public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder( + int index) { return phraseSets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -155,7 +123,6 @@ public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(int
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -164,15 +131,14 @@ 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][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -181,15 +147,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -198,7 +165,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +176,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)); } @@ -227,7 +194,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_); @@ -240,16 +208,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.v2.ListPhraseSetsResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListPhraseSetsResponse other = - (com.google.cloud.speech.v2.ListPhraseSetsResponse) obj; + com.google.cloud.speech.v2.ListPhraseSetsResponse other = (com.google.cloud.speech.v2.ListPhraseSetsResponse) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -273,103 +242,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListPhraseSetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListPhraseSetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse 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; } /** - * - * *
    * Response message for the
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.
@@ -377,32 +339,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.ListPhraseSetsResponse}
    */
-  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.v2.ListPhraseSetsResponse)
       com.google.cloud.speech.v2.ListPhraseSetsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListPhraseSetsResponse.class,
-              com.google.cloud.speech.v2.ListPhraseSetsResponse.Builder.class);
+              com.google.cloud.speech.v2.ListPhraseSetsResponse.class, com.google.cloud.speech.v2.ListPhraseSetsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListPhraseSetsResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -419,9 +382,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -440,18 +403,14 @@ public com.google.cloud.speech.v2.ListPhraseSetsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListPhraseSetsResponse buildPartial() {
-      com.google.cloud.speech.v2.ListPhraseSetsResponse result =
-          new com.google.cloud.speech.v2.ListPhraseSetsResponse(this);
+      com.google.cloud.speech.v2.ListPhraseSetsResponse result = new com.google.cloud.speech.v2.ListPhraseSetsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v2.ListPhraseSetsResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.ListPhraseSetsResponse result) {
       if (phraseSetsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_);
@@ -474,39 +433,38 @@ private void buildPartial0(com.google.cloud.speech.v2.ListPhraseSetsResponse res
     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.v2.ListPhraseSetsResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.ListPhraseSetsResponse) other);
+        return mergeFrom((com.google.cloud.speech.v2.ListPhraseSetsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -514,8 +472,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListPhraseSetsResponse other) {
-      if (other == com.google.cloud.speech.v2.ListPhraseSetsResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.ListPhraseSetsResponse.getDefaultInstance()) return this;
       if (phraseSetsBuilder_ == null) {
         if (!other.phraseSets_.isEmpty()) {
           if (phraseSets_.isEmpty()) {
@@ -534,10 +491,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.ListPhraseSetsResponse 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_);
           }
@@ -574,32 +530,30 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.speech.v2.PhraseSet m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.PhraseSet.parser(), extensionRegistry);
-                if (phraseSetsBuilder_ == null) {
-                  ensurePhraseSetsIsMutable();
-                  phraseSets_.add(m);
-                } else {
-                  phraseSetsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.speech.v2.PhraseSet m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.PhraseSet.parser(),
+                      extensionRegistry);
+              if (phraseSetsBuilder_ == null) {
+                ensurePhraseSetsIsMutable();
+                phraseSets_.add(m);
+              } else {
+                phraseSetsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              nextPageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -609,28 +563,21 @@ public Builder mergeFrom(
       } // finally
       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.v2.PhraseSet,
-            com.google.cloud.speech.v2.PhraseSet.Builder,
-            com.google.cloud.speech.v2.PhraseSetOrBuilder>
-        phraseSetsBuilder_;
+        com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> phraseSetsBuilder_;
 
     /**
-     *
-     *
      * 
      * The list of requested PhraseSets.
      * 
@@ -645,8 +592,6 @@ public java.util.List getPhraseSetsList() } } /** - * - * *
      * The list of requested PhraseSets.
      * 
@@ -661,8 +606,6 @@ public int getPhraseSetsCount() { } } /** - * - * *
      * The list of requested PhraseSets.
      * 
@@ -677,15 +620,14 @@ public com.google.cloud.speech.v2.PhraseSet getPhraseSets(int index) { } } /** - * - * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public Builder setPhraseSets(int index, com.google.cloud.speech.v2.PhraseSet value) { + public Builder setPhraseSets( + int index, com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -699,8 +641,6 @@ public Builder setPhraseSets(int index, com.google.cloud.speech.v2.PhraseSet val return this; } /** - * - * *
      * The list of requested PhraseSets.
      * 
@@ -719,8 +659,6 @@ public Builder setPhraseSets( return this; } /** - * - * *
      * The list of requested PhraseSets.
      * 
@@ -741,15 +679,14 @@ public Builder addPhraseSets(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** - * - * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public Builder addPhraseSets(int index, com.google.cloud.speech.v2.PhraseSet value) { + public Builder addPhraseSets( + int index, com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -763,15 +700,14 @@ public Builder addPhraseSets(int index, com.google.cloud.speech.v2.PhraseSet val return this; } /** - * - * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public Builder addPhraseSets(com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { + public Builder addPhraseSets( + com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { if (phraseSetsBuilder_ == null) { ensurePhraseSetsIsMutable(); phraseSets_.add(builderForValue.build()); @@ -782,8 +718,6 @@ public Builder addPhraseSets(com.google.cloud.speech.v2.PhraseSet.Builder builde return this; } /** - * - * *
      * The list of requested PhraseSets.
      * 
@@ -802,8 +736,6 @@ public Builder addPhraseSets( return this; } /** - * - * *
      * The list of requested PhraseSets.
      * 
@@ -814,7 +746,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); @@ -822,8 +755,6 @@ public Builder addAllPhraseSets( return this; } /** - * - * *
      * The list of requested PhraseSets.
      * 
@@ -841,8 +772,6 @@ public Builder clearPhraseSets() { return this; } /** - * - * *
      * The list of requested PhraseSets.
      * 
@@ -860,44 +789,39 @@ public Builder removePhraseSets(int index) { return this; } /** - * - * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetsBuilder(int index) { + public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetsBuilder( + int index) { return getPhraseSetsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) { + public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder( + int index) { if (phraseSetsBuilder_ == null) { - return phraseSets_.get(index); - } else { + return phraseSets_.get(index); } else { return phraseSetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public java.util.List - getPhraseSetsOrBuilderList() { + public java.util.List + getPhraseSetsOrBuilderList() { if (phraseSetsBuilder_ != null) { return phraseSetsBuilder_.getMessageOrBuilderList(); } else { @@ -905,8 +829,6 @@ public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(int } } /** - * - * *
      * The list of requested PhraseSets.
      * 
@@ -914,47 +836,42 @@ public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(int * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ public com.google.cloud.speech.v2.PhraseSet.Builder addPhraseSetsBuilder() { - return getPhraseSetsFieldBuilder() - .addBuilder(com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()); + return getPhraseSetsFieldBuilder().addBuilder( + com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()); } /** - * - * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.PhraseSet.Builder addPhraseSetsBuilder(int index) { - return getPhraseSetsFieldBuilder() - .addBuilder(index, com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()); + public com.google.cloud.speech.v2.PhraseSet.Builder addPhraseSetsBuilder( + int index) { + return getPhraseSetsFieldBuilder().addBuilder( + index, com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()); } /** - * - * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.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.v2.PhraseSet, - com.google.cloud.speech.v2.PhraseSet.Builder, - com.google.cloud.speech.v2.PhraseSetOrBuilder> + com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> getPhraseSetsFieldBuilder() { if (phraseSetsBuilder_ == null) { - phraseSetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, - com.google.cloud.speech.v2.PhraseSet.Builder, - com.google.cloud.speech.v2.PhraseSetOrBuilder>( - phraseSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + phraseSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder>( + phraseSets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); phraseSets_ = null; } return phraseSetsBuilder_; @@ -962,8 +879,6 @@ public java.util.List getPhraseSet private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -972,13 +887,13 @@ public java.util.List getPhraseSet
      * 
* * 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; @@ -987,8 +902,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -997,14 +910,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1012,8 +926,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -1022,22 +934,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -1046,7 +954,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1056,8 +963,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -1066,23 +971,21 @@ public Builder clearNextPageToken() {
      * 
* * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1092,12 +995,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListPhraseSetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListPhraseSetsResponse) private static final com.google.cloud.speech.v2.ListPhraseSetsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListPhraseSetsResponse(); } @@ -1106,27 +1009,27 @@ public static com.google.cloud.speech.v2.ListPhraseSetsResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1141,4 +1044,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ListPhraseSetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java index 3d9cdca0eefa..aa3460bcc180 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListPhraseSetsResponseOrBuilder - extends +public interface ListPhraseSetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListPhraseSetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of requested PhraseSets.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - java.util.List getPhraseSetsList(); + java.util.List + getPhraseSetsList(); /** - * - * *
    * The list of requested PhraseSets.
    * 
@@ -44,8 +25,6 @@ public interface ListPhraseSetsResponseOrBuilder */ com.google.cloud.speech.v2.PhraseSet getPhraseSets(int index); /** - * - * *
    * The list of requested PhraseSets.
    * 
@@ -54,30 +33,25 @@ public interface ListPhraseSetsResponseOrBuilder */ int getPhraseSetsCount(); /** - * - * *
    * The list of requested PhraseSets.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - java.util.List + java.util.List getPhraseSetsOrBuilderList(); /** - * - * *
    * The list of requested PhraseSets.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index); + com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -86,13 +60,10 @@ public interface ListPhraseSetsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -101,8 +72,8 @@ public interface ListPhraseSetsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java index f5d19cdf4292..ad4edac0cd6c 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.ListRecognizersRequest}
  */
-public final class ListRecognizersRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListRecognizersRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ListRecognizersRequest)
     ListRecognizersRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListRecognizersRequest.newBuilder() to construct.
   private ListRecognizersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListRecognizersRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -45,46 +27,39 @@ private ListRecognizersRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListRecognizersRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListRecognizersRequest.class,
-            com.google.cloud.speech.v2.ListRecognizersRequest.Builder.class);
+            com.google.cloud.speech.v2.ListRecognizersRequest.class, com.google.cloud.speech.v2.ListRecognizersRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The project and location of Recognizers to list. The expected
    * format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 @@ -93,32 +68,30 @@ 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 project and location of Recognizers to list. The expected
    * format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 { @@ -129,8 +102,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of Recognizers to return. The service may return fewer
    * than this value. If unspecified, at most 20 Recognizers will be returned.
@@ -138,7 +109,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -147,12 +117,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -163,7 +130,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -172,15 +138,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
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -191,15 +156,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 { @@ -210,14 +176,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int SHOW_DELETED_FIELD_NUMBER = 4; private boolean showDeleted_ = false; /** - * - * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ @java.lang.Override @@ -226,7 +189,6 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,7 +200,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_); } @@ -264,13 +227,15 @@ 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_); } if (showDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, showDeleted_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, showDeleted_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -280,18 +245,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.v2.ListRecognizersRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListRecognizersRequest other = - (com.google.cloud.speech.v2.ListRecognizersRequest) obj; + com.google.cloud.speech.v2.ListRecognizersRequest other = (com.google.cloud.speech.v2.ListRecognizersRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getShowDeleted() != other.getShowDeleted()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getShowDeleted() + != other.getShowDeleted()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -310,110 +278,104 @@ public int hashCode() { hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShowDeleted()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListRecognizersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListRecognizersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest 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; } /** - * - * *
    * Request message for the
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.
@@ -421,32 +383,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.ListRecognizersRequest}
    */
-  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.v2.ListRecognizersRequest)
       com.google.cloud.speech.v2.ListRecognizersRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListRecognizersRequest.class,
-              com.google.cloud.speech.v2.ListRecognizersRequest.Builder.class);
+              com.google.cloud.speech.v2.ListRecognizersRequest.class, com.google.cloud.speech.v2.ListRecognizersRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListRecognizersRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -459,9 +422,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
     }
 
     @java.lang.Override
@@ -480,11 +443,8 @@ public com.google.cloud.speech.v2.ListRecognizersRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListRecognizersRequest buildPartial() {
-      com.google.cloud.speech.v2.ListRecognizersRequest result =
-          new com.google.cloud.speech.v2.ListRecognizersRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.ListRecognizersRequest result = new com.google.cloud.speech.v2.ListRecognizersRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -509,39 +469,38 @@ private void buildPartial0(com.google.cloud.speech.v2.ListRecognizersRequest res
     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.v2.ListRecognizersRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.ListRecognizersRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.ListRecognizersRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -549,8 +508,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListRecognizersRequest other) {
-      if (other == com.google.cloud.speech.v2.ListRecognizersRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.ListRecognizersRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -593,37 +551,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                pageSize_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                showDeleted_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              pageSize_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              pageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              showDeleted_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -633,28 +586,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The project and location of Recognizers to list. The expected
      * format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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; @@ -663,24 +611,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The project and location of Recognizers to list. The expected
      * format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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 { @@ -688,41 +633,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The project and location of Recognizers to list. The expected
      * format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The project and location of Recognizers to list. The expected
      * format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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() { @@ -732,24 +666,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The project and location of Recognizers to list. The expected
      * format is `projects/{project}/locations/{location}`.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -757,10 +685,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of Recognizers to return. The service may return fewer
      * than this value. If unspecified, at most 20 Recognizers will be returned.
@@ -768,7 +694,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -776,8 +701,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of Recognizers to return. The service may return fewer
      * than this value. If unspecified, at most 20 Recognizers will be returned.
@@ -785,20 +708,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of Recognizers to return. The service may return fewer
      * than this value. If unspecified, at most 20 Recognizers will be returned.
@@ -806,7 +726,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -818,8 +737,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous
      * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -830,13 +747,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; @@ -845,8 +762,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous
      * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -857,14 +772,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 { @@ -872,8 +788,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous
      * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -884,22 +798,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous
      * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -910,7 +820,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -920,8 +829,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous
      * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -932,14 +839,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -947,16 +852,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private boolean showDeleted_; + private boolean showDeleted_ ; /** - * - * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ @java.lang.Override @@ -964,33 +866,27 @@ public boolean getShowDeleted() { return showDeleted_; } /** - * - * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; - * * @param value The showDeleted to set. * @return This builder for chaining. */ public Builder setShowDeleted(boolean value) { - + showDeleted_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; - * * @return This builder for chaining. */ public Builder clearShowDeleted() { @@ -999,9 +895,9 @@ public Builder clearShowDeleted() { 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); } @@ -1011,12 +907,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListRecognizersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListRecognizersRequest) private static final com.google.cloud.speech.v2.ListRecognizersRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListRecognizersRequest(); } @@ -1025,27 +921,27 @@ public static com.google.cloud.speech.v2.ListRecognizersRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRecognizersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRecognizersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1060,4 +956,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ListRecognizersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java similarity index 66% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java index 96ffdcaa9487..c3e14de54055 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListRecognizersRequestOrBuilder - extends +public interface ListRecognizersRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListRecognizersRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The project and location of Recognizers to list. The expected
    * format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 project and location of Recognizers to list. The expected
    * format is `projects/{project}/locations/{location}`.
    * 
* - * - * 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 Recognizers to return. The service may return fewer
    * than this value. If unspecified, at most 20 Recognizers will be returned.
@@ -64,14 +37,11 @@ public interface ListRecognizersRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -82,13 +52,10 @@ public interface ListRecognizersRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -99,20 +66,17 @@ public interface ListRecognizersRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; - * * @return The showDeleted. */ boolean getShowDeleted(); diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java index e9195797bb14..959437a7ea20 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Response message for the
  * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.ListRecognizersResponse}
  */
-public final class ListRecognizersResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListRecognizersResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ListRecognizersResponse)
     ListRecognizersResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListRecognizersResponse.newBuilder() to construct.
   private ListRecognizersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListRecognizersResponse() {
     recognizers_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -45,37 +27,33 @@ private ListRecognizersResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListRecognizersResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListRecognizersResponse.class,
-            com.google.cloud.speech.v2.ListRecognizersResponse.Builder.class);
+            com.google.cloud.speech.v2.ListRecognizersResponse.class, com.google.cloud.speech.v2.ListRecognizersResponse.Builder.class);
   }
 
   public static final int RECOGNIZERS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List recognizers_;
   /**
-   *
-   *
    * 
    * The list of requested Recognizers.
    * 
@@ -87,8 +65,6 @@ public java.util.List getRecognizersList( return recognizers_; } /** - * - * *
    * The list of requested Recognizers.
    * 
@@ -96,13 +72,11 @@ public java.util.List getRecognizersList( * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRecognizersOrBuilderList() { return recognizers_; } /** - * - * *
    * The list of requested Recognizers.
    * 
@@ -114,8 +88,6 @@ public int getRecognizersCount() { return recognizers_.size(); } /** - * - * *
    * The list of requested Recognizers.
    * 
@@ -127,8 +99,6 @@ public com.google.cloud.speech.v2.Recognizer getRecognizers(int index) { return recognizers_.get(index); } /** - * - * *
    * The list of requested Recognizers.
    * 
@@ -136,17 +106,15 @@ public com.google.cloud.speech.v2.Recognizer getRecognizers(int index) { * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ @java.lang.Override - public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(int index) { + public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder( + int index) { return recognizers_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -155,7 +123,6 @@ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(in
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -164,15 +131,14 @@ 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][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -181,15 +147,16 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -198,7 +165,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +176,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 < recognizers_.size(); i++) { output.writeMessage(1, recognizers_.get(i)); } @@ -227,7 +194,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < recognizers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, recognizers_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, recognizers_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -240,16 +208,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.v2.ListRecognizersResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListRecognizersResponse other = - (com.google.cloud.speech.v2.ListRecognizersResponse) obj; + com.google.cloud.speech.v2.ListRecognizersResponse other = (com.google.cloud.speech.v2.ListRecognizersResponse) obj; - if (!getRecognizersList().equals(other.getRecognizersList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getRecognizersList() + .equals(other.getRecognizersList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -273,103 +242,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListRecognizersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.ListRecognizersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse 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; } /** - * - * *
    * Response message for the
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.
@@ -377,32 +339,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.ListRecognizersResponse}
    */
-  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.v2.ListRecognizersResponse)
       com.google.cloud.speech.v2.ListRecognizersResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListRecognizersResponse.class,
-              com.google.cloud.speech.v2.ListRecognizersResponse.Builder.class);
+              com.google.cloud.speech.v2.ListRecognizersResponse.class, com.google.cloud.speech.v2.ListRecognizersResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListRecognizersResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -419,9 +382,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
     }
 
     @java.lang.Override
@@ -440,18 +403,14 @@ public com.google.cloud.speech.v2.ListRecognizersResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListRecognizersResponse buildPartial() {
-      com.google.cloud.speech.v2.ListRecognizersResponse result =
-          new com.google.cloud.speech.v2.ListRecognizersResponse(this);
+      com.google.cloud.speech.v2.ListRecognizersResponse result = new com.google.cloud.speech.v2.ListRecognizersResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v2.ListRecognizersResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.ListRecognizersResponse result) {
       if (recognizersBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           recognizers_ = java.util.Collections.unmodifiableList(recognizers_);
@@ -474,39 +433,38 @@ private void buildPartial0(com.google.cloud.speech.v2.ListRecognizersResponse re
     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.v2.ListRecognizersResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.ListRecognizersResponse) other);
+        return mergeFrom((com.google.cloud.speech.v2.ListRecognizersResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -514,8 +472,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListRecognizersResponse other) {
-      if (other == com.google.cloud.speech.v2.ListRecognizersResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.ListRecognizersResponse.getDefaultInstance()) return this;
       if (recognizersBuilder_ == null) {
         if (!other.recognizers_.isEmpty()) {
           if (recognizers_.isEmpty()) {
@@ -534,10 +491,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.ListRecognizersResponse othe
             recognizersBuilder_ = null;
             recognizers_ = other.recognizers_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            recognizersBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getRecognizersFieldBuilder()
-                    : null;
+            recognizersBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getRecognizersFieldBuilder() : null;
           } else {
             recognizersBuilder_.addAllMessages(other.recognizers_);
           }
@@ -574,32 +530,30 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.speech.v2.Recognizer m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.Recognizer.parser(), extensionRegistry);
-                if (recognizersBuilder_ == null) {
-                  ensureRecognizersIsMutable();
-                  recognizers_.add(m);
-                } else {
-                  recognizersBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.speech.v2.Recognizer m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.Recognizer.parser(),
+                      extensionRegistry);
+              if (recognizersBuilder_ == null) {
+                ensureRecognizersIsMutable();
+                recognizers_.add(m);
+              } else {
+                recognizersBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              nextPageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -609,28 +563,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List recognizers_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureRecognizersIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         recognizers_ = new java.util.ArrayList(recognizers_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.Recognizer,
-            com.google.cloud.speech.v2.Recognizer.Builder,
-            com.google.cloud.speech.v2.RecognizerOrBuilder>
-        recognizersBuilder_;
+        com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> recognizersBuilder_;
 
     /**
-     *
-     *
      * 
      * The list of requested Recognizers.
      * 
@@ -645,8 +592,6 @@ public java.util.List getRecognizersList( } } /** - * - * *
      * The list of requested Recognizers.
      * 
@@ -661,8 +606,6 @@ public int getRecognizersCount() { } } /** - * - * *
      * The list of requested Recognizers.
      * 
@@ -677,15 +620,14 @@ public com.google.cloud.speech.v2.Recognizer getRecognizers(int index) { } } /** - * - * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public Builder setRecognizers(int index, com.google.cloud.speech.v2.Recognizer value) { + public Builder setRecognizers( + int index, com.google.cloud.speech.v2.Recognizer value) { if (recognizersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -699,8 +641,6 @@ public Builder setRecognizers(int index, com.google.cloud.speech.v2.Recognizer v return this; } /** - * - * *
      * The list of requested Recognizers.
      * 
@@ -719,8 +659,6 @@ public Builder setRecognizers( return this; } /** - * - * *
      * The list of requested Recognizers.
      * 
@@ -741,15 +679,14 @@ public Builder addRecognizers(com.google.cloud.speech.v2.Recognizer value) { return this; } /** - * - * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public Builder addRecognizers(int index, com.google.cloud.speech.v2.Recognizer value) { + public Builder addRecognizers( + int index, com.google.cloud.speech.v2.Recognizer value) { if (recognizersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -763,15 +700,14 @@ public Builder addRecognizers(int index, com.google.cloud.speech.v2.Recognizer v return this; } /** - * - * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public Builder addRecognizers(com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { + public Builder addRecognizers( + com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { if (recognizersBuilder_ == null) { ensureRecognizersIsMutable(); recognizers_.add(builderForValue.build()); @@ -782,8 +718,6 @@ public Builder addRecognizers(com.google.cloud.speech.v2.Recognizer.Builder buil return this; } /** - * - * *
      * The list of requested Recognizers.
      * 
@@ -802,8 +736,6 @@ public Builder addRecognizers( return this; } /** - * - * *
      * The list of requested Recognizers.
      * 
@@ -814,7 +746,8 @@ public Builder addAllRecognizers( java.lang.Iterable values) { if (recognizersBuilder_ == null) { ensureRecognizersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recognizers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, recognizers_); onChanged(); } else { recognizersBuilder_.addAllMessages(values); @@ -822,8 +755,6 @@ public Builder addAllRecognizers( return this; } /** - * - * *
      * The list of requested Recognizers.
      * 
@@ -841,8 +772,6 @@ public Builder clearRecognizers() { return this; } /** - * - * *
      * The list of requested Recognizers.
      * 
@@ -860,44 +789,39 @@ public Builder removeRecognizers(int index) { return this; } /** - * - * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public com.google.cloud.speech.v2.Recognizer.Builder getRecognizersBuilder(int index) { + public com.google.cloud.speech.v2.Recognizer.Builder getRecognizersBuilder( + int index) { return getRecognizersFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(int index) { + public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder( + int index) { if (recognizersBuilder_ == null) { - return recognizers_.get(index); - } else { + return recognizers_.get(index); } else { return recognizersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public java.util.List - getRecognizersOrBuilderList() { + public java.util.List + getRecognizersOrBuilderList() { if (recognizersBuilder_ != null) { return recognizersBuilder_.getMessageOrBuilderList(); } else { @@ -905,8 +829,6 @@ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(in } } /** - * - * *
      * The list of requested Recognizers.
      * 
@@ -914,48 +836,42 @@ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(in * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ public com.google.cloud.speech.v2.Recognizer.Builder addRecognizersBuilder() { - return getRecognizersFieldBuilder() - .addBuilder(com.google.cloud.speech.v2.Recognizer.getDefaultInstance()); + return getRecognizersFieldBuilder().addBuilder( + com.google.cloud.speech.v2.Recognizer.getDefaultInstance()); } /** - * - * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public com.google.cloud.speech.v2.Recognizer.Builder addRecognizersBuilder(int index) { - return getRecognizersFieldBuilder() - .addBuilder(index, com.google.cloud.speech.v2.Recognizer.getDefaultInstance()); + public com.google.cloud.speech.v2.Recognizer.Builder addRecognizersBuilder( + int index) { + return getRecognizersFieldBuilder().addBuilder( + index, com.google.cloud.speech.v2.Recognizer.getDefaultInstance()); } /** - * - * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public java.util.List - getRecognizersBuilderList() { + public java.util.List + getRecognizersBuilderList() { return getRecognizersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, - com.google.cloud.speech.v2.Recognizer.Builder, - com.google.cloud.speech.v2.RecognizerOrBuilder> + com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> getRecognizersFieldBuilder() { if (recognizersBuilder_ == null) { - recognizersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, - com.google.cloud.speech.v2.Recognizer.Builder, - com.google.cloud.speech.v2.RecognizerOrBuilder>( - recognizers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + recognizersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder>( + recognizers_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); recognizers_ = null; } return recognizersBuilder_; @@ -963,8 +879,6 @@ public com.google.cloud.speech.v2.Recognizer.Builder addRecognizersBuilder(int i private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -973,13 +887,13 @@ public com.google.cloud.speech.v2.Recognizer.Builder addRecognizersBuilder(int i
      * 
* * 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; @@ -988,8 +902,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -998,14 +910,15 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -1013,8 +926,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -1023,22 +934,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -1047,7 +954,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1057,8 +963,6 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -1067,23 +971,21 @@ public Builder clearNextPageToken() {
      * 
* * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1093,12 +995,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListRecognizersResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListRecognizersResponse) private static final com.google.cloud.speech.v2.ListRecognizersResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListRecognizersResponse(); } @@ -1107,27 +1009,27 @@ public static com.google.cloud.speech.v2.ListRecognizersResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRecognizersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRecognizersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1142,4 +1044,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ListRecognizersResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java index a1760558e343..d50723b13868 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListRecognizersResponseOrBuilder - extends +public interface ListRecognizersResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListRecognizersResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of requested Recognizers.
    * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - java.util.List getRecognizersList(); + java.util.List + getRecognizersList(); /** - * - * *
    * The list of requested Recognizers.
    * 
@@ -44,8 +25,6 @@ public interface ListRecognizersResponseOrBuilder */ com.google.cloud.speech.v2.Recognizer getRecognizers(int index); /** - * - * *
    * The list of requested Recognizers.
    * 
@@ -54,30 +33,25 @@ public interface ListRecognizersResponseOrBuilder */ int getRecognizersCount(); /** - * - * *
    * The list of requested Recognizers.
    * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - java.util.List + java.util.List getRecognizersOrBuilderList(); /** - * - * *
    * The list of requested Recognizers.
    * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(int index); + com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -86,13 +60,10 @@ public interface ListRecognizersResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -101,8 +72,8 @@ public interface ListRecognizersResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java index e6b4a2d3a67f..423fd08b48cf 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Represents the metadata of a long-running operation.
  * 
* * Protobuf type {@code google.cloud.speech.v2.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { resource_ = ""; method_ = ""; @@ -46,36 +28,33 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.OperationMetadata.class, - com.google.cloud.speech.v2.OperationMetadata.Builder.class); + com.google.cloud.speech.v2.OperationMetadata.class, com.google.cloud.speech.v2.OperationMetadata.Builder.class); } private int requestCase_ = 0; private java.lang.Object request_; - public enum RequestCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BATCH_RECOGNIZE_REQUEST(8), CREATE_RECOGNIZER_REQUEST(9), @@ -93,7 +72,6 @@ public enum RequestCase UPDATE_CONFIG_REQUEST(21), REQUEST_NOT_SET(0); private final int value; - private RequestCase(int value) { this.value = value; } @@ -109,61 +87,43 @@ public static RequestCase valueOf(int value) { public static RequestCase forNumber(int value) { switch (value) { - case 8: - return BATCH_RECOGNIZE_REQUEST; - case 9: - return CREATE_RECOGNIZER_REQUEST; - case 10: - return UPDATE_RECOGNIZER_REQUEST; - case 11: - return DELETE_RECOGNIZER_REQUEST; - case 12: - return UNDELETE_RECOGNIZER_REQUEST; - case 13: - return CREATE_CUSTOM_CLASS_REQUEST; - case 14: - return UPDATE_CUSTOM_CLASS_REQUEST; - case 15: - return DELETE_CUSTOM_CLASS_REQUEST; - case 16: - return UNDELETE_CUSTOM_CLASS_REQUEST; - case 17: - return CREATE_PHRASE_SET_REQUEST; - case 18: - return UPDATE_PHRASE_SET_REQUEST; - case 19: - return DELETE_PHRASE_SET_REQUEST; - case 20: - return UNDELETE_PHRASE_SET_REQUEST; - case 21: - return UPDATE_CONFIG_REQUEST; - case 0: - return REQUEST_NOT_SET; - default: - return null; + case 8: return BATCH_RECOGNIZE_REQUEST; + case 9: return CREATE_RECOGNIZER_REQUEST; + case 10: return UPDATE_RECOGNIZER_REQUEST; + case 11: return DELETE_RECOGNIZER_REQUEST; + case 12: return UNDELETE_RECOGNIZER_REQUEST; + case 13: return CREATE_CUSTOM_CLASS_REQUEST; + case 14: return UPDATE_CUSTOM_CLASS_REQUEST; + case 15: return DELETE_CUSTOM_CLASS_REQUEST; + case 16: return UNDELETE_CUSTOM_CLASS_REQUEST; + case 17: return CREATE_PHRASE_SET_REQUEST; + case 18: return UPDATE_PHRASE_SET_REQUEST; + case 19: return DELETE_PHRASE_SET_REQUEST; + case 20: return UNDELETE_PHRASE_SET_REQUEST; + case 21: return UPDATE_CONFIG_REQUEST; + case 0: return REQUEST_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } private int metadataCase_ = 0; private java.lang.Object metadata_; - public enum MetadataCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BATCH_RECOGNIZE_METADATA(23), METADATA_NOT_SET(0); private final int value; - private MetadataCase(int value) { this.value = value; } @@ -179,35 +139,30 @@ public static MetadataCase valueOf(int value) { public static MetadataCase forNumber(int value) { switch (value) { - case 23: - return BATCH_RECOGNIZE_METADATA; - case 0: - return METADATA_NOT_SET; - default: - return null; + case 23: return BATCH_RECOGNIZE_METADATA; + case 0: return METADATA_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public MetadataCase getMetadataCase() { - return MetadataCase.forNumber(metadataCase_); + public MetadataCase + getMetadataCase() { + return MetadataCase.forNumber( + metadataCase_); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -215,14 +170,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -230,8 +182,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time the operation was created.
    * 
@@ -246,14 +196,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * The time the operation was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -261,14 +208,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * The time the operation was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return The updateTime. */ @java.lang.Override @@ -276,8 +220,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The time the operation was last updated.
    * 
@@ -290,18 +232,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int RESOURCE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object resource_ = ""; /** - * - * *
    * The resource path for the target of the operation.
    * 
* * string resource = 3; - * * @return The resource. */ @java.lang.Override @@ -310,29 +248,29 @@ public java.lang.String getResource() { 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(); resource_ = s; return s; } } /** - * - * *
    * The resource path for the target of the operation.
    * 
* * string resource = 3; - * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; 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); resource_ = b; return b; } else { @@ -341,18 +279,14 @@ public com.google.protobuf.ByteString getResourceBytes() { } public static final int METHOD_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object method_ = ""; /** - * - * *
    * The method that triggered the operation.
    * 
* * string method = 4; - * * @return The method. */ @java.lang.Override @@ -361,29 +295,29 @@ public java.lang.String getMethod() { 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(); method_ = s; return s; } } /** - * - * *
    * The method that triggered the operation.
    * 
* * string method = 4; - * * @return The bytes for method. */ @java.lang.Override - public com.google.protobuf.ByteString getMethodBytes() { + public com.google.protobuf.ByteString + getMethodBytes() { java.lang.Object ref = method_; 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); method_ = b; return b; } else { @@ -392,12 +326,9 @@ public com.google.protobuf.ByteString getMethodBytes() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** - * - * *
    * The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -406,7 +337,6 @@ public com.google.protobuf.ByteString getMethodBytes() {
    * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } - * * @return The kmsKeyName. */ @java.lang.Override @@ -415,15 +345,14 @@ public java.lang.String getKmsKeyName() { 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(); kmsKeyName_ = s; return s; } } /** - * - * *
    * The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -432,15 +361,16 @@ public java.lang.String getKmsKeyName() {
    * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -449,12 +379,9 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyVersionName_ = ""; /** - * - * *
    * The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -463,7 +390,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
    * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } - * * @return The kmsKeyVersionName. */ @java.lang.Override @@ -472,15 +398,14 @@ public java.lang.String getKmsKeyVersionName() { 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(); kmsKeyVersionName_ = s; return s; } } /** - * - * *
    * The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -489,15 +414,16 @@ public java.lang.String getKmsKeyVersionName() {
    * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKeyVersionName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -507,14 +433,11 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { public static final int BATCH_RECOGNIZE_REQUEST_FIELD_NUMBER = 8; /** - * - * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; - * * @return Whether the batchRecognizeRequest field is set. */ @java.lang.Override @@ -522,26 +445,21 @@ public boolean hasBatchRecognizeRequest() { return requestCase_ == 8; } /** - * - * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; - * * @return The batchRecognizeRequest. */ @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeRequest getBatchRecognizeRequest() { if (requestCase_ == 8) { - return (com.google.cloud.speech.v2.BatchRecognizeRequest) request_; + return (com.google.cloud.speech.v2.BatchRecognizeRequest) request_; } return com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance(); } /** - * - * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
@@ -549,24 +467,20 @@ public com.google.cloud.speech.v2.BatchRecognizeRequest getBatchRecognizeRequest * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder - getBatchRecognizeRequestOrBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder getBatchRecognizeRequestOrBuilder() { if (requestCase_ == 8) { - return (com.google.cloud.speech.v2.BatchRecognizeRequest) request_; + return (com.google.cloud.speech.v2.BatchRecognizeRequest) request_; } return com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance(); } public static final int CREATE_RECOGNIZER_REQUEST_FIELD_NUMBER = 9; /** - * - * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; - * * @return Whether the createRecognizerRequest field is set. */ @java.lang.Override @@ -574,26 +488,21 @@ public boolean hasCreateRecognizerRequest() { return requestCase_ == 9; } /** - * - * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; - * * @return The createRecognizerRequest. */ @java.lang.Override public com.google.cloud.speech.v2.CreateRecognizerRequest getCreateRecognizerRequest() { if (requestCase_ == 9) { - return (com.google.cloud.speech.v2.CreateRecognizerRequest) request_; + return (com.google.cloud.speech.v2.CreateRecognizerRequest) request_; } return com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance(); } /** - * - * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
@@ -601,24 +510,20 @@ public com.google.cloud.speech.v2.CreateRecognizerRequest getCreateRecognizerReq * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ @java.lang.Override - public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder - getCreateRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder getCreateRecognizerRequestOrBuilder() { if (requestCase_ == 9) { - return (com.google.cloud.speech.v2.CreateRecognizerRequest) request_; + return (com.google.cloud.speech.v2.CreateRecognizerRequest) request_; } return com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance(); } public static final int UPDATE_RECOGNIZER_REQUEST_FIELD_NUMBER = 10; /** - * - * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; - * * @return Whether the updateRecognizerRequest field is set. */ @java.lang.Override @@ -626,26 +531,21 @@ public boolean hasUpdateRecognizerRequest() { return requestCase_ == 10; } /** - * - * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; - * * @return The updateRecognizerRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UpdateRecognizerRequest getUpdateRecognizerRequest() { if (requestCase_ == 10) { - return (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_; + return (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_; } return com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance(); } /** - * - * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
@@ -653,24 +553,20 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequest getUpdateRecognizerReq * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder - getUpdateRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder getUpdateRecognizerRequestOrBuilder() { if (requestCase_ == 10) { - return (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_; + return (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_; } return com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance(); } public static final int DELETE_RECOGNIZER_REQUEST_FIELD_NUMBER = 11; /** - * - * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; - * * @return Whether the deleteRecognizerRequest field is set. */ @java.lang.Override @@ -678,26 +574,21 @@ public boolean hasDeleteRecognizerRequest() { return requestCase_ == 11; } /** - * - * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; - * * @return The deleteRecognizerRequest. */ @java.lang.Override public com.google.cloud.speech.v2.DeleteRecognizerRequest getDeleteRecognizerRequest() { if (requestCase_ == 11) { - return (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_; + return (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_; } return com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance(); } /** - * - * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
@@ -705,25 +596,20 @@ public com.google.cloud.speech.v2.DeleteRecognizerRequest getDeleteRecognizerReq * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ @java.lang.Override - public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder - getDeleteRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder getDeleteRecognizerRequestOrBuilder() { if (requestCase_ == 11) { - return (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_; + return (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_; } return com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance(); } public static final int UNDELETE_RECOGNIZER_REQUEST_FIELD_NUMBER = 12; /** - * - * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; * @return Whether the undeleteRecognizerRequest field is set. */ @java.lang.Override @@ -731,53 +617,42 @@ public boolean hasUndeleteRecognizerRequest() { return requestCase_ == 12; } /** - * - * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; * @return The undeleteRecognizerRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UndeleteRecognizerRequest getUndeleteRecognizerRequest() { if (requestCase_ == 12) { - return (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_; + return (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_; } return com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance(); } /** - * - * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; */ @java.lang.Override - public com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder - getUndeleteRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder getUndeleteRecognizerRequestOrBuilder() { if (requestCase_ == 12) { - return (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_; + return (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_; } return com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance(); } public static final int CREATE_CUSTOM_CLASS_REQUEST_FIELD_NUMBER = 13; /** - * - * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * * @return Whether the createCustomClassRequest field is set. */ @java.lang.Override @@ -785,26 +660,21 @@ public boolean hasCreateCustomClassRequest() { return requestCase_ == 13; } /** - * - * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * * @return The createCustomClassRequest. */ @java.lang.Override public com.google.cloud.speech.v2.CreateCustomClassRequest getCreateCustomClassRequest() { if (requestCase_ == 13) { - return (com.google.cloud.speech.v2.CreateCustomClassRequest) request_; + return (com.google.cloud.speech.v2.CreateCustomClassRequest) request_; } return com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance(); } /** - * - * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
@@ -812,24 +682,20 @@ public com.google.cloud.speech.v2.CreateCustomClassRequest getCreateCustomClassR * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ @java.lang.Override - public com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder - getCreateCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder getCreateCustomClassRequestOrBuilder() { if (requestCase_ == 13) { - return (com.google.cloud.speech.v2.CreateCustomClassRequest) request_; + return (com.google.cloud.speech.v2.CreateCustomClassRequest) request_; } return com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance(); } public static final int UPDATE_CUSTOM_CLASS_REQUEST_FIELD_NUMBER = 14; /** - * - * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * * @return Whether the updateCustomClassRequest field is set. */ @java.lang.Override @@ -837,26 +703,21 @@ public boolean hasUpdateCustomClassRequest() { return requestCase_ == 14; } /** - * - * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * * @return The updateCustomClassRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UpdateCustomClassRequest getUpdateCustomClassRequest() { if (requestCase_ == 14) { - return (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_; + return (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_; } return com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance(); } /** - * - * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
@@ -864,24 +725,20 @@ public com.google.cloud.speech.v2.UpdateCustomClassRequest getUpdateCustomClassR * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder - getUpdateCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder getUpdateCustomClassRequestOrBuilder() { if (requestCase_ == 14) { - return (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_; + return (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_; } return com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance(); } public static final int DELETE_CUSTOM_CLASS_REQUEST_FIELD_NUMBER = 15; /** - * - * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * * @return Whether the deleteCustomClassRequest field is set. */ @java.lang.Override @@ -889,26 +746,21 @@ public boolean hasDeleteCustomClassRequest() { return requestCase_ == 15; } /** - * - * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * * @return The deleteCustomClassRequest. */ @java.lang.Override public com.google.cloud.speech.v2.DeleteCustomClassRequest getDeleteCustomClassRequest() { if (requestCase_ == 15) { - return (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_; + return (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_; } return com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance(); } /** - * - * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
@@ -916,25 +768,20 @@ public com.google.cloud.speech.v2.DeleteCustomClassRequest getDeleteCustomClassR * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ @java.lang.Override - public com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder - getDeleteCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder getDeleteCustomClassRequestOrBuilder() { if (requestCase_ == 15) { - return (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_; + return (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_; } return com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance(); } public static final int UNDELETE_CUSTOM_CLASS_REQUEST_FIELD_NUMBER = 16; /** - * - * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; * @return Whether the undeleteCustomClassRequest field is set. */ @java.lang.Override @@ -942,53 +789,42 @@ public boolean hasUndeleteCustomClassRequest() { return requestCase_ == 16; } /** - * - * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; * @return The undeleteCustomClassRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UndeleteCustomClassRequest getUndeleteCustomClassRequest() { if (requestCase_ == 16) { - return (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_; + return (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_; } return com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance(); } /** - * - * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; */ @java.lang.Override - public com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder - getUndeleteCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder getUndeleteCustomClassRequestOrBuilder() { if (requestCase_ == 16) { - return (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_; + return (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_; } return com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance(); } public static final int CREATE_PHRASE_SET_REQUEST_FIELD_NUMBER = 17; /** - * - * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; - * * @return Whether the createPhraseSetRequest field is set. */ @java.lang.Override @@ -996,26 +832,21 @@ public boolean hasCreatePhraseSetRequest() { return requestCase_ == 17; } /** - * - * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; - * * @return The createPhraseSetRequest. */ @java.lang.Override public com.google.cloud.speech.v2.CreatePhraseSetRequest getCreatePhraseSetRequest() { if (requestCase_ == 17) { - return (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_; } return com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance(); } /** - * - * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
@@ -1023,24 +854,20 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequest getCreatePhraseSetReque * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ @java.lang.Override - public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder - getCreatePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder getCreatePhraseSetRequestOrBuilder() { if (requestCase_ == 17) { - return (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_; } return com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance(); } public static final int UPDATE_PHRASE_SET_REQUEST_FIELD_NUMBER = 18; /** - * - * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; - * * @return Whether the updatePhraseSetRequest field is set. */ @java.lang.Override @@ -1048,26 +875,21 @@ public boolean hasUpdatePhraseSetRequest() { return requestCase_ == 18; } /** - * - * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; - * * @return The updatePhraseSetRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UpdatePhraseSetRequest getUpdatePhraseSetRequest() { if (requestCase_ == 18) { - return (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_; } return com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance(); } /** - * - * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
@@ -1075,24 +897,20 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequest getUpdatePhraseSetReque * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder - getUpdatePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder getUpdatePhraseSetRequestOrBuilder() { if (requestCase_ == 18) { - return (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_; } return com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance(); } public static final int DELETE_PHRASE_SET_REQUEST_FIELD_NUMBER = 19; /** - * - * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; - * * @return Whether the deletePhraseSetRequest field is set. */ @java.lang.Override @@ -1100,26 +918,21 @@ public boolean hasDeletePhraseSetRequest() { return requestCase_ == 19; } /** - * - * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; - * * @return The deletePhraseSetRequest. */ @java.lang.Override public com.google.cloud.speech.v2.DeletePhraseSetRequest getDeletePhraseSetRequest() { if (requestCase_ == 19) { - return (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_; } return com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance(); } /** - * - * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
@@ -1127,24 +940,20 @@ public com.google.cloud.speech.v2.DeletePhraseSetRequest getDeletePhraseSetReque * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ @java.lang.Override - public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder - getDeletePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder getDeletePhraseSetRequestOrBuilder() { if (requestCase_ == 19) { - return (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_; } return com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance(); } public static final int UNDELETE_PHRASE_SET_REQUEST_FIELD_NUMBER = 20; /** - * - * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * * @return Whether the undeletePhraseSetRequest field is set. */ @java.lang.Override @@ -1152,26 +961,21 @@ public boolean hasUndeletePhraseSetRequest() { return requestCase_ == 20; } /** - * - * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * * @return The undeletePhraseSetRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UndeletePhraseSetRequest getUndeletePhraseSetRequest() { if (requestCase_ == 20) { - return (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_; } return com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance(); } /** - * - * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
@@ -1179,24 +983,20 @@ public com.google.cloud.speech.v2.UndeletePhraseSetRequest getUndeletePhraseSetR * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ @java.lang.Override - public com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder - getUndeletePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder getUndeletePhraseSetRequestOrBuilder() { if (requestCase_ == 20) { - return (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_; } return com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance(); } public static final int UPDATE_CONFIG_REQUEST_FIELD_NUMBER = 21; /** - * - * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; - * * @return Whether the updateConfigRequest field is set. */ @java.lang.Override @@ -1204,26 +1004,21 @@ public boolean hasUpdateConfigRequest() { return requestCase_ == 21; } /** - * - * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; - * * @return The updateConfigRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UpdateConfigRequest getUpdateConfigRequest() { if (requestCase_ == 21) { - return (com.google.cloud.speech.v2.UpdateConfigRequest) request_; + return (com.google.cloud.speech.v2.UpdateConfigRequest) request_; } return com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance(); } /** - * - * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
@@ -1233,7 +1028,7 @@ public com.google.cloud.speech.v2.UpdateConfigRequest getUpdateConfigRequest() { @java.lang.Override public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRequestOrBuilder() { if (requestCase_ == 21) { - return (com.google.cloud.speech.v2.UpdateConfigRequest) request_; + return (com.google.cloud.speech.v2.UpdateConfigRequest) request_; } return com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance(); } @@ -1241,15 +1036,12 @@ public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRe public static final int PROGRESS_PERCENT_FIELD_NUMBER = 22; private int progressPercent_ = 0; /** - * - * *
    * The percent progress of the Operation. Values can range from 0-100. If the
    * value is 100, then the operation is finished.
    * 
* * int32 progress_percent = 22; - * * @return The progressPercent. */ @java.lang.Override @@ -1259,14 +1051,11 @@ public int getProgressPercent() { public static final int BATCH_RECOGNIZE_METADATA_FIELD_NUMBER = 23; /** - * - * *
    * Metadata specific to the BatchRecognize method.
    * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; - * * @return Whether the batchRecognizeMetadata field is set. */ @java.lang.Override @@ -1274,26 +1063,21 @@ public boolean hasBatchRecognizeMetadata() { return metadataCase_ == 23; } /** - * - * *
    * Metadata specific to the BatchRecognize method.
    * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; - * * @return The batchRecognizeMetadata. */ @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeMetadata getBatchRecognizeMetadata() { if (metadataCase_ == 23) { - return (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_; + return (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_; } return com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance(); } /** - * - * *
    * Metadata specific to the BatchRecognize method.
    * 
@@ -1301,16 +1085,14 @@ public com.google.cloud.speech.v2.BatchRecognizeMetadata getBatchRecognizeMetada * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder - getBatchRecognizeMetadataOrBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder getBatchRecognizeMetadataOrBuilder() { if (metadataCase_ == 23) { - return (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_; + return (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_; } return com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1322,7 +1104,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -1399,10 +1182,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resource_); @@ -1417,82 +1202,68 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, kmsKeyVersionName_); } if (requestCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.cloud.speech.v2.BatchRecognizeRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.cloud.speech.v2.BatchRecognizeRequest) request_); } if (requestCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, (com.google.cloud.speech.v2.CreateRecognizerRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (com.google.cloud.speech.v2.CreateRecognizerRequest) request_); } if (requestCase_ == 10) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_); } if (requestCase_ == 11) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_); } if (requestCase_ == 12) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_); } if (requestCase_ == 13) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 13, (com.google.cloud.speech.v2.CreateCustomClassRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, (com.google.cloud.speech.v2.CreateCustomClassRequest) request_); } if (requestCase_ == 14) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 14, (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_); } if (requestCase_ == 15) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 15, (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_); } if (requestCase_ == 16) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 16, (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_); } if (requestCase_ == 17) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 17, (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_); } if (requestCase_ == 18) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 18, (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_); } if (requestCase_ == 19) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 19, (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_); } if (requestCase_ == 20) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 20, (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_); } if (requestCase_ == 21) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 21, (com.google.cloud.speech.v2.UpdateConfigRequest) request_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, (com.google.cloud.speech.v2.UpdateConfigRequest) request_); } if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(22, progressPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(22, progressPercent_); } if (metadataCase_ == 23) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 23, (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1502,76 +1273,90 @@ 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.v2.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v2.OperationMetadata other = - (com.google.cloud.speech.v2.OperationMetadata) obj; + com.google.cloud.speech.v2.OperationMetadata other = (com.google.cloud.speech.v2.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!getResource().equals(other.getResource())) return false; - if (!getMethod().equals(other.getMethod())) return false; - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; - if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; - if (getProgressPercent() != other.getProgressPercent()) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!getResource() + .equals(other.getResource())) return false; + if (!getMethod() + .equals(other.getMethod())) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; + if (!getKmsKeyVersionName() + .equals(other.getKmsKeyVersionName())) return false; + if (getProgressPercent() + != other.getProgressPercent()) return false; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 8: - if (!getBatchRecognizeRequest().equals(other.getBatchRecognizeRequest())) return false; + if (!getBatchRecognizeRequest() + .equals(other.getBatchRecognizeRequest())) return false; break; case 9: - if (!getCreateRecognizerRequest().equals(other.getCreateRecognizerRequest())) return false; + if (!getCreateRecognizerRequest() + .equals(other.getCreateRecognizerRequest())) return false; break; case 10: - if (!getUpdateRecognizerRequest().equals(other.getUpdateRecognizerRequest())) return false; + if (!getUpdateRecognizerRequest() + .equals(other.getUpdateRecognizerRequest())) return false; break; case 11: - if (!getDeleteRecognizerRequest().equals(other.getDeleteRecognizerRequest())) return false; + if (!getDeleteRecognizerRequest() + .equals(other.getDeleteRecognizerRequest())) return false; break; case 12: - if (!getUndeleteRecognizerRequest().equals(other.getUndeleteRecognizerRequest())) - return false; + if (!getUndeleteRecognizerRequest() + .equals(other.getUndeleteRecognizerRequest())) return false; break; case 13: - if (!getCreateCustomClassRequest().equals(other.getCreateCustomClassRequest())) - return false; + if (!getCreateCustomClassRequest() + .equals(other.getCreateCustomClassRequest())) return false; break; case 14: - if (!getUpdateCustomClassRequest().equals(other.getUpdateCustomClassRequest())) - return false; + if (!getUpdateCustomClassRequest() + .equals(other.getUpdateCustomClassRequest())) return false; break; case 15: - if (!getDeleteCustomClassRequest().equals(other.getDeleteCustomClassRequest())) - return false; + if (!getDeleteCustomClassRequest() + .equals(other.getDeleteCustomClassRequest())) return false; break; case 16: - if (!getUndeleteCustomClassRequest().equals(other.getUndeleteCustomClassRequest())) - return false; + if (!getUndeleteCustomClassRequest() + .equals(other.getUndeleteCustomClassRequest())) return false; break; case 17: - if (!getCreatePhraseSetRequest().equals(other.getCreatePhraseSetRequest())) return false; + if (!getCreatePhraseSetRequest() + .equals(other.getCreatePhraseSetRequest())) return false; break; case 18: - if (!getUpdatePhraseSetRequest().equals(other.getUpdatePhraseSetRequest())) return false; + if (!getUpdatePhraseSetRequest() + .equals(other.getUpdatePhraseSetRequest())) return false; break; case 19: - if (!getDeletePhraseSetRequest().equals(other.getDeletePhraseSetRequest())) return false; + if (!getDeletePhraseSetRequest() + .equals(other.getDeletePhraseSetRequest())) return false; break; case 20: - if (!getUndeletePhraseSetRequest().equals(other.getUndeletePhraseSetRequest())) - return false; + if (!getUndeletePhraseSetRequest() + .equals(other.getUndeletePhraseSetRequest())) return false; break; case 21: - if (!getUpdateConfigRequest().equals(other.getUpdateConfigRequest())) return false; + if (!getUpdateConfigRequest() + .equals(other.getUpdateConfigRequest())) return false; break; case 0: default: @@ -1579,7 +1364,8 @@ public boolean equals(final java.lang.Object obj) { if (!getMetadataCase().equals(other.getMetadataCase())) return false; switch (metadataCase_) { case 23: - if (!getBatchRecognizeMetadata().equals(other.getBatchRecognizeMetadata())) return false; + if (!getBatchRecognizeMetadata() + .equals(other.getBatchRecognizeMetadata())) return false; break; case 0: default: @@ -1686,136 +1472,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.OperationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.OperationMetadata 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.v2.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.OperationMetadata 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.v2.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.OperationMetadata 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.v2.OperationMetadata 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.v2.OperationMetadata 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.v2.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.OperationMetadata 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.v2.OperationMetadata 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.v2.OperationMetadata 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.v2.OperationMetadata 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; } /** - * - * *
    * Represents the metadata of a long-running operation.
    * 
* * Protobuf type {@code google.cloud.speech.v2.OperationMetadata} */ - 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.v2.OperationMetadata) com.google.cloud.speech.v2.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.OperationMetadata.class, - com.google.cloud.speech.v2.OperationMetadata.Builder.class); + com.google.cloud.speech.v2.OperationMetadata.class, com.google.cloud.speech.v2.OperationMetadata.Builder.class); } // Construct using com.google.cloud.speech.v2.OperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1888,9 +1668,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; } @java.lang.Override @@ -1909,11 +1689,8 @@ public com.google.cloud.speech.v2.OperationMetadata build() { @java.lang.Override public com.google.cloud.speech.v2.OperationMetadata buildPartial() { - com.google.cloud.speech.v2.OperationMetadata result = - new com.google.cloud.speech.v2.OperationMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v2.OperationMetadata result = new com.google.cloud.speech.v2.OperationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -1922,10 +1699,14 @@ public com.google.cloud.speech.v2.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.speech.v2.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.resource_ = resource_; @@ -1947,51 +1728,66 @@ private void buildPartial0(com.google.cloud.speech.v2.OperationMetadata result) private void buildPartialOneofs(com.google.cloud.speech.v2.OperationMetadata result) { result.requestCase_ = requestCase_; result.request_ = this.request_; - if (requestCase_ == 8 && batchRecognizeRequestBuilder_ != null) { + if (requestCase_ == 8 && + batchRecognizeRequestBuilder_ != null) { result.request_ = batchRecognizeRequestBuilder_.build(); } - if (requestCase_ == 9 && createRecognizerRequestBuilder_ != null) { + if (requestCase_ == 9 && + createRecognizerRequestBuilder_ != null) { result.request_ = createRecognizerRequestBuilder_.build(); } - if (requestCase_ == 10 && updateRecognizerRequestBuilder_ != null) { + if (requestCase_ == 10 && + updateRecognizerRequestBuilder_ != null) { result.request_ = updateRecognizerRequestBuilder_.build(); } - if (requestCase_ == 11 && deleteRecognizerRequestBuilder_ != null) { + if (requestCase_ == 11 && + deleteRecognizerRequestBuilder_ != null) { result.request_ = deleteRecognizerRequestBuilder_.build(); } - if (requestCase_ == 12 && undeleteRecognizerRequestBuilder_ != null) { + if (requestCase_ == 12 && + undeleteRecognizerRequestBuilder_ != null) { result.request_ = undeleteRecognizerRequestBuilder_.build(); } - if (requestCase_ == 13 && createCustomClassRequestBuilder_ != null) { + if (requestCase_ == 13 && + createCustomClassRequestBuilder_ != null) { result.request_ = createCustomClassRequestBuilder_.build(); } - if (requestCase_ == 14 && updateCustomClassRequestBuilder_ != null) { + if (requestCase_ == 14 && + updateCustomClassRequestBuilder_ != null) { result.request_ = updateCustomClassRequestBuilder_.build(); } - if (requestCase_ == 15 && deleteCustomClassRequestBuilder_ != null) { + if (requestCase_ == 15 && + deleteCustomClassRequestBuilder_ != null) { result.request_ = deleteCustomClassRequestBuilder_.build(); } - if (requestCase_ == 16 && undeleteCustomClassRequestBuilder_ != null) { + if (requestCase_ == 16 && + undeleteCustomClassRequestBuilder_ != null) { result.request_ = undeleteCustomClassRequestBuilder_.build(); } - if (requestCase_ == 17 && createPhraseSetRequestBuilder_ != null) { + if (requestCase_ == 17 && + createPhraseSetRequestBuilder_ != null) { result.request_ = createPhraseSetRequestBuilder_.build(); } - if (requestCase_ == 18 && updatePhraseSetRequestBuilder_ != null) { + if (requestCase_ == 18 && + updatePhraseSetRequestBuilder_ != null) { result.request_ = updatePhraseSetRequestBuilder_.build(); } - if (requestCase_ == 19 && deletePhraseSetRequestBuilder_ != null) { + if (requestCase_ == 19 && + deletePhraseSetRequestBuilder_ != null) { result.request_ = deletePhraseSetRequestBuilder_.build(); } - if (requestCase_ == 20 && undeletePhraseSetRequestBuilder_ != null) { + if (requestCase_ == 20 && + undeletePhraseSetRequestBuilder_ != null) { result.request_ = undeletePhraseSetRequestBuilder_.build(); } - if (requestCase_ == 21 && updateConfigRequestBuilder_ != null) { + if (requestCase_ == 21 && + updateConfigRequestBuilder_ != null) { result.request_ = updateConfigRequestBuilder_.build(); } result.metadataCase_ = metadataCase_; result.metadata_ = this.metadata_; - if (metadataCase_ == 23 && batchRecognizeMetadataBuilder_ != null) { + if (metadataCase_ == 23 && + batchRecognizeMetadataBuilder_ != null) { result.metadata_ = batchRecognizeMetadataBuilder_.build(); } } @@ -2000,39 +1796,38 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.OperationMetadata res 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.v2.OperationMetadata) { - return mergeFrom((com.google.cloud.speech.v2.OperationMetadata) other); + return mergeFrom((com.google.cloud.speech.v2.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -2071,91 +1866,74 @@ public Builder mergeFrom(com.google.cloud.speech.v2.OperationMetadata other) { setProgressPercent(other.getProgressPercent()); } switch (other.getRequestCase()) { - case BATCH_RECOGNIZE_REQUEST: - { - mergeBatchRecognizeRequest(other.getBatchRecognizeRequest()); - break; - } - case CREATE_RECOGNIZER_REQUEST: - { - mergeCreateRecognizerRequest(other.getCreateRecognizerRequest()); - break; - } - case UPDATE_RECOGNIZER_REQUEST: - { - mergeUpdateRecognizerRequest(other.getUpdateRecognizerRequest()); - break; - } - case DELETE_RECOGNIZER_REQUEST: - { - mergeDeleteRecognizerRequest(other.getDeleteRecognizerRequest()); - break; - } - case UNDELETE_RECOGNIZER_REQUEST: - { - mergeUndeleteRecognizerRequest(other.getUndeleteRecognizerRequest()); - break; - } - case CREATE_CUSTOM_CLASS_REQUEST: - { - mergeCreateCustomClassRequest(other.getCreateCustomClassRequest()); - break; - } - case UPDATE_CUSTOM_CLASS_REQUEST: - { - mergeUpdateCustomClassRequest(other.getUpdateCustomClassRequest()); - break; - } - case DELETE_CUSTOM_CLASS_REQUEST: - { - mergeDeleteCustomClassRequest(other.getDeleteCustomClassRequest()); - break; - } - case UNDELETE_CUSTOM_CLASS_REQUEST: - { - mergeUndeleteCustomClassRequest(other.getUndeleteCustomClassRequest()); - break; - } - case CREATE_PHRASE_SET_REQUEST: - { - mergeCreatePhraseSetRequest(other.getCreatePhraseSetRequest()); - break; - } - case UPDATE_PHRASE_SET_REQUEST: - { - mergeUpdatePhraseSetRequest(other.getUpdatePhraseSetRequest()); - break; - } - case DELETE_PHRASE_SET_REQUEST: - { - mergeDeletePhraseSetRequest(other.getDeletePhraseSetRequest()); - break; - } - case UNDELETE_PHRASE_SET_REQUEST: - { - mergeUndeletePhraseSetRequest(other.getUndeletePhraseSetRequest()); - break; - } - case UPDATE_CONFIG_REQUEST: - { - mergeUpdateConfigRequest(other.getUpdateConfigRequest()); - break; - } - case REQUEST_NOT_SET: - { - break; - } + case BATCH_RECOGNIZE_REQUEST: { + mergeBatchRecognizeRequest(other.getBatchRecognizeRequest()); + break; + } + case CREATE_RECOGNIZER_REQUEST: { + mergeCreateRecognizerRequest(other.getCreateRecognizerRequest()); + break; + } + case UPDATE_RECOGNIZER_REQUEST: { + mergeUpdateRecognizerRequest(other.getUpdateRecognizerRequest()); + break; + } + case DELETE_RECOGNIZER_REQUEST: { + mergeDeleteRecognizerRequest(other.getDeleteRecognizerRequest()); + break; + } + case UNDELETE_RECOGNIZER_REQUEST: { + mergeUndeleteRecognizerRequest(other.getUndeleteRecognizerRequest()); + break; + } + case CREATE_CUSTOM_CLASS_REQUEST: { + mergeCreateCustomClassRequest(other.getCreateCustomClassRequest()); + break; + } + case UPDATE_CUSTOM_CLASS_REQUEST: { + mergeUpdateCustomClassRequest(other.getUpdateCustomClassRequest()); + break; + } + case DELETE_CUSTOM_CLASS_REQUEST: { + mergeDeleteCustomClassRequest(other.getDeleteCustomClassRequest()); + break; + } + case UNDELETE_CUSTOM_CLASS_REQUEST: { + mergeUndeleteCustomClassRequest(other.getUndeleteCustomClassRequest()); + break; + } + case CREATE_PHRASE_SET_REQUEST: { + mergeCreatePhraseSetRequest(other.getCreatePhraseSetRequest()); + break; + } + case UPDATE_PHRASE_SET_REQUEST: { + mergeUpdatePhraseSetRequest(other.getUpdatePhraseSetRequest()); + break; + } + case DELETE_PHRASE_SET_REQUEST: { + mergeDeletePhraseSetRequest(other.getDeletePhraseSetRequest()); + break; + } + case UNDELETE_PHRASE_SET_REQUEST: { + mergeUndeletePhraseSetRequest(other.getUndeletePhraseSetRequest()); + break; + } + case UPDATE_CONFIG_REQUEST: { + mergeUpdateConfigRequest(other.getUpdateConfigRequest()); + break; + } + case REQUEST_NOT_SET: { + break; + } } switch (other.getMetadataCase()) { - case BATCH_RECOGNIZE_METADATA: - { - mergeBatchRecognizeMetadata(other.getBatchRecognizeMetadata()); - break; - } - case METADATA_NOT_SET: - { - break; - } + case BATCH_RECOGNIZE_METADATA: { + mergeBatchRecognizeMetadata(other.getBatchRecognizeMetadata()); + break; + } + case METADATA_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2183,160 +1961,156 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - resource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - method_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: - { - kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 58: - { - kmsKeyVersionName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: - { - input.readMessage( - getBatchRecognizeRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 8; - break; - } // case 66 - case 74: - { - input.readMessage( - getCreateRecognizerRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 9; - break; - } // case 74 - case 82: - { - input.readMessage( - getUpdateRecognizerRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 10; - break; - } // case 82 - case 90: - { - input.readMessage( - getDeleteRecognizerRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 11; - break; - } // case 90 - case 98: - { - input.readMessage( - getUndeleteRecognizerRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 12; - break; - } // case 98 - case 106: - { - input.readMessage( - getCreateCustomClassRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 13; - break; - } // case 106 - case 114: - { - input.readMessage( - getUpdateCustomClassRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 14; - break; - } // case 114 - case 122: - { - input.readMessage( - getDeleteCustomClassRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 15; - break; - } // case 122 - case 130: - { - input.readMessage( - getUndeleteCustomClassRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 16; - break; - } // case 130 - case 138: - { - input.readMessage( - getCreatePhraseSetRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 17; - break; - } // case 138 - case 146: - { - input.readMessage( - getUpdatePhraseSetRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 18; - break; - } // case 146 - case 154: - { - input.readMessage( - getDeletePhraseSetRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 19; - break; - } // case 154 - case 162: - { - input.readMessage( - getUndeletePhraseSetRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 20; - break; - } // case 162 - case 170: - { - input.readMessage( - getUpdateConfigRequestFieldBuilder().getBuilder(), extensionRegistry); - requestCase_ = 21; - break; - } // case 170 - case 176: - { - progressPercent_ = input.readInt32(); - bitField0_ |= 0x00100000; - break; - } // case 176 - case 186: - { - input.readMessage( - getBatchRecognizeMetadataFieldBuilder().getBuilder(), extensionRegistry); - metadataCase_ = 23; - break; - } // case 186 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + method_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: { + kmsKeyVersionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: { + input.readMessage( + getBatchRecognizeRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 8; + break; + } // case 66 + case 74: { + input.readMessage( + getCreateRecognizerRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 9; + break; + } // case 74 + case 82: { + input.readMessage( + getUpdateRecognizerRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 10; + break; + } // case 82 + case 90: { + input.readMessage( + getDeleteRecognizerRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 11; + break; + } // case 90 + case 98: { + input.readMessage( + getUndeleteRecognizerRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 12; + break; + } // case 98 + case 106: { + input.readMessage( + getCreateCustomClassRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 13; + break; + } // case 106 + case 114: { + input.readMessage( + getUpdateCustomClassRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 14; + break; + } // case 114 + case 122: { + input.readMessage( + getDeleteCustomClassRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 15; + break; + } // case 122 + case 130: { + input.readMessage( + getUndeleteCustomClassRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 16; + break; + } // case 130 + case 138: { + input.readMessage( + getCreatePhraseSetRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 17; + break; + } // case 138 + case 146: { + input.readMessage( + getUpdatePhraseSetRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 18; + break; + } // case 146 + case 154: { + input.readMessage( + getDeletePhraseSetRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 19; + break; + } // case 154 + case 162: { + input.readMessage( + getUndeletePhraseSetRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 20; + break; + } // case 162 + case 170: { + input.readMessage( + getUpdateConfigRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 21; + break; + } // case 170 + case 176: { + progressPercent_ = input.readInt32(); + bitField0_ |= 0x00100000; + break; + } // case 176 + case 186: { + input.readMessage( + getBatchRecognizeMetadataFieldBuilder().getBuilder(), + extensionRegistry); + metadataCase_ = 23; + break; + } // case 186 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2346,12 +2120,12 @@ public Builder mergeFrom( } // finally return this; } - private int requestCase_ = 0; private java.lang.Object request_; - - public RequestCase getRequestCase() { - return RequestCase.forNumber(requestCase_); + public RequestCase + getRequestCase() { + return RequestCase.forNumber( + requestCase_); } public Builder clearRequest() { @@ -2363,9 +2137,10 @@ public Builder clearRequest() { private int metadataCase_ = 0; private java.lang.Object metadata_; - - public MetadataCase getMetadataCase() { - return MetadataCase.forNumber(metadataCase_); + public MetadataCase + getMetadataCase() { + return MetadataCase.forNumber( + metadataCase_); } public Builder clearMetadata() { @@ -2379,47 +2154,34 @@ public Builder clearMetadata() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The time the operation was created.
      * 
@@ -2440,15 +2202,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2459,8 +2220,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -2469,9 +2228,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2484,8 +2243,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -2503,8 +2260,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -2517,8 +2272,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the operation was created.
      * 
@@ -2529,14 +2282,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time the operation was created.
      * 
@@ -2544,17 +2294,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2562,47 +2309,34 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * The time the operation was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The time the operation was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * The time the operation was last updated.
      * 
@@ -2623,15 +2357,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 2; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -2642,8 +2375,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time the operation was last updated.
      * 
@@ -2652,9 +2383,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -2667,8 +2398,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was last updated.
      * 
@@ -2686,8 +2415,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * The time the operation was last updated.
      * 
@@ -2700,8 +2427,6 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the operation was last updated.
      * 
@@ -2712,14 +2437,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * The time the operation was last updated.
      * 
@@ -2727,17 +2449,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2745,20 +2464,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object resource_ = ""; /** - * - * *
      * The resource path for the target of the operation.
      * 
* * string resource = 3; - * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; 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(); resource_ = s; return s; @@ -2767,21 +2484,20 @@ public java.lang.String getResource() { } } /** - * - * *
      * The resource path for the target of the operation.
      * 
* * string resource = 3; - * * @return The bytes for resource. */ - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; 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); resource_ = b; return b; } else { @@ -2789,35 +2505,28 @@ public com.google.protobuf.ByteString getResourceBytes() { } } /** - * - * *
      * The resource path for the target of the operation.
      * 
* * string resource = 3; - * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResource( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } resource_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The resource path for the target of the operation.
      * 
* * string resource = 3; - * * @return This builder for chaining. */ public Builder clearResource() { @@ -2827,21 +2536,17 @@ public Builder clearResource() { return this; } /** - * - * *
      * The resource path for the target of the operation.
      * 
* * string resource = 3; - * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resource_ = value; bitField0_ |= 0x00000004; @@ -2851,20 +2556,18 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { private java.lang.Object method_ = ""; /** - * - * *
      * The method that triggered the operation.
      * 
* * string method = 4; - * * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; 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(); method_ = s; return s; @@ -2873,21 +2576,20 @@ public java.lang.String getMethod() { } } /** - * - * *
      * The method that triggered the operation.
      * 
* * string method = 4; - * * @return The bytes for method. */ - public com.google.protobuf.ByteString getMethodBytes() { + public com.google.protobuf.ByteString + getMethodBytes() { java.lang.Object ref = method_; 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); method_ = b; return b; } else { @@ -2895,35 +2597,28 @@ public com.google.protobuf.ByteString getMethodBytes() { } } /** - * - * *
      * The method that triggered the operation.
      * 
* * string method = 4; - * * @param value The method to set. * @return This builder for chaining. */ - public Builder setMethod(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMethod( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } method_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The method that triggered the operation.
      * 
* * string method = 4; - * * @return This builder for chaining. */ public Builder clearMethod() { @@ -2933,21 +2628,17 @@ public Builder clearMethod() { return this; } /** - * - * *
      * The method that triggered the operation.
      * 
* * string method = 4; - * * @param value The bytes for method to set. * @return This builder for chaining. */ - public Builder setMethodBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMethodBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); method_ = value; bitField0_ |= 0x00000008; @@ -2957,8 +2648,6 @@ public Builder setMethodBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyName_ = ""; /** - * - * *
      * The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -2967,13 +2656,13 @@ public Builder setMethodBytes(com.google.protobuf.ByteString value) {
      * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } - * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; 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(); kmsKeyName_ = s; return s; @@ -2982,8 +2671,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
      * The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -2992,14 +2679,15 @@ public java.lang.String getKmsKeyName() {
      * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -3007,8 +2695,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
      * The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3017,22 +2703,18 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
      * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } - * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3041,7 +2723,6 @@ public Builder setKmsKeyName(java.lang.String value) {
      * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -3051,8 +2732,6 @@ public Builder clearKmsKeyName() { return this; } /** - * - * *
      * The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3061,14 +2740,12 @@ public Builder clearKmsKeyName() {
      * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00000010; @@ -3078,8 +2755,6 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyVersionName_ = ""; /** - * - * *
      * The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3088,13 +2763,13 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } - * * @return The kmsKeyVersionName. */ public java.lang.String getKmsKeyVersionName() { java.lang.Object ref = kmsKeyVersionName_; 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(); kmsKeyVersionName_ = s; return s; @@ -3103,8 +2778,6 @@ public java.lang.String getKmsKeyVersionName() { } } /** - * - * *
      * The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3113,14 +2786,15 @@ public java.lang.String getKmsKeyVersionName() {
      * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKeyVersionName. */ - public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -3128,8 +2802,6 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { } } /** - * - * *
      * The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3138,22 +2810,18 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() {
      * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } - * * @param value The kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyVersionName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyVersionName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3162,7 +2830,6 @@ public Builder setKmsKeyVersionName(java.lang.String value) {
      * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { @@ -3172,8 +2839,6 @@ public Builder clearKmsKeyVersionName() { return this; } /** - * - * *
      * The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3182,14 +2847,12 @@ public Builder clearKmsKeyVersionName() {
      * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyVersionNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyVersionName_ = value; bitField0_ |= 0x00000020; @@ -3198,19 +2861,13 @@ public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeRequest, - com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, - com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder> - batchRecognizeRequestBuilder_; + com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder> batchRecognizeRequestBuilder_; /** - * - * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; - * * @return Whether the batchRecognizeRequest field is set. */ @java.lang.Override @@ -3218,14 +2875,11 @@ public boolean hasBatchRecognizeRequest() { return requestCase_ == 8; } /** - * - * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; - * * @return The batchRecognizeRequest. */ @java.lang.Override @@ -3243,16 +2897,13 @@ public com.google.cloud.speech.v2.BatchRecognizeRequest getBatchRecognizeRequest } } /** - * - * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ - public Builder setBatchRecognizeRequest( - com.google.cloud.speech.v2.BatchRecognizeRequest value) { + public Builder setBatchRecognizeRequest(com.google.cloud.speech.v2.BatchRecognizeRequest value) { if (batchRecognizeRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3266,8 +2917,6 @@ public Builder setBatchRecognizeRequest( return this; } /** - * - * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
@@ -3286,24 +2935,18 @@ public Builder setBatchRecognizeRequest( return this; } /** - * - * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ - public Builder mergeBatchRecognizeRequest( - com.google.cloud.speech.v2.BatchRecognizeRequest value) { + public Builder mergeBatchRecognizeRequest(com.google.cloud.speech.v2.BatchRecognizeRequest value) { if (batchRecognizeRequestBuilder_ == null) { - if (requestCase_ == 8 - && request_ != com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.BatchRecognizeRequest.newBuilder( - (com.google.cloud.speech.v2.BatchRecognizeRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 8 && + request_ != com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.BatchRecognizeRequest.newBuilder((com.google.cloud.speech.v2.BatchRecognizeRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -3319,8 +2962,6 @@ public Builder mergeBatchRecognizeRequest( return this; } /** - * - * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
@@ -3344,21 +2985,16 @@ public Builder clearBatchRecognizeRequest() { return this; } /** - * - * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ - public com.google.cloud.speech.v2.BatchRecognizeRequest.Builder - getBatchRecognizeRequestBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeRequest.Builder getBatchRecognizeRequestBuilder() { return getBatchRecognizeRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
@@ -3366,8 +3002,7 @@ public Builder clearBatchRecognizeRequest() { * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder - getBatchRecognizeRequestOrBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder getBatchRecognizeRequestOrBuilder() { if ((requestCase_ == 8) && (batchRecognizeRequestBuilder_ != null)) { return batchRecognizeRequestBuilder_.getMessageOrBuilder(); } else { @@ -3378,8 +3013,6 @@ public Builder clearBatchRecognizeRequest() { } } /** - * - * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
@@ -3387,19 +3020,14 @@ public Builder clearBatchRecognizeRequest() { * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeRequest, - com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, - com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder> + com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder> getBatchRecognizeRequestFieldBuilder() { if (batchRecognizeRequestBuilder_ == null) { if (!(requestCase_ == 8)) { request_ = com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance(); } - batchRecognizeRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeRequest, - com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, - com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder>( + batchRecognizeRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder>( (com.google.cloud.speech.v2.BatchRecognizeRequest) request_, getParentForChildren(), isClean()); @@ -3411,19 +3039,13 @@ public Builder clearBatchRecognizeRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateRecognizerRequest, - com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, - com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder> - createRecognizerRequestBuilder_; + com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder> createRecognizerRequestBuilder_; /** - * - * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; - * * @return Whether the createRecognizerRequest field is set. */ @java.lang.Override @@ -3431,14 +3053,11 @@ public boolean hasCreateRecognizerRequest() { return requestCase_ == 9; } /** - * - * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; - * * @return The createRecognizerRequest. */ @java.lang.Override @@ -3456,16 +3075,13 @@ public com.google.cloud.speech.v2.CreateRecognizerRequest getCreateRecognizerReq } } /** - * - * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ - public Builder setCreateRecognizerRequest( - com.google.cloud.speech.v2.CreateRecognizerRequest value) { + public Builder setCreateRecognizerRequest(com.google.cloud.speech.v2.CreateRecognizerRequest value) { if (createRecognizerRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3479,8 +3095,6 @@ public Builder setCreateRecognizerRequest( return this; } /** - * - * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
@@ -3499,25 +3113,18 @@ public Builder setCreateRecognizerRequest( return this; } /** - * - * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ - public Builder mergeCreateRecognizerRequest( - com.google.cloud.speech.v2.CreateRecognizerRequest value) { + public Builder mergeCreateRecognizerRequest(com.google.cloud.speech.v2.CreateRecognizerRequest value) { if (createRecognizerRequestBuilder_ == null) { - if (requestCase_ == 9 - && request_ - != com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.CreateRecognizerRequest.newBuilder( - (com.google.cloud.speech.v2.CreateRecognizerRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 9 && + request_ != com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.CreateRecognizerRequest.newBuilder((com.google.cloud.speech.v2.CreateRecognizerRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -3533,8 +3140,6 @@ public Builder mergeCreateRecognizerRequest( return this; } /** - * - * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
@@ -3558,21 +3163,16 @@ public Builder clearCreateRecognizerRequest() { return this; } /** - * - * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ - public com.google.cloud.speech.v2.CreateRecognizerRequest.Builder - getCreateRecognizerRequestBuilder() { + public com.google.cloud.speech.v2.CreateRecognizerRequest.Builder getCreateRecognizerRequestBuilder() { return getCreateRecognizerRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
@@ -3580,8 +3180,7 @@ public Builder clearCreateRecognizerRequest() { * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ @java.lang.Override - public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder - getCreateRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder getCreateRecognizerRequestOrBuilder() { if ((requestCase_ == 9) && (createRecognizerRequestBuilder_ != null)) { return createRecognizerRequestBuilder_.getMessageOrBuilder(); } else { @@ -3592,8 +3191,6 @@ public Builder clearCreateRecognizerRequest() { } } /** - * - * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
@@ -3601,19 +3198,14 @@ public Builder clearCreateRecognizerRequest() { * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateRecognizerRequest, - com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, - com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder> + com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder> getCreateRecognizerRequestFieldBuilder() { if (createRecognizerRequestBuilder_ == null) { if (!(requestCase_ == 9)) { request_ = com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance(); } - createRecognizerRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateRecognizerRequest, - com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, - com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder>( + createRecognizerRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder>( (com.google.cloud.speech.v2.CreateRecognizerRequest) request_, getParentForChildren(), isClean()); @@ -3625,19 +3217,13 @@ public Builder clearCreateRecognizerRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateRecognizerRequest, - com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, - com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder> - updateRecognizerRequestBuilder_; + com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder> updateRecognizerRequestBuilder_; /** - * - * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; - * * @return Whether the updateRecognizerRequest field is set. */ @java.lang.Override @@ -3645,14 +3231,11 @@ public boolean hasUpdateRecognizerRequest() { return requestCase_ == 10; } /** - * - * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; - * * @return The updateRecognizerRequest. */ @java.lang.Override @@ -3670,16 +3253,13 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequest getUpdateRecognizerReq } } /** - * - * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ - public Builder setUpdateRecognizerRequest( - com.google.cloud.speech.v2.UpdateRecognizerRequest value) { + public Builder setUpdateRecognizerRequest(com.google.cloud.speech.v2.UpdateRecognizerRequest value) { if (updateRecognizerRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3693,8 +3273,6 @@ public Builder setUpdateRecognizerRequest( return this; } /** - * - * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
@@ -3713,25 +3291,18 @@ public Builder setUpdateRecognizerRequest( return this; } /** - * - * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ - public Builder mergeUpdateRecognizerRequest( - com.google.cloud.speech.v2.UpdateRecognizerRequest value) { + public Builder mergeUpdateRecognizerRequest(com.google.cloud.speech.v2.UpdateRecognizerRequest value) { if (updateRecognizerRequestBuilder_ == null) { - if (requestCase_ == 10 - && request_ - != com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.UpdateRecognizerRequest.newBuilder( - (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 10 && + request_ != com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.UpdateRecognizerRequest.newBuilder((com.google.cloud.speech.v2.UpdateRecognizerRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -3747,8 +3318,6 @@ public Builder mergeUpdateRecognizerRequest( return this; } /** - * - * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
@@ -3772,21 +3341,16 @@ public Builder clearUpdateRecognizerRequest() { return this; } /** - * - * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ - public com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder - getUpdateRecognizerRequestBuilder() { + public com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder getUpdateRecognizerRequestBuilder() { return getUpdateRecognizerRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
@@ -3794,8 +3358,7 @@ public Builder clearUpdateRecognizerRequest() { * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder - getUpdateRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder getUpdateRecognizerRequestOrBuilder() { if ((requestCase_ == 10) && (updateRecognizerRequestBuilder_ != null)) { return updateRecognizerRequestBuilder_.getMessageOrBuilder(); } else { @@ -3806,8 +3369,6 @@ public Builder clearUpdateRecognizerRequest() { } } /** - * - * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
@@ -3815,19 +3376,14 @@ public Builder clearUpdateRecognizerRequest() { * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateRecognizerRequest, - com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, - com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder> + com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder> getUpdateRecognizerRequestFieldBuilder() { if (updateRecognizerRequestBuilder_ == null) { if (!(requestCase_ == 10)) { request_ = com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance(); } - updateRecognizerRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateRecognizerRequest, - com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, - com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder>( + updateRecognizerRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder>( (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_, getParentForChildren(), isClean()); @@ -3839,19 +3395,13 @@ public Builder clearUpdateRecognizerRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteRecognizerRequest, - com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, - com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder> - deleteRecognizerRequestBuilder_; + com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder> deleteRecognizerRequestBuilder_; /** - * - * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; - * * @return Whether the deleteRecognizerRequest field is set. */ @java.lang.Override @@ -3859,14 +3409,11 @@ public boolean hasDeleteRecognizerRequest() { return requestCase_ == 11; } /** - * - * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; - * * @return The deleteRecognizerRequest. */ @java.lang.Override @@ -3884,16 +3431,13 @@ public com.google.cloud.speech.v2.DeleteRecognizerRequest getDeleteRecognizerReq } } /** - * - * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ - public Builder setDeleteRecognizerRequest( - com.google.cloud.speech.v2.DeleteRecognizerRequest value) { + public Builder setDeleteRecognizerRequest(com.google.cloud.speech.v2.DeleteRecognizerRequest value) { if (deleteRecognizerRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3907,8 +3451,6 @@ public Builder setDeleteRecognizerRequest( return this; } /** - * - * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
@@ -3927,25 +3469,18 @@ public Builder setDeleteRecognizerRequest( return this; } /** - * - * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ - public Builder mergeDeleteRecognizerRequest( - com.google.cloud.speech.v2.DeleteRecognizerRequest value) { + public Builder mergeDeleteRecognizerRequest(com.google.cloud.speech.v2.DeleteRecognizerRequest value) { if (deleteRecognizerRequestBuilder_ == null) { - if (requestCase_ == 11 - && request_ - != com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.DeleteRecognizerRequest.newBuilder( - (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 11 && + request_ != com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.DeleteRecognizerRequest.newBuilder((com.google.cloud.speech.v2.DeleteRecognizerRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -3961,8 +3496,6 @@ public Builder mergeDeleteRecognizerRequest( return this; } /** - * - * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
@@ -3986,21 +3519,16 @@ public Builder clearDeleteRecognizerRequest() { return this; } /** - * - * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ - public com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder - getDeleteRecognizerRequestBuilder() { + public com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder getDeleteRecognizerRequestBuilder() { return getDeleteRecognizerRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
@@ -4008,8 +3536,7 @@ public Builder clearDeleteRecognizerRequest() { * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ @java.lang.Override - public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder - getDeleteRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder getDeleteRecognizerRequestOrBuilder() { if ((requestCase_ == 11) && (deleteRecognizerRequestBuilder_ != null)) { return deleteRecognizerRequestBuilder_.getMessageOrBuilder(); } else { @@ -4020,8 +3547,6 @@ public Builder clearDeleteRecognizerRequest() { } } /** - * - * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
@@ -4029,19 +3554,14 @@ public Builder clearDeleteRecognizerRequest() { * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteRecognizerRequest, - com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, - com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder> + com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder> getDeleteRecognizerRequestFieldBuilder() { if (deleteRecognizerRequestBuilder_ == null) { if (!(requestCase_ == 11)) { request_ = com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance(); } - deleteRecognizerRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteRecognizerRequest, - com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, - com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder>( + deleteRecognizerRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder>( (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_, getParentForChildren(), isClean()); @@ -4053,20 +3573,13 @@ public Builder clearDeleteRecognizerRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, - com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, - com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder> - undeleteRecognizerRequestBuilder_; + com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder> undeleteRecognizerRequestBuilder_; /** - * - * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; * @return Whether the undeleteRecognizerRequest field is set. */ @java.lang.Override @@ -4074,15 +3587,11 @@ public boolean hasUndeleteRecognizerRequest() { return requestCase_ == 12; } /** - * - * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; * @return The undeleteRecognizerRequest. */ @java.lang.Override @@ -4100,17 +3609,13 @@ public com.google.cloud.speech.v2.UndeleteRecognizerRequest getUndeleteRecognize } } /** - * - * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; */ - public Builder setUndeleteRecognizerRequest( - com.google.cloud.speech.v2.UndeleteRecognizerRequest value) { + public Builder setUndeleteRecognizerRequest(com.google.cloud.speech.v2.UndeleteRecognizerRequest value) { if (undeleteRecognizerRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4124,14 +3629,11 @@ public Builder setUndeleteRecognizerRequest( return this; } /** - * - * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; */ public Builder setUndeleteRecognizerRequest( com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder builderForValue) { @@ -4145,26 +3647,18 @@ public Builder setUndeleteRecognizerRequest( return this; } /** - * - * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; */ - public Builder mergeUndeleteRecognizerRequest( - com.google.cloud.speech.v2.UndeleteRecognizerRequest value) { + public Builder mergeUndeleteRecognizerRequest(com.google.cloud.speech.v2.UndeleteRecognizerRequest value) { if (undeleteRecognizerRequestBuilder_ == null) { - if (requestCase_ == 12 - && request_ - != com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.UndeleteRecognizerRequest.newBuilder( - (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 12 && + request_ != com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.UndeleteRecognizerRequest.newBuilder((com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -4180,14 +3674,11 @@ public Builder mergeUndeleteRecognizerRequest( return this; } /** - * - * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; */ public Builder clearUndeleteRecognizerRequest() { if (undeleteRecognizerRequestBuilder_ == null) { @@ -4206,32 +3697,24 @@ public Builder clearUndeleteRecognizerRequest() { return this; } /** - * - * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; */ - public com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder - getUndeleteRecognizerRequestBuilder() { + public com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder getUndeleteRecognizerRequestBuilder() { return getUndeleteRecognizerRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; */ @java.lang.Override - public com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder - getUndeleteRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder getUndeleteRecognizerRequestOrBuilder() { if ((requestCase_ == 12) && (undeleteRecognizerRequestBuilder_ != null)) { return undeleteRecognizerRequestBuilder_.getMessageOrBuilder(); } else { @@ -4242,29 +3725,21 @@ public Builder clearUndeleteRecognizerRequest() { } } /** - * - * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, - com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, - com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder> + com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder> getUndeleteRecognizerRequestFieldBuilder() { if (undeleteRecognizerRequestBuilder_ == null) { if (!(requestCase_ == 12)) { request_ = com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance(); } - undeleteRecognizerRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, - com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, - com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder>( + undeleteRecognizerRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder>( (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_, getParentForChildren(), isClean()); @@ -4276,20 +3751,13 @@ public Builder clearUndeleteRecognizerRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateCustomClassRequest, - com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, - com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder> - createCustomClassRequestBuilder_; + com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder> createCustomClassRequestBuilder_; /** - * - * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * - * + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; * @return Whether the createCustomClassRequest field is set. */ @java.lang.Override @@ -4297,15 +3765,11 @@ public boolean hasCreateCustomClassRequest() { return requestCase_ == 13; } /** - * - * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * - * + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; * @return The createCustomClassRequest. */ @java.lang.Override @@ -4323,17 +3787,13 @@ public com.google.cloud.speech.v2.CreateCustomClassRequest getCreateCustomClassR } } /** - * - * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ - public Builder setCreateCustomClassRequest( - com.google.cloud.speech.v2.CreateCustomClassRequest value) { + public Builder setCreateCustomClassRequest(com.google.cloud.speech.v2.CreateCustomClassRequest value) { if (createCustomClassRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4347,14 +3807,11 @@ public Builder setCreateCustomClassRequest( return this; } /** - * - * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ public Builder setCreateCustomClassRequest( com.google.cloud.speech.v2.CreateCustomClassRequest.Builder builderForValue) { @@ -4368,26 +3825,18 @@ public Builder setCreateCustomClassRequest( return this; } /** - * - * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ - public Builder mergeCreateCustomClassRequest( - com.google.cloud.speech.v2.CreateCustomClassRequest value) { + public Builder mergeCreateCustomClassRequest(com.google.cloud.speech.v2.CreateCustomClassRequest value) { if (createCustomClassRequestBuilder_ == null) { - if (requestCase_ == 13 - && request_ - != com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.CreateCustomClassRequest.newBuilder( - (com.google.cloud.speech.v2.CreateCustomClassRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 13 && + request_ != com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.CreateCustomClassRequest.newBuilder((com.google.cloud.speech.v2.CreateCustomClassRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -4403,14 +3852,11 @@ public Builder mergeCreateCustomClassRequest( return this; } /** - * - * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ public Builder clearCreateCustomClassRequest() { if (createCustomClassRequestBuilder_ == null) { @@ -4429,32 +3875,24 @@ public Builder clearCreateCustomClassRequest() { return this; } /** - * - * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ - public com.google.cloud.speech.v2.CreateCustomClassRequest.Builder - getCreateCustomClassRequestBuilder() { + public com.google.cloud.speech.v2.CreateCustomClassRequest.Builder getCreateCustomClassRequestBuilder() { return getCreateCustomClassRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ @java.lang.Override - public com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder - getCreateCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder getCreateCustomClassRequestOrBuilder() { if ((requestCase_ == 13) && (createCustomClassRequestBuilder_ != null)) { return createCustomClassRequestBuilder_.getMessageOrBuilder(); } else { @@ -4465,29 +3903,21 @@ public Builder clearCreateCustomClassRequest() { } } /** - * - * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateCustomClassRequest, - com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, - com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder> + com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder> getCreateCustomClassRequestFieldBuilder() { if (createCustomClassRequestBuilder_ == null) { if (!(requestCase_ == 13)) { request_ = com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance(); } - createCustomClassRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateCustomClassRequest, - com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, - com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder>( + createCustomClassRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder>( (com.google.cloud.speech.v2.CreateCustomClassRequest) request_, getParentForChildren(), isClean()); @@ -4499,20 +3929,13 @@ public Builder clearCreateCustomClassRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateCustomClassRequest, - com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, - com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder> - updateCustomClassRequestBuilder_; + com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder> updateCustomClassRequestBuilder_; /** - * - * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * - * + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; * @return Whether the updateCustomClassRequest field is set. */ @java.lang.Override @@ -4520,15 +3943,11 @@ public boolean hasUpdateCustomClassRequest() { return requestCase_ == 14; } /** - * - * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * - * + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; * @return The updateCustomClassRequest. */ @java.lang.Override @@ -4546,17 +3965,13 @@ public com.google.cloud.speech.v2.UpdateCustomClassRequest getUpdateCustomClassR } } /** - * - * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ - public Builder setUpdateCustomClassRequest( - com.google.cloud.speech.v2.UpdateCustomClassRequest value) { + public Builder setUpdateCustomClassRequest(com.google.cloud.speech.v2.UpdateCustomClassRequest value) { if (updateCustomClassRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4570,14 +3985,11 @@ public Builder setUpdateCustomClassRequest( return this; } /** - * - * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ public Builder setUpdateCustomClassRequest( com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder builderForValue) { @@ -4591,26 +4003,18 @@ public Builder setUpdateCustomClassRequest( return this; } /** - * - * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ - public Builder mergeUpdateCustomClassRequest( - com.google.cloud.speech.v2.UpdateCustomClassRequest value) { + public Builder mergeUpdateCustomClassRequest(com.google.cloud.speech.v2.UpdateCustomClassRequest value) { if (updateCustomClassRequestBuilder_ == null) { - if (requestCase_ == 14 - && request_ - != com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.UpdateCustomClassRequest.newBuilder( - (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 14 && + request_ != com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.UpdateCustomClassRequest.newBuilder((com.google.cloud.speech.v2.UpdateCustomClassRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -4626,14 +4030,11 @@ public Builder mergeUpdateCustomClassRequest( return this; } /** - * - * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ public Builder clearUpdateCustomClassRequest() { if (updateCustomClassRequestBuilder_ == null) { @@ -4652,32 +4053,24 @@ public Builder clearUpdateCustomClassRequest() { return this; } /** - * - * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ - public com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder - getUpdateCustomClassRequestBuilder() { + public com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder getUpdateCustomClassRequestBuilder() { return getUpdateCustomClassRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder - getUpdateCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder getUpdateCustomClassRequestOrBuilder() { if ((requestCase_ == 14) && (updateCustomClassRequestBuilder_ != null)) { return updateCustomClassRequestBuilder_.getMessageOrBuilder(); } else { @@ -4688,29 +4081,21 @@ public Builder clearUpdateCustomClassRequest() { } } /** - * - * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateCustomClassRequest, - com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, - com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder> + com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder> getUpdateCustomClassRequestFieldBuilder() { if (updateCustomClassRequestBuilder_ == null) { if (!(requestCase_ == 14)) { request_ = com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance(); } - updateCustomClassRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateCustomClassRequest, - com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, - com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder>( + updateCustomClassRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder>( (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_, getParentForChildren(), isClean()); @@ -4722,20 +4107,13 @@ public Builder clearUpdateCustomClassRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteCustomClassRequest, - com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, - com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder> - deleteCustomClassRequestBuilder_; + com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder> deleteCustomClassRequestBuilder_; /** - * - * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * - * + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; * @return Whether the deleteCustomClassRequest field is set. */ @java.lang.Override @@ -4743,15 +4121,11 @@ public boolean hasDeleteCustomClassRequest() { return requestCase_ == 15; } /** - * - * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * - * + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; * @return The deleteCustomClassRequest. */ @java.lang.Override @@ -4769,17 +4143,13 @@ public com.google.cloud.speech.v2.DeleteCustomClassRequest getDeleteCustomClassR } } /** - * - * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ - public Builder setDeleteCustomClassRequest( - com.google.cloud.speech.v2.DeleteCustomClassRequest value) { + public Builder setDeleteCustomClassRequest(com.google.cloud.speech.v2.DeleteCustomClassRequest value) { if (deleteCustomClassRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4793,14 +4163,11 @@ public Builder setDeleteCustomClassRequest( return this; } /** - * - * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ public Builder setDeleteCustomClassRequest( com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder builderForValue) { @@ -4814,26 +4181,18 @@ public Builder setDeleteCustomClassRequest( return this; } /** - * - * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ - public Builder mergeDeleteCustomClassRequest( - com.google.cloud.speech.v2.DeleteCustomClassRequest value) { + public Builder mergeDeleteCustomClassRequest(com.google.cloud.speech.v2.DeleteCustomClassRequest value) { if (deleteCustomClassRequestBuilder_ == null) { - if (requestCase_ == 15 - && request_ - != com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.DeleteCustomClassRequest.newBuilder( - (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 15 && + request_ != com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.DeleteCustomClassRequest.newBuilder((com.google.cloud.speech.v2.DeleteCustomClassRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -4849,14 +4208,11 @@ public Builder mergeDeleteCustomClassRequest( return this; } /** - * - * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ public Builder clearDeleteCustomClassRequest() { if (deleteCustomClassRequestBuilder_ == null) { @@ -4875,32 +4231,24 @@ public Builder clearDeleteCustomClassRequest() { return this; } /** - * - * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ - public com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder - getDeleteCustomClassRequestBuilder() { + public com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder getDeleteCustomClassRequestBuilder() { return getDeleteCustomClassRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ @java.lang.Override - public com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder - getDeleteCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder getDeleteCustomClassRequestOrBuilder() { if ((requestCase_ == 15) && (deleteCustomClassRequestBuilder_ != null)) { return deleteCustomClassRequestBuilder_.getMessageOrBuilder(); } else { @@ -4911,29 +4259,21 @@ public Builder clearDeleteCustomClassRequest() { } } /** - * - * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteCustomClassRequest, - com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, - com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder> + com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder> getDeleteCustomClassRequestFieldBuilder() { if (deleteCustomClassRequestBuilder_ == null) { if (!(requestCase_ == 15)) { request_ = com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance(); } - deleteCustomClassRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteCustomClassRequest, - com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, - com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder>( + deleteCustomClassRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder>( (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_, getParentForChildren(), isClean()); @@ -4945,20 +4285,13 @@ public Builder clearDeleteCustomClassRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, - com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, - com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder> - undeleteCustomClassRequestBuilder_; + com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder> undeleteCustomClassRequestBuilder_; /** - * - * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; * @return Whether the undeleteCustomClassRequest field is set. */ @java.lang.Override @@ -4966,15 +4299,11 @@ public boolean hasUndeleteCustomClassRequest() { return requestCase_ == 16; } /** - * - * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; * @return The undeleteCustomClassRequest. */ @java.lang.Override @@ -4992,17 +4321,13 @@ public com.google.cloud.speech.v2.UndeleteCustomClassRequest getUndeleteCustomCl } } /** - * - * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; */ - public Builder setUndeleteCustomClassRequest( - com.google.cloud.speech.v2.UndeleteCustomClassRequest value) { + public Builder setUndeleteCustomClassRequest(com.google.cloud.speech.v2.UndeleteCustomClassRequest value) { if (undeleteCustomClassRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5016,14 +4341,11 @@ public Builder setUndeleteCustomClassRequest( return this; } /** - * - * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; */ public Builder setUndeleteCustomClassRequest( com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder builderForValue) { @@ -5037,26 +4359,18 @@ public Builder setUndeleteCustomClassRequest( return this; } /** - * - * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; */ - public Builder mergeUndeleteCustomClassRequest( - com.google.cloud.speech.v2.UndeleteCustomClassRequest value) { + public Builder mergeUndeleteCustomClassRequest(com.google.cloud.speech.v2.UndeleteCustomClassRequest value) { if (undeleteCustomClassRequestBuilder_ == null) { - if (requestCase_ == 16 - && request_ - != com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.UndeleteCustomClassRequest.newBuilder( - (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 16 && + request_ != com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.UndeleteCustomClassRequest.newBuilder((com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -5072,14 +4386,11 @@ public Builder mergeUndeleteCustomClassRequest( return this; } /** - * - * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; */ public Builder clearUndeleteCustomClassRequest() { if (undeleteCustomClassRequestBuilder_ == null) { @@ -5098,32 +4409,24 @@ public Builder clearUndeleteCustomClassRequest() { return this; } /** - * - * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; */ - public com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder - getUndeleteCustomClassRequestBuilder() { + public com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder getUndeleteCustomClassRequestBuilder() { return getUndeleteCustomClassRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; */ @java.lang.Override - public com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder - getUndeleteCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder getUndeleteCustomClassRequestOrBuilder() { if ((requestCase_ == 16) && (undeleteCustomClassRequestBuilder_ != null)) { return undeleteCustomClassRequestBuilder_.getMessageOrBuilder(); } else { @@ -5134,29 +4437,21 @@ public Builder clearUndeleteCustomClassRequest() { } } /** - * - * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, - com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, - com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder> + com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder> getUndeleteCustomClassRequestFieldBuilder() { if (undeleteCustomClassRequestBuilder_ == null) { if (!(requestCase_ == 16)) { request_ = com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance(); } - undeleteCustomClassRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, - com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, - com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder>( + undeleteCustomClassRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder>( (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_, getParentForChildren(), isClean()); @@ -5168,19 +4463,13 @@ public Builder clearUndeleteCustomClassRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreatePhraseSetRequest, - com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, - com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder> - createPhraseSetRequestBuilder_; + com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder> createPhraseSetRequestBuilder_; /** - * - * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; - * * @return Whether the createPhraseSetRequest field is set. */ @java.lang.Override @@ -5188,14 +4477,11 @@ public boolean hasCreatePhraseSetRequest() { return requestCase_ == 17; } /** - * - * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; - * * @return The createPhraseSetRequest. */ @java.lang.Override @@ -5213,16 +4499,13 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequest getCreatePhraseSetReque } } /** - * - * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ - public Builder setCreatePhraseSetRequest( - com.google.cloud.speech.v2.CreatePhraseSetRequest value) { + public Builder setCreatePhraseSetRequest(com.google.cloud.speech.v2.CreatePhraseSetRequest value) { if (createPhraseSetRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5236,8 +4519,6 @@ public Builder setCreatePhraseSetRequest( return this; } /** - * - * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
@@ -5256,24 +4537,18 @@ public Builder setCreatePhraseSetRequest( return this; } /** - * - * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ - public Builder mergeCreatePhraseSetRequest( - com.google.cloud.speech.v2.CreatePhraseSetRequest value) { + public Builder mergeCreatePhraseSetRequest(com.google.cloud.speech.v2.CreatePhraseSetRequest value) { if (createPhraseSetRequestBuilder_ == null) { - if (requestCase_ == 17 - && request_ != com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.CreatePhraseSetRequest.newBuilder( - (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 17 && + request_ != com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.CreatePhraseSetRequest.newBuilder((com.google.cloud.speech.v2.CreatePhraseSetRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -5289,8 +4564,6 @@ public Builder mergeCreatePhraseSetRequest( return this; } /** - * - * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
@@ -5314,21 +4587,16 @@ public Builder clearCreatePhraseSetRequest() { return this; } /** - * - * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ - public com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder - getCreatePhraseSetRequestBuilder() { + public com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder getCreatePhraseSetRequestBuilder() { return getCreatePhraseSetRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
@@ -5336,8 +4604,7 @@ public Builder clearCreatePhraseSetRequest() { * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ @java.lang.Override - public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder - getCreatePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder getCreatePhraseSetRequestOrBuilder() { if ((requestCase_ == 17) && (createPhraseSetRequestBuilder_ != null)) { return createPhraseSetRequestBuilder_.getMessageOrBuilder(); } else { @@ -5348,8 +4615,6 @@ public Builder clearCreatePhraseSetRequest() { } } /** - * - * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
@@ -5357,19 +4622,14 @@ public Builder clearCreatePhraseSetRequest() { * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreatePhraseSetRequest, - com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, - com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder> + com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder> getCreatePhraseSetRequestFieldBuilder() { if (createPhraseSetRequestBuilder_ == null) { if (!(requestCase_ == 17)) { request_ = com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance(); } - createPhraseSetRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreatePhraseSetRequest, - com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, - com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder>( + createPhraseSetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder>( (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_, getParentForChildren(), isClean()); @@ -5381,19 +4641,13 @@ public Builder clearCreatePhraseSetRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, - com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, - com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder> - updatePhraseSetRequestBuilder_; + com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder> updatePhraseSetRequestBuilder_; /** - * - * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; - * * @return Whether the updatePhraseSetRequest field is set. */ @java.lang.Override @@ -5401,14 +4655,11 @@ public boolean hasUpdatePhraseSetRequest() { return requestCase_ == 18; } /** - * - * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; - * * @return The updatePhraseSetRequest. */ @java.lang.Override @@ -5426,16 +4677,13 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequest getUpdatePhraseSetReque } } /** - * - * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ - public Builder setUpdatePhraseSetRequest( - com.google.cloud.speech.v2.UpdatePhraseSetRequest value) { + public Builder setUpdatePhraseSetRequest(com.google.cloud.speech.v2.UpdatePhraseSetRequest value) { if (updatePhraseSetRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5449,8 +4697,6 @@ public Builder setUpdatePhraseSetRequest( return this; } /** - * - * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
@@ -5469,24 +4715,18 @@ public Builder setUpdatePhraseSetRequest( return this; } /** - * - * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ - public Builder mergeUpdatePhraseSetRequest( - com.google.cloud.speech.v2.UpdatePhraseSetRequest value) { + public Builder mergeUpdatePhraseSetRequest(com.google.cloud.speech.v2.UpdatePhraseSetRequest value) { if (updatePhraseSetRequestBuilder_ == null) { - if (requestCase_ == 18 - && request_ != com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.UpdatePhraseSetRequest.newBuilder( - (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 18 && + request_ != com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.UpdatePhraseSetRequest.newBuilder((com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -5502,8 +4742,6 @@ public Builder mergeUpdatePhraseSetRequest( return this; } /** - * - * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
@@ -5527,21 +4765,16 @@ public Builder clearUpdatePhraseSetRequest() { return this; } /** - * - * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ - public com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder - getUpdatePhraseSetRequestBuilder() { + public com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder getUpdatePhraseSetRequestBuilder() { return getUpdatePhraseSetRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
@@ -5549,8 +4782,7 @@ public Builder clearUpdatePhraseSetRequest() { * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder - getUpdatePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder getUpdatePhraseSetRequestOrBuilder() { if ((requestCase_ == 18) && (updatePhraseSetRequestBuilder_ != null)) { return updatePhraseSetRequestBuilder_.getMessageOrBuilder(); } else { @@ -5561,8 +4793,6 @@ public Builder clearUpdatePhraseSetRequest() { } } /** - * - * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
@@ -5570,19 +4800,14 @@ public Builder clearUpdatePhraseSetRequest() { * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, - com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, - com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder> + com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder> getUpdatePhraseSetRequestFieldBuilder() { if (updatePhraseSetRequestBuilder_ == null) { if (!(requestCase_ == 18)) { request_ = com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance(); } - updatePhraseSetRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, - com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, - com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder>( + updatePhraseSetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder>( (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_, getParentForChildren(), isClean()); @@ -5594,19 +4819,13 @@ public Builder clearUpdatePhraseSetRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeletePhraseSetRequest, - com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, - com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder> - deletePhraseSetRequestBuilder_; + com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder> deletePhraseSetRequestBuilder_; /** - * - * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; - * * @return Whether the deletePhraseSetRequest field is set. */ @java.lang.Override @@ -5614,14 +4833,11 @@ public boolean hasDeletePhraseSetRequest() { return requestCase_ == 19; } /** - * - * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; - * * @return The deletePhraseSetRequest. */ @java.lang.Override @@ -5639,16 +4855,13 @@ public com.google.cloud.speech.v2.DeletePhraseSetRequest getDeletePhraseSetReque } } /** - * - * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ - public Builder setDeletePhraseSetRequest( - com.google.cloud.speech.v2.DeletePhraseSetRequest value) { + public Builder setDeletePhraseSetRequest(com.google.cloud.speech.v2.DeletePhraseSetRequest value) { if (deletePhraseSetRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5662,8 +4875,6 @@ public Builder setDeletePhraseSetRequest( return this; } /** - * - * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
@@ -5682,24 +4893,18 @@ public Builder setDeletePhraseSetRequest( return this; } /** - * - * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ - public Builder mergeDeletePhraseSetRequest( - com.google.cloud.speech.v2.DeletePhraseSetRequest value) { + public Builder mergeDeletePhraseSetRequest(com.google.cloud.speech.v2.DeletePhraseSetRequest value) { if (deletePhraseSetRequestBuilder_ == null) { - if (requestCase_ == 19 - && request_ != com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.DeletePhraseSetRequest.newBuilder( - (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 19 && + request_ != com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.DeletePhraseSetRequest.newBuilder((com.google.cloud.speech.v2.DeletePhraseSetRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -5715,8 +4920,6 @@ public Builder mergeDeletePhraseSetRequest( return this; } /** - * - * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
@@ -5740,21 +4943,16 @@ public Builder clearDeletePhraseSetRequest() { return this; } /** - * - * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ - public com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder - getDeletePhraseSetRequestBuilder() { + public com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder getDeletePhraseSetRequestBuilder() { return getDeletePhraseSetRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
@@ -5762,8 +4960,7 @@ public Builder clearDeletePhraseSetRequest() { * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ @java.lang.Override - public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder - getDeletePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder getDeletePhraseSetRequestOrBuilder() { if ((requestCase_ == 19) && (deletePhraseSetRequestBuilder_ != null)) { return deletePhraseSetRequestBuilder_.getMessageOrBuilder(); } else { @@ -5774,8 +4971,6 @@ public Builder clearDeletePhraseSetRequest() { } } /** - * - * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
@@ -5783,19 +4978,14 @@ public Builder clearDeletePhraseSetRequest() { * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeletePhraseSetRequest, - com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, - com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder> + com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder> getDeletePhraseSetRequestFieldBuilder() { if (deletePhraseSetRequestBuilder_ == null) { if (!(requestCase_ == 19)) { request_ = com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance(); } - deletePhraseSetRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeletePhraseSetRequest, - com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, - com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder>( + deletePhraseSetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder>( (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_, getParentForChildren(), isClean()); @@ -5807,20 +4997,13 @@ public Builder clearDeletePhraseSetRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, - com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, - com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder> - undeletePhraseSetRequestBuilder_; + com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder> undeletePhraseSetRequestBuilder_; /** - * - * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * - * + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; * @return Whether the undeletePhraseSetRequest field is set. */ @java.lang.Override @@ -5828,15 +5011,11 @@ public boolean hasUndeletePhraseSetRequest() { return requestCase_ == 20; } /** - * - * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * - * + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; * @return The undeletePhraseSetRequest. */ @java.lang.Override @@ -5854,17 +5033,13 @@ public com.google.cloud.speech.v2.UndeletePhraseSetRequest getUndeletePhraseSetR } } /** - * - * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ - public Builder setUndeletePhraseSetRequest( - com.google.cloud.speech.v2.UndeletePhraseSetRequest value) { + public Builder setUndeletePhraseSetRequest(com.google.cloud.speech.v2.UndeletePhraseSetRequest value) { if (undeletePhraseSetRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5878,14 +5053,11 @@ public Builder setUndeletePhraseSetRequest( return this; } /** - * - * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ public Builder setUndeletePhraseSetRequest( com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder builderForValue) { @@ -5899,26 +5071,18 @@ public Builder setUndeletePhraseSetRequest( return this; } /** - * - * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ - public Builder mergeUndeletePhraseSetRequest( - com.google.cloud.speech.v2.UndeletePhraseSetRequest value) { + public Builder mergeUndeletePhraseSetRequest(com.google.cloud.speech.v2.UndeletePhraseSetRequest value) { if (undeletePhraseSetRequestBuilder_ == null) { - if (requestCase_ == 20 - && request_ - != com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.UndeletePhraseSetRequest.newBuilder( - (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 20 && + request_ != com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.UndeletePhraseSetRequest.newBuilder((com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -5934,14 +5098,11 @@ public Builder mergeUndeletePhraseSetRequest( return this; } /** - * - * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ public Builder clearUndeletePhraseSetRequest() { if (undeletePhraseSetRequestBuilder_ == null) { @@ -5960,32 +5121,24 @@ public Builder clearUndeletePhraseSetRequest() { return this; } /** - * - * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ - public com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder - getUndeletePhraseSetRequestBuilder() { + public com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder getUndeletePhraseSetRequestBuilder() { return getUndeletePhraseSetRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ @java.lang.Override - public com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder - getUndeletePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder getUndeletePhraseSetRequestOrBuilder() { if ((requestCase_ == 20) && (undeletePhraseSetRequestBuilder_ != null)) { return undeletePhraseSetRequestBuilder_.getMessageOrBuilder(); } else { @@ -5996,29 +5149,21 @@ public Builder clearUndeletePhraseSetRequest() { } } /** - * - * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, - com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, - com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder> + com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder> getUndeletePhraseSetRequestFieldBuilder() { if (undeletePhraseSetRequestBuilder_ == null) { if (!(requestCase_ == 20)) { request_ = com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance(); } - undeletePhraseSetRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, - com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, - com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder>( + undeletePhraseSetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder>( (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_, getParentForChildren(), isClean()); @@ -6030,19 +5175,13 @@ public Builder clearUndeletePhraseSetRequest() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateConfigRequest, - com.google.cloud.speech.v2.UpdateConfigRequest.Builder, - com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder> - updateConfigRequestBuilder_; + com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.UpdateConfigRequest.Builder, com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder> updateConfigRequestBuilder_; /** - * - * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; - * * @return Whether the updateConfigRequest field is set. */ @java.lang.Override @@ -6050,14 +5189,11 @@ public boolean hasUpdateConfigRequest() { return requestCase_ == 21; } /** - * - * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; - * * @return The updateConfigRequest. */ @java.lang.Override @@ -6075,8 +5211,6 @@ public com.google.cloud.speech.v2.UpdateConfigRequest getUpdateConfigRequest() { } } /** - * - * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -6097,8 +5231,6 @@ public Builder setUpdateConfigRequest(com.google.cloud.speech.v2.UpdateConfigReq return this; } /** - * - * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -6117,8 +5249,6 @@ public Builder setUpdateConfigRequest( return this; } /** - * - * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -6127,13 +5257,10 @@ public Builder setUpdateConfigRequest( */ public Builder mergeUpdateConfigRequest(com.google.cloud.speech.v2.UpdateConfigRequest value) { if (updateConfigRequestBuilder_ == null) { - if (requestCase_ == 21 - && request_ != com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance()) { - request_ = - com.google.cloud.speech.v2.UpdateConfigRequest.newBuilder( - (com.google.cloud.speech.v2.UpdateConfigRequest) request_) - .mergeFrom(value) - .buildPartial(); + if (requestCase_ == 21 && + request_ != com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance()) { + request_ = com.google.cloud.speech.v2.UpdateConfigRequest.newBuilder((com.google.cloud.speech.v2.UpdateConfigRequest) request_) + .mergeFrom(value).buildPartial(); } else { request_ = value; } @@ -6149,8 +5276,6 @@ public Builder mergeUpdateConfigRequest(com.google.cloud.speech.v2.UpdateConfigR return this; } /** - * - * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -6174,8 +5299,6 @@ public Builder clearUpdateConfigRequest() { return this; } /** - * - * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -6186,8 +5309,6 @@ public com.google.cloud.speech.v2.UpdateConfigRequest.Builder getUpdateConfigReq return getUpdateConfigRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -6195,8 +5316,7 @@ public com.google.cloud.speech.v2.UpdateConfigRequest.Builder getUpdateConfigReq * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder - getUpdateConfigRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRequestOrBuilder() { if ((requestCase_ == 21) && (updateConfigRequestBuilder_ != null)) { return updateConfigRequestBuilder_.getMessageOrBuilder(); } else { @@ -6207,8 +5327,6 @@ public com.google.cloud.speech.v2.UpdateConfigRequest.Builder getUpdateConfigReq } } /** - * - * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -6216,19 +5334,14 @@ public com.google.cloud.speech.v2.UpdateConfigRequest.Builder getUpdateConfigReq * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateConfigRequest, - com.google.cloud.speech.v2.UpdateConfigRequest.Builder, - com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder> + com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.UpdateConfigRequest.Builder, com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder> getUpdateConfigRequestFieldBuilder() { if (updateConfigRequestBuilder_ == null) { if (!(requestCase_ == 21)) { request_ = com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance(); } - updateConfigRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateConfigRequest, - com.google.cloud.speech.v2.UpdateConfigRequest.Builder, - com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder>( + updateConfigRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.UpdateConfigRequest.Builder, com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder>( (com.google.cloud.speech.v2.UpdateConfigRequest) request_, getParentForChildren(), isClean()); @@ -6239,17 +5352,14 @@ public com.google.cloud.speech.v2.UpdateConfigRequest.Builder getUpdateConfigReq return updateConfigRequestBuilder_; } - private int progressPercent_; + private int progressPercent_ ; /** - * - * *
      * The percent progress of the Operation. Values can range from 0-100. If the
      * value is 100, then the operation is finished.
      * 
* * int32 progress_percent = 22; - * * @return The progressPercent. */ @java.lang.Override @@ -6257,35 +5367,29 @@ public int getProgressPercent() { return progressPercent_; } /** - * - * *
      * The percent progress of the Operation. Values can range from 0-100. If the
      * value is 100, then the operation is finished.
      * 
* * int32 progress_percent = 22; - * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; bitField0_ |= 0x00100000; onChanged(); return this; } /** - * - * *
      * The percent progress of the Operation. Values can range from 0-100. If the
      * value is 100, then the operation is finished.
      * 
* * int32 progress_percent = 22; - * * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -6296,19 +5400,13 @@ public Builder clearProgressPercent() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeMetadata, - com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, - com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder> - batchRecognizeMetadataBuilder_; + com.google.cloud.speech.v2.BatchRecognizeMetadata, com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder> batchRecognizeMetadataBuilder_; /** - * - * *
      * Metadata specific to the BatchRecognize method.
      * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; - * * @return Whether the batchRecognizeMetadata field is set. */ @java.lang.Override @@ -6316,14 +5414,11 @@ public boolean hasBatchRecognizeMetadata() { return metadataCase_ == 23; } /** - * - * *
      * Metadata specific to the BatchRecognize method.
      * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; - * * @return The batchRecognizeMetadata. */ @java.lang.Override @@ -6341,16 +5436,13 @@ public com.google.cloud.speech.v2.BatchRecognizeMetadata getBatchRecognizeMetada } } /** - * - * *
      * Metadata specific to the BatchRecognize method.
      * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ - public Builder setBatchRecognizeMetadata( - com.google.cloud.speech.v2.BatchRecognizeMetadata value) { + public Builder setBatchRecognizeMetadata(com.google.cloud.speech.v2.BatchRecognizeMetadata value) { if (batchRecognizeMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6364,8 +5456,6 @@ public Builder setBatchRecognizeMetadata( return this; } /** - * - * *
      * Metadata specific to the BatchRecognize method.
      * 
@@ -6384,25 +5474,18 @@ public Builder setBatchRecognizeMetadata( return this; } /** - * - * *
      * Metadata specific to the BatchRecognize method.
      * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ - public Builder mergeBatchRecognizeMetadata( - com.google.cloud.speech.v2.BatchRecognizeMetadata value) { + public Builder mergeBatchRecognizeMetadata(com.google.cloud.speech.v2.BatchRecognizeMetadata value) { if (batchRecognizeMetadataBuilder_ == null) { - if (metadataCase_ == 23 - && metadata_ - != com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance()) { - metadata_ = - com.google.cloud.speech.v2.BatchRecognizeMetadata.newBuilder( - (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_) - .mergeFrom(value) - .buildPartial(); + if (metadataCase_ == 23 && + metadata_ != com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance()) { + metadata_ = com.google.cloud.speech.v2.BatchRecognizeMetadata.newBuilder((com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_) + .mergeFrom(value).buildPartial(); } else { metadata_ = value; } @@ -6418,8 +5501,6 @@ public Builder mergeBatchRecognizeMetadata( return this; } /** - * - * *
      * Metadata specific to the BatchRecognize method.
      * 
@@ -6443,21 +5524,16 @@ public Builder clearBatchRecognizeMetadata() { return this; } /** - * - * *
      * Metadata specific to the BatchRecognize method.
      * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ - public com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder - getBatchRecognizeMetadataBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder getBatchRecognizeMetadataBuilder() { return getBatchRecognizeMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata specific to the BatchRecognize method.
      * 
@@ -6465,8 +5541,7 @@ public Builder clearBatchRecognizeMetadata() { * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder - getBatchRecognizeMetadataOrBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder getBatchRecognizeMetadataOrBuilder() { if ((metadataCase_ == 23) && (batchRecognizeMetadataBuilder_ != null)) { return batchRecognizeMetadataBuilder_.getMessageOrBuilder(); } else { @@ -6477,8 +5552,6 @@ public Builder clearBatchRecognizeMetadata() { } } /** - * - * *
      * Metadata specific to the BatchRecognize method.
      * 
@@ -6486,19 +5559,14 @@ public Builder clearBatchRecognizeMetadata() { * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeMetadata, - com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, - com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder> + com.google.cloud.speech.v2.BatchRecognizeMetadata, com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder> getBatchRecognizeMetadataFieldBuilder() { if (batchRecognizeMetadataBuilder_ == null) { if (!(metadataCase_ == 23)) { metadata_ = com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance(); } - batchRecognizeMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeMetadata, - com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, - com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder>( + batchRecognizeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.BatchRecognizeMetadata, com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder>( (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_, getParentForChildren(), isClean()); @@ -6508,9 +5576,9 @@ public Builder clearBatchRecognizeMetadata() { onChanged(); return batchRecognizeMetadataBuilder_; } - @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); } @@ -6520,12 +5588,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.OperationMetadata) private static final com.google.cloud.speech.v2.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.OperationMetadata(); } @@ -6534,27 +5602,27 @@ public static com.google.cloud.speech.v2.OperationMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6569,4 +5637,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java similarity index 87% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java index 8baa2442726f..91aed4456f0c 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java @@ -1,55 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time the operation was created.
    * 
@@ -59,32 +35,24 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The time the operation was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The time the operation was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 2; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The time the operation was last updated.
    * 
@@ -94,58 +62,46 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * The resource path for the target of the operation.
    * 
* * string resource = 3; - * * @return The resource. */ java.lang.String getResource(); /** - * - * *
    * The resource path for the target of the operation.
    * 
* * string resource = 3; - * * @return The bytes for resource. */ - com.google.protobuf.ByteString getResourceBytes(); + com.google.protobuf.ByteString + getResourceBytes(); /** - * - * *
    * The method that triggered the operation.
    * 
* * string method = 4; - * * @return The method. */ java.lang.String getMethod(); /** - * - * *
    * The method that triggered the operation.
    * 
* * string method = 4; - * * @return The bytes for method. */ - com.google.protobuf.ByteString getMethodBytes(); + com.google.protobuf.ByteString + getMethodBytes(); /** - * - * *
    * The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -154,13 +110,10 @@ public interface OperationMetadataOrBuilder
    * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } - * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
    * The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -169,14 +122,12 @@ public interface OperationMetadataOrBuilder
    * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); /** - * - * *
    * The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -185,13 +136,10 @@ public interface OperationMetadataOrBuilder
    * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } - * * @return The kmsKeyVersionName. */ java.lang.String getKmsKeyVersionName(); /** - * - * *
    * The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -200,38 +148,30 @@ public interface OperationMetadataOrBuilder
    * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKeyVersionName. */ - com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); + com.google.protobuf.ByteString + getKmsKeyVersionNameBytes(); /** - * - * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; - * * @return Whether the batchRecognizeRequest field is set. */ boolean hasBatchRecognizeRequest(); /** - * - * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; - * * @return The batchRecognizeRequest. */ com.google.cloud.speech.v2.BatchRecognizeRequest getBatchRecognizeRequest(); /** - * - * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
@@ -241,32 +181,24 @@ public interface OperationMetadataOrBuilder com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder getBatchRecognizeRequestOrBuilder(); /** - * - * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; - * * @return Whether the createRecognizerRequest field is set. */ boolean hasCreateRecognizerRequest(); /** - * - * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; - * * @return The createRecognizerRequest. */ com.google.cloud.speech.v2.CreateRecognizerRequest getCreateRecognizerRequest(); /** - * - * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
@@ -276,32 +208,24 @@ public interface OperationMetadataOrBuilder com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder getCreateRecognizerRequestOrBuilder(); /** - * - * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; - * * @return Whether the updateRecognizerRequest field is set. */ boolean hasUpdateRecognizerRequest(); /** - * - * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; - * * @return The updateRecognizerRequest. */ com.google.cloud.speech.v2.UpdateRecognizerRequest getUpdateRecognizerRequest(); /** - * - * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
@@ -311,32 +235,24 @@ public interface OperationMetadataOrBuilder com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder getUpdateRecognizerRequestOrBuilder(); /** - * - * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; - * * @return Whether the deleteRecognizerRequest field is set. */ boolean hasDeleteRecognizerRequest(); /** - * - * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; - * * @return The deleteRecognizerRequest. */ com.google.cloud.speech.v2.DeleteRecognizerRequest getDeleteRecognizerRequest(); /** - * - * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
@@ -346,218 +262,159 @@ public interface OperationMetadataOrBuilder com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder getDeleteRecognizerRequestOrBuilder(); /** - * - * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; * @return Whether the undeleteRecognizerRequest field is set. */ boolean hasUndeleteRecognizerRequest(); /** - * - * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; * @return The undeleteRecognizerRequest. */ com.google.cloud.speech.v2.UndeleteRecognizerRequest getUndeleteRecognizerRequest(); /** - * - * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; - * + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; */ - com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder - getUndeleteRecognizerRequestOrBuilder(); + com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder getUndeleteRecognizerRequestOrBuilder(); /** - * - * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * * @return Whether the createCustomClassRequest field is set. */ boolean hasCreateCustomClassRequest(); /** - * - * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; - * * @return The createCustomClassRequest. */ com.google.cloud.speech.v2.CreateCustomClassRequest getCreateCustomClassRequest(); /** - * - * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ - com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder - getCreateCustomClassRequestOrBuilder(); + com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder getCreateCustomClassRequestOrBuilder(); /** - * - * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * * @return Whether the updateCustomClassRequest field is set. */ boolean hasUpdateCustomClassRequest(); /** - * - * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; - * * @return The updateCustomClassRequest. */ com.google.cloud.speech.v2.UpdateCustomClassRequest getUpdateCustomClassRequest(); /** - * - * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ - com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder - getUpdateCustomClassRequestOrBuilder(); + com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder getUpdateCustomClassRequestOrBuilder(); /** - * - * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * * @return Whether the deleteCustomClassRequest field is set. */ boolean hasDeleteCustomClassRequest(); /** - * - * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; - * * @return The deleteCustomClassRequest. */ com.google.cloud.speech.v2.DeleteCustomClassRequest getDeleteCustomClassRequest(); /** - * - * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ - com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder - getDeleteCustomClassRequestOrBuilder(); + com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder getDeleteCustomClassRequestOrBuilder(); /** - * - * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; * @return Whether the undeleteCustomClassRequest field is set. */ boolean hasUndeleteCustomClassRequest(); /** - * - * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; * @return The undeleteCustomClassRequest. */ com.google.cloud.speech.v2.UndeleteCustomClassRequest getUndeleteCustomClassRequest(); /** - * - * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; - * + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; */ - com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder - getUndeleteCustomClassRequestOrBuilder(); + com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder getUndeleteCustomClassRequestOrBuilder(); /** - * - * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; - * * @return Whether the createPhraseSetRequest field is set. */ boolean hasCreatePhraseSetRequest(); /** - * - * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; - * * @return The createPhraseSetRequest. */ com.google.cloud.speech.v2.CreatePhraseSetRequest getCreatePhraseSetRequest(); /** - * - * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
@@ -567,32 +424,24 @@ public interface OperationMetadataOrBuilder com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder getCreatePhraseSetRequestOrBuilder(); /** - * - * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; - * * @return Whether the updatePhraseSetRequest field is set. */ boolean hasUpdatePhraseSetRequest(); /** - * - * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; - * * @return The updatePhraseSetRequest. */ com.google.cloud.speech.v2.UpdatePhraseSetRequest getUpdatePhraseSetRequest(); /** - * - * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
@@ -602,32 +451,24 @@ public interface OperationMetadataOrBuilder com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder getUpdatePhraseSetRequestOrBuilder(); /** - * - * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; - * * @return Whether the deletePhraseSetRequest field is set. */ boolean hasDeletePhraseSetRequest(); /** - * - * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; - * * @return The deletePhraseSetRequest. */ com.google.cloud.speech.v2.DeletePhraseSetRequest getDeletePhraseSetRequest(); /** - * - * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
@@ -637,68 +478,51 @@ public interface OperationMetadataOrBuilder com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder getDeletePhraseSetRequestOrBuilder(); /** - * - * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * * @return Whether the undeletePhraseSetRequest field is set. */ boolean hasUndeletePhraseSetRequest(); /** - * - * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; - * * @return The undeletePhraseSetRequest. */ com.google.cloud.speech.v2.UndeletePhraseSetRequest getUndeletePhraseSetRequest(); /** - * - * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ - com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder - getUndeletePhraseSetRequestOrBuilder(); + com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder getUndeletePhraseSetRequestOrBuilder(); /** - * - * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; - * * @return Whether the updateConfigRequest field is set. */ boolean hasUpdateConfigRequest(); /** - * - * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; - * * @return The updateConfigRequest. */ com.google.cloud.speech.v2.UpdateConfigRequest getUpdateConfigRequest(); /** - * - * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
@@ -708,46 +532,35 @@ public interface OperationMetadataOrBuilder com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRequestOrBuilder(); /** - * - * *
    * The percent progress of the Operation. Values can range from 0-100. If the
    * value is 100, then the operation is finished.
    * 
* * int32 progress_percent = 22; - * * @return The progressPercent. */ int getProgressPercent(); /** - * - * *
    * Metadata specific to the BatchRecognize method.
    * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; - * * @return Whether the batchRecognizeMetadata field is set. */ boolean hasBatchRecognizeMetadata(); /** - * - * *
    * Metadata specific to the BatchRecognize method.
    * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; - * * @return The batchRecognizeMetadata. */ com.google.cloud.speech.v2.BatchRecognizeMetadata getBatchRecognizeMetadata(); /** - * - * *
    * Metadata specific to the BatchRecognize method.
    * 
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java index 4290bf1ac65f..3226de2b8914 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * PhraseSet for biasing in speech recognition. A PhraseSet is used to provide
  * "hints" to the speech recognizer to favor specific words and phrases in the
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
     uid_ = "";
@@ -52,54 +34,51 @@ 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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 10:
         return internalGetAnnotations();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.PhraseSet.class,
-            com.google.cloud.speech.v2.PhraseSet.Builder.class);
+            com.google.cloud.speech.v2.PhraseSet.class, com.google.cloud.speech.v2.PhraseSet.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Set of states that define the lifecycle of a PhraseSet.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.PhraseSet.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified state.  This is only used/useful for distinguishing
      * unset values.
@@ -109,8 +88,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The normal and active state.
      * 
@@ -119,8 +96,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(2), /** - * - * *
      * This PhraseSet has been deleted.
      * 
@@ -132,8 +107,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified state.  This is only used/useful for distinguishing
      * unset values.
@@ -143,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int STATE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * The normal and active state.
      * 
@@ -153,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 2; /** - * - * *
      * This PhraseSet has been deleted.
      * 
@@ -163,6 +132,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETED_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -187,49 +157,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 2: - return ACTIVE; - case 4: - return DELETED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 2: return ACTIVE; + case 4: return DELETED; + 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< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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.v2.PhraseSet.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -246,39 +216,31 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.speech.v2.PhraseSet.State) } - public interface PhraseOrBuilder - extends + public interface PhraseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.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
@@ -293,14 +255,11 @@ public interface PhraseOrBuilder
      * 
* * float boost = 2; - * * @return The boost. */ float getBoost(); } /** - * - * *
    * A Phrase contains words and phrase "hints" so that the speech recognition
    * is more likely to recognize them. This can be used to improve the accuracy
@@ -313,59 +272,53 @@ public interface PhraseOrBuilder
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.PhraseSet.Phrase.class,
-              com.google.cloud.speech.v2.PhraseSet.Phrase.Builder.class);
+              com.google.cloud.speech.v2.PhraseSet.Phrase.class, com.google.cloud.speech.v2.PhraseSet.Phrase.Builder.class);
     }
 
     public static final int VALUE_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object value_ = "";
     /**
-     *
-     *
      * 
      * The phrase itself.
      * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -374,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 { @@ -407,8 +360,6 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_ = 0F; /** - * - * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -423,7 +374,6 @@ public com.google.protobuf.ByteString getValueBytes() {
      * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -432,7 +382,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -444,7 +393,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_); } @@ -464,7 +414,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -474,17 +425,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.v2.PhraseSet.Phrase)) { return super.equals(obj); } - com.google.cloud.speech.v2.PhraseSet.Phrase other = - (com.google.cloud.speech.v2.PhraseSet.Phrase) obj; + com.google.cloud.speech.v2.PhraseSet.Phrase other = (com.google.cloud.speech.v2.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -499,100 +451,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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v2.PhraseSet.Phrase parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.PhraseSet.Phrase parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.PhraseSet.Phrase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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 @@ -602,8 +549,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A Phrase contains words and phrase "hints" so that the speech recognition
      * is more likely to recognize them. This can be used to improve the accuracy
@@ -616,33 +561,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.speech.v2.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.v2.PhraseSet.Phrase)
         com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.speech.v2.CloudSpeechProto
-            .internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.speech.v2.CloudSpeechProto
-            .internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable
+        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.speech.v2.PhraseSet.Phrase.class,
-                com.google.cloud.speech.v2.PhraseSet.Phrase.Builder.class);
+                com.google.cloud.speech.v2.PhraseSet.Phrase.class, com.google.cloud.speech.v2.PhraseSet.Phrase.Builder.class);
       }
 
       // Construct using com.google.cloud.speech.v2.PhraseSet.Phrase.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -653,9 +598,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.speech.v2.CloudSpeechProto
-            .internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
@@ -674,11 +619,8 @@ public com.google.cloud.speech.v2.PhraseSet.Phrase build() {
 
       @java.lang.Override
       public com.google.cloud.speech.v2.PhraseSet.Phrase buildPartial() {
-        com.google.cloud.speech.v2.PhraseSet.Phrase result =
-            new com.google.cloud.speech.v2.PhraseSet.Phrase(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.speech.v2.PhraseSet.Phrase result = new com.google.cloud.speech.v2.PhraseSet.Phrase(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
@@ -697,41 +639,38 @@ private void buildPartial0(com.google.cloud.speech.v2.PhraseSet.Phrase result) {
       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.v2.PhraseSet.Phrase) {
-          return mergeFrom((com.google.cloud.speech.v2.PhraseSet.Phrase) other);
+          return mergeFrom((com.google.cloud.speech.v2.PhraseSet.Phrase)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -774,25 +713,22 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  value_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 21:
-                {
-                  boost_ = input.readFloat();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 21
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                value_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 21: {
+                boost_ = input.readFloat();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 21
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -802,25 +738,22 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       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; @@ -829,21 +762,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 { @@ -851,35 +783,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The phrase itself.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -889,21 +814,17 @@ public Builder clearValue() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; @@ -911,10 +832,8 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { 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
@@ -929,7 +848,6 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) {
        * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -937,8 +855,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
@@ -953,20 +869,17 @@ public float getBoost() {
        * 
* * float boost = 2; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000002; 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
@@ -981,7 +894,6 @@ public Builder setBoost(float value) {
        * 
* * float boost = 2; - * * @return This builder for chaining. */ public Builder clearBoost() { @@ -990,7 +902,6 @@ public Builder clearBoost() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1003,12 +914,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.PhraseSet.Phrase) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.PhraseSet.Phrase) private static final com.google.cloud.speech.v2.PhraseSet.Phrase DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.PhraseSet.Phrase(); } @@ -1017,28 +928,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1053,22 +963,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.PhraseSet.Phrase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The resource name of the PhraseSet.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -1077,30 +984,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; } } /** - * - * *
    * Output only. The resource name of the PhraseSet.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1109,18 +1016,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int UID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** - * - * *
    * Output only. System-assigned unique identifier for the PhraseSet.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -1129,29 +1032,29 @@ public java.lang.String getUid() { 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(); uid_ = s; return s; } } /** - * - * *
    * Output only. System-assigned unique identifier for the PhraseSet.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -1160,12 +1063,9 @@ public com.google.protobuf.ByteString getUidBytes() { } public static final int PHRASES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List phrases_; /** - * - * *
    * A list of word and phrases.
    * 
@@ -1177,8 +1077,6 @@ public java.util.List getPhrasesLis return phrases_; } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1186,13 +1084,11 @@ public java.util.List getPhrasesLis * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ @java.lang.Override - public java.util.List + public java.util.List getPhrasesOrBuilderList() { return phrases_; } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1204,8 +1100,6 @@ public int getPhrasesCount() { return phrases_.size(); } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1217,8 +1111,6 @@ public com.google.cloud.speech.v2.PhraseSet.Phrase getPhrases(int index) { return phrases_.get(index); } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1226,15 +1118,14 @@ public com.google.cloud.speech.v2.PhraseSet.Phrase getPhrases(int index) { * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ @java.lang.Override - public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index) { + public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( + int index) { return phrases_.get(index); } public static final int BOOST_FIELD_NUMBER = 4; private float boost_ = 0F; /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -1244,7 +1135,6 @@ public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -1253,19 +1143,15 @@ public float getBoost() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * User-settable, human-readable name for the PhraseSet. Must be 63
    * characters or less.
    * 
* * string display_name = 5; - * * @return The displayName. */ @java.lang.Override @@ -1274,30 +1160,30 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** - * - * *
    * User-settable, human-readable name for the PhraseSet. Must be 63
    * characters or less.
    * 
* * string display_name = 5; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -1308,54 +1194,37 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int STATE_FIELD_NUMBER = 15; private int state_ = 0; /** - * - * *
    * Output only. The PhraseSet lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The PhraseSet lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.speech.v2.PhraseSet.State getState() { - com.google.cloud.speech.v2.PhraseSet.State result = - com.google.cloud.speech.v2.PhraseSet.State.forNumber(state_); + @java.lang.Override public com.google.cloud.speech.v2.PhraseSet.State getState() { + com.google.cloud.speech.v2.PhraseSet.State result = com.google.cloud.speech.v2.PhraseSet.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.PhraseSet.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1363,15 +1232,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1379,14 +1244,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1396,15 +1258,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1412,15 +1270,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -1428,14 +1282,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1445,15 +1296,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -1461,15 +1308,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -1477,14 +1320,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -1494,15 +1334,11 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ @java.lang.Override @@ -1510,15 +1346,11 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ @java.lang.Override @@ -1526,14 +1358,11 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -1541,35 +1370,32 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } public static final int ANNOTATIONS_FIELD_NUMBER = 10; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1579,21 +1405,20 @@ public int getAnnotationsCount() {
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public boolean containsAnnotations(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsAnnotations(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetAnnotations().getMap().containsKey(key);
   }
-  /** Use {@link #getAnnotationsMap()} instead. */
+  /**
+   * Use {@link #getAnnotationsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAnnotations() {
     return getAnnotationsMap();
   }
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1607,8 +1432,6 @@ public java.util.Map getAnnotationsMap() {
     return internalGetAnnotations().getMap();
   }
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1618,19 +1441,17 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getAnnotationsOrDefault(
+  public /* nullable */
+java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetAnnotations().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1640,11 +1461,11 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+  public java.lang.String getAnnotationsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1652,12 +1473,9 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
   }
 
   public static final int ETAG_FIELD_NUMBER = 11;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object etag_ = "";
   /**
-   *
-   *
    * 
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -1665,7 +1483,6 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ @java.lang.Override @@ -1674,15 +1491,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -1690,15 +1506,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -1709,15 +1526,12 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int RECONCILING_FIELD_NUMBER = 12; private boolean reconciling_ = false; /** - * - * *
    * Output only. Whether or not this PhraseSet is in the process of being
    * updated.
    * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -1726,12 +1540,9 @@ public boolean getReconciling() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 13; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -1739,10 +1550,7 @@ public boolean getReconciling() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ @java.lang.Override @@ -1751,15 +1559,14 @@ public java.lang.String getKmsKeyName() { 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(); kmsKeyName_ = s; return s; } } /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -1767,18 +1574,17 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -1787,12 +1593,9 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER = 14; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyVersionName_ = ""; /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1800,10 +1603,7 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyVersionName. */ @java.lang.Override @@ -1812,15 +1612,14 @@ public java.lang.String getKmsKeyVersionName() { 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(); kmsKeyVersionName_ = s; return s; } } /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1828,18 +1627,17 @@ public java.lang.String getKmsKeyVersionName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyVersionName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -1848,7 +1646,6 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1860,7 +1657,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_); } @@ -1888,8 +1686,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (expireTime_ != null) { output.writeMessage(9, getExpireTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 10); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 10); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, etag_); } @@ -1921,41 +1723,48 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } for (int i = 0; i < phrases_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, phrases_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, 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_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getExpireTime()); - } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, annotations__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getExpireTime()); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, annotations__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etag_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, reconciling_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, reconciling_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kmsKeyName_); @@ -1964,7 +1773,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, kmsKeyVersionName_); } if (state_ != com.google.cloud.speech.v2.PhraseSet.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(15, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1974,41 +1784,55 @@ 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.v2.PhraseSet)) { return super.equals(obj); } com.google.cloud.speech.v2.PhraseSet other = (com.google.cloud.speech.v2.PhraseSet) obj; - if (!getName().equals(other.getName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (!getPhrasesList().equals(other.getPhrasesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (!getPhrasesList() + .equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits(other.getBoost())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + != java.lang.Float.floatToIntBits( + other.getBoost())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; - } - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (getReconciling() != other.getReconciling()) return false; - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; - if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; + } + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (getReconciling() + != other.getReconciling()) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; + if (!getKmsKeyVersionName() + .equals(other.getKmsKeyVersionName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2029,7 +1853,8 @@ 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 = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; @@ -2057,7 +1882,8 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getKmsKeyName().hashCode(); hash = (37 * hash) + KMS_KEY_VERSION_NAME_FIELD_NUMBER; @@ -2067,103 +1893,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.PhraseSet parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.PhraseSet parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.PhraseSet parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.speech.v2.PhraseSet parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.PhraseSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * PhraseSet for biasing in speech recognition. A PhraseSet is used to provide
    * "hints" to the speech recognizer to favor specific words and phrases in the
@@ -2172,52 +1992,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.PhraseSet)
       com.google.cloud.speech.v2.PhraseSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 10:
           return internalGetAnnotations();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 10:
           return internalGetMutableAnnotations();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.PhraseSet.class,
-              com.google.cloud.speech.v2.PhraseSet.Builder.class);
+              com.google.cloud.speech.v2.PhraseSet.class, com.google.cloud.speech.v2.PhraseSet.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.PhraseSet.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2263,9 +2086,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
     }
 
     @java.lang.Override
@@ -2286,9 +2109,7 @@ public com.google.cloud.speech.v2.PhraseSet build() {
     public com.google.cloud.speech.v2.PhraseSet buildPartial() {
       com.google.cloud.speech.v2.PhraseSet result = new com.google.cloud.speech.v2.PhraseSet(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -2323,16 +2144,24 @@ private void buildPartial0(com.google.cloud.speech.v2.PhraseSet result) {
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null
+            ? deleteTime_
+            : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build();
+        result.expireTime_ = expireTimeBuilder_ == null
+            ? expireTime_
+            : expireTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
         result.annotations_ = internalGetAnnotations();
@@ -2356,39 +2185,38 @@ private void buildPartial0(com.google.cloud.speech.v2.PhraseSet result) {
     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.v2.PhraseSet) {
-        return mergeFrom((com.google.cloud.speech.v2.PhraseSet) other);
+        return mergeFrom((com.google.cloud.speech.v2.PhraseSet)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2425,10 +2253,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            phrasesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPhrasesFieldBuilder()
-                    : null;
+            phrasesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPhrasesFieldBuilder() : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -2457,7 +2284,8 @@ public Builder mergeFrom(com.google.cloud.speech.v2.PhraseSet other) {
       if (other.hasExpireTime()) {
         mergeExpireTime(other.getExpireTime());
       }
-      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(
+          other.internalGetAnnotations());
       bitField0_ |= 0x00000400;
       if (!other.getEtag().isEmpty()) {
         etag_ = other.etag_;
@@ -2503,116 +2331,107 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                uid_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                com.google.cloud.speech.v2.PhraseSet.Phrase m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.PhraseSet.Phrase.parser(), extensionRegistry);
-                if (phrasesBuilder_ == null) {
-                  ensurePhrasesIsMutable();
-                  phrases_.add(m);
-                } else {
-                  phrasesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            case 37:
-              {
-                boost_ = input.readFloat();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 37
-            case 42:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 66
-            case 74:
-              {
-                input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 74
-            case 82:
-              {
-                com.google.protobuf.MapEntry annotations__ =
-                    input.readMessage(
-                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableAnnotations()
-                    .getMutableMap()
-                    .put(annotations__.getKey(), annotations__.getValue());
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 82
-            case 90:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 90
-            case 96:
-              {
-                reconciling_ = input.readBool();
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 96
-            case 106:
-              {
-                kmsKeyName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 106
-            case 114:
-              {
-                kmsKeyVersionName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00004000;
-                break;
-              } // case 114
-            case 120:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 120
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              uid_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              com.google.cloud.speech.v2.PhraseSet.Phrase m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.PhraseSet.Phrase.parser(),
+                      extensionRegistry);
+              if (phrasesBuilder_ == null) {
+                ensurePhrasesIsMutable();
+                phrases_.add(m);
+              } else {
+                phrasesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            case 37: {
+              boost_ = input.readFloat();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 37
+            case 42: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getDeleteTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 66
+            case 74: {
+              input.readMessage(
+                  getExpireTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 74
+            case 82: {
+              com.google.protobuf.MapEntry
+              annotations__ = input.readMessage(
+                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableAnnotations().getMutableMap().put(
+                  annotations__.getKey(), annotations__.getValue());
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 82
+            case 90: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 90
+            case 96: {
+              reconciling_ = input.readBool();
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 96
+            case 106: {
+              kmsKeyName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 106
+            case 114: {
+              kmsKeyVersionName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00004000;
+              break;
+            } // case 114
+            case 120: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 120
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2622,26 +2441,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name of the PhraseSet.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -2650,22 +2466,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the PhraseSet.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -2673,37 +2488,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the PhraseSet.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the PhraseSet.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2713,22 +2521,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name of the PhraseSet.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2738,20 +2542,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. System-assigned unique identifier for the PhraseSet.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; 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(); uid_ = s; return s; @@ -2760,21 +2562,20 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. System-assigned unique identifier for the PhraseSet.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -2782,35 +2583,28 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. System-assigned unique identifier for the PhraseSet.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. System-assigned unique identifier for the PhraseSet.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { @@ -2820,21 +2614,17 @@ public Builder clearUid() { return this; } /** - * - * *
      * Output only. System-assigned unique identifier for the PhraseSet.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000002; @@ -2843,24 +2633,18 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { } private java.util.List phrases_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { phrases_ = new java.util.ArrayList(phrases_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet.Phrase, - com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, - com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder> - phrasesBuilder_; + com.google.cloud.speech.v2.PhraseSet.Phrase, com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder> phrasesBuilder_; /** - * - * *
      * A list of word and phrases.
      * 
@@ -2875,8 +2659,6 @@ public java.util.List getPhrasesLis } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -2891,8 +2673,6 @@ public int getPhrasesCount() { } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -2907,15 +2687,14 @@ public com.google.cloud.speech.v2.PhraseSet.Phrase getPhrases(int index) { } } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public Builder setPhrases(int index, com.google.cloud.speech.v2.PhraseSet.Phrase value) { + public Builder setPhrases( + int index, com.google.cloud.speech.v2.PhraseSet.Phrase value) { if (phrasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2929,8 +2708,6 @@ public Builder setPhrases(int index, com.google.cloud.speech.v2.PhraseSet.Phrase return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -2949,8 +2726,6 @@ public Builder setPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -2971,15 +2746,14 @@ public Builder addPhrases(com.google.cloud.speech.v2.PhraseSet.Phrase value) { return this; } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public Builder addPhrases(int index, com.google.cloud.speech.v2.PhraseSet.Phrase value) { + public Builder addPhrases( + int index, com.google.cloud.speech.v2.PhraseSet.Phrase value) { if (phrasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2993,15 +2767,14 @@ public Builder addPhrases(int index, com.google.cloud.speech.v2.PhraseSet.Phrase return this; } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public Builder addPhrases(com.google.cloud.speech.v2.PhraseSet.Phrase.Builder builderForValue) { + public Builder addPhrases( + com.google.cloud.speech.v2.PhraseSet.Phrase.Builder builderForValue) { if (phrasesBuilder_ == null) { ensurePhrasesIsMutable(); phrases_.add(builderForValue.build()); @@ -3012,8 +2785,6 @@ public Builder addPhrases(com.google.cloud.speech.v2.PhraseSet.Phrase.Builder bu return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -3032,8 +2803,6 @@ public Builder addPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -3044,7 +2813,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); @@ -3052,8 +2822,6 @@ public Builder addAllPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -3071,8 +2839,6 @@ public Builder clearPhrases() { return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -3090,44 +2856,39 @@ public Builder removePhrases(int index) { return this; } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder getPhrasesBuilder(int index) { + public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder getPhrasesBuilder( + int index) { return getPhrasesFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index) { + public com.google.cloud.speech.v2.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.v2.PhraseSet.Phrase phrases = 3; */ - public java.util.List - getPhrasesOrBuilderList() { + public java.util.List + getPhrasesOrBuilderList() { if (phrasesBuilder_ != null) { return phrasesBuilder_.getMessageOrBuilderList(); } else { @@ -3135,8 +2896,6 @@ public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -3144,57 +2903,49 @@ public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder addPhrasesBuilder() { - return getPhrasesFieldBuilder() - .addBuilder(com.google.cloud.speech.v2.PhraseSet.Phrase.getDefaultInstance()); + return getPhrasesFieldBuilder().addBuilder( + com.google.cloud.speech.v2.PhraseSet.Phrase.getDefaultInstance()); } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder addPhrasesBuilder(int index) { - return getPhrasesFieldBuilder() - .addBuilder(index, com.google.cloud.speech.v2.PhraseSet.Phrase.getDefaultInstance()); + public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder addPhrasesBuilder( + int index) { + return getPhrasesFieldBuilder().addBuilder( + index, com.google.cloud.speech.v2.PhraseSet.Phrase.getDefaultInstance()); } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public java.util.List - getPhrasesBuilderList() { + public java.util.List + getPhrasesBuilderList() { return getPhrasesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet.Phrase, - com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, - com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder> + com.google.cloud.speech.v2.PhraseSet.Phrase, com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder> getPhrasesFieldBuilder() { if (phrasesBuilder_ == null) { - phrasesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet.Phrase, - com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, - com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder>( - phrases_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + phrasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.PhraseSet.Phrase, com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder>( + phrases_, + ((bitField0_ & 0x00000004) != 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
@@ -3204,7 +2955,6 @@ public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder addPhrasesBuilder(int
      * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -3212,8 +2962,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
@@ -3223,20 +2971,17 @@ public float getBoost() {
      * 
* * float boost = 4; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000008; 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
@@ -3246,7 +2991,6 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; - * * @return This builder for chaining. */ public Builder clearBoost() { @@ -3258,21 +3002,19 @@ public Builder clearBoost() { private java.lang.Object displayName_ = ""; /** - * - * *
      * User-settable, human-readable name for the PhraseSet. Must be 63
      * characters or less.
      * 
* * string display_name = 5; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -3281,22 +3023,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * User-settable, human-readable name for the PhraseSet. Must be 63
      * characters or less.
      * 
* * string display_name = 5; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -3304,37 +3045,30 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * User-settable, human-readable name for the PhraseSet. Must be 63
      * characters or less.
      * 
* * string display_name = 5; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * User-settable, human-readable name for the PhraseSet. Must be 63
      * characters or less.
      * 
* * string display_name = 5; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -3344,22 +3078,18 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * User-settable, human-readable name for the PhraseSet. Must be 63
      * characters or less.
      * 
* * string display_name = 5; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000010; @@ -3369,33 +3099,22 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The PhraseSet lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The PhraseSet lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3406,35 +3125,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The PhraseSet lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSet.State getState() { - com.google.cloud.speech.v2.PhraseSet.State result = - com.google.cloud.speech.v2.PhraseSet.State.forNumber(state_); + com.google.cloud.speech.v2.PhraseSet.State result = com.google.cloud.speech.v2.PhraseSet.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.PhraseSet.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The PhraseSet lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3448,16 +3156,11 @@ public Builder setState(com.google.cloud.speech.v2.PhraseSet.State value) { return this; } /** - * - * *
      * Output only. The PhraseSet lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -3469,58 +3172,39 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3536,17 +3220,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -3557,21 +3238,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3584,15 +3261,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3605,15 +3278,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -3621,48 +3290,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3670,58 +3327,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3737,17 +3375,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3758,21 +3393,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3785,15 +3416,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3806,15 +3433,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -3822,48 +3445,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The most recent time this resource was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3871,58 +3482,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3938,17 +3530,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -3959,21 +3548,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -3986,15 +3571,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -4007,15 +3588,11 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -4023,48 +3600,36 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -4072,58 +3637,39 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -4139,17 +3685,14 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -4160,21 +3703,17 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && expireTime_ != null - && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + expireTime_ != null && + expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -4187,15 +3726,11 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000200); @@ -4208,15 +3743,11 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000200; @@ -4224,55 +3755,43 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * *
      * Output only. The time at which this resource will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), + getParentForChildren(), + isClean()); expireTime_ = null; } return expireTimeBuilder_; } - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -4281,12 +3800,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } return annotations_; } - private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = - com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -4295,13 +3813,10 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { onChanged(); return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4311,21 +3826,20 @@ public int getAnnotationsCount() {
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public boolean containsAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetAnnotations().getMap().containsKey(key);
     }
-    /** Use {@link #getAnnotationsMap()} instead. */
+    /**
+     * Use {@link #getAnnotationsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAnnotations() {
       return getAnnotationsMap();
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4339,8 +3853,6 @@ public java.util.Map getAnnotationsMap() {
       return internalGetAnnotations().getMap();
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4350,19 +3862,17 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getAnnotationsOrDefault(
+    public /* nullable */
+java.lang.String getAnnotationsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetAnnotations().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4372,25 +3882,23 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+    public java.lang.String getAnnotationsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearAnnotations() {
       bitField0_ = (bitField0_ & ~0x00000400);
-      internalGetMutableAnnotations().getMutableMap().clear();
+      internalGetMutableAnnotations().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4399,22 +3907,23 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 10;
      */
-    public Builder removeAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableAnnotations().getMutableMap().remove(key);
+    public Builder removeAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableAnnotations().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableAnnotations() {
+    public java.util.Map
+        getMutableAnnotations() {
       bitField0_ |= 0x00000400;
       return internalGetMutableAnnotations().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4423,20 +3932,17 @@ public java.util.Map getMutableAnnotations()
      *
      * map<string, string> annotations = 10;
      */
-    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableAnnotations().getMutableMap().put(key, value);
+    public Builder putAnnotations(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableAnnotations().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000400;
       return this;
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -4445,16 +3951,16 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> annotations = 10;
      */
-    public Builder putAllAnnotations(java.util.Map values) {
-      internalGetMutableAnnotations().getMutableMap().putAll(values);
+    public Builder putAllAnnotations(
+        java.util.Map values) {
+      internalGetMutableAnnotations().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000400;
       return this;
     }
 
     private java.lang.Object etag_ = "";
     /**
-     *
-     *
      * 
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4462,13 +3968,13 @@ public Builder putAllAnnotations(java.util.Map
      *
      * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
-     *
      * @return The etag.
      */
     public java.lang.String getEtag() {
       java.lang.Object ref = etag_;
       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();
         etag_ = s;
         return s;
@@ -4477,8 +3983,6 @@ public java.lang.String getEtag() {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4486,14 +3990,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -4501,8 +4006,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4510,22 +4013,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4533,7 +4032,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -4543,8 +4041,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4552,14 +4048,12 @@ public Builder clearEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000800; @@ -4567,17 +4061,14 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } - private boolean reconciling_; + private boolean reconciling_ ; /** - * - * *
      * Output only. Whether or not this PhraseSet is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -4585,35 +4076,29 @@ public boolean getReconciling() { return reconciling_; } /** - * - * *
      * Output only. Whether or not this PhraseSet is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** - * - * *
      * Output only. Whether or not this PhraseSet is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -4625,8 +4110,6 @@ public Builder clearReconciling() { private java.lang.Object kmsKeyName_ = ""; /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4634,16 +4117,14 @@ public Builder clearReconciling() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; 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(); kmsKeyName_ = s; return s; @@ -4652,8 +4133,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4661,17 +4140,16 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -4679,8 +4157,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4688,25 +4164,19 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyName_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4714,10 +4184,7 @@ public Builder setKmsKeyName(java.lang.String value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -4727,8 +4194,6 @@ public Builder clearKmsKeyName() { return this; } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4736,17 +4201,13 @@ public Builder clearKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00002000; @@ -4756,8 +4217,6 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyVersionName_ = ""; /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4765,16 +4224,14 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyVersionName. */ public java.lang.String getKmsKeyVersionName() { java.lang.Object ref = kmsKeyVersionName_; 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(); kmsKeyVersionName_ = s; return s; @@ -4783,8 +4240,6 @@ public java.lang.String getKmsKeyVersionName() { } } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4792,17 +4247,16 @@ public java.lang.String getKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyVersionName. */ - public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -4810,8 +4264,6 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { } } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4819,25 +4271,19 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyVersionName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyVersionName_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4845,10 +4291,7 @@ public Builder setKmsKeyVersionName(java.lang.String value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { @@ -4858,8 +4301,6 @@ public Builder clearKmsKeyVersionName() { return this; } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4867,26 +4308,22 @@ public Builder clearKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyVersionNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyVersionName_ = value; bitField0_ |= 0x00004000; 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); } @@ -4896,12 +4333,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.PhraseSet) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.PhraseSet) private static final com.google.cloud.speech.v2.PhraseSet DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.PhraseSet(); } @@ -4910,27 +4347,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4945,4 +4382,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java similarity index 75% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java index 1989e818db78..8f448c93bd77 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface PhraseSetOrBuilder - extends +public interface PhraseSetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.PhraseSet) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the PhraseSet.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the PhraseSet.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. System-assigned unique identifier for the PhraseSet.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. System-assigned unique identifier for the PhraseSet.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - java.util.List getPhrasesList(); + java.util.List + getPhrasesList(); /** - * - * *
    * A list of word and phrases.
    * 
@@ -96,8 +67,6 @@ public interface PhraseSetOrBuilder */ com.google.cloud.speech.v2.PhraseSet.Phrase getPhrases(int index); /** - * - * *
    * A list of word and phrases.
    * 
@@ -106,30 +75,25 @@ public interface PhraseSetOrBuilder */ int getPhrasesCount(); /** - * - * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - java.util.List + java.util.List getPhrasesOrBuilderList(); /** - * - * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index); + com.google.cloud.speech.v2.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
@@ -139,222 +103,160 @@ public interface PhraseSetOrBuilder
    * 
* * float boost = 4; - * * @return The boost. */ float getBoost(); /** - * - * *
    * User-settable, human-readable name for the PhraseSet. Must be 63
    * characters or less.
    * 
* * string display_name = 5; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * User-settable, human-readable name for the PhraseSet. Must be 63
    * characters or less.
    * 
* * string display_name = 5; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. The PhraseSet lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The PhraseSet lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.speech.v2.PhraseSet.State getState(); /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * *
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -365,8 +267,6 @@ public interface PhraseSetOrBuilder
    */
   int getAnnotationsCount();
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -375,13 +275,15 @@ public interface PhraseSetOrBuilder
    *
    * map<string, string> annotations = 10;
    */
-  boolean containsAnnotations(java.lang.String key);
-  /** Use {@link #getAnnotationsMap()} instead. */
+  boolean containsAnnotations(
+      java.lang.String key);
+  /**
+   * Use {@link #getAnnotationsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getAnnotations();
+  java.util.Map
+  getAnnotations();
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -390,10 +292,9 @@ public interface PhraseSetOrBuilder
    *
    * map<string, string> annotations = 10;
    */
-  java.util.Map getAnnotationsMap();
+  java.util.Map
+  getAnnotationsMap();
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -403,13 +304,11 @@ public interface PhraseSetOrBuilder
    * map<string, string> annotations = 10;
    */
   /* nullable */
-  java.lang.String getAnnotationsOrDefault(
+java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -418,11 +317,10 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> annotations = 10;
    */
-  java.lang.String getAnnotationsOrThrow(java.lang.String key);
+  java.lang.String getAnnotationsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -430,13 +328,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -444,28 +339,23 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Output only. Whether or not this PhraseSet is in the process of being
    * updated.
    * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ boolean getReconciling(); /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -473,16 +363,11 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -490,17 +375,13 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -508,16 +389,11 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyVersionName. */ java.lang.String getKmsKeyVersionName(); /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -525,11 +401,9 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyVersionName. */ - com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); + com.google.protobuf.ByteString + getKmsKeyVersionNameBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java index 9968a0781200..5cca8f7c317d 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Provides information to the Recognizer that specifies how to process the
  * recognition request.
@@ -28,56 +11,52 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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() {}
+  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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.RecognitionConfig.class,
-            com.google.cloud.speech.v2.RecognitionConfig.Builder.class);
+            com.google.cloud.speech.v2.RecognitionConfig.class, com.google.cloud.speech.v2.RecognitionConfig.Builder.class);
   }
 
   private int decodingConfigCase_ = 0;
   private java.lang.Object decodingConfig_;
-
   public enum DecodingConfigCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     AUTO_DECODING_CONFIG(7),
     EXPLICIT_DECODING_CONFIG(8),
     DECODINGCONFIG_NOT_SET(0);
     private final int value;
-
     private DecodingConfigCase(int value) {
       this.value = value;
     }
@@ -93,37 +72,31 @@ public static DecodingConfigCase valueOf(int value) {
 
     public static DecodingConfigCase forNumber(int value) {
       switch (value) {
-        case 7:
-          return AUTO_DECODING_CONFIG;
-        case 8:
-          return EXPLICIT_DECODING_CONFIG;
-        case 0:
-          return DECODINGCONFIG_NOT_SET;
-        default:
-          return null;
+        case 7: return AUTO_DECODING_CONFIG;
+        case 8: return EXPLICIT_DECODING_CONFIG;
+        case 0: return DECODINGCONFIG_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public DecodingConfigCase getDecodingConfigCase() {
-    return DecodingConfigCase.forNumber(decodingConfigCase_);
+  public DecodingConfigCase
+  getDecodingConfigCase() {
+    return DecodingConfigCase.forNumber(
+        decodingConfigCase_);
   }
 
   public static final int AUTO_DECODING_CONFIG_FIELD_NUMBER = 7;
   /**
-   *
-   *
    * 
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
    * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; - * * @return Whether the autoDecodingConfig field is set. */ @java.lang.Override @@ -131,27 +104,22 @@ public boolean hasAutoDecodingConfig() { return decodingConfigCase_ == 7; } /** - * - * *
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
    * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; - * * @return The autoDecodingConfig. */ @java.lang.Override public com.google.cloud.speech.v2.AutoDetectDecodingConfig getAutoDecodingConfig() { if (decodingConfigCase_ == 7) { - return (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_; + return (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_; } return com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance(); } /** - * - * *
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
@@ -160,25 +128,21 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig getAutoDecodingConfig
    * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder
-      getAutoDecodingConfigOrBuilder() {
+  public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder getAutoDecodingConfigOrBuilder() {
     if (decodingConfigCase_ == 7) {
-      return (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_;
+       return (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_;
     }
     return com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance();
   }
 
   public static final int EXPLICIT_DECODING_CONFIG_FIELD_NUMBER = 8;
   /**
-   *
-   *
    * 
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
    * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; - * * @return Whether the explicitDecodingConfig field is set. */ @java.lang.Override @@ -186,27 +150,22 @@ public boolean hasExplicitDecodingConfig() { return decodingConfigCase_ == 8; } /** - * - * *
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
    * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; - * * @return The explicitDecodingConfig. */ @java.lang.Override public com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConfig() { if (decodingConfigCase_ == 8) { - return (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_; + return (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_; } return com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance(); } /** - * - * *
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -215,10 +174,9 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConf
    * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder
-      getExplicitDecodingConfigOrBuilder() {
+  public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder getExplicitDecodingConfigOrBuilder() {
     if (decodingConfigCase_ == 8) {
-      return (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_;
+       return (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_;
     }
     return com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance();
   }
@@ -226,14 +184,11 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConf
   public static final int FEATURES_FIELD_NUMBER = 2;
   private com.google.cloud.speech.v2.RecognitionFeatures features_;
   /**
-   *
-   *
    * 
    * Speech recognition features to enable.
    * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; - * * @return Whether the features field is set. */ @java.lang.Override @@ -241,25 +196,18 @@ public boolean hasFeatures() { return features_ != null; } /** - * - * *
    * Speech recognition features to enable.
    * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; - * * @return The features. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionFeatures getFeatures() { - return features_ == null - ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() - : features_; + return features_ == null ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() : features_; } /** - * - * *
    * Speech recognition features to enable.
    * 
@@ -268,23 +216,18 @@ public com.google.cloud.speech.v2.RecognitionFeatures getFeatures() { */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder getFeaturesOrBuilder() { - return features_ == null - ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() - : features_; + return features_ == null ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() : features_; } public static final int ADAPTATION_FIELD_NUMBER = 6; private com.google.cloud.speech.v2.SpeechAdaptation adaptation_; /** - * - * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
    * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; - * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -292,26 +235,19 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** - * - * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
    * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; - * * @return The adaptation. */ @java.lang.Override public com.google.cloud.speech.v2.SpeechAdaptation getAdaptation() { - return adaptation_ == null - ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() - : adaptation_; + return adaptation_ == null ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() : adaptation_; } /** - * - * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
@@ -321,13 +257,10 @@ public com.google.cloud.speech.v2.SpeechAdaptation getAdaptation() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v2.SpeechAdaptationOrBuilder getAdaptationOrBuilder() {
-    return adaptation_ == null
-        ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance()
-        : adaptation_;
+    return adaptation_ == null ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() : adaptation_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -339,7 +272,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 (features_ != null) {
       output.writeMessage(2, getFeatures());
     }
@@ -362,20 +296,20 @@ public int getSerializedSize() {
 
     size = 0;
     if (features_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFeatures());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getFeatures());
     }
     if (adaptation_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getAdaptation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, getAdaptation());
     }
     if (decodingConfigCase_ == 7) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              7, (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_);
     }
     if (decodingConfigCase_ == 8) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              8, (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -385,29 +319,32 @@ 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.v2.RecognitionConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.RecognitionConfig other =
-        (com.google.cloud.speech.v2.RecognitionConfig) obj;
+    com.google.cloud.speech.v2.RecognitionConfig other = (com.google.cloud.speech.v2.RecognitionConfig) obj;
 
     if (hasFeatures() != other.hasFeatures()) return false;
     if (hasFeatures()) {
-      if (!getFeatures().equals(other.getFeatures())) return false;
+      if (!getFeatures()
+          .equals(other.getFeatures())) 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 (!getDecodingConfigCase().equals(other.getDecodingConfigCase())) return false;
     switch (decodingConfigCase_) {
       case 7:
-        if (!getAutoDecodingConfig().equals(other.getAutoDecodingConfig())) return false;
+        if (!getAutoDecodingConfig()
+            .equals(other.getAutoDecodingConfig())) return false;
         break;
       case 8:
-        if (!getExplicitDecodingConfig().equals(other.getExplicitDecodingConfig())) return false;
+        if (!getExplicitDecodingConfig()
+            .equals(other.getExplicitDecodingConfig())) return false;
         break;
       case 0:
       default:
@@ -448,104 +385,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.speech.v2.RecognitionConfig parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.speech.v2.RecognitionConfig parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.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.v2.RecognitionConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.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.v2.RecognitionConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.RecognitionConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v2.RecognitionConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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
    * recognition request.
@@ -553,32 +483,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.RecognitionConfig)
       com.google.cloud.speech.v2.RecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.RecognitionConfig.class,
-              com.google.cloud.speech.v2.RecognitionConfig.Builder.class);
+              com.google.cloud.speech.v2.RecognitionConfig.class, com.google.cloud.speech.v2.RecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.RecognitionConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -605,9 +536,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
@@ -626,11 +557,8 @@ public com.google.cloud.speech.v2.RecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.RecognitionConfig buildPartial() {
-      com.google.cloud.speech.v2.RecognitionConfig result =
-          new com.google.cloud.speech.v2.RecognitionConfig(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.RecognitionConfig result = new com.google.cloud.speech.v2.RecognitionConfig(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -639,20 +567,26 @@ public com.google.cloud.speech.v2.RecognitionConfig buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.RecognitionConfig result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.features_ = featuresBuilder_ == null ? features_ : featuresBuilder_.build();
+        result.features_ = featuresBuilder_ == null
+            ? features_
+            : featuresBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.adaptation_ = adaptationBuilder_ == null ? adaptation_ : adaptationBuilder_.build();
+        result.adaptation_ = adaptationBuilder_ == null
+            ? adaptation_
+            : adaptationBuilder_.build();
       }
     }
 
     private void buildPartialOneofs(com.google.cloud.speech.v2.RecognitionConfig result) {
       result.decodingConfigCase_ = decodingConfigCase_;
       result.decodingConfig_ = this.decodingConfig_;
-      if (decodingConfigCase_ == 7 && autoDecodingConfigBuilder_ != null) {
+      if (decodingConfigCase_ == 7 &&
+          autoDecodingConfigBuilder_ != null) {
         result.decodingConfig_ = autoDecodingConfigBuilder_.build();
       }
-      if (decodingConfigCase_ == 8 && explicitDecodingConfigBuilder_ != null) {
+      if (decodingConfigCase_ == 8 &&
+          explicitDecodingConfigBuilder_ != null) {
         result.decodingConfig_ = explicitDecodingConfigBuilder_.build();
       }
     }
@@ -661,39 +595,38 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.RecognitionConfig res
     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.v2.RecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v2.RecognitionConfig) other);
+        return mergeFrom((com.google.cloud.speech.v2.RecognitionConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -709,20 +642,17 @@ public Builder mergeFrom(com.google.cloud.speech.v2.RecognitionConfig other) {
         mergeAdaptation(other.getAdaptation());
       }
       switch (other.getDecodingConfigCase()) {
-        case AUTO_DECODING_CONFIG:
-          {
-            mergeAutoDecodingConfig(other.getAutoDecodingConfig());
-            break;
-          }
-        case EXPLICIT_DECODING_CONFIG:
-          {
-            mergeExplicitDecodingConfig(other.getExplicitDecodingConfig());
-            break;
-          }
-        case DECODINGCONFIG_NOT_SET:
-          {
-            break;
-          }
+        case AUTO_DECODING_CONFIG: {
+          mergeAutoDecodingConfig(other.getAutoDecodingConfig());
+          break;
+        }
+        case EXPLICIT_DECODING_CONFIG: {
+          mergeExplicitDecodingConfig(other.getExplicitDecodingConfig());
+          break;
+        }
+        case DECODINGCONFIG_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -750,39 +680,40 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18:
-              {
-                input.readMessage(getFeaturesFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 18
-            case 50:
-              {
-                input.readMessage(getAdaptationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(
-                    getAutoDecodingConfigFieldBuilder().getBuilder(), extensionRegistry);
-                decodingConfigCase_ = 7;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(
-                    getExplicitDecodingConfigFieldBuilder().getBuilder(), extensionRegistry);
-                decodingConfigCase_ = 8;
-                break;
-              } // case 66
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 18: {
+              input.readMessage(
+                  getFeaturesFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 18
+            case 50: {
+              input.readMessage(
+                  getAdaptationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getAutoDecodingConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              decodingConfigCase_ = 7;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getExplicitDecodingConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              decodingConfigCase_ = 8;
+              break;
+            } // case 66
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -792,12 +723,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int decodingConfigCase_ = 0;
     private java.lang.Object decodingConfig_;
-
-    public DecodingConfigCase getDecodingConfigCase() {
-      return DecodingConfigCase.forNumber(decodingConfigCase_);
+    public DecodingConfigCase
+        getDecodingConfigCase() {
+      return DecodingConfigCase.forNumber(
+          decodingConfigCase_);
     }
 
     public Builder clearDecodingConfig() {
@@ -810,20 +741,14 @@ public Builder clearDecodingConfig() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.AutoDetectDecodingConfig,
-            com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder,
-            com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder>
-        autoDecodingConfigBuilder_;
+        com.google.cloud.speech.v2.AutoDetectDecodingConfig, com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder, com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder> autoDecodingConfigBuilder_;
     /**
-     *
-     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
      * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; - * * @return Whether the autoDecodingConfig field is set. */ @java.lang.Override @@ -831,15 +756,12 @@ public boolean hasAutoDecodingConfig() { return decodingConfigCase_ == 7; } /** - * - * *
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
      * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; - * * @return The autoDecodingConfig. */ @java.lang.Override @@ -857,8 +779,6 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig getAutoDecodingConfig } } /** - * - * *
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -866,8 +786,7 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig getAutoDecodingConfig
      *
      * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      */
-    public Builder setAutoDecodingConfig(
-        com.google.cloud.speech.v2.AutoDetectDecodingConfig value) {
+    public Builder setAutoDecodingConfig(com.google.cloud.speech.v2.AutoDetectDecodingConfig value) {
       if (autoDecodingConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -881,8 +800,6 @@ public Builder setAutoDecodingConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -902,8 +819,6 @@ public Builder setAutoDecodingConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -911,17 +826,12 @@ public Builder setAutoDecodingConfig(
      *
      * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      */
-    public Builder mergeAutoDecodingConfig(
-        com.google.cloud.speech.v2.AutoDetectDecodingConfig value) {
+    public Builder mergeAutoDecodingConfig(com.google.cloud.speech.v2.AutoDetectDecodingConfig value) {
       if (autoDecodingConfigBuilder_ == null) {
-        if (decodingConfigCase_ == 7
-            && decodingConfig_
-                != com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance()) {
-          decodingConfig_ =
-              com.google.cloud.speech.v2.AutoDetectDecodingConfig.newBuilder(
-                      (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (decodingConfigCase_ == 7 &&
+            decodingConfig_ != com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance()) {
+          decodingConfig_ = com.google.cloud.speech.v2.AutoDetectDecodingConfig.newBuilder((com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_)
+              .mergeFrom(value).buildPartial();
         } else {
           decodingConfig_ = value;
         }
@@ -937,8 +847,6 @@ public Builder mergeAutoDecodingConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -963,8 +871,6 @@ public Builder clearAutoDecodingConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -972,13 +878,10 @@ public Builder clearAutoDecodingConfig() {
      *
      * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      */
-    public com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder
-        getAutoDecodingConfigBuilder() {
+    public com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder getAutoDecodingConfigBuilder() {
       return getAutoDecodingConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -987,8 +890,7 @@ public Builder clearAutoDecodingConfig() {
      * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      */
     @java.lang.Override
-    public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder
-        getAutoDecodingConfigOrBuilder() {
+    public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder getAutoDecodingConfigOrBuilder() {
       if ((decodingConfigCase_ == 7) && (autoDecodingConfigBuilder_ != null)) {
         return autoDecodingConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -999,8 +901,6 @@ public Builder clearAutoDecodingConfig() {
       }
     }
     /**
-     *
-     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -1009,20 +909,14 @@ public Builder clearAutoDecodingConfig() {
      * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.AutoDetectDecodingConfig,
-            com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder,
-            com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder>
+        com.google.cloud.speech.v2.AutoDetectDecodingConfig, com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder, com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder> 
         getAutoDecodingConfigFieldBuilder() {
       if (autoDecodingConfigBuilder_ == null) {
         if (!(decodingConfigCase_ == 7)) {
-          decodingConfig_ =
-              com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance();
+          decodingConfig_ = com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance();
         }
-        autoDecodingConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v2.AutoDetectDecodingConfig,
-                com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder,
-                com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder>(
+        autoDecodingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v2.AutoDetectDecodingConfig, com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder, com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder>(
                 (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_,
                 getParentForChildren(),
                 isClean());
@@ -1034,20 +928,14 @@ public Builder clearAutoDecodingConfig() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.ExplicitDecodingConfig,
-            com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder,
-            com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder>
-        explicitDecodingConfigBuilder_;
+        com.google.cloud.speech.v2.ExplicitDecodingConfig, com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder, com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder> explicitDecodingConfigBuilder_;
     /**
-     *
-     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
      * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; - * * @return Whether the explicitDecodingConfig field is set. */ @java.lang.Override @@ -1055,15 +943,12 @@ public boolean hasExplicitDecodingConfig() { return decodingConfigCase_ == 8; } /** - * - * *
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
      * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; - * * @return The explicitDecodingConfig. */ @java.lang.Override @@ -1081,8 +966,6 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConf } } /** - * - * *
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1090,8 +973,7 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConf
      *
      * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      */
-    public Builder setExplicitDecodingConfig(
-        com.google.cloud.speech.v2.ExplicitDecodingConfig value) {
+    public Builder setExplicitDecodingConfig(com.google.cloud.speech.v2.ExplicitDecodingConfig value) {
       if (explicitDecodingConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1105,8 +987,6 @@ public Builder setExplicitDecodingConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1126,8 +1006,6 @@ public Builder setExplicitDecodingConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1135,17 +1013,12 @@ public Builder setExplicitDecodingConfig(
      *
      * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      */
-    public Builder mergeExplicitDecodingConfig(
-        com.google.cloud.speech.v2.ExplicitDecodingConfig value) {
+    public Builder mergeExplicitDecodingConfig(com.google.cloud.speech.v2.ExplicitDecodingConfig value) {
       if (explicitDecodingConfigBuilder_ == null) {
-        if (decodingConfigCase_ == 8
-            && decodingConfig_
-                != com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance()) {
-          decodingConfig_ =
-              com.google.cloud.speech.v2.ExplicitDecodingConfig.newBuilder(
-                      (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (decodingConfigCase_ == 8 &&
+            decodingConfig_ != com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance()) {
+          decodingConfig_ = com.google.cloud.speech.v2.ExplicitDecodingConfig.newBuilder((com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_)
+              .mergeFrom(value).buildPartial();
         } else {
           decodingConfig_ = value;
         }
@@ -1161,8 +1034,6 @@ public Builder mergeExplicitDecodingConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1187,8 +1058,6 @@ public Builder clearExplicitDecodingConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1196,13 +1065,10 @@ public Builder clearExplicitDecodingConfig() {
      *
      * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      */
-    public com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder
-        getExplicitDecodingConfigBuilder() {
+    public com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder getExplicitDecodingConfigBuilder() {
       return getExplicitDecodingConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1211,8 +1077,7 @@ public Builder clearExplicitDecodingConfig() {
      * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      */
     @java.lang.Override
-    public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder
-        getExplicitDecodingConfigOrBuilder() {
+    public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder getExplicitDecodingConfigOrBuilder() {
       if ((decodingConfigCase_ == 8) && (explicitDecodingConfigBuilder_ != null)) {
         return explicitDecodingConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -1223,8 +1088,6 @@ public Builder clearExplicitDecodingConfig() {
       }
     }
     /**
-     *
-     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1233,19 +1096,14 @@ public Builder clearExplicitDecodingConfig() {
      * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.ExplicitDecodingConfig,
-            com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder,
-            com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder>
+        com.google.cloud.speech.v2.ExplicitDecodingConfig, com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder, com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder> 
         getExplicitDecodingConfigFieldBuilder() {
       if (explicitDecodingConfigBuilder_ == null) {
         if (!(decodingConfigCase_ == 8)) {
           decodingConfig_ = com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance();
         }
-        explicitDecodingConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v2.ExplicitDecodingConfig,
-                com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder,
-                com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder>(
+        explicitDecodingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v2.ExplicitDecodingConfig, com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder, com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder>(
                 (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_,
                 getParentForChildren(),
                 isClean());
@@ -1258,47 +1116,34 @@ public Builder clearExplicitDecodingConfig() {
 
     private com.google.cloud.speech.v2.RecognitionFeatures features_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.RecognitionFeatures,
-            com.google.cloud.speech.v2.RecognitionFeatures.Builder,
-            com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder>
-        featuresBuilder_;
+        com.google.cloud.speech.v2.RecognitionFeatures, com.google.cloud.speech.v2.RecognitionFeatures.Builder, com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder> featuresBuilder_;
     /**
-     *
-     *
      * 
      * Speech recognition features to enable.
      * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; - * * @return Whether the features field is set. */ public boolean hasFeatures() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Speech recognition features to enable.
      * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; - * * @return The features. */ public com.google.cloud.speech.v2.RecognitionFeatures getFeatures() { if (featuresBuilder_ == null) { - return features_ == null - ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() - : features_; + return features_ == null ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() : features_; } else { return featuresBuilder_.getMessage(); } } /** - * - * *
      * Speech recognition features to enable.
      * 
@@ -1319,8 +1164,6 @@ public Builder setFeatures(com.google.cloud.speech.v2.RecognitionFeatures value) return this; } /** - * - * *
      * Speech recognition features to enable.
      * 
@@ -1339,8 +1182,6 @@ public Builder setFeatures( return this; } /** - * - * *
      * Speech recognition features to enable.
      * 
@@ -1349,9 +1190,9 @@ public Builder setFeatures( */ public Builder mergeFeatures(com.google.cloud.speech.v2.RecognitionFeatures value) { if (featuresBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && features_ != null - && features_ != com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + features_ != null && + features_ != com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance()) { getFeaturesBuilder().mergeFrom(value); } else { features_ = value; @@ -1364,8 +1205,6 @@ public Builder mergeFeatures(com.google.cloud.speech.v2.RecognitionFeatures valu return this; } /** - * - * *
      * Speech recognition features to enable.
      * 
@@ -1383,8 +1222,6 @@ public Builder clearFeatures() { return this; } /** - * - * *
      * Speech recognition features to enable.
      * 
@@ -1397,8 +1234,6 @@ public com.google.cloud.speech.v2.RecognitionFeatures.Builder getFeaturesBuilder return getFeaturesFieldBuilder().getBuilder(); } /** - * - * *
      * Speech recognition features to enable.
      * 
@@ -1409,14 +1244,11 @@ public com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder getFeaturesOrBuil if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilder(); } else { - return features_ == null - ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() - : features_; + return features_ == null ? + com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() : features_; } } /** - * - * *
      * Speech recognition features to enable.
      * 
@@ -1424,17 +1256,14 @@ public com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder getFeaturesOrBuil * .google.cloud.speech.v2.RecognitionFeatures features = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionFeatures, - com.google.cloud.speech.v2.RecognitionFeatures.Builder, - com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder> + com.google.cloud.speech.v2.RecognitionFeatures, com.google.cloud.speech.v2.RecognitionFeatures.Builder, com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionFeatures, - com.google.cloud.speech.v2.RecognitionFeatures.Builder, - com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder>( - getFeatures(), getParentForChildren(), isClean()); + featuresBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.RecognitionFeatures, com.google.cloud.speech.v2.RecognitionFeatures.Builder, com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder>( + getFeatures(), + getParentForChildren(), + isClean()); features_ = null; } return featuresBuilder_; @@ -1442,49 +1271,36 @@ public com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder getFeaturesOrBuil private com.google.cloud.speech.v2.SpeechAdaptation adaptation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.SpeechAdaptation, - com.google.cloud.speech.v2.SpeechAdaptation.Builder, - com.google.cloud.speech.v2.SpeechAdaptationOrBuilder> - adaptationBuilder_; + com.google.cloud.speech.v2.SpeechAdaptation, com.google.cloud.speech.v2.SpeechAdaptation.Builder, com.google.cloud.speech.v2.SpeechAdaptationOrBuilder> adaptationBuilder_; /** - * - * *
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
      * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; - * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
      * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; - * * @return The adaptation. */ public com.google.cloud.speech.v2.SpeechAdaptation getAdaptation() { if (adaptationBuilder_ == null) { - return adaptation_ == null - ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() - : adaptation_; + return adaptation_ == null ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() : adaptation_; } else { return adaptationBuilder_.getMessage(); } } /** - * - * *
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1506,8 +1322,6 @@ public Builder setAdaptation(com.google.cloud.speech.v2.SpeechAdaptation value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1527,8 +1341,6 @@ public Builder setAdaptation(
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1538,9 +1350,9 @@ public Builder setAdaptation(
      */
     public Builder mergeAdaptation(com.google.cloud.speech.v2.SpeechAdaptation value) {
       if (adaptationBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && adaptation_ != null
-            && adaptation_ != com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          adaptation_ != null &&
+          adaptation_ != com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance()) {
           getAdaptationBuilder().mergeFrom(value);
         } else {
           adaptation_ = value;
@@ -1553,8 +1365,6 @@ public Builder mergeAdaptation(com.google.cloud.speech.v2.SpeechAdaptation value
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1573,8 +1383,6 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1588,8 +1396,6 @@ public com.google.cloud.speech.v2.SpeechAdaptation.Builder getAdaptationBuilder(
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1601,14 +1407,11 @@ public com.google.cloud.speech.v2.SpeechAdaptationOrBuilder getAdaptationOrBuild
       if (adaptationBuilder_ != null) {
         return adaptationBuilder_.getMessageOrBuilder();
       } else {
-        return adaptation_ == null
-            ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance()
-            : adaptation_;
+        return adaptation_ == null ?
+            com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() : adaptation_;
       }
     }
     /**
-     *
-     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1617,24 +1420,21 @@ public com.google.cloud.speech.v2.SpeechAdaptationOrBuilder getAdaptationOrBuild
      * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.SpeechAdaptation,
-            com.google.cloud.speech.v2.SpeechAdaptation.Builder,
-            com.google.cloud.speech.v2.SpeechAdaptationOrBuilder>
+        com.google.cloud.speech.v2.SpeechAdaptation, com.google.cloud.speech.v2.SpeechAdaptation.Builder, com.google.cloud.speech.v2.SpeechAdaptationOrBuilder> 
         getAdaptationFieldBuilder() {
       if (adaptationBuilder_ == null) {
-        adaptationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v2.SpeechAdaptation,
-                com.google.cloud.speech.v2.SpeechAdaptation.Builder,
-                com.google.cloud.speech.v2.SpeechAdaptationOrBuilder>(
-                getAdaptation(), getParentForChildren(), isClean());
+        adaptationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v2.SpeechAdaptation, com.google.cloud.speech.v2.SpeechAdaptation.Builder, com.google.cloud.speech.v2.SpeechAdaptationOrBuilder>(
+                getAdaptation(),
+                getParentForChildren(),
+                isClean());
         adaptation_ = null;
       }
       return adaptationBuilder_;
     }
-
     @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);
     }
 
@@ -1644,12 +1444,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.RecognitionConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.RecognitionConfig)
   private static final com.google.cloud.speech.v2.RecognitionConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.RecognitionConfig();
   }
@@ -1658,27 +1458,27 @@ public static com.google.cloud.speech.v2.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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  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 {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1693,4 +1493,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v2.RecognitionConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java
similarity index 83%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java
index 62221365975b..b1dc2f84ec67 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
-public interface RecognitionConfigOrBuilder
-    extends
+public interface RecognitionConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.RecognitionConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
    * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; - * * @return Whether the autoDecodingConfig field is set. */ boolean hasAutoDecodingConfig(); /** - * - * *
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
    * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; - * * @return The autoDecodingConfig. */ com.google.cloud.speech.v2.AutoDetectDecodingConfig getAutoDecodingConfig(); /** - * - * *
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
@@ -62,34 +38,26 @@ public interface RecognitionConfigOrBuilder
   com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder getAutoDecodingConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
    * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; - * * @return Whether the explicitDecodingConfig field is set. */ boolean hasExplicitDecodingConfig(); /** - * - * *
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
    * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; - * * @return The explicitDecodingConfig. */ com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConfig(); /** - * - * *
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -100,32 +68,24 @@ public interface RecognitionConfigOrBuilder
   com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder getExplicitDecodingConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Speech recognition features to enable.
    * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; - * * @return Whether the features field is set. */ boolean hasFeatures(); /** - * - * *
    * Speech recognition features to enable.
    * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; - * * @return The features. */ com.google.cloud.speech.v2.RecognitionFeatures getFeatures(); /** - * - * *
    * Speech recognition features to enable.
    * 
@@ -135,34 +95,26 @@ public interface RecognitionConfigOrBuilder com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder getFeaturesOrBuilder(); /** - * - * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
    * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; - * * @return Whether the adaptation field is set. */ boolean hasAdaptation(); /** - * - * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
    * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; - * * @return The adaptation. */ com.google.cloud.speech.v2.SpeechAdaptation getAdaptation(); /** - * - * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java
similarity index 76%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java
index dc73e69ce7be..5cb5f781c74c 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java
@@ -1,85 +1,63 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
- *
- *
  * 
  * Available recognition features.
  * 
* * Protobuf type {@code google.cloud.speech.v2.RecognitionFeatures} */ -public final class RecognitionFeatures extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RecognitionFeatures extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.RecognitionFeatures) RecognitionFeaturesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RecognitionFeatures.newBuilder() to construct. private RecognitionFeatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RecognitionFeatures() { multiChannelMode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RecognitionFeatures(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.RecognitionFeatures.class, - com.google.cloud.speech.v2.RecognitionFeatures.Builder.class); + com.google.cloud.speech.v2.RecognitionFeatures.class, com.google.cloud.speech.v2.RecognitionFeatures.Builder.class); } /** - * - * *
    * Options for how to recognize multi-channel audio.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode} */ - public enum MultiChannelMode implements com.google.protobuf.ProtocolMessageEnum { + public enum MultiChannelMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value for the multi-channel mode. If the audio contains
      * multiple channels, only the first channel will be transcribed; other
@@ -90,8 +68,6 @@ public enum MultiChannelMode implements com.google.protobuf.ProtocolMessageEnum
      */
     MULTI_CHANNEL_MODE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * If selected, each channel in the provided audio is transcribed
      * independently. This cannot be selected if the selected
@@ -105,8 +81,6 @@ public enum MultiChannelMode implements com.google.protobuf.ProtocolMessageEnum
     ;
 
     /**
-     *
-     *
      * 
      * Default value for the multi-channel mode. If the audio contains
      * multiple channels, only the first channel will be transcribed; other
@@ -117,8 +91,6 @@ public enum MultiChannelMode implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int MULTI_CHANNEL_MODE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * If selected, each channel in the provided audio is transcribed
      * independently. This cannot be selected if the selected
@@ -129,6 +101,7 @@ public enum MultiChannelMode implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int SEPARATE_RECOGNITION_PER_CHANNEL_VALUE = 1;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -153,40 +126,38 @@ public static MultiChannelMode valueOf(int value) {
      */
     public static MultiChannelMode forNumber(int value) {
       switch (value) {
-        case 0:
-          return MULTI_CHANNEL_MODE_UNSPECIFIED;
-        case 1:
-          return SEPARATE_RECOGNITION_PER_CHANNEL;
-        default:
-          return null;
+        case 0: return MULTI_CHANNEL_MODE_UNSPECIFIED;
+        case 1: return SEPARATE_RECOGNITION_PER_CHANNEL;
+        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<
+        MultiChannelMode> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public MultiChannelMode findValueByNumber(int number) {
+              return MultiChannelMode.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public MultiChannelMode findValueByNumber(int number) {
-                return MultiChannelMode.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.v2.RecognitionFeatures.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -195,7 +166,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static MultiChannelMode 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;
@@ -215,8 +187,6 @@ private MultiChannelMode(int value) {
   public static final int PROFANITY_FILTER_FIELD_NUMBER = 1;
   private boolean profanityFilter_ = false;
   /**
-   *
-   *
    * 
    * If set to `true`, the server will attempt to filter out profanities,
    * replacing all but the initial character in each filtered word with
@@ -225,7 +195,6 @@ private MultiChannelMode(int value) {
    * 
* * bool profanity_filter = 1; - * * @return The profanityFilter. */ @java.lang.Override @@ -236,8 +205,6 @@ public boolean getProfanityFilter() { public static final int ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER = 2; private boolean enableWordTimeOffsets_ = false; /** - * - * *
    * If `true`, the top result includes a list of words and the start and end
    * time offsets (timestamps) for those words. If `false`, no word-level time
@@ -245,7 +212,6 @@ public boolean getProfanityFilter() {
    * 
* * bool enable_word_time_offsets = 2; - * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -256,8 +222,6 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 3; private boolean enableWordConfidence_ = false; /** - * - * *
    * If `true`, the top result includes a list of words and the confidence for
    * those words. If `false`, no word-level confidence information is returned.
@@ -265,7 +229,6 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 3; - * * @return The enableWordConfidence. */ @java.lang.Override @@ -276,8 +239,6 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 4; private boolean enableAutomaticPunctuation_ = false; /** - * - * *
    * If `true`, adds punctuation to recognition result hypotheses. This feature
    * is only available in select languages. The default `false` value does not
@@ -285,7 +246,6 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 4; - * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -296,8 +256,6 @@ public boolean getEnableAutomaticPunctuation() { public static final int ENABLE_SPOKEN_PUNCTUATION_FIELD_NUMBER = 14; private boolean enableSpokenPunctuation_ = false; /** - * - * *
    * The spoken punctuation behavior for the call. If `true`, replaces spoken
    * punctuation with the corresponding symbols in the request. For example,
@@ -307,7 +265,6 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * bool enable_spoken_punctuation = 14; - * * @return The enableSpokenPunctuation. */ @java.lang.Override @@ -318,8 +275,6 @@ public boolean getEnableSpokenPunctuation() { public static final int ENABLE_SPOKEN_EMOJIS_FIELD_NUMBER = 15; private boolean enableSpokenEmojis_ = false; /** - * - * *
    * The spoken emoji behavior for the call. If `true`, adds spoken emoji
    * formatting for the request. This will replace spoken emojis with the
@@ -328,7 +283,6 @@ public boolean getEnableSpokenPunctuation() {
    * 
* * bool enable_spoken_emojis = 15; - * * @return The enableSpokenEmojis. */ @java.lang.Override @@ -339,48 +293,32 @@ public boolean getEnableSpokenEmojis() { public static final int MULTI_CHANNEL_MODE_FIELD_NUMBER = 17; private int multiChannelMode_ = 0; /** - * - * *
    * Mode for recognizing multi-channel audio.
    * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; - * - * + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; * @return The enum numeric value on the wire for multiChannelMode. */ - @java.lang.Override - public int getMultiChannelModeValue() { + @java.lang.Override public int getMultiChannelModeValue() { return multiChannelMode_; } /** - * - * *
    * Mode for recognizing multi-channel audio.
    * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; - * - * + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; * @return The multiChannelMode. */ - @java.lang.Override - public com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode getMultiChannelMode() { - com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode result = - com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.forNumber( - multiChannelMode_); - return result == null - ? com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode getMultiChannelMode() { + com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode result = com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.forNumber(multiChannelMode_); + return result == null ? com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.UNRECOGNIZED : result; } public static final int DIARIZATION_CONFIG_FIELD_NUMBER = 9; private com.google.cloud.speech.v2.SpeakerDiarizationConfig diarizationConfig_; /** - * - * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -393,7 +331,6 @@ public com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode getMultiC
    * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; - * * @return Whether the diarizationConfig field is set. */ @java.lang.Override @@ -401,8 +338,6 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** - * - * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -415,18 +350,13 @@ public boolean hasDiarizationConfig() {
    * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; - * * @return The diarizationConfig. */ @java.lang.Override public com.google.cloud.speech.v2.SpeakerDiarizationConfig getDiarizationConfig() { - return diarizationConfig_ == null - ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() - : diarizationConfig_; + return diarizationConfig_ == null ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_; } /** - * - * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -441,18 +371,13 @@ public com.google.cloud.speech.v2.SpeakerDiarizationConfig getDiarizationConfig(
    * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder
-      getDiarizationConfigOrBuilder() {
-    return diarizationConfig_ == null
-        ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()
-        : diarizationConfig_;
+  public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
+    return diarizationConfig_ == null ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_;
   }
 
   public static final int MAX_ALTERNATIVES_FIELD_NUMBER = 16;
   private int maxAlternatives_ = 0;
   /**
-   *
-   *
    * 
    * Maximum number of recognition hypotheses to be returned.
    * The server may return fewer than `max_alternatives`.
@@ -461,7 +386,6 @@ public com.google.cloud.speech.v2.SpeakerDiarizationConfig getDiarizationConfig(
    * 
* * int32 max_alternatives = 16; - * * @return The maxAlternatives. */ @java.lang.Override @@ -470,7 +394,6 @@ public int getMaxAlternatives() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -482,7 +405,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 (profanityFilter_ != false) { output.writeBool(1, profanityFilter_); } @@ -507,10 +431,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxAlternatives_ != 0) { output.writeInt32(16, maxAlternatives_); } - if (multiChannelMode_ - != com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode - .MULTI_CHANNEL_MODE_UNSPECIFIED - .getNumber()) { + if (multiChannelMode_ != com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.MULTI_CHANNEL_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(17, multiChannelMode_); } getUnknownFields().writeTo(output); @@ -523,34 +444,40 @@ public int getSerializedSize() { size = 0; if (profanityFilter_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, profanityFilter_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, profanityFilter_); } if (enableWordTimeOffsets_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableWordTimeOffsets_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enableWordTimeOffsets_); } if (enableWordConfidence_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableWordConfidence_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, enableWordConfidence_); } if (enableAutomaticPunctuation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, enableAutomaticPunctuation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, enableAutomaticPunctuation_); } if (diarizationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDiarizationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getDiarizationConfig()); } if (enableSpokenPunctuation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, enableSpokenPunctuation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, enableSpokenPunctuation_); } if (enableSpokenEmojis_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, enableSpokenEmojis_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(15, enableSpokenEmojis_); } if (maxAlternatives_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(16, maxAlternatives_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(16, maxAlternatives_); } - if (multiChannelMode_ - != com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode - .MULTI_CHANNEL_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, multiChannelMode_); + if (multiChannelMode_ != com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.MULTI_CHANNEL_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(17, multiChannelMode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -560,26 +487,33 @@ 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.v2.RecognitionFeatures)) { return super.equals(obj); } - com.google.cloud.speech.v2.RecognitionFeatures other = - (com.google.cloud.speech.v2.RecognitionFeatures) obj; - - if (getProfanityFilter() != other.getProfanityFilter()) return false; - if (getEnableWordTimeOffsets() != other.getEnableWordTimeOffsets()) return false; - if (getEnableWordConfidence() != other.getEnableWordConfidence()) return false; - if (getEnableAutomaticPunctuation() != other.getEnableAutomaticPunctuation()) return false; - if (getEnableSpokenPunctuation() != other.getEnableSpokenPunctuation()) return false; - if (getEnableSpokenEmojis() != other.getEnableSpokenEmojis()) return false; + com.google.cloud.speech.v2.RecognitionFeatures other = (com.google.cloud.speech.v2.RecognitionFeatures) obj; + + if (getProfanityFilter() + != other.getProfanityFilter()) return false; + if (getEnableWordTimeOffsets() + != other.getEnableWordTimeOffsets()) return false; + if (getEnableWordConfidence() + != other.getEnableWordConfidence()) return false; + if (getEnableAutomaticPunctuation() + != other.getEnableAutomaticPunctuation()) return false; + if (getEnableSpokenPunctuation() + != other.getEnableSpokenPunctuation()) return false; + if (getEnableSpokenEmojis() + != other.getEnableSpokenEmojis()) return false; if (multiChannelMode_ != other.multiChannelMode_) 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 (getMaxAlternatives() != other.getMaxAlternatives()) return false; + if (getMaxAlternatives() + != other.getMaxAlternatives()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -592,17 +526,23 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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()); 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()); hash = (37 * hash) + ENABLE_SPOKEN_PUNCTUATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSpokenPunctuation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableSpokenPunctuation()); hash = (37 * hash) + ENABLE_SPOKEN_EMOJIS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSpokenEmojis()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableSpokenEmojis()); hash = (37 * hash) + MULTI_CHANNEL_MODE_FIELD_NUMBER; hash = (53 * hash) + multiChannelMode_; if (hasDiarizationConfig()) { @@ -616,136 +556,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.RecognitionFeatures parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.RecognitionFeatures parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.RecognitionFeatures 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.v2.RecognitionFeatures parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.RecognitionFeatures 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.v2.RecognitionFeatures parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.RecognitionFeatures 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.v2.RecognitionFeatures 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.v2.RecognitionFeatures 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.v2.RecognitionFeatures parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.RecognitionFeatures parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.RecognitionFeatures 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.v2.RecognitionFeatures 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.v2.RecognitionFeatures 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.v2.RecognitionFeatures 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; } /** - * - * *
    * Available recognition features.
    * 
* * Protobuf type {@code google.cloud.speech.v2.RecognitionFeatures} */ - 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.v2.RecognitionFeatures) com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.RecognitionFeatures.class, - com.google.cloud.speech.v2.RecognitionFeatures.Builder.class); + com.google.cloud.speech.v2.RecognitionFeatures.class, com.google.cloud.speech.v2.RecognitionFeatures.Builder.class); } // Construct using com.google.cloud.speech.v2.RecognitionFeatures.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -767,9 +701,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; } @java.lang.Override @@ -788,11 +722,8 @@ public com.google.cloud.speech.v2.RecognitionFeatures build() { @java.lang.Override public com.google.cloud.speech.v2.RecognitionFeatures buildPartial() { - com.google.cloud.speech.v2.RecognitionFeatures result = - new com.google.cloud.speech.v2.RecognitionFeatures(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v2.RecognitionFeatures result = new com.google.cloud.speech.v2.RecognitionFeatures(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -821,10 +752,9 @@ private void buildPartial0(com.google.cloud.speech.v2.RecognitionFeatures result result.multiChannelMode_ = multiChannelMode_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.diarizationConfig_ = - diarizationConfigBuilder_ == null - ? diarizationConfig_ - : diarizationConfigBuilder_.build(); + result.diarizationConfig_ = diarizationConfigBuilder_ == null + ? diarizationConfig_ + : diarizationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.maxAlternatives_ = maxAlternatives_; @@ -835,39 +765,38 @@ private void buildPartial0(com.google.cloud.speech.v2.RecognitionFeatures result 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.v2.RecognitionFeatures) { - return mergeFrom((com.google.cloud.speech.v2.RecognitionFeatures) other); + return mergeFrom((com.google.cloud.speech.v2.RecognitionFeatures)other); } else { super.mergeFrom(other); return this; @@ -929,68 +858,59 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - profanityFilter_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - enableWordTimeOffsets_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - enableWordConfidence_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - enableAutomaticPunctuation_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 74: - { - input.readMessage( - getDiarizationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 74 - case 112: - { - enableSpokenPunctuation_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 112 - case 120: - { - enableSpokenEmojis_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 120 - case 128: - { - maxAlternatives_ = input.readInt32(); - bitField0_ |= 0x00000100; - break; - } // case 128 - case 136: - { - multiChannelMode_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 136 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + profanityFilter_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + enableWordTimeOffsets_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + enableWordConfidence_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + enableAutomaticPunctuation_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 74: { + input.readMessage( + getDiarizationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 112: { + enableSpokenPunctuation_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 112 + case 120: { + enableSpokenEmojis_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 120 + case 128: { + maxAlternatives_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 128 + case 136: { + multiChannelMode_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 136 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1000,13 +920,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - 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 with
@@ -1015,7 +932,6 @@ public Builder mergeFrom(
      * 
* * bool profanity_filter = 1; - * * @return The profanityFilter. */ @java.lang.Override @@ -1023,8 +939,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 with
@@ -1033,20 +947,17 @@ public boolean getProfanityFilter() {
      * 
* * bool profanity_filter = 1; - * * @param value The profanityFilter to set. * @return This builder for chaining. */ public Builder setProfanityFilter(boolean value) { - + profanityFilter_ = value; bitField0_ |= 0x00000001; 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 with
@@ -1055,7 +966,6 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 1; - * * @return This builder for chaining. */ public Builder clearProfanityFilter() { @@ -1065,10 +975,8 @@ public Builder clearProfanityFilter() { return this; } - 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 `false`, no word-level time
@@ -1076,7 +984,6 @@ public Builder clearProfanityFilter() {
      * 
* * bool enable_word_time_offsets = 2; - * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -1084,8 +991,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 `false`, no word-level time
@@ -1093,20 +998,17 @@ public boolean getEnableWordTimeOffsets() {
      * 
* * bool enable_word_time_offsets = 2; - * * @param value The enableWordTimeOffsets to set. * @return This builder for chaining. */ public Builder setEnableWordTimeOffsets(boolean value) { - + enableWordTimeOffsets_ = value; bitField0_ |= 0x00000002; 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 `false`, no word-level time
@@ -1114,7 +1016,6 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 2; - * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { @@ -1124,10 +1025,8 @@ public Builder clearEnableWordTimeOffsets() { 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 information is returned.
@@ -1135,7 +1034,6 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 3; - * * @return The enableWordConfidence. */ @java.lang.Override @@ -1143,8 +1041,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 information is returned.
@@ -1152,20 +1048,17 @@ public boolean getEnableWordConfidence() {
      * 
* * bool enable_word_confidence = 3; - * * @param value The enableWordConfidence to set. * @return This builder for chaining. */ public Builder setEnableWordConfidence(boolean value) { - + enableWordConfidence_ = value; bitField0_ |= 0x00000004; 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 information is returned.
@@ -1173,7 +1066,6 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 3; - * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { @@ -1183,10 +1075,8 @@ public Builder clearEnableWordConfidence() { return this; } - private boolean enableAutomaticPunctuation_; + private boolean enableAutomaticPunctuation_ ; /** - * - * *
      * If `true`, adds punctuation to recognition result hypotheses. This feature
      * is only available in select languages. The default `false` value does not
@@ -1194,7 +1084,6 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 4; - * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -1202,8 +1091,6 @@ public boolean getEnableAutomaticPunctuation() { return enableAutomaticPunctuation_; } /** - * - * *
      * If `true`, adds punctuation to recognition result hypotheses. This feature
      * is only available in select languages. The default `false` value does not
@@ -1211,20 +1098,17 @@ public boolean getEnableAutomaticPunctuation() {
      * 
* * bool enable_automatic_punctuation = 4; - * * @param value The enableAutomaticPunctuation to set. * @return This builder for chaining. */ public Builder setEnableAutomaticPunctuation(boolean value) { - + enableAutomaticPunctuation_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * If `true`, adds punctuation to recognition result hypotheses. This feature
      * is only available in select languages. The default `false` value does not
@@ -1232,7 +1116,6 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 4; - * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { @@ -1242,10 +1125,8 @@ public Builder clearEnableAutomaticPunctuation() { return this; } - private boolean enableSpokenPunctuation_; + private boolean enableSpokenPunctuation_ ; /** - * - * *
      * The spoken punctuation behavior for the call. If `true`, replaces spoken
      * punctuation with the corresponding symbols in the request. For example,
@@ -1255,7 +1136,6 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * bool enable_spoken_punctuation = 14; - * * @return The enableSpokenPunctuation. */ @java.lang.Override @@ -1263,8 +1143,6 @@ public boolean getEnableSpokenPunctuation() { return enableSpokenPunctuation_; } /** - * - * *
      * The spoken punctuation behavior for the call. If `true`, replaces spoken
      * punctuation with the corresponding symbols in the request. For example,
@@ -1274,20 +1152,17 @@ public boolean getEnableSpokenPunctuation() {
      * 
* * bool enable_spoken_punctuation = 14; - * * @param value The enableSpokenPunctuation to set. * @return This builder for chaining. */ public Builder setEnableSpokenPunctuation(boolean value) { - + enableSpokenPunctuation_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * The spoken punctuation behavior for the call. If `true`, replaces spoken
      * punctuation with the corresponding symbols in the request. For example,
@@ -1297,7 +1172,6 @@ public Builder setEnableSpokenPunctuation(boolean value) {
      * 
* * bool enable_spoken_punctuation = 14; - * * @return This builder for chaining. */ public Builder clearEnableSpokenPunctuation() { @@ -1307,10 +1181,8 @@ public Builder clearEnableSpokenPunctuation() { return this; } - private boolean enableSpokenEmojis_; + private boolean enableSpokenEmojis_ ; /** - * - * *
      * The spoken emoji behavior for the call. If `true`, adds spoken emoji
      * formatting for the request. This will replace spoken emojis with the
@@ -1319,7 +1191,6 @@ public Builder clearEnableSpokenPunctuation() {
      * 
* * bool enable_spoken_emojis = 15; - * * @return The enableSpokenEmojis. */ @java.lang.Override @@ -1327,8 +1198,6 @@ public boolean getEnableSpokenEmojis() { return enableSpokenEmojis_; } /** - * - * *
      * The spoken emoji behavior for the call. If `true`, adds spoken emoji
      * formatting for the request. This will replace spoken emojis with the
@@ -1337,20 +1206,17 @@ public boolean getEnableSpokenEmojis() {
      * 
* * bool enable_spoken_emojis = 15; - * * @param value The enableSpokenEmojis to set. * @return This builder for chaining. */ public Builder setEnableSpokenEmojis(boolean value) { - + enableSpokenEmojis_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The spoken emoji behavior for the call. If `true`, adds spoken emoji
      * formatting for the request. This will replace spoken emojis with the
@@ -1359,7 +1225,6 @@ public Builder setEnableSpokenEmojis(boolean value) {
      * 
* * bool enable_spoken_emojis = 15; - * * @return This builder for chaining. */ public Builder clearEnableSpokenEmojis() { @@ -1371,31 +1236,22 @@ public Builder clearEnableSpokenEmojis() { private int multiChannelMode_ = 0; /** - * - * *
      * Mode for recognizing multi-channel audio.
      * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; - * - * + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; * @return The enum numeric value on the wire for multiChannelMode. */ - @java.lang.Override - public int getMultiChannelModeValue() { + @java.lang.Override public int getMultiChannelModeValue() { return multiChannelMode_; } /** - * - * *
      * Mode for recognizing multi-channel audio.
      * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; - * - * + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; * @param value The enum numeric value on the wire for multiChannelMode to set. * @return This builder for chaining. */ @@ -1406,41 +1262,28 @@ public Builder setMultiChannelModeValue(int value) { return this; } /** - * - * *
      * Mode for recognizing multi-channel audio.
      * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; - * - * + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; * @return The multiChannelMode. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode getMultiChannelMode() { - com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode result = - com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.forNumber( - multiChannelMode_); - return result == null - ? com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.UNRECOGNIZED - : result; + com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode result = com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.forNumber(multiChannelMode_); + return result == null ? com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.UNRECOGNIZED : result; } /** - * - * *
      * Mode for recognizing multi-channel audio.
      * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; - * - * + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; * @param value The multiChannelMode to set. * @return This builder for chaining. */ - public Builder setMultiChannelMode( - com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode value) { + public Builder setMultiChannelMode(com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode value) { if (value == null) { throw new NullPointerException(); } @@ -1450,15 +1293,11 @@ public Builder setMultiChannelMode( return this; } /** - * - * *
      * Mode for recognizing multi-channel audio.
      * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; - * - * + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; * @return This builder for chaining. */ public Builder clearMultiChannelMode() { @@ -1470,13 +1309,8 @@ public Builder clearMultiChannelMode() { private com.google.cloud.speech.v2.SpeakerDiarizationConfig diarizationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.SpeakerDiarizationConfig, - com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder, - com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder> - diarizationConfigBuilder_; + com.google.cloud.speech.v2.SpeakerDiarizationConfig, com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder> diarizationConfigBuilder_; /** - * - * *
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1489,15 +1323,12 @@ public Builder clearMultiChannelMode() {
      * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; - * * @return Whether the diarizationConfig field is set. */ public boolean hasDiarizationConfig() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1510,21 +1341,16 @@ public boolean hasDiarizationConfig() {
      * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; - * * @return The diarizationConfig. */ public com.google.cloud.speech.v2.SpeakerDiarizationConfig getDiarizationConfig() { if (diarizationConfigBuilder_ == null) { - return diarizationConfig_ == null - ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() - : diarizationConfig_; + return diarizationConfig_ == null ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_; } else { return diarizationConfigBuilder_.getMessage(); } } /** - * - * *
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1552,8 +1378,6 @@ public Builder setDiarizationConfig(com.google.cloud.speech.v2.SpeakerDiarizatio
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1579,8 +1403,6 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1594,13 +1416,11 @@ public Builder setDiarizationConfig(
      *
      * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9;
      */
-    public Builder mergeDiarizationConfig(
-        com.google.cloud.speech.v2.SpeakerDiarizationConfig value) {
+    public Builder mergeDiarizationConfig(com.google.cloud.speech.v2.SpeakerDiarizationConfig value) {
       if (diarizationConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000080) != 0)
-            && diarizationConfig_ != null
-            && diarizationConfig_
-                != com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000080) != 0) &&
+          diarizationConfig_ != null &&
+          diarizationConfig_ != com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()) {
           getDiarizationConfigBuilder().mergeFrom(value);
         } else {
           diarizationConfig_ = value;
@@ -1613,8 +1433,6 @@ public Builder mergeDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1639,8 +1457,6 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1654,15 +1470,12 @@ public Builder clearDiarizationConfig() {
      *
      * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9;
      */
-    public com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder
-        getDiarizationConfigBuilder() {
+    public com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder getDiarizationConfigBuilder() {
       bitField0_ |= 0x00000080;
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1676,19 +1489,15 @@ public Builder clearDiarizationConfig() {
      *
      * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9;
      */
-    public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder
-        getDiarizationConfigOrBuilder() {
+    public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
       if (diarizationConfigBuilder_ != null) {
         return diarizationConfigBuilder_.getMessageOrBuilder();
       } else {
-        return diarizationConfig_ == null
-            ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()
-            : diarizationConfig_;
+        return diarizationConfig_ == null ?
+            com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1703,26 +1512,21 @@ public Builder clearDiarizationConfig() {
      * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.SpeakerDiarizationConfig,
-            com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder,
-            com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder>
+        com.google.cloud.speech.v2.SpeakerDiarizationConfig, com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder> 
         getDiarizationConfigFieldBuilder() {
       if (diarizationConfigBuilder_ == null) {
-        diarizationConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v2.SpeakerDiarizationConfig,
-                com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder,
-                com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder>(
-                getDiarizationConfig(), getParentForChildren(), isClean());
+        diarizationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v2.SpeakerDiarizationConfig, com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder>(
+                getDiarizationConfig(),
+                getParentForChildren(),
+                isClean());
         diarizationConfig_ = null;
       }
       return diarizationConfigBuilder_;
     }
 
-    private int maxAlternatives_;
+    private int maxAlternatives_ ;
     /**
-     *
-     *
      * 
      * Maximum number of recognition hypotheses to be returned.
      * The server may return fewer than `max_alternatives`.
@@ -1731,7 +1535,6 @@ public Builder clearDiarizationConfig() {
      * 
* * int32 max_alternatives = 16; - * * @return The maxAlternatives. */ @java.lang.Override @@ -1739,8 +1542,6 @@ public int getMaxAlternatives() { return maxAlternatives_; } /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * The server may return fewer than `max_alternatives`.
@@ -1749,20 +1550,17 @@ public int getMaxAlternatives() {
      * 
* * int32 max_alternatives = 16; - * * @param value The maxAlternatives to set. * @return This builder for chaining. */ public Builder setMaxAlternatives(int value) { - + maxAlternatives_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * The server may return fewer than `max_alternatives`.
@@ -1771,7 +1569,6 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 16; - * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { @@ -1780,9 +1577,9 @@ public Builder clearMaxAlternatives() { 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); } @@ -1792,12 +1589,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.RecognitionFeatures) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.RecognitionFeatures) private static final com.google.cloud.speech.v2.RecognitionFeatures DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.RecognitionFeatures(); } @@ -1806,27 +1603,27 @@ public static com.google.cloud.speech.v2.RecognitionFeatures getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionFeatures parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionFeatures parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1841,4 +1638,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.RecognitionFeatures getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java similarity index 86% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java index 30c39ecf7014..8ec8d38ddcb2 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface RecognitionFeaturesOrBuilder - extends +public interface RecognitionFeaturesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.RecognitionFeatures) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * If set to `true`, the server will attempt to filter out profanities,
    * replacing all but the initial character in each filtered word with
@@ -34,14 +16,11 @@ public interface RecognitionFeaturesOrBuilder
    * 
* * bool profanity_filter = 1; - * * @return The profanityFilter. */ boolean getProfanityFilter(); /** - * - * *
    * If `true`, the top result includes a list of words and the start and end
    * time offsets (timestamps) for those words. If `false`, no word-level time
@@ -49,14 +28,11 @@ public interface RecognitionFeaturesOrBuilder
    * 
* * bool enable_word_time_offsets = 2; - * * @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 information is returned.
@@ -64,14 +40,11 @@ public interface RecognitionFeaturesOrBuilder
    * 
* * bool enable_word_confidence = 3; - * * @return The enableWordConfidence. */ boolean getEnableWordConfidence(); /** - * - * *
    * If `true`, adds punctuation to recognition result hypotheses. This feature
    * is only available in select languages. The default `false` value does not
@@ -79,14 +52,11 @@ public interface RecognitionFeaturesOrBuilder
    * 
* * bool enable_automatic_punctuation = 4; - * * @return The enableAutomaticPunctuation. */ boolean getEnableAutomaticPunctuation(); /** - * - * *
    * The spoken punctuation behavior for the call. If `true`, replaces spoken
    * punctuation with the corresponding symbols in the request. For example,
@@ -96,14 +66,11 @@ public interface RecognitionFeaturesOrBuilder
    * 
* * bool enable_spoken_punctuation = 14; - * * @return The enableSpokenPunctuation. */ boolean getEnableSpokenPunctuation(); /** - * - * *
    * The spoken emoji behavior for the call. If `true`, adds spoken emoji
    * formatting for the request. This will replace spoken emojis with the
@@ -112,41 +79,30 @@ public interface RecognitionFeaturesOrBuilder
    * 
* * bool enable_spoken_emojis = 15; - * * @return The enableSpokenEmojis. */ boolean getEnableSpokenEmojis(); /** - * - * *
    * Mode for recognizing multi-channel audio.
    * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; - * - * + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; * @return The enum numeric value on the wire for multiChannelMode. */ int getMultiChannelModeValue(); /** - * - * *
    * Mode for recognizing multi-channel audio.
    * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; - * - * + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; * @return The multiChannelMode. */ com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode getMultiChannelMode(); /** - * - * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -159,13 +115,10 @@ public interface RecognitionFeaturesOrBuilder
    * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; - * * @return Whether the diarizationConfig field is set. */ boolean hasDiarizationConfig(); /** - * - * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -178,13 +131,10 @@ public interface RecognitionFeaturesOrBuilder
    * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; - * * @return The diarizationConfig. */ com.google.cloud.speech.v2.SpeakerDiarizationConfig getDiarizationConfig(); /** - * - * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -201,8 +151,6 @@ public interface RecognitionFeaturesOrBuilder
   com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Maximum number of recognition hypotheses to be returned.
    * The server may return fewer than `max_alternatives`.
@@ -211,7 +159,6 @@ public interface RecognitionFeaturesOrBuilder
    * 
* * int32 max_alternatives = 16; - * * @return The maxAlternatives. */ int getMaxAlternatives(); diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java similarity index 65% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java index 68ee8f710800..31df72758f44 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java @@ -1,81 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Metadata about the recognition request and response.
  * 
* * Protobuf type {@code google.cloud.speech.v2.RecognitionResponseMetadata} */ -public final class RecognitionResponseMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RecognitionResponseMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.RecognitionResponseMetadata) RecognitionResponseMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RecognitionResponseMetadata.newBuilder() to construct. private RecognitionResponseMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private RecognitionResponseMetadata() {} + private RecognitionResponseMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RecognitionResponseMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.RecognitionResponseMetadata.class, - com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder.class); + com.google.cloud.speech.v2.RecognitionResponseMetadata.class, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder.class); } public static final int TOTAL_BILLED_DURATION_FIELD_NUMBER = 6; private com.google.protobuf.Duration totalBilledDuration_; /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_duration = 6; - * * @return Whether the totalBilledDuration field is set. */ @java.lang.Override @@ -83,25 +62,18 @@ public boolean hasTotalBilledDuration() { return totalBilledDuration_ != null; } /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_duration = 6; - * * @return The totalBilledDuration. */ @java.lang.Override public com.google.protobuf.Duration getTotalBilledDuration() { - return totalBilledDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledDuration_; + return totalBilledDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledDuration_; } /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -110,13 +82,10 @@ public com.google.protobuf.Duration getTotalBilledDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalBilledDurationOrBuilder() { - return totalBilledDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledDuration_; + return totalBilledDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledDuration_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,7 +97,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 (totalBilledDuration_ != null) { output.writeMessage(6, getTotalBilledDuration()); } @@ -142,7 +112,8 @@ public int getSerializedSize() { size = 0; if (totalBilledDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTotalBilledDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getTotalBilledDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -152,17 +123,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.v2.RecognitionResponseMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v2.RecognitionResponseMetadata other = - (com.google.cloud.speech.v2.RecognitionResponseMetadata) obj; + com.google.cloud.speech.v2.RecognitionResponseMetadata other = (com.google.cloud.speech.v2.RecognitionResponseMetadata) obj; if (hasTotalBilledDuration() != other.hasTotalBilledDuration()) return false; if (hasTotalBilledDuration()) { - if (!getTotalBilledDuration().equals(other.getTotalBilledDuration())) return false; + if (!getTotalBilledDuration() + .equals(other.getTotalBilledDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -185,136 +156,129 @@ public int hashCode() { } public static com.google.cloud.speech.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.RecognitionResponseMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.RecognitionResponseMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata prototype) { + public static Builder newBuilder(com.google.cloud.speech.v2.RecognitionResponseMetadata 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; } /** - * - * *
    * Metadata about the recognition request and response.
    * 
* * Protobuf type {@code google.cloud.speech.v2.RecognitionResponseMetadata} */ - 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.v2.RecognitionResponseMetadata) com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.RecognitionResponseMetadata.class, - com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder.class); + com.google.cloud.speech.v2.RecognitionResponseMetadata.class, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder.class); } // Construct using com.google.cloud.speech.v2.RecognitionResponseMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -328,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; } @java.lang.Override @@ -349,11 +313,8 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata build() { @java.lang.Override public com.google.cloud.speech.v2.RecognitionResponseMetadata buildPartial() { - com.google.cloud.speech.v2.RecognitionResponseMetadata result = - new com.google.cloud.speech.v2.RecognitionResponseMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v2.RecognitionResponseMetadata result = new com.google.cloud.speech.v2.RecognitionResponseMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -361,10 +322,9 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata buildPartial() { private void buildPartial0(com.google.cloud.speech.v2.RecognitionResponseMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.totalBilledDuration_ = - totalBilledDurationBuilder_ == null - ? totalBilledDuration_ - : totalBilledDurationBuilder_.build(); + result.totalBilledDuration_ = totalBilledDurationBuilder_ == null + ? totalBilledDuration_ + : totalBilledDurationBuilder_.build(); } } @@ -372,39 +332,38 @@ private void buildPartial0(com.google.cloud.speech.v2.RecognitionResponseMetadat 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.v2.RecognitionResponseMetadata) { - return mergeFrom((com.google.cloud.speech.v2.RecognitionResponseMetadata) other); + return mergeFrom((com.google.cloud.speech.v2.RecognitionResponseMetadata)other); } else { super.mergeFrom(other); return this; @@ -412,8 +371,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.RecognitionResponseMetadata other) { - if (other == com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) return this; if (other.hasTotalBilledDuration()) { mergeTotalBilledDuration(other.getTotalBilledDuration()); } @@ -443,20 +401,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 50: - { - input.readMessage( - getTotalBilledDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 50: { + input.readMessage( + getTotalBilledDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -466,52 +423,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Duration totalBilledDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - totalBilledDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledDurationBuilder_; /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_duration = 6; - * * @return Whether the totalBilledDuration field is set. */ public boolean hasTotalBilledDuration() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_duration = 6; - * * @return The totalBilledDuration. */ public com.google.protobuf.Duration getTotalBilledDuration() { if (totalBilledDurationBuilder_ == null) { - return totalBilledDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledDuration_; + return totalBilledDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledDuration_; } else { return totalBilledDurationBuilder_.getMessage(); } } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -532,15 +475,14 @@ public Builder setTotalBilledDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_duration = 6; */ - public Builder setTotalBilledDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledDurationBuilder_ == null) { totalBilledDuration_ = builderForValue.build(); } else { @@ -551,8 +493,6 @@ public Builder setTotalBilledDuration(com.google.protobuf.Duration.Builder build return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -561,9 +501,9 @@ public Builder setTotalBilledDuration(com.google.protobuf.Duration.Builder build */ public Builder mergeTotalBilledDuration(com.google.protobuf.Duration value) { if (totalBilledDurationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && totalBilledDuration_ != null - && totalBilledDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + totalBilledDuration_ != null && + totalBilledDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getTotalBilledDurationBuilder().mergeFrom(value); } else { totalBilledDuration_ = value; @@ -576,8 +516,6 @@ public Builder mergeTotalBilledDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -595,8 +533,6 @@ public Builder clearTotalBilledDuration() { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -609,8 +545,6 @@ public com.google.protobuf.Duration.Builder getTotalBilledDurationBuilder() { return getTotalBilledDurationFieldBuilder().getBuilder(); } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -621,14 +555,11 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledDurationOrBuilder() { if (totalBilledDurationBuilder_ != null) { return totalBilledDurationBuilder_.getMessageOrBuilder(); } else { - return totalBilledDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledDuration_; + return totalBilledDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : totalBilledDuration_; } } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -636,24 +567,21 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledDurationOrBuilder() { * .google.protobuf.Duration total_billed_duration = 6; */ 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> getTotalBilledDurationFieldBuilder() { if (totalBilledDurationBuilder_ == null) { - totalBilledDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getTotalBilledDuration(), getParentForChildren(), isClean()); + totalBilledDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTotalBilledDuration(), + getParentForChildren(), + isClean()); totalBilledDuration_ = null; } return totalBilledDurationBuilder_; } - @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); } @@ -663,12 +591,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.RecognitionResponseMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.RecognitionResponseMetadata) private static final com.google.cloud.speech.v2.RecognitionResponseMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.RecognitionResponseMetadata(); } @@ -677,27 +605,27 @@ public static com.google.cloud.speech.v2.RecognitionResponseMetadata getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionResponseMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionResponseMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -712,4 +640,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v2.RecognitionResponseMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java similarity index 61% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java index 255a0a27c77f..57a50491e2fe 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java @@ -1,55 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface RecognitionResponseMetadataOrBuilder - extends +public interface RecognitionResponseMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.RecognitionResponseMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_duration = 6; - * * @return Whether the totalBilledDuration field is set. */ boolean hasTotalBilledDuration(); /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_duration = 6; - * * @return The totalBilledDuration. */ com.google.protobuf.Duration getTotalBilledDuration(); /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java similarity index 78% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java index bde61a78d3dd..b2f131321dcc 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [Recognize][google.cloud.speech.v2.Speech.Recognize] method. Either
@@ -31,58 +14,53 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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() {
     recognizer_ = "";
   }
 
   @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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.RecognizeRequest.class,
-            com.google.cloud.speech.v2.RecognizeRequest.Builder.class);
+            com.google.cloud.speech.v2.RecognizeRequest.class, com.google.cloud.speech.v2.RecognizeRequest.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(5),
     URI(6),
     AUDIOSOURCE_NOT_SET(0);
     private final int value;
-
     private AudioSourceCase(int value) {
       this.value = value;
     }
@@ -98,43 +76,34 @@ public static AudioSourceCase valueOf(int value) {
 
     public static AudioSourceCase forNumber(int value) {
       switch (value) {
-        case 5:
-          return CONTENT;
-        case 6:
-          return URI;
-        case 0:
-          return AUDIOSOURCE_NOT_SET;
-        default:
-          return null;
+        case 5: return CONTENT;
+        case 6: 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 RECOGNIZER_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object recognizer_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the Recognizer to use during recognition. The
    * expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The recognizer. */ @java.lang.Override @@ -143,33 +112,31 @@ public java.lang.String getRecognizer() { 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(); recognizer_ = s; return s; } } /** - * - * *
    * Required. The name of the Recognizer to use during recognition. The
    * expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for recognizer. */ @java.lang.Override - public com.google.protobuf.ByteString getRecognizerBytes() { + public com.google.protobuf.ByteString + getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -180,8 +147,6 @@ public com.google.protobuf.ByteString getRecognizerBytes() { public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v2.RecognitionConfig config_; /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -192,7 +157,6 @@ public com.google.protobuf.ByteString getRecognizerBytes() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; - * * @return Whether the config field is set. */ @java.lang.Override @@ -200,8 +164,6 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -212,18 +174,13 @@ public boolean hasConfig() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; - * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfig getConfig() { - return config_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; } /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -237,16 +194,12 @@ public com.google.cloud.speech.v2.RecognitionConfig getConfig() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder() {
-    return config_ == null
-        ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
-        : config_;
+    return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
   }
 
   public static final int CONFIG_MASK_FIELD_NUMBER = 8;
   private com.google.protobuf.FieldMask configMask_;
   /**
-   *
-   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -264,7 +217,6 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * .google.protobuf.FieldMask config_mask = 8; - * * @return Whether the configMask field is set. */ @java.lang.Override @@ -272,8 +224,6 @@ public boolean hasConfigMask() { return configMask_ != null; } /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -291,7 +241,6 @@ public boolean hasConfigMask() {
    * 
* * .google.protobuf.FieldMask config_mask = 8; - * * @return The configMask. */ @java.lang.Override @@ -299,8 +248,6 @@ public com.google.protobuf.FieldMask getConfigMask() { return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -326,8 +273,6 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
 
   public static final int CONTENT_FIELD_NUMBER = 5;
   /**
-   *
-   *
    * 
    * The audio data bytes encoded as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -336,7 +281,6 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
    * 
* * bytes content = 5; - * * @return Whether the content field is set. */ @java.lang.Override @@ -344,8 +288,6 @@ public boolean hasContent() { return audioSourceCase_ == 5; } /** - * - * *
    * The audio data bytes encoded as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -354,7 +296,6 @@ public boolean hasContent() {
    * 
* * bytes content = 5; - * * @return The content. */ @java.lang.Override @@ -367,8 +308,6 @@ public com.google.protobuf.ByteString getContent() { public static final int URI_FIELD_NUMBER = 6; /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -381,15 +320,12 @@ public com.google.protobuf.ByteString getContent() {
    * 
* * string uri = 6; - * * @return Whether the uri field is set. */ public boolean hasUri() { return audioSourceCase_ == 6; } /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -402,7 +338,6 @@ public boolean hasUri() {
    * 
* * string uri = 6; - * * @return The uri. */ public java.lang.String getUri() { @@ -413,7 +348,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_ == 6) { audioSource_ = s; @@ -422,8 +358,6 @@ public java.lang.String getUri() { } } /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -436,17 +370,18 @@ public java.lang.String getUri() {
    * 
* * string uri = 6; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (audioSourceCase_ == 6) { 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_ == 6) { audioSource_ = b; } @@ -457,7 +392,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -469,7 +403,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()); } @@ -477,7 +412,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 3, recognizer_); } if (audioSourceCase_ == 5) { - output.writeBytes(5, (com.google.protobuf.ByteString) audioSource_); + output.writeBytes( + 5, (com.google.protobuf.ByteString) audioSource_); } if (audioSourceCase_ == 6) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, audioSource_); @@ -495,21 +431,23 @@ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recognizer_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, recognizer_); } if (audioSourceCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 5, (com.google.protobuf.ByteString) audioSource_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 5, (com.google.protobuf.ByteString) audioSource_); } if (audioSourceCase_ == 6) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, audioSource_); } if (configMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getConfigMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getConfigMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -519,30 +457,34 @@ 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.v2.RecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.RecognizeRequest other = - (com.google.cloud.speech.v2.RecognizeRequest) obj; + com.google.cloud.speech.v2.RecognizeRequest other = (com.google.cloud.speech.v2.RecognizeRequest) obj; - if (!getRecognizer().equals(other.getRecognizer())) return false; + if (!getRecognizer() + .equals(other.getRecognizer())) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } if (hasConfigMask() != other.hasConfigMask()) return false; if (hasConfigMask()) { - if (!getConfigMask().equals(other.getConfigMask())) return false; + if (!getConfigMask() + .equals(other.getConfigMask())) return false; } if (!getAudioSourceCase().equals(other.getAudioSourceCase())) return false; switch (audioSourceCase_) { case 5: - if (!getContent().equals(other.getContent())) return false; + if (!getContent() + .equals(other.getContent())) return false; break; case 6: - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; break; case 0: default: @@ -585,104 +527,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.RecognizeRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.RecognizeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.RecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.RecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.RecognizeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.RecognizeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [Recognize][google.cloud.speech.v2.Speech.Recognize] method. Either
@@ -693,32 +628,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.RecognizeRequest)
       com.google.cloud.speech.v2.RecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.RecognizeRequest.class,
-              com.google.cloud.speech.v2.RecognizeRequest.Builder.class);
+              com.google.cloud.speech.v2.RecognizeRequest.class, com.google.cloud.speech.v2.RecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.RecognizeRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -740,9 +676,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -761,11 +697,8 @@ public com.google.cloud.speech.v2.RecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.RecognizeRequest buildPartial() {
-      com.google.cloud.speech.v2.RecognizeRequest result =
-          new com.google.cloud.speech.v2.RecognizeRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.RecognizeRequest result = new com.google.cloud.speech.v2.RecognizeRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -777,10 +710,14 @@ private void buildPartial0(com.google.cloud.speech.v2.RecognizeRequest result) {
         result.recognizer_ = recognizer_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
+        result.config_ = configBuilder_ == null
+            ? config_
+            : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.configMask_ = configMaskBuilder_ == null ? configMask_ : configMaskBuilder_.build();
+        result.configMask_ = configMaskBuilder_ == null
+            ? configMask_
+            : configMaskBuilder_.build();
       }
     }
 
@@ -793,39 +730,38 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.RecognizeRequest resu
     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.v2.RecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.RecognizeRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.RecognizeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -846,22 +782,19 @@ public Builder mergeFrom(com.google.cloud.speech.v2.RecognizeRequest other) {
         mergeConfigMask(other.getConfigMask());
       }
       switch (other.getAudioSourceCase()) {
-        case CONTENT:
-          {
-            setContent(other.getContent());
-            break;
-          }
-        case URI:
-          {
-            audioSourceCase_ = 6;
-            audioSource_ = other.audioSource_;
-            onChanged();
-            break;
-          }
-        case AUDIOSOURCE_NOT_SET:
-          {
-            break;
-          }
+        case CONTENT: {
+          setContent(other.getContent());
+          break;
+        }
+        case URI: {
+          audioSourceCase_ = 6;
+          audioSource_ = other.audioSource_;
+          onChanged();
+          break;
+        }
+        case AUDIOSOURCE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -889,44 +822,42 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 10
-            case 26:
-              {
-                recognizer_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 26
-            case 42:
-              {
-                audioSource_ = input.readBytes();
-                audioSourceCase_ = 5;
-                break;
-              } // case 42
-            case 50:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                audioSourceCase_ = 6;
-                audioSource_ = s;
-                break;
-              } // case 50
-            case 66:
-              {
-                input.readMessage(getConfigMaskFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 66
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 10
+            case 26: {
+              recognizer_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 26
+            case 42: {
+              audioSource_ = input.readBytes();
+              audioSourceCase_ = 5;
+              break;
+            } // case 42
+            case 50: {
+              java.lang.String s = input.readStringRequireUtf8();
+              audioSourceCase_ = 6;
+              audioSource_ = s;
+              break;
+            } // case 50
+            case 66: {
+              input.readMessage(
+                  getConfigMaskFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 66
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -936,12 +867,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -955,24 +886,20 @@ public Builder clearAudioSource() {
 
     private java.lang.Object recognizer_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the Recognizer to use during recognition. The
      * expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The recognizer. */ public java.lang.String getRecognizer() { java.lang.Object ref = recognizer_; 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(); recognizer_ = s; return s; @@ -981,25 +908,22 @@ public java.lang.String getRecognizer() { } } /** - * - * *
      * Required. The name of the Recognizer to use during recognition. The
      * expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for recognizer. */ - public com.google.protobuf.ByteString getRecognizerBytes() { + public com.google.protobuf.ByteString + getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -1007,43 +931,32 @@ public com.google.protobuf.ByteString getRecognizerBytes() { } } /** - * - * *
      * Required. The name of the Recognizer to use during recognition. The
      * expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizer(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecognizer( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } recognizer_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the Recognizer to use during recognition. The
      * expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearRecognizer() { @@ -1053,25 +966,19 @@ public Builder clearRecognizer() { return this; } /** - * - * *
      * Required. The name of the Recognizer to use during recognition. The
      * expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizerBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecognizerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); recognizer_ = value; bitField0_ |= 0x00000001; @@ -1081,13 +988,8 @@ public Builder setRecognizerBytes(com.google.protobuf.ByteString value) { private com.google.cloud.speech.v2.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, - com.google.cloud.speech.v2.RecognitionConfig.Builder, - com.google.cloud.speech.v2.RecognitionConfigOrBuilder> - configBuilder_; + com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> configBuilder_; /** - * - * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1098,15 +1000,12 @@ public Builder setRecognizerBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; - * * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1117,21 +1016,16 @@ public boolean hasConfig() {
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; - * * @return The config. */ public com.google.cloud.speech.v2.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1157,8 +1051,6 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1170,7 +1062,8 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
      *
      * .google.cloud.speech.v2.RecognitionConfig config = 1;
      */
-    public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
+    public Builder setConfig(
+        com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
       if (configBuilder_ == null) {
         config_ = builderForValue.build();
       } else {
@@ -1181,8 +1074,6 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder bu
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1196,9 +1087,9 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder bu
      */
     public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       if (configBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && config_ != null
-            && config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          config_ != null &&
+          config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
           getConfigBuilder().mergeFrom(value);
         } else {
           config_ = value;
@@ -1211,8 +1102,6 @@ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1235,8 +1124,6 @@ public Builder clearConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1254,8 +1141,6 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() {
       return getConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1271,14 +1156,11 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
       if (configBuilder_ != null) {
         return configBuilder_.getMessageOrBuilder();
       } else {
-        return config_ == null
-            ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
-            : config_;
+        return config_ == null ?
+            com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
       }
     }
     /**
-     *
-     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1291,17 +1173,14 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * .google.cloud.speech.v2.RecognitionConfig config = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.RecognitionConfig,
-            com.google.cloud.speech.v2.RecognitionConfig.Builder,
-            com.google.cloud.speech.v2.RecognitionConfigOrBuilder>
+        com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> 
         getConfigFieldBuilder() {
       if (configBuilder_ == null) {
-        configBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v2.RecognitionConfig,
-                com.google.cloud.speech.v2.RecognitionConfig.Builder,
-                com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
-                getConfig(), getParentForChildren(), isClean());
+        configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
+                getConfig(),
+                getParentForChildren(),
+                isClean());
         config_ = null;
       }
       return configBuilder_;
@@ -1309,13 +1188,8 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
 
     private com.google.protobuf.FieldMask configMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
-        configMaskBuilder_;
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> configMaskBuilder_;
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1333,15 +1207,12 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * .google.protobuf.FieldMask config_mask = 8; - * * @return Whether the configMask field is set. */ public boolean hasConfigMask() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1359,21 +1230,16 @@ public boolean hasConfigMask() {
      * 
* * .google.protobuf.FieldMask config_mask = 8; - * * @return The configMask. */ public com.google.protobuf.FieldMask getConfigMask() { if (configMaskBuilder_ == null) { - return configMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : configMask_; + return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } else { return configMaskBuilder_.getMessage(); } } /** - * - * *
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1406,8 +1272,6 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1426,7 +1290,8 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask config_mask = 8;
      */
-    public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setConfigMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (configMaskBuilder_ == null) {
         configMask_ = builderForValue.build();
       } else {
@@ -1437,8 +1302,6 @@ public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1459,9 +1322,9 @@ public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       if (configMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && configMask_ != null
-            && configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          configMask_ != null &&
+          configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getConfigMaskBuilder().mergeFrom(value);
         } else {
           configMask_ = value;
@@ -1474,8 +1337,6 @@ public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1505,8 +1366,6 @@ public Builder clearConfigMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1531,8 +1390,6 @@ public com.google.protobuf.FieldMask.Builder getConfigMaskBuilder() {
       return getConfigMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1555,14 +1412,11 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
       if (configMaskBuilder_ != null) {
         return configMaskBuilder_.getMessageOrBuilder();
       } else {
-        return configMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : configMask_;
+        return configMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : configMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1582,25 +1436,20 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
      * .google.protobuf.FieldMask config_mask = 8;
      */
     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> 
         getConfigMaskFieldBuilder() {
       if (configMaskBuilder_ == null) {
-        configMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getConfigMask(), getParentForChildren(), isClean());
+        configMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getConfigMask(),
+                getParentForChildren(),
+                isClean());
         configMask_ = null;
       }
       return configMaskBuilder_;
     }
 
     /**
-     *
-     *
      * 
      * The audio data bytes encoded as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -1609,15 +1458,12 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
      * 
* * bytes content = 5; - * * @return Whether the content field is set. */ public boolean hasContent() { return audioSourceCase_ == 5; } /** - * - * *
      * The audio data bytes encoded as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -1626,7 +1472,6 @@ public boolean hasContent() {
      * 
* * bytes content = 5; - * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -1636,8 +1481,6 @@ public com.google.protobuf.ByteString getContent() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * The audio data bytes encoded as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -1646,22 +1489,17 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 5; - * * @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(); - } + if (value == null) { throw new NullPointerException(); } audioSourceCase_ = 5; audioSource_ = value; onChanged(); return this; } /** - * - * *
      * The audio data bytes encoded as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -1670,7 +1508,6 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 5; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -1683,8 +1520,6 @@ public Builder clearContent() { } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1697,7 +1532,6 @@ public Builder clearContent() {
      * 
* * string uri = 6; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -1705,8 +1539,6 @@ public boolean hasUri() { return audioSourceCase_ == 6; } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1719,7 +1551,6 @@ public boolean hasUri() {
      * 
* * string uri = 6; - * * @return The uri. */ @java.lang.Override @@ -1729,7 +1560,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_ == 6) { audioSource_ = s; @@ -1740,8 +1572,6 @@ public java.lang.String getUri() { } } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1754,18 +1584,19 @@ public java.lang.String getUri() {
      * 
* * string uri = 6; - * * @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_ == 6) { 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_ == 6) { audioSource_ = b; } @@ -1775,8 +1606,6 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1789,22 +1618,18 @@ public com.google.protobuf.ByteString getUriBytes() {
      * 
* * string uri = 6; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } audioSourceCase_ = 6; audioSource_ = value; onChanged(); return this; } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1817,7 +1642,6 @@ public Builder setUri(java.lang.String value) {
      * 
* * string uri = 6; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -1829,8 +1653,6 @@ public Builder clearUri() { return this; } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1843,23 +1665,21 @@ public Builder clearUri() {
      * 
* * string uri = 6; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); audioSourceCase_ = 6; 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); } @@ -1869,12 +1689,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.RecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.RecognizeRequest) private static final com.google.cloud.speech.v2.RecognizeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.RecognizeRequest(); } @@ -1883,27 +1703,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1918,4 +1738,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java similarity index 87% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java index 9ee6e525fe6f..95e18c535b8d 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface RecognizeRequestOrBuilder - extends +public interface RecognizeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.RecognizeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the Recognizer to use during recognition. The
    * expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The recognizer. */ java.lang.String getRecognizer(); /** - * - * *
    * Required. The name of the Recognizer to use during recognition. The
    * expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for recognizer. */ - com.google.protobuf.ByteString getRecognizerBytes(); + com.google.protobuf.ByteString + getRecognizerBytes(); /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -69,13 +42,10 @@ public interface RecognizeRequestOrBuilder
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; - * * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -86,13 +56,10 @@ public interface RecognizeRequestOrBuilder
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; - * * @return The config. */ com.google.cloud.speech.v2.RecognitionConfig getConfig(); /** - * - * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -107,8 +74,6 @@ public interface RecognizeRequestOrBuilder
   com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -126,13 +91,10 @@ public interface RecognizeRequestOrBuilder
    * 
* * .google.protobuf.FieldMask config_mask = 8; - * * @return Whether the configMask field is set. */ boolean hasConfigMask(); /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -150,13 +112,10 @@ public interface RecognizeRequestOrBuilder
    * 
* * .google.protobuf.FieldMask config_mask = 8; - * * @return The configMask. */ com.google.protobuf.FieldMask getConfigMask(); /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -178,8 +137,6 @@ public interface RecognizeRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * The audio data bytes encoded as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -188,13 +145,10 @@ public interface RecognizeRequestOrBuilder
    * 
* * bytes content = 5; - * * @return Whether the content field is set. */ boolean hasContent(); /** - * - * *
    * The audio data bytes encoded as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -203,14 +157,11 @@ public interface RecognizeRequestOrBuilder
    * 
* * bytes content = 5; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -223,13 +174,10 @@ public interface RecognizeRequestOrBuilder
    * 
* * string uri = 6; - * * @return Whether the uri field is set. */ boolean hasUri(); /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -242,13 +190,10 @@ public interface RecognizeRequestOrBuilder
    * 
* * string uri = 6; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -261,10 +206,10 @@ public interface RecognizeRequestOrBuilder
    * 
* * string uri = 6; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); public com.google.cloud.speech.v2.RecognizeRequest.AudioSourceCase getAudioSourceCase(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java index 98d3c7db0997..6c4951c641b0 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Response message for the
  * [Recognize][google.cloud.speech.v2.Speech.Recognize] method.
@@ -28,53 +11,48 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.RecognizeResponse.class,
-            com.google.cloud.speech.v2.RecognizeResponse.Builder.class);
+            com.google.cloud.speech.v2.RecognizeResponse.class, com.google.cloud.speech.v2.RecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to sequential
    * portions of audio.
@@ -87,8 +65,6 @@ public java.util.List getRes
     return results_;
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to sequential
    * portions of audio.
@@ -97,13 +73,11 @@ public java.util.List getRes
    * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
    */
   @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.
@@ -116,8 +90,6 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to sequential
    * portions of audio.
@@ -130,8 +102,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult getResults(int index)
     return results_.get(index);
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to sequential
    * portions of audio.
@@ -148,14 +118,11 @@ public com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrB
   public static final int METADATA_FIELD_NUMBER = 2;
   private com.google.cloud.speech.v2.RecognitionResponseMetadata metadata_;
   /**
-   *
-   *
    * 
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; - * * @return Whether the metadata field is set. */ @java.lang.Override @@ -163,25 +130,18 @@ public boolean hasMetadata() { return metadata_ != null; } /** - * - * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; - * * @return The metadata. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { - return metadata_ == null - ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; } /** - * - * *
    * Metadata about the recognition.
    * 
@@ -190,13 +150,10 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetadataOrBuilder() { - return metadata_ == null - ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,7 +165,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 (metadata_ != null) { output.writeMessage(2, getMetadata()); } @@ -225,10 +183,12 @@ public int getSerializedSize() { size = 0; if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMetadata()); } for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, results_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -238,18 +198,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.v2.RecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.RecognizeResponse other = - (com.google.cloud.speech.v2.RecognizeResponse) obj; + com.google.cloud.speech.v2.RecognizeResponse other = (com.google.cloud.speech.v2.RecognizeResponse) obj; - if (!getResultsList().equals(other.getResultsList())) return false; + if (!getResultsList() + .equals(other.getResultsList())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -275,104 +236,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.RecognizeResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.RecognizeResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.RecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.RecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.RecognizeResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.RecognizeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Response message for the
    * [Recognize][google.cloud.speech.v2.Speech.Recognize] method.
@@ -380,32 +334,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.RecognizeResponse)
       com.google.cloud.speech.v2.RecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.RecognizeResponse.class,
-              com.google.cloud.speech.v2.RecognizeResponse.Builder.class);
+              com.google.cloud.speech.v2.RecognizeResponse.class, com.google.cloud.speech.v2.RecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.RecognizeResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -426,9 +381,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
@@ -447,12 +402,9 @@ public com.google.cloud.speech.v2.RecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.RecognizeResponse buildPartial() {
-      com.google.cloud.speech.v2.RecognizeResponse result =
-          new com.google.cloud.speech.v2.RecognizeResponse(this);
+      com.google.cloud.speech.v2.RecognizeResponse result = new com.google.cloud.speech.v2.RecognizeResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -472,7 +424,9 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v2.RecognizeResp
     private void buildPartial0(com.google.cloud.speech.v2.RecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
+        result.metadata_ = metadataBuilder_ == null
+            ? metadata_
+            : metadataBuilder_.build();
       }
     }
 
@@ -480,39 +434,38 @@ private void buildPartial0(com.google.cloud.speech.v2.RecognizeResponse result)
     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.v2.RecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.RecognizeResponse) other);
+        return mergeFrom((com.google.cloud.speech.v2.RecognizeResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -539,10 +492,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_);
           }
@@ -577,33 +529,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18:
-              {
-                input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                com.google.cloud.speech.v2.SpeechRecognitionResult m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.SpeechRecognitionResult.parser(),
-                        extensionRegistry);
-                if (resultsBuilder_ == null) {
-                  ensureResultsIsMutable();
-                  results_.add(m);
-                } else {
-                  resultsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 18: {
+              input.readMessage(
+                  getMetadataFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              com.google.cloud.speech.v2.SpeechRecognitionResult m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.SpeechRecognitionResult.parser(),
+                      extensionRegistry);
+              if (resultsBuilder_ == null) {
+                ensureResultsIsMutable();
+                results_.add(m);
+              } else {
+                resultsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -613,29 +564,21 @@ public Builder mergeFrom(
       } // finally
       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.v2.SpeechRecognitionResult,
-            com.google.cloud.speech.v2.SpeechRecognitionResult.Builder,
-            com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder>
-        resultsBuilder_;
+        com.google.cloud.speech.v2.SpeechRecognitionResult, com.google.cloud.speech.v2.SpeechRecognitionResult.Builder, com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder> resultsBuilder_;
 
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -651,8 +594,6 @@ public java.util.List getRes
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -668,8 +609,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -685,8 +624,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -694,7 +631,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult getResults(int index)
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public Builder setResults(int index, com.google.cloud.speech.v2.SpeechRecognitionResult value) {
+    public Builder setResults(
+        int index, com.google.cloud.speech.v2.SpeechRecognitionResult value) {
       if (resultsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -708,8 +646,6 @@ public Builder setResults(int index, com.google.cloud.speech.v2.SpeechRecognitio
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -729,8 +665,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -752,8 +686,6 @@ public Builder addResults(com.google.cloud.speech.v2.SpeechRecognitionResult val
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -761,7 +693,8 @@ public Builder addResults(com.google.cloud.speech.v2.SpeechRecognitionResult val
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public Builder addResults(int index, com.google.cloud.speech.v2.SpeechRecognitionResult value) {
+    public Builder addResults(
+        int index, com.google.cloud.speech.v2.SpeechRecognitionResult value) {
       if (resultsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -775,8 +708,6 @@ public Builder addResults(int index, com.google.cloud.speech.v2.SpeechRecognitio
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -796,8 +727,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -817,8 +746,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -830,7 +757,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);
@@ -838,8 +766,6 @@ public Builder addAllResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -858,8 +784,6 @@ public Builder clearResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -878,8 +802,6 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -887,12 +809,11 @@ public Builder removeResults(int index) {
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder getResultsBuilder(int index) {
+    public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder getResultsBuilder(
+        int index) {
       return getResultsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -903,14 +824,11 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder getResultsBuil
     public com.google.cloud.speech.v2.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.
@@ -918,8 +836,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrB
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public java.util.List
-        getResultsOrBuilderList() {
+    public java.util.List 
+         getResultsOrBuilderList() {
       if (resultsBuilder_ != null) {
         return resultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -927,8 +845,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -937,12 +853,10 @@ public com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrB
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
     public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuilder() {
-      return getResultsFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder().addBuilder(
+          com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -950,14 +864,12 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuil
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuilder(int index) {
-      return getResultsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance());
+    public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuilder(
+        int index) {
+      return getResultsFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -965,23 +877,20 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuil
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public java.util.List
-        getResultsBuilderList() {
+    public java.util.List 
+         getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.SpeechRecognitionResult,
-            com.google.cloud.speech.v2.SpeechRecognitionResult.Builder,
-            com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder>
+        com.google.cloud.speech.v2.SpeechRecognitionResult, com.google.cloud.speech.v2.SpeechRecognitionResult.Builder, com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder> 
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v2.SpeechRecognitionResult,
-                com.google.cloud.speech.v2.SpeechRecognitionResult.Builder,
-                com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder>(
-                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v2.SpeechRecognitionResult, com.google.cloud.speech.v2.SpeechRecognitionResult.Builder, com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder>(
+                results_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -989,47 +898,34 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuil
 
     private com.google.cloud.speech.v2.RecognitionResponseMetadata metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.RecognitionResponseMetadata,
-            com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder,
-            com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder>
-        metadataBuilder_;
+        com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> metadataBuilder_;
     /**
-     *
-     *
      * 
      * Metadata about the recognition.
      * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; - * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Metadata about the recognition.
      * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; - * * @return The metadata. */ public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1050,8 +946,6 @@ public Builder setMetadata(com.google.cloud.speech.v2.RecognitionResponseMetadat return this; } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1070,8 +964,6 @@ public Builder setMetadata( return this; } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1080,10 +972,9 @@ public Builder setMetadata( */ public Builder mergeMetadata(com.google.cloud.speech.v2.RecognitionResponseMetadata value) { if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && metadata_ != null - && metadata_ - != com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + metadata_ != null && + metadata_ != com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; @@ -1096,8 +987,6 @@ public Builder mergeMetadata(com.google.cloud.speech.v2.RecognitionResponseMetad return this; } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1115,8 +1004,6 @@ public Builder clearMetadata() { return this; } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1129,8 +1016,6 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder getMetadat return getMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1141,14 +1026,11 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetada if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { - return metadata_ == null - ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? + com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; } } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1156,24 +1038,21 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetada * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionResponseMetadata, - com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, - com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> + com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionResponseMetadata, - com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, - com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); metadata_ = null; } return metadataBuilder_; } - @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); } @@ -1183,12 +1062,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.RecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.RecognizeResponse) private static final com.google.cloud.speech.v2.RecognizeResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.RecognizeResponse(); } @@ -1197,27 +1076,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1232,4 +1111,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java similarity index 75% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java index 8d6bea8f3a5d..494d96c78e8b 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface RecognizeResponseOrBuilder - extends +public interface RecognizeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.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.v2.SpeechRecognitionResult results = 3;
    */
-  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.v2.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.v2.SpeechRecognitionResult results = 3;
    */
-  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.v2.SpeechRecognitionResult results = 3;
    */
-  com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
+  com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; - * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** - * - * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; - * * @return The metadata. */ com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata(); /** - * - * *
    * Metadata about the recognition.
    * 
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java index 070ca69b04ab..f370142d2ee0 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * A Recognizer message. Stores recognition configuration and metadata.
  * 
* * Protobuf type {@code google.cloud.speech.v2.Recognizer} */ -public final class Recognizer extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Recognizer extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.Recognizer) RecognizerOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Recognizer.newBuilder() to construct. private Recognizer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Recognizer() { name_ = ""; uid_ = ""; @@ -51,54 +33,51 @@ private Recognizer() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Recognizer(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_Recognizer_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 7: return internalGetAnnotations(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.Recognizer.class, - com.google.cloud.speech.v2.Recognizer.Builder.class); + com.google.cloud.speech.v2.Recognizer.class, com.google.cloud.speech.v2.Recognizer.Builder.class); } /** - * - * *
    * Set of states that define the lifecycle of a Recognizer.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.Recognizer.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -107,8 +86,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The Recognizer is active and ready for use.
      * 
@@ -117,8 +94,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(2), /** - * - * *
      * This Recognizer has been deleted.
      * 
@@ -130,8 +105,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -140,8 +113,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The Recognizer is active and ready for use.
      * 
@@ -150,8 +121,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 2; /** - * - * *
      * This Recognizer has been deleted.
      * 
@@ -160,6 +129,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETED_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -184,49 +154,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 2: - return ACTIVE; - case 4: - return DELETED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 2: return ACTIVE; + case 4: return DELETED; + 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< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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.v2.Recognizer.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -244,19 +214,15 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The resource name of the Recognizer.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -265,30 +231,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; } } /** - * - * *
    * Output only. The resource name of the Recognizer.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -297,18 +263,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int UID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** - * - * *
    * Output only. System-assigned unique identifier for the Recognizer.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -317,29 +279,29 @@ public java.lang.String getUid() { 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(); uid_ = s; return s; } } /** - * - * *
    * Output only. System-assigned unique identifier for the Recognizer.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -348,19 +310,15 @@ public com.google.protobuf.ByteString getUidBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * User-settable, human-readable name for the Recognizer. Must be 63
    * characters or less.
    * 
* * string display_name = 3; - * * @return The displayName. */ @java.lang.Override @@ -369,30 +327,30 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** - * - * *
    * User-settable, human-readable name for the Recognizer. Must be 63
    * characters or less.
    * 
* * string display_name = 3; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -401,12 +359,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int MODEL_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** - * - * *
    * Required. Which model to use for recognition requests. Select the model
    * best suited to your domain to get best results.
@@ -424,7 +379,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The model. */ @java.lang.Override @@ -433,15 +387,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; } } /** - * - * *
    * Required. Which model to use for recognition requests. Select the model
    * best suited to your domain to get best results.
@@ -459,15 +412,16 @@ public java.lang.String getModel() {
    * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -476,12 +430,9 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int LANGUAGE_CODES_FIELD_NUMBER = 17; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList languageCodes_; /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -498,15 +449,13 @@ public com.google.protobuf.ByteString getModelBytes() {
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getLanguageCodesList() { return languageCodes_; } /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -523,15 +472,12 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -548,7 +494,6 @@ public int getLanguageCodesCount() {
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -556,8 +501,6 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -574,19 +517,17 @@ public java.lang.String getLanguageCodes(int index) {
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } public static final int DEFAULT_RECOGNITION_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.speech.v2.RecognitionConfig defaultRecognitionConfig_; /** - * - * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -595,7 +536,6 @@ public com.google.protobuf.ByteString getLanguageCodesBytes(int index) {
    * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; - * * @return Whether the defaultRecognitionConfig field is set. */ @java.lang.Override @@ -603,8 +543,6 @@ public boolean hasDefaultRecognitionConfig() { return defaultRecognitionConfig_ != null; } /** - * - * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -613,18 +551,13 @@ public boolean hasDefaultRecognitionConfig() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; - * * @return The defaultRecognitionConfig. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfig getDefaultRecognitionConfig() { - return defaultRecognitionConfig_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : defaultRecognitionConfig_; + return defaultRecognitionConfig_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : defaultRecognitionConfig_; } /** - * - * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -635,43 +568,37 @@ public com.google.cloud.speech.v2.RecognitionConfig getDefaultRecognitionConfig(
    * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.RecognitionConfigOrBuilder
-      getDefaultRecognitionConfigOrBuilder() {
-    return defaultRecognitionConfig_ == null
-        ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
-        : defaultRecognitionConfig_;
+  public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getDefaultRecognitionConfigOrBuilder() {
+    return defaultRecognitionConfig_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : defaultRecognitionConfig_;
   }
 
   public static final int ANNOTATIONS_FIELD_NUMBER = 7;
-
   private static final class AnnotationsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry defaultEntry =
-        com.google.protobuf.MapEntry.newDefaultInstance(
-            com.google.cloud.speech.v2.CloudSpeechProto
-                .internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_descriptor,
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "",
-            com.google.protobuf.WireFormat.FieldType.STRING,
-            "");
+    static final com.google.protobuf.MapEntry<
+        java.lang.String, java.lang.String> defaultEntry =
+            com.google.protobuf.MapEntry
+            .newDefaultInstance(
+                com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_descriptor, 
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "",
+                com.google.protobuf.WireFormat.FieldType.STRING,
+                "");
   }
-
   @SuppressWarnings("serial")
-  private com.google.protobuf.MapField annotations_;
-
+  private com.google.protobuf.MapField<
+      java.lang.String, java.lang.String> annotations_;
   private com.google.protobuf.MapField
-      internalGetAnnotations() {
+  internalGetAnnotations() {
     if (annotations_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(
+          AnnotationsDefaultEntryHolder.defaultEntry);
     }
     return annotations_;
   }
-
   public int getAnnotationsCount() {
     return internalGetAnnotations().getMap().size();
   }
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -681,21 +608,20 @@ public int getAnnotationsCount() {
    * map<string, string> annotations = 7;
    */
   @java.lang.Override
-  public boolean containsAnnotations(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsAnnotations(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetAnnotations().getMap().containsKey(key);
   }
-  /** Use {@link #getAnnotationsMap()} instead. */
+  /**
+   * Use {@link #getAnnotationsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAnnotations() {
     return getAnnotationsMap();
   }
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -709,8 +635,6 @@ public java.util.Map getAnnotationsMap() {
     return internalGetAnnotations().getMap();
   }
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -720,19 +644,17 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 7;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getAnnotationsOrDefault(
+  public /* nullable */
+java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetAnnotations().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -742,11 +664,11 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 7;
    */
   @java.lang.Override
-  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetAnnotations().getMap();
+  public java.lang.String getAnnotationsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -756,54 +678,37 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
   public static final int STATE_FIELD_NUMBER = 8;
   private int state_ = 0;
   /**
-   *
-   *
    * 
    * Output only. The Recognizer lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The Recognizer lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.speech.v2.Recognizer.State getState() { - com.google.cloud.speech.v2.Recognizer.State result = - com.google.cloud.speech.v2.Recognizer.State.forNumber(state_); + @java.lang.Override public com.google.cloud.speech.v2.Recognizer.State getState() { + com.google.cloud.speech.v2.Recognizer.State result = com.google.cloud.speech.v2.Recognizer.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.Recognizer.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -811,15 +716,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -827,14 +728,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -844,15 +742,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -860,15 +754,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -876,14 +766,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -893,15 +780,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -909,15 +792,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -925,14 +804,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -942,15 +818,11 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ @java.lang.Override @@ -958,15 +830,11 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ @java.lang.Override @@ -974,14 +842,11 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -989,12 +854,9 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 12; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -1002,7 +864,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ @java.lang.Override @@ -1011,15 +872,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -1027,15 +887,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -1046,15 +907,12 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int RECONCILING_FIELD_NUMBER = 13; private boolean reconciling_ = false; /** - * - * *
    * Output only. Whether or not this Recognizer is in the process of being
    * updated.
    * 
* * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -1063,12 +921,9 @@ public boolean getReconciling() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 15; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -1076,10 +931,7 @@ public boolean getReconciling() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ @java.lang.Override @@ -1088,15 +940,14 @@ public java.lang.String getKmsKeyName() { 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(); kmsKeyName_ = s; return s; } } /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -1104,18 +955,17 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -1124,12 +974,9 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER = 16; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyVersionName_ = ""; /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1137,10 +984,7 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyVersionName. */ @java.lang.Override @@ -1149,15 +993,14 @@ public java.lang.String getKmsKeyVersionName() { 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(); kmsKeyVersionName_ = s; return s; } } /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1165,18 +1008,17 @@ public java.lang.String getKmsKeyVersionName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyVersionName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -1185,7 +1027,6 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1197,7 +1038,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_); } @@ -1213,8 +1055,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (defaultRecognitionConfig_ != null) { output.writeMessage(6, getDefaultRecognitionConfig()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 7); if (state_ != com.google.cloud.speech.v2.Recognizer.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(8, state_); } @@ -1267,40 +1113,45 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, model_); } if (defaultRecognitionConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, getDefaultRecognitionConfig()); - } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, annotations__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDefaultRecognitionConfig()); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, annotations__); } if (state_ != com.google.cloud.speech.v2.Recognizer.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, etag_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, reconciling_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, reconciling_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getExpireTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, kmsKeyName_); @@ -1324,44 +1175,59 @@ 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.v2.Recognizer)) { return super.equals(obj); } com.google.cloud.speech.v2.Recognizer other = (com.google.cloud.speech.v2.Recognizer) obj; - if (!getName().equals(other.getName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getModel().equals(other.getModel())) return false; - if (!getLanguageCodesList().equals(other.getLanguageCodesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getModel() + .equals(other.getModel())) return false; + if (!getLanguageCodesList() + .equals(other.getLanguageCodesList())) return false; if (hasDefaultRecognitionConfig() != other.hasDefaultRecognitionConfig()) return false; if (hasDefaultRecognitionConfig()) { - if (!getDefaultRecognitionConfig().equals(other.getDefaultRecognitionConfig())) return false; + if (!getDefaultRecognitionConfig() + .equals(other.getDefaultRecognitionConfig())) return false; } - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; - } - if (!getEtag().equals(other.getEtag())) return false; - if (getReconciling() != other.getReconciling()) return false; - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; - if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; + } + if (!getEtag() + .equals(other.getEtag())) return false; + if (getReconciling() + != other.getReconciling()) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; + if (!getKmsKeyVersionName() + .equals(other.getKmsKeyVersionName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1414,7 +1280,8 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getKmsKeyName().hashCode(); hash = (37 * hash) + KMS_KEY_VERSION_NAME_FIELD_NUMBER; @@ -1424,155 +1291,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.Recognizer parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.Recognizer parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.Recognizer 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.v2.Recognizer parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.speech.v2.Recognizer parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.Recognizer 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.v2.Recognizer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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 Recognizer message. Stores recognition configuration and metadata.
    * 
* * Protobuf type {@code google.cloud.speech.v2.Recognizer} */ - 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.v2.Recognizer) com.google.cloud.speech.v2.RecognizerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_Recognizer_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 7: return internalGetAnnotations(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 7: return internalGetMutableAnnotations(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.Recognizer.class, - com.google.cloud.speech.v2.Recognizer.Builder.class); + com.google.cloud.speech.v2.Recognizer.class, com.google.cloud.speech.v2.Recognizer.Builder.class); } // Construct using com.google.cloud.speech.v2.Recognizer.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1618,9 +1482,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_Recognizer_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_descriptor; } @java.lang.Override @@ -1639,12 +1503,9 @@ public com.google.cloud.speech.v2.Recognizer build() { @java.lang.Override public com.google.cloud.speech.v2.Recognizer buildPartial() { - com.google.cloud.speech.v2.Recognizer result = - new com.google.cloud.speech.v2.Recognizer(this); + com.google.cloud.speech.v2.Recognizer result = new com.google.cloud.speech.v2.Recognizer(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1672,10 +1533,9 @@ private void buildPartial0(com.google.cloud.speech.v2.Recognizer result) { result.model_ = model_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.defaultRecognitionConfig_ = - defaultRecognitionConfigBuilder_ == null - ? defaultRecognitionConfig_ - : defaultRecognitionConfigBuilder_.build(); + result.defaultRecognitionConfig_ = defaultRecognitionConfigBuilder_ == null + ? defaultRecognitionConfig_ + : defaultRecognitionConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.annotations_ = internalGetAnnotations(); @@ -1685,16 +1545,24 @@ private void buildPartial0(com.google.cloud.speech.v2.Recognizer result) { result.state_ = state_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000400) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + result.deleteTime_ = deleteTimeBuilder_ == null + ? deleteTime_ + : deleteTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000800) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null + ? expireTime_ + : expireTimeBuilder_.build(); } if (((from_bitField0_ & 0x00001000) != 0)) { result.etag_ = etag_; @@ -1714,39 +1582,38 @@ private void buildPartial0(com.google.cloud.speech.v2.Recognizer result) { 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.v2.Recognizer) { - return mergeFrom((com.google.cloud.speech.v2.Recognizer) other); + return mergeFrom((com.google.cloud.speech.v2.Recognizer)other); } else { super.mergeFrom(other); return this; @@ -1788,7 +1655,8 @@ public Builder mergeFrom(com.google.cloud.speech.v2.Recognizer other) { if (other.hasDefaultRecognitionConfig()) { mergeDefaultRecognitionConfig(other.getDefaultRecognitionConfig()); } - internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + internalGetMutableAnnotations().mergeFrom( + other.internalGetAnnotations()); bitField0_ |= 0x00000040; if (other.state_ != 0) { setStateValue(other.getStateValue()); @@ -1849,117 +1717,107 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: - { - input.readMessage( - getDefaultRecognitionConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - com.google.protobuf.MapEntry annotations__ = - input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableAnnotations() - .getMutableMap() - .put(annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 64: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 74: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: - { - input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 98: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 98 - case 104: - { - reconciling_ = input.readBool(); - bitField0_ |= 0x00002000; - break; - } // case 104 - case 114: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 114 - case 122: - { - kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; - break; - } // case 122 - case 130: - { - kmsKeyVersionName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; - break; - } // case 130 - case 138: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureLanguageCodesIsMutable(); - languageCodes_.add(s); - break; - } // case 138 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + input.readMessage( + getDefaultRecognitionConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + com.google.protobuf.MapEntry + annotations__ = input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableAnnotations().getMutableMap().put( + annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + input.readMessage( + getDeleteTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 98 + case 104: { + reconciling_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 104 + case 114: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 114 + case 122: { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: { + kmsKeyVersionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 138: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLanguageCodesIsMutable(); + languageCodes_.add(s); + break; + } // case 138 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1969,26 +1827,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the Recognizer.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1997,22 +1852,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the Recognizer.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -2020,37 +1874,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the Recognizer.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the Recognizer.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2060,22 +1907,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name of the Recognizer.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2085,20 +1928,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. System-assigned unique identifier for the Recognizer.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; 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(); uid_ = s; return s; @@ -2107,21 +1948,20 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. System-assigned unique identifier for the Recognizer.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -2129,35 +1969,28 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. System-assigned unique identifier for the Recognizer.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. System-assigned unique identifier for the Recognizer.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { @@ -2167,21 +2000,17 @@ public Builder clearUid() { return this; } /** - * - * *
      * Output only. System-assigned unique identifier for the Recognizer.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000002; @@ -2191,21 +2020,19 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * User-settable, human-readable name for the Recognizer. Must be 63
      * characters or less.
      * 
* * string display_name = 3; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -2214,22 +2041,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * User-settable, human-readable name for the Recognizer. Must be 63
      * characters or less.
      * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -2237,37 +2063,30 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * User-settable, human-readable name for the Recognizer. Must be 63
      * characters or less.
      * 
* * string display_name = 3; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * User-settable, human-readable name for the Recognizer. Must be 63
      * characters or less.
      * 
* * string display_name = 3; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2277,22 +2096,18 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * User-settable, human-readable name for the Recognizer. Must be 63
      * characters or less.
      * 
* * string display_name = 3; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000004; @@ -2302,8 +2117,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object model_ = ""; /** - * - * *
      * Required. Which model to use for recognition requests. Select the model
      * best suited to your domain to get best results.
@@ -2321,13 +2134,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @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; @@ -2336,8 +2149,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Required. Which model to use for recognition requests. Select the model
      * best suited to your domain to get best results.
@@ -2355,14 +2166,15 @@ public java.lang.String getModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @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 { @@ -2370,8 +2182,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Required. Which model to use for recognition requests. Select the model
      * best suited to your domain to get best results.
@@ -2389,22 +2199,18 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } model_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. Which model to use for recognition requests. Select the model
      * best suited to your domain to get best results.
@@ -2422,7 +2228,6 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearModel() { @@ -2432,8 +2237,6 @@ public Builder clearModel() { return this; } /** - * - * *
      * Required. Which model to use for recognition requests. Select the model
      * best suited to your domain to get best results.
@@ -2451,14 +2254,12 @@ public Builder clearModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setModelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000008; @@ -2466,18 +2267,14 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList languageCodes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); bitField0_ |= 0x00000010; - } + } } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2494,15 +2291,13 @@ private void ensureLanguageCodesIsMutable() {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getLanguageCodesList() { return languageCodes_.getUnmodifiableView(); } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2519,15 +2314,12 @@ public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2544,7 +2336,6 @@ public int getLanguageCodesCount() {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -2552,8 +2343,6 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2570,16 +2359,14 @@ public java.lang.String getLanguageCodes(int index) {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2596,23 +2383,19 @@ public com.google.protobuf.ByteString getLanguageCodesBytes(int index) {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The languageCodes to set. * @return This builder for chaining. */ - public Builder setLanguageCodes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLanguageCodesIsMutable(); languageCodes_.set(index, 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.
@@ -2629,22 +2412,18 @@ public Builder setLanguageCodes(int index, java.lang.String value) {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLanguageCodes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLanguageCodesIsMutable(); languageCodes_.add(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.
@@ -2661,19 +2440,18 @@ public Builder addLanguageCodes(java.lang.String value) {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The languageCodes to add. * @return This builder for chaining. */ - public Builder addAllLanguageCodes(java.lang.Iterable values) { + public Builder addAllLanguageCodes( + java.lang.Iterable values) { ensureLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, languageCodes_); 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.
@@ -2690,7 +2468,6 @@ public Builder addAllLanguageCodes(java.lang.Iterable values)
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLanguageCodes() { @@ -2700,8 +2477,6 @@ public Builder clearLanguageCodes() { return this; } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2718,14 +2493,12 @@ public Builder clearLanguageCodes() {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLanguageCodesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLanguageCodesIsMutable(); languageCodes_.add(value); @@ -2735,13 +2508,8 @@ public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { private com.google.cloud.speech.v2.RecognitionConfig defaultRecognitionConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, - com.google.cloud.speech.v2.RecognitionConfig.Builder, - com.google.cloud.speech.v2.RecognitionConfigOrBuilder> - defaultRecognitionConfigBuilder_; + com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> defaultRecognitionConfigBuilder_; /** - * - * *
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2750,15 +2518,12 @@ public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; - * * @return Whether the defaultRecognitionConfig field is set. */ public boolean hasDefaultRecognitionConfig() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2767,21 +2532,16 @@ public boolean hasDefaultRecognitionConfig() {
      * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; - * * @return The defaultRecognitionConfig. */ public com.google.cloud.speech.v2.RecognitionConfig getDefaultRecognitionConfig() { if (defaultRecognitionConfigBuilder_ == null) { - return defaultRecognitionConfig_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : defaultRecognitionConfig_; + return defaultRecognitionConfig_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : defaultRecognitionConfig_; } else { return defaultRecognitionConfigBuilder_.getMessage(); } } /** - * - * *
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2805,8 +2565,6 @@ public Builder setDefaultRecognitionConfig(com.google.cloud.speech.v2.Recognitio
       return this;
     }
     /**
-     *
-     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2828,8 +2586,6 @@ public Builder setDefaultRecognitionConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2839,13 +2595,11 @@ public Builder setDefaultRecognitionConfig(
      *
      * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6;
      */
-    public Builder mergeDefaultRecognitionConfig(
-        com.google.cloud.speech.v2.RecognitionConfig value) {
+    public Builder mergeDefaultRecognitionConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       if (defaultRecognitionConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000020) != 0)
-            && defaultRecognitionConfig_ != null
-            && defaultRecognitionConfig_
-                != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000020) != 0) &&
+          defaultRecognitionConfig_ != null &&
+          defaultRecognitionConfig_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
           getDefaultRecognitionConfigBuilder().mergeFrom(value);
         } else {
           defaultRecognitionConfig_ = value;
@@ -2858,8 +2612,6 @@ public Builder mergeDefaultRecognitionConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2880,8 +2632,6 @@ public Builder clearDefaultRecognitionConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2891,15 +2641,12 @@ public Builder clearDefaultRecognitionConfig() {
      *
      * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6;
      */
-    public com.google.cloud.speech.v2.RecognitionConfig.Builder
-        getDefaultRecognitionConfigBuilder() {
+    public com.google.cloud.speech.v2.RecognitionConfig.Builder getDefaultRecognitionConfigBuilder() {
       bitField0_ |= 0x00000020;
       onChanged();
       return getDefaultRecognitionConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2909,19 +2656,15 @@ public Builder clearDefaultRecognitionConfig() {
      *
      * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6;
      */
-    public com.google.cloud.speech.v2.RecognitionConfigOrBuilder
-        getDefaultRecognitionConfigOrBuilder() {
+    public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getDefaultRecognitionConfigOrBuilder() {
       if (defaultRecognitionConfigBuilder_ != null) {
         return defaultRecognitionConfigBuilder_.getMessageOrBuilder();
       } else {
-        return defaultRecognitionConfig_ == null
-            ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
-            : defaultRecognitionConfig_;
+        return defaultRecognitionConfig_ == null ?
+            com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : defaultRecognitionConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2932,24 +2675,21 @@ public Builder clearDefaultRecognitionConfig() {
      * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.RecognitionConfig,
-            com.google.cloud.speech.v2.RecognitionConfig.Builder,
-            com.google.cloud.speech.v2.RecognitionConfigOrBuilder>
+        com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> 
         getDefaultRecognitionConfigFieldBuilder() {
       if (defaultRecognitionConfigBuilder_ == null) {
-        defaultRecognitionConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v2.RecognitionConfig,
-                com.google.cloud.speech.v2.RecognitionConfig.Builder,
-                com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
-                getDefaultRecognitionConfig(), getParentForChildren(), isClean());
+        defaultRecognitionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
+                getDefaultRecognitionConfig(),
+                getParentForChildren(),
+                isClean());
         defaultRecognitionConfig_ = null;
       }
       return defaultRecognitionConfigBuilder_;
     }
 
-    private com.google.protobuf.MapField annotations_;
-
+    private com.google.protobuf.MapField<
+        java.lang.String, java.lang.String> annotations_;
     private com.google.protobuf.MapField
         internalGetAnnotations() {
       if (annotations_ == null) {
@@ -2958,12 +2698,11 @@ public Builder clearDefaultRecognitionConfig() {
       }
       return annotations_;
     }
-
     private com.google.protobuf.MapField
         internalGetMutableAnnotations() {
       if (annotations_ == null) {
-        annotations_ =
-            com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry);
+        annotations_ = com.google.protobuf.MapField.newMapField(
+            AnnotationsDefaultEntryHolder.defaultEntry);
       }
       if (!annotations_.isMutable()) {
         annotations_ = annotations_.copy();
@@ -2972,13 +2711,10 @@ public Builder clearDefaultRecognitionConfig() {
       onChanged();
       return annotations_;
     }
-
     public int getAnnotationsCount() {
       return internalGetAnnotations().getMap().size();
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -2988,21 +2724,20 @@ public int getAnnotationsCount() {
      * map<string, string> annotations = 7;
      */
     @java.lang.Override
-    public boolean containsAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetAnnotations().getMap().containsKey(key);
     }
-    /** Use {@link #getAnnotationsMap()} instead. */
+    /**
+     * Use {@link #getAnnotationsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAnnotations() {
       return getAnnotationsMap();
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3016,8 +2751,6 @@ public java.util.Map getAnnotationsMap() {
       return internalGetAnnotations().getMap();
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3027,19 +2760,17 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 7;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getAnnotationsOrDefault(
+    public /* nullable */
+java.lang.String getAnnotationsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetAnnotations().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3049,25 +2780,23 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 7;
      */
     @java.lang.Override
-    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetAnnotations().getMap();
+    public java.lang.String getAnnotationsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearAnnotations() {
       bitField0_ = (bitField0_ & ~0x00000040);
-      internalGetMutableAnnotations().getMutableMap().clear();
+      internalGetMutableAnnotations().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3076,22 +2805,23 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 7;
      */
-    public Builder removeAnnotations(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableAnnotations().getMutableMap().remove(key);
+    public Builder removeAnnotations(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableAnnotations().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableAnnotations() {
+    public java.util.Map
+        getMutableAnnotations() {
       bitField0_ |= 0x00000040;
       return internalGetMutableAnnotations().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3100,20 +2830,17 @@ public java.util.Map getMutableAnnotations()
      *
      * map<string, string> annotations = 7;
      */
-    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableAnnotations().getMutableMap().put(key, value);
+    public Builder putAnnotations(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableAnnotations().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000040;
       return this;
     }
     /**
-     *
-     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3122,41 +2849,32 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> annotations = 7;
      */
-    public Builder putAllAnnotations(java.util.Map values) {
-      internalGetMutableAnnotations().getMutableMap().putAll(values);
+    public Builder putAllAnnotations(
+        java.util.Map values) {
+      internalGetMutableAnnotations().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000040;
       return this;
     }
 
     private int state_ = 0;
     /**
-     *
-     *
      * 
      * Output only. The Recognizer lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The Recognizer lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3167,35 +2885,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The Recognizer lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.speech.v2.Recognizer.State getState() { - com.google.cloud.speech.v2.Recognizer.State result = - com.google.cloud.speech.v2.Recognizer.State.forNumber(state_); + com.google.cloud.speech.v2.Recognizer.State result = com.google.cloud.speech.v2.Recognizer.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.Recognizer.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The Recognizer lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3209,16 +2916,11 @@ public Builder setState(com.google.cloud.speech.v2.Recognizer.State value) { return this; } /** - * - * *
      * Output only. The Recognizer lifecycle state.
      * 
* - * - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -3230,58 +2932,39 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3297,17 +2980,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -3318,21 +2998,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3345,15 +3021,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -3366,15 +3038,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000100; @@ -3382,48 +3050,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Creation time.
      * 
* - * - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3431,58 +3087,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3498,17 +3135,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3519,21 +3153,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3546,15 +3176,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000200); @@ -3567,15 +3193,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000200; @@ -3583,48 +3205,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3632,58 +3242,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3699,17 +3290,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -3720,21 +3308,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -3747,15 +3331,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000400); @@ -3768,15 +3348,11 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000400; @@ -3784,48 +3360,36 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -3833,58 +3397,39 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -3900,17 +3445,14 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -3921,21 +3463,17 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && expireTime_ != null - && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) && + expireTime_ != null && + expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -3948,15 +3486,11 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000800); @@ -3969,15 +3503,11 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000800; @@ -3985,48 +3515,36 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), + getParentForChildren(), + isClean()); expireTime_ = null; } return expireTimeBuilder_; @@ -4034,8 +3552,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private java.lang.Object etag_ = ""; /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4043,13 +3559,13 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -4058,8 +3574,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4067,14 +3581,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -4082,8 +3597,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4091,22 +3604,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4114,7 +3623,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -4124,8 +3632,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4133,14 +3639,12 @@ public Builder clearEtag() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00001000; @@ -4148,17 +3652,14 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } - private boolean reconciling_; + private boolean reconciling_ ; /** - * - * *
      * Output only. Whether or not this Recognizer is in the process of being
      * updated.
      * 
* * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -4166,35 +3667,29 @@ public boolean getReconciling() { return reconciling_; } /** - * - * *
      * Output only. Whether or not this Recognizer is in the process of being
      * updated.
      * 
* * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** - * - * *
      * Output only. Whether or not this Recognizer is in the process of being
      * updated.
      * 
* * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -4206,8 +3701,6 @@ public Builder clearReconciling() { private java.lang.Object kmsKeyName_ = ""; /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4215,16 +3708,14 @@ public Builder clearReconciling() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; 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(); kmsKeyName_ = s; return s; @@ -4233,8 +3724,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4242,17 +3731,16 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -4260,8 +3748,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4269,25 +3755,19 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyName_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4295,10 +3775,7 @@ public Builder setKmsKeyName(java.lang.String value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -4308,8 +3785,6 @@ public Builder clearKmsKeyName() { return this; } /** - * - * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4317,17 +3792,13 @@ public Builder clearKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00004000; @@ -4337,8 +3808,6 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyVersionName_ = ""; /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4346,16 +3815,14 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyVersionName. */ public java.lang.String getKmsKeyVersionName() { java.lang.Object ref = kmsKeyVersionName_; 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(); kmsKeyVersionName_ = s; return s; @@ -4364,8 +3831,6 @@ public java.lang.String getKmsKeyVersionName() { } } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4373,17 +3838,16 @@ public java.lang.String getKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyVersionName. */ - public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -4391,8 +3855,6 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { } } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4400,25 +3862,19 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyVersionName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyVersionName_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4426,10 +3882,7 @@ public Builder setKmsKeyVersionName(java.lang.String value) {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { @@ -4439,8 +3892,6 @@ public Builder clearKmsKeyVersionName() { return this; } /** - * - * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4448,26 +3899,22 @@ public Builder clearKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @param value The bytes for kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyVersionNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyVersionName_ = value; bitField0_ |= 0x00008000; 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); } @@ -4477,12 +3924,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.Recognizer) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.Recognizer) private static final com.google.cloud.speech.v2.Recognizer DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.Recognizer(); } @@ -4491,27 +3938,27 @@ public static com.google.cloud.speech.v2.Recognizer getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Recognizer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Recognizer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4526,4 +3973,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.Recognizer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java similarity index 100% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java similarity index 81% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java index 37ab04a4a79e..4e9732a7e29a 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java @@ -1,110 +1,77 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface RecognizerOrBuilder - extends +public interface RecognizerOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.Recognizer) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the Recognizer.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the Recognizer.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. System-assigned unique identifier for the Recognizer.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. System-assigned unique identifier for the Recognizer.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * User-settable, human-readable name for the Recognizer. Must be 63
    * characters or less.
    * 
* * string display_name = 3; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * User-settable, human-readable name for the Recognizer. Must be 63
    * characters or less.
    * 
* * string display_name = 3; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Required. Which model to use for recognition requests. Select the model
    * best suited to your domain to get best results.
@@ -122,13 +89,10 @@ public interface RecognizerOrBuilder
    * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Required. Which model to use for recognition requests. Select the model
    * best suited to your domain to get best results.
@@ -146,14 +110,12 @@ public interface RecognizerOrBuilder
    * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -170,13 +132,11 @@ public interface RecognizerOrBuilder
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the languageCodes. */ - java.util.List getLanguageCodesList(); + java.util.List + getLanguageCodesList(); /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -193,13 +153,10 @@ public interface RecognizerOrBuilder
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of languageCodes. */ int getLanguageCodesCount(); /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -216,14 +173,11 @@ public interface RecognizerOrBuilder
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The languageCodes at the given index. */ java.lang.String getLanguageCodes(int index); /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -240,15 +194,13 @@ public interface RecognizerOrBuilder
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - com.google.protobuf.ByteString getLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getLanguageCodesBytes(int index); /** - * - * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -257,13 +209,10 @@ public interface RecognizerOrBuilder
    * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; - * * @return Whether the defaultRecognitionConfig field is set. */ boolean hasDefaultRecognitionConfig(); /** - * - * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -272,13 +221,10 @@ public interface RecognizerOrBuilder
    * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; - * * @return The defaultRecognitionConfig. */ com.google.cloud.speech.v2.RecognitionConfig getDefaultRecognitionConfig(); /** - * - * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -291,8 +237,6 @@ public interface RecognizerOrBuilder
   com.google.cloud.speech.v2.RecognitionConfigOrBuilder getDefaultRecognitionConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -303,8 +247,6 @@ public interface RecognizerOrBuilder
    */
   int getAnnotationsCount();
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -313,13 +255,15 @@ public interface RecognizerOrBuilder
    *
    * map<string, string> annotations = 7;
    */
-  boolean containsAnnotations(java.lang.String key);
-  /** Use {@link #getAnnotationsMap()} instead. */
+  boolean containsAnnotations(
+      java.lang.String key);
+  /**
+   * Use {@link #getAnnotationsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getAnnotations();
+  java.util.Map
+  getAnnotations();
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -328,10 +272,9 @@ public interface RecognizerOrBuilder
    *
    * map<string, string> annotations = 7;
    */
-  java.util.Map getAnnotationsMap();
+  java.util.Map
+  getAnnotationsMap();
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -341,13 +284,11 @@ public interface RecognizerOrBuilder
    * map<string, string> annotations = 7;
    */
   /* nullable */
-  java.lang.String getAnnotationsOrDefault(
+java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -356,192 +297,137 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> annotations = 7;
    */
-  java.lang.String getAnnotationsOrThrow(java.lang.String key);
+  java.lang.String getAnnotationsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. The Recognizer lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The Recognizer lifecycle state.
    * 
* - * - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.speech.v2.Recognizer.State getState(); /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -549,13 +435,10 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -563,28 +446,23 @@ java.lang.String getAnnotationsOrDefault(
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Output only. Whether or not this Recognizer is in the process of being
    * updated.
    * 
* * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ boolean getReconciling(); /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -592,16 +470,11 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -609,17 +482,13 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -627,16 +496,11 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The kmsKeyVersionName. */ java.lang.String getKmsKeyVersionName(); /** - * - * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -644,11 +508,9 @@ java.lang.String getAnnotationsOrDefault(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * @return The bytes for kmsKeyVersionName. */ - com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); + com.google.protobuf.ByteString + getKmsKeyVersionNameBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java index 14b27c2a4f19..b318b60c5519 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java @@ -1,75 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Configuration to enable speaker diarization.
  * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeakerDiarizationConfig.class, - com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v2.SpeakerDiarizationConfig.class, com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder.class); } public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_ = 0; /** - * - * *
    * Required. Minimum number of speakers in the conversation. This range gives
    * you more flexibility by allowing the system to automatically determine the
@@ -79,7 +59,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The minSpeakerCount. */ @java.lang.Override @@ -90,8 +69,6 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_ = 0; /** - * - * *
    * Required. Maximum number of speakers in the conversation. Valid values are:
    * 1-6. Must be >= `min_speaker_count`. This range gives you more flexibility
@@ -100,7 +77,6 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The maxSpeakerCount. */ @java.lang.Override @@ -109,7 +85,6 @@ public int getMaxSpeakerCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,7 +96,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 (minSpeakerCount_ != 0) { output.writeInt32(2, minSpeakerCount_); } @@ -138,10 +114,12 @@ public int getSerializedSize() { size = 0; 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -151,16 +129,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.v2.SpeakerDiarizationConfig)) { return super.equals(obj); } - com.google.cloud.speech.v2.SpeakerDiarizationConfig other = - (com.google.cloud.speech.v2.SpeakerDiarizationConfig) obj; + com.google.cloud.speech.v2.SpeakerDiarizationConfig other = (com.google.cloud.speech.v2.SpeakerDiarizationConfig) obj; - if (getMinSpeakerCount() != other.getMinSpeakerCount()) return false; - if (getMaxSpeakerCount() != other.getMaxSpeakerCount()) return false; + if (getMinSpeakerCount() + != other.getMinSpeakerCount()) return false; + if (getMaxSpeakerCount() + != other.getMaxSpeakerCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,135 +161,129 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.SpeakerDiarizationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.SpeakerDiarizationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.SpeakerDiarizationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.SpeakerDiarizationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.SpeakerDiarizationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Configuration to enable speaker diarization.
    * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.SpeakerDiarizationConfig) com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeakerDiarizationConfig.class, - com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v2.SpeakerDiarizationConfig.class, com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder.class); } // Construct using com.google.cloud.speech.v2.SpeakerDiarizationConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,9 +294,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; } @java.lang.Override @@ -342,11 +315,8 @@ public com.google.cloud.speech.v2.SpeakerDiarizationConfig build() { @java.lang.Override public com.google.cloud.speech.v2.SpeakerDiarizationConfig buildPartial() { - com.google.cloud.speech.v2.SpeakerDiarizationConfig result = - new com.google.cloud.speech.v2.SpeakerDiarizationConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v2.SpeakerDiarizationConfig result = new com.google.cloud.speech.v2.SpeakerDiarizationConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -365,39 +335,38 @@ private void buildPartial0(com.google.cloud.speech.v2.SpeakerDiarizationConfig r 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.v2.SpeakerDiarizationConfig) { - return mergeFrom((com.google.cloud.speech.v2.SpeakerDiarizationConfig) other); + return mergeFrom((com.google.cloud.speech.v2.SpeakerDiarizationConfig)other); } else { super.mergeFrom(other); return this; @@ -405,8 +374,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.SpeakerDiarizationConfig other) { - if (other == com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()) return this; if (other.getMinSpeakerCount() != 0) { setMinSpeakerCount(other.getMinSpeakerCount()); } @@ -439,25 +407,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 16: - { - minSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 16 - case 24: - { - maxSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 16: { + minSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 16 + case 24: { + maxSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -467,13 +432,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int minSpeakerCount_; + private int minSpeakerCount_ ; /** - * - * *
      * Required. Minimum number of speakers in the conversation. This range gives
      * you more flexibility by allowing the system to automatically determine the
@@ -483,7 +445,6 @@ public Builder mergeFrom(
      * 
* * int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The minSpeakerCount. */ @java.lang.Override @@ -491,8 +452,6 @@ public int getMinSpeakerCount() { return minSpeakerCount_; } /** - * - * *
      * Required. Minimum number of speakers in the conversation. This range gives
      * you more flexibility by allowing the system to automatically determine the
@@ -502,20 +461,17 @@ public int getMinSpeakerCount() {
      * 
* * int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The minSpeakerCount to set. * @return This builder for chaining. */ public Builder setMinSpeakerCount(int value) { - + minSpeakerCount_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Minimum number of speakers in the conversation. This range gives
      * you more flexibility by allowing the system to automatically determine the
@@ -525,7 +481,6 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { @@ -535,10 +490,8 @@ public Builder clearMinSpeakerCount() { return this; } - private int maxSpeakerCount_; + private int maxSpeakerCount_ ; /** - * - * *
      * Required. Maximum number of speakers in the conversation. Valid values are:
      * 1-6. Must be >= `min_speaker_count`. This range gives you more flexibility
@@ -547,7 +500,6 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The maxSpeakerCount. */ @java.lang.Override @@ -555,8 +507,6 @@ public int getMaxSpeakerCount() { return maxSpeakerCount_; } /** - * - * *
      * Required. Maximum number of speakers in the conversation. Valid values are:
      * 1-6. Must be >= `min_speaker_count`. This range gives you more flexibility
@@ -565,20 +515,17 @@ public int getMaxSpeakerCount() {
      * 
* * int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The maxSpeakerCount to set. * @return This builder for chaining. */ public Builder setMaxSpeakerCount(int value) { - + maxSpeakerCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. Maximum number of speakers in the conversation. Valid values are:
      * 1-6. Must be >= `min_speaker_count`. This range gives you more flexibility
@@ -587,7 +534,6 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { @@ -596,9 +542,9 @@ public Builder clearMaxSpeakerCount() { 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); } @@ -608,12 +554,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.SpeakerDiarizationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.SpeakerDiarizationConfig) private static final com.google.cloud.speech.v2.SpeakerDiarizationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.SpeakerDiarizationConfig(); } @@ -622,27 +568,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,4 +603,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.SpeakerDiarizationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java similarity index 64% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java index 8b55c737a86b..36dd1f392509 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface SpeakerDiarizationConfigOrBuilder - extends +public interface SpeakerDiarizationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.SpeakerDiarizationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Minimum number of speakers in the conversation. This range gives
    * you more flexibility by allowing the system to automatically determine the
@@ -35,14 +17,11 @@ public interface SpeakerDiarizationConfigOrBuilder
    * 
* * int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The minSpeakerCount. */ int getMinSpeakerCount(); /** - * - * *
    * Required. Maximum number of speakers in the conversation. Valid values are:
    * 1-6. Must be >= `min_speaker_count`. This range gives you more flexibility
@@ -51,7 +30,6 @@ public interface SpeakerDiarizationConfigOrBuilder
    * 
* * int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The maxSpeakerCount. */ int getMaxSpeakerCount(); diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java similarity index 72% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java index 17506874e78a..82f8bc88e348 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results. Phrase sets can be specified as an inline resource, or a
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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();
     customClasses_ = java.util.Collections.emptyList();
@@ -46,102 +28,84 @@ 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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.SpeechAdaptation.class,
-            com.google.cloud.speech.v2.SpeechAdaptation.Builder.class);
+            com.google.cloud.speech.v2.SpeechAdaptation.class, com.google.cloud.speech.v2.SpeechAdaptation.Builder.class);
   }
 
-  public interface AdaptationPhraseSetOrBuilder
-      extends
+  public interface AdaptationPhraseSetOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** - * - * *
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @return The phraseSet. */ java.lang.String getPhraseSet(); /** - * - * *
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for phraseSet. */ - com.google.protobuf.ByteString getPhraseSetBytes(); + com.google.protobuf.ByteString + getPhraseSetBytes(); /** - * - * *
      * An inline defined phrase set.
      * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; - * * @return Whether the inlinePhraseSet field is set. */ boolean hasInlinePhraseSet(); /** - * - * *
      * An inline defined phrase set.
      * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; - * * @return The inlinePhraseSet. */ com.google.cloud.speech.v2.PhraseSet getInlinePhraseSet(); /** - * - * *
      * An inline defined phrase set.
      * 
@@ -153,8 +117,6 @@ public interface AdaptationPhraseSetOrBuilder public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.ValueCase getValueCase(); } /** - * - * *
    * A biasing phrase set, which can be either a string referencing the name of
    * an existing phrase set resource, or an inline definition of a phrase set.
@@ -162,56 +124,52 @@ public interface AdaptationPhraseSetOrBuilder
    *
    * Protobuf type {@code google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet}
    */
-  public static final class AdaptationPhraseSet extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class AdaptationPhraseSet extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet)
       AdaptationPhraseSetOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use AdaptationPhraseSet.newBuilder() to construct.
     private AdaptationPhraseSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private AdaptationPhraseSet() {}
+    private AdaptationPhraseSet() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new AdaptationPhraseSet();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.class,
-              com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder.class);
+              com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.class, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder.class);
     }
 
     private int valueCase_ = 0;
     private java.lang.Object value_;
-
     public enum ValueCase
-        implements
-            com.google.protobuf.Internal.EnumLite,
+        implements com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       PHRASE_SET(1),
       INLINE_PHRASE_SET(2),
       VALUE_NOT_SET(0);
       private final int value;
-
       private ValueCase(int value) {
         this.value = value;
       }
@@ -227,52 +185,43 @@ public static ValueCase valueOf(int value) {
 
       public static ValueCase forNumber(int value) {
         switch (value) {
-          case 1:
-            return PHRASE_SET;
-          case 2:
-            return INLINE_PHRASE_SET;
-          case 0:
-            return VALUE_NOT_SET;
-          default:
-            return null;
+          case 1: return PHRASE_SET;
+          case 2: return INLINE_PHRASE_SET;
+          case 0: return VALUE_NOT_SET;
+          default: return null;
         }
       }
-
       public int getNumber() {
         return this.value;
       }
     };
 
-    public ValueCase getValueCase() {
-      return ValueCase.forNumber(valueCase_);
+    public ValueCase
+    getValueCase() {
+      return ValueCase.forNumber(
+          valueCase_);
     }
 
     public static final int PHRASE_SET_FIELD_NUMBER = 1;
     /**
-     *
-     *
      * 
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return valueCase_ == 1; } /** - * - * *
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @return The phraseSet. */ public java.lang.String getPhraseSet() { @@ -283,7 +232,8 @@ public java.lang.String getPhraseSet() { 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 (valueCase_ == 1) { value_ = s; @@ -292,25 +242,24 @@ public java.lang.String getPhraseSet() { } } /** - * - * *
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for phraseSet. */ - public com.google.protobuf.ByteString getPhraseSetBytes() { + public com.google.protobuf.ByteString + getPhraseSetBytes() { java.lang.Object ref = ""; if (valueCase_ == 1) { 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); if (valueCase_ == 1) { value_ = b; } @@ -322,14 +271,11 @@ public com.google.protobuf.ByteString getPhraseSetBytes() { public static final int INLINE_PHRASE_SET_FIELD_NUMBER = 2; /** - * - * *
      * An inline defined phrase set.
      * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; - * * @return Whether the inlinePhraseSet field is set. */ @java.lang.Override @@ -337,26 +283,21 @@ public boolean hasInlinePhraseSet() { return valueCase_ == 2; } /** - * - * *
      * An inline defined phrase set.
      * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; - * * @return The inlinePhraseSet. */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSet getInlinePhraseSet() { if (valueCase_ == 2) { - return (com.google.cloud.speech.v2.PhraseSet) value_; + return (com.google.cloud.speech.v2.PhraseSet) value_; } return com.google.cloud.speech.v2.PhraseSet.getDefaultInstance(); } /** - * - * *
      * An inline defined phrase set.
      * 
@@ -366,13 +307,12 @@ public com.google.cloud.speech.v2.PhraseSet getInlinePhraseSet() { @java.lang.Override public com.google.cloud.speech.v2.PhraseSetOrBuilder getInlinePhraseSetOrBuilder() { if (valueCase_ == 2) { - return (com.google.cloud.speech.v2.PhraseSet) value_; + return (com.google.cloud.speech.v2.PhraseSet) value_; } return com.google.cloud.speech.v2.PhraseSet.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -384,7 +324,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 (valueCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -404,9 +345,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (valueCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.speech.v2.PhraseSet) value_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.speech.v2.PhraseSet) value_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -416,21 +356,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.v2.SpeechAdaptation.AdaptationPhraseSet)) { return super.equals(obj); } - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet other = - (com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet) obj; + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet other = (com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet) obj; if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 1: - if (!getPhraseSet().equals(other.getPhraseSet())) return false; + if (!getPhraseSet() + .equals(other.getPhraseSet())) return false; break; case 2: - if (!getInlinePhraseSet().equals(other.getInlinePhraseSet())) return false; + if (!getInlinePhraseSet() + .equals(other.getInlinePhraseSet())) return false; break; case 0: default: @@ -464,95 +405,87 @@ public int hashCode() { } public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet - 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.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet prototype) { + public static Builder newBuilder(com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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 @@ -562,8 +495,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A biasing phrase set, which can be either a string referencing the name of
      * an existing phrase set resource, or an inline definition of a phrase set.
@@ -571,34 +502,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet}
      */
-    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.v2.SpeechAdaptation.AdaptationPhraseSet)
         com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.speech.v2.CloudSpeechProto
-            .internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.speech.v2.CloudSpeechProto
-            .internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable
+        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.class,
-                com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder.class);
+                com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.class, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.newBuilder()
-      private Builder() {}
+      // Construct using com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -612,14 +542,13 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.speech.v2.CloudSpeechProto
-            .internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet
-          getDefaultInstanceForType() {
+      public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getDefaultInstanceForType() {
         return com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance();
       }
 
@@ -634,26 +563,22 @@ public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet build() {
 
       @java.lang.Override
       public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet buildPartial() {
-        com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result =
-            new com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result = new com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         buildPartialOneofs(result);
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result) {
+      private void buildPartial0(com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result) {
         int from_bitField0_ = bitField0_;
       }
 
-      private void buildPartialOneofs(
-          com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result) {
+      private void buildPartialOneofs(com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result) {
         result.valueCase_ = valueCase_;
         result.value_ = this.value_;
-        if (valueCase_ == 2 && inlinePhraseSetBuilder_ != null) {
+        if (valueCase_ == 2 &&
+            inlinePhraseSetBuilder_ != null) {
           result.value_ = inlinePhraseSetBuilder_.build();
         }
       }
@@ -662,69 +587,60 @@ private void buildPartialOneofs(
       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.v2.SpeechAdaptation.AdaptationPhraseSet) {
-          return mergeFrom((com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet) other);
+          return mergeFrom((com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet other) {
-        if (other
-            == com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance())
-          return this;
+      public Builder mergeFrom(com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet other) {
+        if (other == com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance()) return this;
         switch (other.getValueCase()) {
-          case PHRASE_SET:
-            {
-              valueCase_ = 1;
-              value_ = other.value_;
-              onChanged();
-              break;
-            }
-          case INLINE_PHRASE_SET:
-            {
-              mergeInlinePhraseSet(other.getInlinePhraseSet());
-              break;
-            }
-          case VALUE_NOT_SET:
-            {
-              break;
-            }
+          case PHRASE_SET: {
+            valueCase_ = 1;
+            value_ = other.value_;
+            onChanged();
+            break;
+          }
+          case INLINE_PHRASE_SET: {
+            mergeInlinePhraseSet(other.getInlinePhraseSet());
+            break;
+          }
+          case VALUE_NOT_SET: {
+            break;
+          }
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -752,27 +668,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  java.lang.String s = input.readStringRequireUtf8();
-                  valueCase_ = 1;
-                  value_ = s;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  input.readMessage(
-                      getInlinePhraseSetFieldBuilder().getBuilder(), extensionRegistry);
-                  valueCase_ = 2;
-                  break;
-                } // case 18
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                java.lang.String s = input.readStringRequireUtf8();
+                valueCase_ = 1;
+                value_ = s;
+                break;
+              } // case 10
+              case 18: {
+                input.readMessage(
+                    getInlinePhraseSetFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                valueCase_ = 2;
+                break;
+              } // case 18
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -782,12 +696,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int valueCase_ = 0;
       private java.lang.Object value_;
-
-      public ValueCase getValueCase() {
-        return ValueCase.forNumber(valueCase_);
+      public ValueCase
+          getValueCase() {
+        return ValueCase.forNumber(
+            valueCase_);
       }
 
       public Builder clearValue() {
@@ -800,15 +714,12 @@ public Builder clearValue() {
       private int bitField0_;
 
       /**
-       *
-       *
        * 
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -816,15 +727,12 @@ public boolean hasPhraseSet() { return valueCase_ == 1; } /** - * - * *
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @return The phraseSet. */ @java.lang.Override @@ -834,7 +742,8 @@ public java.lang.String getPhraseSet() { 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(); if (valueCase_ == 1) { value_ = s; @@ -845,26 +754,25 @@ public java.lang.String getPhraseSet() { } } /** - * - * *
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for phraseSet. */ @java.lang.Override - public com.google.protobuf.ByteString getPhraseSetBytes() { + public com.google.protobuf.ByteString + getPhraseSetBytes() { java.lang.Object ref = ""; if (valueCase_ == 1) { 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); if (valueCase_ == 1) { value_ = b; } @@ -874,37 +782,30 @@ public com.google.protobuf.ByteString getPhraseSetBytes() { } } /** - * - * *
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @param value The phraseSet to set. * @return This builder for chaining. */ - public Builder setPhraseSet(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhraseSet( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } valueCase_ = 1; value_ = value; onChanged(); return this; } /** - * - * *
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearPhraseSet() { @@ -916,22 +817,18 @@ public Builder clearPhraseSet() { return this; } /** - * - * *
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for phraseSet to set. * @return This builder for chaining. */ - public Builder setPhraseSetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPhraseSetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); valueCase_ = 1; value_ = value; @@ -940,19 +837,13 @@ public Builder setPhraseSetBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, - com.google.cloud.speech.v2.PhraseSet.Builder, - com.google.cloud.speech.v2.PhraseSetOrBuilder> - inlinePhraseSetBuilder_; + com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> inlinePhraseSetBuilder_; /** - * - * *
        * An inline defined phrase set.
        * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; - * * @return Whether the inlinePhraseSet field is set. */ @java.lang.Override @@ -960,14 +851,11 @@ public boolean hasInlinePhraseSet() { return valueCase_ == 2; } /** - * - * *
        * An inline defined phrase set.
        * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; - * * @return The inlinePhraseSet. */ @java.lang.Override @@ -985,8 +873,6 @@ public com.google.cloud.speech.v2.PhraseSet getInlinePhraseSet() { } } /** - * - * *
        * An inline defined phrase set.
        * 
@@ -1007,8 +893,6 @@ public Builder setInlinePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** - * - * *
        * An inline defined phrase set.
        * 
@@ -1027,8 +911,6 @@ public Builder setInlinePhraseSet( return this; } /** - * - * *
        * An inline defined phrase set.
        * 
@@ -1037,13 +919,10 @@ public Builder setInlinePhraseSet( */ public Builder mergeInlinePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { if (inlinePhraseSetBuilder_ == null) { - if (valueCase_ == 2 - && value_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { - value_ = - com.google.cloud.speech.v2.PhraseSet.newBuilder( - (com.google.cloud.speech.v2.PhraseSet) value_) - .mergeFrom(value) - .buildPartial(); + if (valueCase_ == 2 && + value_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { + value_ = com.google.cloud.speech.v2.PhraseSet.newBuilder((com.google.cloud.speech.v2.PhraseSet) value_) + .mergeFrom(value).buildPartial(); } else { value_ = value; } @@ -1059,8 +938,6 @@ public Builder mergeInlinePhraseSet(com.google.cloud.speech.v2.PhraseSet value) return this; } /** - * - * *
        * An inline defined phrase set.
        * 
@@ -1084,8 +961,6 @@ public Builder clearInlinePhraseSet() { return this; } /** - * - * *
        * An inline defined phrase set.
        * 
@@ -1096,8 +971,6 @@ public com.google.cloud.speech.v2.PhraseSet.Builder getInlinePhraseSetBuilder() return getInlinePhraseSetFieldBuilder().getBuilder(); } /** - * - * *
        * An inline defined phrase set.
        * 
@@ -1116,8 +989,6 @@ public com.google.cloud.speech.v2.PhraseSetOrBuilder getInlinePhraseSetOrBuilder } } /** - * - * *
        * An inline defined phrase set.
        * 
@@ -1125,27 +996,23 @@ public com.google.cloud.speech.v2.PhraseSetOrBuilder getInlinePhraseSetOrBuilder * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, - com.google.cloud.speech.v2.PhraseSet.Builder, - com.google.cloud.speech.v2.PhraseSetOrBuilder> + com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> getInlinePhraseSetFieldBuilder() { if (inlinePhraseSetBuilder_ == null) { if (!(valueCase_ == 2)) { value_ = com.google.cloud.speech.v2.PhraseSet.getDefaultInstance(); } - inlinePhraseSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, - com.google.cloud.speech.v2.PhraseSet.Builder, - com.google.cloud.speech.v2.PhraseSetOrBuilder>( - (com.google.cloud.speech.v2.PhraseSet) value_, getParentForChildren(), isClean()); + inlinePhraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder>( + (com.google.cloud.speech.v2.PhraseSet) value_, + getParentForChildren(), + isClean()); value_ = null; } valueCase_ = 2; onChanged(); return inlinePhraseSetBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1158,44 +1025,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet) - private static final com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet - DEFAULT_INSTANCE; - + private static final com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet(); } - public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet - getDefaultInstance() { + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdaptationPhraseSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdaptationPhraseSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1207,99 +1071,77 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet - getDefaultInstanceForType() { + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int PHRASE_SETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - phraseSets_; + private java.util.List phraseSets_; /** - * - * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ @java.lang.Override - public java.util.List - getPhraseSetsList() { + public java.util.List getPhraseSetsList() { return phraseSets_; } /** - * - * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder> + public java.util.List getPhraseSetsOrBuilderList() { return phraseSets_; } /** - * - * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ @java.lang.Override public int getPhraseSetsCount() { return phraseSets_.size(); } /** - * - * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ @java.lang.Override public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** - * - * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ @java.lang.Override - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder - getPhraseSetsOrBuilder(int index) { + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhraseSetsOrBuilder( + int index) { return phraseSets_.get(index); } public static final int CUSTOM_CLASSES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List customClasses_; /** - * - * *
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -1312,8 +1154,6 @@ public java.util.List getCustomClassesLi
     return customClasses_;
   }
   /**
-   *
-   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -1322,13 +1162,11 @@ public java.util.List getCustomClassesLi
    * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getCustomClassesOrBuilderList() {
     return customClasses_;
   }
   /**
-   *
-   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -1341,8 +1179,6 @@ public int getCustomClassesCount() {
     return customClasses_.size();
   }
   /**
-   *
-   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -1355,8 +1191,6 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) {
     return customClasses_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -1365,12 +1199,12 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) {
    * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index) {
+  public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(
+      int index) {
     return customClasses_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1382,7 +1216,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));
     }
@@ -1399,10 +1234,12 @@ 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));
     }
     for (int i = 0; i < customClasses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, customClasses_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, customClasses_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1412,16 +1249,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.v2.SpeechAdaptation)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.SpeechAdaptation other =
-        (com.google.cloud.speech.v2.SpeechAdaptation) obj;
+    com.google.cloud.speech.v2.SpeechAdaptation other = (com.google.cloud.speech.v2.SpeechAdaptation) obj;
 
-    if (!getPhraseSetsList().equals(other.getPhraseSetsList())) return false;
-    if (!getCustomClassesList().equals(other.getCustomClassesList())) return false;
+    if (!getPhraseSetsList()
+        .equals(other.getPhraseSetsList())) return false;
+    if (!getCustomClassesList()
+        .equals(other.getCustomClassesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -1446,104 +1284,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.speech.v2.SpeechAdaptation parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.speech.v2.SpeechAdaptation parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.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.v2.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.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.v2.SpeechAdaptation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.SpeechAdaptation parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v2.SpeechAdaptation parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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;
   }
   /**
-   *
-   *
    * 
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results. Phrase sets can be specified as an inline resource, or a
@@ -1552,32 +1383,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.SpeechAdaptation)
       com.google.cloud.speech.v2.SpeechAdaptationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.SpeechAdaptation.class,
-              com.google.cloud.speech.v2.SpeechAdaptation.Builder.class);
+              com.google.cloud.speech.v2.SpeechAdaptation.class, com.google.cloud.speech.v2.SpeechAdaptation.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.SpeechAdaptation.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1600,9 +1432,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
     }
 
     @java.lang.Override
@@ -1621,12 +1453,9 @@ public com.google.cloud.speech.v2.SpeechAdaptation build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.SpeechAdaptation buildPartial() {
-      com.google.cloud.speech.v2.SpeechAdaptation result =
-          new com.google.cloud.speech.v2.SpeechAdaptation(this);
+      com.google.cloud.speech.v2.SpeechAdaptation result = new com.google.cloud.speech.v2.SpeechAdaptation(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1660,39 +1489,38 @@ private void buildPartial0(com.google.cloud.speech.v2.SpeechAdaptation result) {
     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.v2.SpeechAdaptation) {
-        return mergeFrom((com.google.cloud.speech.v2.SpeechAdaptation) other);
+        return mergeFrom((com.google.cloud.speech.v2.SpeechAdaptation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1719,10 +1547,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_);
           }
@@ -1746,10 +1573,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.SpeechAdaptation other) {
             customClassesBuilder_ = null;
             customClasses_ = other.customClasses_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            customClassesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getCustomClassesFieldBuilder()
-                    : null;
+            customClassesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getCustomClassesFieldBuilder() : null;
           } else {
             customClassesBuilder_.addAllMessages(other.customClasses_);
           }
@@ -1781,40 +1607,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.parser(),
-                        extensionRegistry);
-                if (phraseSetsBuilder_ == null) {
-                  ensurePhraseSetsIsMutable();
-                  phraseSets_.add(m);
-                } else {
-                  phraseSetsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.cloud.speech.v2.CustomClass m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.CustomClass.parser(), extensionRegistry);
-                if (customClassesBuilder_ == null) {
-                  ensureCustomClassesIsMutable();
-                  customClasses_.add(m);
-                } else {
-                  customClassesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.parser(),
+                      extensionRegistry);
+              if (phraseSetsBuilder_ == null) {
+                ensurePhraseSetsIsMutable();
+                phraseSets_.add(m);
+              } else {
+                phraseSetsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              com.google.cloud.speech.v2.CustomClass m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.CustomClass.parser(),
+                      extensionRegistry);
+              if (customClassesBuilder_ == null) {
+                ensureCustomClassesIsMutable();
+                customClasses_.add(m);
+              } else {
+                customClassesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1824,39 +1648,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List
-        phraseSets_ = java.util.Collections.emptyList();
-
+    private java.util.List phraseSets_ =
+      java.util.Collections.emptyList();
     private void ensurePhraseSetsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        phraseSets_ =
-            new java.util.ArrayList<
-                com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet>(phraseSets_);
+        phraseSets_ = new java.util.ArrayList(phraseSets_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet,
-            com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder,
-            com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder>
-        phraseSetsBuilder_;
+        com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder> phraseSetsBuilder_;
 
     /**
-     *
-     *
      * 
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ - public java.util.List - getPhraseSetsList() { + public java.util.List getPhraseSetsList() { if (phraseSetsBuilder_ == null) { return java.util.Collections.unmodifiableList(phraseSets_); } else { @@ -1864,14 +1677,11 @@ private void ensurePhraseSetsIsMutable() { } } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ public int getPhraseSetsCount() { if (phraseSetsBuilder_ == null) { @@ -1881,17 +1691,13 @@ public int getPhraseSetsCount() { } } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getPhraseSets( - int index) { + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getPhraseSets(int index) { if (phraseSetsBuilder_ == null) { return phraseSets_.get(index); } else { @@ -1899,14 +1705,11 @@ public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getPhrase } } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ public Builder setPhraseSets( int index, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet value) { @@ -1923,18 +1726,14 @@ public Builder setPhraseSets( return this; } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ public Builder setPhraseSets( - int index, - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue) { + int index, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue) { if (phraseSetsBuilder_ == null) { ensurePhraseSetsIsMutable(); phraseSets_.set(index, builderForValue.build()); @@ -1945,17 +1744,13 @@ public Builder setPhraseSets( return this; } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ - public Builder addPhraseSets( - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet value) { + public Builder addPhraseSets(com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet value) { if (phraseSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1969,14 +1764,11 @@ public Builder addPhraseSets( return this; } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ public Builder addPhraseSets( int index, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet value) { @@ -1993,14 +1785,11 @@ public Builder addPhraseSets( return this; } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ public Builder addPhraseSets( com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue) { @@ -2014,18 +1803,14 @@ public Builder addPhraseSets( return this; } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ public Builder addPhraseSets( - int index, - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue) { + int index, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue) { if (phraseSetsBuilder_ == null) { ensurePhraseSetsIsMutable(); phraseSets_.add(index, builderForValue.build()); @@ -2036,22 +1821,18 @@ public Builder addPhraseSets( return this; } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ public Builder addAllPhraseSets( - java.lang.Iterable< - ? extends com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet> - values) { + 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); @@ -2059,14 +1840,11 @@ public Builder addAllPhraseSets( return this; } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ public Builder clearPhraseSets() { if (phraseSetsBuilder_ == null) { @@ -2079,14 +1857,11 @@ public Builder clearPhraseSets() { return this; } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ public Builder removePhraseSets(int index) { if (phraseSetsBuilder_ == null) { @@ -2099,50 +1874,39 @@ public Builder removePhraseSets(int index) { return this; } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder - getPhraseSetsBuilder(int index) { + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder getPhraseSetsBuilder( + int index) { return getPhraseSetsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder - getPhraseSetsOrBuilder(int index) { + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhraseSetsOrBuilder( + int index) { if (phraseSetsBuilder_ == null) { - return phraseSets_.get(index); - } else { + return phraseSets_.get(index); } else { return phraseSetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ - public java.util.List< - ? extends com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder> - getPhraseSetsOrBuilderList() { + public java.util.List + getPhraseSetsOrBuilderList() { if (phraseSetsBuilder_ != null) { return phraseSetsBuilder_.getMessageOrBuilderList(); } else { @@ -2150,90 +1914,67 @@ public Builder removePhraseSets(int index) { } } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder - addPhraseSetsBuilder() { - return getPhraseSetsFieldBuilder() - .addBuilder( - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance()); + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder addPhraseSetsBuilder() { + return getPhraseSetsFieldBuilder().addBuilder( + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance()); } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder - addPhraseSetsBuilder(int index) { - return getPhraseSetsFieldBuilder() - .addBuilder( - index, - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance()); + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder addPhraseSetsBuilder( + int index) { + return getPhraseSetsFieldBuilder().addBuilder( + index, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance()); } /** - * - * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet, - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder, - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder> + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder> getPhraseSetsFieldBuilder() { if (phraseSetsBuilder_ == null) { - phraseSetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet, - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder, - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder>( - phraseSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + phraseSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder>( + phraseSets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); phraseSets_ = null; } return phraseSetsBuilder_; } private java.util.List customClasses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCustomClassesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - customClasses_ = - new java.util.ArrayList(customClasses_); + customClasses_ = new java.util.ArrayList(customClasses_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, - com.google.cloud.speech.v2.CustomClass.Builder, - com.google.cloud.speech.v2.CustomClassOrBuilder> - customClassesBuilder_; + com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> customClassesBuilder_; /** - * - * *
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2249,8 +1990,6 @@ public java.util.List getCustomClassesLi
       }
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2266,8 +2005,6 @@ public int getCustomClassesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2283,8 +2020,6 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2292,7 +2027,8 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) {
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public Builder setCustomClasses(int index, com.google.cloud.speech.v2.CustomClass value) {
+    public Builder setCustomClasses(
+        int index, com.google.cloud.speech.v2.CustomClass value) {
       if (customClassesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2306,8 +2042,6 @@ public Builder setCustomClasses(int index, com.google.cloud.speech.v2.CustomClas
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2327,8 +2061,6 @@ public Builder setCustomClasses(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2350,8 +2082,6 @@ public Builder addCustomClasses(com.google.cloud.speech.v2.CustomClass value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2359,7 +2089,8 @@ public Builder addCustomClasses(com.google.cloud.speech.v2.CustomClass value) {
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public Builder addCustomClasses(int index, com.google.cloud.speech.v2.CustomClass value) {
+    public Builder addCustomClasses(
+        int index, com.google.cloud.speech.v2.CustomClass value) {
       if (customClassesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2373,8 +2104,6 @@ public Builder addCustomClasses(int index, com.google.cloud.speech.v2.CustomClas
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2394,8 +2123,6 @@ public Builder addCustomClasses(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2415,8 +2142,6 @@ public Builder addCustomClasses(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2428,7 +2153,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);
@@ -2436,8 +2162,6 @@ public Builder addAllCustomClasses(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2456,8 +2180,6 @@ public Builder clearCustomClasses() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2476,8 +2198,6 @@ public Builder removeCustomClasses(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2485,12 +2205,11 @@ public Builder removeCustomClasses(int index) {
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassesBuilder(int index) {
+    public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassesBuilder(
+        int index) {
       return getCustomClassesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2498,16 +2217,14 @@ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassesBuilder(in
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index) {
+    public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(
+        int index) {
       if (customClassesBuilder_ == null) {
-        return customClasses_.get(index);
-      } else {
+        return customClasses_.get(index);  } else {
         return customClassesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2515,8 +2232,8 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public java.util.List
-        getCustomClassesOrBuilderList() {
+    public java.util.List 
+         getCustomClassesOrBuilderList() {
       if (customClassesBuilder_ != null) {
         return customClassesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2524,8 +2241,6 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder
       }
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2534,12 +2249,10 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
     public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder() {
-      return getCustomClassesFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v2.CustomClass.getDefaultInstance());
+      return getCustomClassesFieldBuilder().addBuilder(
+          com.google.cloud.speech.v2.CustomClass.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2547,13 +2260,12 @@ public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder()
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(int index) {
-      return getCustomClassesFieldBuilder()
-          .addBuilder(index, com.google.cloud.speech.v2.CustomClass.getDefaultInstance());
+    public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(
+        int index) {
+      return getCustomClassesFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v2.CustomClass.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2561,22 +2273,16 @@ public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(in
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public java.util.List
-        getCustomClassesBuilderList() {
+    public java.util.List 
+         getCustomClassesBuilderList() {
       return getCustomClassesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.CustomClass,
-            com.google.cloud.speech.v2.CustomClass.Builder,
-            com.google.cloud.speech.v2.CustomClassOrBuilder>
+        com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> 
         getCustomClassesFieldBuilder() {
       if (customClassesBuilder_ == null) {
-        customClassesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v2.CustomClass,
-                com.google.cloud.speech.v2.CustomClass.Builder,
-                com.google.cloud.speech.v2.CustomClassOrBuilder>(
+        customClassesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder>(
                 customClasses_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -2585,9 +2291,9 @@ public com.google.cloud.speech.v2.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);
     }
 
@@ -2597,12 +2303,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.SpeechAdaptation)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.SpeechAdaptation)
   private static final com.google.cloud.speech.v2.SpeechAdaptation DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.SpeechAdaptation();
   }
@@ -2611,27 +2317,27 @@ public static com.google.cloud.speech.v2.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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  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 {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2646,4 +2352,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v2.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java
similarity index 71%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java
index 2c1d3322d7af..5a8fc16f2c29 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java
@@ -1,90 +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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
-public interface SpeechAdaptationOrBuilder
-    extends
+public interface SpeechAdaptationOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.SpeechAdaptation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ - java.util.List + java.util.List getPhraseSetsList(); /** - * - * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getPhraseSets(int index); /** - * - * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ int getPhraseSetsCount(); /** - * - * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ - java.util.List + java.util.List getPhraseSetsOrBuilderList(); /** - * - * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; - * + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; */ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhraseSetsOrBuilder( int index); /** - * - * *
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -92,10 +59,9 @@ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhra
    *
    * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
    */
-  java.util.List getCustomClassesList();
+  java.util.List 
+      getCustomClassesList();
   /**
-   *
-   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -105,8 +71,6 @@ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhra
    */
   com.google.cloud.speech.v2.CustomClass getCustomClasses(int index);
   /**
-   *
-   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -116,8 +80,6 @@ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhra
    */
   int getCustomClassesCount();
   /**
-   *
-   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -125,11 +87,9 @@ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhra
    *
    * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
    */
-  java.util.List
+  java.util.List 
       getCustomClassesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -137,5 +97,6 @@ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhra
    *
    * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
    */
-  com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index);
+  com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(
+      int index);
 }
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java
similarity index 75%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java
index 342473af6b42..cbb909e06162 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
- *
- *
  * 
  * Alternative hypotheses (a.k.a. n-best list).
  * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.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,43 +26,38 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeechRecognitionAlternative.class, - com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v2.SpeechRecognitionAlternative.class, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder.class); } public static final int TRANSCRIPT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object transcript_ = ""; /** - * - * *
    * Transcript text representing the words that the user spoke.
    * 
* * string transcript = 1; - * * @return The transcript. */ @java.lang.Override @@ -89,29 +66,29 @@ 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.
    * 
* * 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 { @@ -122,8 +99,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_ = 0F; /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -136,7 +111,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -145,12 +119,9 @@ public float getConfidence() { } public static final int WORDS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List words_; /** - * - * *
    * A list of word-specific information for each recognized word.
    * When
@@ -165,8 +136,6 @@ public java.util.List getWordsList() {
     return words_;
   }
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -177,13 +146,11 @@ public java.util.List getWordsList() {
    * repeated .google.cloud.speech.v2.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.
    * When
@@ -198,8 +165,6 @@ public int getWordsCount() {
     return words_.size();
   }
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -214,8 +179,6 @@ public com.google.cloud.speech.v2.WordInfo getWords(int index) {
     return words_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -226,12 +189,12 @@ public com.google.cloud.speech.v2.WordInfo getWords(int index) {
    * repeated .google.cloud.speech.v2.WordInfo words = 3;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(int index) {
+  public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(
+      int index) {
     return words_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -243,7 +206,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_);
     }
@@ -266,10 +230,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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -279,18 +245,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.v2.SpeechRecognitionAlternative)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.SpeechRecognitionAlternative other =
-        (com.google.cloud.speech.v2.SpeechRecognitionAlternative) obj;
+    com.google.cloud.speech.v2.SpeechRecognitionAlternative other = (com.google.cloud.speech.v2.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -305,7 +273,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();
@@ -316,136 +285,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v2.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.v2.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.v2.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionAlternative parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionAlternative parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v2.SpeechRecognitionAlternative parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionAlternative parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v2.SpeechRecognitionAlternative parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.SpeechRecognitionAlternative prototype) {
+  public static Builder newBuilder(com.google.cloud.speech.v2.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.v2.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.v2.SpeechRecognitionAlternative) com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeechRecognitionAlternative.class, - com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v2.SpeechRecognitionAlternative.class, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder.class); } // Construct using com.google.cloud.speech.v2.SpeechRecognitionAlternative.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -463,9 +425,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; } @java.lang.Override @@ -484,18 +446,14 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative build() { @java.lang.Override public com.google.cloud.speech.v2.SpeechRecognitionAlternative buildPartial() { - com.google.cloud.speech.v2.SpeechRecognitionAlternative result = - new com.google.cloud.speech.v2.SpeechRecognitionAlternative(this); + com.google.cloud.speech.v2.SpeechRecognitionAlternative result = new com.google.cloud.speech.v2.SpeechRecognitionAlternative(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v2.SpeechRecognitionAlternative result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v2.SpeechRecognitionAlternative result) { if (wordsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -521,39 +479,38 @@ private void buildPartial0(com.google.cloud.speech.v2.SpeechRecognitionAlternati 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.v2.SpeechRecognitionAlternative) { - return mergeFrom((com.google.cloud.speech.v2.SpeechRecognitionAlternative) other); + return mergeFrom((com.google.cloud.speech.v2.SpeechRecognitionAlternative)other); } else { super.mergeFrom(other); return this; @@ -561,8 +518,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.SpeechRecognitionAlternative other) { - if (other == com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance()) return this; if (!other.getTranscript().isEmpty()) { transcript_ = other.transcript_; bitField0_ |= 0x00000001; @@ -589,10 +545,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.SpeechRecognitionAlternative wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000004); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWordsFieldBuilder() - : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWordsFieldBuilder() : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -624,38 +579,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - transcript_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: - { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - case 26: - { - com.google.cloud.speech.v2.WordInfo m = - input.readMessage( - com.google.cloud.speech.v2.WordInfo.parser(), extensionRegistry); - if (wordsBuilder_ == null) { - ensureWordsIsMutable(); - words_.add(m); - } else { - wordsBuilder_.addMessage(m); - } - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + transcript_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 26: { + com.google.cloud.speech.v2.WordInfo m = + input.readMessage( + com.google.cloud.speech.v2.WordInfo.parser(), + extensionRegistry); + if (wordsBuilder_ == null) { + ensureWordsIsMutable(); + words_.add(m); + } else { + wordsBuilder_.addMessage(m); + } + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -665,25 +617,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object transcript_ = ""; /** - * - * *
      * Transcript text representing the words that the user spoke.
      * 
* * 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; @@ -692,21 +641,20 @@ public java.lang.String getTranscript() { } } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * 
* * 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 { @@ -714,35 +662,28 @@ public com.google.protobuf.ByteString getTranscriptBytes() { } } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; - * * @param value The transcript to set. * @return This builder for chaining. */ - public Builder setTranscript(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTranscript( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } transcript_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; - * * @return This builder for chaining. */ public Builder clearTranscript() { @@ -752,21 +693,17 @@ public Builder clearTranscript() { return this; } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; - * * @param value The bytes for transcript to set. * @return This builder for chaining. */ - public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTranscriptBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); transcript_ = value; bitField0_ |= 0x00000001; @@ -774,10 +711,8 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { 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
@@ -790,7 +725,6 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -798,8 +732,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
@@ -812,20 +744,17 @@ public float getConfidence() {
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000002; 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
@@ -838,7 +767,6 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -849,24 +777,18 @@ public Builder clearConfidence() { } private java.util.List words_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.WordInfo, - com.google.cloud.speech.v2.WordInfo.Builder, - com.google.cloud.speech.v2.WordInfoOrBuilder> - wordsBuilder_; + com.google.cloud.speech.v2.WordInfo, com.google.cloud.speech.v2.WordInfo.Builder, com.google.cloud.speech.v2.WordInfoOrBuilder> wordsBuilder_; /** - * - * *
      * A list of word-specific information for each recognized word.
      * When
@@ -884,8 +806,6 @@ public java.util.List getWordsList() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -903,8 +823,6 @@ public int getWordsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -922,8 +840,6 @@ public com.google.cloud.speech.v2.WordInfo getWords(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -933,7 +849,8 @@ public com.google.cloud.speech.v2.WordInfo getWords(int index) {
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public Builder setWords(int index, com.google.cloud.speech.v2.WordInfo value) {
+    public Builder setWords(
+        int index, com.google.cloud.speech.v2.WordInfo value) {
       if (wordsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -947,8 +864,6 @@ public Builder setWords(int index, com.google.cloud.speech.v2.WordInfo value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -970,8 +885,6 @@ public Builder setWords(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -995,8 +908,6 @@ public Builder addWords(com.google.cloud.speech.v2.WordInfo value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1006,7 +917,8 @@ public Builder addWords(com.google.cloud.speech.v2.WordInfo value) {
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public Builder addWords(int index, com.google.cloud.speech.v2.WordInfo value) {
+    public Builder addWords(
+        int index, com.google.cloud.speech.v2.WordInfo value) {
       if (wordsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1020,8 +932,6 @@ public Builder addWords(int index, com.google.cloud.speech.v2.WordInfo value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1031,7 +941,8 @@ public Builder addWords(int index, com.google.cloud.speech.v2.WordInfo value) {
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public Builder addWords(com.google.cloud.speech.v2.WordInfo.Builder builderForValue) {
+    public Builder addWords(
+        com.google.cloud.speech.v2.WordInfo.Builder builderForValue) {
       if (wordsBuilder_ == null) {
         ensureWordsIsMutable();
         words_.add(builderForValue.build());
@@ -1042,8 +953,6 @@ public Builder addWords(com.google.cloud.speech.v2.WordInfo.Builder builderForVa
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1065,8 +974,6 @@ public Builder addWords(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1080,7 +987,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);
@@ -1088,8 +996,6 @@ public Builder addAllWords(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1110,8 +1016,6 @@ public Builder clearWords() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1132,8 +1036,6 @@ public Builder removeWords(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1143,12 +1045,11 @@ public Builder removeWords(int index) {
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v2.WordInfo.Builder getWordsBuilder(int index) {
+    public com.google.cloud.speech.v2.WordInfo.Builder getWordsBuilder(
+        int index) {
       return getWordsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1158,16 +1059,14 @@ public com.google.cloud.speech.v2.WordInfo.Builder getWordsBuilder(int index) {
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(int index) {
+    public com.google.cloud.speech.v2.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.
      * When
@@ -1177,8 +1076,8 @@ public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(int index)
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public java.util.List
-        getWordsOrBuilderList() {
+    public java.util.List 
+         getWordsOrBuilderList() {
       if (wordsBuilder_ != null) {
         return wordsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1186,8 +1085,6 @@ public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(int index)
       }
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1198,12 +1095,10 @@ public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(int index)
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
     public com.google.cloud.speech.v2.WordInfo.Builder addWordsBuilder() {
-      return getWordsFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v2.WordInfo.getDefaultInstance());
+      return getWordsFieldBuilder().addBuilder(
+          com.google.cloud.speech.v2.WordInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1213,13 +1108,12 @@ public com.google.cloud.speech.v2.WordInfo.Builder addWordsBuilder() {
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v2.WordInfo.Builder addWordsBuilder(int index) {
-      return getWordsFieldBuilder()
-          .addBuilder(index, com.google.cloud.speech.v2.WordInfo.getDefaultInstance());
+    public com.google.cloud.speech.v2.WordInfo.Builder addWordsBuilder(
+        int index) {
+      return getWordsFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v2.WordInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1229,29 +1123,27 @@ public com.google.cloud.speech.v2.WordInfo.Builder addWordsBuilder(int index) {
      *
      * repeated .google.cloud.speech.v2.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.v2.WordInfo,
-            com.google.cloud.speech.v2.WordInfo.Builder,
-            com.google.cloud.speech.v2.WordInfoOrBuilder>
+        com.google.cloud.speech.v2.WordInfo, com.google.cloud.speech.v2.WordInfo.Builder, com.google.cloud.speech.v2.WordInfoOrBuilder> 
         getWordsFieldBuilder() {
       if (wordsBuilder_ == null) {
-        wordsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v2.WordInfo,
-                com.google.cloud.speech.v2.WordInfo.Builder,
-                com.google.cloud.speech.v2.WordInfoOrBuilder>(
-                words_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+        wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v2.WordInfo, com.google.cloud.speech.v2.WordInfo.Builder, com.google.cloud.speech.v2.WordInfoOrBuilder>(
+                words_,
+                ((bitField0_ & 0x00000004) != 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);
     }
 
@@ -1261,12 +1153,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.SpeechRecognitionAlternative)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.SpeechRecognitionAlternative)
   private static final com.google.cloud.speech.v2.SpeechRecognitionAlternative DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.SpeechRecognitionAlternative();
   }
@@ -1275,27 +1167,27 @@ public static com.google.cloud.speech.v2.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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  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 {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1310,4 +1202,6 @@ public com.google.protobuf.Parser getParserForType
   public com.google.cloud.speech.v2.SpeechRecognitionAlternative getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java
similarity index 78%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java
index 74d278312ad9..e9317373e2e7 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java
@@ -1,56 +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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
-public interface SpeechRecognitionAlternativeOrBuilder
-    extends
+public interface SpeechRecognitionAlternativeOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.SpeechRecognitionAlternative)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Transcript text representing the words that the user spoke.
    * 
* * string transcript = 1; - * * @return The transcript. */ java.lang.String getTranscript(); /** - * - * *
    * Transcript text representing the words that the user spoke.
    * 
* * 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
@@ -63,14 +40,11 @@ public interface SpeechRecognitionAlternativeOrBuilder
    * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); /** - * - * *
    * A list of word-specific information for each recognized word.
    * When
@@ -80,10 +54,9 @@ public interface SpeechRecognitionAlternativeOrBuilder
    *
    * repeated .google.cloud.speech.v2.WordInfo words = 3;
    */
-  java.util.List getWordsList();
+  java.util.List 
+      getWordsList();
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -95,8 +68,6 @@ public interface SpeechRecognitionAlternativeOrBuilder
    */
   com.google.cloud.speech.v2.WordInfo getWords(int index);
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -108,8 +79,6 @@ public interface SpeechRecognitionAlternativeOrBuilder
    */
   int getWordsCount();
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -119,10 +88,9 @@ public interface SpeechRecognitionAlternativeOrBuilder
    *
    * repeated .google.cloud.speech.v2.WordInfo words = 3;
    */
-  java.util.List getWordsOrBuilderList();
+  java.util.List 
+      getWordsOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -132,5 +100,6 @@ public interface SpeechRecognitionAlternativeOrBuilder
    *
    * repeated .google.cloud.speech.v2.WordInfo words = 3;
    */
-  com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(int index);
+  com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(
+      int index);
 }
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java
similarity index 75%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java
index b5e0aa007fb5..5889b6527e92 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
- *
- *
  * 
  * A speech recognition result corresponding to a portion of the audio.
  * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.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,37 +26,33 @@ 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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeechRecognitionResult.class, - com.google.cloud.speech.v2.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v2.SpeechRecognitionResult.class, com.google.cloud.speech.v2.SpeechRecognitionResult.Builder.class); } public static final int ALTERNATIVES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List alternatives_; /** - * - * *
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -84,13 +62,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.speech.v2.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. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -100,13 +75,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getAlternativesOrBuilderList() {
     return alternatives_;
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -120,8 +93,6 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -135,8 +106,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(i
     return alternatives_.get(index);
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -154,8 +123,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int CHANNEL_TAG_FIELD_NUMBER = 2;
   private int channelTag_ = 0;
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -164,7 +131,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ @java.lang.Override @@ -175,15 +141,12 @@ public int getChannelTag() { public static final int RESULT_END_OFFSET_FIELD_NUMBER = 4; private com.google.protobuf.Duration resultEndOffset_; /** - * - * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; - * * @return Whether the resultEndOffset field is set. */ @java.lang.Override @@ -191,26 +154,19 @@ public boolean hasResultEndOffset() { return resultEndOffset_ != null; } /** - * - * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; - * * @return The resultEndOffset. */ @java.lang.Override public com.google.protobuf.Duration getResultEndOffset() { - return resultEndOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : resultEndOffset_; + return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_; } /** - * - * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
@@ -220,18 +176,13 @@ public com.google.protobuf.Duration getResultEndOffset() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
-    return resultEndOffset_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : resultEndOffset_;
+    return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_;
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
-
   @SuppressWarnings("serial")
   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
@@ -239,7 +190,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ @java.lang.Override @@ -248,15 +198,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
@@ -264,15 +213,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 { @@ -281,7 +231,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,7 +242,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)); } @@ -316,13 +266,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 (resultEndOffset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResultEndOffset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getResultEndOffset()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, languageCode_); @@ -335,21 +288,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.v2.SpeechRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v2.SpeechRecognitionResult other = - (com.google.cloud.speech.v2.SpeechRecognitionResult) obj; + com.google.cloud.speech.v2.SpeechRecognitionResult other = (com.google.cloud.speech.v2.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 (hasResultEndOffset() != other.hasResultEndOffset()) return false; if (hasResultEndOffset()) { - if (!getResultEndOffset().equals(other.getResultEndOffset())) return false; + if (!getResultEndOffset() + .equals(other.getResultEndOffset())) return false; } - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -379,135 +335,129 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.SpeechRecognitionResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.SpeechRecognitionResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.SpeechRecognitionResult) com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeechRecognitionResult.class, - com.google.cloud.speech.v2.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v2.SpeechRecognitionResult.class, com.google.cloud.speech.v2.SpeechRecognitionResult.Builder.class); } // Construct using com.google.cloud.speech.v2.SpeechRecognitionResult.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -530,9 +480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; } @java.lang.Override @@ -551,18 +501,14 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult build() { @java.lang.Override public com.google.cloud.speech.v2.SpeechRecognitionResult buildPartial() { - com.google.cloud.speech.v2.SpeechRecognitionResult result = - new com.google.cloud.speech.v2.SpeechRecognitionResult(this); + com.google.cloud.speech.v2.SpeechRecognitionResult result = new com.google.cloud.speech.v2.SpeechRecognitionResult(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.speech.v2.SpeechRecognitionResult result) { + private void buildPartialRepeatedFields(com.google.cloud.speech.v2.SpeechRecognitionResult result) { if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -580,8 +526,9 @@ private void buildPartial0(com.google.cloud.speech.v2.SpeechRecognitionResult re result.channelTag_ = channelTag_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.resultEndOffset_ = - resultEndOffsetBuilder_ == null ? resultEndOffset_ : resultEndOffsetBuilder_.build(); + result.resultEndOffset_ = resultEndOffsetBuilder_ == null + ? resultEndOffset_ + : resultEndOffsetBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.languageCode_ = languageCode_; @@ -592,39 +539,38 @@ private void buildPartial0(com.google.cloud.speech.v2.SpeechRecognitionResult re 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.v2.SpeechRecognitionResult) { - return mergeFrom((com.google.cloud.speech.v2.SpeechRecognitionResult) other); + return mergeFrom((com.google.cloud.speech.v2.SpeechRecognitionResult)other); } else { super.mergeFrom(other); return this; @@ -632,8 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.SpeechRecognitionResult other) { - if (other == com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance()) return this; if (alternativesBuilder_ == null) { if (!other.alternatives_.isEmpty()) { if (alternatives_.isEmpty()) { @@ -652,10 +597,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_); } @@ -698,45 +642,42 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v2.SpeechRecognitionAlternative m = - input.readMessage( - com.google.cloud.speech.v2.SpeechRecognitionAlternative.parser(), - extensionRegistry); - if (alternativesBuilder_ == null) { - ensureAlternativesIsMutable(); - alternatives_.add(m); - } else { - alternativesBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: - { - channelTag_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 34: - { - input.readMessage(getResultEndOffsetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.speech.v2.SpeechRecognitionAlternative m = + input.readMessage( + com.google.cloud.speech.v2.SpeechRecognitionAlternative.parser(), + extensionRegistry); + if (alternativesBuilder_ == null) { + ensureAlternativesIsMutable(); + alternatives_.add(m); + } else { + alternativesBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: { + channelTag_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 34: { + input.readMessage( + getResultEndOffsetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -746,30 +687,21 @@ public Builder mergeFrom( } // finally 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.v2.SpeechRecognitionAlternative, - com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, - com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder> - alternativesBuilder_; + com.google.cloud.speech.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_; /** - * - * *
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -778,8 +710,7 @@ private void ensureAlternativesIsMutable() {
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List
-        getAlternativesList() {
+    public java.util.List getAlternativesList() {
       if (alternativesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(alternatives_);
       } else {
@@ -787,8 +718,6 @@ private void ensureAlternativesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -805,8 +734,6 @@ public int getAlternativesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -823,8 +750,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(i
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -848,8 +773,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -859,8 +782,7 @@ public Builder setAlternatives(
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder setAlternatives(
-        int index,
-        com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.set(index, builderForValue.build());
@@ -871,8 +793,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -895,8 +815,6 @@ public Builder addAlternatives(com.google.cloud.speech.v2.SpeechRecognitionAlter
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -920,8 +838,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -942,8 +858,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -953,8 +867,7 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder addAlternatives(
-        int index,
-        com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.add(index, builderForValue.build());
@@ -965,8 +878,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -976,11 +887,11 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v2.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);
@@ -988,8 +899,6 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1009,8 +918,6 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1030,8 +937,6 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1045,8 +950,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
       return getAlternativesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1055,17 +958,14 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder
-        getAlternativesOrBuilder(int index) {
+    public com.google.cloud.speech.v2.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. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1074,9 +974,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List<
-            ? extends com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>
-        getAlternativesOrBuilderList() {
+    public java.util.List 
+         getAlternativesOrBuilderList() {
       if (alternativesBuilder_ != null) {
         return alternativesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1084,8 +983,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1094,14 +991,11 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder
-        addAlternativesBuilder() {
-      return getAlternativesFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
+    public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAlternativesBuilder() {
+      return getAlternativesFieldBuilder().addBuilder(
+          com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1112,13 +1006,10 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
      */
     public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAlternativesBuilder(
         int index) {
-      return getAlternativesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
+      return getAlternativesFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1127,32 +1018,27 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAltern
      *
      * repeated .google.cloud.speech.v2.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.v2.SpeechRecognitionAlternative,
-            com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder,
-            com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>
+        com.google.cloud.speech.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder> 
         getAlternativesFieldBuilder() {
       if (alternativesBuilder_ == null) {
-        alternativesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v2.SpeechRecognitionAlternative,
-                com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder,
-                com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>(
-                alternatives_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        alternativesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.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.
@@ -1161,7 +1047,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAltern
      * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ @java.lang.Override @@ -1169,8 +1054,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.
@@ -1179,20 +1062,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1201,7 +1081,6 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; - * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1213,49 +1092,36 @@ public Builder clearChannelTag() { private com.google.protobuf.Duration resultEndOffset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - resultEndOffsetBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndOffsetBuilder_; /** - * - * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
      * 
* * .google.protobuf.Duration result_end_offset = 4; - * * @return Whether the resultEndOffset field is set. */ public boolean hasResultEndOffset() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
      * 
* * .google.protobuf.Duration result_end_offset = 4; - * * @return The resultEndOffset. */ public com.google.protobuf.Duration getResultEndOffset() { if (resultEndOffsetBuilder_ == null) { - return resultEndOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : resultEndOffset_; + return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_; } else { return resultEndOffsetBuilder_.getMessage(); } } /** - * - * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1277,8 +1143,6 @@ public Builder setResultEndOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1286,7 +1150,8 @@ public Builder setResultEndOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_offset = 4;
      */
-    public Builder setResultEndOffset(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndOffset(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndOffsetBuilder_ == null) {
         resultEndOffset_ = builderForValue.build();
       } else {
@@ -1297,8 +1162,6 @@ public Builder setResultEndOffset(com.google.protobuf.Duration.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1308,9 +1171,9 @@ public Builder setResultEndOffset(com.google.protobuf.Duration.Builder builderFo
      */
     public Builder mergeResultEndOffset(com.google.protobuf.Duration value) {
       if (resultEndOffsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && resultEndOffset_ != null
-            && resultEndOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          resultEndOffset_ != null &&
+          resultEndOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndOffsetBuilder().mergeFrom(value);
         } else {
           resultEndOffset_ = value;
@@ -1323,8 +1186,6 @@ public Builder mergeResultEndOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1343,8 +1204,6 @@ public Builder clearResultEndOffset() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1358,8 +1217,6 @@ public com.google.protobuf.Duration.Builder getResultEndOffsetBuilder() {
       return getResultEndOffsetFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1371,14 +1228,11 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
       if (resultEndOffsetBuilder_ != null) {
         return resultEndOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return resultEndOffset_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : resultEndOffset_;
+        return resultEndOffset_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_;
       }
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1387,17 +1241,14 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
      * .google.protobuf.Duration result_end_offset = 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> 
         getResultEndOffsetFieldBuilder() {
       if (resultEndOffsetBuilder_ == null) {
-        resultEndOffsetBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getResultEndOffset(), getParentForChildren(), isClean());
+        resultEndOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getResultEndOffset(),
+                getParentForChildren(),
+                isClean());
         resultEndOffset_ = null;
       }
       return resultEndOffsetBuilder_;
@@ -1405,8 +1256,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
 
     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
@@ -1414,13 +1263,13 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
      * 
* * 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; @@ -1429,8 +1278,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
@@ -1438,14 +1285,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 { @@ -1453,8 +1301,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
@@ -1462,22 +1308,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000008; 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
@@ -1485,7 +1327,6 @@ 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() { @@ -1495,8 +1336,6 @@ public Builder clearLanguageCode() { 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
@@ -1504,23 +1343,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000008; 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); } @@ -1530,12 +1367,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.SpeechRecognitionResult) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.SpeechRecognitionResult) private static final com.google.cloud.speech.v2.SpeechRecognitionResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.SpeechRecognitionResult(); } @@ -1544,27 +1381,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1579,4 +1416,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java similarity index 82% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java index e582591940dc..387b637fa897 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface SpeechRecognitionResultOrBuilder - extends +public interface SpeechRecognitionResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.SpeechRecognitionResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -34,10 +16,9 @@ public interface SpeechRecognitionResultOrBuilder
    *
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List getAlternativesList();
+  java.util.List 
+      getAlternativesList();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -48,8 +29,6 @@ public interface SpeechRecognitionResultOrBuilder
    */
   com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(int index);
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -60,8 +39,6 @@ public interface SpeechRecognitionResultOrBuilder
    */
   int getAlternativesCount();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -70,11 +47,9 @@ public interface SpeechRecognitionResultOrBuilder
    *
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List
+  java.util.List 
       getAlternativesOrBuilderList();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -87,8 +62,6 @@ com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlternatives
       int index);
 
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -97,40 +70,31 @@ com.google.cloud.speech.v2.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_offset = 4; - * * @return Whether the resultEndOffset field is set. */ boolean hasResultEndOffset(); /** - * - * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; - * * @return The resultEndOffset. */ com.google.protobuf.Duration getResultEndOffset(); /** - * - * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
@@ -141,8 +105,6 @@ com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlternatives
   com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder();
 
   /**
-   *
-   *
    * 
    * 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
@@ -150,13 +112,10 @@ com.google.cloud.speech.v2.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
@@ -164,8 +123,8 @@ com.google.cloud.speech.v2.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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java similarity index 73% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java index d12ec537ca84..87e64f6a743c 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java @@ -1,75 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Provides configuration information for the StreamingRecognize request.
  * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionConfig.class, - com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder.class); + com.google.cloud.speech.v2.StreamingRecognitionConfig.class, com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v2.RecognitionConfig config_; /** - * - * *
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -79,10 +59,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * of the Recognizer resource.
    * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ @java.lang.Override @@ -90,8 +67,6 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -101,21 +76,14 @@ public boolean hasConfig() {
    * of the Recognizer resource.
    * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfig getConfig() { - return config_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; } /** - * - * *
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -125,22 +93,16 @@ public com.google.cloud.speech.v2.RecognitionConfig getConfig() {
    * of the Recognizer resource.
    * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder() { - return config_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; } public static final int CONFIG_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask configMask_; /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -158,7 +120,6 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * .google.protobuf.FieldMask config_mask = 3; - * * @return Whether the configMask field is set. */ @java.lang.Override @@ -166,8 +127,6 @@ public boolean hasConfigMask() { return configMask_ != null; } /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -185,7 +144,6 @@ public boolean hasConfigMask() {
    * 
* * .google.protobuf.FieldMask config_mask = 3; - * * @return The configMask. */ @java.lang.Override @@ -193,8 +151,6 @@ public com.google.protobuf.FieldMask getConfigMask() { return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -221,15 +177,12 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
   public static final int STREAMING_FEATURES_FIELD_NUMBER = 2;
   private com.google.cloud.speech.v2.StreamingRecognitionFeatures streamingFeatures_;
   /**
-   *
-   *
    * 
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
    * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; - * * @return Whether the streamingFeatures field is set. */ @java.lang.Override @@ -237,26 +190,19 @@ public boolean hasStreamingFeatures() { return streamingFeatures_ != null; } /** - * - * *
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
    * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; - * * @return The streamingFeatures. */ @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognitionFeatures getStreamingFeatures() { - return streamingFeatures_ == null - ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() - : streamingFeatures_; + return streamingFeatures_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() : streamingFeatures_; } /** - * - * *
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
@@ -265,15 +211,11 @@ public com.google.cloud.speech.v2.StreamingRecognitionFeatures getStreamingFeatu
    * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder
-      getStreamingFeaturesOrBuilder() {
-    return streamingFeatures_ == null
-        ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()
-        : streamingFeatures_;
+  public com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder getStreamingFeaturesOrBuilder() {
+    return streamingFeatures_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() : streamingFeatures_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -285,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 {
     if (config_ != null) {
       output.writeMessage(1, getConfig());
     }
@@ -305,13 +248,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 (streamingFeatures_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStreamingFeatures());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getStreamingFeatures());
     }
     if (configMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConfigMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getConfigMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -321,25 +267,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.v2.StreamingRecognitionConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.StreamingRecognitionConfig other =
-        (com.google.cloud.speech.v2.StreamingRecognitionConfig) obj;
+    com.google.cloud.speech.v2.StreamingRecognitionConfig other = (com.google.cloud.speech.v2.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 (hasConfigMask() != other.hasConfigMask()) return false;
     if (hasConfigMask()) {
-      if (!getConfigMask().equals(other.getConfigMask())) return false;
+      if (!getConfigMask()
+          .equals(other.getConfigMask())) return false;
     }
     if (hasStreamingFeatures() != other.hasStreamingFeatures()) return false;
     if (hasStreamingFeatures()) {
-      if (!getStreamingFeatures().equals(other.getStreamingFeatures())) return false;
+      if (!getStreamingFeatures()
+          .equals(other.getStreamingFeatures())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -370,136 +318,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v2.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.v2.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.v2.StreamingRecognitionConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v2.StreamingRecognitionConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v2.StreamingRecognitionConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.StreamingRecognitionConfig prototype) {
+  public static Builder newBuilder(com.google.cloud.speech.v2.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 configuration information for the StreamingRecognize request.
    * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.StreamingRecognitionConfig) com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionConfig.class, - com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder.class); + com.google.cloud.speech.v2.StreamingRecognitionConfig.class, com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder.class); } // Construct using com.google.cloud.speech.v2.StreamingRecognitionConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -523,9 +464,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; } @java.lang.Override @@ -544,11 +485,8 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfig build() { @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognitionConfig buildPartial() { - com.google.cloud.speech.v2.StreamingRecognitionConfig result = - new com.google.cloud.speech.v2.StreamingRecognitionConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v2.StreamingRecognitionConfig result = new com.google.cloud.speech.v2.StreamingRecognitionConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -556,16 +494,19 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfig buildPartial() { private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + result.config_ = configBuilder_ == null + ? config_ + : configBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.configMask_ = configMaskBuilder_ == null ? configMask_ : configMaskBuilder_.build(); + result.configMask_ = configMaskBuilder_ == null + ? configMask_ + : configMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.streamingFeatures_ = - streamingFeaturesBuilder_ == null - ? streamingFeatures_ - : streamingFeaturesBuilder_.build(); + result.streamingFeatures_ = streamingFeaturesBuilder_ == null + ? streamingFeatures_ + : streamingFeaturesBuilder_.build(); } } @@ -573,39 +514,38 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionConfig 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.v2.StreamingRecognitionConfig) { - return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionConfig) other); + return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionConfig)other); } else { super.mergeFrom(other); return this; @@ -613,8 +553,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognitionConfig other) { - if (other == com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance()) return this; if (other.hasConfig()) { mergeConfig(other.getConfig()); } @@ -650,32 +589,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getStreamingFeaturesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - input.readMessage(getConfigMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getStreamingFeaturesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: { + input.readMessage( + getConfigMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -685,18 +625,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.speech.v2.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, - com.google.cloud.speech.v2.RecognitionConfig.Builder, - com.google.cloud.speech.v2.RecognitionConfigOrBuilder> - configBuilder_; + com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> configBuilder_; /** - * - * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -706,18 +640,13 @@ public Builder mergeFrom(
      * of the Recognizer resource.
      * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -727,24 +656,17 @@ public boolean hasConfig() {
      * of the Recognizer resource.
      * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ public com.google.cloud.speech.v2.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -754,9 +676,7 @@ public com.google.cloud.speech.v2.RecognitionConfig getConfig() {
      * of the Recognizer resource.
      * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) { if (configBuilder_ == null) { @@ -772,8 +692,6 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) { return this; } /** - * - * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -783,11 +701,10 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
      * of the Recognizer resource.
      * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) { + public Builder setConfig( + com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); } else { @@ -798,8 +715,6 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder bu return this; } /** - * - * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -809,15 +724,13 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder bu
      * of the Recognizer resource.
      * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) { if (configBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && config_ != null - && config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + config_ != null && + config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -830,8 +743,6 @@ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) { return this; } /** - * - * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -841,9 +752,7 @@ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
      * of the Recognizer resource.
      * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConfig() { bitField0_ = (bitField0_ & ~0x00000001); @@ -856,8 +765,6 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -867,9 +774,7 @@ public Builder clearConfig() {
      * of the Recognizer resource.
      * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() { bitField0_ |= 0x00000001; @@ -877,8 +782,6 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() { return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -888,22 +791,17 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() {
      * of the Recognizer resource.
      * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null - ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? + com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; } } /** - * - * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -913,22 +811,17 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * of the Recognizer resource.
      * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, - com.google.cloud.speech.v2.RecognitionConfig.Builder, - com.google.cloud.speech.v2.RecognitionConfigOrBuilder> + com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, - com.google.cloud.speech.v2.RecognitionConfig.Builder, - com.google.cloud.speech.v2.RecognitionConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; @@ -936,13 +829,8 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder( private com.google.protobuf.FieldMask configMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - configMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> configMaskBuilder_; /** - * - * *
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -960,15 +848,12 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * .google.protobuf.FieldMask config_mask = 3; - * * @return Whether the configMask field is set. */ public boolean hasConfigMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -986,21 +871,16 @@ public boolean hasConfigMask() {
      * 
* * .google.protobuf.FieldMask config_mask = 3; - * * @return The configMask. */ public com.google.protobuf.FieldMask getConfigMask() { if (configMaskBuilder_ == null) { - return configMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : configMask_; + return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } else { return configMaskBuilder_.getMessage(); } } /** - * - * *
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1033,8 +913,6 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1053,7 +931,8 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask config_mask = 3;
      */
-    public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setConfigMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (configMaskBuilder_ == null) {
         configMask_ = builderForValue.build();
       } else {
@@ -1064,8 +943,6 @@ public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1086,9 +963,9 @@ public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       if (configMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && configMask_ != null
-            && configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          configMask_ != null &&
+          configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getConfigMaskBuilder().mergeFrom(value);
         } else {
           configMask_ = value;
@@ -1101,8 +978,6 @@ public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1132,8 +1007,6 @@ public Builder clearConfigMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1158,8 +1031,6 @@ public com.google.protobuf.FieldMask.Builder getConfigMaskBuilder() {
       return getConfigMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1182,14 +1053,11 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
       if (configMaskBuilder_ != null) {
         return configMaskBuilder_.getMessageOrBuilder();
       } else {
-        return configMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : configMask_;
+        return configMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : configMask_;
       }
     }
     /**
-     *
-     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1209,17 +1077,14 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
      * .google.protobuf.FieldMask config_mask = 3;
      */
     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> 
         getConfigMaskFieldBuilder() {
       if (configMaskBuilder_ == null) {
-        configMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getConfigMask(), getParentForChildren(), isClean());
+        configMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getConfigMask(),
+                getParentForChildren(),
+                isClean());
         configMask_ = null;
       }
       return configMaskBuilder_;
@@ -1227,49 +1092,36 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
 
     private com.google.cloud.speech.v2.StreamingRecognitionFeatures streamingFeatures_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.StreamingRecognitionFeatures,
-            com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder,
-            com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder>
-        streamingFeaturesBuilder_;
+        com.google.cloud.speech.v2.StreamingRecognitionFeatures, com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder> streamingFeaturesBuilder_;
     /**
-     *
-     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
      * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; - * * @return Whether the streamingFeatures field is set. */ public boolean hasStreamingFeatures() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
      * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; - * * @return The streamingFeatures. */ public com.google.cloud.speech.v2.StreamingRecognitionFeatures getStreamingFeatures() { if (streamingFeaturesBuilder_ == null) { - return streamingFeatures_ == null - ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() - : streamingFeatures_; + return streamingFeatures_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() : streamingFeatures_; } else { return streamingFeaturesBuilder_.getMessage(); } } /** - * - * *
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1277,8 +1129,7 @@ public com.google.cloud.speech.v2.StreamingRecognitionFeatures getStreamingFeatu
      *
      * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
      */
-    public Builder setStreamingFeatures(
-        com.google.cloud.speech.v2.StreamingRecognitionFeatures value) {
+    public Builder setStreamingFeatures(com.google.cloud.speech.v2.StreamingRecognitionFeatures value) {
       if (streamingFeaturesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1292,8 +1143,6 @@ public Builder setStreamingFeatures(
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1313,8 +1162,6 @@ public Builder setStreamingFeatures(
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1322,13 +1169,11 @@ public Builder setStreamingFeatures(
      *
      * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
      */
-    public Builder mergeStreamingFeatures(
-        com.google.cloud.speech.v2.StreamingRecognitionFeatures value) {
+    public Builder mergeStreamingFeatures(com.google.cloud.speech.v2.StreamingRecognitionFeatures value) {
       if (streamingFeaturesBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && streamingFeatures_ != null
-            && streamingFeatures_
-                != com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          streamingFeatures_ != null &&
+          streamingFeatures_ != com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()) {
           getStreamingFeaturesBuilder().mergeFrom(value);
         } else {
           streamingFeatures_ = value;
@@ -1341,8 +1186,6 @@ public Builder mergeStreamingFeatures(
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1361,8 +1204,6 @@ public Builder clearStreamingFeatures() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1370,15 +1211,12 @@ public Builder clearStreamingFeatures() {
      *
      * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
      */
-    public com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder
-        getStreamingFeaturesBuilder() {
+    public com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder getStreamingFeaturesBuilder() {
       bitField0_ |= 0x00000004;
       onChanged();
       return getStreamingFeaturesFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1386,19 +1224,15 @@ public Builder clearStreamingFeatures() {
      *
      * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
      */
-    public com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder
-        getStreamingFeaturesOrBuilder() {
+    public com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder getStreamingFeaturesOrBuilder() {
       if (streamingFeaturesBuilder_ != null) {
         return streamingFeaturesBuilder_.getMessageOrBuilder();
       } else {
-        return streamingFeatures_ == null
-            ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()
-            : streamingFeatures_;
+        return streamingFeatures_ == null ?
+            com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() : streamingFeatures_;
       }
     }
     /**
-     *
-     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1407,24 +1241,21 @@ public Builder clearStreamingFeatures() {
      * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.StreamingRecognitionFeatures,
-            com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder,
-            com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder>
+        com.google.cloud.speech.v2.StreamingRecognitionFeatures, com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder> 
         getStreamingFeaturesFieldBuilder() {
       if (streamingFeaturesBuilder_ == null) {
-        streamingFeaturesBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v2.StreamingRecognitionFeatures,
-                com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder,
-                com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder>(
-                getStreamingFeatures(), getParentForChildren(), isClean());
+        streamingFeaturesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v2.StreamingRecognitionFeatures, com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder>(
+                getStreamingFeatures(),
+                getParentForChildren(),
+                isClean());
         streamingFeatures_ = null;
       }
       return streamingFeaturesBuilder_;
     }
-
     @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);
     }
 
@@ -1434,12 +1265,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognitionConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognitionConfig)
   private static final com.google.cloud.speech.v2.StreamingRecognitionConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognitionConfig();
   }
@@ -1448,27 +1279,27 @@ public static com.google.cloud.speech.v2.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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  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 {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1483,4 +1314,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.speech.v2.StreamingRecognitionConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java
similarity index 83%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java
index 8bdb2d81b5fe..0db3e5ea8b02 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
-public interface StreamingRecognitionConfigOrBuilder
-    extends
+public interface StreamingRecognitionConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognitionConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -35,16 +17,11 @@ public interface StreamingRecognitionConfigOrBuilder
    * of the Recognizer resource.
    * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -54,16 +31,11 @@ public interface StreamingRecognitionConfigOrBuilder
    * of the Recognizer resource.
    * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ com.google.cloud.speech.v2.RecognitionConfig getConfig(); /** - * - * *
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -73,15 +45,11 @@ public interface StreamingRecognitionConfigOrBuilder
    * of the Recognizer resource.
    * 
* - * - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(); /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -99,13 +67,10 @@ public interface StreamingRecognitionConfigOrBuilder
    * 
* * .google.protobuf.FieldMask config_mask = 3; - * * @return Whether the configMask field is set. */ boolean hasConfigMask(); /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -123,13 +88,10 @@ public interface StreamingRecognitionConfigOrBuilder
    * 
* * .google.protobuf.FieldMask config_mask = 3; - * * @return The configMask. */ com.google.protobuf.FieldMask getConfigMask(); /** - * - * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -151,34 +113,26 @@ public interface StreamingRecognitionConfigOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
    * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; - * * @return Whether the streamingFeatures field is set. */ boolean hasStreamingFeatures(); /** - * - * *
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
    * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; - * * @return The streamingFeatures. */ com.google.cloud.speech.v2.StreamingRecognitionFeatures getStreamingFeatures(); /** - * - * *
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java
similarity index 66%
rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java
rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java
index dd8338d0ef11..179ccc742060 100644
--- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java
+++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java
@@ -1,78 +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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
- *
- *
  * 
  * Available recognition features specific to streaming recognition requests.
  * 
* * Protobuf type {@code google.cloud.speech.v2.StreamingRecognitionFeatures} */ -public final class StreamingRecognitionFeatures extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StreamingRecognitionFeatures extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.StreamingRecognitionFeatures) StreamingRecognitionFeaturesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StreamingRecognitionFeatures.newBuilder() to construct. private StreamingRecognitionFeatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StreamingRecognitionFeatures() {} + private StreamingRecognitionFeatures() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StreamingRecognitionFeatures(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.class, - com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder.class); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.class, com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder.class); } - public interface VoiceActivityTimeoutOrBuilder - extends + public interface VoiceActivityTimeoutOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -80,13 +59,10 @@ public interface VoiceActivityTimeoutOrBuilder
      * 
* * .google.protobuf.Duration speech_start_timeout = 1; - * * @return Whether the speechStartTimeout field is set. */ boolean hasSpeechStartTimeout(); /** - * - * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -94,13 +70,10 @@ public interface VoiceActivityTimeoutOrBuilder
      * 
* * .google.protobuf.Duration speech_start_timeout = 1; - * * @return The speechStartTimeout. */ com.google.protobuf.Duration getSpeechStartTimeout(); /** - * - * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -112,8 +85,6 @@ public interface VoiceActivityTimeoutOrBuilder
     com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder();
 
     /**
-     *
-     *
      * 
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -121,13 +92,10 @@ public interface VoiceActivityTimeoutOrBuilder
      * 
* * .google.protobuf.Duration speech_end_timeout = 2; - * * @return Whether the speechEndTimeout field is set. */ boolean hasSpeechEndTimeout(); /** - * - * *
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -135,13 +103,10 @@ public interface VoiceActivityTimeoutOrBuilder
      * 
* * .google.protobuf.Duration speech_end_timeout = 2; - * * @return The speechEndTimeout. */ com.google.protobuf.Duration getSpeechEndTimeout(); /** - * - * *
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -153,58 +118,52 @@ public interface VoiceActivityTimeoutOrBuilder
     com.google.protobuf.DurationOrBuilder getSpeechEndTimeoutOrBuilder();
   }
   /**
-   *
-   *
    * 
    * Events that a timeout can be set on for voice activity.
    * 
* * Protobuf type {@code google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout} */ - public static final class VoiceActivityTimeout extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class VoiceActivityTimeout extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) VoiceActivityTimeoutOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VoiceActivityTimeout.newBuilder() to construct. private VoiceActivityTimeout(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private VoiceActivityTimeout() {} + private VoiceActivityTimeout() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VoiceActivityTimeout(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.class, - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder - .class); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.class, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder.class); } public static final int SPEECH_START_TIMEOUT_FIELD_NUMBER = 1; private com.google.protobuf.Duration speechStartTimeout_; /** - * - * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -212,7 +171,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * .google.protobuf.Duration speech_start_timeout = 1; - * * @return Whether the speechStartTimeout field is set. */ @java.lang.Override @@ -220,8 +178,6 @@ public boolean hasSpeechStartTimeout() { return speechStartTimeout_ != null; } /** - * - * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -229,18 +185,13 @@ public boolean hasSpeechStartTimeout() {
      * 
* * .google.protobuf.Duration speech_start_timeout = 1; - * * @return The speechStartTimeout. */ @java.lang.Override public com.google.protobuf.Duration getSpeechStartTimeout() { - return speechStartTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : speechStartTimeout_; + return speechStartTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechStartTimeout_; } /** - * - * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -251,16 +202,12 @@ public com.google.protobuf.Duration getSpeechStartTimeout() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
-      return speechStartTimeout_ == null
-          ? com.google.protobuf.Duration.getDefaultInstance()
-          : speechStartTimeout_;
+      return speechStartTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechStartTimeout_;
     }
 
     public static final int SPEECH_END_TIMEOUT_FIELD_NUMBER = 2;
     private com.google.protobuf.Duration speechEndTimeout_;
     /**
-     *
-     *
      * 
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -268,7 +215,6 @@ public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
      * 
* * .google.protobuf.Duration speech_end_timeout = 2; - * * @return Whether the speechEndTimeout field is set. */ @java.lang.Override @@ -276,8 +222,6 @@ public boolean hasSpeechEndTimeout() { return speechEndTimeout_ != null; } /** - * - * *
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -285,18 +229,13 @@ public boolean hasSpeechEndTimeout() {
      * 
* * .google.protobuf.Duration speech_end_timeout = 2; - * * @return The speechEndTimeout. */ @java.lang.Override public com.google.protobuf.Duration getSpeechEndTimeout() { - return speechEndTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : speechEndTimeout_; + return speechEndTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEndTimeout_; } /** - * - * *
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -307,13 +246,10 @@ public com.google.protobuf.Duration getSpeechEndTimeout() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getSpeechEndTimeoutOrBuilder() {
-      return speechEndTimeout_ == null
-          ? com.google.protobuf.Duration.getDefaultInstance()
-          : speechEndTimeout_;
+      return speechEndTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEndTimeout_;
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -325,7 +261,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 (speechStartTimeout_ != null) {
         output.writeMessage(1, getSpeechStartTimeout());
       }
@@ -342,11 +279,12 @@ public int getSerializedSize() {
 
       size = 0;
       if (speechStartTimeout_ != null) {
-        size +=
-            com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSpeechStartTimeout());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, getSpeechStartTimeout());
       }
       if (speechEndTimeout_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpeechEndTimeout());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, getSpeechEndTimeout());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -356,23 +294,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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout)) {
+      if (!(obj instanceof com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout)) {
         return super.equals(obj);
       }
-      com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout other =
-          (com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) obj;
+      com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout other = (com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) obj;
 
       if (hasSpeechStartTimeout() != other.hasSpeechStartTimeout()) return false;
       if (hasSpeechStartTimeout()) {
-        if (!getSpeechStartTimeout().equals(other.getSpeechStartTimeout())) return false;
+        if (!getSpeechStartTimeout()
+            .equals(other.getSpeechStartTimeout())) return false;
       }
       if (hasSpeechEndTimeout() != other.hasSpeechEndTimeout()) return false;
       if (hasSpeechEndTimeout()) {
-        if (!getSpeechEndTimeout().equals(other.getSpeechEndTimeout())) return false;
+        if (!getSpeechEndTimeout()
+            .equals(other.getSpeechEndTimeout())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -398,101 +335,88 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseFrom(java.nio.ByteBuffer data)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseFrom(
-            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
+        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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseFrom(com.google.protobuf.ByteString data)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
+        com.google.protobuf.ByteString data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseFrom(
-            com.google.protobuf.ByteString data,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout 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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseFrom(
-            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
-
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout 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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        parseFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout prototype) {
+    public static Builder newBuilder(com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout 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
@@ -502,44 +426,39 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * Events that a timeout can be set on for voice activity.
      * 
* - * Protobuf type {@code - * google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout} + * Protobuf type {@code google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout} */ - 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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.class, - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder - .class); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.class, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder.class); } - // Construct using - // com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.newBuilder() - private Builder() {} + // Construct using com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -558,22 +477,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; } @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - getDefaultInstanceForType() { - return com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - .getDefaultInstance(); + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getDefaultInstanceForType() { + return com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance(); } @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout build() { - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result = - buildPartial(); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -581,31 +497,24 @@ public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTime } @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - buildPartial() { - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result = - new com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout buildPartial() { + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result = new com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result) { + private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.speechStartTimeout_ = - speechStartTimeoutBuilder_ == null - ? speechStartTimeout_ - : speechStartTimeoutBuilder_.build(); + result.speechStartTimeout_ = speechStartTimeoutBuilder_ == null + ? speechStartTimeout_ + : speechStartTimeoutBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.speechEndTimeout_ = - speechEndTimeoutBuilder_ == null - ? speechEndTimeout_ - : speechEndTimeoutBuilder_.build(); + result.speechEndTimeout_ = speechEndTimeoutBuilder_ == null + ? speechEndTimeout_ + : speechEndTimeoutBuilder_.build(); } } @@ -613,55 +522,46 @@ private void buildPartial0( 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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) { - return mergeFrom( - (com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) other); + if (other instanceof com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) { + return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout other) { - if (other - == com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout other) { + if (other == com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance()) return this; if (other.hasSpeechStartTimeout()) { mergeSpeechStartTimeout(other.getSpeechStartTimeout()); } @@ -694,27 +594,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getSpeechStartTimeoutFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getSpeechEndTimeoutFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getSpeechStartTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSpeechEndTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -724,18 +623,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Duration speechStartTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - speechStartTimeoutBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> speechStartTimeoutBuilder_; /** - * - * *
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -743,15 +636,12 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Duration speech_start_timeout = 1; - * * @return Whether the speechStartTimeout field is set. */ public boolean hasSpeechStartTimeout() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -759,21 +649,16 @@ public boolean hasSpeechStartTimeout() {
        * 
* * .google.protobuf.Duration speech_start_timeout = 1; - * * @return The speechStartTimeout. */ public com.google.protobuf.Duration getSpeechStartTimeout() { if (speechStartTimeoutBuilder_ == null) { - return speechStartTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : speechStartTimeout_; + return speechStartTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechStartTimeout_; } else { return speechStartTimeoutBuilder_.getMessage(); } } /** - * - * *
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -796,8 +681,6 @@ public Builder setSpeechStartTimeout(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -806,7 +689,8 @@ public Builder setSpeechStartTimeout(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration speech_start_timeout = 1;
        */
-      public Builder setSpeechStartTimeout(com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setSpeechStartTimeout(
+          com.google.protobuf.Duration.Builder builderForValue) {
         if (speechStartTimeoutBuilder_ == null) {
           speechStartTimeout_ = builderForValue.build();
         } else {
@@ -817,8 +701,6 @@ public Builder setSpeechStartTimeout(com.google.protobuf.Duration.Builder builde
         return this;
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -829,9 +711,9 @@ public Builder setSpeechStartTimeout(com.google.protobuf.Duration.Builder builde
        */
       public Builder mergeSpeechStartTimeout(com.google.protobuf.Duration value) {
         if (speechStartTimeoutBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0)
-              && speechStartTimeout_ != null
-              && speechStartTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0) &&
+            speechStartTimeout_ != null &&
+            speechStartTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getSpeechStartTimeoutBuilder().mergeFrom(value);
           } else {
             speechStartTimeout_ = value;
@@ -844,8 +726,6 @@ public Builder mergeSpeechStartTimeout(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -865,8 +745,6 @@ public Builder clearSpeechStartTimeout() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -881,8 +759,6 @@ public com.google.protobuf.Duration.Builder getSpeechStartTimeoutBuilder() {
         return getSpeechStartTimeoutFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -895,14 +771,11 @@ public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
         if (speechStartTimeoutBuilder_ != null) {
           return speechStartTimeoutBuilder_.getMessageOrBuilder();
         } else {
-          return speechStartTimeout_ == null
-              ? com.google.protobuf.Duration.getDefaultInstance()
-              : speechStartTimeout_;
+          return speechStartTimeout_ == null ?
+              com.google.protobuf.Duration.getDefaultInstance() : speechStartTimeout_;
         }
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -912,17 +785,14 @@ public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
        * .google.protobuf.Duration speech_start_timeout = 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> 
           getSpeechStartTimeoutFieldBuilder() {
         if (speechStartTimeoutBuilder_ == null) {
-          speechStartTimeoutBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Duration,
-                  com.google.protobuf.Duration.Builder,
-                  com.google.protobuf.DurationOrBuilder>(
-                  getSpeechStartTimeout(), getParentForChildren(), isClean());
+          speechStartTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                  getSpeechStartTimeout(),
+                  getParentForChildren(),
+                  isClean());
           speechStartTimeout_ = null;
         }
         return speechStartTimeoutBuilder_;
@@ -930,13 +800,8 @@ public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
 
       private com.google.protobuf.Duration speechEndTimeout_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration,
-              com.google.protobuf.Duration.Builder,
-              com.google.protobuf.DurationOrBuilder>
-          speechEndTimeoutBuilder_;
+          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> speechEndTimeoutBuilder_;
       /**
-       *
-       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -944,15 +809,12 @@ public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
        * 
* * .google.protobuf.Duration speech_end_timeout = 2; - * * @return Whether the speechEndTimeout field is set. */ public boolean hasSpeechEndTimeout() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -960,21 +822,16 @@ public boolean hasSpeechEndTimeout() {
        * 
* * .google.protobuf.Duration speech_end_timeout = 2; - * * @return The speechEndTimeout. */ public com.google.protobuf.Duration getSpeechEndTimeout() { if (speechEndTimeoutBuilder_ == null) { - return speechEndTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : speechEndTimeout_; + return speechEndTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEndTimeout_; } else { return speechEndTimeoutBuilder_.getMessage(); } } /** - * - * *
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -997,8 +854,6 @@ public Builder setSpeechEndTimeout(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -1007,7 +862,8 @@ public Builder setSpeechEndTimeout(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration speech_end_timeout = 2;
        */
-      public Builder setSpeechEndTimeout(com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setSpeechEndTimeout(
+          com.google.protobuf.Duration.Builder builderForValue) {
         if (speechEndTimeoutBuilder_ == null) {
           speechEndTimeout_ = builderForValue.build();
         } else {
@@ -1018,8 +874,6 @@ public Builder setSpeechEndTimeout(com.google.protobuf.Duration.Builder builderF
         return this;
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -1030,9 +884,9 @@ public Builder setSpeechEndTimeout(com.google.protobuf.Duration.Builder builderF
        */
       public Builder mergeSpeechEndTimeout(com.google.protobuf.Duration value) {
         if (speechEndTimeoutBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0)
-              && speechEndTimeout_ != null
-              && speechEndTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0) &&
+            speechEndTimeout_ != null &&
+            speechEndTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getSpeechEndTimeoutBuilder().mergeFrom(value);
           } else {
             speechEndTimeout_ = value;
@@ -1045,8 +899,6 @@ public Builder mergeSpeechEndTimeout(com.google.protobuf.Duration value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -1066,8 +918,6 @@ public Builder clearSpeechEndTimeout() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -1082,8 +932,6 @@ public com.google.protobuf.Duration.Builder getSpeechEndTimeoutBuilder() {
         return getSpeechEndTimeoutFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -1096,14 +944,11 @@ public com.google.protobuf.DurationOrBuilder getSpeechEndTimeoutOrBuilder() {
         if (speechEndTimeoutBuilder_ != null) {
           return speechEndTimeoutBuilder_.getMessageOrBuilder();
         } else {
-          return speechEndTimeout_ == null
-              ? com.google.protobuf.Duration.getDefaultInstance()
-              : speechEndTimeout_;
+          return speechEndTimeout_ == null ?
+              com.google.protobuf.Duration.getDefaultInstance() : speechEndTimeout_;
         }
       }
       /**
-       *
-       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -1113,22 +958,18 @@ public com.google.protobuf.DurationOrBuilder getSpeechEndTimeoutOrBuilder() {
        * .google.protobuf.Duration speech_end_timeout = 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> 
           getSpeechEndTimeoutFieldBuilder() {
         if (speechEndTimeoutBuilder_ == null) {
-          speechEndTimeoutBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Duration,
-                  com.google.protobuf.Duration.Builder,
-                  com.google.protobuf.DurationOrBuilder>(
-                  getSpeechEndTimeout(), getParentForChildren(), isClean());
+          speechEndTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                  getSpeechEndTimeout(),
+                  getParentForChildren(),
+                  isClean());
           speechEndTimeout_ = null;
         }
         return speechEndTimeoutBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -1141,46 +982,41 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout)
-    private static final com.google.cloud.speech.v2.StreamingRecognitionFeatures
-            .VoiceActivityTimeout
-        DEFAULT_INSTANCE;
-
+    private static final com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE =
-          new com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout();
+      DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout();
     }
 
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        getDefaultInstance() {
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public VoiceActivityTimeout parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            Builder builder = newBuilder();
-            try {
-              builder.mergeFrom(input, extensionRegistry);
-            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-              throw e.setUnfinishedMessage(builder.buildPartial());
-            } catch (com.google.protobuf.UninitializedMessageException e) {
-              throw e.asInvalidProtocolBufferException()
-                  .setUnfinishedMessage(builder.buildPartial());
-            } catch (java.io.IOException e) {
-              throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                  .setUnfinishedMessage(builder.buildPartial());
-            }
-            return builder.buildPartial();
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public VoiceActivityTimeout parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        Builder builder = newBuilder();
+        try {
+          builder.mergeFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.setUnfinishedMessage(builder.buildPartial());
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+        } catch (java.io.IOException e) {
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(builder.buildPartial());
+        }
+        return builder.buildPartial();
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -1192,24 +1028,21 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
-        getDefaultInstanceForType() {
+    public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
   public static final int ENABLE_VOICE_ACTIVITY_EVENTS_FIELD_NUMBER = 1;
   private boolean enableVoiceActivityEvents_ = false;
   /**
-   *
-   *
    * 
    * If `true`, responses with voice activity speech events will be returned as
    * they are detected.
    * 
* * bool enable_voice_activity_events = 1; - * * @return The enableVoiceActivityEvents. */ @java.lang.Override @@ -1220,8 +1053,6 @@ public boolean getEnableVoiceActivityEvents() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 2; private boolean interimResults_ = false; /** - * - * *
    * Whether or not to stream interim results to the client. If set to true,
    * interim results will be streamed to the client. Otherwise, only the final
@@ -1229,7 +1060,6 @@ public boolean getEnableVoiceActivityEvents() {
    * 
* * bool interim_results = 2; - * * @return The interimResults. */ @java.lang.Override @@ -1238,21 +1068,15 @@ public boolean getInterimResults() { } public static final int VOICE_ACTIVITY_TIMEOUT_FIELD_NUMBER = 3; - private com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - voiceActivityTimeout_; + private com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voiceActivityTimeout_; /** - * - * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; * @return Whether the voiceActivityTimeout field is set. */ @java.lang.Override @@ -1260,52 +1084,34 @@ public boolean hasVoiceActivityTimeout() { return voiceActivityTimeout_ != null; } /** - * - * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; * @return The voiceActivityTimeout. */ @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - getVoiceActivityTimeout() { - return voiceActivityTimeout_ == null - ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - .getDefaultInstance() - : voiceActivityTimeout_; + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getVoiceActivityTimeout() { + return voiceActivityTimeout_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance() : voiceActivityTimeout_; } /** - * - * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; */ @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder - getVoiceActivityTimeoutOrBuilder() { - return voiceActivityTimeout_ == null - ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - .getDefaultInstance() - : voiceActivityTimeout_; + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder getVoiceActivityTimeoutOrBuilder() { + return voiceActivityTimeout_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance() : voiceActivityTimeout_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1317,7 +1123,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 (enableVoiceActivityEvents_ != false) { output.writeBool(1, enableVoiceActivityEvents_); } @@ -1337,14 +1144,16 @@ public int getSerializedSize() { size = 0; if (enableVoiceActivityEvents_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableVoiceActivityEvents_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableVoiceActivityEvents_); } if (interimResults_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, interimResults_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, interimResults_); } if (voiceActivityTimeout_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getVoiceActivityTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getVoiceActivityTimeout()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1354,19 +1163,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.v2.StreamingRecognitionFeatures)) { return super.equals(obj); } - com.google.cloud.speech.v2.StreamingRecognitionFeatures other = - (com.google.cloud.speech.v2.StreamingRecognitionFeatures) obj; + com.google.cloud.speech.v2.StreamingRecognitionFeatures other = (com.google.cloud.speech.v2.StreamingRecognitionFeatures) obj; - if (getEnableVoiceActivityEvents() != other.getEnableVoiceActivityEvents()) return false; - if (getInterimResults() != other.getInterimResults()) return false; + if (getEnableVoiceActivityEvents() + != other.getEnableVoiceActivityEvents()) return false; + if (getInterimResults() + != other.getInterimResults()) return false; if (hasVoiceActivityTimeout() != other.hasVoiceActivityTimeout()) return false; if (hasVoiceActivityTimeout()) { - if (!getVoiceActivityTimeout().equals(other.getVoiceActivityTimeout())) return false; + if (!getVoiceActivityTimeout() + .equals(other.getVoiceActivityTimeout())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1380,9 +1191,11 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_VOICE_ACTIVITY_EVENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVoiceActivityEvents()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableVoiceActivityEvents()); 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()); if (hasVoiceActivityTimeout()) { hash = (37 * hash) + VOICE_ACTIVITY_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getVoiceActivityTimeout().hashCode(); @@ -1393,136 +1206,129 @@ public int hashCode() { } public static com.google.cloud.speech.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.StreamingRecognitionFeatures parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.StreamingRecognitionFeatures parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures prototype) { + public static Builder newBuilder(com.google.cloud.speech.v2.StreamingRecognitionFeatures 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; } /** - * - * *
    * Available recognition features specific to streaming recognition requests.
    * 
* * Protobuf type {@code google.cloud.speech.v2.StreamingRecognitionFeatures} */ - 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.v2.StreamingRecognitionFeatures) com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.class, - com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder.class); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.class, com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder.class); } // Construct using com.google.cloud.speech.v2.StreamingRecognitionFeatures.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1538,9 +1344,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; } @java.lang.Override @@ -1559,11 +1365,8 @@ public com.google.cloud.speech.v2.StreamingRecognitionFeatures build() { @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognitionFeatures buildPartial() { - com.google.cloud.speech.v2.StreamingRecognitionFeatures result = - new com.google.cloud.speech.v2.StreamingRecognitionFeatures(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.speech.v2.StreamingRecognitionFeatures result = new com.google.cloud.speech.v2.StreamingRecognitionFeatures(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1577,10 +1380,9 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionFeatur result.interimResults_ = interimResults_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.voiceActivityTimeout_ = - voiceActivityTimeoutBuilder_ == null - ? voiceActivityTimeout_ - : voiceActivityTimeoutBuilder_.build(); + result.voiceActivityTimeout_ = voiceActivityTimeoutBuilder_ == null + ? voiceActivityTimeout_ + : voiceActivityTimeoutBuilder_.build(); } } @@ -1588,39 +1390,38 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionFeatur 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.v2.StreamingRecognitionFeatures) { - return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionFeatures) other); + return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionFeatures)other); } else { super.mergeFrom(other); return this; @@ -1628,8 +1429,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognitionFeatures other) { - if (other == com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()) return this; if (other.getEnableVoiceActivityEvents() != false) { setEnableVoiceActivityEvents(other.getEnableVoiceActivityEvents()); } @@ -1665,32 +1465,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enableVoiceActivityEvents_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - interimResults_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage( - getVoiceActivityTimeoutFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enableVoiceActivityEvents_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + interimResults_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getVoiceActivityTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1700,20 +1497,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean enableVoiceActivityEvents_; + private boolean enableVoiceActivityEvents_ ; /** - * - * *
      * If `true`, responses with voice activity speech events will be returned as
      * they are detected.
      * 
* * bool enable_voice_activity_events = 1; - * * @return The enableVoiceActivityEvents. */ @java.lang.Override @@ -1721,35 +1514,29 @@ public boolean getEnableVoiceActivityEvents() { return enableVoiceActivityEvents_; } /** - * - * *
      * If `true`, responses with voice activity speech events will be returned as
      * they are detected.
      * 
* * bool enable_voice_activity_events = 1; - * * @param value The enableVoiceActivityEvents to set. * @return This builder for chaining. */ public Builder setEnableVoiceActivityEvents(boolean value) { - + enableVoiceActivityEvents_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * If `true`, responses with voice activity speech events will be returned as
      * they are detected.
      * 
* * bool enable_voice_activity_events = 1; - * * @return This builder for chaining. */ public Builder clearEnableVoiceActivityEvents() { @@ -1759,10 +1546,8 @@ public Builder clearEnableVoiceActivityEvents() { return this; } - private boolean interimResults_; + private boolean interimResults_ ; /** - * - * *
      * Whether or not to stream interim results to the client. If set to true,
      * interim results will be streamed to the client. Otherwise, only the final
@@ -1770,7 +1555,6 @@ public Builder clearEnableVoiceActivityEvents() {
      * 
* * bool interim_results = 2; - * * @return The interimResults. */ @java.lang.Override @@ -1778,8 +1562,6 @@ public boolean getInterimResults() { return interimResults_; } /** - * - * *
      * Whether or not to stream interim results to the client. If set to true,
      * interim results will be streamed to the client. Otherwise, only the final
@@ -1787,20 +1569,17 @@ public boolean getInterimResults() {
      * 
* * bool interim_results = 2; - * * @param value The interimResults to set. * @return This builder for chaining. */ public Builder setInterimResults(boolean value) { - + interimResults_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Whether or not to stream interim results to the client. If set to true,
      * interim results will be streamed to the client. Otherwise, only the final
@@ -1808,7 +1587,6 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 2; - * * @return This builder for chaining. */ public Builder clearInterimResults() { @@ -1818,72 +1596,49 @@ public Builder clearInterimResults() { return this; } - private com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - voiceActivityTimeout_; + private com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voiceActivityTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder, - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder> - voiceActivityTimeoutBuilder_; + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder> voiceActivityTimeoutBuilder_; /** - * - * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; * @return Whether the voiceActivityTimeout field is set. */ public boolean hasVoiceActivityTimeout() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; * @return The voiceActivityTimeout. */ - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - getVoiceActivityTimeout() { + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getVoiceActivityTimeout() { if (voiceActivityTimeoutBuilder_ == null) { - return voiceActivityTimeout_ == null - ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - .getDefaultInstance() - : voiceActivityTimeout_; + return voiceActivityTimeout_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance() : voiceActivityTimeout_; } else { return voiceActivityTimeoutBuilder_.getMessage(); } } /** - * - * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; */ - public Builder setVoiceActivityTimeout( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout value) { + public Builder setVoiceActivityTimeout(com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout value) { if (voiceActivityTimeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1897,21 +1652,16 @@ public Builder setVoiceActivityTimeout( return this; } /** - * - * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; */ public Builder setVoiceActivityTimeout( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder - builderForValue) { + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder builderForValue) { if (voiceActivityTimeoutBuilder_ == null) { voiceActivityTimeout_ = builderForValue.build(); } else { @@ -1922,26 +1672,19 @@ public Builder setVoiceActivityTimeout( return this; } /** - * - * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; */ - public Builder mergeVoiceActivityTimeout( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout value) { + public Builder mergeVoiceActivityTimeout(com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout value) { if (voiceActivityTimeoutBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && voiceActivityTimeout_ != null - && voiceActivityTimeout_ - != com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - .getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + voiceActivityTimeout_ != null && + voiceActivityTimeout_ != com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance()) { getVoiceActivityTimeoutBuilder().mergeFrom(value); } else { voiceActivityTimeout_ = value; @@ -1954,17 +1697,13 @@ public Builder mergeVoiceActivityTimeout( return this; } /** - * - * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; */ public Builder clearVoiceActivityTimeout() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1977,82 +1716,61 @@ public Builder clearVoiceActivityTimeout() { return this; } /** - * - * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; */ - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder - getVoiceActivityTimeoutBuilder() { + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder getVoiceActivityTimeoutBuilder() { bitField0_ |= 0x00000004; onChanged(); return getVoiceActivityTimeoutFieldBuilder().getBuilder(); } /** - * - * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; */ - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder - getVoiceActivityTimeoutOrBuilder() { + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder getVoiceActivityTimeoutOrBuilder() { if (voiceActivityTimeoutBuilder_ != null) { return voiceActivityTimeoutBuilder_.getMessageOrBuilder(); } else { - return voiceActivityTimeout_ == null - ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - .getDefaultInstance() - : voiceActivityTimeout_; + return voiceActivityTimeout_ == null ? + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance() : voiceActivityTimeout_; } } /** - * - * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder, - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder> + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder> getVoiceActivityTimeoutFieldBuilder() { if (voiceActivityTimeoutBuilder_ == null) { - voiceActivityTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - .Builder, - com.google.cloud.speech.v2.StreamingRecognitionFeatures - .VoiceActivityTimeoutOrBuilder>( - getVoiceActivityTimeout(), getParentForChildren(), isClean()); + voiceActivityTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder>( + getVoiceActivityTimeout(), + getParentForChildren(), + isClean()); voiceActivityTimeout_ = null; } return voiceActivityTimeoutBuilder_; } - @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); } @@ -2062,12 +1780,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognitionFeatures) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognitionFeatures) private static final com.google.cloud.speech.v2.StreamingRecognitionFeatures DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognitionFeatures(); } @@ -2076,27 +1794,27 @@ public static com.google.cloud.speech.v2.StreamingRecognitionFeatures getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionFeatures parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionFeatures parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2111,4 +1829,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.speech.v2.StreamingRecognitionFeatures getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java similarity index 61% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java index 9774eb7bf4b7..661cdb647156 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java @@ -1,45 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface StreamingRecognitionFeaturesOrBuilder - extends +public interface StreamingRecognitionFeaturesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognitionFeatures) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * If `true`, responses with voice activity speech events will be returned as
    * they are detected.
    * 
* * bool enable_voice_activity_events = 1; - * * @return The enableVoiceActivityEvents. */ boolean getEnableVoiceActivityEvents(); /** - * - * *
    * Whether or not to stream interim results to the client. If set to true,
    * interim results will be streamed to the client. Otherwise, only the final
@@ -47,57 +26,40 @@ public interface StreamingRecognitionFeaturesOrBuilder
    * 
* * bool interim_results = 2; - * * @return The interimResults. */ boolean getInterimResults(); /** - * - * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; * @return Whether the voiceActivityTimeout field is set. */ boolean hasVoiceActivityTimeout(); /** - * - * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; * @return The voiceActivityTimeout. */ - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout - getVoiceActivityTimeout(); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getVoiceActivityTimeout(); /** - * - * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; - * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; */ - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder - getVoiceActivityTimeoutOrBuilder(); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder getVoiceActivityTimeoutOrBuilder(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java similarity index 76% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java index 16ff53852eb0..6c95858ea1e5 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * 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.v2.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.v2.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,37 +27,33 @@ 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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.StreamingRecognitionResult.class,
-            com.google.cloud.speech.v2.StreamingRecognitionResult.Builder.class);
+            com.google.cloud.speech.v2.StreamingRecognitionResult.class, com.google.cloud.speech.v2.StreamingRecognitionResult.Builder.class);
   }
 
   public static final int ALTERNATIVES_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List alternatives_;
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -85,13 +63,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.speech.v2.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. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -101,13 +76,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getAlternativesOrBuilderList() {
     return alternatives_;
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -121,8 +94,6 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -136,8 +107,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(i
     return alternatives_.get(index);
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -155,8 +124,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int IS_FINAL_FIELD_NUMBER = 2;
   private boolean isFinal_ = false;
   /**
-   *
-   *
    * 
    * If `false`, this
    * [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
@@ -168,7 +135,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * bool is_final = 2; - * * @return The isFinal. */ @java.lang.Override @@ -179,8 +145,6 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_ = 0F; /** - * - * *
    * An estimate of the likelihood that the recognizer will not change its guess
    * about this interim result. Values range from 0.0 (completely unstable)
@@ -190,7 +154,6 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; - * * @return The stability. */ @java.lang.Override @@ -201,15 +164,12 @@ public float getStability() { public static final int RESULT_END_OFFSET_FIELD_NUMBER = 4; private com.google.protobuf.Duration resultEndOffset_; /** - * - * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; - * * @return Whether the resultEndOffset field is set. */ @java.lang.Override @@ -217,26 +177,19 @@ public boolean hasResultEndOffset() { return resultEndOffset_ != null; } /** - * - * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; - * * @return The resultEndOffset. */ @java.lang.Override public com.google.protobuf.Duration getResultEndOffset() { - return resultEndOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : resultEndOffset_; + return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_; } /** - * - * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
@@ -246,16 +199,12 @@ public com.google.protobuf.Duration getResultEndOffset() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
-    return resultEndOffset_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : resultEndOffset_;
+    return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_;
   }
 
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_ = 0;
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -264,7 +213,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
    * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ @java.lang.Override @@ -273,12 +221,9 @@ public int getChannelTag() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; - @SuppressWarnings("serial") 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
@@ -286,7 +231,6 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ @java.lang.Override @@ -295,15 +239,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
@@ -311,15 +254,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 { @@ -328,7 +272,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -340,7 +283,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)); } @@ -369,19 +313,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 (resultEndOffset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResultEndOffset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getResultEndOffset()); } 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_); @@ -394,24 +343,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.v2.StreamingRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v2.StreamingRecognitionResult other = - (com.google.cloud.speech.v2.StreamingRecognitionResult) obj; + com.google.cloud.speech.v2.StreamingRecognitionResult other = (com.google.cloud.speech.v2.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 (hasResultEndOffset() != other.hasResultEndOffset()) return false; if (hasResultEndOffset()) { - if (!getResultEndOffset().equals(other.getResultEndOffset())) return false; + if (!getResultEndOffset() + .equals(other.getResultEndOffset())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -428,9 +382,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 (hasResultEndOffset()) { hash = (37 * hash) + RESULT_END_OFFSET_FIELD_NUMBER; hash = (53 * hash) + getResultEndOffset().hashCode(); @@ -445,104 +401,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.StreamingRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.StreamingRecognitionResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.StreamingRecognitionResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.StreamingRecognitionResult prototype) { + public static Builder newBuilder(com.google.cloud.speech.v2.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.
@@ -550,32 +498,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.StreamingRecognitionResult)
       com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.StreamingRecognitionResult.class,
-              com.google.cloud.speech.v2.StreamingRecognitionResult.Builder.class);
+              com.google.cloud.speech.v2.StreamingRecognitionResult.class, com.google.cloud.speech.v2.StreamingRecognitionResult.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.StreamingRecognitionResult.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -600,9 +549,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
@@ -621,18 +570,14 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.StreamingRecognitionResult buildPartial() {
-      com.google.cloud.speech.v2.StreamingRecognitionResult result =
-          new com.google.cloud.speech.v2.StreamingRecognitionResult(this);
+      com.google.cloud.speech.v2.StreamingRecognitionResult result = new com.google.cloud.speech.v2.StreamingRecognitionResult(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v2.StreamingRecognitionResult result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.StreamingRecognitionResult result) {
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -653,8 +598,9 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionResult
         result.stability_ = stability_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.resultEndOffset_ =
-            resultEndOffsetBuilder_ == null ? resultEndOffset_ : resultEndOffsetBuilder_.build();
+        result.resultEndOffset_ = resultEndOffsetBuilder_ == null
+            ? resultEndOffset_
+            : resultEndOffsetBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.channelTag_ = channelTag_;
@@ -668,39 +614,38 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionResult
     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.v2.StreamingRecognitionResult) {
-        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionResult) other);
+        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionResult)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -708,8 +653,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognitionResult other) {
-      if (other == com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance()) return this;
       if (alternativesBuilder_ == null) {
         if (!other.alternatives_.isEmpty()) {
           if (alternatives_.isEmpty()) {
@@ -728,10 +672,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_);
           }
@@ -780,57 +723,52 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.speech.v2.SpeechRecognitionAlternative m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.SpeechRecognitionAlternative.parser(),
-                        extensionRegistry);
-                if (alternativesBuilder_ == null) {
-                  ensureAlternativesIsMutable();
-                  alternatives_.add(m);
-                } else {
-                  alternativesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 16:
-              {
-                isFinal_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 29:
-              {
-                stability_ = input.readFloat();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 29
-            case 34:
-              {
-                input.readMessage(getResultEndOffsetFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 40:
-              {
-                channelTag_ = input.readInt32();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-            case 50:
-              {
-                languageCode_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.speech.v2.SpeechRecognitionAlternative m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.SpeechRecognitionAlternative.parser(),
+                      extensionRegistry);
+              if (alternativesBuilder_ == null) {
+                ensureAlternativesIsMutable();
+                alternatives_.add(m);
+              } else {
+                alternativesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 16: {
+              isFinal_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 29: {
+              stability_ = input.readFloat();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 29
+            case 34: {
+              input.readMessage(
+                  getResultEndOffsetFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 40: {
+              channelTag_ = input.readInt32();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            case 50: {
+              languageCode_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -840,30 +778,21 @@ public Builder mergeFrom(
       } // finally
       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.v2.SpeechRecognitionAlternative,
-            com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder,
-            com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>
-        alternativesBuilder_;
+        com.google.cloud.speech.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_;
 
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -872,8 +801,7 @@ private void ensureAlternativesIsMutable() {
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List
-        getAlternativesList() {
+    public java.util.List getAlternativesList() {
       if (alternativesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(alternatives_);
       } else {
@@ -881,8 +809,6 @@ private void ensureAlternativesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -899,8 +825,6 @@ public int getAlternativesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -917,8 +841,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(i
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -942,8 +864,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -953,8 +873,7 @@ public Builder setAlternatives(
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder setAlternatives(
-        int index,
-        com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.set(index, builderForValue.build());
@@ -965,8 +884,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -989,8 +906,6 @@ public Builder addAlternatives(com.google.cloud.speech.v2.SpeechRecognitionAlter
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1014,8 +929,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1036,8 +949,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1047,8 +958,7 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder addAlternatives(
-        int index,
-        com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.add(index, builderForValue.build());
@@ -1059,8 +969,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1070,11 +978,11 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v2.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);
@@ -1082,8 +990,6 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1103,8 +1009,6 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1124,8 +1028,6 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1139,8 +1041,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
       return getAlternativesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1149,17 +1049,14 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder
-        getAlternativesOrBuilder(int index) {
+    public com.google.cloud.speech.v2.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. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1168,9 +1065,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List<
-            ? extends com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>
-        getAlternativesOrBuilderList() {
+    public java.util.List 
+         getAlternativesOrBuilderList() {
       if (alternativesBuilder_ != null) {
         return alternativesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1178,8 +1074,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1188,14 +1082,11 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder
-        addAlternativesBuilder() {
-      return getAlternativesFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
+    public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAlternativesBuilder() {
+      return getAlternativesFieldBuilder().addBuilder(
+          com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1206,13 +1097,10 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
      */
     public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAlternativesBuilder(
         int index) {
-      return getAlternativesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
+      return getAlternativesFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1221,32 +1109,27 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAltern
      *
      * repeated .google.cloud.speech.v2.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.v2.SpeechRecognitionAlternative,
-            com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder,
-            com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>
+        com.google.cloud.speech.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder> 
         getAlternativesFieldBuilder() {
       if (alternativesBuilder_ == null) {
-        alternativesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v2.SpeechRecognitionAlternative,
-                com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder,
-                com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>(
-                alternatives_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        alternativesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>(
+                alternatives_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         alternatives_ = null;
       }
       return alternativesBuilder_;
     }
 
-    private boolean isFinal_;
+    private boolean isFinal_ ;
     /**
-     *
-     *
      * 
      * If `false`, this
      * [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
@@ -1258,7 +1141,6 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAltern
      * 
* * bool is_final = 2; - * * @return The isFinal. */ @java.lang.Override @@ -1266,8 +1148,6 @@ public boolean getIsFinal() { return isFinal_; } /** - * - * *
      * If `false`, this
      * [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
@@ -1279,20 +1159,17 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If `false`, this
      * [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
@@ -1304,7 +1181,6 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; - * * @return This builder for chaining. */ public Builder clearIsFinal() { @@ -1314,10 +1190,8 @@ public Builder clearIsFinal() { 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 (completely unstable)
@@ -1327,7 +1201,6 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; - * * @return The stability. */ @java.lang.Override @@ -1335,8 +1208,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 (completely unstable)
@@ -1346,20 +1217,17 @@ public float getStability() {
      * 
* * float stability = 3; - * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; bitField0_ |= 0x00000004; 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 (completely unstable)
@@ -1369,7 +1237,6 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; - * * @return This builder for chaining. */ public Builder clearStability() { @@ -1381,49 +1248,36 @@ public Builder clearStability() { private com.google.protobuf.Duration resultEndOffset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - resultEndOffsetBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndOffsetBuilder_; /** - * - * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
      * 
* * .google.protobuf.Duration result_end_offset = 4; - * * @return Whether the resultEndOffset field is set. */ public boolean hasResultEndOffset() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
      * 
* * .google.protobuf.Duration result_end_offset = 4; - * * @return The resultEndOffset. */ public com.google.protobuf.Duration getResultEndOffset() { if (resultEndOffsetBuilder_ == null) { - return resultEndOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : resultEndOffset_; + return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_; } else { return resultEndOffsetBuilder_.getMessage(); } } /** - * - * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1445,8 +1299,6 @@ public Builder setResultEndOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1454,7 +1306,8 @@ public Builder setResultEndOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_offset = 4;
      */
-    public Builder setResultEndOffset(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndOffset(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndOffsetBuilder_ == null) {
         resultEndOffset_ = builderForValue.build();
       } else {
@@ -1465,8 +1318,6 @@ public Builder setResultEndOffset(com.google.protobuf.Duration.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1476,9 +1327,9 @@ public Builder setResultEndOffset(com.google.protobuf.Duration.Builder builderFo
      */
     public Builder mergeResultEndOffset(com.google.protobuf.Duration value) {
       if (resultEndOffsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && resultEndOffset_ != null
-            && resultEndOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          resultEndOffset_ != null &&
+          resultEndOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndOffsetBuilder().mergeFrom(value);
         } else {
           resultEndOffset_ = value;
@@ -1491,8 +1342,6 @@ public Builder mergeResultEndOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1511,8 +1360,6 @@ public Builder clearResultEndOffset() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1526,8 +1373,6 @@ public com.google.protobuf.Duration.Builder getResultEndOffsetBuilder() {
       return getResultEndOffsetFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1539,14 +1384,11 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
       if (resultEndOffsetBuilder_ != null) {
         return resultEndOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return resultEndOffset_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : resultEndOffset_;
+        return resultEndOffset_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_;
       }
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1555,26 +1397,21 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
      * .google.protobuf.Duration result_end_offset = 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> 
         getResultEndOffsetFieldBuilder() {
       if (resultEndOffsetBuilder_ == null) {
-        resultEndOffsetBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getResultEndOffset(), getParentForChildren(), isClean());
+        resultEndOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getResultEndOffset(),
+                getParentForChildren(),
+                isClean());
         resultEndOffset_ = null;
       }
       return resultEndOffsetBuilder_;
     }
 
-    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.
@@ -1583,7 +1420,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
      * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ @java.lang.Override @@ -1591,8 +1427,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.
@@ -1601,20 +1435,17 @@ 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1623,7 +1454,6 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; - * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1635,8 +1465,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
@@ -1644,13 +1472,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; @@ -1659,8 +1487,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
@@ -1668,14 +1494,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 { @@ -1683,8 +1510,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
@@ -1692,22 +1517,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000020; 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
@@ -1715,7 +1536,6 @@ 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() { @@ -1725,8 +1545,6 @@ public Builder clearLanguageCode() { 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
@@ -1734,23 +1552,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000020; 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); } @@ -1760,12 +1576,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognitionResult) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognitionResult) private static final com.google.cloud.speech.v2.StreamingRecognitionResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognitionResult(); } @@ -1774,27 +1590,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1809,4 +1625,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java similarity index 85% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java index 35f98cc5a427..f50e53c3c1bf 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface StreamingRecognitionResultOrBuilder - extends +public interface StreamingRecognitionResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognitionResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -34,10 +16,9 @@ public interface StreamingRecognitionResultOrBuilder
    *
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List getAlternativesList();
+  java.util.List 
+      getAlternativesList();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -48,8 +29,6 @@ public interface StreamingRecognitionResultOrBuilder
    */
   com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(int index);
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -60,8 +39,6 @@ public interface StreamingRecognitionResultOrBuilder
    */
   int getAlternativesCount();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -70,11 +47,9 @@ public interface StreamingRecognitionResultOrBuilder
    *
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List
+  java.util.List 
       getAlternativesOrBuilderList();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -87,8 +62,6 @@ com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlternatives
       int index);
 
   /**
-   *
-   *
    * 
    * If `false`, this
    * [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
@@ -100,14 +73,11 @@ com.google.cloud.speech.v2.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 (completely unstable)
@@ -117,40 +87,31 @@ com.google.cloud.speech.v2.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_offset = 4; - * * @return Whether the resultEndOffset field is set. */ boolean hasResultEndOffset(); /** - * - * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; - * * @return The resultEndOffset. */ com.google.protobuf.Duration getResultEndOffset(); /** - * - * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
@@ -161,8 +122,6 @@ com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlternatives
   com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder();
 
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -171,14 +130,11 @@ com.google.cloud.speech.v2.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
@@ -186,13 +142,10 @@ com.google.cloud.speech.v2.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
@@ -200,8 +153,8 @@ com.google.cloud.speech.v2.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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java index 8048e10c7fee..23fc00c1963d 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [StreamingRecognize][google.cloud.speech.v2.Speech.StreamingRecognize]
@@ -41,58 +24,53 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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() {
     recognizer_ = "";
   }
 
   @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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.StreamingRecognizeRequest.class,
-            com.google.cloud.speech.v2.StreamingRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v2.StreamingRecognizeRequest.class, com.google.cloud.speech.v2.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(6),
     AUDIO(5),
     STREAMINGREQUEST_NOT_SET(0);
     private final int value;
-
     private StreamingRequestCase(int value) {
       this.value = value;
     }
@@ -108,33 +86,27 @@ public static StreamingRequestCase valueOf(int value) {
 
     public static StreamingRequestCase forNumber(int value) {
       switch (value) {
-        case 6:
-          return STREAMING_CONFIG;
-        case 5:
-          return AUDIO;
-        case 0:
-          return STREAMINGREQUEST_NOT_SET;
-        default:
-          return null;
+        case 6: return STREAMING_CONFIG;
+        case 5: return AUDIO;
+        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 RECOGNIZER_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object recognizer_ = "";
   /**
-   *
-   *
    * 
    * Required. Streaming recognition should start with an initial request having
    * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -143,10 +115,7 @@ public StreamingRequestCase getStreamingRequestCase() {
    * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
    * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The recognizer. */ @java.lang.Override @@ -155,15 +124,14 @@ public java.lang.String getRecognizer() { 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(); recognizer_ = s; return s; } } /** - * - * *
    * Required. Streaming recognition should start with an initial request having
    * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -172,18 +140,17 @@ public java.lang.String getRecognizer() {
    * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
    * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for recognizer. */ @java.lang.Override - public com.google.protobuf.ByteString getRecognizerBytes() { + public com.google.protobuf.ByteString + getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -193,8 +160,6 @@ public com.google.protobuf.ByteString getRecognizerBytes() { public static final int STREAMING_CONFIG_FIELD_NUMBER = 6; /** - * - * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -202,7 +167,6 @@ public com.google.protobuf.ByteString getRecognizerBytes() {
    * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; - * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -210,8 +174,6 @@ public boolean hasStreamingConfig() { return streamingRequestCase_ == 6; } /** - * - * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -219,19 +181,16 @@ public boolean hasStreamingConfig() {
    * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; - * * @return The streamingConfig. */ @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognitionConfig getStreamingConfig() { if (streamingRequestCase_ == 6) { - return (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_; + return (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_; } return com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance(); } /** - * - * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -241,24 +200,20 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfig getStreamingConfig(
    * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder
-      getStreamingConfigOrBuilder() {
+  public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder() {
     if (streamingRequestCase_ == 6) {
-      return (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_;
+       return (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_;
     }
     return com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance();
   }
 
   public static final int AUDIO_FIELD_NUMBER = 5;
   /**
-   *
-   *
    * 
    * Inline audio bytes to be Recognized.
    * 
* * bytes audio = 5; - * * @return Whether the audio field is set. */ @java.lang.Override @@ -266,14 +221,11 @@ public boolean hasAudio() { return streamingRequestCase_ == 5; } /** - * - * *
    * Inline audio bytes to be Recognized.
    * 
* * bytes audio = 5; - * * @return The audio. */ @java.lang.Override @@ -285,7 +237,6 @@ public com.google.protobuf.ByteString getAudio() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -297,16 +248,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recognizer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, recognizer_); } if (streamingRequestCase_ == 5) { - output.writeBytes(5, (com.google.protobuf.ByteString) streamingRequest_); + output.writeBytes( + 5, (com.google.protobuf.ByteString) streamingRequest_); } if (streamingRequestCase_ == 6) { - output.writeMessage( - 6, (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_); + output.writeMessage(6, (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_); } getUnknownFields().writeTo(output); } @@ -321,14 +273,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, recognizer_); } if (streamingRequestCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 5, (com.google.protobuf.ByteString) streamingRequest_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 5, (com.google.protobuf.ByteString) streamingRequest_); } if (streamingRequestCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -338,22 +289,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.v2.StreamingRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.StreamingRecognizeRequest other = - (com.google.cloud.speech.v2.StreamingRecognizeRequest) obj; + com.google.cloud.speech.v2.StreamingRecognizeRequest other = (com.google.cloud.speech.v2.StreamingRecognizeRequest) obj; - if (!getRecognizer().equals(other.getRecognizer())) return false; + if (!getRecognizer() + .equals(other.getRecognizer())) return false; if (!getStreamingRequestCase().equals(other.getStreamingRequestCase())) return false; switch (streamingRequestCase_) { case 6: - if (!getStreamingConfig().equals(other.getStreamingConfig())) return false; + if (!getStreamingConfig() + .equals(other.getStreamingConfig())) return false; break; case 5: - if (!getAudio().equals(other.getAudio())) return false; + if (!getAudio() + .equals(other.getAudio())) return false; break; case 0: default: @@ -389,103 +342,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.StreamingRecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.StreamingRecognizeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.StreamingRecognizeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [StreamingRecognize][google.cloud.speech.v2.Speech.StreamingRecognize]
@@ -506,32 +452,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.StreamingRecognizeRequest)
       com.google.cloud.speech.v2.StreamingRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.StreamingRecognizeRequest.class,
-              com.google.cloud.speech.v2.StreamingRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v2.StreamingRecognizeRequest.class, com.google.cloud.speech.v2.StreamingRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.StreamingRecognizeRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -546,9 +493,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -567,11 +514,8 @@ public com.google.cloud.speech.v2.StreamingRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.StreamingRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v2.StreamingRecognizeRequest result =
-          new com.google.cloud.speech.v2.StreamingRecognizeRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.StreamingRecognizeRequest result = new com.google.cloud.speech.v2.StreamingRecognizeRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -587,7 +531,8 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognizeRequest
     private void buildPartialOneofs(com.google.cloud.speech.v2.StreamingRecognizeRequest result) {
       result.streamingRequestCase_ = streamingRequestCase_;
       result.streamingRequest_ = this.streamingRequest_;
-      if (streamingRequestCase_ == 6 && streamingConfigBuilder_ != null) {
+      if (streamingRequestCase_ == 6 &&
+          streamingConfigBuilder_ != null) {
         result.streamingRequest_ = streamingConfigBuilder_.build();
       }
     }
@@ -596,39 +541,38 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.StreamingRecognizeReq
     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.v2.StreamingRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognizeRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognizeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -636,28 +580,24 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognizeRequest other) {
-      if (other == com.google.cloud.speech.v2.StreamingRecognizeRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.StreamingRecognizeRequest.getDefaultInstance()) return this;
       if (!other.getRecognizer().isEmpty()) {
         recognizer_ = other.recognizer_;
         bitField0_ |= 0x00000001;
         onChanged();
       }
       switch (other.getStreamingRequestCase()) {
-        case STREAMING_CONFIG:
-          {
-            mergeStreamingConfig(other.getStreamingConfig());
-            break;
-          }
-        case AUDIO:
-          {
-            setAudio(other.getAudio());
-            break;
-          }
-        case STREAMINGREQUEST_NOT_SET:
-          {
-            break;
-          }
+        case STREAMING_CONFIG: {
+          mergeStreamingConfig(other.getStreamingConfig());
+          break;
+        }
+        case AUDIO: {
+          setAudio(other.getAudio());
+          break;
+        }
+        case STREAMINGREQUEST_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -685,31 +625,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 26:
-              {
-                recognizer_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 26
-            case 42:
-              {
-                streamingRequest_ = input.readBytes();
-                streamingRequestCase_ = 5;
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getStreamingConfigFieldBuilder().getBuilder(), extensionRegistry);
-                streamingRequestCase_ = 6;
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 26: {
+              recognizer_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 26
+            case 42: {
+              streamingRequest_ = input.readBytes();
+              streamingRequestCase_ = 5;
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getStreamingConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              streamingRequestCase_ = 6;
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -719,12 +657,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -738,8 +676,6 @@ public Builder clearStreamingRequest() {
 
     private java.lang.Object recognizer_ = "";
     /**
-     *
-     *
      * 
      * Required. Streaming recognition should start with an initial request having
      * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -748,16 +684,14 @@ public Builder clearStreamingRequest() {
      * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
      * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The recognizer. */ public java.lang.String getRecognizer() { java.lang.Object ref = recognizer_; 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(); recognizer_ = s; return s; @@ -766,8 +700,6 @@ public java.lang.String getRecognizer() { } } /** - * - * *
      * Required. Streaming recognition should start with an initial request having
      * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -776,17 +708,16 @@ public java.lang.String getRecognizer() {
      * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
      * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for recognizer. */ - public com.google.protobuf.ByteString getRecognizerBytes() { + public com.google.protobuf.ByteString + getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -794,8 +725,6 @@ public com.google.protobuf.ByteString getRecognizerBytes() { } } /** - * - * *
      * Required. Streaming recognition should start with an initial request having
      * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -804,25 +733,19 @@ public com.google.protobuf.ByteString getRecognizerBytes() {
      * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
      * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizer(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecognizer( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } recognizer_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Streaming recognition should start with an initial request having
      * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -831,10 +754,7 @@ public Builder setRecognizer(java.lang.String value) {
      * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
      * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearRecognizer() { @@ -844,8 +764,6 @@ public Builder clearRecognizer() { return this; } /** - * - * *
      * Required. Streaming recognition should start with an initial request having
      * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -854,17 +772,13 @@ public Builder clearRecognizer() {
      * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
      * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizerBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRecognizerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); recognizer_ = value; bitField0_ |= 0x00000001; @@ -873,13 +787,8 @@ public Builder setRecognizerBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.StreamingRecognitionConfig, - com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder, - com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder> - streamingConfigBuilder_; + com.google.cloud.speech.v2.StreamingRecognitionConfig, com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder> streamingConfigBuilder_; /** - * - * *
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -887,7 +796,6 @@ public Builder setRecognizerBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; - * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -895,8 +803,6 @@ public boolean hasStreamingConfig() { return streamingRequestCase_ == 6; } /** - * - * *
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -904,7 +810,6 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; - * * @return The streamingConfig. */ @java.lang.Override @@ -922,8 +827,6 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfig getStreamingConfig( } } /** - * - * *
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -946,8 +849,6 @@ public Builder setStreamingConfig(com.google.cloud.speech.v2.StreamingRecognitio
       return this;
     }
     /**
-     *
-     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -968,8 +869,6 @@ public Builder setStreamingConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -978,17 +877,12 @@ public Builder setStreamingConfig(
      *
      * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6;
      */
-    public Builder mergeStreamingConfig(
-        com.google.cloud.speech.v2.StreamingRecognitionConfig value) {
+    public Builder mergeStreamingConfig(com.google.cloud.speech.v2.StreamingRecognitionConfig value) {
       if (streamingConfigBuilder_ == null) {
-        if (streamingRequestCase_ == 6
-            && streamingRequest_
-                != com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance()) {
-          streamingRequest_ =
-              com.google.cloud.speech.v2.StreamingRecognitionConfig.newBuilder(
-                      (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (streamingRequestCase_ == 6 &&
+            streamingRequest_ != com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance()) {
+          streamingRequest_ = com.google.cloud.speech.v2.StreamingRecognitionConfig.newBuilder((com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_)
+              .mergeFrom(value).buildPartial();
         } else {
           streamingRequest_ = value;
         }
@@ -1004,8 +898,6 @@ public Builder mergeStreamingConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -1031,8 +923,6 @@ public Builder clearStreamingConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -1041,13 +931,10 @@ public Builder clearStreamingConfig() {
      *
      * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6;
      */
-    public com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder
-        getStreamingConfigBuilder() {
+    public com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder getStreamingConfigBuilder() {
       return getStreamingConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -1057,8 +944,7 @@ public Builder clearStreamingConfig() {
      * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6;
      */
     @java.lang.Override
-    public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder
-        getStreamingConfigOrBuilder() {
+    public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder() {
       if ((streamingRequestCase_ == 6) && (streamingConfigBuilder_ != null)) {
         return streamingConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -1069,8 +955,6 @@ public Builder clearStreamingConfig() {
       }
     }
     /**
-     *
-     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -1080,20 +964,14 @@ public Builder clearStreamingConfig() {
      * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.StreamingRecognitionConfig,
-            com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder,
-            com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder>
+        com.google.cloud.speech.v2.StreamingRecognitionConfig, com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder> 
         getStreamingConfigFieldBuilder() {
       if (streamingConfigBuilder_ == null) {
         if (!(streamingRequestCase_ == 6)) {
-          streamingRequest_ =
-              com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance();
+          streamingRequest_ = com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance();
         }
-        streamingConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v2.StreamingRecognitionConfig,
-                com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder,
-                com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder>(
+        streamingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v2.StreamingRecognitionConfig, com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder>(
                 (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_,
                 getParentForChildren(),
                 isClean());
@@ -1105,28 +983,22 @@ public Builder clearStreamingConfig() {
     }
 
     /**
-     *
-     *
      * 
      * Inline audio bytes to be Recognized.
      * 
* * bytes audio = 5; - * * @return Whether the audio field is set. */ public boolean hasAudio() { return streamingRequestCase_ == 5; } /** - * - * *
      * Inline audio bytes to be Recognized.
      * 
* * bytes audio = 5; - * * @return The audio. */ public com.google.protobuf.ByteString getAudio() { @@ -1136,35 +1008,27 @@ public com.google.protobuf.ByteString getAudio() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * Inline audio bytes to be Recognized.
      * 
* * bytes audio = 5; - * * @param value The audio to set. * @return This builder for chaining. */ public Builder setAudio(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } streamingRequestCase_ = 5; streamingRequest_ = value; onChanged(); return this; } /** - * - * *
      * Inline audio bytes to be Recognized.
      * 
* * bytes audio = 5; - * * @return This builder for chaining. */ public Builder clearAudio() { @@ -1175,9 +1039,9 @@ public Builder clearAudio() { } 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); } @@ -1187,12 +1051,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognizeRequest) private static final com.google.cloud.speech.v2.StreamingRecognizeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognizeRequest(); } @@ -1201,27 +1065,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1236,4 +1100,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java similarity index 71% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java index c3de2722e8fe..a59c3c0ccd2c 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface StreamingRecognizeRequestOrBuilder - extends +public interface StreamingRecognizeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Streaming recognition should start with an initial request having
    * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -34,16 +16,11 @@ public interface StreamingRecognizeRequestOrBuilder
    * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
    * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The recognizer. */ java.lang.String getRecognizer(); /** - * - * *
    * Required. Streaming recognition should start with an initial request having
    * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -52,17 +29,13 @@ public interface StreamingRecognizeRequestOrBuilder
    * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
    * 
* - * - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for recognizer. */ - com.google.protobuf.ByteString getRecognizerBytes(); + com.google.protobuf.ByteString + getRecognizerBytes(); /** - * - * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -70,13 +43,10 @@ public interface StreamingRecognizeRequestOrBuilder
    * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; - * * @return Whether the streamingConfig field is set. */ boolean hasStreamingConfig(); /** - * - * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -84,13 +54,10 @@ public interface StreamingRecognizeRequestOrBuilder
    * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; - * * @return The streamingConfig. */ com.google.cloud.speech.v2.StreamingRecognitionConfig getStreamingConfig(); /** - * - * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -102,30 +69,23 @@ public interface StreamingRecognizeRequestOrBuilder
   com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Inline audio bytes to be Recognized.
    * 
* * bytes audio = 5; - * * @return Whether the audio field is set. */ boolean hasAudio(); /** - * - * *
    * Inline audio bytes to be Recognized.
    * 
* * bytes audio = 5; - * * @return The audio. */ com.google.protobuf.ByteString getAudio(); - public com.google.cloud.speech.v2.StreamingRecognizeRequest.StreamingRequestCase - getStreamingRequestCase(); + public com.google.cloud.speech.v2.StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java similarity index 76% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java index 92f2afa89c93..5727dcf83280 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * `StreamingRecognizeResponse` is the only message returned to the client by
  * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -61,16 +44,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
@@ -78,43 +60,39 @@ 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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.StreamingRecognizeResponse.class,
-            com.google.cloud.speech.v2.StreamingRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v2.StreamingRecognizeResponse.class, com.google.cloud.speech.v2.StreamingRecognizeResponse.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Indicates the type of speech event.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType} */ - public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { + public enum SpeechEventType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * No speech event specified.
      * 
@@ -123,8 +101,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { */ SPEECH_EVENT_TYPE_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
@@ -138,8 +114,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
      */
     END_OF_SINGLE_UTTERANCE(1),
     /**
-     *
-     *
      * 
      * This event indicates that the server has detected the beginning of human
      * voice activity in the stream. This event can be returned multiple times
@@ -151,8 +125,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
      */
     SPEECH_ACTIVITY_BEGIN(2),
     /**
-     *
-     *
      * 
      * This event indicates that the server has detected the end of human voice
      * activity in the stream. This event can be returned multiple times if
@@ -167,8 +139,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * No speech event specified.
      * 
@@ -177,8 +147,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SPEECH_EVENT_TYPE_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
@@ -192,8 +160,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int END_OF_SINGLE_UTTERANCE_VALUE = 1;
     /**
-     *
-     *
      * 
      * This event indicates that the server has detected the beginning of human
      * voice activity in the stream. This event can be returned multiple times
@@ -205,8 +171,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SPEECH_ACTIVITY_BEGIN_VALUE = 2;
     /**
-     *
-     *
      * 
      * This event indicates that the server has detected the end of human voice
      * activity in the stream. This event can be returned multiple times if
@@ -218,6 +182,7 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SPEECH_ACTIVITY_END_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -242,47 +207,41 @@ public static SpeechEventType valueOf(int value) {
      */
     public static SpeechEventType forNumber(int value) {
       switch (value) {
-        case 0:
-          return SPEECH_EVENT_TYPE_UNSPECIFIED;
-        case 1:
-          return END_OF_SINGLE_UTTERANCE;
-        case 2:
-          return SPEECH_ACTIVITY_BEGIN;
-        case 3:
-          return SPEECH_ACTIVITY_END;
-        default:
-          return null;
+        case 0: return SPEECH_EVENT_TYPE_UNSPECIFIED;
+        case 1: return END_OF_SINGLE_UTTERANCE;
+        case 2: return SPEECH_ACTIVITY_BEGIN;
+        case 3: return SPEECH_ACTIVITY_END;
+        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.v2.StreamingRecognizeResponse.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.StreamingRecognizeResponse.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final SpeechEventType[] VALUES = values();
@@ -290,7 +249,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;
@@ -308,12 +268,9 @@ private SpeechEventType(int value) {
   }
 
   public static final int RESULTS_FIELD_NUMBER = 6;
-
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -331,8 +288,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.
@@ -346,13 +301,11 @@ public java.util.List get
    * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
    */
   @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.
@@ -370,8 +323,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.
@@ -389,8 +340,6 @@ public com.google.cloud.speech.v2.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.
@@ -412,55 +361,37 @@ public com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResults
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 3;
   private int speechEventType_ = 0;
   /**
-   *
-   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; * @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.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; * @return The speechEventType. */ - @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType - getSpeechEventType() { - com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType result = - com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.forNumber( - speechEventType_); - return result == null - ? com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.forNumber(speechEventType_); + return result == null ? com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; } public static final int SPEECH_EVENT_OFFSET_FIELD_NUMBER = 7; private com.google.protobuf.Duration speechEventOffset_; /** - * - * *
    * Time offset between the beginning of the audio and event emission.
    * 
* * .google.protobuf.Duration speech_event_offset = 7; - * * @return Whether the speechEventOffset field is set. */ @java.lang.Override @@ -468,25 +399,18 @@ public boolean hasSpeechEventOffset() { return speechEventOffset_ != null; } /** - * - * *
    * Time offset between the beginning of the audio and event emission.
    * 
* * .google.protobuf.Duration speech_event_offset = 7; - * * @return The speechEventOffset. */ @java.lang.Override public com.google.protobuf.Duration getSpeechEventOffset() { - return speechEventOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : speechEventOffset_; + return speechEventOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEventOffset_; } /** - * - * *
    * Time offset between the beginning of the audio and event emission.
    * 
@@ -495,22 +419,17 @@ public com.google.protobuf.Duration getSpeechEventOffset() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder() { - return speechEventOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : speechEventOffset_; + return speechEventOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEventOffset_; } public static final int METADATA_FIELD_NUMBER = 5; private com.google.cloud.speech.v2.RecognitionResponseMetadata metadata_; /** - * - * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; - * * @return Whether the metadata field is set. */ @java.lang.Override @@ -518,25 +437,18 @@ public boolean hasMetadata() { return metadata_ != null; } /** - * - * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; - * * @return The metadata. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { - return metadata_ == null - ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; } /** - * - * *
    * Metadata about the recognition.
    * 
@@ -545,13 +457,10 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetadataOrBuilder() { - return metadata_ == null - ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -563,11 +472,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (speechEventType_ - != com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType - .SPEECH_EVENT_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (speechEventType_ != com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, speechEventType_); } if (metadata_ != null) { @@ -588,20 +495,21 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (speechEventType_ - != com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType - .SPEECH_EVENT_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, speechEventType_); + if (speechEventType_ != com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, speechEventType_); } if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getMetadata()); } for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, results_.get(i)); } if (speechEventOffset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSpeechEventOffset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getSpeechEventOffset()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -611,23 +519,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.v2.StreamingRecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.StreamingRecognizeResponse other = - (com.google.cloud.speech.v2.StreamingRecognizeResponse) obj; + com.google.cloud.speech.v2.StreamingRecognizeResponse other = (com.google.cloud.speech.v2.StreamingRecognizeResponse) obj; - if (!getResultsList().equals(other.getResultsList())) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; if (speechEventType_ != other.speechEventType_) return false; if (hasSpeechEventOffset() != other.hasSpeechEventOffset()) return false; if (hasSpeechEventOffset()) { - if (!getSpeechEventOffset().equals(other.getSpeechEventOffset())) return false; + if (!getSpeechEventOffset() + .equals(other.getSpeechEventOffset())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -660,104 +570,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.StreamingRecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.StreamingRecognizeResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.StreamingRecognizeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.StreamingRecognizeResponse prototype) { + public static Builder newBuilder(com.google.cloud.speech.v2.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`
@@ -798,32 +700,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.StreamingRecognizeResponse)
       com.google.cloud.speech.v2.StreamingRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.StreamingRecognizeResponse.class,
-              com.google.cloud.speech.v2.StreamingRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v2.StreamingRecognizeResponse.class, com.google.cloud.speech.v2.StreamingRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.StreamingRecognizeResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -850,9 +753,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
@@ -871,18 +774,14 @@ public com.google.cloud.speech.v2.StreamingRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.StreamingRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v2.StreamingRecognizeResponse result =
-          new com.google.cloud.speech.v2.StreamingRecognizeResponse(this);
+      com.google.cloud.speech.v2.StreamingRecognizeResponse result = new com.google.cloud.speech.v2.StreamingRecognizeResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.speech.v2.StreamingRecognizeResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.StreamingRecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -900,13 +799,14 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognizeResponse
         result.speechEventType_ = speechEventType_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.speechEventOffset_ =
-            speechEventOffsetBuilder_ == null
-                ? speechEventOffset_
-                : speechEventOffsetBuilder_.build();
+        result.speechEventOffset_ = speechEventOffsetBuilder_ == null
+            ? speechEventOffset_
+            : speechEventOffsetBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
+        result.metadata_ = metadataBuilder_ == null
+            ? metadata_
+            : metadataBuilder_.build();
       }
     }
 
@@ -914,39 +814,38 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognizeResponse
     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.v2.StreamingRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognizeResponse) other);
+        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognizeResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -954,8 +853,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognizeResponse other) {
-      if (other == com.google.cloud.speech.v2.StreamingRecognizeResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.StreamingRecognizeResponse.getDefaultInstance()) return this;
       if (resultsBuilder_ == null) {
         if (!other.results_.isEmpty()) {
           if (results_.isEmpty()) {
@@ -974,10 +872,9 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_);
           }
@@ -1018,46 +915,44 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 24:
-              {
-                speechEventType_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 24
-            case 42:
-              {
-                input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 42
-            case 50:
-              {
-                com.google.cloud.speech.v2.StreamingRecognitionResult m =
-                    input.readMessage(
-                        com.google.cloud.speech.v2.StreamingRecognitionResult.parser(),
-                        extensionRegistry);
-                if (resultsBuilder_ == null) {
-                  ensureResultsIsMutable();
-                  results_.add(m);
-                } else {
-                  resultsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(
-                    getSpeechEventOffsetFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 58
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 24: {
+              speechEventType_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 24
+            case 42: {
+              input.readMessage(
+                  getMetadataFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 42
+            case 50: {
+              com.google.cloud.speech.v2.StreamingRecognitionResult m =
+                  input.readMessage(
+                      com.google.cloud.speech.v2.StreamingRecognitionResult.parser(),
+                      extensionRegistry);
+              if (resultsBuilder_ == null) {
+                ensureResultsIsMutable();
+                results_.add(m);
+              } else {
+                resultsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getSpeechEventOffsetFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 58
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1067,30 +962,21 @@ public Builder mergeFrom(
       } // finally
       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.v2.StreamingRecognitionResult,
-            com.google.cloud.speech.v2.StreamingRecognitionResult.Builder,
-            com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder>
-        resultsBuilder_;
+        com.google.cloud.speech.v2.StreamingRecognitionResult, com.google.cloud.speech.v2.StreamingRecognitionResult.Builder, com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder> resultsBuilder_;
 
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1111,8 +997,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.
@@ -1133,8 +1017,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1155,8 +1037,6 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult getResults(int inde
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1184,8 +1064,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.
@@ -1210,8 +1088,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.
@@ -1238,8 +1114,6 @@ public Builder addResults(com.google.cloud.speech.v2.StreamingRecognitionResult
       return this;
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1267,8 +1141,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.
@@ -1293,8 +1165,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.
@@ -1319,8 +1189,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.
@@ -1334,11 +1202,11 @@ public Builder addResults(
      * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
      */
     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);
@@ -1346,8 +1214,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.
@@ -1371,8 +1237,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.
@@ -1396,8 +1260,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.
@@ -1415,8 +1277,6 @@ public com.google.cloud.speech.v2.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.
@@ -1432,14 +1292,11 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder getResultsB
     public com.google.cloud.speech.v2.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.
@@ -1452,8 +1309,8 @@ public com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResults
      *
      * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
      */
-    public java.util.List
-        getResultsOrBuilderList() {
+    public java.util.List 
+         getResultsOrBuilderList() {
       if (resultsBuilder_ != null) {
         return resultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1461,8 +1318,6 @@ public com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResults
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1476,12 +1331,10 @@ public com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResults
      * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
      */
     public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsBuilder() {
-      return getResultsFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder().addBuilder(
+          com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1496,13 +1349,10 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsB
      */
     public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsBuilder(
         int index) {
-      return getResultsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1515,23 +1365,20 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsB
      *
      * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
      */
-    public java.util.List
-        getResultsBuilderList() {
+    public java.util.List 
+         getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.StreamingRecognitionResult,
-            com.google.cloud.speech.v2.StreamingRecognitionResult.Builder,
-            com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder>
+        com.google.cloud.speech.v2.StreamingRecognitionResult, com.google.cloud.speech.v2.StreamingRecognitionResult.Builder, com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder> 
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v2.StreamingRecognitionResult,
-                com.google.cloud.speech.v2.StreamingRecognitionResult.Builder,
-                com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder>(
-                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v2.StreamingRecognitionResult, com.google.cloud.speech.v2.StreamingRecognitionResult.Builder, com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder>(
+                results_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1539,33 +1386,22 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsB
 
     private int speechEventType_ = 0;
     /**
-     *
-     *
      * 
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; * @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.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; * @param value The enum numeric value on the wire for speechEventType to set. * @return This builder for chaining. */ @@ -1576,44 +1412,28 @@ public Builder setSpeechEventTypeValue(int value) { return this; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; * @return The speechEventType. */ @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType - getSpeechEventType() { - com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType result = - com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.forNumber( - speechEventType_); - return result == null - ? com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED - : result; + public com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.forNumber(speechEventType_); + return result == null ? com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; * @param value The speechEventType to set. * @return This builder for chaining. */ - public Builder setSpeechEventType( - com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType value) { + public Builder setSpeechEventType(com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType value) { if (value == null) { throw new NullPointerException(); } @@ -1623,16 +1443,11 @@ public Builder setSpeechEventType( return this; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; * @return This builder for chaining. */ public Builder clearSpeechEventType() { @@ -1644,47 +1459,34 @@ public Builder clearSpeechEventType() { private com.google.protobuf.Duration speechEventOffset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - speechEventOffsetBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> speechEventOffsetBuilder_; /** - * - * *
      * Time offset between the beginning of the audio and event emission.
      * 
* * .google.protobuf.Duration speech_event_offset = 7; - * * @return Whether the speechEventOffset field is set. */ public boolean hasSpeechEventOffset() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Time offset between the beginning of the audio and event emission.
      * 
* * .google.protobuf.Duration speech_event_offset = 7; - * * @return The speechEventOffset. */ public com.google.protobuf.Duration getSpeechEventOffset() { if (speechEventOffsetBuilder_ == null) { - return speechEventOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : speechEventOffset_; + return speechEventOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEventOffset_; } else { return speechEventOffsetBuilder_.getMessage(); } } /** - * - * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1705,15 +1507,14 @@ public Builder setSpeechEventOffset(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Time offset between the beginning of the audio and event emission.
      * 
* * .google.protobuf.Duration speech_event_offset = 7; */ - public Builder setSpeechEventOffset(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setSpeechEventOffset( + com.google.protobuf.Duration.Builder builderForValue) { if (speechEventOffsetBuilder_ == null) { speechEventOffset_ = builderForValue.build(); } else { @@ -1724,8 +1525,6 @@ public Builder setSpeechEventOffset(com.google.protobuf.Duration.Builder builder return this; } /** - * - * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1734,9 +1533,9 @@ public Builder setSpeechEventOffset(com.google.protobuf.Duration.Builder builder */ public Builder mergeSpeechEventOffset(com.google.protobuf.Duration value) { if (speechEventOffsetBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && speechEventOffset_ != null - && speechEventOffset_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + speechEventOffset_ != null && + speechEventOffset_ != com.google.protobuf.Duration.getDefaultInstance()) { getSpeechEventOffsetBuilder().mergeFrom(value); } else { speechEventOffset_ = value; @@ -1749,8 +1548,6 @@ public Builder mergeSpeechEventOffset(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1768,8 +1565,6 @@ public Builder clearSpeechEventOffset() { return this; } /** - * - * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1782,8 +1577,6 @@ public com.google.protobuf.Duration.Builder getSpeechEventOffsetBuilder() { return getSpeechEventOffsetFieldBuilder().getBuilder(); } /** - * - * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1794,14 +1587,11 @@ public com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder() { if (speechEventOffsetBuilder_ != null) { return speechEventOffsetBuilder_.getMessageOrBuilder(); } else { - return speechEventOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : speechEventOffset_; + return speechEventOffset_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : speechEventOffset_; } } /** - * - * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1809,17 +1599,14 @@ public com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder() { * .google.protobuf.Duration speech_event_offset = 7; */ 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> getSpeechEventOffsetFieldBuilder() { if (speechEventOffsetBuilder_ == null) { - speechEventOffsetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getSpeechEventOffset(), getParentForChildren(), isClean()); + speechEventOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getSpeechEventOffset(), + getParentForChildren(), + isClean()); speechEventOffset_ = null; } return speechEventOffsetBuilder_; @@ -1827,47 +1614,34 @@ public com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder() { private com.google.cloud.speech.v2.RecognitionResponseMetadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionResponseMetadata, - com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, - com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> - metadataBuilder_; + com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> metadataBuilder_; /** - * - * *
      * Metadata about the recognition.
      * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; - * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Metadata about the recognition.
      * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; - * * @return The metadata. */ public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1888,8 +1662,6 @@ public Builder setMetadata(com.google.cloud.speech.v2.RecognitionResponseMetadat return this; } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1908,8 +1680,6 @@ public Builder setMetadata( return this; } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1918,10 +1688,9 @@ public Builder setMetadata( */ public Builder mergeMetadata(com.google.cloud.speech.v2.RecognitionResponseMetadata value) { if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && metadata_ != null - && metadata_ - != com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + metadata_ != null && + metadata_ != com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; @@ -1934,8 +1703,6 @@ public Builder mergeMetadata(com.google.cloud.speech.v2.RecognitionResponseMetad return this; } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1953,8 +1720,6 @@ public Builder clearMetadata() { return this; } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1967,8 +1732,6 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder getMetadat return getMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1979,14 +1742,11 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetada if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { - return metadata_ == null - ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? + com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; } } /** - * - * *
      * Metadata about the recognition.
      * 
@@ -1994,24 +1754,21 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetada * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionResponseMetadata, - com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, - com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> + com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionResponseMetadata, - com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, - com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); metadata_ = null; } return metadataBuilder_; } - @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); } @@ -2021,12 +1778,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognizeResponse) private static final com.google.cloud.speech.v2.StreamingRecognizeResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognizeResponse(); } @@ -2035,27 +1792,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2070,4 +1827,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.StreamingRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java similarity index 84% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java index 5ebe124a6264..adfef06e80a3 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface StreamingRecognizeResponseOrBuilder - extends +public interface StreamingRecognizeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognizeResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -38,10 +20,9 @@ public interface StreamingRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
    */
-  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.
@@ -56,8 +37,6 @@ public interface StreamingRecognizeResponseOrBuilder
    */
   com.google.cloud.speech.v2.StreamingRecognitionResult getResults(int index);
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -72,8 +51,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.
@@ -86,11 +63,9 @@ public interface StreamingRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
    */
-  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.
@@ -103,62 +78,47 @@ public interface StreamingRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
    */
-  com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResultsOrBuilder(int index);
+  com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResultsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; * @return The enum numeric value on the wire for speechEventType. */ int getSpeechEventTypeValue(); /** - * - * *
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; - * - * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; * @return The speechEventType. */ com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType getSpeechEventType(); /** - * - * *
    * Time offset between the beginning of the audio and event emission.
    * 
* * .google.protobuf.Duration speech_event_offset = 7; - * * @return Whether the speechEventOffset field is set. */ boolean hasSpeechEventOffset(); /** - * - * *
    * Time offset between the beginning of the audio and event emission.
    * 
* * .google.protobuf.Duration speech_event_offset = 7; - * * @return The speechEventOffset. */ com.google.protobuf.Duration getSpeechEventOffset(); /** - * - * *
    * Time offset between the beginning of the audio and event emission.
    * 
@@ -168,32 +128,24 @@ public interface StreamingRecognizeResponseOrBuilder com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder(); /** - * - * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; - * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** - * - * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; - * * @return The metadata. */ com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata(); /** - * - * *
    * Metadata about the recognition.
    * 
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java index 9c3e52e2e108..b719cb328c62 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [UndeleteCustomClass][google.cloud.speech.v2.Speech.UndeleteCustomClass]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.UndeleteCustomClassRequest}
  */
-public final class UndeleteCustomClassRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UndeleteCustomClassRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.UndeleteCustomClassRequest)
     UndeleteCustomClassRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UndeleteCustomClassRequest.newBuilder() to construct.
   private UndeleteCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private UndeleteCustomClassRequest() {
     name_ = "";
     etag_ = "";
@@ -46,47 +28,40 @@ private UndeleteCustomClassRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UndeleteCustomClassRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UndeleteCustomClassRequest.class,
-            com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder.class);
+            com.google.cloud.speech.v2.UndeleteCustomClassRequest.class, com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the CustomClass to undelete.
    * 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 @@ -95,33 +70,31 @@ 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 CustomClass to undelete.
    * 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 { @@ -132,15 +105,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the undeleted CustomClass, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -149,12 +119,9 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -162,7 +129,6 @@ public boolean getValidateOnly() {
    * 
* * string etag = 4; - * * @return The etag. */ @java.lang.Override @@ -171,15 +137,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -187,15 +152,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 4; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -204,7 +170,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,7 +181,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_); } @@ -239,7 +205,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, etag_); @@ -252,17 +219,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.v2.UndeleteCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UndeleteCustomClassRequest other = - (com.google.cloud.speech.v2.UndeleteCustomClassRequest) obj; + com.google.cloud.speech.v2.UndeleteCustomClassRequest other = (com.google.cloud.speech.v2.UndeleteCustomClassRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -277,7 +246,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -286,104 +256,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UndeleteCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UndeleteCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v2.UndeleteCustomClassRequest 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; } /** - * - * *
    * Request message for the
    * [UndeleteCustomClass][google.cloud.speech.v2.Speech.UndeleteCustomClass]
@@ -392,32 +354,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.UndeleteCustomClassRequest}
    */
-  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.v2.UndeleteCustomClassRequest)
       com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UndeleteCustomClassRequest.class,
-              com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder.class);
+              com.google.cloud.speech.v2.UndeleteCustomClassRequest.class, com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UndeleteCustomClassRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -429,9 +392,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
@@ -450,11 +413,8 @@ public com.google.cloud.speech.v2.UndeleteCustomClassRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UndeleteCustomClassRequest buildPartial() {
-      com.google.cloud.speech.v2.UndeleteCustomClassRequest result =
-          new com.google.cloud.speech.v2.UndeleteCustomClassRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.UndeleteCustomClassRequest result = new com.google.cloud.speech.v2.UndeleteCustomClassRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -476,39 +436,38 @@ private void buildPartial0(com.google.cloud.speech.v2.UndeleteCustomClassRequest
     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.v2.UndeleteCustomClassRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UndeleteCustomClassRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.UndeleteCustomClassRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -516,8 +475,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UndeleteCustomClassRequest other) {
-      if (other == com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -557,31 +515,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 24:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 24
-            case 34:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 24: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 24
+            case 34: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -591,29 +545,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the CustomClass to undelete.
      * 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; @@ -622,25 +571,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the CustomClass to undelete.
      * 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 { @@ -648,43 +594,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the CustomClass to undelete.
      * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the CustomClass to undelete.
      * 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() { @@ -694,25 +629,19 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the CustomClass to undelete.
      * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -720,17 +649,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the undeleted CustomClass, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -738,35 +664,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the undeleted CustomClass, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the undeleted CustomClass, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -778,8 +698,6 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -787,13 +705,13 @@ public Builder clearValidateOnly() {
      * 
* * string etag = 4; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -802,8 +720,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -811,14 +727,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 4; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -826,8 +743,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -835,22 +750,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 4; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -858,7 +769,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 4; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -868,8 +778,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -877,23 +785,21 @@ public Builder clearEtag() {
      * 
* * string etag = 4; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -903,12 +809,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UndeleteCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UndeleteCustomClassRequest) private static final com.google.cloud.speech.v2.UndeleteCustomClassRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UndeleteCustomClassRequest(); } @@ -917,27 +823,27 @@ public static com.google.cloud.speech.v2.UndeleteCustomClassRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeleteCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeleteCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -952,4 +858,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.UndeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java similarity index 60% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java index 3f2932465fef..5cb508666745 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java @@ -1,78 +1,48 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UndeleteCustomClassRequestOrBuilder - extends +public interface UndeleteCustomClassRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UndeleteCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the CustomClass to undelete.
    * 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.String getName(); /** - * - * *
    * Required. The name of the CustomClass to undelete.
    * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If set, validate the request and preview the undeleted CustomClass, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -80,13 +50,10 @@ public interface UndeleteCustomClassRequestOrBuilder
    * 
* * string etag = 4; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -94,8 +61,8 @@ public interface UndeleteCustomClassRequestOrBuilder
    * 
* * string etag = 4; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java index 76616b3d3e23..abf4b2329690 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [UndeletePhraseSet][google.cloud.speech.v2.Speech.UndeletePhraseSet]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.UndeletePhraseSetRequest}
  */
-public final class UndeletePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UndeletePhraseSetRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.UndeletePhraseSetRequest)
     UndeletePhraseSetRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UndeletePhraseSetRequest.newBuilder() to construct.
   private UndeletePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private UndeletePhraseSetRequest() {
     name_ = "";
     etag_ = "";
@@ -46,46 +28,39 @@ private UndeletePhraseSetRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UndeletePhraseSetRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UndeletePhraseSetRequest.class,
-            com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder.class);
+            com.google.cloud.speech.v2.UndeletePhraseSetRequest.class, com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the PhraseSet to undelete.
    * 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 @@ -94,32 +69,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 PhraseSet to undelete.
    * 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 { @@ -130,15 +103,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the undeleted PhraseSet, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -147,12 +117,9 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -160,7 +127,6 @@ public boolean getValidateOnly() {
    * 
* * string etag = 4; - * * @return The etag. */ @java.lang.Override @@ -169,15 +135,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -185,15 +150,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 4; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -202,7 +168,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,7 +179,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_); } @@ -237,7 +203,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, etag_); @@ -250,17 +217,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.v2.UndeletePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UndeletePhraseSetRequest other = - (com.google.cloud.speech.v2.UndeletePhraseSetRequest) obj; + com.google.cloud.speech.v2.UndeletePhraseSetRequest other = (com.google.cloud.speech.v2.UndeletePhraseSetRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -275,7 +244,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -284,103 +254,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UndeletePhraseSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UndeletePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest 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; } /** - * - * *
    * Request message for the
    * [UndeletePhraseSet][google.cloud.speech.v2.Speech.UndeletePhraseSet]
@@ -389,32 +352,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.UndeletePhraseSetRequest}
    */
-  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.v2.UndeletePhraseSetRequest)
       com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UndeletePhraseSetRequest.class,
-              com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder.class);
+              com.google.cloud.speech.v2.UndeletePhraseSetRequest.class, com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UndeletePhraseSetRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -426,9 +390,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -447,11 +411,8 @@ public com.google.cloud.speech.v2.UndeletePhraseSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UndeletePhraseSetRequest buildPartial() {
-      com.google.cloud.speech.v2.UndeletePhraseSetRequest result =
-          new com.google.cloud.speech.v2.UndeletePhraseSetRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.UndeletePhraseSetRequest result = new com.google.cloud.speech.v2.UndeletePhraseSetRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -473,39 +434,38 @@ private void buildPartial0(com.google.cloud.speech.v2.UndeletePhraseSetRequest r
     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.v2.UndeletePhraseSetRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UndeletePhraseSetRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.UndeletePhraseSetRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -513,8 +473,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UndeletePhraseSetRequest other) {
-      if (other == com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -554,31 +513,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 24:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 24
-            case 34:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 24: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 24
+            case 34: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -588,28 +543,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the PhraseSet to undelete.
      * 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; @@ -618,24 +568,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the PhraseSet to undelete.
      * 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 { @@ -643,41 +590,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the PhraseSet to undelete.
      * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the PhraseSet to undelete.
      * 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() { @@ -687,24 +623,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the PhraseSet to undelete.
      * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -712,17 +642,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the undeleted PhraseSet, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -730,35 +657,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the undeleted PhraseSet, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the undeleted PhraseSet, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -770,8 +691,6 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -779,13 +698,13 @@ public Builder clearValidateOnly() {
      * 
* * string etag = 4; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -794,8 +713,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -803,14 +720,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 4; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -818,8 +736,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -827,22 +743,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 4; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -850,7 +762,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 4; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -860,8 +771,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -869,23 +778,21 @@ public Builder clearEtag() {
      * 
* * string etag = 4; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -895,12 +802,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UndeletePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UndeletePhraseSetRequest) private static final com.google.cloud.speech.v2.UndeletePhraseSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UndeletePhraseSetRequest(); } @@ -909,27 +816,27 @@ public static com.google.cloud.speech.v2.UndeletePhraseSetRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeletePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeletePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -944,4 +851,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.UndeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java similarity index 60% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java index 57ddba361792..2e93ee02b6f0 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java @@ -1,76 +1,46 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UndeletePhraseSetRequestOrBuilder - extends +public interface UndeletePhraseSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UndeletePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the PhraseSet to undelete.
    * 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.String getName(); /** - * - * *
    * Required. The name of the PhraseSet to undelete.
    * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If set, validate the request and preview the undeleted PhraseSet, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -78,13 +48,10 @@ public interface UndeletePhraseSetRequestOrBuilder
    * 
* * string etag = 4; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -92,8 +59,8 @@ public interface UndeletePhraseSetRequestOrBuilder
    * 
* * string etag = 4; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java index bda5cf7ddc37..0f4d5175bc86 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [UndeleteRecognizer][google.cloud.speech.v2.Speech.UndeleteRecognizer]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.UndeleteRecognizerRequest}
  */
-public final class UndeleteRecognizerRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UndeleteRecognizerRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.UndeleteRecognizerRequest)
     UndeleteRecognizerRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UndeleteRecognizerRequest.newBuilder() to construct.
   private UndeleteRecognizerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private UndeleteRecognizerRequest() {
     name_ = "";
     etag_ = "";
@@ -46,46 +28,39 @@ private UndeleteRecognizerRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UndeleteRecognizerRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UndeleteRecognizerRequest.class,
-            com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder.class);
+            com.google.cloud.speech.v2.UndeleteRecognizerRequest.class, com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. The name of the Recognizer to undelete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * - * 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 @@ -94,32 +69,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 Recognizer to undelete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * - * 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 { @@ -130,15 +103,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** - * - * *
    * If set, validate the request and preview the undeleted Recognizer, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -147,12 +117,9 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -160,7 +127,6 @@ public boolean getValidateOnly() {
    * 
* * string etag = 4; - * * @return The etag. */ @java.lang.Override @@ -169,15 +135,14 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -185,15 +150,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 4; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -202,7 +168,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,7 +179,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_); } @@ -237,7 +203,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, etag_); @@ -250,17 +217,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.v2.UndeleteRecognizerRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UndeleteRecognizerRequest other = - (com.google.cloud.speech.v2.UndeleteRecognizerRequest) obj; + com.google.cloud.speech.v2.UndeleteRecognizerRequest other = (com.google.cloud.speech.v2.UndeleteRecognizerRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -275,7 +244,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -284,103 +254,96 @@ public int hashCode() { } public static com.google.cloud.speech.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UndeleteRecognizerRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UndeleteRecognizerRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest 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; } /** - * - * *
    * Request message for the
    * [UndeleteRecognizer][google.cloud.speech.v2.Speech.UndeleteRecognizer]
@@ -389,32 +352,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.UndeleteRecognizerRequest}
    */
-  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.v2.UndeleteRecognizerRequest)
       com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UndeleteRecognizerRequest.class,
-              com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder.class);
+              com.google.cloud.speech.v2.UndeleteRecognizerRequest.class, com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UndeleteRecognizerRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -426,9 +390,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
@@ -447,11 +411,8 @@ public com.google.cloud.speech.v2.UndeleteRecognizerRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UndeleteRecognizerRequest buildPartial() {
-      com.google.cloud.speech.v2.UndeleteRecognizerRequest result =
-          new com.google.cloud.speech.v2.UndeleteRecognizerRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.UndeleteRecognizerRequest result = new com.google.cloud.speech.v2.UndeleteRecognizerRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -473,39 +434,38 @@ private void buildPartial0(com.google.cloud.speech.v2.UndeleteRecognizerRequest
     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.v2.UndeleteRecognizerRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UndeleteRecognizerRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.UndeleteRecognizerRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -513,8 +473,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UndeleteRecognizerRequest other) {
-      if (other == com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -554,31 +513,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 24:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 24
-            case 34:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 24: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 24
+            case 34: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 34
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -588,28 +543,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The name of the Recognizer to undelete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * - * 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; @@ -618,24 +568,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the Recognizer to undelete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * - * 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 { @@ -643,41 +590,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the Recognizer to undelete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the Recognizer to undelete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * - * 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() { @@ -687,24 +623,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the Recognizer to undelete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -712,17 +642,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * If set, validate the request and preview the undeleted Recognizer, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; - * * @return The validateOnly. */ @java.lang.Override @@ -730,35 +657,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the undeleted Recognizer, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the undeleted Recognizer, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -770,8 +691,6 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -779,13 +698,13 @@ public Builder clearValidateOnly() {
      * 
* * string etag = 4; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -794,8 +713,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -803,14 +720,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 4; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -818,8 +736,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -827,22 +743,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 4; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -850,7 +762,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 4; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -860,8 +771,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -869,23 +778,21 @@ public Builder clearEtag() {
      * 
* * string etag = 4; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -895,12 +802,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UndeleteRecognizerRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UndeleteRecognizerRequest) private static final com.google.cloud.speech.v2.UndeleteRecognizerRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UndeleteRecognizerRequest(); } @@ -909,27 +816,27 @@ public static com.google.cloud.speech.v2.UndeleteRecognizerRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeleteRecognizerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeleteRecognizerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -944,4 +851,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.UndeleteRecognizerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java similarity index 60% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java index a1a11469b1d1..cb43fb97d00d 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java @@ -1,76 +1,46 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UndeleteRecognizerRequestOrBuilder - extends +public interface UndeleteRecognizerRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UndeleteRecognizerRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the Recognizer to undelete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * - * 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 Recognizer to undelete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * - * 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(); /** - * - * *
    * If set, validate the request and preview the undeleted Recognizer, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -78,13 +48,10 @@ public interface UndeleteRecognizerRequestOrBuilder
    * 
* * string etag = 4; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -92,8 +59,8 @@ public interface UndeleteRecognizerRequestOrBuilder
    * 
* * string etag = 4; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java index fcf2dc0642c1..1d449cc5fca2 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [UpdateConfig][google.cloud.speech.v2.Speech.UpdateConfig] method.
@@ -28,58 +11,53 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.UpdateConfigRequest}
  */
-public final class UpdateConfigRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateConfigRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.UpdateConfigRequest)
     UpdateConfigRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateConfigRequest.newBuilder() to construct.
   private UpdateConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private UpdateConfigRequest() {}
+  private UpdateConfigRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateConfigRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UpdateConfigRequest.class,
-            com.google.cloud.speech.v2.UpdateConfigRequest.Builder.class);
+            com.google.cloud.speech.v2.UpdateConfigRequest.class, com.google.cloud.speech.v2.UpdateConfigRequest.Builder.class);
   }
 
   public static final int CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.Config config_;
   /**
-   *
-   *
    * 
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ @java.lang.Override @@ -87,17 +65,13 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ @java.lang.Override @@ -105,16 +79,13 @@ public com.google.cloud.speech.v2.Config getConfig() { return config_ == null ? com.google.cloud.speech.v2.Config.getDefaultInstance() : config_; } /** - * - * *
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v2.ConfigOrBuilder getConfigOrBuilder() { @@ -124,14 +95,11 @@ public com.google.cloud.speech.v2.ConfigOrBuilder getConfigOrBuilder() { 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 @@ -139,14 +107,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 @@ -154,8 +119,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to be updated.
    * 
@@ -168,7 +131,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,7 +142,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()); } @@ -197,10 +160,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 (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -210,21 +175,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.v2.UpdateConfigRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UpdateConfigRequest other = - (com.google.cloud.speech.v2.UpdateConfigRequest) obj; + com.google.cloud.speech.v2.UpdateConfigRequest other = (com.google.cloud.speech.v2.UpdateConfigRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -250,104 +216,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.UpdateConfigRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.UpdateConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UpdateConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest 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; } /** - * - * *
    * Request message for the
    * [UpdateConfig][google.cloud.speech.v2.Speech.UpdateConfig] method.
@@ -355,32 +314,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.UpdateConfigRequest}
    */
-  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.v2.UpdateConfigRequest)
       com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UpdateConfigRequest.class,
-              com.google.cloud.speech.v2.UpdateConfigRequest.Builder.class);
+              com.google.cloud.speech.v2.UpdateConfigRequest.class, com.google.cloud.speech.v2.UpdateConfigRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UpdateConfigRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -399,9 +359,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
     }
 
     @java.lang.Override
@@ -420,11 +380,8 @@ public com.google.cloud.speech.v2.UpdateConfigRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UpdateConfigRequest buildPartial() {
-      com.google.cloud.speech.v2.UpdateConfigRequest result =
-          new com.google.cloud.speech.v2.UpdateConfigRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.UpdateConfigRequest result = new com.google.cloud.speech.v2.UpdateConfigRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -432,10 +389,14 @@ public com.google.cloud.speech.v2.UpdateConfigRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.UpdateConfigRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
+        result.config_ = configBuilder_ == null
+            ? config_
+            : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null
+            ? updateMask_
+            : updateMaskBuilder_.build();
       }
     }
 
@@ -443,39 +404,38 @@ private void buildPartial0(com.google.cloud.speech.v2.UpdateConfigRequest result
     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.v2.UpdateConfigRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UpdateConfigRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.UpdateConfigRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -516,25 +476,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getUpdateMaskFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -544,44 +505,32 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.speech.v2.Config config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.Config,
-            com.google.cloud.speech.v2.Config.Builder,
-            com.google.cloud.speech.v2.ConfigOrBuilder>
-        configBuilder_;
+        com.google.cloud.speech.v2.Config, com.google.cloud.speech.v2.Config.Builder, com.google.cloud.speech.v2.ConfigOrBuilder> configBuilder_;
     /**
-     *
-     *
      * 
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ public com.google.cloud.speech.v2.Config getConfig() { @@ -592,16 +541,13 @@ public com.google.cloud.speech.v2.Config getConfig() { } } /** - * - * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConfig(com.google.cloud.speech.v2.Config value) { if (configBuilder_ == null) { @@ -617,18 +563,16 @@ public Builder setConfig(com.google.cloud.speech.v2.Config value) { return this; } /** - * - * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setConfig(com.google.cloud.speech.v2.Config.Builder builderForValue) { + public Builder setConfig( + com.google.cloud.speech.v2.Config.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); } else { @@ -639,22 +583,19 @@ public Builder setConfig(com.google.cloud.speech.v2.Config.Builder builderForVal return this; } /** - * - * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConfig(com.google.cloud.speech.v2.Config value) { if (configBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && config_ != null - && config_ != com.google.cloud.speech.v2.Config.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + config_ != null && + config_ != com.google.cloud.speech.v2.Config.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -667,16 +608,13 @@ public Builder mergeConfig(com.google.cloud.speech.v2.Config value) { return this; } /** - * - * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConfig() { bitField0_ = (bitField0_ & ~0x00000001); @@ -689,16 +627,13 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.Config.Builder getConfigBuilder() { bitField0_ |= 0x00000001; @@ -706,48 +641,40 @@ public com.google.cloud.speech.v2.Config.Builder getConfigBuilder() { return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.ConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? com.google.cloud.speech.v2.Config.getDefaultInstance() : config_; + return config_ == null ? + com.google.cloud.speech.v2.Config.getDefaultInstance() : config_; } } /** - * - * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Config, - com.google.cloud.speech.v2.Config.Builder, - com.google.cloud.speech.v2.ConfigOrBuilder> + com.google.cloud.speech.v2.Config, com.google.cloud.speech.v2.Config.Builder, com.google.cloud.speech.v2.ConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Config, - com.google.cloud.speech.v2.Config.Builder, - com.google.cloud.speech.v2.ConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.Config, com.google.cloud.speech.v2.Config.Builder, com.google.cloud.speech.v2.ConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; @@ -755,47 +682,34 @@ public com.google.cloud.speech.v2.ConfigOrBuilder getConfigOrBuilder() { 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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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.
      * 
@@ -816,15 +730,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(); } else { @@ -835,8 +748,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -845,9 +756,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -860,8 +771,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -879,8 +788,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -893,8 +800,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -905,14 +810,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.
      * 
@@ -920,24 +822,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); } @@ -947,12 +846,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UpdateConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UpdateConfigRequest) private static final com.google.cloud.speech.v2.UpdateConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UpdateConfigRequest(); } @@ -961,27 +860,27 @@ public static com.google.cloud.speech.v2.UpdateConfigRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -996,4 +895,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.UpdateConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java similarity index 70% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java index 934ae4f143d3..336b01b5753f 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java @@ -1,99 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UpdateConfigRequestOrBuilder - extends +public interface UpdateConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UpdateConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ com.google.cloud.speech.v2.Config getConfig(); /** - * - * *
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v2.ConfigOrBuilder getConfigOrBuilder(); /** - * - * *
    * 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/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java index 15ac97450832..8634ee573ae2 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [UpdateCustomClass][google.cloud.speech.v2.Speech.UpdateCustomClass] method.
@@ -28,49 +11,46 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UpdateCustomClassRequest.class,
-            com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder.class);
+            com.google.cloud.speech.v2.UpdateCustomClassRequest.class, com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder.class);
   }
 
   public static final int CUSTOM_CLASS_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.CustomClass customClass_;
   /**
-   *
-   *
    * 
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -78,10 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ @java.lang.Override @@ -89,8 +66,6 @@ public boolean hasCustomClass() { return customClass_ != null; } /** - * - * *
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -98,21 +73,14 @@ public boolean hasCustomClass() {
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ @java.lang.Override public com.google.cloud.speech.v2.CustomClass getCustomClass() { - return customClass_ == null - ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; } /** - * - * *
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -120,29 +88,22 @@ public com.google.cloud.speech.v2.CustomClass getCustomClass() {
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder() { - return customClass_ == null - ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -150,15 +111,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -166,8 +124,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
@@ -183,15 +139,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int VALIDATE_ONLY_FIELD_NUMBER = 4;
   private boolean validateOnly_ = false;
   /**
-   *
-   *
    * 
    * If set, validate the request and preview the updated CustomClass, but do
    * not actually update it.
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -200,7 +153,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,7 +164,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()); } @@ -232,13 +185,16 @@ 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()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -248,23 +204,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.v2.UpdateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UpdateCustomClassRequest other = - (com.google.cloud.speech.v2.UpdateCustomClassRequest) obj; + com.google.cloud.speech.v2.UpdateCustomClassRequest other = (com.google.cloud.speech.v2.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 (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,110 +243,104 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v2.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.v2.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.v2.UpdateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.UpdateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.UpdateCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UpdateCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.UpdateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UpdateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [UpdateCustomClass][google.cloud.speech.v2.Speech.UpdateCustomClass] method.
@@ -396,32 +348,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.UpdateCustomClassRequest)
       com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UpdateCustomClassRequest.class,
-              com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder.class);
+              com.google.cloud.speech.v2.UpdateCustomClassRequest.class, com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UpdateCustomClassRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -441,9 +394,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
@@ -462,11 +415,8 @@ public com.google.cloud.speech.v2.UpdateCustomClassRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UpdateCustomClassRequest buildPartial() {
-      com.google.cloud.speech.v2.UpdateCustomClassRequest result =
-          new com.google.cloud.speech.v2.UpdateCustomClassRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.UpdateCustomClassRequest result = new com.google.cloud.speech.v2.UpdateCustomClassRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -474,11 +424,14 @@ public com.google.cloud.speech.v2.UpdateCustomClassRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.UpdateCustomClassRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.customClass_ =
-            customClassBuilder_ == null ? customClass_ : customClassBuilder_.build();
+        result.customClass_ = customClassBuilder_ == null
+            ? customClass_
+            : customClassBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null
+            ? updateMask_
+            : updateMaskBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -489,39 +442,38 @@ private void buildPartial0(com.google.cloud.speech.v2.UpdateCustomClassRequest r
     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.v2.UpdateCustomClassRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UpdateCustomClassRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.UpdateCustomClassRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -529,8 +481,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UpdateCustomClassRequest other) {
-      if (other == com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance()) return this;
       if (other.hasCustomClass()) {
         mergeCustomClass(other.getCustomClass());
       }
@@ -566,31 +517,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 32:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getCustomClassFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getUpdateMaskFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 32: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -600,18 +551,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.speech.v2.CustomClass customClass_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.CustomClass,
-            com.google.cloud.speech.v2.CustomClass.Builder,
-            com.google.cloud.speech.v2.CustomClassOrBuilder>
-        customClassBuilder_;
+        com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> customClassBuilder_;
     /**
-     *
-     *
      * 
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -619,18 +564,13 @@ public Builder mergeFrom(
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -638,24 +578,17 @@ public boolean hasCustomClass() {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ public com.google.cloud.speech.v2.CustomClass getCustomClass() { if (customClassBuilder_ == null) { - return customClass_ == null - ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; } else { return customClassBuilder_.getMessage(); } } /** - * - * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -663,9 +596,7 @@ public com.google.cloud.speech.v2.CustomClass getCustomClass() {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass value) { if (customClassBuilder_ == null) { @@ -681,8 +612,6 @@ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass value) { return this; } /** - * - * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -690,11 +619,10 @@ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass value) {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass.Builder builderForValue) { + public Builder setCustomClass( + com.google.cloud.speech.v2.CustomClass.Builder builderForValue) { if (customClassBuilder_ == null) { customClass_ = builderForValue.build(); } else { @@ -705,8 +633,6 @@ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass.Builder bui return this; } /** - * - * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -714,15 +640,13 @@ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass.Builder bui
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCustomClass(com.google.cloud.speech.v2.CustomClass value) { if (customClassBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && customClass_ != null - && customClass_ != com.google.cloud.speech.v2.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + customClass_ != null && + customClass_ != com.google.cloud.speech.v2.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -735,8 +659,6 @@ public Builder mergeCustomClass(com.google.cloud.speech.v2.CustomClass value) { return this; } /** - * - * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -744,9 +666,7 @@ public Builder mergeCustomClass(com.google.cloud.speech.v2.CustomClass value) {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCustomClass() { bitField0_ = (bitField0_ & ~0x00000001); @@ -759,8 +679,6 @@ public Builder clearCustomClass() { return this; } /** - * - * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -768,9 +686,7 @@ public Builder clearCustomClass() {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassBuilder() { bitField0_ |= 0x00000001; @@ -778,8 +694,6 @@ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassBuilder() { return getCustomClassFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -787,22 +701,17 @@ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassBuilder() {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder() { if (customClassBuilder_ != null) { return customClassBuilder_.getMessageOrBuilder(); } else { - return customClass_ == null - ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? + com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; } } /** - * - * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -810,22 +719,17 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder()
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, - com.google.cloud.speech.v2.CustomClass.Builder, - com.google.cloud.speech.v2.CustomClassOrBuilder> + com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> getCustomClassFieldBuilder() { if (customClassBuilder_ == null) { - customClassBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, - com.google.cloud.speech.v2.CustomClass.Builder, - com.google.cloud.speech.v2.CustomClassOrBuilder>( - getCustomClass(), getParentForChildren(), isClean()); + customClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder>( + getCustomClass(), + getParentForChildren(), + isClean()); customClass_ = null; } return customClassBuilder_; @@ -833,49 +737,36 @@ public com.google.cloud.speech.v2.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. If empty, all fields are considered for
      * update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
      * 
* * .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. If empty, all fields are considered for
      * update.
@@ -897,8 +788,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
@@ -906,7 +795,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .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();
       } else {
@@ -917,8 +807,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
@@ -928,9 +816,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateMask_ != null
-            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateMask_ != null &&
+          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -943,8 +831,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
@@ -963,8 +849,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
@@ -978,8 +862,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
@@ -991,14 +873,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. If empty, all fields are considered for
      * update.
@@ -1007,33 +886,27 @@ 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_;
     }
 
-    private boolean validateOnly_;
+    private boolean validateOnly_ ;
     /**
-     *
-     *
      * 
      * If set, validate the request and preview the updated CustomClass, but do
      * not actually update it.
      * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -1041,35 +914,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the updated CustomClass, but do
      * not actually update it.
      * 
* * bool validate_only = 4; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the updated CustomClass, but do
      * not actually update it.
      * 
* * bool validate_only = 4; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1078,9 +945,9 @@ public Builder clearValidateOnly() { 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); } @@ -1090,12 +957,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UpdateCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UpdateCustomClassRequest) private static final com.google.cloud.speech.v2.UpdateCustomClassRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UpdateCustomClassRequest(); } @@ -1104,27 +971,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1139,4 +1006,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.UpdateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java index fcd686776acc..38d67c91c3d4 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UpdateCustomClassRequestOrBuilder - extends +public interface UpdateCustomClassRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UpdateCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -33,16 +15,11 @@ public interface UpdateCustomClassRequestOrBuilder
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ boolean hasCustomClass(); /** - * - * *
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -50,16 +27,11 @@ public interface UpdateCustomClassRequestOrBuilder
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ com.google.cloud.speech.v2.CustomClass getCustomClass(); /** - * - * *
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -67,41 +39,31 @@ public interface UpdateCustomClassRequestOrBuilder
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder(); /** - * - * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
@@ -112,15 +74,12 @@ public interface UpdateCustomClassRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * If set, validate the request and preview the updated CustomClass, but do
    * not actually update it.
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java similarity index 68% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java index 34f1dea70e2f..0308a920ff72 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [UpdatePhraseSet][google.cloud.speech.v2.Speech.UpdatePhraseSet] method.
@@ -28,59 +11,53 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UpdatePhraseSetRequest.class,
-            com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder.class);
+            com.google.cloud.speech.v2.UpdatePhraseSetRequest.class, com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder.class);
   }
 
   public static final int PHRASE_SET_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.PhraseSet phraseSet_;
   /**
-   *
-   *
    * 
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -88,58 +65,42 @@ public boolean hasPhraseSet() { return phraseSet_ != null; } /** - * - * *
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSet getPhraseSet() { - return phraseSet_ == null - ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; } /** - * - * *
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder() { - return phraseSet_ == null - ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -147,15 +108,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -163,8 +121,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -180,15 +136,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int VALIDATE_ONLY_FIELD_NUMBER = 4;
   private boolean validateOnly_ = false;
   /**
-   *
-   *
    * 
    * If set, validate the request and preview the updated PhraseSet, but do not
    * actually update it.
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -197,7 +150,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +161,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()); } @@ -229,13 +182,16 @@ 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()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -245,23 +201,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.v2.UpdatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UpdatePhraseSetRequest other = - (com.google.cloud.speech.v2.UpdatePhraseSetRequest) obj; + com.google.cloud.speech.v2.UpdatePhraseSetRequest other = (com.google.cloud.speech.v2.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 (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -282,110 +240,104 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v2.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.v2.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.v2.UpdatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.UpdatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.UpdatePhraseSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UpdatePhraseSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.UpdatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UpdatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** - * - * *
    * Request message for the
    * [UpdatePhraseSet][google.cloud.speech.v2.Speech.UpdatePhraseSet] method.
@@ -393,32 +345,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.UpdatePhraseSetRequest)
       com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UpdatePhraseSetRequest.class,
-              com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder.class);
+              com.google.cloud.speech.v2.UpdatePhraseSetRequest.class, com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UpdatePhraseSetRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -438,9 +391,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -459,11 +412,8 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UpdatePhraseSetRequest buildPartial() {
-      com.google.cloud.speech.v2.UpdatePhraseSetRequest result =
-          new com.google.cloud.speech.v2.UpdatePhraseSetRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.UpdatePhraseSetRequest result = new com.google.cloud.speech.v2.UpdatePhraseSetRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -471,10 +421,14 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.UpdatePhraseSetRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build();
+        result.phraseSet_ = phraseSetBuilder_ == null
+            ? phraseSet_
+            : phraseSetBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null
+            ? updateMask_
+            : updateMaskBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -485,39 +439,38 @@ private void buildPartial0(com.google.cloud.speech.v2.UpdatePhraseSetRequest res
     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.v2.UpdatePhraseSetRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UpdatePhraseSetRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.UpdatePhraseSetRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -525,8 +478,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UpdatePhraseSetRequest other) {
-      if (other == com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance()) return this;
       if (other.hasPhraseSet()) {
         mergePhraseSet(other.getPhraseSet());
       }
@@ -562,31 +514,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 32:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getPhraseSetFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getUpdateMaskFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 32: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -596,69 +548,49 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.speech.v2.PhraseSet phraseSet_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.PhraseSet,
-            com.google.cloud.speech.v2.PhraseSet.Builder,
-            com.google.cloud.speech.v2.PhraseSetOrBuilder>
-        phraseSetBuilder_;
+        com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> phraseSetBuilder_;
     /**
-     *
-     *
      * 
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ public com.google.cloud.speech.v2.PhraseSet getPhraseSet() { if (phraseSetBuilder_ == null) { - return phraseSet_ == null - ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; } else { return phraseSetBuilder_.getMessage(); } } /** - * - * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetBuilder_ == null) { @@ -674,19 +606,16 @@ public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** - * - * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { + public Builder setPhraseSet( + com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { if (phraseSetBuilder_ == null) { phraseSet_ = builderForValue.build(); } else { @@ -697,23 +626,19 @@ public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet.Builder builder return this; } /** - * - * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && phraseSet_ != null - && phraseSet_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + phraseSet_ != null && + phraseSet_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -726,17 +651,13 @@ public Builder mergePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** - * - * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPhraseSet() { bitField0_ = (bitField0_ & ~0x00000001); @@ -749,17 +670,13 @@ public Builder clearPhraseSet() { return this; } /** - * - * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetBuilder() { bitField0_ |= 0x00000001; @@ -767,52 +684,40 @@ public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetBuilder() { return getPhraseSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder() { if (phraseSetBuilder_ != null) { return phraseSetBuilder_.getMessageOrBuilder(); } else { - return phraseSet_ == null - ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? + com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; } } /** - * - * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, - com.google.cloud.speech.v2.PhraseSet.Builder, - com.google.cloud.speech.v2.PhraseSetOrBuilder> + com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> getPhraseSetFieldBuilder() { if (phraseSetBuilder_ == null) { - phraseSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, - com.google.cloud.speech.v2.PhraseSet.Builder, - com.google.cloud.speech.v2.PhraseSetOrBuilder>( - getPhraseSet(), getParentForChildren(), isClean()); + phraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder>( + getPhraseSet(), + getParentForChildren(), + isClean()); phraseSet_ = null; } return phraseSetBuilder_; @@ -820,49 +725,36 @@ public com.google.cloud.speech.v2.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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
      * 
* * .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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -884,8 +776,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -893,7 +783,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .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();
       } else {
@@ -904,8 +795,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -915,9 +804,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateMask_ != null
-            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateMask_ != null &&
+          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -930,8 +819,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -950,8 +837,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -965,8 +850,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -978,14 +861,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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -994,33 +874,27 @@ 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_;
     }
 
-    private boolean validateOnly_;
+    private boolean validateOnly_ ;
     /**
-     *
-     *
      * 
      * If set, validate the request and preview the updated PhraseSet, but do not
      * actually update it.
      * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -1028,35 +902,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the updated PhraseSet, but do not
      * actually update it.
      * 
* * bool validate_only = 4; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the updated PhraseSet, but do not
      * actually update it.
      * 
* * bool validate_only = 4; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1065,9 +933,9 @@ public Builder clearValidateOnly() { 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); } @@ -1077,12 +945,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UpdatePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UpdatePhraseSetRequest) private static final com.google.cloud.speech.v2.UpdatePhraseSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UpdatePhraseSetRequest(); } @@ -1091,27 +959,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1126,4 +994,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.UpdatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java index c45c34e09307..216191fec0a8 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java @@ -1,104 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UpdatePhraseSetRequestOrBuilder - extends +public interface UpdatePhraseSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UpdatePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** - * - * *
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ com.google.cloud.speech.v2.PhraseSet getPhraseSet(); /** - * - * *
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder(); /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -109,15 +71,12 @@ public interface UpdatePhraseSetRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * If set, validate the request and preview the updated PhraseSet, but do not
    * actually update it.
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java similarity index 67% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java index cdc3d817982a..c8155b5da2ac 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Request message for the
  * [UpdateRecognizer][google.cloud.speech.v2.Speech.UpdateRecognizer] method.
@@ -28,59 +11,53 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.UpdateRecognizerRequest}
  */
-public final class UpdateRecognizerRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateRecognizerRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.UpdateRecognizerRequest)
     UpdateRecognizerRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateRecognizerRequest.newBuilder() to construct.
   private UpdateRecognizerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private UpdateRecognizerRequest() {}
+  private UpdateRecognizerRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateRecognizerRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto
-        .internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UpdateRecognizerRequest.class,
-            com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder.class);
+            com.google.cloud.speech.v2.UpdateRecognizerRequest.class, com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder.class);
   }
 
   public static final int RECOGNIZER_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.Recognizer recognizer_;
   /**
-   *
-   *
    * 
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the recognizer field is set. */ @java.lang.Override @@ -88,58 +65,42 @@ public boolean hasRecognizer() { return recognizer_ != null; } /** - * - * *
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The recognizer. */ @java.lang.Override public com.google.cloud.speech.v2.Recognizer getRecognizer() { - return recognizer_ == null - ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() - : recognizer_; + return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; } /** - * - * *
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder() { - return recognizer_ == null - ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() - : recognizer_; + return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -147,15 +108,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -163,8 +121,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
@@ -180,15 +136,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int VALIDATE_ONLY_FIELD_NUMBER = 4;
   private boolean validateOnly_ = false;
   /**
-   *
-   *
    * 
    * If set, validate the request and preview the updated Recognizer, but do not
    * actually update it.
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -197,7 +150,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +161,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 (recognizer_ != null) { output.writeMessage(1, getRecognizer()); } @@ -229,13 +182,16 @@ public int getSerializedSize() { size = 0; if (recognizer_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRecognizer()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRecognizer()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -245,23 +201,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.v2.UpdateRecognizerRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UpdateRecognizerRequest other = - (com.google.cloud.speech.v2.UpdateRecognizerRequest) obj; + com.google.cloud.speech.v2.UpdateRecognizerRequest other = (com.google.cloud.speech.v2.UpdateRecognizerRequest) obj; if (hasRecognizer() != other.hasRecognizer()) return false; if (hasRecognizer()) { - if (!getRecognizer().equals(other.getRecognizer())) return false; + if (!getRecognizer() + .equals(other.getRecognizer())) 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 (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -282,110 +240,104 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UpdateRecognizerRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v2.UpdateRecognizerRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest 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; } /** - * - * *
    * Request message for the
    * [UpdateRecognizer][google.cloud.speech.v2.Speech.UpdateRecognizer] method.
@@ -393,32 +345,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v2.UpdateRecognizerRequest}
    */
-  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.v2.UpdateRecognizerRequest)
       com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UpdateRecognizerRequest.class,
-              com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder.class);
+              com.google.cloud.speech.v2.UpdateRecognizerRequest.class, com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UpdateRecognizerRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -438,9 +391,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto
-          .internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
@@ -459,11 +412,8 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UpdateRecognizerRequest buildPartial() {
-      com.google.cloud.speech.v2.UpdateRecognizerRequest result =
-          new com.google.cloud.speech.v2.UpdateRecognizerRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.speech.v2.UpdateRecognizerRequest result = new com.google.cloud.speech.v2.UpdateRecognizerRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -471,10 +421,14 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.UpdateRecognizerRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.recognizer_ = recognizerBuilder_ == null ? recognizer_ : recognizerBuilder_.build();
+        result.recognizer_ = recognizerBuilder_ == null
+            ? recognizer_
+            : recognizerBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null
+            ? updateMask_
+            : updateMaskBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -485,39 +439,38 @@ private void buildPartial0(com.google.cloud.speech.v2.UpdateRecognizerRequest re
     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.v2.UpdateRecognizerRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UpdateRecognizerRequest) other);
+        return mergeFrom((com.google.cloud.speech.v2.UpdateRecognizerRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -525,8 +478,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UpdateRecognizerRequest other) {
-      if (other == com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance()) return this;
       if (other.hasRecognizer()) {
         mergeRecognizer(other.getRecognizer());
       }
@@ -562,31 +514,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getRecognizerFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 32:
-              {
-                validateOnly_ = input.readBool();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getRecognizerFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getUpdateMaskFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 32: {
+              validateOnly_ = input.readBool();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -596,69 +548,49 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.speech.v2.Recognizer recognizer_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.Recognizer,
-            com.google.cloud.speech.v2.Recognizer.Builder,
-            com.google.cloud.speech.v2.RecognizerOrBuilder>
-        recognizerBuilder_;
+        com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> recognizerBuilder_;
     /**
-     *
-     *
      * 
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the recognizer field is set. */ public boolean hasRecognizer() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The recognizer. */ public com.google.cloud.speech.v2.Recognizer getRecognizer() { if (recognizerBuilder_ == null) { - return recognizer_ == null - ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() - : recognizer_; + return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; } else { return recognizerBuilder_.getMessage(); } } /** - * - * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer value) { if (recognizerBuilder_ == null) { @@ -674,19 +606,16 @@ public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer value) { return this; } /** - * - * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { + public Builder setRecognizer( + com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { if (recognizerBuilder_ == null) { recognizer_ = builderForValue.build(); } else { @@ -697,23 +626,19 @@ public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer.Builder build return this; } /** - * - * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeRecognizer(com.google.cloud.speech.v2.Recognizer value) { if (recognizerBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && recognizer_ != null - && recognizer_ != com.google.cloud.speech.v2.Recognizer.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + recognizer_ != null && + recognizer_ != com.google.cloud.speech.v2.Recognizer.getDefaultInstance()) { getRecognizerBuilder().mergeFrom(value); } else { recognizer_ = value; @@ -726,17 +651,13 @@ public Builder mergeRecognizer(com.google.cloud.speech.v2.Recognizer value) { return this; } /** - * - * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRecognizer() { bitField0_ = (bitField0_ & ~0x00000001); @@ -749,17 +670,13 @@ public Builder clearRecognizer() { return this; } /** - * - * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.Recognizer.Builder getRecognizerBuilder() { bitField0_ |= 0x00000001; @@ -767,52 +684,40 @@ public com.google.cloud.speech.v2.Recognizer.Builder getRecognizerBuilder() { return getRecognizerFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder() { if (recognizerBuilder_ != null) { return recognizerBuilder_.getMessageOrBuilder(); } else { - return recognizer_ == null - ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() - : recognizer_; + return recognizer_ == null ? + com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; } } /** - * - * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, - com.google.cloud.speech.v2.Recognizer.Builder, - com.google.cloud.speech.v2.RecognizerOrBuilder> + com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> getRecognizerFieldBuilder() { if (recognizerBuilder_ == null) { - recognizerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, - com.google.cloud.speech.v2.Recognizer.Builder, - com.google.cloud.speech.v2.RecognizerOrBuilder>( - getRecognizer(), getParentForChildren(), isClean()); + recognizerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder>( + getRecognizer(), + getParentForChildren(), + isClean()); recognizer_ = null; } return recognizerBuilder_; @@ -820,49 +725,36 @@ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder() { 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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
      * 
* * .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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -884,8 +776,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -893,7 +783,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .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();
       } else {
@@ -904,8 +795,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -915,9 +804,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateMask_ != null
-            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateMask_ != null &&
+          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -930,8 +819,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -950,8 +837,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -965,8 +850,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -978,14 +861,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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -994,33 +874,27 @@ 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_;
     }
 
-    private boolean validateOnly_;
+    private boolean validateOnly_ ;
     /**
-     *
-     *
      * 
      * If set, validate the request and preview the updated Recognizer, but do not
      * actually update it.
      * 
* * bool validate_only = 4; - * * @return The validateOnly. */ @java.lang.Override @@ -1028,35 +902,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * If set, validate the request and preview the updated Recognizer, but do not
      * actually update it.
      * 
* * bool validate_only = 4; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If set, validate the request and preview the updated Recognizer, but do not
      * actually update it.
      * 
* * bool validate_only = 4; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1065,9 +933,9 @@ public Builder clearValidateOnly() { 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); } @@ -1077,12 +945,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UpdateRecognizerRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UpdateRecognizerRequest) private static final com.google.cloud.speech.v2.UpdateRecognizerRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UpdateRecognizerRequest(); } @@ -1091,27 +959,27 @@ public static com.google.cloud.speech.v2.UpdateRecognizerRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateRecognizerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateRecognizerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1126,4 +994,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.UpdateRecognizerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java similarity index 69% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java index b2625dfe5eeb..4ee8739be893 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java @@ -1,104 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UpdateRecognizerRequestOrBuilder - extends +public interface UpdateRecognizerRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UpdateRecognizerRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the recognizer field is set. */ boolean hasRecognizer(); /** - * - * *
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The recognizer. */ com.google.cloud.speech.v2.Recognizer getRecognizer(); /** - * - * *
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder(); /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
@@ -109,15 +71,12 @@ public interface UpdateRecognizerRequestOrBuilder
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
-   *
-   *
    * 
    * If set, validate the request and preview the updated Recognizer, but do not
    * actually update it.
    * 
* * bool validate_only = 4; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java similarity index 77% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java index d4d3f21f5b70..50feb29138ee 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** - * - * *
  * Word-specific information for recognized words.
  * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = ""; speakerLabel_ = ""; @@ -44,35 +26,32 @@ private WordInfo() { @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; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_WordInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.WordInfo.class, - com.google.cloud.speech.v2.WordInfo.Builder.class); + com.google.cloud.speech.v2.WordInfo.class, com.google.cloud.speech.v2.WordInfo.Builder.class); } public static final int START_OFFSET_FIELD_NUMBER = 1; private com.google.protobuf.Duration startOffset_; /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -83,7 +62,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.protobuf.Duration start_offset = 1; - * * @return Whether the startOffset field is set. */ @java.lang.Override @@ -91,8 +69,6 @@ public boolean hasStartOffset() { return startOffset_ != null; } /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -103,7 +79,6 @@ public boolean hasStartOffset() {
    * 
* * .google.protobuf.Duration start_offset = 1; - * * @return The startOffset. */ @java.lang.Override @@ -111,8 +86,6 @@ public com.google.protobuf.Duration getStartOffset() { return startOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startOffset_; } /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -132,8 +105,6 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
   public static final int END_OFFSET_FIELD_NUMBER = 2;
   private com.google.protobuf.Duration endOffset_;
   /**
-   *
-   *
    * 
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -144,7 +115,6 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
    * 
* * .google.protobuf.Duration end_offset = 2; - * * @return Whether the endOffset field is set. */ @java.lang.Override @@ -152,8 +122,6 @@ public boolean hasEndOffset() { return endOffset_ != null; } /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -164,7 +132,6 @@ public boolean hasEndOffset() {
    * 
* * .google.protobuf.Duration end_offset = 2; - * * @return The endOffset. */ @java.lang.Override @@ -172,8 +139,6 @@ public com.google.protobuf.Duration getEndOffset() { return endOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endOffset_; } /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -191,18 +156,14 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
   }
 
   public static final int WORD_FIELD_NUMBER = 3;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object word_ = "";
   /**
-   *
-   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; - * * @return The word. */ @java.lang.Override @@ -211,29 +172,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 { @@ -244,8 +205,6 @@ public com.google.protobuf.ByteString getWordBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_ = 0F; /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -258,7 +217,6 @@ public com.google.protobuf.ByteString getWordBytes() {
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -267,12 +225,9 @@ public float getConfidence() { } public static final int SPEAKER_LABEL_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object speakerLabel_ = ""; /** - * - * *
    * A distinct label is assigned for every speaker within the audio. This field
    * specifies which one of those speakers was detected to have spoken this
@@ -282,7 +237,6 @@ public float getConfidence() {
    * 
* * string speaker_label = 6; - * * @return The speakerLabel. */ @java.lang.Override @@ -291,15 +245,14 @@ public java.lang.String getSpeakerLabel() { 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(); speakerLabel_ = s; return s; } } /** - * - * *
    * A distinct label is assigned for every speaker within the audio. This field
    * specifies which one of those speakers was detected to have spoken this
@@ -309,15 +262,16 @@ public java.lang.String getSpeakerLabel() {
    * 
* * string speaker_label = 6; - * * @return The bytes for speakerLabel. */ @java.lang.Override - public com.google.protobuf.ByteString getSpeakerLabelBytes() { + public com.google.protobuf.ByteString + getSpeakerLabelBytes() { java.lang.Object ref = speakerLabel_; 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); speakerLabel_ = b; return b; } else { @@ -326,7 +280,6 @@ public com.google.protobuf.ByteString getSpeakerLabelBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -338,7 +291,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 (startOffset_ != null) { output.writeMessage(1, getStartOffset()); } @@ -364,16 +318,19 @@ public int getSerializedSize() { size = 0; if (startOffset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartOffset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartOffset()); } if (endOffset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndOffset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndOffset()); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(speakerLabel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, speakerLabel_); @@ -386,7 +343,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.v2.WordInfo)) { return super.equals(obj); @@ -395,16 +352,21 @@ public boolean equals(final java.lang.Object obj) { if (hasStartOffset() != other.hasStartOffset()) return false; if (hasStartOffset()) { - if (!getStartOffset().equals(other.getStartOffset())) return false; + if (!getStartOffset() + .equals(other.getStartOffset())) return false; } if (hasEndOffset() != other.hasEndOffset()) return false; if (hasEndOffset()) { - if (!getEndOffset().equals(other.getEndOffset())) return false; + if (!getEndOffset() + .equals(other.getEndOffset())) 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 (!getSpeakerLabel().equals(other.getSpeakerLabel())) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; + if (!getSpeakerLabel() + .equals(other.getSpeakerLabel())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -427,7 +389,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_LABEL_FIELD_NUMBER; hash = (53 * hash) + getSpeakerLabel().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -435,135 +398,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.WordInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.WordInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.WordInfo parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.speech.v2.WordInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.WordInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.WordInfo) com.google.cloud.speech.v2.WordInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_WordInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.WordInfo.class, - com.google.cloud.speech.v2.WordInfo.Builder.class); + com.google.cloud.speech.v2.WordInfo.class, com.google.cloud.speech.v2.WordInfo.Builder.class); } // Construct using com.google.cloud.speech.v2.WordInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -585,9 +543,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto - .internal_static_google_cloud_speech_v2_WordInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_WordInfo_descriptor; } @java.lang.Override @@ -607,9 +565,7 @@ public com.google.cloud.speech.v2.WordInfo build() { @java.lang.Override public com.google.cloud.speech.v2.WordInfo buildPartial() { com.google.cloud.speech.v2.WordInfo result = new com.google.cloud.speech.v2.WordInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -617,11 +573,14 @@ public com.google.cloud.speech.v2.WordInfo buildPartial() { private void buildPartial0(com.google.cloud.speech.v2.WordInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startOffset_ = - startOffsetBuilder_ == null ? startOffset_ : startOffsetBuilder_.build(); + result.startOffset_ = startOffsetBuilder_ == null + ? startOffset_ + : startOffsetBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endOffset_ = endOffsetBuilder_ == null ? endOffset_ : endOffsetBuilder_.build(); + result.endOffset_ = endOffsetBuilder_ == null + ? endOffset_ + : endOffsetBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.word_ = word_; @@ -638,39 +597,38 @@ private void buildPartial0(com.google.cloud.speech.v2.WordInfo result) { 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.v2.WordInfo) { - return mergeFrom((com.google.cloud.speech.v2.WordInfo) other); + return mergeFrom((com.google.cloud.speech.v2.WordInfo)other); } else { super.mergeFrom(other); return this; @@ -724,43 +682,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStartOffsetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndOffsetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - word_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 37: - { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000008; - break; - } // case 37 - case 50: - { - speakerLabel_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStartOffsetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndOffsetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + word_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 37: { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + case 50: { + speakerLabel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -770,18 +726,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Duration startOffset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - startOffsetBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> startOffsetBuilder_; /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -792,15 +742,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_offset = 1; - * * @return Whether the startOffset field is set. */ public boolean hasStartOffset() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -811,21 +758,16 @@ public boolean hasStartOffset() {
      * 
* * .google.protobuf.Duration start_offset = 1; - * * @return The startOffset. */ public com.google.protobuf.Duration getStartOffset() { if (startOffsetBuilder_ == null) { - return startOffset_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : startOffset_; + return startOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startOffset_; } else { return startOffsetBuilder_.getMessage(); } } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -851,8 +793,6 @@ public Builder setStartOffset(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.
@@ -864,7 +804,8 @@ public Builder setStartOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration start_offset = 1;
      */
-    public Builder setStartOffset(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setStartOffset(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (startOffsetBuilder_ == null) {
         startOffset_ = builderForValue.build();
       } else {
@@ -875,8 +816,6 @@ public Builder setStartOffset(com.google.protobuf.Duration.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -890,9 +829,9 @@ public Builder setStartOffset(com.google.protobuf.Duration.Builder builderForVal
      */
     public Builder mergeStartOffset(com.google.protobuf.Duration value) {
       if (startOffsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && startOffset_ != null
-            && startOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          startOffset_ != null &&
+          startOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getStartOffsetBuilder().mergeFrom(value);
         } else {
           startOffset_ = value;
@@ -905,8 +844,6 @@ public Builder mergeStartOffset(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.
@@ -929,8 +866,6 @@ public Builder clearStartOffset() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -948,8 +883,6 @@ public com.google.protobuf.Duration.Builder getStartOffsetBuilder() {
       return getStartOffsetFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -965,14 +898,11 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
       if (startOffsetBuilder_ != null) {
         return startOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return startOffset_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : startOffset_;
+        return startOffset_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : startOffset_;
       }
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -985,17 +915,14 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
      * .google.protobuf.Duration start_offset = 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> 
         getStartOffsetFieldBuilder() {
       if (startOffsetBuilder_ == null) {
-        startOffsetBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getStartOffset(), getParentForChildren(), isClean());
+        startOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getStartOffset(),
+                getParentForChildren(),
+                isClean());
         startOffset_ = null;
       }
       return startOffsetBuilder_;
@@ -1003,13 +930,8 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
 
     private com.google.protobuf.Duration endOffset_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        endOffsetBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> endOffsetBuilder_;
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1020,15 +942,12 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
      * 
* * .google.protobuf.Duration end_offset = 2; - * * @return Whether the endOffset field is set. */ public boolean hasEndOffset() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1039,7 +958,6 @@ public boolean hasEndOffset() {
      * 
* * .google.protobuf.Duration end_offset = 2; - * * @return The endOffset. */ public com.google.protobuf.Duration getEndOffset() { @@ -1050,8 +968,6 @@ public com.google.protobuf.Duration getEndOffset() { } } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1077,8 +993,6 @@ public Builder setEndOffset(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.
@@ -1090,7 +1004,8 @@ public Builder setEndOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration end_offset = 2;
      */
-    public Builder setEndOffset(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setEndOffset(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (endOffsetBuilder_ == null) {
         endOffset_ = builderForValue.build();
       } else {
@@ -1101,8 +1016,6 @@ public Builder setEndOffset(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.
@@ -1116,9 +1029,9 @@ public Builder setEndOffset(com.google.protobuf.Duration.Builder builderForValue
      */
     public Builder mergeEndOffset(com.google.protobuf.Duration value) {
       if (endOffsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && endOffset_ != null
-            && endOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          endOffset_ != null &&
+          endOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getEndOffsetBuilder().mergeFrom(value);
         } else {
           endOffset_ = value;
@@ -1131,8 +1044,6 @@ public Builder mergeEndOffset(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.
@@ -1155,8 +1066,6 @@ public Builder clearEndOffset() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1174,8 +1083,6 @@ public com.google.protobuf.Duration.Builder getEndOffsetBuilder() {
       return getEndOffsetFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1191,12 +1098,11 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
       if (endOffsetBuilder_ != null) {
         return endOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return endOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endOffset_;
+        return endOffset_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : endOffset_;
       }
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1209,17 +1115,14 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
      * .google.protobuf.Duration end_offset = 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> 
         getEndOffsetFieldBuilder() {
       if (endOffsetBuilder_ == null) {
-        endOffsetBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getEndOffset(), getParentForChildren(), isClean());
+        endOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getEndOffset(),
+                getParentForChildren(),
+                isClean());
         endOffset_ = null;
       }
       return endOffsetBuilder_;
@@ -1227,20 +1130,18 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
 
     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; @@ -1249,21 +1150,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 { @@ -1271,35 +1171,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWord( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } word_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @return This builder for chaining. */ public Builder clearWord() { @@ -1309,21 +1202,17 @@ public Builder clearWord() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); word_ = value; bitField0_ |= 0x00000004; @@ -1331,10 +1220,8 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) { 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
@@ -1347,7 +1234,6 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1355,8 +1241,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
@@ -1369,20 +1253,17 @@ public float getConfidence() {
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000008; 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
@@ -1395,7 +1276,6 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -1407,8 +1287,6 @@ public Builder clearConfidence() { private java.lang.Object speakerLabel_ = ""; /** - * - * *
      * A distinct label is assigned for every speaker within the audio. This field
      * specifies which one of those speakers was detected to have spoken this
@@ -1418,13 +1296,13 @@ public Builder clearConfidence() {
      * 
* * string speaker_label = 6; - * * @return The speakerLabel. */ public java.lang.String getSpeakerLabel() { java.lang.Object ref = speakerLabel_; 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(); speakerLabel_ = s; return s; @@ -1433,8 +1311,6 @@ public java.lang.String getSpeakerLabel() { } } /** - * - * *
      * A distinct label is assigned for every speaker within the audio. This field
      * specifies which one of those speakers was detected to have spoken this
@@ -1444,14 +1320,15 @@ public java.lang.String getSpeakerLabel() {
      * 
* * string speaker_label = 6; - * * @return The bytes for speakerLabel. */ - public com.google.protobuf.ByteString getSpeakerLabelBytes() { + public com.google.protobuf.ByteString + getSpeakerLabelBytes() { java.lang.Object ref = speakerLabel_; 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); speakerLabel_ = b; return b; } else { @@ -1459,8 +1336,6 @@ public com.google.protobuf.ByteString getSpeakerLabelBytes() { } } /** - * - * *
      * A distinct label is assigned for every speaker within the audio. This field
      * specifies which one of those speakers was detected to have spoken this
@@ -1470,22 +1345,18 @@ public com.google.protobuf.ByteString getSpeakerLabelBytes() {
      * 
* * string speaker_label = 6; - * * @param value The speakerLabel to set. * @return This builder for chaining. */ - public Builder setSpeakerLabel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpeakerLabel( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } speakerLabel_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * A distinct label is assigned for every speaker within the audio. This field
      * specifies which one of those speakers was detected to have spoken this
@@ -1495,7 +1366,6 @@ public Builder setSpeakerLabel(java.lang.String value) {
      * 
* * string speaker_label = 6; - * * @return This builder for chaining. */ public Builder clearSpeakerLabel() { @@ -1505,8 +1375,6 @@ public Builder clearSpeakerLabel() { return this; } /** - * - * *
      * A distinct label is assigned for every speaker within the audio. This field
      * specifies which one of those speakers was detected to have spoken this
@@ -1516,23 +1384,21 @@ public Builder clearSpeakerLabel() {
      * 
* * string speaker_label = 6; - * * @param value The bytes for speakerLabel to set. * @return This builder for chaining. */ - public Builder setSpeakerLabelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSpeakerLabelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); speakerLabel_ = value; bitField0_ |= 0x00000010; 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); } @@ -1542,12 +1408,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.WordInfo) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.WordInfo) private static final com.google.cloud.speech.v2.WordInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.WordInfo(); } @@ -1556,27 +1422,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1591,4 +1457,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java similarity index 86% rename from java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java index c6c183016e20..c58cbf30568e 100644 --- a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java +++ b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface WordInfoOrBuilder - extends +public interface WordInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.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_offset = 1; - * * @return Whether the startOffset field is set. */ boolean hasStartOffset(); /** - * - * *
    * 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_offset = 1; - * * @return The startOffset. */ com.google.protobuf.Duration getStartOffset(); /** - * - * *
    * 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 getStartOffsetOrBuilder();
 
   /**
-   *
-   *
    * 
    * 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_offset = 2; - * * @return Whether the endOffset field is set. */ boolean hasEndOffset(); /** - * - * *
    * 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_offset = 2; - * * @return The endOffset. */ com.google.protobuf.Duration getEndOffset(); /** - * - * *
    * 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 getEndOffsetOrBuilder();
 
   /**
-   *
-   *
    * 
    * 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
@@ -163,14 +124,11 @@ public interface WordInfoOrBuilder
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); /** - * - * *
    * A distinct label is assigned for every speaker within the audio. This field
    * specifies which one of those speakers was detected to have spoken this
@@ -180,13 +138,10 @@ public interface WordInfoOrBuilder
    * 
* * string speaker_label = 6; - * * @return The speakerLabel. */ java.lang.String getSpeakerLabel(); /** - * - * *
    * A distinct label is assigned for every speaker within the audio. This field
    * specifies which one of those speakers was detected to have spoken this
@@ -196,8 +151,8 @@ public interface WordInfoOrBuilder
    * 
* * string speaker_label = 6; - * * @return The bytes for speakerLabel. */ - com.google.protobuf.ByteString getSpeakerLabelBytes(); + com.google.protobuf.ByteString + getSpeakerLabelBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto similarity index 100% rename from java-speech/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto rename to owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognize.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognize.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognizeLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognizeLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognizeLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognizeLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognize.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognize.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeRecognizernameRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeRecognizernameRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeRecognizernameRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeRecognizernameRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeStringRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeStringRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeStringRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeStringRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetEndpoint.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClass.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClass.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClassLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClassLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClassLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClassLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClass.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClass.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassStringCustomclassString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassStringCustomclassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassStringCustomclassString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassStringCustomclassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSet.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSet.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSetLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSetLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSetLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSetLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSet.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSet.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizerLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizerLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizerLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizerLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerLocationnameRecognizerString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerLocationnameRecognizerString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerLocationnameRecognizerString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerLocationnameRecognizerString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerStringRecognizerString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerStringRecognizerString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerStringRecognizerString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerStringRecognizerString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClass.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClass.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClassLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClassLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClassLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClassLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClass.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClass.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassCustomclassname.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassCustomclassname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassCustomclassname.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassCustomclassname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSet.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSet.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSetLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSetLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSetLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSetLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSet.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSet.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetPhrasesetname.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetPhrasesetname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetPhrasesetname.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetPhrasesetname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizerLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizerLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizerLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizerLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerRecognizername.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerRecognizername.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerRecognizername.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerRecognizername.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/AsyncGetConfig.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/AsyncGetConfig.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/AsyncGetConfig.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/AsyncGetConfig.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfig.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfig.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfig.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfig.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigConfigname.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigConfigname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigConfigname.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigConfigname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/AsyncGetCustomClass.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/AsyncGetCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/AsyncGetCustomClass.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/AsyncGetCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClass.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClass.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassCustomclassname.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassCustomclassname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassCustomclassname.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassCustomclassname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/AsyncGetPhraseSet.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/AsyncGetPhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/AsyncGetPhraseSet.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/AsyncGetPhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSet.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSet.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetPhrasesetname.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetPhrasesetname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetPhrasesetname.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetPhrasesetname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/AsyncGetRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/AsyncGetRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/AsyncGetRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/AsyncGetRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerRecognizername.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerRecognizername.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerRecognizername.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerRecognizername.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClasses.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClasses.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClasses.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClasses.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClassesPaged.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClassesPaged.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClassesPaged.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClassesPaged.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClasses.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClasses.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClasses.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClasses.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesLocationname.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesLocationname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesLocationname.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesLocationname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSets.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSets.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSets.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSets.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSetsPaged.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSetsPaged.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSetsPaged.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSetsPaged.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSets.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSets.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSets.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSets.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsLocationname.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsLocationname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsLocationname.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsLocationname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizers.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizers.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizers.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizers.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizersPaged.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizersPaged.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizersPaged.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizersPaged.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizers.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizers.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizers.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizers.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersLocationname.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersLocationname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersLocationname.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersLocationname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/AsyncRecognize.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/AsyncRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/AsyncRecognize.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/AsyncRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognize.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognize.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskBytestring.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskBytestring.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskBytestring.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskBytestring.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskBytestring.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskBytestring.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskBytestring.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskBytestring.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/streamingrecognize/AsyncStreamingRecognize.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/streamingrecognize/AsyncStreamingRecognize.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/streamingrecognize/AsyncStreamingRecognize.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/streamingrecognize/AsyncStreamingRecognize.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClass.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClass.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClassLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClassLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClassLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClassLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClass.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClass.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassCustomclassname.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassCustomclassname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassCustomclassname.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassCustomclassname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSet.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSet.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSetLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSetLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSetLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSetLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSet.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSet.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetPhrasesetname.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetPhrasesetname.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetPhrasesetname.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetPhrasesetname.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizerLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizerLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizerLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizerLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerRecognizername.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerRecognizername.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerRecognizername.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerRecognizername.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerString.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerString.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerString.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerString.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/AsyncUpdateConfig.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/AsyncUpdateConfig.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/AsyncUpdateConfig.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/AsyncUpdateConfig.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfig.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfig.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfig.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfig.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfigConfigFieldmask.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfigConfigFieldmask.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfigConfigFieldmask.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfigConfigFieldmask.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClass.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClass.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClassLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClassLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClassLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClassLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClass.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClass.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClass.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClass.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSet.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSet.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSetLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSetLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSetLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSetLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSet.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSet.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSet.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSet.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizerLRO.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizerLRO.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizerLRO.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizerLRO.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizerRecognizerFieldmask.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizerRecognizerFieldmask.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizerRecognizerFieldmask.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizerRecognizerFieldmask.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speechsettings/getrecognizer/SyncGetRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speechsettings/getrecognizer/SyncGetRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speechsettings/getrecognizer/SyncGetRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speechsettings/getrecognizer/SyncGetRecognizer.java diff --git a/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/stub/speechstubsettings/getrecognizer/SyncGetRecognizer.java b/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/stub/speechstubsettings/getrecognizer/SyncGetRecognizer.java similarity index 100% rename from java-speech/samples/snippets/generated/com/google/cloud/speech/v2/stub/speechstubsettings/getrecognizer/SyncGetRecognizer.java rename to owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/stub/speechstubsettings/getrecognizer/SyncGetRecognizer.java From bf6d700281fa9951815963c90421d8e9bd894252 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 2 Feb 2023 00:17:09 +0000 Subject: [PATCH 4/4] =?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 | 0 .../cloud/speech/v1/AdaptationSettings.java | 1 - .../google/cloud/speech/v1/SpeechClient.java | 0 .../cloud/speech/v1/SpeechSettings.java | 1 - .../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 | 0 .../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 | 0 .../speech/v1p1beta1/AdaptationClient.java | 0 .../speech/v1p1beta1/AdaptationSettings.java | 1 - .../cloud/speech/v1p1beta1/SpeechClient.java | 0 .../speech/v1p1beta1/SpeechSettings.java | 1 - .../speech/v1p1beta1/gapic_metadata.json | 0 .../cloud/speech/v1p1beta1/package-info.java | 0 .../speech/v1p1beta1/stub/AdaptationStub.java | 0 .../stub/AdaptationStubSettings.java | 0 .../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 | 0 .../google/cloud/speech/v2/SpeechClient.java | 0 .../cloud/speech/v2/SpeechSettings.java | 1 - .../cloud/speech/v2/gapic_metadata.json | 0 .../google/cloud/speech/v2/package-info.java | 0 .../v2/stub/GrpcSpeechCallableFactory.java | 0 .../cloud/speech/v2/stub/GrpcSpeechStub.java | 1 - .../stub/HttpJsonSpeechCallableFactory.java | 0 .../speech/v2/stub/HttpJsonSpeechStub.java | 1 - .../cloud/speech/v2/stub/SpeechStub.java | 0 .../speech/v2/stub/SpeechStubSettings.java | 0 .../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 | 0 .../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 | 0 .../speech/v1p1beta1/SpeechClientTest.java | 0 .../google/cloud/speech/v2/MockSpeech.java | 0 .../cloud/speech/v2/MockSpeechImpl.java | 0 .../speech/v2/SpeechClientHttpJsonTest.java | 0 .../cloud/speech/v2/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 ++++ .../google/cloud/speech/v2/SpeechGrpc.java | 2830 +++++++++++++++++ .../speech/v1/CreateCustomClassRequest.java | 571 ++-- .../v1/CreateCustomClassRequestOrBuilder.java | 64 +- .../speech/v1/CreatePhraseSetRequest.java | 570 ++-- .../v1/CreatePhraseSetRequestOrBuilder.java | 64 +- .../google/cloud/speech/v1/CustomClass.java | 856 +++-- .../cloud/speech/v1/CustomClassName.java | 0 .../cloud/speech/v1/CustomClassOrBuilder.java | 54 +- .../speech/v1/DeleteCustomClassRequest.java | 353 +- .../v1/DeleteCustomClassRequestOrBuilder.java | 35 +- .../speech/v1/DeletePhraseSetRequest.java | 353 +- .../v1/DeletePhraseSetRequestOrBuilder.java | 56 + .../speech/v1/GetCustomClassRequest.java | 353 +- .../v1/GetCustomClassRequestOrBuilder.java | 56 + .../cloud/speech/v1/GetPhraseSetRequest.java | 346 +- .../v1/GetPhraseSetRequestOrBuilder.java | 35 +- .../speech/v1/ListCustomClassesRequest.java | 458 +-- .../v1/ListCustomClassesRequestOrBuilder.java | 47 +- .../speech/v1/ListCustomClassesResponse.java | 481 +-- .../ListCustomClassesResponseOrBuilder.java | 45 +- .../cloud/speech/v1/ListPhraseSetRequest.java | 454 +-- .../v1/ListPhraseSetRequestOrBuilder.java | 47 +- .../speech/v1/ListPhraseSetResponse.java | 485 +-- .../v1/ListPhraseSetResponseOrBuilder.java | 45 +- .../google/cloud/speech/v1/LocationName.java | 0 .../v1/LongRunningRecognizeMetadata.java | 542 ++-- ...LongRunningRecognizeMetadataOrBuilder.java | 46 +- .../v1/LongRunningRecognizeRequest.java | 693 ++-- .../LongRunningRecognizeRequestOrBuilder.java | 78 +- .../v1/LongRunningRecognizeResponse.java | 835 +++-- ...LongRunningRecognizeResponseOrBuilder.java | 71 +- .../com/google/cloud/speech/v1/PhraseSet.java | 854 +++-- .../google/cloud/speech/v1/PhraseSetName.java | 0 .../cloud/speech/v1/PhraseSetOrBuilder.java | 48 +- .../cloud/speech/v1/RecognitionAudio.java | 433 +-- .../speech/v1/RecognitionAudioOrBuilder.java | 36 +- .../cloud/speech/v1/RecognitionConfig.java | 1646 ++++++---- .../speech/v1/RecognitionConfigOrBuilder.java | 145 +- .../cloud/speech/v1/RecognitionMetadata.java | 1201 ++++--- .../v1/RecognitionMetadataOrBuilder.java | 93 +- .../cloud/speech/v1/RecognizeRequest.java | 539 ++-- .../speech/v1/RecognizeRequestOrBuilder.java | 110 + .../cloud/speech/v1/RecognizeResponse.java | 646 ++-- .../speech/v1/RecognizeResponseOrBuilder.java | 55 +- .../speech/v1/SpeakerDiarizationConfig.java | 431 ++- .../v1/SpeakerDiarizationConfigOrBuilder.java | 40 +- .../cloud/speech/v1/SpeechAdaptation.java | 1163 ++++--- .../cloud/speech/v1/SpeechAdaptationInfo.java | 357 ++- .../v1/SpeechAdaptationInfoOrBuilder.java | 30 +- .../speech/v1/SpeechAdaptationOrBuilder.java | 92 +- .../speech/v1/SpeechAdaptationProto.java | 311 ++ .../google/cloud/speech/v1/SpeechContext.java | 380 ++- .../speech/v1/SpeechContextOrBuilder.java | 39 +- .../google/cloud/speech/v1/SpeechProto.java | 495 +++ .../v1/SpeechRecognitionAlternative.java | 524 +-- ...SpeechRecognitionAlternativeOrBuilder.java | 49 +- .../speech/v1/SpeechRecognitionResult.java | 625 ++-- .../v1/SpeechRecognitionResultOrBuilder.java | 53 +- .../cloud/speech/v1/SpeechResourceProto.java | 155 + .../speech/v1/StreamingRecognitionConfig.java | 476 +-- .../StreamingRecognitionConfigOrBuilder.java | 44 +- .../speech/v1/StreamingRecognitionResult.java | 700 ++-- .../StreamingRecognitionResultOrBuilder.java | 59 +- .../speech/v1/StreamingRecognizeRequest.java | 459 +-- .../StreamingRecognizeRequestOrBuilder.java | 35 +- .../speech/v1/StreamingRecognizeResponse.java | 891 ++++-- .../StreamingRecognizeResponseOrBuilder.java | 75 +- .../speech/v1/TranscriptOutputConfig.java | 383 ++- .../v1/TranscriptOutputConfigOrBuilder.java | 30 +- .../speech/v1/UpdateCustomClassRequest.java | 491 +-- .../v1/UpdateCustomClassRequestOrBuilder.java | 46 +- .../speech/v1/UpdatePhraseSetRequest.java | 490 +-- .../v1/UpdatePhraseSetRequestOrBuilder.java | 46 +- .../com/google/cloud/speech/v1/WordInfo.java | 546 ++-- .../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 | 571 ++-- .../CreateCustomClassRequestOrBuilder.java | 64 +- .../v1p1beta1/CreatePhraseSetRequest.java | 570 ++-- .../CreatePhraseSetRequestOrBuilder.java | 64 +- .../cloud/speech/v1p1beta1/CustomClass.java | 863 +++-- .../speech/v1p1beta1/CustomClassName.java | 0 .../v1p1beta1/CustomClassOrBuilder.java | 54 +- .../v1p1beta1/DeleteCustomClassRequest.java | 356 ++- .../DeleteCustomClassRequestOrBuilder.java | 35 +- .../v1p1beta1/DeletePhraseSetRequest.java | 356 ++- .../DeletePhraseSetRequestOrBuilder.java | 56 + .../v1p1beta1/GetCustomClassRequest.java | 356 ++- .../GetCustomClassRequestOrBuilder.java | 56 + .../speech/v1p1beta1/GetPhraseSetRequest.java | 356 ++- .../GetPhraseSetRequestOrBuilder.java | 35 +- .../v1p1beta1/ListCustomClassesRequest.java | 461 +-- .../ListCustomClassesRequestOrBuilder.java | 47 +- .../v1p1beta1/ListCustomClassesResponse.java | 466 +-- .../ListCustomClassesResponseOrBuilder.java | 45 +- .../v1p1beta1/ListPhraseSetRequest.java | 461 +-- .../ListPhraseSetRequestOrBuilder.java | 47 +- .../v1p1beta1/ListPhraseSetResponse.java | 489 +-- .../ListPhraseSetResponseOrBuilder.java | 45 +- .../cloud/speech/v1p1beta1/LocationName.java | 0 .../LongRunningRecognizeMetadata.java | 718 +++-- ...LongRunningRecognizeMetadataOrBuilder.java | 66 +- .../LongRunningRecognizeRequest.java | 710 +++-- .../LongRunningRecognizeRequestOrBuilder.java | 78 +- .../LongRunningRecognizeResponse.java | 878 +++-- ...LongRunningRecognizeResponseOrBuilder.java | 74 +- .../cloud/speech/v1p1beta1/PhraseSet.java | 864 +++-- .../cloud/speech/v1p1beta1/PhraseSetName.java | 0 .../speech/v1p1beta1/PhraseSetOrBuilder.java | 48 +- .../speech/v1p1beta1/RecognitionAudio.java | 440 +-- .../v1p1beta1/RecognitionAudioOrBuilder.java | 36 +- .../speech/v1p1beta1/RecognitionConfig.java | 1943 +++++++---- .../v1p1beta1/RecognitionConfigOrBuilder.java | 188 +- .../speech/v1p1beta1/RecognitionMetadata.java | 1314 +++++--- .../RecognitionMetadataOrBuilder.java | 116 +- .../speech/v1p1beta1/RecognizeRequest.java | 541 ++-- .../v1p1beta1/RecognizeRequestOrBuilder.java | 110 + .../speech/v1p1beta1/RecognizeResponse.java | 667 ++-- .../v1p1beta1/RecognizeResponseOrBuilder.java | 58 +- .../v1p1beta1/SpeakerDiarizationConfig.java | 418 ++- .../SpeakerDiarizationConfigOrBuilder.java | 36 +- .../speech/v1p1beta1/SpeechAdaptation.java | 1189 ++++--- .../v1p1beta1/SpeechAdaptationInfo.java | 364 ++- .../SpeechAdaptationInfoOrBuilder.java | 30 +- .../v1p1beta1/SpeechAdaptationOrBuilder.java | 92 +- .../v1p1beta1/SpeechAdaptationProto.java | 318 ++ .../cloud/speech/v1p1beta1/SpeechContext.java | 389 ++- .../v1p1beta1/SpeechContextOrBuilder.java | 39 +- .../cloud/speech/v1p1beta1/SpeechProto.java | 513 +++ .../SpeechRecognitionAlternative.java | 545 ++-- ...SpeechRecognitionAlternativeOrBuilder.java | 48 +- .../v1p1beta1/SpeechRecognitionResult.java | 723 +++-- .../SpeechRecognitionResultOrBuilder.java | 67 +- .../speech/v1p1beta1/SpeechResourceProto.java | 190 ++ .../v1p1beta1/StreamingRecognitionConfig.java | 484 +-- .../StreamingRecognitionConfigOrBuilder.java | 44 +- .../v1p1beta1/StreamingRecognitionResult.java | 805 +++-- .../StreamingRecognitionResultOrBuilder.java | 73 +- .../v1p1beta1/StreamingRecognizeRequest.java | 470 +-- .../StreamingRecognizeRequestOrBuilder.java | 38 +- .../v1p1beta1/StreamingRecognizeResponse.java | 930 ++++-- .../StreamingRecognizeResponseOrBuilder.java | 77 +- .../v1p1beta1/TranscriptNormalization.java | 971 +++--- .../TranscriptNormalizationOrBuilder.java | 33 +- .../v1p1beta1/TranscriptOutputConfig.java | 389 ++- .../TranscriptOutputConfigOrBuilder.java | 33 +- .../v1p1beta1/UpdateCustomClassRequest.java | 491 +-- .../UpdateCustomClassRequestOrBuilder.java | 46 +- .../v1p1beta1/UpdatePhraseSetRequest.java | 490 +-- .../UpdatePhraseSetRequestOrBuilder.java | 46 +- .../cloud/speech/v1p1beta1/WordInfo.java | 553 ++-- .../speech/v1p1beta1/WordInfoOrBuilder.java | 49 +- .../cloud/speech/v1p1beta1/cloud_speech.proto | 0 .../v1p1beta1/cloud_speech_adaptation.proto | 0 .../cloud/speech/v1p1beta1/resource.proto | 0 .../speech/v2/AutoDetectDecodingConfig.java | 251 +- .../v2/AutoDetectDecodingConfigOrBuilder.java | 24 + .../speech/v2/BatchRecognizeFileMetadata.java | 572 ++-- .../BatchRecognizeFileMetadataOrBuilder.java | 46 +- .../speech/v2/BatchRecognizeFileResult.java | 403 ++- .../v2/BatchRecognizeFileResultOrBuilder.java | 35 +- .../speech/v2/BatchRecognizeMetadata.java | 584 ++-- .../v2/BatchRecognizeMetadataOrBuilder.java | 96 + .../speech/v2/BatchRecognizeRequest.java | 687 ++-- .../v2/BatchRecognizeRequestOrBuilder.java | 69 +- .../speech/v2/BatchRecognizeResponse.java | 504 +-- .../v2/BatchRecognizeResponseOrBuilder.java | 47 +- .../BatchRecognizeTranscriptionMetadata.java | 463 +-- ...cognizeTranscriptionMetadataOrBuilder.java | 38 +- .../cloud/speech/v2/CloudSpeechProto.java | 1346 ++++++++ .../com/google/cloud/speech/v2/Config.java | 545 ++-- .../google/cloud/speech/v2/ConfigName.java | 0 .../cloud/speech/v2/ConfigOrBuilder.java | 61 +- .../speech/v2/CreateCustomClassRequest.java | 607 ++-- .../v2/CreateCustomClassRequestOrBuilder.java | 67 +- .../speech/v2/CreatePhraseSetRequest.java | 606 ++-- .../v2/CreatePhraseSetRequestOrBuilder.java | 67 +- .../speech/v2/CreateRecognizerRequest.java | 606 ++-- .../v2/CreateRecognizerRequestOrBuilder.java | 67 +- .../google/cloud/speech/v2/CustomClass.java | 2161 ++++++++----- .../cloud/speech/v2/CustomClassName.java | 0 .../cloud/speech/v2/CustomClassOrBuilder.java | 221 +- .../speech/v2/DeleteCustomClassRequest.java | 497 +-- .../v2/DeleteCustomClassRequestOrBuilder.java | 50 +- .../speech/v2/DeletePhraseSetRequest.java | 497 +-- .../v2/DeletePhraseSetRequestOrBuilder.java | 50 +- .../speech/v2/DeleteRecognizerRequest.java | 497 +-- .../v2/DeleteRecognizerRequestOrBuilder.java | 50 +- .../speech/v2/ExplicitDecodingConfig.java | 493 +-- .../v2/ExplicitDecodingConfigOrBuilder.java | 38 +- .../cloud/speech/v2/GetConfigRequest.java | 346 +- .../speech/v2/GetConfigRequestOrBuilder.java | 58 + .../speech/v2/GetCustomClassRequest.java | 353 +- .../v2/GetCustomClassRequestOrBuilder.java | 56 + .../cloud/speech/v2/GetPhraseSetRequest.java | 346 +- .../v2/GetPhraseSetRequestOrBuilder.java | 56 + .../cloud/speech/v2/GetRecognizerRequest.java | 349 +- .../v2/GetRecognizerRequestOrBuilder.java | 56 + .../speech/v2/ListCustomClassesRequest.java | 494 +-- .../v2/ListCustomClassesRequestOrBuilder.java | 50 +- .../speech/v2/ListCustomClassesResponse.java | 481 +-- .../ListCustomClassesResponseOrBuilder.java | 45 +- .../speech/v2/ListPhraseSetsRequest.java | 494 +-- .../v2/ListPhraseSetsRequestOrBuilder.java | 50 +- .../speech/v2/ListPhraseSetsResponse.java | 485 +-- .../v2/ListPhraseSetsResponseOrBuilder.java | 45 +- .../speech/v2/ListRecognizersRequest.java | 494 +-- .../v2/ListRecognizersRequestOrBuilder.java | 50 +- .../speech/v2/ListRecognizersResponse.java | 486 +-- .../v2/ListRecognizersResponseOrBuilder.java | 45 +- .../google/cloud/speech/v2/LocationName.java | 0 .../cloud/speech/v2/OperationMetadata.java | 2660 +++++++++++----- .../speech/v2/OperationMetadataOrBuilder.java | 229 +- .../com/google/cloud/speech/v2/PhraseSet.java | 2231 ++++++++----- .../google/cloud/speech/v2/PhraseSetName.java | 0 .../cloud/speech/v2/PhraseSetOrBuilder.java | 224 +- .../cloud/speech/v2/RecognitionConfig.java | 696 ++-- .../speech/v2/RecognitionConfigOrBuilder.java | 50 +- .../cloud/speech/v2/RecognitionFeatures.java | 757 +++-- .../v2/RecognitionFeaturesOrBuilder.java | 59 +- .../v2/RecognitionResponseMetadata.java | 360 ++- .../RecognitionResponseMetadataOrBuilder.java | 26 +- .../cloud/speech/v2/RecognizeRequest.java | 716 +++-- .../speech/v2/RecognizeRequestOrBuilder.java | 69 +- .../cloud/speech/v2/RecognizeResponse.java | 495 +-- .../speech/v2/RecognizeResponseOrBuilder.java | 44 +- .../google/cloud/speech/v2/Recognizer.java | 1977 +++++++----- .../cloud/speech/v2/RecognizerName.java | 0 .../cloud/speech/v2/RecognizerOrBuilder.java | 238 +- .../speech/v2/SpeakerDiarizationConfig.java | 322 +- .../v2/SpeakerDiarizationConfigOrBuilder.java | 24 +- .../cloud/speech/v2/SpeechAdaptation.java | 1184 ++++--- .../speech/v2/SpeechAdaptationOrBuilder.java | 65 +- .../v2/SpeechRecognitionAlternative.java | 524 +-- ...SpeechRecognitionAlternativeOrBuilder.java | 49 +- .../speech/v2/SpeechRecognitionResult.java | 625 ++-- .../v2/SpeechRecognitionResultOrBuilder.java | 53 +- .../speech/v2/StreamingRecognitionConfig.java | 607 ++-- .../StreamingRecognitionConfigOrBuilder.java | 54 +- .../v2/StreamingRecognitionFeatures.java | 1078 ++++--- ...StreamingRecognitionFeaturesOrBuilder.java | 50 +- .../speech/v2/StreamingRecognitionResult.java | 700 ++-- .../StreamingRecognitionResultOrBuilder.java | 59 +- .../speech/v2/StreamingRecognizeRequest.java | 556 ++-- .../StreamingRecognizeRequestOrBuilder.java | 52 +- .../speech/v2/StreamingRecognizeResponse.java | 777 +++-- .../StreamingRecognizeResponseOrBuilder.java | 64 +- .../speech/v2/UndeleteCustomClassRequest.java | 464 +-- .../UndeleteCustomClassRequestOrBuilder.java | 47 +- .../speech/v2/UndeletePhraseSetRequest.java | 461 +-- .../v2/UndeletePhraseSetRequestOrBuilder.java | 47 +- .../speech/v2/UndeleteRecognizerRequest.java | 461 +-- .../UndeleteRecognizerRequestOrBuilder.java | 47 +- .../cloud/speech/v2/UpdateConfigRequest.java | 457 +-- .../v2/UpdateConfigRequestOrBuilder.java | 43 +- .../speech/v2/UpdateCustomClassRequest.java | 527 +-- .../v2/UpdateCustomClassRequestOrBuilder.java | 49 +- .../speech/v2/UpdatePhraseSetRequest.java | 526 +-- .../v2/UpdatePhraseSetRequestOrBuilder.java | 49 +- .../speech/v2/UpdateRecognizerRequest.java | 526 +-- .../v2/UpdateRecognizerRequestOrBuilder.java | 49 +- .../com/google/cloud/speech/v2/WordInfo.java | 592 ++-- .../cloud/speech/v2/WordInfoOrBuilder.java | 55 +- .../google/cloud/speech/v2/cloud_speech.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 | 0 .../SyncDeleteCustomClassCustomclassname.java | 0 .../SyncDeleteCustomClassString.java | 0 .../deletephraseset/AsyncDeletePhraseSet.java | 0 .../deletephraseset/SyncDeletePhraseSet.java | 0 .../SyncDeletePhraseSetPhrasesetname.java | 0 .../SyncDeletePhraseSetString.java | 0 .../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 .../speech/create/SyncCreateSetEndpoint.java | 0 .../AsyncLongRunningRecognize.java | 0 .../AsyncLongRunningRecognizeLRO.java | 0 .../SyncLongRunningRecognize.java | 0 ...nizeRecognitionconfigRecognitionaudio.java | 0 .../v1/speech/recognize/AsyncRecognize.java | 0 .../v1/speech/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 | 0 ...ateCustomClassStringCustomclassString.java | 0 .../createphraseset/AsyncCreatePhraseSet.java | 0 .../createphraseset/SyncCreatePhraseSet.java | 0 ...ePhraseSetLocationnamePhrasesetString.java | 0 ...cCreatePhraseSetStringPhrasesetString.java | 0 .../AsyncDeleteCustomClass.java | 0 .../SyncDeleteCustomClass.java | 0 .../SyncDeleteCustomClassCustomclassname.java | 0 .../SyncDeleteCustomClassString.java | 0 .../deletephraseset/AsyncDeletePhraseSet.java | 0 .../deletephraseset/SyncDeletePhraseSet.java | 0 .../SyncDeletePhraseSetPhrasesetname.java | 0 .../SyncDeletePhraseSetString.java | 0 .../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 .../speech/create/SyncCreateSetEndpoint.java | 0 .../AsyncLongRunningRecognize.java | 0 .../AsyncLongRunningRecognizeLRO.java | 0 .../SyncLongRunningRecognize.java | 0 ...nizeRecognitionconfigRecognitionaudio.java | 0 .../speech/recognize/AsyncRecognize.java | 0 .../speech/recognize/SyncRecognize.java | 0 ...nizeRecognitionconfigRecognitionaudio.java | 0 .../AsyncStreamingRecognize.java | 0 .../recognize/SyncRecognize.java | 0 .../createphraseset/SyncCreatePhraseSet.java | 0 .../recognize/SyncRecognize.java | 0 .../batchrecognize/AsyncBatchRecognize.java | 0 .../AsyncBatchRecognizeLRO.java | 0 .../batchrecognize/SyncBatchRecognize.java | 0 ...eldmaskListbatchrecognizefilemetadata.java | 0 ...eldmaskListbatchrecognizefilemetadata.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../speech/create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateCustomClass.java | 0 .../AsyncCreateCustomClassLRO.java | 0 .../SyncCreateCustomClass.java | 0 ...tomClassLocationnameCustomclassString.java | 0 ...ateCustomClassStringCustomclassString.java | 0 .../createphraseset/AsyncCreatePhraseSet.java | 0 .../AsyncCreatePhraseSetLRO.java | 0 .../createphraseset/SyncCreatePhraseSet.java | 0 ...ePhraseSetLocationnamePhrasesetString.java | 0 ...cCreatePhraseSetStringPhrasesetString.java | 0 .../AsyncCreateRecognizer.java | 0 .../AsyncCreateRecognizerLRO.java | 0 .../SyncCreateRecognizer.java | 0 ...ecognizerLocationnameRecognizerString.java | 0 ...reateRecognizerStringRecognizerString.java | 0 .../AsyncDeleteCustomClass.java | 0 .../AsyncDeleteCustomClassLRO.java | 0 .../SyncDeleteCustomClass.java | 0 .../SyncDeleteCustomClassCustomclassname.java | 0 .../SyncDeleteCustomClassString.java | 0 .../deletephraseset/AsyncDeletePhraseSet.java | 0 .../AsyncDeletePhraseSetLRO.java | 0 .../deletephraseset/SyncDeletePhraseSet.java | 0 .../SyncDeletePhraseSetPhrasesetname.java | 0 .../SyncDeletePhraseSetString.java | 0 .../AsyncDeleteRecognizer.java | 0 .../AsyncDeleteRecognizerLRO.java | 0 .../SyncDeleteRecognizer.java | 0 .../SyncDeleteRecognizerRecognizername.java | 0 .../SyncDeleteRecognizerString.java | 0 .../v2/speech/getconfig/AsyncGetConfig.java | 0 .../v2/speech/getconfig/SyncGetConfig.java | 0 .../getconfig/SyncGetConfigConfigname.java | 0 .../speech/getconfig/SyncGetConfigString.java | 0 .../getcustomclass/AsyncGetCustomClass.java | 0 .../getcustomclass/SyncGetCustomClass.java | 0 .../SyncGetCustomClassCustomclassname.java | 0 .../SyncGetCustomClassString.java | 0 .../getphraseset/AsyncGetPhraseSet.java | 0 .../speech/getphraseset/SyncGetPhraseSet.java | 0 .../SyncGetPhraseSetPhrasesetname.java | 0 .../getphraseset/SyncGetPhraseSetString.java | 0 .../getrecognizer/AsyncGetRecognizer.java | 0 .../getrecognizer/SyncGetRecognizer.java | 0 .../SyncGetRecognizerRecognizername.java | 0 .../SyncGetRecognizerString.java | 0 .../AsyncListCustomClasses.java | 0 .../AsyncListCustomClassesPaged.java | 0 .../SyncListCustomClasses.java | 0 .../SyncListCustomClassesLocationname.java | 0 .../SyncListCustomClassesString.java | 0 .../listphrasesets/AsyncListPhraseSets.java | 0 .../AsyncListPhraseSetsPaged.java | 0 .../listphrasesets/SyncListPhraseSets.java | 0 .../SyncListPhraseSetsLocationname.java | 0 .../SyncListPhraseSetsString.java | 0 .../listrecognizers/AsyncListRecognizers.java | 0 .../AsyncListRecognizersPaged.java | 0 .../listrecognizers/SyncListRecognizers.java | 0 .../SyncListRecognizersLocationname.java | 0 .../SyncListRecognizersString.java | 0 .../v2/speech/recognize/AsyncRecognize.java | 0 .../v2/speech/recognize/SyncRecognize.java | 0 ...eRecognitionconfigFieldmaskBytestring.java | 0 ...rnameRecognitionconfigFieldmaskString.java | 0 ...gRecognitionconfigFieldmaskBytestring.java | 0 ...tringRecognitionconfigFieldmaskString.java | 0 .../AsyncStreamingRecognize.java | 0 .../AsyncUndeleteCustomClass.java | 0 .../AsyncUndeleteCustomClassLRO.java | 0 .../SyncUndeleteCustomClass.java | 0 ...yncUndeleteCustomClassCustomclassname.java | 0 .../SyncUndeleteCustomClassString.java | 0 .../AsyncUndeletePhraseSet.java | 0 .../AsyncUndeletePhraseSetLRO.java | 0 .../SyncUndeletePhraseSet.java | 0 .../SyncUndeletePhraseSetPhrasesetname.java | 0 .../SyncUndeletePhraseSetString.java | 0 .../AsyncUndeleteRecognizer.java | 0 .../AsyncUndeleteRecognizerLRO.java | 0 .../SyncUndeleteRecognizer.java | 0 .../SyncUndeleteRecognizerRecognizername.java | 0 .../SyncUndeleteRecognizerString.java | 0 .../updateconfig/AsyncUpdateConfig.java | 0 .../speech/updateconfig/SyncUpdateConfig.java | 0 .../SyncUpdateConfigConfigFieldmask.java | 0 .../AsyncUpdateCustomClass.java | 0 .../AsyncUpdateCustomClassLRO.java | 0 .../SyncUpdateCustomClass.java | 0 ...UpdateCustomClassCustomclassFieldmask.java | 0 .../updatephraseset/AsyncUpdatePhraseSet.java | 0 .../AsyncUpdatePhraseSetLRO.java | 0 .../updatephraseset/SyncUpdatePhraseSet.java | 0 ...SyncUpdatePhraseSetPhrasesetFieldmask.java | 0 .../AsyncUpdateRecognizer.java | 0 .../AsyncUpdateRecognizerLRO.java | 0 .../SyncUpdateRecognizer.java | 0 ...ncUpdateRecognizerRecognizerFieldmask.java | 0 .../getrecognizer/SyncGetRecognizer.java | 0 .../getrecognizer/SyncGetRecognizer.java | 0 .../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 | 427 --- .../cloud/speech/v1/SpeechResourceProto.java | 135 - .../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 | 441 --- .../speech/v1p1beta1/SpeechResourceProto.java | 162 - .../google/cloud/speech/v2/SpeechGrpc.java | 2207 ------------- .../v2/AutoDetectDecodingConfigOrBuilder.java | 9 - .../v2/BatchRecognizeMetadataOrBuilder.java | 63 - .../cloud/speech/v2/CloudSpeechProto.java | 1186 ------- .../speech/v2/GetConfigRequestOrBuilder.java | 33 - .../v2/GetCustomClassRequestOrBuilder.java | 31 - .../v2/GetPhraseSetRequestOrBuilder.java | 31 - .../v2/GetRecognizerRequestOrBuilder.java | 31 - 584 files changed, 64989 insertions(+), 38960 deletions(-) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java (99%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java (99%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java (99%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java (99%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java (99%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java (99%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java (99%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java (99%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java (99%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/gapic_metadata.json (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/package-info.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechCallableFactory.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java (99%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechCallableFactory.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java (99%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeech.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeechImpl.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientTest.java (100%) create mode 100644 java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java create mode 100644 java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java create mode 100644 java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java create mode 100644 java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java create mode 100644 java-speech/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java (67%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java (65%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java (67%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java (65%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java (71%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java (66%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java (59%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java (62%) create mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java (62%) create mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java (66%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java (59%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java (70%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java (72%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java (67%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java (70%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java (69%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java (71%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java (66%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java (70%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java (74%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java (58%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java (51%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java (73%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java (84%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java (75%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java (72%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java (73%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java (79%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java (83%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java (94%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java (71%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java (76%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java (59%) create mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java (72%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java (80%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java (69%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java (64%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java (76%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java (68%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java (58%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java (82%) create mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContext.java (78%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java (85%) create mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternative.java (75%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java (78%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java (75%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java (83%) create mode 100644 java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfig.java (69%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java (76%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java (85%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java (72%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java (79%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java (75%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java (85%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java (67%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java (63%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java (69%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java (73%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java (69%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java (72%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java (76%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java (84%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java (67%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java (65%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java (67%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java (65%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java (72%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java (67%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java (59%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java (64%) create mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java (63%) create mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java (67%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java (59%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java (71%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java (73%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java (69%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java (71%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java (69%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java (71%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java (67%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java (66%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java (58%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java (51%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java (72%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java (83%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java (76%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java (74%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java (73%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java (79%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java (82%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java (93%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java (69%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java (69%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java (59%) create mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java (71%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java (79%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java (70%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java (68%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java (76%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java (67%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java (59%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java (83%) create mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java (78%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java (85%) create mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java (74%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java (79%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java (72%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java (79%) create mode 100644 java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java (68%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java (73%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java (82%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java (71%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java (78%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java (74%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java (83%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java (71%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java (78%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java (67%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java (61%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java (70%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java (72%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java (70%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java (72%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java (76%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java (84%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java (64%) create mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java (77%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java (87%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java (68%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java (60%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java (51%) create mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java (76%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java (84%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java (59%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java (60%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java (67%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java (63%) create mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Config.java (67%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java (68%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java (65%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java (59%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java (65%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java (58%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java (65%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java (58%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java (69%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java (75%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java (68%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java (63%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java (68%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java (63%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java (68%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java (63%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java (68%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java (64%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java (63%) create mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequestOrBuilder.java rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java (63%) create mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java (63%) create mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java (63%) create mode 100644 java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java (70%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java (68%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java (72%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java (70%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java (67%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java (72%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java (70%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java (66%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java (72%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java (72%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java (87%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java (70%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java (75%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java (70%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java (83%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java (76%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java (86%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java (65%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java (61%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java (78%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java (87%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java (72%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java (75%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java (71%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java (81%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java (69%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java (64%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java (72%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java (71%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java (75%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java (78%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java (75%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java (82%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java (73%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java (83%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java (66%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java (61%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java (76%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java (85%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java (70%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java (71%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java (76%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java (84%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java (67%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java (60%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java (67%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java (60%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java (67%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java (60%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java (69%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java (70%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java (67%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java (67%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java (68%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java (69%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java (67%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java (69%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java (77%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java (86%) rename {owl-bot-staging/java-speech/v2 => java-speech}/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/AsyncCreateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/AsyncCreatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/AsyncDeletePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetString.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/AsyncGetCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassString.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/AsyncGetPhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetString.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClasses.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClasses.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesString.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSetPaged.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetLocationname.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetString.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognize.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognize.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/AsyncRecognize.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognize.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speech/streamingrecognize/AsyncStreamingRecognize.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/AsyncCreateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/AsyncCreatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/AsyncDeletePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetString.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/AsyncGetCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassString.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/AsyncGetPhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetString.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClasses.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClasses.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesString.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSetPaged.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetLocationname.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetString.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognize.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognize.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/AsyncRecognize.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognize.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/streamingrecognize/AsyncStreamingRecognize.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v1p1beta1 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognize.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognizeLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognize.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeRecognizernameRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeStringRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClassLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassStringCustomclassString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSetLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizerLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerLocationnameRecognizerString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerStringRecognizerString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClass.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClassLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClass.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassCustomclassname.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSetLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetPhrasesetname.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizerLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerRecognizername.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/AsyncGetConfig.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfig.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigConfigname.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/AsyncGetCustomClass.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClass.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassCustomclassname.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/AsyncGetPhraseSet.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSet.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetPhrasesetname.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/AsyncGetRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerRecognizername.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClasses.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClassesPaged.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClasses.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesLocationname.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSets.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSetsPaged.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSets.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsLocationname.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizers.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizersPaged.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizers.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersLocationname.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/AsyncRecognize.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognize.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskBytestring.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskBytestring.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/streamingrecognize/AsyncStreamingRecognize.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClass.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClassLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClass.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassCustomclassname.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSetLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetPhrasesetname.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizerLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerRecognizername.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerString.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/AsyncUpdateConfig.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfig.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfigConfigFieldmask.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClassLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClass.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSetLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSet.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizerLRO.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizerRecognizerFieldmask.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/speechsettings/getrecognizer/SyncGetRecognizer.java (100%) rename {owl-bot-staging/java-speech/v2 => java-speech}/samples/snippets/generated/com/google/cloud/speech/v2/stub/speechstubsettings/getrecognizer/SyncGetRecognizer.java (100%) delete mode 100644 owl-bot-staging/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java delete mode 100644 owl-bot-staging/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java delete mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java delete mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java delete mode 100644 owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java delete mode 100644 owl-bot-staging/java-speech/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java delete mode 100644 owl-bot-staging/java-speech/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java delete mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java delete mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java delete mode 100644 owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java delete mode 100644 owl-bot-staging/java-speech/v2/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java delete mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java delete mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java similarity index 99% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java index ef2af1fea060..88585863167f 100644 --- a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java +++ b/java-speech/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; diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java similarity index 99% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java index e9f6e4ac2293..410fbe1afbe6 100644 --- a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java +++ b/java-speech/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; diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java similarity index 99% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java index 45bd5bdce97f..881efcbe3130 100644 --- a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java +++ b/java-speech/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/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java similarity index 99% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java index 1735c61d96ae..2d1dc5eb7ee8 100644 --- a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java +++ b/java-speech/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.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java similarity index 99% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java index b92302cdf7ed..12186ff69359 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java +++ b/java-speech/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; diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java similarity index 99% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java index b7cd843849ec..a69615793095 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java +++ b/java-speech/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; diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java similarity index 99% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java index 526e244c2f61..8875ab91afdd 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java +++ b/java-speech/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/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java similarity index 99% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java index 2d68d09a22f4..f59d35f28317 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java +++ b/java-speech/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.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java similarity index 99% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java index 5cd92e22a6e4..bfeea92bfc4d 100644 --- a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java @@ -32,7 +32,6 @@ import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; 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.v2.stub.SpeechStubSettings; diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/gapic_metadata.json b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/gapic_metadata.json rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/gapic_metadata.json diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/package-info.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/package-info.java similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/package-info.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/package-info.java diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechCallableFactory.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechCallableFactory.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechCallableFactory.java diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java similarity index 99% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java index 6930b03ab6c2..00d92d8d8432 100644 --- a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechStub.java @@ -68,7 +68,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/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechCallableFactory.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechCallableFactory.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechCallableFactory.java diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java similarity index 99% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java index 44cce61e86aa..1a9d59fe1317 100644 --- a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/HttpJsonSpeechStub.java @@ -32,7 +32,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.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStub.java diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java rename to java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/SpeechStubSettings.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java diff --git a/owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java similarity index 100% rename from owl-bot-staging/java-speech/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeech.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeech.java similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeech.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeech.java diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeechImpl.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeechImpl.java similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeechImpl.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/MockSpeechImpl.java diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientHttpJsonTest.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientHttpJsonTest.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientHttpJsonTest.java diff --git a/owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientTest.java b/java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientTest.java similarity index 100% rename from owl-bot-staging/java-speech/v2/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientTest.java rename to java-speech/google-cloud-speech/src/test/java/com/google/cloud/speech/v2/SpeechClientTest.java diff --git a/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java b/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java new file mode 100644 index 000000000000..5a6d1e037728 --- /dev/null +++ b/java-speech/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/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java b/java-speech/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java new file mode 100644 index 000000000000..846458da2c9f --- /dev/null +++ b/java-speech/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/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java b/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java new file mode 100644 index 000000000000..5a5395620967 --- /dev/null +++ b/java-speech/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/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java b/java-speech/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java new file mode 100644 index 000000000000..c3bc87f0fa55 --- /dev/null +++ b/java-speech/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/java-speech/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java b/java-speech/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java new file mode 100644 index 000000000000..f70343dfe149 --- /dev/null +++ b/java-speech/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java @@ -0,0 +1,2830 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Enables speech transcription and resource management.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/speech/v2/cloud_speech.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SpeechGrpc { + + private SpeechGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.speech.v2.Speech"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.longrunning.Operation> + getCreateRecognizerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRecognizer", + requestType = com.google.cloud.speech.v2.CreateRecognizerRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.longrunning.Operation> + getCreateRecognizerMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.longrunning.Operation> + getCreateRecognizerMethod; + if ((getCreateRecognizerMethod = SpeechGrpc.getCreateRecognizerMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getCreateRecognizerMethod = SpeechGrpc.getCreateRecognizerMethod) == null) { + SpeechGrpc.getCreateRecognizerMethod = + getCreateRecognizerMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRecognizer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.CreateRecognizerRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreateRecognizer")) + .build(); + } + } + } + return getCreateRecognizerMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.ListRecognizersRequest, + com.google.cloud.speech.v2.ListRecognizersResponse> + getListRecognizersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRecognizers", + requestType = com.google.cloud.speech.v2.ListRecognizersRequest.class, + responseType = com.google.cloud.speech.v2.ListRecognizersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.ListRecognizersRequest, + com.google.cloud.speech.v2.ListRecognizersResponse> + getListRecognizersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.ListRecognizersRequest, + com.google.cloud.speech.v2.ListRecognizersResponse> + getListRecognizersMethod; + if ((getListRecognizersMethod = SpeechGrpc.getListRecognizersMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getListRecognizersMethod = SpeechGrpc.getListRecognizersMethod) == null) { + SpeechGrpc.getListRecognizersMethod = + getListRecognizersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRecognizers")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.ListRecognizersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.ListRecognizersResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListRecognizers")) + .build(); + } + } + } + return getListRecognizersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetRecognizerRequest, com.google.cloud.speech.v2.Recognizer> + getGetRecognizerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRecognizer", + requestType = com.google.cloud.speech.v2.GetRecognizerRequest.class, + responseType = com.google.cloud.speech.v2.Recognizer.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetRecognizerRequest, com.google.cloud.speech.v2.Recognizer> + getGetRecognizerMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetRecognizerRequest, com.google.cloud.speech.v2.Recognizer> + getGetRecognizerMethod; + if ((getGetRecognizerMethod = SpeechGrpc.getGetRecognizerMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getGetRecognizerMethod = SpeechGrpc.getGetRecognizerMethod) == null) { + SpeechGrpc.getGetRecognizerMethod = + getGetRecognizerMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRecognizer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.GetRecognizerRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.Recognizer.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetRecognizer")) + .build(); + } + } + } + return getGetRecognizerMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.longrunning.Operation> + getUpdateRecognizerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateRecognizer", + requestType = com.google.cloud.speech.v2.UpdateRecognizerRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.longrunning.Operation> + getUpdateRecognizerMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.longrunning.Operation> + getUpdateRecognizerMethod; + if ((getUpdateRecognizerMethod = SpeechGrpc.getUpdateRecognizerMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUpdateRecognizerMethod = SpeechGrpc.getUpdateRecognizerMethod) == null) { + SpeechGrpc.getUpdateRecognizerMethod = + getUpdateRecognizerMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRecognizer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.UpdateRecognizerRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdateRecognizer")) + .build(); + } + } + } + return getUpdateRecognizerMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.longrunning.Operation> + getDeleteRecognizerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRecognizer", + requestType = com.google.cloud.speech.v2.DeleteRecognizerRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.longrunning.Operation> + getDeleteRecognizerMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.longrunning.Operation> + getDeleteRecognizerMethod; + if ((getDeleteRecognizerMethod = SpeechGrpc.getDeleteRecognizerMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getDeleteRecognizerMethod = SpeechGrpc.getDeleteRecognizerMethod) == null) { + SpeechGrpc.getDeleteRecognizerMethod = + getDeleteRecognizerMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRecognizer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.DeleteRecognizerRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeleteRecognizer")) + .build(); + } + } + } + return getDeleteRecognizerMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.longrunning.Operation> + getUndeleteRecognizerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeleteRecognizer", + requestType = com.google.cloud.speech.v2.UndeleteRecognizerRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.longrunning.Operation> + getUndeleteRecognizerMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.longrunning.Operation> + getUndeleteRecognizerMethod; + if ((getUndeleteRecognizerMethod = SpeechGrpc.getUndeleteRecognizerMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUndeleteRecognizerMethod = SpeechGrpc.getUndeleteRecognizerMethod) == null) { + SpeechGrpc.getUndeleteRecognizerMethod = + getUndeleteRecognizerMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeleteRecognizer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.UndeleteRecognizerRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UndeleteRecognizer")) + .build(); + } + } + } + return getUndeleteRecognizerMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.RecognizeRequest, com.google.cloud.speech.v2.RecognizeResponse> + getRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Recognize", + requestType = com.google.cloud.speech.v2.RecognizeRequest.class, + responseType = com.google.cloud.speech.v2.RecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.RecognizeRequest, com.google.cloud.speech.v2.RecognizeResponse> + getRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.RecognizeRequest, + com.google.cloud.speech.v2.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.v2.RecognizeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.RecognizeResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) + .build(); + } + } + } + return getRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.StreamingRecognizeRequest, + com.google.cloud.speech.v2.StreamingRecognizeResponse> + getStreamingRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", + requestType = com.google.cloud.speech.v2.StreamingRecognizeRequest.class, + responseType = com.google.cloud.speech.v2.StreamingRecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.StreamingRecognizeRequest, + com.google.cloud.speech.v2.StreamingRecognizeResponse> + getStreamingRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.StreamingRecognizeRequest, + com.google.cloud.speech.v2.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.v2.StreamingRecognizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.StreamingRecognizeResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) + .build(); + } + } + } + return getStreamingRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.longrunning.Operation> + getBatchRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchRecognize", + requestType = com.google.cloud.speech.v2.BatchRecognizeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.longrunning.Operation> + getBatchRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.longrunning.Operation> + getBatchRecognizeMethod; + if ((getBatchRecognizeMethod = SpeechGrpc.getBatchRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getBatchRecognizeMethod = SpeechGrpc.getBatchRecognizeMethod) == null) { + SpeechGrpc.getBatchRecognizeMethod = + getBatchRecognizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.BatchRecognizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("BatchRecognize")) + .build(); + } + } + } + return getBatchRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetConfigRequest, com.google.cloud.speech.v2.Config> + getGetConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConfig", + requestType = com.google.cloud.speech.v2.GetConfigRequest.class, + responseType = com.google.cloud.speech.v2.Config.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetConfigRequest, com.google.cloud.speech.v2.Config> + getGetConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetConfigRequest, com.google.cloud.speech.v2.Config> + getGetConfigMethod; + if ((getGetConfigMethod = SpeechGrpc.getGetConfigMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getGetConfigMethod = SpeechGrpc.getGetConfigMethod) == null) { + SpeechGrpc.getGetConfigMethod = + getGetConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.GetConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.Config.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetConfig")) + .build(); + } + } + } + return getGetConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.Config> + getUpdateConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConfig", + requestType = com.google.cloud.speech.v2.UpdateConfigRequest.class, + responseType = com.google.cloud.speech.v2.Config.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.Config> + getUpdateConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.Config> + getUpdateConfigMethod; + if ((getUpdateConfigMethod = SpeechGrpc.getUpdateConfigMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUpdateConfigMethod = SpeechGrpc.getUpdateConfigMethod) == null) { + SpeechGrpc.getUpdateConfigMethod = + getUpdateConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.Config.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdateConfig")) + .build(); + } + } + } + return getUpdateConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.longrunning.Operation> + getCreateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", + requestType = com.google.cloud.speech.v2.CreateCustomClassRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.longrunning.Operation> + getCreateCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.longrunning.Operation> + getCreateCustomClassMethod; + if ((getCreateCustomClassMethod = SpeechGrpc.getCreateCustomClassMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getCreateCustomClassMethod = SpeechGrpc.getCreateCustomClassMethod) == null) { + SpeechGrpc.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.v2.CreateCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreateCustomClass")) + .build(); + } + } + } + return getCreateCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.ListCustomClassesRequest, + com.google.cloud.speech.v2.ListCustomClassesResponse> + getListCustomClassesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", + requestType = com.google.cloud.speech.v2.ListCustomClassesRequest.class, + responseType = com.google.cloud.speech.v2.ListCustomClassesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.ListCustomClassesRequest, + com.google.cloud.speech.v2.ListCustomClassesResponse> + getListCustomClassesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.ListCustomClassesRequest, + com.google.cloud.speech.v2.ListCustomClassesResponse> + getListCustomClassesMethod; + if ((getListCustomClassesMethod = SpeechGrpc.getListCustomClassesMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getListCustomClassesMethod = SpeechGrpc.getListCustomClassesMethod) == null) { + SpeechGrpc.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.v2.ListCustomClassesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.ListCustomClassesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListCustomClasses")) + .build(); + } + } + } + return getListCustomClassesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetCustomClassRequest, com.google.cloud.speech.v2.CustomClass> + getGetCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", + requestType = com.google.cloud.speech.v2.GetCustomClassRequest.class, + responseType = com.google.cloud.speech.v2.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetCustomClassRequest, com.google.cloud.speech.v2.CustomClass> + getGetCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetCustomClassRequest, + com.google.cloud.speech.v2.CustomClass> + getGetCustomClassMethod; + if ((getGetCustomClassMethod = SpeechGrpc.getGetCustomClassMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getGetCustomClassMethod = SpeechGrpc.getGetCustomClassMethod) == null) { + SpeechGrpc.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.v2.GetCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.CustomClass.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetCustomClass")) + .build(); + } + } + } + return getGetCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.longrunning.Operation> + getUpdateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", + requestType = com.google.cloud.speech.v2.UpdateCustomClassRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.longrunning.Operation> + getUpdateCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.longrunning.Operation> + getUpdateCustomClassMethod; + if ((getUpdateCustomClassMethod = SpeechGrpc.getUpdateCustomClassMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUpdateCustomClassMethod = SpeechGrpc.getUpdateCustomClassMethod) == null) { + SpeechGrpc.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.v2.UpdateCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdateCustomClass")) + .build(); + } + } + } + return getUpdateCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.longrunning.Operation> + getDeleteCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCustomClass", + requestType = com.google.cloud.speech.v2.DeleteCustomClassRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.longrunning.Operation> + getDeleteCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.longrunning.Operation> + getDeleteCustomClassMethod; + if ((getDeleteCustomClassMethod = SpeechGrpc.getDeleteCustomClassMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getDeleteCustomClassMethod = SpeechGrpc.getDeleteCustomClassMethod) == null) { + SpeechGrpc.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.v2.DeleteCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeleteCustomClass")) + .build(); + } + } + } + return getDeleteCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.longrunning.Operation> + getUndeleteCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeleteCustomClass", + requestType = com.google.cloud.speech.v2.UndeleteCustomClassRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.longrunning.Operation> + getUndeleteCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.longrunning.Operation> + getUndeleteCustomClassMethod; + if ((getUndeleteCustomClassMethod = SpeechGrpc.getUndeleteCustomClassMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUndeleteCustomClassMethod = SpeechGrpc.getUndeleteCustomClassMethod) == null) { + SpeechGrpc.getUndeleteCustomClassMethod = + getUndeleteCustomClassMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UndeleteCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.UndeleteCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SpeechMethodDescriptorSupplier("UndeleteCustomClass")) + .build(); + } + } + } + return getUndeleteCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.longrunning.Operation> + getCreatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", + requestType = com.google.cloud.speech.v2.CreatePhraseSetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.longrunning.Operation> + getCreatePhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.longrunning.Operation> + getCreatePhraseSetMethod; + if ((getCreatePhraseSetMethod = SpeechGrpc.getCreatePhraseSetMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getCreatePhraseSetMethod = SpeechGrpc.getCreatePhraseSetMethod) == null) { + SpeechGrpc.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.v2.CreatePhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreatePhraseSet")) + .build(); + } + } + } + return getCreatePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.ListPhraseSetsRequest, + com.google.cloud.speech.v2.ListPhraseSetsResponse> + getListPhraseSetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPhraseSets", + requestType = com.google.cloud.speech.v2.ListPhraseSetsRequest.class, + responseType = com.google.cloud.speech.v2.ListPhraseSetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.ListPhraseSetsRequest, + com.google.cloud.speech.v2.ListPhraseSetsResponse> + getListPhraseSetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.ListPhraseSetsRequest, + com.google.cloud.speech.v2.ListPhraseSetsResponse> + getListPhraseSetsMethod; + if ((getListPhraseSetsMethod = SpeechGrpc.getListPhraseSetsMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getListPhraseSetsMethod = SpeechGrpc.getListPhraseSetsMethod) == null) { + SpeechGrpc.getListPhraseSetsMethod = + getListPhraseSetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.ListPhraseSetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.ListPhraseSetsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListPhraseSets")) + .build(); + } + } + } + return getListPhraseSetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetPhraseSetRequest, com.google.cloud.speech.v2.PhraseSet> + getGetPhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", + requestType = com.google.cloud.speech.v2.GetPhraseSetRequest.class, + responseType = com.google.cloud.speech.v2.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetPhraseSetRequest, com.google.cloud.speech.v2.PhraseSet> + getGetPhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.GetPhraseSetRequest, com.google.cloud.speech.v2.PhraseSet> + getGetPhraseSetMethod; + if ((getGetPhraseSetMethod = SpeechGrpc.getGetPhraseSetMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getGetPhraseSetMethod = SpeechGrpc.getGetPhraseSetMethod) == null) { + SpeechGrpc.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.v2.GetPhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetPhraseSet")) + .build(); + } + } + } + return getGetPhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.longrunning.Operation> + getUpdatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", + requestType = com.google.cloud.speech.v2.UpdatePhraseSetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.longrunning.Operation> + getUpdatePhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.longrunning.Operation> + getUpdatePhraseSetMethod; + if ((getUpdatePhraseSetMethod = SpeechGrpc.getUpdatePhraseSetMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUpdatePhraseSetMethod = SpeechGrpc.getUpdatePhraseSetMethod) == null) { + SpeechGrpc.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.v2.UpdatePhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdatePhraseSet")) + .build(); + } + } + } + return getUpdatePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.longrunning.Operation> + getDeletePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePhraseSet", + requestType = com.google.cloud.speech.v2.DeletePhraseSetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.longrunning.Operation> + getDeletePhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.longrunning.Operation> + getDeletePhraseSetMethod; + if ((getDeletePhraseSetMethod = SpeechGrpc.getDeletePhraseSetMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getDeletePhraseSetMethod = SpeechGrpc.getDeletePhraseSetMethod) == null) { + SpeechGrpc.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.v2.DeletePhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeletePhraseSet")) + .build(); + } + } + } + return getDeletePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.longrunning.Operation> + getUndeletePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeletePhraseSet", + requestType = com.google.cloud.speech.v2.UndeletePhraseSetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.longrunning.Operation> + getUndeletePhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.longrunning.Operation> + getUndeletePhraseSetMethod; + if ((getUndeletePhraseSetMethod = SpeechGrpc.getUndeletePhraseSetMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getUndeletePhraseSetMethod = SpeechGrpc.getUndeletePhraseSetMethod) == null) { + SpeechGrpc.getUndeletePhraseSetMethod = + getUndeletePhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeletePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v2.UndeletePhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UndeletePhraseSet")) + .build(); + } + } + } + return getUndeletePhraseSetMethod; + } + + /** 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); + } + + /** + * + * + *
+   * Enables speech transcription and resource management.
+   * 
+ */ + public abstract static class SpeechImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void createRecognizer( + com.google.cloud.speech.v2.CreateRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateRecognizerMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Recognizers.
+     * 
+ */ + public void listRecognizers( + com.google.cloud.speech.v2.ListRecognizersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRecognizersMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested
+     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
+     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
+     * exist.
+     * 
+ */ + public void getRecognizer( + com.google.cloud.speech.v2.GetRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetRecognizerMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void updateRecognizer( + com.google.cloud.speech.v2.UpdateRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateRecognizerMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void deleteRecognizer( + com.google.cloud.speech.v2.DeleteRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteRecognizerMethod(), responseObserver); + } + + /** + * + * + *
+     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void undeleteRecognizer( + com.google.cloud.speech.v2.UndeleteRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUndeleteRecognizerMethod(), responseObserver); + } + + /** + * + * + *
+     * Performs synchronous Speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize( + com.google.cloud.speech.v2.RecognizeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), 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); + } + + /** + * + * + *
+     * Performs batch asynchronous speech recognition: send a request with N
+     * audio files and receive a long running operation that can be polled to see
+     * when the transcriptions are finished.
+     * 
+ */ + public void batchRecognize( + com.google.cloud.speech.v2.BatchRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchRecognizeMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public void getConfig( + com.google.cloud.speech.v2.GetConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public void updateConfig( + com.google.cloud.speech.v2.UpdateConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void createCustomClass( + com.google.cloud.speech.v2.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists CustomClasses.
+     * 
+ */ + public void listCustomClasses( + com.google.cloud.speech.v2.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCustomClassesMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested
+     * [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void getCustomClass( + com.google.cloud.speech.v2.GetCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void updateCustomClass( + com.google.cloud.speech.v2.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void deleteCustomClass( + com.google.cloud.speech.v2.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void undeleteCustomClass( + com.google.cloud.speech.v2.UndeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUndeleteCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void createPhraseSet( + com.google.cloud.speech.v2.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists PhraseSets.
+     * 
+ */ + public void listPhraseSets( + com.google.cloud.speech.v2.ListPhraseSetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPhraseSetsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested
+     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void getPhraseSet( + com.google.cloud.speech.v2.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void updatePhraseSet( + com.google.cloud.speech.v2.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdatePhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void deletePhraseSet( + com.google.cloud.speech.v2.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void undeletePhraseSet( + com.google.cloud.speech.v2.UndeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUndeletePhraseSetMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateRecognizerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.CreateRecognizerRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_RECOGNIZER))) + .addMethod( + getListRecognizersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.ListRecognizersRequest, + com.google.cloud.speech.v2.ListRecognizersResponse>( + this, METHODID_LIST_RECOGNIZERS))) + .addMethod( + getGetRecognizerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.GetRecognizerRequest, + com.google.cloud.speech.v2.Recognizer>(this, METHODID_GET_RECOGNIZER))) + .addMethod( + getUpdateRecognizerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UpdateRecognizerRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_RECOGNIZER))) + .addMethod( + getDeleteRecognizerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.DeleteRecognizerRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_RECOGNIZER))) + .addMethod( + getUndeleteRecognizerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UndeleteRecognizerRequest, + com.google.longrunning.Operation>(this, METHODID_UNDELETE_RECOGNIZER))) + .addMethod( + getRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.RecognizeRequest, + com.google.cloud.speech.v2.RecognizeResponse>(this, METHODID_RECOGNIZE))) + .addMethod( + getStreamingRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.speech.v2.StreamingRecognizeRequest, + com.google.cloud.speech.v2.StreamingRecognizeResponse>( + this, METHODID_STREAMING_RECOGNIZE))) + .addMethod( + getBatchRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.BatchRecognizeRequest, + com.google.longrunning.Operation>(this, METHODID_BATCH_RECOGNIZE))) + .addMethod( + getGetConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.GetConfigRequest, + com.google.cloud.speech.v2.Config>(this, METHODID_GET_CONFIG))) + .addMethod( + getUpdateConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UpdateConfigRequest, + com.google.cloud.speech.v2.Config>(this, METHODID_UPDATE_CONFIG))) + .addMethod( + getCreateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.CreateCustomClassRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_CUSTOM_CLASS))) + .addMethod( + getListCustomClassesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.ListCustomClassesRequest, + com.google.cloud.speech.v2.ListCustomClassesResponse>( + this, METHODID_LIST_CUSTOM_CLASSES))) + .addMethod( + getGetCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.GetCustomClassRequest, + com.google.cloud.speech.v2.CustomClass>(this, METHODID_GET_CUSTOM_CLASS))) + .addMethod( + getUpdateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UpdateCustomClassRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_CUSTOM_CLASS))) + .addMethod( + getDeleteCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.DeleteCustomClassRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_CUSTOM_CLASS))) + .addMethod( + getUndeleteCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UndeleteCustomClassRequest, + com.google.longrunning.Operation>(this, METHODID_UNDELETE_CUSTOM_CLASS))) + .addMethod( + getCreatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.CreatePhraseSetRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_PHRASE_SET))) + .addMethod( + getListPhraseSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.ListPhraseSetsRequest, + com.google.cloud.speech.v2.ListPhraseSetsResponse>( + this, METHODID_LIST_PHRASE_SETS))) + .addMethod( + getGetPhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.GetPhraseSetRequest, + com.google.cloud.speech.v2.PhraseSet>(this, METHODID_GET_PHRASE_SET))) + .addMethod( + getUpdatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UpdatePhraseSetRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_PHRASE_SET))) + .addMethod( + getDeletePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.DeletePhraseSetRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_PHRASE_SET))) + .addMethod( + getUndeletePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v2.UndeletePhraseSetRequest, + com.google.longrunning.Operation>(this, METHODID_UNDELETE_PHRASE_SET))) + .build(); + } + } + + /** + * + * + *
+   * Enables speech transcription and resource management.
+   * 
+ */ + 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); + } + + /** + * + * + *
+     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void createRecognizer( + com.google.cloud.speech.v2.CreateRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRecognizerMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Recognizers.
+     * 
+ */ + public void listRecognizers( + com.google.cloud.speech.v2.ListRecognizersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRecognizersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested
+     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
+     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
+     * exist.
+     * 
+ */ + public void getRecognizer( + com.google.cloud.speech.v2.GetRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRecognizerMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void updateRecognizer( + com.google.cloud.speech.v2.UpdateRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateRecognizerMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void deleteRecognizer( + com.google.cloud.speech.v2.DeleteRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRecognizerMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public void undeleteRecognizer( + com.google.cloud.speech.v2.UndeleteRecognizerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeleteRecognizerMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Performs synchronous Speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize( + com.google.cloud.speech.v2.RecognizeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRecognizeMethod(), 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); + } + + /** + * + * + *
+     * Performs batch asynchronous speech recognition: send a request with N
+     * audio files and receive a long running operation that can be polled to see
+     * when the transcriptions are finished.
+     * 
+ */ + public void batchRecognize( + com.google.cloud.speech.v2.BatchRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchRecognizeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public void getConfig( + com.google.cloud.speech.v2.GetConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Updates the [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public void updateConfig( + com.google.cloud.speech.v2.UpdateConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void createCustomClass( + com.google.cloud.speech.v2.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists CustomClasses.
+     * 
+ */ + public void listCustomClasses( + com.google.cloud.speech.v2.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested
+     * [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void getCustomClass( + com.google.cloud.speech.v2.GetCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void updateCustomClass( + com.google.cloud.speech.v2.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void deleteCustomClass( + com.google.cloud.speech.v2.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public void undeleteCustomClass( + com.google.cloud.speech.v2.UndeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeleteCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void createPhraseSet( + com.google.cloud.speech.v2.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists PhraseSets.
+     * 
+ */ + public void listPhraseSets( + com.google.cloud.speech.v2.ListPhraseSetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPhraseSetsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested
+     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void getPhraseSet( + com.google.cloud.speech.v2.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void updatePhraseSet( + com.google.cloud.speech.v2.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void deletePhraseSet( + com.google.cloud.speech.v2.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public void undeletePhraseSet( + com.google.cloud.speech.v2.UndeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeletePhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Enables speech transcription and resource management.
+   * 
+ */ + 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); + } + + /** + * + * + *
+     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.longrunning.Operation createRecognizer( + com.google.cloud.speech.v2.CreateRecognizerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRecognizerMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Recognizers.
+     * 
+ */ + public com.google.cloud.speech.v2.ListRecognizersResponse listRecognizers( + com.google.cloud.speech.v2.ListRecognizersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRecognizersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested
+     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
+     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
+     * exist.
+     * 
+ */ + public com.google.cloud.speech.v2.Recognizer getRecognizer( + com.google.cloud.speech.v2.GetRecognizerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRecognizerMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.longrunning.Operation updateRecognizer( + com.google.cloud.speech.v2.UpdateRecognizerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateRecognizerMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.longrunning.Operation deleteRecognizer( + com.google.cloud.speech.v2.DeleteRecognizerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRecognizerMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.longrunning.Operation undeleteRecognizer( + com.google.cloud.speech.v2.UndeleteRecognizerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeleteRecognizerMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Performs synchronous Speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.cloud.speech.v2.RecognizeResponse recognize( + com.google.cloud.speech.v2.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRecognizeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Performs batch asynchronous speech recognition: send a request with N
+     * audio files and receive a long running operation that can be polled to see
+     * when the transcriptions are finished.
+     * 
+ */ + public com.google.longrunning.Operation batchRecognize( + com.google.cloud.speech.v2.BatchRecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchRecognizeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public com.google.cloud.speech.v2.Config getConfig( + com.google.cloud.speech.v2.GetConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public com.google.cloud.speech.v2.Config updateConfig( + com.google.cloud.speech.v2.UpdateConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.longrunning.Operation createCustomClass( + com.google.cloud.speech.v2.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists CustomClasses.
+     * 
+ */ + public com.google.cloud.speech.v2.ListCustomClassesResponse listCustomClasses( + com.google.cloud.speech.v2.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCustomClassesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested
+     * [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.cloud.speech.v2.CustomClass getCustomClass( + com.google.cloud.speech.v2.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.longrunning.Operation updateCustomClass( + com.google.cloud.speech.v2.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.longrunning.Operation deleteCustomClass( + com.google.cloud.speech.v2.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.longrunning.Operation undeleteCustomClass( + com.google.cloud.speech.v2.UndeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeleteCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.longrunning.Operation createPhraseSet( + com.google.cloud.speech.v2.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists PhraseSets.
+     * 
+ */ + public com.google.cloud.speech.v2.ListPhraseSetsResponse listPhraseSets( + com.google.cloud.speech.v2.ListPhraseSetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPhraseSetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested
+     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.cloud.speech.v2.PhraseSet getPhraseSet( + com.google.cloud.speech.v2.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.longrunning.Operation updatePhraseSet( + com.google.cloud.speech.v2.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.longrunning.Operation deletePhraseSet( + com.google.cloud.speech.v2.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.longrunning.Operation undeletePhraseSet( + com.google.cloud.speech.v2.UndeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeletePhraseSetMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Enables speech transcription and resource management.
+   * 
+ */ + 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); + } + + /** + * + * + *
+     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createRecognizer(com.google.cloud.speech.v2.CreateRecognizerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRecognizerMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Recognizers.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v2.ListRecognizersResponse> + listRecognizers(com.google.cloud.speech.v2.ListRecognizersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRecognizersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested
+     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
+     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
+     * exist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getRecognizer(com.google.cloud.speech.v2.GetRecognizerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRecognizerMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateRecognizer(com.google.cloud.speech.v2.UpdateRecognizerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateRecognizerMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteRecognizer(com.google.cloud.speech.v2.DeleteRecognizerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRecognizerMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + undeleteRecognizer(com.google.cloud.speech.v2.UndeleteRecognizerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeleteRecognizerMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * 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.v2.RecognizeResponse> + recognize(com.google.cloud.speech.v2.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Performs batch asynchronous speech recognition: send a request with N
+     * audio files and receive a long running operation that can be polled to see
+     * when the transcriptions are finished.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + batchRecognize(com.google.cloud.speech.v2.BatchRecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchRecognizeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getConfig(com.google.cloud.speech.v2.GetConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the [Config][google.cloud.speech.v2.Config].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateConfig(com.google.cloud.speech.v2.UpdateConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createCustomClass(com.google.cloud.speech.v2.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists CustomClasses.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v2.ListCustomClassesResponse> + listCustomClasses(com.google.cloud.speech.v2.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested
+     * [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v2.CustomClass> + getCustomClass(com.google.cloud.speech.v2.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateCustomClass(com.google.cloud.speech.v2.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteCustomClass(com.google.cloud.speech.v2.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + undeleteCustomClass(com.google.cloud.speech.v2.UndeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeleteCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createPhraseSet(com.google.cloud.speech.v2.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists PhraseSets.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v2.ListPhraseSetsResponse> + listPhraseSets(com.google.cloud.speech.v2.ListPhraseSetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPhraseSetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested
+     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getPhraseSet(com.google.cloud.speech.v2.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updatePhraseSet(com.google.cloud.speech.v2.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deletePhraseSet(com.google.cloud.speech.v2.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + undeletePhraseSet(com.google.cloud.speech.v2.UndeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeletePhraseSetMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_RECOGNIZER = 0; + private static final int METHODID_LIST_RECOGNIZERS = 1; + private static final int METHODID_GET_RECOGNIZER = 2; + private static final int METHODID_UPDATE_RECOGNIZER = 3; + private static final int METHODID_DELETE_RECOGNIZER = 4; + private static final int METHODID_UNDELETE_RECOGNIZER = 5; + private static final int METHODID_RECOGNIZE = 6; + private static final int METHODID_BATCH_RECOGNIZE = 7; + private static final int METHODID_GET_CONFIG = 8; + private static final int METHODID_UPDATE_CONFIG = 9; + private static final int METHODID_CREATE_CUSTOM_CLASS = 10; + private static final int METHODID_LIST_CUSTOM_CLASSES = 11; + private static final int METHODID_GET_CUSTOM_CLASS = 12; + private static final int METHODID_UPDATE_CUSTOM_CLASS = 13; + private static final int METHODID_DELETE_CUSTOM_CLASS = 14; + private static final int METHODID_UNDELETE_CUSTOM_CLASS = 15; + private static final int METHODID_CREATE_PHRASE_SET = 16; + private static final int METHODID_LIST_PHRASE_SETS = 17; + private static final int METHODID_GET_PHRASE_SET = 18; + private static final int METHODID_UPDATE_PHRASE_SET = 19; + private static final int METHODID_DELETE_PHRASE_SET = 20; + private static final int METHODID_UNDELETE_PHRASE_SET = 21; + private static final int METHODID_STREAMING_RECOGNIZE = 22; + + 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_CREATE_RECOGNIZER: + serviceImpl.createRecognizer( + (com.google.cloud.speech.v2.CreateRecognizerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RECOGNIZERS: + serviceImpl.listRecognizers( + (com.google.cloud.speech.v2.ListRecognizersRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_RECOGNIZER: + serviceImpl.getRecognizer( + (com.google.cloud.speech.v2.GetRecognizerRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_RECOGNIZER: + serviceImpl.updateRecognizer( + (com.google.cloud.speech.v2.UpdateRecognizerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_RECOGNIZER: + serviceImpl.deleteRecognizer( + (com.google.cloud.speech.v2.DeleteRecognizerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNDELETE_RECOGNIZER: + serviceImpl.undeleteRecognizer( + (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RECOGNIZE: + serviceImpl.recognize( + (com.google.cloud.speech.v2.RecognizeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_BATCH_RECOGNIZE: + serviceImpl.batchRecognize( + (com.google.cloud.speech.v2.BatchRecognizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CONFIG: + serviceImpl.getConfig( + (com.google.cloud.speech.v2.GetConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONFIG: + serviceImpl.updateConfig( + (com.google.cloud.speech.v2.UpdateConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CUSTOM_CLASS: + serviceImpl.createCustomClass( + (com.google.cloud.speech.v2.CreateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CUSTOM_CLASSES: + serviceImpl.listCustomClasses( + (com.google.cloud.speech.v2.ListCustomClassesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CUSTOM_CLASS: + serviceImpl.getCustomClass( + (com.google.cloud.speech.v2.GetCustomClassRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CUSTOM_CLASS: + serviceImpl.updateCustomClass( + (com.google.cloud.speech.v2.UpdateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CUSTOM_CLASS: + serviceImpl.deleteCustomClass( + (com.google.cloud.speech.v2.DeleteCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNDELETE_CUSTOM_CLASS: + serviceImpl.undeleteCustomClass( + (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_PHRASE_SET: + serviceImpl.createPhraseSet( + (com.google.cloud.speech.v2.CreatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_PHRASE_SETS: + serviceImpl.listPhraseSets( + (com.google.cloud.speech.v2.ListPhraseSetsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_PHRASE_SET: + serviceImpl.getPhraseSet( + (com.google.cloud.speech.v2.GetPhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_PHRASE_SET: + serviceImpl.updatePhraseSet( + (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_PHRASE_SET: + serviceImpl.deletePhraseSet( + (com.google.cloud.speech.v2.DeletePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNDELETE_PHRASE_SET: + serviceImpl.undeletePhraseSet( + (com.google.cloud.speech.v2.UndeletePhraseSetRequest) 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.v2.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.v2.CloudSpeechProto.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(getCreateRecognizerMethod()) + .addMethod(getListRecognizersMethod()) + .addMethod(getGetRecognizerMethod()) + .addMethod(getUpdateRecognizerMethod()) + .addMethod(getDeleteRecognizerMethod()) + .addMethod(getUndeleteRecognizerMethod()) + .addMethod(getRecognizeMethod()) + .addMethod(getStreamingRecognizeMethod()) + .addMethod(getBatchRecognizeMethod()) + .addMethod(getGetConfigMethod()) + .addMethod(getUpdateConfigMethod()) + .addMethod(getCreateCustomClassMethod()) + .addMethod(getListCustomClassesMethod()) + .addMethod(getGetCustomClassMethod()) + .addMethod(getUpdateCustomClassMethod()) + .addMethod(getDeleteCustomClassMethod()) + .addMethod(getUndeleteCustomClassMethod()) + .addMethod(getCreatePhraseSetMethod()) + .addMethod(getListPhraseSetsMethod()) + .addMethod(getGetPhraseSetMethod()) + .addMethod(getUpdatePhraseSetMethod()) + .addMethod(getDeletePhraseSetMethod()) + .addMethod(getUndeletePhraseSetMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java index 928c9f330657..f62bc43d0e72 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource where this custom class will be created.
    * Format:
@@ -64,7 +86,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -73,14 +98,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:
@@ -92,17 +118,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 { @@ -111,9 +138,12 @@ public java.lang.String getParent() { } public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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.
@@ -122,6 +152,7 @@ public java.lang.String getParent() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The customClassId. */ @java.lang.Override @@ -130,14 +161,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.
@@ -146,16 +178,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 { @@ -166,11 +197,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 @@ -178,30 +214,44 @@ 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() { - return customClass_ == null ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() + : customClass_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -240,8 +289,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -251,21 +299,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -292,129 +338,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -430,9 +482,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 @@ -451,8 +503,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.CreateCustomClassRequest result = + new com.google.cloud.speech.v1.CreateCustomClassRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -466,9 +521,8 @@ private void buildPartial0(com.google.cloud.speech.v1.CreateCustomClassRequest r result.customClassId_ = customClassId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.customClass_ = customClassBuilder_ == null - ? customClass_ - : customClassBuilder_.build(); + result.customClass_ = + customClassBuilder_ == null ? customClass_ : customClassBuilder_.build(); } } @@ -476,38 +530,39 @@ private void buildPartial0(com.google.cloud.speech.v1.CreateCustomClassRequest r 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; @@ -515,7 +570,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_; bitField0_ |= 0x00000001; @@ -555,29 +611,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - customClassId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getCustomClassFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + customClassId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -587,10 +645,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource where this custom class will be created.
      * Format:
@@ -602,14 +663,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; @@ -618,6 +681,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this custom class will be created.
      * Format:
@@ -629,16 +694,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 { @@ -646,6 +712,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this custom class will be created.
      * Format:
@@ -657,19 +725,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this custom class will be created.
      * Format:
@@ -681,7 +755,10 @@ 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() { @@ -691,6 +768,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource where this custom class will be created.
      * Format:
@@ -702,13 +781,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -718,6 +801,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.
@@ -726,13 +811,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; @@ -741,6 +826,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.
@@ -749,15 +836,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 { @@ -765,6 +851,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,18 +861,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomClassId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } customClassId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -793,6 +885,7 @@ public Builder setCustomClassId(
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCustomClassId() { @@ -802,6 +895,8 @@ public Builder clearCustomClassId() { return this; } /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -810,12 +905,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); customClassId_ = value; bitField0_ |= 0x00000002; @@ -825,39 +922,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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) { @@ -873,14 +989,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(); } else { @@ -891,17 +1010,21 @@ 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 (((bitField0_ & 0x00000004) != 0) && - customClass_ != null && - customClass_ != com.google.cloud.speech.v1.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && customClass_ != null + && customClass_ != com.google.cloud.speech.v1.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -914,11 +1037,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -931,11 +1058,15 @@ 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() { bitField0_ |= 0x00000004; @@ -943,43 +1074,55 @@ public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassBuilder() { 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); } @@ -989,12 +1132,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(); } @@ -1003,27 +1146,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1038,6 +1181,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CreateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java index a854a4c098fa..ca145a658c4e 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java +++ b/java-speech/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:
@@ -19,11 +37,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:
@@ -35,13 +58,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.
@@ -50,10 +77,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.
@@ -62,35 +92,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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java index 0e4edea01710..0bb1510e5e63 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource where this phrase set will be created.
    * Format:
@@ -64,7 +86,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -73,14 +98,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:
@@ -92,17 +118,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 { @@ -111,9 +138,12 @@ public java.lang.String getParent() { } public static final int PHRASE_SET_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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.
@@ -122,6 +152,7 @@ public java.lang.String getParent() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The phraseSetId. */ @java.lang.Override @@ -130,14 +161,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.
@@ -146,16 +178,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 { @@ -166,11 +197,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 @@ -178,30 +214,44 @@ 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() { - return phraseSet_ == null ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() + : phraseSet_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -240,8 +289,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -251,21 +299,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -292,129 +338,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -430,9 +482,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 @@ -451,8 +503,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.CreatePhraseSetRequest result = + new com.google.cloud.speech.v1.CreatePhraseSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -466,9 +521,7 @@ private void buildPartial0(com.google.cloud.speech.v1.CreatePhraseSetRequest res result.phraseSetId_ = phraseSetId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.phraseSet_ = phraseSetBuilder_ == null - ? phraseSet_ - : phraseSetBuilder_.build(); + result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build(); } } @@ -476,38 +529,39 @@ private void buildPartial0(com.google.cloud.speech.v1.CreatePhraseSetRequest res 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; @@ -515,7 +569,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_; bitField0_ |= 0x00000001; @@ -555,29 +610,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - phraseSetId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getPhraseSetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + phraseSetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -587,10 +644,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource where this phrase set will be created.
      * Format:
@@ -602,14 +662,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; @@ -618,6 +680,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this phrase set will be created.
      * Format:
@@ -629,16 +693,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 { @@ -646,6 +711,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this phrase set will be created.
      * Format:
@@ -657,19 +724,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this phrase set will be created.
      * Format:
@@ -681,7 +754,10 @@ 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() { @@ -691,6 +767,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource where this phrase set will be created.
      * Format:
@@ -702,13 +780,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -718,6 +800,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.
@@ -726,13 +810,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; @@ -741,6 +825,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.
@@ -749,15 +835,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 { @@ -765,6 +850,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,18 +860,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhraseSetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } phraseSetId_ = value; bitField0_ |= 0x00000002; 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.
@@ -793,6 +884,7 @@ public Builder setPhraseSetId(
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPhraseSetId() { @@ -802,6 +894,8 @@ public Builder clearPhraseSetId() { return this; } /** + * + * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -810,12 +904,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); phraseSetId_ = value; bitField0_ |= 0x00000002; @@ -825,39 +921,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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) { @@ -873,14 +988,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(); } else { @@ -891,17 +1009,21 @@ 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 (((bitField0_ & 0x00000004) != 0) && - phraseSet_ != null && - phraseSet_ != com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && phraseSet_ != null + && phraseSet_ != com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -914,11 +1036,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -931,11 +1057,15 @@ 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() { bitField0_ |= 0x00000004; @@ -943,43 +1073,55 @@ public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetBuilder() { 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); } @@ -989,12 +1131,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(); } @@ -1003,27 +1145,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1038,6 +1180,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CreatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java index b833871fc1f5..6ed2b941b954 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java +++ b/java-speech/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:
@@ -19,11 +37,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:
@@ -35,13 +58,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.
@@ -50,10 +77,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.
@@ -62,35 +92,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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java similarity index 71% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java index e8de5865b8f1..44124e3d80a2 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java +++ b/java-speech/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,107 +47,122 @@ 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;
   }
-  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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** + * + * *
      * The class item's value.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -138,29 +171,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 { @@ -169,6 +202,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,8 +214,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_); } @@ -205,15 +238,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,87 +266,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 @@ -323,39 +362,41 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -365,9 +406,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 @@ -386,8 +427,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.CustomClass.ClassItem result = + new com.google.cloud.speech.v1.CustomClass.ClassItem(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -403,38 +447,41 @@ private void buildPartial0(com.google.cloud.speech.v1.CustomClass.ClassItem resu 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; @@ -442,7 +489,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_; bitField0_ |= 0x00000001; @@ -474,17 +522,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -494,22 +544,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -518,20 +571,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 { @@ -539,28 +593,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -570,23 +631,28 @@ public Builder clearValue() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -599,12 +665,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(); } @@ -613,27 +679,28 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,18 +715,21 @@ 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -668,29 +738,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 { @@ -699,15 +769,19 @@ public java.lang.String getName() { } public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -716,30 +790,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 { @@ -748,9 +822,12 @@ public java.lang.String getCustomClassId() { } public static final int ITEMS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List items_; /** + * + * *
    * A collection of class items.
    * 
@@ -762,6 +839,8 @@ public java.util.List getItems return items_; } /** + * + * *
    * A collection of class items.
    * 
@@ -769,11 +848,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.
    * 
@@ -785,6 +866,8 @@ public int getItemsCount() { return items_.size(); } /** + * + * *
    * A collection of class items.
    * 
@@ -796,6 +879,8 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem getItems(int index) { return items_.get(index); } /** + * + * *
    * A collection of class items.
    * 
@@ -803,12 +888,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; @@ -820,8 +905,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_); } @@ -847,8 +931,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -858,19 +941,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -895,97 +975,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
@@ -994,33 +1081,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1038,9 +1124,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
@@ -1059,9 +1145,12 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1092,38 +1181,39 @@ private void buildPartial0(com.google.cloud.speech.v1.CustomClass result) {
     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;
@@ -1160,9 +1250,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            itemsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getItemsFieldBuilder() : null;
+            itemsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getItemsFieldBuilder()
+                    : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -1194,35 +1285,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              customClassId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              com.google.cloud.speech.v1.CustomClass.ClassItem m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.CustomClass.ClassItem.parser(),
-                      extensionRegistry);
-              if (itemsBuilder_ == null) {
-                ensureItemsIsMutable();
-                items_.add(m);
-              } else {
-                itemsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                customClassId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                com.google.cloud.speech.v1.CustomClass.ClassItem m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1.CustomClass.ClassItem.parser(),
+                        extensionRegistry);
+                if (itemsBuilder_ == null) {
+                  ensureItemsIsMutable();
+                  items_.add(m);
+                } else {
+                  itemsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1232,22 +1327,25 @@ public Builder mergeFrom(
       } // finally
       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; @@ -1256,20 +1354,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 { @@ -1277,28 +1376,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1308,17 +1414,21 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1328,19 +1438,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; @@ -1349,21 +1461,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 { @@ -1371,30 +1484,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomClassId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } customClassId_ = value; bitField0_ |= 0x00000002; 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() { @@ -1404,18 +1524,22 @@ public Builder clearCustomClassId() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); customClassId_ = value; bitField0_ |= 0x00000002; @@ -1424,18 +1548,24 @@ public Builder setCustomClassIdBytes( } private java.util.List items_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000004; - } + } } 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.
      * 
@@ -1450,6 +1580,8 @@ public java.util.List getItems } } /** + * + * *
      * A collection of class items.
      * 
@@ -1464,6 +1596,8 @@ public int getItemsCount() { } } /** + * + * *
      * A collection of class items.
      * 
@@ -1478,14 +1612,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(); @@ -1499,6 +1634,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1517,6 +1654,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1537,14 +1676,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(); @@ -1558,6 +1698,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1576,6 +1718,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1594,6 +1738,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1604,8 +1750,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); @@ -1613,6 +1758,8 @@ public Builder addAllItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1630,6 +1777,8 @@ public Builder clearItems() { return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1647,39 +1796,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 { @@ -1687,6 +1841,8 @@ public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuild } } /** + * + * *
      * A collection of class items.
      * 
@@ -1694,49 +1850,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_ & 0x00000004) != 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_ & 0x00000004) != 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); } @@ -1746,12 +1908,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(); } @@ -1760,27 +1922,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1795,6 +1957,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java similarity index 100% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java index d22bd6cc0b5e..a32a11ff4e57 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java similarity index 66% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java index d867ebd6f041..4cd036fca68a 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java @@ -1,57 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -62,7 +84,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -71,14 +96,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}`
@@ -89,17 +115,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 { @@ -108,6 +135,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -119,8 +147,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_); } @@ -144,15 +171,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,129 +199,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -304,9 +337,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 @@ -325,8 +358,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.DeleteCustomClassRequest result = + new com.google.cloud.speech.v1.DeleteCustomClassRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -342,38 +378,39 @@ private void buildPartial0(com.google.cloud.speech.v1.DeleteCustomClassRequest r 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; @@ -381,7 +418,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_; bitField0_ |= 0x00000001; @@ -413,17 +451,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -433,10 +473,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -447,14 +490,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; @@ -463,6 +508,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -473,16 +520,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 { @@ -490,6 +538,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -500,19 +550,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -523,7 +579,10 @@ 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() { @@ -533,6 +592,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -543,22 +604,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -568,12 +633,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(); } @@ -582,27 +647,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -617,6 +682,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.DeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java index a534c8411380..9fdb35391b70 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java similarity index 62% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java index f39cb0f17a14..4d25db7465c7 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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; + @SuppressWarnings("serial") 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 @@ -66,30 +91,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 { @@ -98,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +137,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_); } @@ -134,15 +161,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,129 +189,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,9 +327,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 @@ -315,8 +348,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.DeletePhraseSetRequest result = + new com.google.cloud.speech.v1.DeletePhraseSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -332,38 +368,39 @@ private void buildPartial0(com.google.cloud.speech.v1.DeletePhraseSetRequest res 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; @@ -371,7 +408,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_; bitField0_ |= 0x00000001; @@ -403,17 +441,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,23 +463,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -448,21 +493,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 { @@ -470,30 +518,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -503,27 +562,33 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -533,12 +598,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(); } @@ -547,27 +612,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -582,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.DeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java new file mode 100644 index 000000000000..acfe28df3c0d --- /dev/null +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java similarity index 62% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java index fea2579924f3..2febfb796ae4 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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; + @SuppressWarnings("serial") 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 @@ -66,30 +91,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 { @@ -98,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +137,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_); } @@ -134,15 +161,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,130 +188,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,9 +327,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 @@ -315,8 +348,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.GetCustomClassRequest result = + new com.google.cloud.speech.v1.GetCustomClassRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -332,38 +368,39 @@ private void buildPartial0(com.google.cloud.speech.v1.GetCustomClassRequest resu 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; @@ -371,7 +408,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_; bitField0_ |= 0x00000001; @@ -403,17 +441,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,23 +463,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -448,21 +493,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 { @@ -470,30 +518,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -503,27 +562,33 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -533,12 +598,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(); } @@ -547,27 +612,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -582,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.GetCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java new file mode 100644 index 000000000000..73e1fc4cca40 --- /dev/null +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java similarity index 66% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java index b76f8f8c6820..33160c7f7863 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java @@ -1,57 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -62,7 +84,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -71,14 +96,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}`
@@ -89,17 +115,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 { @@ -108,6 +135,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -119,8 +147,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_); } @@ -144,15 +171,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -171,130 +198,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -304,9 +337,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 @@ -325,8 +358,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.GetPhraseSetRequest result = + new com.google.cloud.speech.v1.GetPhraseSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -342,38 +378,39 @@ private void buildPartial0(com.google.cloud.speech.v1.GetPhraseSetRequest result 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; @@ -413,17 +450,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -433,10 +472,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -447,14 +489,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; @@ -463,6 +507,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -473,16 +519,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 { @@ -490,6 +537,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -500,19 +549,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -523,7 +578,10 @@ 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() { @@ -533,6 +591,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -543,22 +603,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -568,12 +632,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(); } @@ -582,27 +646,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -617,6 +681,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.GetPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java index a7aa5beacb2e..84f560a798b3 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java similarity index 70% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java index b135c1117a81..f880b405cd2a 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -63,7 +85,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -72,14 +97,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`
@@ -90,17 +116,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 { @@ -111,6 +138,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * 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
@@ -119,6 +148,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -127,9 +157,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -138,6 +171,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -146,14 +180,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.
@@ -162,16 +197,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 { @@ -180,6 +214,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +226,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_); } @@ -215,8 +249,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_); @@ -229,19 +262,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,129 +296,135 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -399,9 +436,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 @@ -420,8 +457,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.ListCustomClassesRequest result = + new com.google.cloud.speech.v1.ListCustomClassesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -443,38 +483,39 @@ private void buildPartial0(com.google.cloud.speech.v1.ListCustomClassesRequest r 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; @@ -482,7 +523,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_; bitField0_ |= 0x00000001; @@ -522,27 +564,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -552,10 +598,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -566,14 +615,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; @@ -582,6 +633,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -592,16 +645,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 { @@ -609,6 +663,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -619,19 +675,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -642,7 +704,10 @@ 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() { @@ -652,6 +717,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -662,13 +729,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -676,8 +747,10 @@ public Builder setParentBytes( 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
@@ -686,6 +759,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -693,6 +767,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
@@ -701,17 +777,20 @@ 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; bitField0_ |= 0x00000002; 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
@@ -720,6 +799,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -731,6 +811,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.
@@ -739,13 +821,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; @@ -754,6 +836,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -762,15 +846,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 { @@ -778,6 +861,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -786,18 +871,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -806,6 +895,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -815,6 +905,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -823,21 +915,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -847,12 +941,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(); } @@ -861,27 +955,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +990,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.ListCustomClassesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java index 5e2d443bfaad..8644a10667d2 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java similarity index 72% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java index 1d187f70614c..a12356f80bc4 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private java.util.List customClasses_; /** + * + * *
    * The custom classes.
    * 
@@ -64,6 +86,8 @@ public java.util.List getCustomClassesLi return customClasses_; } /** + * + * *
    * The custom classes.
    * 
@@ -71,11 +95,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.
    * 
@@ -87,6 +113,8 @@ public int getCustomClassesCount() { return customClasses_.size(); } /** + * + * *
    * The custom classes.
    * 
@@ -98,6 +126,8 @@ public com.google.cloud.speech.v1.CustomClass getCustomClasses(int index) { return customClasses_.get(index); } /** + * + * *
    * The custom classes.
    * 
@@ -105,21 +135,24 @@ 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; + @SuppressWarnings("serial") 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 @@ -128,30 +161,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 { @@ -160,6 +193,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +205,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)); } @@ -189,8 +222,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_); @@ -203,17 +235,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,129 +268,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +413,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 @@ -397,14 +434,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1.ListCustomClassesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1.ListCustomClassesResponse result) { if (customClassesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { customClasses_ = java.util.Collections.unmodifiableList(customClasses_); @@ -427,38 +468,39 @@ private void buildPartial0(com.google.cloud.speech.v1.ListCustomClassesResponse 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; @@ -466,7 +508,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()) { @@ -485,9 +528,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_); } @@ -524,30 +568,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1.CustomClass m = - input.readMessage( - com.google.cloud.speech.v1.CustomClass.parser(), - extensionRegistry); - if (customClassesBuilder_ == null) { - ensureCustomClassesIsMutable(); - customClasses_.add(m); - } else { - customClassesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.speech.v1.CustomClass m = + input.readMessage( + com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry); + if (customClassesBuilder_ == null) { + ensureCustomClassesIsMutable(); + customClasses_.add(m); + } else { + customClassesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,21 +603,29 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -586,6 +640,8 @@ public java.util.List getCustomClassesLi } } /** + * + * *
      * The custom classes.
      * 
@@ -600,6 +656,8 @@ public int getCustomClassesCount() { } } /** + * + * *
      * The custom classes.
      * 
@@ -614,14 +672,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(); @@ -635,6 +694,8 @@ public Builder setCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -653,6 +714,8 @@ public Builder setCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -673,14 +736,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(); @@ -694,6 +758,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -712,6 +778,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -730,6 +798,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -740,8 +810,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); @@ -749,6 +818,8 @@ public Builder addAllCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -766,6 +837,8 @@ public Builder clearCustomClasses() { return this; } /** + * + * *
      * The custom classes.
      * 
@@ -783,39 +856,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 { @@ -823,6 +901,8 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder } } /** + * + * *
      * The custom classes.
      * 
@@ -830,38 +910,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(), @@ -873,19 +962,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; @@ -894,21 +985,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 { @@ -916,30 +1008,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -949,27 +1048,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -979,12 +1082,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(); } @@ -993,27 +1096,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1028,6 +1131,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.ListCustomClassesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java index 59b5c44f8cf4..187213b4a1cc 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java similarity index 70% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java index 40f7a9b35b96..279e1256747e 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -63,7 +85,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -72,14 +97,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}`
@@ -90,17 +116,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 { @@ -111,6 +138,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * 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
@@ -119,6 +148,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -127,9 +157,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -138,6 +171,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -146,14 +180,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.
@@ -162,16 +197,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 { @@ -180,6 +214,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +226,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_); } @@ -215,8 +249,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_); @@ -229,19 +262,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,130 +295,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -399,9 +436,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 @@ -420,8 +457,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.ListPhraseSetRequest result = + new com.google.cloud.speech.v1.ListPhraseSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -443,38 +483,39 @@ private void buildPartial0(com.google.cloud.speech.v1.ListPhraseSetRequest resul 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; @@ -482,7 +523,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_; bitField0_ |= 0x00000001; @@ -522,27 +564,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -552,10 +598,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -566,14 +615,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; @@ -582,6 +633,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -592,16 +645,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 { @@ -609,6 +663,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -619,19 +675,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -642,7 +704,10 @@ 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() { @@ -652,6 +717,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -662,13 +729,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -676,8 +747,10 @@ public Builder setParentBytes( 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
@@ -686,6 +759,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -693,6 +767,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
@@ -701,17 +777,20 @@ 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; bitField0_ |= 0x00000002; 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
@@ -720,6 +799,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -731,6 +811,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.
@@ -739,13 +821,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; @@ -754,6 +836,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -762,15 +846,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 { @@ -778,6 +861,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -786,18 +871,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -806,6 +895,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -815,6 +905,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -823,21 +915,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -847,12 +941,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(); } @@ -861,27 +955,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +990,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.ListPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java index 0077943458ba..21e2b44cf07c 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java similarity index 71% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java index 86740efe5c81..ce02bef96807 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private java.util.List phraseSets_; /** + * + * *
    * The phrase set.
    * 
@@ -64,6 +86,8 @@ public java.util.List getPhraseSetsList() return phraseSets_; } /** + * + * *
    * The phrase set.
    * 
@@ -71,11 +95,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.
    * 
@@ -87,6 +113,8 @@ public int getPhraseSetsCount() { return phraseSets_.size(); } /** + * + * *
    * The phrase set.
    * 
@@ -98,6 +126,8 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** + * + * *
    * The phrase set.
    * 
@@ -105,21 +135,24 @@ 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; + @SuppressWarnings("serial") 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 @@ -128,30 +161,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 { @@ -160,6 +193,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +205,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)); } @@ -189,8 +222,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_); @@ -203,17 +235,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -236,130 +267,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +413,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 @@ -397,14 +434,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1.ListPhraseSetResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1.ListPhraseSetResponse result) { if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -427,38 +468,39 @@ private void buildPartial0(com.google.cloud.speech.v1.ListPhraseSetResponse resu 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; @@ -466,7 +508,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()) { @@ -485,9 +528,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_); } @@ -524,30 +568,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1.PhraseSet m = - input.readMessage( - com.google.cloud.speech.v1.PhraseSet.parser(), - extensionRegistry); - if (phraseSetsBuilder_ == null) { - ensurePhraseSetsIsMutable(); - phraseSets_.add(m); - } else { - phraseSetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.speech.v1.PhraseSet m = + input.readMessage( + com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry); + if (phraseSetsBuilder_ == null) { + ensurePhraseSetsIsMutable(); + phraseSets_.add(m); + } else { + phraseSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,21 +603,28 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -586,6 +639,8 @@ public java.util.List getPhraseSetsList() } } /** + * + * *
      * The phrase set.
      * 
@@ -600,6 +655,8 @@ public int getPhraseSetsCount() { } } /** + * + * *
      * The phrase set.
      * 
@@ -614,14 +671,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(); @@ -635,6 +693,8 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -653,6 +713,8 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -673,14 +735,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(); @@ -694,14 +757,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()); @@ -712,6 +776,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -730,6 +796,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -740,8 +808,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); @@ -749,6 +816,8 @@ public Builder addAllPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -766,6 +835,8 @@ public Builder clearPhraseSets() { return this; } /** + * + * *
      * The phrase set.
      * 
@@ -783,39 +854,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 { @@ -823,6 +899,8 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder( } } /** + * + * *
      * The phrase set.
      * 
@@ -830,42 +908,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_; @@ -873,19 +956,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; @@ -894,21 +979,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 { @@ -916,30 +1002,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -949,27 +1042,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -979,12 +1076,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(); } @@ -993,27 +1090,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1028,6 +1125,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.ListPhraseSetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java index 8f78e4160d41..4b06b62509dc 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java similarity index 100% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java similarity index 70% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java index e88617c106db..0ac185cf74f7 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java +++ b/java-speech/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,53 +29,58 @@
  *
  * 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;
   }
-  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_ = 0;
   /**
+   *
+   *
    * 
    * 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 @@ -69,11 +91,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 @@ -81,11 +106,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 @@ -93,6 +121,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Time when the request was received.
    * 
@@ -107,11 +137,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 @@ -119,18 +152,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.
    * 
@@ -139,19 +179,25 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } public static final int URI_FIELD_NUMBER = 4; + @SuppressWarnings("serial") 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 @@ -160,30 +206,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 { @@ -192,6 +238,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,8 +250,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_); } @@ -227,16 +273,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_); @@ -249,27 +292,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -299,96 +339,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
@@ -397,33 +445,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -444,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_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
@@ -465,8 +512,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v1.LongRunningRecognizeMetadata result =
+          new com.google.cloud.speech.v1.LongRunningRecognizeMetadata(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -477,14 +527,11 @@ private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeMetada
         result.progressPercent_ = progressPercent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null
-            ? startTime_
-            : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.lastUpdateTime_ = lastUpdateTimeBuilder_ == null
-            ? lastUpdateTime_
-            : lastUpdateTimeBuilder_.build();
+        result.lastUpdateTime_ =
+            lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.uri_ = uri_;
@@ -495,38 +542,39 @@ private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeMetada
     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;
@@ -534,7 +582,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());
       }
@@ -575,36 +624,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              progressPercent_ = input.readInt32();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              input.readMessage(
-                  getStartTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getLastUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              uri_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                progressPercent_ = input.readInt32();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                uri_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -614,16 +664,20 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    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 @@ -631,29 +685,35 @@ 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; bitField0_ |= 0x00000001; 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() { @@ -665,24 +725,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -693,6 +762,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Time when the request was received.
      * 
@@ -713,14 +784,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(); } else { @@ -731,6 +803,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -739,9 +813,9 @@ public Builder setStartTime( */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -754,6 +828,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -771,6 +847,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -783,6 +861,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the request was received.
      * 
@@ -793,11 +873,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.
      * 
@@ -805,14 +886,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_; @@ -820,34 +904,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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.
      * 
@@ -868,14 +965,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(); } else { @@ -886,6 +984,8 @@ public Builder setLastUpdateTime( return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -894,9 +994,9 @@ public Builder setLastUpdateTime( */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - lastUpdateTime_ != null && - lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && lastUpdateTime_ != null + && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; @@ -909,6 +1009,8 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -926,6 +1028,8 @@ public Builder clearLastUpdateTime() { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -938,6 +1042,8 @@ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { return getLastUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -948,11 +1054,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.
      * 
@@ -960,14 +1069,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_; @@ -975,19 +1087,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; @@ -996,21 +1110,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 { @@ -1018,30 +1133,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uri_ = value; bitField0_ |= 0x00000008; 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() { @@ -1051,27 +1173,31 @@ public Builder clearUri() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000008; 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); } @@ -1081,12 +1207,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(); } @@ -1095,27 +1221,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; 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.LongRunningRecognizeMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java similarity index 74% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java index ccedbf890615..2b8a33c7f5ef 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java similarity index 58% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java index 848c9c5dcfb1..71531d95df77 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java +++ b/java-speech/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,52 +28,58 @@
  *
  * 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;
   }
-  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 @@ -64,39 +87,57 @@ 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() { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } 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 @@ -104,37 +145,55 @@ 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() { - return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } 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 @@ -142,30 +201,44 @@ 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() { - return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +250,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()); } @@ -198,16 +270,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -217,27 +286,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -268,96 +335,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.
@@ -365,33 +440,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -415,9 +489,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
@@ -436,8 +510,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v1.LongRunningRecognizeRequest result =
+          new com.google.cloud.speech.v1.LongRunningRecognizeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -445,19 +522,14 @@ public com.google.cloud.speech.v1.LongRunningRecognizeRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.config_ = configBuilder_ == null
-            ? config_
-            : configBuilder_.build();
+        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.audio_ = audioBuilder_ == null
-            ? audio_
-            : audioBuilder_.build();
+        result.audio_ = audioBuilder_ == null ? audio_ : audioBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.outputConfig_ = outputConfigBuilder_ == null
-            ? outputConfig_
-            : outputConfigBuilder_.build();
+        result.outputConfig_ =
+            outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
       }
     }
 
@@ -465,38 +537,39 @@ private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeReques
     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;
@@ -504,7 +577,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());
       }
@@ -540,33 +614,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getAudioFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 34: {
-              input.readMessage(
-                  getOutputConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getAudioFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 34:
+              {
+                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -576,46 +648,66 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * 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) { @@ -631,15 +723,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(); } else { @@ -650,18 +745,22 @@ 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 (((bitField0_ & 0x00000001) != 0) && - config_ != null && - config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && config_ != null + && config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -674,12 +773,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -692,12 +795,16 @@ 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() { bitField0_ |= 0x00000001; @@ -705,38 +812,50 @@ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { 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_; @@ -744,39 +863,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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) { @@ -792,14 +930,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(); } else { @@ -810,17 +951,21 @@ 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 (((bitField0_ & 0x00000002) != 0) && - audio_ != null && - audio_ != com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && audio_ != null + && audio_ != com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) { getAudioBuilder().mergeFrom(value); } else { audio_ = value; @@ -833,11 +978,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -850,11 +999,15 @@ 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() { bitField0_ |= 0x00000002; @@ -862,36 +1015,48 @@ public com.google.cloud.speech.v1.RecognitionAudio.Builder getAudioBuilder() { 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_; @@ -899,39 +1064,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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) { @@ -947,11 +1131,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) { @@ -965,17 +1153,22 @@ 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 (((bitField0_ & 0x00000004) != 0) && - outputConfig_ != null && - outputConfig_ != com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -988,11 +1181,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1005,11 +1202,15 @@ 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() { bitField0_ |= 0x00000004; @@ -1017,43 +1218,55 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig.Builder getOutputConfig 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); } @@ -1063,12 +1276,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(); } @@ -1077,27 +1290,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1112,6 +1325,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v1.LongRunningRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java index fe890f69a390..3a4e90c85d6f 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java similarity index 73% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java index dfe8f2186768..e9effc5e23ac 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java +++ b/java-speech/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,48 +31,53 @@
  *
  * 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;
   }
-  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;
+
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -68,6 +90,8 @@ public java.util.List getRes
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -76,11 +100,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.
@@ -93,6 +119,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -105,6 +133,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.
@@ -121,11 +151,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 @@ -133,18 +166,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.
    * 
@@ -153,17 +193,22 @@ public com.google.protobuf.Duration getTotalBilledTime() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } 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 @@ -171,18 +216,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.
    * 
@@ -191,17 +243,22 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig() { */ @java.lang.Override public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { - return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } 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 @@ -209,11 +266,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 @@ -221,6 +281,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.
    * 
@@ -235,11 +297,14 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 8; private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_; /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -247,18 +312,25 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
@@ -266,19 +338,25 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; */ @java.lang.Override - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 9; private long requestId_ = 0L; /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 9; + * * @return The requestId. */ @java.lang.Override @@ -287,6 +365,7 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -298,8 +377,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)); } @@ -328,28 +406,23 @@ 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()); } if (speechAdaptationInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSpeechAdaptationInfo()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, requestId_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -359,37 +432,32 @@ 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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo() - .equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() - != other.getRequestId()) return false; + if (getRequestId() != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -422,104 +490,111 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } 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`
@@ -530,33 +605,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -593,9 +667,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
@@ -614,14 +688,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v1.LongRunningRecognizeResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v1.LongRunningRecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -636,24 +714,22 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1.LongRunningRe
     private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
-            ? totalBilledTime_
-            : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ =
+            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.outputConfig_ = outputConfigBuilder_ == null
-            ? outputConfig_
-            : outputConfigBuilder_.build();
+        result.outputConfig_ =
+            outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.outputError_ = outputErrorBuilder_ == null
-            ? outputError_
-            : outputErrorBuilder_.build();
+        result.outputError_ =
+            outputErrorBuilder_ == null ? outputError_ : outputErrorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
-            ? speechAdaptationInfo_
-            : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ =
+            speechAdaptationInfoBuilder_ == null
+                ? speechAdaptationInfo_
+                : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.requestId_ = requestId_;
@@ -664,38 +740,39 @@ private void buildPartial0(com.google.cloud.speech.v1.LongRunningRecognizeRespon
     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;
@@ -703,7 +780,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()) {
@@ -722,9 +800,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_);
           }
@@ -771,58 +850,58 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18: {
-              com.google.cloud.speech.v1.SpeechRecognitionResult m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
-                      extensionRegistry);
-              if (resultsBuilder_ == null) {
-                ensureResultsIsMutable();
-                results_.add(m);
-              } else {
-                resultsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getTotalBilledTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 26
-            case 50: {
-              input.readMessage(
-                  getOutputConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getOutputErrorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 66
-            case 72: {
-              requestId_ = input.readInt64();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 72
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 18:
+              {
+                com.google.cloud.speech.v1.SpeechRecognitionResult m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
+                        extensionRegistry);
+                if (resultsBuilder_ == null) {
+                  ensureResultsIsMutable();
+                  results_.add(m);
+                } else {
+                  resultsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+            case 50:
+              {
+                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getOutputErrorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(
+                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 66
+            case 72:
+              {
+                requestId_ = input.readInt64();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 72
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -832,21 +911,29 @@ public Builder mergeFrom(
       } // finally
       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.
@@ -862,6 +949,8 @@ public java.util.List getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -877,6 +966,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -892,6 +983,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -899,8 +992,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();
@@ -914,6 +1006,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -933,6 +1027,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -954,6 +1050,8 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -961,8 +1059,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();
@@ -976,6 +1073,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -995,6 +1094,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1014,6 +1115,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1025,8 +1128,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);
@@ -1034,6 +1136,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1052,6 +1156,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1070,6 +1176,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1077,11 +1185,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.
@@ -1092,11 +1201,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.
@@ -1104,8 +1216,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 {
@@ -1113,6 +1225,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1121,10 +1235,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.
@@ -1132,12 +1248,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.
@@ -1145,20 +1263,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_;
@@ -1166,34 +1287,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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.
      * 
@@ -1214,14 +1348,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(); } else { @@ -1232,6 +1367,8 @@ public Builder setTotalBilledTime( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1240,9 +1377,9 @@ public Builder setTotalBilledTime( */ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - totalBilledTime_ != null && - totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && totalBilledTime_ != null + && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getTotalBilledTimeBuilder().mergeFrom(value); } else { totalBilledTime_ = value; @@ -1255,6 +1392,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1272,6 +1411,8 @@ public Builder clearTotalBilledTime() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1284,6 +1425,8 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { return getTotalBilledTimeFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1294,11 +1437,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.
      * 
@@ -1306,14 +1452,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_; @@ -1321,34 +1470,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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.
      * 
@@ -1369,6 +1531,8 @@ public Builder setOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1387,6 +1551,8 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1395,9 +1561,10 @@ public Builder setOutputConfig( */ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - outputConfig_ != null && - outputConfig_ != com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -1410,6 +1577,8 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConf return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1427,6 +1596,8 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1439,6 +1610,8 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig.Builder getOutputConfig return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1449,11 +1622,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.
      * 
@@ -1461,14 +1637,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_; @@ -1476,24 +1655,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 ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * 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() { @@ -1504,6 +1690,8 @@ public com.google.rpc.Status getOutputError() { } } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1524,14 +1712,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(); } else { @@ -1542,6 +1731,8 @@ public Builder setOutputError( return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1550,9 +1741,9 @@ public Builder setOutputError( */ public Builder mergeOutputError(com.google.rpc.Status value) { if (outputErrorBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - outputError_ != null && - outputError_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && outputError_ != null + && outputError_ != com.google.rpc.Status.getDefaultInstance()) { getOutputErrorBuilder().mergeFrom(value); } else { outputError_ = value; @@ -1565,6 +1756,8 @@ public Builder mergeOutputError(com.google.rpc.Status value) { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1582,6 +1775,8 @@ public Builder clearOutputError() { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1594,6 +1789,8 @@ public com.google.rpc.Status.Builder getOutputErrorBuilder() { return getOutputErrorFieldBuilder().getBuilder(); } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1604,11 +1801,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.
      * 
@@ -1616,14 +1814,15 @@ 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_; @@ -1631,34 +1830,47 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_; + com.google.cloud.speech.v1.SpeechAdaptationInfo, + com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> + speechAdaptationInfoBuilder_; /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1679,6 +1891,8 @@ public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptati return this; } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1697,17 +1911,21 @@ public Builder setSpeechAdaptationInfo( return this; } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo( + com.google.cloud.speech.v1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - speechAdaptationInfo_ != null && - speechAdaptationInfo_ != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && speechAdaptationInfo_ != null + && speechAdaptationInfo_ + != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -1720,6 +1938,8 @@ public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdapta return this; } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1737,33 +1957,42 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder + getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null ? - com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1771,27 +2000,33 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptat * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1.SpeechAdaptationInfo, + com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), - getParentForChildren(), - isClean()); + speechAdaptationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.SpeechAdaptationInfo, + com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), getParentForChildren(), isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_ ; + private long requestId_; /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; + * * @return The requestId. */ @java.lang.Override @@ -1799,29 +2034,35 @@ public long getRequestId() { return requestId_; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; + * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1830,9 +2071,9 @@ public Builder clearRequestId() { 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); } @@ -1842,12 +2083,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(); } @@ -1856,27 +2097,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1891,6 +2132,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.speech.v1.LongRunningRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java similarity index 84% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java index 1faf564a96a8..38e77a1cc96c 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java +++ b/java-speech/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.
    * 
@@ -138,24 +186,32 @@ com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder( com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder(); /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
@@ -165,12 +221,15 @@ com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder( com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 9; + * * @return The requestId. */ long getRequestId(); diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java similarity index 75% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java index 2db60ebdd2ac..98becdcb5ce7 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java +++ b/java-speech/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,54 +45,63 @@ 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;
   }
-  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
@@ -88,11 +115,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
@@ -121,53 +151,59 @@ 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;
     }
-    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;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object value_ = "";
     /**
+     *
+     *
      * 
      * The phrase itself.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -176,29 +212,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 { @@ -209,6 +245,8 @@ public java.lang.String getValue() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_ = 0F; /** + * + * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -222,6 +260,7 @@ public java.lang.String getValue() {
      * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -230,6 +269,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -241,8 +281,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_); } @@ -262,8 +301,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -273,18 +311,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -299,95 +336,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) + getUnknownFields().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 @@ -397,6 +439,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
@@ -425,33 +469,33 @@ 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()
-      private Builder() {
+      private Builder() {}
 
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -462,9 +506,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
@@ -483,8 +527,11 @@ 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);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.speech.v1.PhraseSet.Phrase result =
+            new com.google.cloud.speech.v1.PhraseSet.Phrase(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -503,38 +550,41 @@ private void buildPartial0(com.google.cloud.speech.v1.PhraseSet.Phrase result) {
       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;
@@ -577,22 +627,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                value_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 21: {
-                boost_ = input.readFloat();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 21
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  value_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 21:
+                {
+                  boost_ = input.readFloat();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 21
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -602,22 +655,25 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       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; @@ -626,20 +682,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 { @@ -647,28 +704,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -678,17 +742,21 @@ public Builder clearValue() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; @@ -696,8 +764,10 @@ public Builder setValueBytes( 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
@@ -711,6 +781,7 @@ public Builder setValueBytes(
        * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -718,6 +789,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
@@ -731,17 +804,20 @@ public float getBoost() {
        * 
* * float boost = 2; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000002; 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
@@ -755,6 +831,7 @@ public Builder setBoost(float value) {
        * 
* * float boost = 2; + * * @return This builder for chaining. */ public Builder clearBoost() { @@ -763,6 +840,7 @@ public Builder clearBoost() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -775,12 +853,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(); } @@ -789,27 +867,28 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -824,18 +903,21 @@ 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -844,29 +926,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 { @@ -875,9 +957,12 @@ public java.lang.String getName() { } public static final int PHRASES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List phrases_; /** + * + * *
    * A list of word and phrases.
    * 
@@ -889,6 +974,8 @@ public java.util.List getPhrasesLis return phrases_; } /** + * + * *
    * A list of word and phrases.
    * 
@@ -896,11 +983,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.
    * 
@@ -912,6 +1001,8 @@ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -923,6 +1014,8 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase getPhrases(int index) { return phrases_.get(index); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -930,14 +1023,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_ = 0F; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -951,6 +1045,7 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -959,6 +1054,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -970,8 +1066,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_); } @@ -994,12 +1089,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1009,20 +1102,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1041,104 +1131,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) + getUnknownFields().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.
@@ -1146,33 +1241,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1190,9 +1284,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
@@ -1213,7 +1307,9 @@ public com.google.cloud.speech.v1.PhraseSet build() {
     public com.google.cloud.speech.v1.PhraseSet buildPartial() {
       com.google.cloud.speech.v1.PhraseSet result = new com.google.cloud.speech.v1.PhraseSet(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1244,38 +1340,39 @@ private void buildPartial0(com.google.cloud.speech.v1.PhraseSet result) {
     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;
@@ -1307,9 +1404,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            phrasesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPhrasesFieldBuilder() : null;
+            phrasesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPhrasesFieldBuilder()
+                    : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -1344,35 +1442,38 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              com.google.cloud.speech.v1.PhraseSet.Phrase m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.PhraseSet.Phrase.parser(),
-                      extensionRegistry);
-              if (phrasesBuilder_ == null) {
-                ensurePhrasesIsMutable();
-                phrases_.add(m);
-              } else {
-                phrasesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            case 37: {
-              boost_ = input.readFloat();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 37
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.cloud.speech.v1.PhraseSet.Phrase m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1.PhraseSet.Phrase.parser(), extensionRegistry);
+                if (phrasesBuilder_ == null) {
+                  ensurePhrasesIsMutable();
+                  phrases_.add(m);
+                } else {
+                  phrasesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            case 37:
+              {
+                boost_ = input.readFloat();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 37
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1382,22 +1483,25 @@ public Builder mergeFrom(
       } // finally
       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; @@ -1406,20 +1510,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 { @@ -1427,28 +1532,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1458,17 +1570,21 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1477,18 +1593,24 @@ public Builder setNameBytes( } private java.util.List phrases_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { phrases_ = new java.util.ArrayList(phrases_); bitField0_ |= 0x00000002; - } + } } 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.
      * 
@@ -1503,6 +1625,8 @@ public java.util.List getPhrasesLis } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1517,6 +1641,8 @@ public int getPhrasesCount() { } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1531,14 +1657,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(); @@ -1552,6 +1679,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1570,6 +1699,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1590,14 +1721,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(); @@ -1611,14 +1743,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()); @@ -1629,6 +1762,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1647,6 +1782,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1657,8 +1794,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); @@ -1666,6 +1802,8 @@ public Builder addAllPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1683,6 +1821,8 @@ public Builder clearPhrases() { return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1700,39 +1840,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 { @@ -1740,6 +1885,8 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1747,49 +1894,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_ & 0x00000002) != 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_ & 0x00000002) != 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
@@ -1803,6 +1958,7 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder(
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -1810,6 +1966,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
@@ -1823,17 +1981,20 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000004; 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
@@ -1847,6 +2008,7 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { @@ -1855,9 +2017,9 @@ public Builder clearBoost() { 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); } @@ -1867,12 +2029,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(); } @@ -1881,27 +2043,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1916,6 +2078,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java similarity index 100% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java similarity index 72% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java index 0119e7f7482e..f341693f7936 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java similarity index 73% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java index 2f024eabd65d..359a12656d5b 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java +++ b/java-speech/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,52 +30,56 @@
  *
  * 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;
   }
-  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;
     }
@@ -74,25 +95,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
@@ -100,6 +126,7 @@ public int getNumber() {
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ @java.lang.Override @@ -107,6 +134,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
@@ -114,6 +143,7 @@ public boolean hasContent() {
    * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -126,6 +156,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).
@@ -137,12 +169,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).
@@ -154,6 +189,7 @@ public boolean hasUri() {
    * 
* * string uri = 2; + * * @return The uri. */ public java.lang.String getUri() { @@ -164,8 +200,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; @@ -174,6 +209,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).
@@ -185,18 +222,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; } @@ -207,6 +243,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,11 +255,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_); @@ -237,9 +272,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_); @@ -252,22 +287,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: @@ -300,97 +334,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
@@ -400,33 +441,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -437,9 +477,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
@@ -458,8 +498,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v1.RecognitionAudio result =
+          new com.google.cloud.speech.v1.RecognitionAudio(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -478,38 +521,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v1.RecognitionAudio resu
     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;
@@ -519,19 +563,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.getUnknownFields());
       onChanged();
@@ -559,23 +606,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              audioSource_ = input.readBytes();
-              audioSourceCase_ = 1;
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              audioSourceCase_ = 2;
-              audioSource_ = s;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                audioSource_ = input.readBytes();
+                audioSourceCase_ = 1;
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                audioSourceCase_ = 2;
+                audioSource_ = s;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -585,12 +635,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -603,6 +653,8 @@ public Builder clearAudioSource() {
     private int bitField0_;
 
     /**
+     *
+     *
      * 
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -610,12 +662,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
@@ -623,6 +678,7 @@ public boolean hasContent() {
      * 
* * bytes content = 1; + * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -632,6 +688,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
@@ -639,17 +697,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(); } + if (value == null) { + 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
@@ -657,6 +720,7 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -669,6 +733,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).
@@ -680,6 +746,7 @@ public Builder clearContent() {
      * 
* * string uri = 2; + * * @return Whether the uri field is set. */ @java.lang.Override @@ -687,6 +754,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).
@@ -698,6 +767,7 @@ public boolean hasUri() {
      * 
* * string uri = 2; + * * @return The uri. */ @java.lang.Override @@ -707,8 +777,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; @@ -719,6 +788,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).
@@ -730,19 +801,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; } @@ -752,6 +822,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).
@@ -763,18 +835,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUri(java.lang.String value) { + if (value == null) { + 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).
@@ -786,6 +862,7 @@ public Builder setUri(
      * 
* * string uri = 2; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -797,6 +874,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).
@@ -808,21 +887,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + 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); } @@ -832,12 +913,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(); } @@ -846,27 +927,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -881,6 +962,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionAudio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java similarity index 79% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java index 4347fb6f5a58..b8330aa93016 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java similarity index 83% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java index edeacb7e360d..8bf3511d1e87 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java +++ b/java-speech/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,30 +48,33 @@ 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;
   }
-  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
@@ -79,9 +100,10 @@ protected java.lang.Object newInstance(
    *
    * 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.
      * 
@@ -90,6 +112,8 @@ public enum AudioEncoding */ ENCODING_UNSPECIFIED(0), /** + * + * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -98,6 +122,8 @@ public enum AudioEncoding */ LINEAR16(1), /** + * + * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -111,6 +137,8 @@ public enum AudioEncoding
      */
     FLAC(2),
     /**
+     *
+     *
      * 
      * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
      * 
@@ -119,6 +147,8 @@ public enum AudioEncoding */ MULAW(3), /** + * + * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -127,6 +157,8 @@ public enum AudioEncoding */ AMR(4), /** + * + * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -135,6 +167,8 @@ public enum AudioEncoding */ AMR_WB(5), /** + * + * *
      * Opus encoded audio frames in Ogg container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)).
@@ -145,6 +179,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
@@ -165,6 +201,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
@@ -178,6 +216,8 @@ public enum AudioEncoding
     ;
 
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -186,6 +226,8 @@ public enum AudioEncoding */ public static final int ENCODING_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -194,6 +236,8 @@ public enum AudioEncoding */ public static final int LINEAR16_VALUE = 1; /** + * + * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -207,6 +251,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.
      * 
@@ -215,6 +261,8 @@ public enum AudioEncoding */ public static final int MULAW_VALUE = 3; /** + * + * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -223,6 +271,8 @@ public enum AudioEncoding */ public static final int AMR_VALUE = 4; /** + * + * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -231,6 +281,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)).
@@ -241,6 +293,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
@@ -261,6 +315,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
@@ -271,7 +327,6 @@ public enum AudioEncoding
      */
     public static final int WEBM_OPUS_VALUE = 9;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -296,55 +351,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;
@@ -364,6 +425,8 @@ private AudioEncoding(int value) {
   public static final int ENCODING_FIELD_NUMBER = 1;
   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
@@ -371,12 +434,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
@@ -384,16 +451,23 @@ 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() { - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.forNumber(encoding_); - return result == null ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding() { + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.forNumber(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_ = 0; /** + * + * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -405,6 +479,7 @@ private AudioEncoding(int value) {
    * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -415,6 +490,8 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 7; private int audioChannelCount_ = 0; /** + * + * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -427,6 +504,7 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ @java.lang.Override @@ -437,6 +515,8 @@ public int getAudioChannelCount() { public static final int ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER = 12; private boolean enableSeparateRecognitionPerChannel_ = false; /** + * + * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -447,6 +527,7 @@ public int getAudioChannelCount() {
    * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -455,9 +536,12 @@ public boolean getEnableSeparateRecognitionPerChannel() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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.
@@ -468,6 +552,7 @@ public boolean getEnableSeparateRecognitionPerChannel() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ @java.lang.Override @@ -476,14 +561,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.
@@ -494,16 +580,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 { @@ -512,9 +597,12 @@ public java.lang.String getLanguageCode() { } public static final int ALTERNATIVE_LANGUAGE_CODES_FIELD_NUMBER = 18; + @SuppressWarnings("serial") 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,
@@ -531,13 +619,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,
@@ -554,12 +644,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,
@@ -576,6 +669,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. */ @@ -583,6 +677,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,
@@ -599,17 +695,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_ = 0; /** + * + * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -620,6 +718,7 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
    * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ @java.lang.Override @@ -630,6 +729,8 @@ public int getMaxAlternatives() { public static final int PROFANITY_FILTER_FIELD_NUMBER = 5; private boolean profanityFilter_ = false; /** + * + * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -638,6 +739,7 @@ public int getMaxAlternatives() {
    * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ @java.lang.Override @@ -648,6 +750,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
@@ -657,6 +761,7 @@ public boolean getProfanityFilter() {
    * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -664,6 +769,8 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -673,13 +780,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
@@ -692,13 +804,18 @@ public com.google.cloud.speech.v1.SpeechAdaptation getAdaptation() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v1.SpeechAdaptationOrBuilder getAdaptationOrBuilder() {
-    return adaptation_ == null ? com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance() : adaptation_;
+    return adaptation_ == null
+        ? com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance()
+        : adaptation_;
   }
 
   public static final int SPEECH_CONTEXTS_FIELD_NUMBER = 6;
+
   @SuppressWarnings("serial")
   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
@@ -714,6 +831,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
@@ -725,11 +844,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
@@ -745,6 +866,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
@@ -760,6 +883,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
@@ -771,14 +896,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_ = false;
   /**
+   *
+   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -787,6 +913,7 @@ public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -797,6 +924,8 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 15; private boolean enableWordConfidence_ = false; /** + * + * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -804,6 +933,7 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -814,6 +944,8 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 11; private boolean enableAutomaticPunctuation_ = false; /** + * + * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -822,6 +954,7 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -832,6 +965,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
@@ -843,6 +978,7 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ @java.lang.Override @@ -850,6 +986,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
@@ -861,13 +999,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
@@ -882,12 +1025,16 @@ public com.google.protobuf.BoolValue getEnableSpokenPunctuation() {
    */
   @java.lang.Override
   public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilder() {
-    return enableSpokenPunctuation_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenPunctuation_;
+    return enableSpokenPunctuation_ == null
+        ? com.google.protobuf.BoolValue.getDefaultInstance()
+        : enableSpokenPunctuation_;
   }
 
   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
@@ -897,6 +1044,7 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ @java.lang.Override @@ -904,6 +1052,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
@@ -913,13 +1063,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
@@ -932,12 +1087,16 @@ public com.google.protobuf.BoolValue getEnableSpokenEmojis() {
    */
   @java.lang.Override
   public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
-    return enableSpokenEmojis_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenEmojis_;
+    return enableSpokenEmojis_ == null
+        ? com.google.protobuf.BoolValue.getDefaultInstance()
+        : enableSpokenEmojis_;
   }
 
   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.
@@ -950,6 +1109,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 @@ -957,6 +1117,8 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -969,13 +1131,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.
@@ -990,18 +1157,24 @@ 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() {
-    return diarizationConfig_ == null ? com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_;
+  public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder
+      getDiarizationConfigOrBuilder() {
+    return diarizationConfig_ == null
+        ? com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance()
+        : diarizationConfig_;
   }
 
   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 @@ -1009,18 +1182,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.
    * 
@@ -1029,13 +1209,18 @@ public com.google.cloud.speech.v1.RecognitionMetadata getMetadata() { */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() + : metadata_; } public static final int MODEL_FIELD_NUMBER = 13; + @SuppressWarnings("serial") 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
@@ -1091,6 +1276,7 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil
    * 
* * string model = 13; + * * @return The model. */ @java.lang.Override @@ -1099,14 +1285,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
@@ -1162,16 +1349,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 { @@ -1182,6 +1368,8 @@ public java.lang.String getModel() { public static final int USE_ENHANCED_FIELD_NUMBER = 14; private boolean useEnhanced_ = false; /** + * + * *
    * 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
@@ -1193,6 +1381,7 @@ public java.lang.String getModel() {
    * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ @java.lang.Override @@ -1201,6 +1390,7 @@ public boolean getUseEnhanced() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1212,9 +1402,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) { @@ -1257,7 +1448,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()); @@ -1280,59 +1472,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; @@ -1343,20 +1528,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1366,65 +1549,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1443,8 +1611,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) { @@ -1454,8 +1623,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(); @@ -1465,14 +1633,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(); @@ -1492,104 +1657,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) + getUnknownFields().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.
@@ -1597,33 +1768,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1678,9 +1848,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
@@ -1699,9 +1869,12 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1747,9 +1920,7 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognitionConfig result)
         result.profanityFilter_ = profanityFilter_;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.adaptation_ = adaptationBuilder_ == null
-            ? adaptation_
-            : adaptationBuilder_.build();
+        result.adaptation_ = adaptationBuilder_ == null ? adaptation_ : adaptationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
         result.enableWordTimeOffsets_ = enableWordTimeOffsets_;
@@ -1761,24 +1932,25 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognitionConfig result)
         result.enableAutomaticPunctuation_ = enableAutomaticPunctuation_;
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.enableSpokenPunctuation_ = enableSpokenPunctuationBuilder_ == null
-            ? enableSpokenPunctuation_
-            : enableSpokenPunctuationBuilder_.build();
+        result.enableSpokenPunctuation_ =
+            enableSpokenPunctuationBuilder_ == null
+                ? enableSpokenPunctuation_
+                : enableSpokenPunctuationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.enableSpokenEmojis_ = enableSpokenEmojisBuilder_ == null
-            ? enableSpokenEmojis_
-            : enableSpokenEmojisBuilder_.build();
+        result.enableSpokenEmojis_ =
+            enableSpokenEmojisBuilder_ == null
+                ? enableSpokenEmojis_
+                : enableSpokenEmojisBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.diarizationConfig_ = diarizationConfigBuilder_ == null
-            ? diarizationConfig_
-            : diarizationConfigBuilder_.build();
+        result.diarizationConfig_ =
+            diarizationConfigBuilder_ == null
+                ? diarizationConfig_
+                : diarizationConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00010000) != 0)) {
-        result.metadata_ = metadataBuilder_ == null
-            ? metadata_
-            : metadataBuilder_.build();
+        result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
       }
       if (((from_bitField0_ & 0x00020000) != 0)) {
         result.model_ = model_;
@@ -1792,38 +1964,39 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognitionConfig result)
     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;
@@ -1886,9 +2059,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.RecognitionConfig other) {
             speechContextsBuilder_ = null;
             speechContexts_ = other.speechContexts_;
             bitField0_ = (bitField0_ & ~0x00000200);
-            speechContextsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSpeechContextsFieldBuilder() : null;
+            speechContextsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSpeechContextsFieldBuilder()
+                    : null;
           } else {
             speechContextsBuilder_.addAllMessages(other.speechContexts_);
           }
@@ -1949,126 +2123,138 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              encoding_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 16: {
-              sampleRateHertz_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              languageCode_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 26
-            case 32: {
-              maxAlternatives_ = input.readInt32();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 32
-            case 40: {
-              profanityFilter_ = input.readBool();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 40
-            case 50: {
-              com.google.cloud.speech.v1.SpeechContext m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.SpeechContext.parser(),
-                      extensionRegistry);
-              if (speechContextsBuilder_ == null) {
-                ensureSpeechContextsIsMutable();
-                speechContexts_.add(m);
-              } else {
-                speechContextsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 50
-            case 56: {
-              audioChannelCount_ = input.readInt32();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 56
-            case 64: {
-              enableWordTimeOffsets_ = input.readBool();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 64
-            case 74: {
-              input.readMessage(
-                  getMetadataFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00010000;
-              break;
-            } // case 74
-            case 88: {
-              enableAutomaticPunctuation_ = input.readBool();
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 88
-            case 96: {
-              enableSeparateRecognitionPerChannel_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 96
-            case 106: {
-              model_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00020000;
-              break;
-            } // case 106
-            case 112: {
-              useEnhanced_ = input.readBool();
-              bitField0_ |= 0x00040000;
-              break;
-            } // case 112
-            case 120: {
-              enableWordConfidence_ = input.readBool();
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 120
-            case 146: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureAlternativeLanguageCodesIsMutable();
-              alternativeLanguageCodes_.add(s);
-              break;
-            } // case 146
-            case 154: {
-              input.readMessage(
-                  getDiarizationConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00008000;
-              break;
-            } // case 154
-            case 162: {
-              input.readMessage(
-                  getAdaptationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 162
-            case 178: {
-              input.readMessage(
-                  getEnableSpokenPunctuationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 178
-            case 186: {
-              input.readMessage(
-                  getEnableSpokenEmojisFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00004000;
-              break;
-            } // case 186
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                encoding_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 16:
+              {
+                sampleRateHertz_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                languageCode_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 26
+            case 32:
+              {
+                maxAlternatives_ = input.readInt32();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 32
+            case 40:
+              {
+                profanityFilter_ = input.readBool();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 40
+            case 50:
+              {
+                com.google.cloud.speech.v1.SpeechContext m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1.SpeechContext.parser(), extensionRegistry);
+                if (speechContextsBuilder_ == null) {
+                  ensureSpeechContextsIsMutable();
+                  speechContexts_.add(m);
+                } else {
+                  speechContextsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 50
+            case 56:
+              {
+                audioChannelCount_ = input.readInt32();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 56
+            case 64:
+              {
+                enableWordTimeOffsets_ = input.readBool();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 64
+            case 74:
+              {
+                input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00010000;
+                break;
+              } // case 74
+            case 88:
+              {
+                enableAutomaticPunctuation_ = input.readBool();
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 88
+            case 96:
+              {
+                enableSeparateRecognitionPerChannel_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 96
+            case 106:
+              {
+                model_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00020000;
+                break;
+              } // case 106
+            case 112:
+              {
+                useEnhanced_ = input.readBool();
+                bitField0_ |= 0x00040000;
+                break;
+              } // case 112
+            case 120:
+              {
+                enableWordConfidence_ = input.readBool();
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 120
+            case 146:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureAlternativeLanguageCodesIsMutable();
+                alternativeLanguageCodes_.add(s);
+                break;
+              } // case 146
+            case 154:
+              {
+                input.readMessage(
+                    getDiarizationConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00008000;
+                break;
+              } // case 154
+            case 162:
+              {
+                input.readMessage(getAdaptationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 162
+            case 178:
+              {
+                input.readMessage(
+                    getEnableSpokenPunctuationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 178
+            case 186:
+              {
+                input.readMessage(
+                    getEnableSpokenEmojisFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00004000;
+                break;
+              } // case 186
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2078,10 +2264,13 @@ public Builder mergeFrom(
       } // finally
       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
@@ -2089,12 +2278,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
@@ -2102,6 +2295,7 @@ 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. */ @@ -2112,6 +2306,8 @@ public Builder setEncodingValue(int value) { return this; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2119,14 +2315,20 @@ 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() { - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.forNumber(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.forNumber(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
@@ -2134,6 +2336,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. */ @@ -2147,6 +2350,8 @@ public Builder setEncoding(com.google.cloud.speech.v1.RecognitionConfig.AudioEnc return this; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2154,6 +2359,7 @@ 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() { @@ -2163,8 +2369,10 @@ public Builder clearEncoding() { 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.
@@ -2176,6 +2384,7 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -2183,6 +2392,8 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2194,17 +2405,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2216,6 +2430,7 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; + * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { @@ -2225,8 +2440,10 @@ public Builder clearSampleRateHertz() { return this; } - private int audioChannelCount_ ; + private int audioChannelCount_; /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2239,6 +2456,7 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ @java.lang.Override @@ -2246,6 +2464,8 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2258,17 +2478,20 @@ 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2281,6 +2504,7 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 7; + * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { @@ -2290,8 +2514,10 @@ public Builder clearAudioChannelCount() { 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
@@ -2302,6 +2528,7 @@ public Builder clearAudioChannelCount() {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -2309,6 +2536,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
@@ -2319,17 +2548,20 @@ 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; bitField0_ |= 0x00000008; 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
@@ -2340,6 +2572,7 @@ public Builder setEnableSeparateRecognitionPerChannel(boolean value) {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return This builder for chaining. */ public Builder clearEnableSeparateRecognitionPerChannel() { @@ -2351,6 +2584,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.
@@ -2361,13 +2596,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; @@ -2376,6 +2611,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.
@@ -2386,15 +2623,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 { @@ -2402,6 +2638,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.
@@ -2412,18 +2650,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000010; 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.
@@ -2434,6 +2676,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -2443,6 +2686,8 @@ public Builder clearLanguageCode() { return this; } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2453,12 +2698,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000010; @@ -2466,14 +2713,19 @@ public Builder setLanguageCodeBytes( 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_ & 0x00000020) != 0)) { - alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); + alternativeLanguageCodes_ = + new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); bitField0_ |= 0x00000020; - } + } } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2490,13 +2742,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,
@@ -2513,12 +2767,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,
@@ -2535,6 +2792,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. */ @@ -2542,6 +2800,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,
@@ -2558,14 +2818,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,
@@ -2582,19 +2844,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setAlternativeLanguageCodes(int index, java.lang.String value) { + if (value == null) { + 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,
@@ -2611,18 +2877,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) { - if (value == null) { throw new NullPointerException(); } + public Builder addAlternativeLanguageCodes(java.lang.String value) { + if (value == null) { + 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,
@@ -2639,18 +2909,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,
@@ -2667,6 +2938,7 @@ public Builder addAllAlternativeLanguageCodes(
      * 
* * repeated string alternative_language_codes = 18; + * * @return This builder for chaining. */ public Builder clearAlternativeLanguageCodes() { @@ -2676,6 +2948,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,
@@ -2692,12 +2966,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); @@ -2705,8 +2981,10 @@ public Builder addAlternativeLanguageCodesBytes( return this; } - private int maxAlternatives_ ; + private int maxAlternatives_; /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2717,6 +2995,7 @@ public Builder addAlternativeLanguageCodesBytes(
      * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ @java.lang.Override @@ -2724,6 +3003,8 @@ public int getMaxAlternatives() { return maxAlternatives_; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2734,17 +3015,20 @@ 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2755,6 +3039,7 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 4; + * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { @@ -2764,8 +3049,10 @@ public Builder clearMaxAlternatives() { 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
@@ -2774,6 +3061,7 @@ public Builder clearMaxAlternatives() {
      * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ @java.lang.Override @@ -2781,6 +3069,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
@@ -2789,17 +3079,20 @@ 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; bitField0_ |= 0x00000080; 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
@@ -2808,6 +3101,7 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 5; + * * @return This builder for chaining. */ public Builder clearProfanityFilter() { @@ -2819,8 +3113,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
@@ -2830,12 +3129,15 @@ public Builder clearProfanityFilter() {
      * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -2845,16 +3147,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
@@ -2879,6 +3186,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
@@ -2901,6 +3210,8 @@ public Builder setAdaptation(
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -2913,9 +3224,9 @@ public Builder setAdaptation(
      */
     public Builder mergeAdaptation(com.google.cloud.speech.v1.SpeechAdaptation value) {
       if (adaptationBuilder_ == null) {
-        if (((bitField0_ & 0x00000100) != 0) &&
-          adaptation_ != null &&
-          adaptation_ != com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000100) != 0)
+            && adaptation_ != null
+            && adaptation_ != com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance()) {
           getAdaptationBuilder().mergeFrom(value);
         } else {
           adaptation_ = value;
@@ -2928,6 +3239,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
@@ -2949,6 +3262,8 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -2965,6 +3280,8 @@ public com.google.cloud.speech.v1.SpeechAdaptation.Builder getAdaptationBuilder(
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -2979,11 +3296,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
@@ -2995,32 +3315,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_ & 0x00000200) != 0)) {
-        speechContexts_ = new java.util.ArrayList(speechContexts_);
+        speechContexts_ =
+            new java.util.ArrayList(speechContexts_);
         bitField0_ |= 0x00000200;
-       }
+      }
     }
 
     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
@@ -3039,6 +3369,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
@@ -3057,6 +3389,8 @@ public int getSpeechContextsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3075,6 +3409,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
@@ -3085,8 +3421,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();
@@ -3100,6 +3435,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
@@ -3122,6 +3459,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
@@ -3146,6 +3485,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
@@ -3156,8 +3497,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();
@@ -3171,6 +3511,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
@@ -3193,6 +3535,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
@@ -3215,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
@@ -3229,8 +3575,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);
@@ -3238,6 +3583,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
@@ -3259,6 +3606,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
@@ -3280,6 +3629,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
@@ -3290,11 +3641,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
@@ -3305,14 +3657,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
@@ -3323,8 +3677,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 {
@@ -3332,6 +3686,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
@@ -3343,10 +3699,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
@@ -3357,12 +3715,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
@@ -3373,16 +3732,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_ & 0x00000200) != 0),
                 getParentForChildren(),
@@ -3392,8 +3757,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
@@ -3402,6 +3769,7 @@ public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder
      * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -3409,6 +3777,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
@@ -3417,17 +3787,20 @@ 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; bitField0_ |= 0x00000400; 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
@@ -3436,6 +3809,7 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 8; + * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { @@ -3445,8 +3819,10 @@ public Builder clearEnableWordTimeOffsets() { 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
@@ -3454,6 +3830,7 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -3461,6 +3838,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
@@ -3468,17 +3847,20 @@ 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; bitField0_ |= 0x00000800; 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
@@ -3486,6 +3868,7 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 15; + * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { @@ -3495,8 +3878,10 @@ public Builder clearEnableWordConfidence() { 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
@@ -3505,6 +3890,7 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -3512,6 +3898,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
@@ -3520,17 +3908,20 @@ 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; bitField0_ |= 0x00001000; onChanged(); return this; } /** + * + * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3539,6 +3930,7 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 11; + * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { @@ -3550,8 +3942,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
@@ -3563,12 +3960,15 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ public boolean hasEnableSpokenPunctuation() { return ((bitField0_ & 0x00002000) != 0); } /** + * + * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3580,16 +3980,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
@@ -3616,6 +4021,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
@@ -3640,6 +4047,8 @@ public Builder setEnableSpokenPunctuation(
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3654,9 +4063,9 @@ public Builder setEnableSpokenPunctuation(
      */
     public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value) {
       if (enableSpokenPunctuationBuilder_ == null) {
-        if (((bitField0_ & 0x00002000) != 0) &&
-          enableSpokenPunctuation_ != null &&
-          enableSpokenPunctuation_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
+        if (((bitField0_ & 0x00002000) != 0)
+            && enableSpokenPunctuation_ != null
+            && enableSpokenPunctuation_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
           getEnableSpokenPunctuationBuilder().mergeFrom(value);
         } else {
           enableSpokenPunctuation_ = value;
@@ -3669,6 +4078,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
@@ -3692,6 +4103,8 @@ public Builder clearEnableSpokenPunctuation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3710,6 +4123,8 @@ public com.google.protobuf.BoolValue.Builder getEnableSpokenPunctuationBuilder()
       return getEnableSpokenPunctuationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3726,11 +4141,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
@@ -3744,14 +4162,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_;
@@ -3759,8 +4180,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
@@ -3770,12 +4196,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 ((bitField0_ & 0x00004000) != 0); } /** + * + * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3785,16 +4214,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
@@ -3819,6 +4253,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
@@ -3829,8 +4265,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();
       } else {
@@ -3841,6 +4276,8 @@ public Builder setEnableSpokenEmojis(
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3853,9 +4290,9 @@ public Builder setEnableSpokenEmojis(
      */
     public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       if (enableSpokenEmojisBuilder_ == null) {
-        if (((bitField0_ & 0x00004000) != 0) &&
-          enableSpokenEmojis_ != null &&
-          enableSpokenEmojis_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
+        if (((bitField0_ & 0x00004000) != 0)
+            && enableSpokenEmojis_ != null
+            && enableSpokenEmojis_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
           getEnableSpokenEmojisBuilder().mergeFrom(value);
         } else {
           enableSpokenEmojis_ = value;
@@ -3868,6 +4305,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
@@ -3889,6 +4328,8 @@ public Builder clearEnableSpokenEmojis() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3905,6 +4346,8 @@ public com.google.protobuf.BoolValue.Builder getEnableSpokenEmojisBuilder() {
       return getEnableSpokenEmojisFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3919,11 +4362,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
@@ -3935,14 +4381,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_;
@@ -3950,8 +4399,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.
@@ -3964,12 +4418,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 ((bitField0_ & 0x00008000) != 0); } /** + * + * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -3982,16 +4439,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.
@@ -4019,6 +4481,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.
@@ -4044,6 +4508,8 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4057,11 +4523,13 @@ 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 (((bitField0_ & 0x00008000) != 0) &&
-          diarizationConfig_ != null &&
-          diarizationConfig_ != com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00008000) != 0)
+            && diarizationConfig_ != null
+            && diarizationConfig_
+                != com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance()) {
           getDiarizationConfigBuilder().mergeFrom(value);
         } else {
           diarizationConfig_ = value;
@@ -4074,6 +4542,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.
@@ -4098,6 +4568,8 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4111,12 +4583,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() {
       bitField0_ |= 0x00008000;
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4130,15 +4605,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.
@@ -4153,14 +4632,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_;
@@ -4168,34 +4650,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 ((bitField0_ & 0x00010000) != 0); } /** + * + * *
      * 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.
      * 
@@ -4216,6 +4711,8 @@ public Builder setMetadata(com.google.cloud.speech.v1.RecognitionMetadata value) return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4234,6 +4731,8 @@ public Builder setMetadata( return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4242,9 +4741,9 @@ public Builder setMetadata( */ public Builder mergeMetadata(com.google.cloud.speech.v1.RecognitionMetadata value) { if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) && - metadata_ != null && - metadata_ != com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00010000) != 0) + && metadata_ != null + && metadata_ != com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; @@ -4257,6 +4756,8 @@ public Builder mergeMetadata(com.google.cloud.speech.v1.RecognitionMetadata valu return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4274,6 +4775,8 @@ public Builder clearMetadata() { return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4286,6 +4789,8 @@ public com.google.cloud.speech.v1.RecognitionMetadata.Builder getMetadataBuilder return getMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4296,11 +4801,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.
      * 
@@ -4308,14 +4816,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_; @@ -4323,6 +4834,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
@@ -4378,13 +4891,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; @@ -4393,6 +4906,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
@@ -4448,15 +4963,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 { @@ -4464,6 +4978,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
@@ -4519,18 +5035,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00020000; 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
@@ -4586,6 +5106,7 @@ public Builder setModel(
      * 
* * string model = 13; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -4595,6 +5116,8 @@ public Builder clearModel() { 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
@@ -4650,12 +5173,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00020000; @@ -4663,8 +5188,10 @@ public Builder setModelBytes( 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
@@ -4676,6 +5203,7 @@ public Builder setModelBytes(
      * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ @java.lang.Override @@ -4683,6 +5211,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
@@ -4694,17 +5224,20 @@ 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; bitField0_ |= 0x00040000; 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
@@ -4716,6 +5249,7 @@ public Builder setUseEnhanced(boolean value) {
      * 
* * bool use_enhanced = 14; + * * @return This builder for chaining. */ public Builder clearUseEnhanced() { @@ -4724,9 +5258,9 @@ public Builder clearUseEnhanced() { 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); } @@ -4736,12 +5270,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(); } @@ -4750,27 +5284,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4785,6 +5319,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java similarity index 94% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java index dc92690ff25c..323d1dbc34f4 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java +++ b/java-speech/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.
@@ -59,11 +86,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
@@ -74,11 +104,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.
@@ -89,10 +122,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.
@@ -103,12 +139,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,
@@ -125,11 +163,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,
@@ -146,10 +186,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,
@@ -166,11 +209,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,
@@ -187,13 +233,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
@@ -204,11 +252,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
@@ -217,11 +268,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
@@ -231,10 +285,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
@@ -244,10 +301,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
@@ -261,6 +321,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
@@ -271,9 +333,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
@@ -286,6 +349,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
@@ -298,6 +363,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
@@ -308,9 +375,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
@@ -321,10 +390,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
@@ -333,11 +403,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
@@ -345,11 +418,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
@@ -358,11 +434,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
@@ -374,10 +453,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
@@ -389,10 +471,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
@@ -408,6 +493,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
@@ -417,10 +504,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
@@ -430,10 +520,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
@@ -447,6 +540,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.
@@ -459,10 +554,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.
@@ -475,10 +573,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.
@@ -495,24 +596,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.
    * 
@@ -522,6 +631,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
@@ -577,10 +688,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
@@ -636,12 +750,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
@@ -653,6 +769,7 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ boolean getUseEnhanced(); diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java similarity index 71% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java index 6f469e5762cd..67310e166c44 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java +++ b/java-speech/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,30 +50,33 @@ 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; } - 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.
@@ -62,9 +84,10 @@ protected java.lang.Object newInstance(
    *
    * 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.
@@ -74,6 +97,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
@@ -85,6 +110,8 @@ public enum InteractionType
      */
     DISCUSSION(1),
     /**
+     *
+     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -94,6 +121,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.
@@ -103,6 +132,8 @@ public enum InteractionType
      */
     PHONE_CALL(3),
     /**
+     *
+     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -111,6 +142,8 @@ public enum InteractionType */ VOICEMAIL(4), /** + * + * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -119,6 +152,8 @@ public enum InteractionType */ PROFESSIONALLY_PRODUCED(5), /** + * + * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -127,6 +162,8 @@ public enum InteractionType */ VOICE_SEARCH(6), /** + * + * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -135,6 +172,8 @@ public enum InteractionType */ VOICE_COMMAND(7), /** + * + * *
      * Transcribe speech to text to create a written document, such as a
      * text-message, email or report.
@@ -147,6 +186,8 @@ public enum InteractionType
     ;
 
     /**
+     *
+     *
      * 
      * Use case is either unknown or is something other than one of the other
      * values below.
@@ -156,6 +197,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
@@ -167,6 +210,8 @@ public enum InteractionType
      */
     public static final int DISCUSSION_VALUE = 1;
     /**
+     *
+     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -176,6 +221,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.
@@ -185,6 +232,8 @@ public enum InteractionType
      */
     public static final int PHONE_CALL_VALUE = 3;
     /**
+     *
+     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -193,6 +242,8 @@ public enum InteractionType */ public static final int VOICEMAIL_VALUE = 4; /** + * + * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -201,6 +252,8 @@ public enum InteractionType */ public static final int PROFESSIONALLY_PRODUCED_VALUE = 5; /** + * + * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -209,6 +262,8 @@ public enum InteractionType */ public static final int VOICE_SEARCH_VALUE = 6; /** + * + * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -217,6 +272,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.
@@ -226,7 +283,6 @@ public enum InteractionType
      */
     public static final int DICTATION_VALUE = 8;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -251,45 +307,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);
     }
 
@@ -298,8 +363,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;
@@ -317,15 +381,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.
      * 
@@ -334,6 +401,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
@@ -344,6 +413,8 @@ public enum MicrophoneDistance
      */
     NEARFIELD(1),
     /**
+     *
+     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -352,6 +423,8 @@ public enum MicrophoneDistance */ MIDFIELD(2), /** + * + * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -363,6 +436,8 @@ public enum MicrophoneDistance ; /** + * + * *
      * Audio type is not known.
      * 
@@ -371,6 +446,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
@@ -381,6 +458,8 @@ public enum MicrophoneDistance
      */
     public static final int NEARFIELD_VALUE = 1;
     /**
+     *
+     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -389,6 +468,8 @@ public enum MicrophoneDistance */ public static final int MIDFIELD_VALUE = 2; /** + * + * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -397,7 +478,6 @@ public enum MicrophoneDistance */ public static final int FARFIELD_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -422,11 +502,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; } } @@ -434,28 +519,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); } @@ -464,8 +549,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; @@ -483,15 +567,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.
      * 
@@ -500,6 +587,8 @@ public enum OriginalMediaType */ ORIGINAL_MEDIA_TYPE_UNSPECIFIED(0), /** + * + * *
      * The speech data is an audio recording.
      * 
@@ -508,6 +597,8 @@ public enum OriginalMediaType */ AUDIO(1), /** + * + * *
      * The speech data originally recorded on a video.
      * 
@@ -519,6 +610,8 @@ public enum OriginalMediaType ; /** + * + * *
      * Unknown original media type.
      * 
@@ -527,6 +620,8 @@ public enum OriginalMediaType */ public static final int ORIGINAL_MEDIA_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The speech data is an audio recording.
      * 
@@ -535,6 +630,8 @@ public enum OriginalMediaType */ public static final int AUDIO_VALUE = 1; /** + * + * *
      * The speech data originally recorded on a video.
      * 
@@ -543,7 +640,6 @@ public enum OriginalMediaType */ public static final int VIDEO_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -568,10 +664,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; } } @@ -579,28 +679,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); } @@ -609,8 +709,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; @@ -628,15 +727,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.
      * 
@@ -645,6 +747,8 @@ public enum RecordingDeviceType */ RECORDING_DEVICE_TYPE_UNSPECIFIED(0), /** + * + * *
      * Speech was recorded on a smartphone.
      * 
@@ -653,6 +757,8 @@ public enum RecordingDeviceType */ SMARTPHONE(1), /** + * + * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -661,6 +767,8 @@ public enum RecordingDeviceType */ PC(2), /** + * + * *
      * Speech was recorded over a phone line.
      * 
@@ -669,6 +777,8 @@ public enum RecordingDeviceType */ PHONE_LINE(3), /** + * + * *
      * Speech was recorded in a vehicle.
      * 
@@ -677,6 +787,8 @@ public enum RecordingDeviceType */ VEHICLE(4), /** + * + * *
      * Speech was recorded outdoors.
      * 
@@ -685,6 +797,8 @@ public enum RecordingDeviceType */ OTHER_OUTDOOR_DEVICE(5), /** + * + * *
      * Speech was recorded indoors.
      * 
@@ -696,6 +810,8 @@ public enum RecordingDeviceType ; /** + * + * *
      * The recording device is unknown.
      * 
@@ -704,6 +820,8 @@ public enum RecordingDeviceType */ public static final int RECORDING_DEVICE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Speech was recorded on a smartphone.
      * 
@@ -712,6 +830,8 @@ public enum RecordingDeviceType */ public static final int SMARTPHONE_VALUE = 1; /** + * + * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -720,6 +840,8 @@ public enum RecordingDeviceType */ public static final int PC_VALUE = 2; /** + * + * *
      * Speech was recorded over a phone line.
      * 
@@ -728,6 +850,8 @@ public enum RecordingDeviceType */ public static final int PHONE_LINE_VALUE = 3; /** + * + * *
      * Speech was recorded in a vehicle.
      * 
@@ -736,6 +860,8 @@ public enum RecordingDeviceType */ public static final int VEHICLE_VALUE = 4; /** + * + * *
      * Speech was recorded outdoors.
      * 
@@ -744,6 +870,8 @@ public enum RecordingDeviceType */ public static final int OTHER_OUTDOOR_DEVICE_VALUE = 5; /** + * + * *
      * Speech was recorded indoors.
      * 
@@ -752,7 +880,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( @@ -777,14 +904,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; } } @@ -792,28 +927,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); } @@ -822,8 +957,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; @@ -843,32 +977,45 @@ private RecordingDeviceType(int value) { public static final int INTERACTION_TYPE_FIELD_NUMBER = 1; 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; + * * @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() { - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.forNumber(interactionType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInteractionType() { + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.forNumber(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_ = 0; /** + * + * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -877,6 +1024,7 @@ private RecordingDeviceType(int value) {
    * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -887,85 +1035,133 @@ public int getIndustryNaicsCodeOfAudio() { public static final int MICROPHONE_DISTANCE_FIELD_NUMBER = 4; 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; + * + * * @return The microphoneDistance. */ - @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.forNumber(microphoneDistance_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.forNumber( + 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_ = 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; + * + * * @return The originalMediaType. */ - @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.forNumber(originalMediaType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.forNumber( + 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_ = 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; + * + * * @return The recordingDeviceType. */ - @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.forNumber(recordingDeviceType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType + getRecordingDeviceType() { + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.forNumber( + recordingDeviceType_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED + : result; } public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER = 7; + @SuppressWarnings("serial") 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
@@ -973,6 +1169,7 @@ public int getIndustryNaicsCodeOfAudio() {
    * 
* * string recording_device_name = 7; + * * @return The recordingDeviceName. */ @java.lang.Override @@ -981,14 +1178,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
@@ -996,16 +1194,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 { @@ -1014,9 +1211,12 @@ public java.lang.String getRecordingDeviceName() { } public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER = 8; + @SuppressWarnings("serial") 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`.
@@ -1025,6 +1225,7 @@ public java.lang.String getRecordingDeviceName() {
    * 
* * string original_mime_type = 8; + * * @return The originalMimeType. */ @java.lang.Override @@ -1033,14 +1234,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`.
@@ -1049,16 +1251,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 { @@ -1067,15 +1268,19 @@ public java.lang.String getOriginalMimeType() { } public static final int AUDIO_TOPIC_FIELD_NUMBER = 10; + @SuppressWarnings("serial") 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 @@ -1084,30 +1289,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 { @@ -1116,6 +1321,7 @@ public java.lang.String getAudioTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1127,21 +1333,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_)) { @@ -1162,25 +1379,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_); @@ -1199,25 +1423,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1250,130 +1471,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1390,9 +1617,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 @@ -1411,8 +1638,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.RecognitionMetadata result = + new com.google.cloud.speech.v1.RecognitionMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1449,38 +1679,39 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognitionMetadata result 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; @@ -1545,52 +1776,61 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - interactionType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 24: { - industryNaicsCodeOfAudio_ = input.readUInt32(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 32: { - microphoneDistance_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 40: { - originalMediaType_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 48: { - recordingDeviceType_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 58: { - recordingDeviceName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: { - originalMimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 82: { - audioTopic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + interactionType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 24: + { + industryNaicsCodeOfAudio_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: + { + microphoneDistance_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: + { + originalMediaType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: + { + recordingDeviceType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: + { + recordingDeviceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + originalMimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 82: + { + audioTopic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1600,26 +1840,36 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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. */ @@ -1630,28 +1880,41 @@ public Builder setInteractionTypeValue(int value) { 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() { - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.forNumber(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.forNumber( + 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(); } @@ -1661,11 +1924,15 @@ public Builder setInteractionType(com.google.cloud.speech.v1.RecognitionMetadata 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() { @@ -1675,8 +1942,10 @@ public Builder clearInteractionType() { 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
@@ -1685,6 +1954,7 @@ public Builder clearInteractionType() {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1692,6 +1962,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
@@ -1700,17 +1972,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1719,6 +1994,7 @@ public Builder setIndustryNaicsCodeOfAudio(int value) {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return This builder for chaining. */ public Builder clearIndustryNaicsCodeOfAudio() { @@ -1730,22 +2006,31 @@ 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. */ @@ -1756,28 +2041,42 @@ public Builder setMicrophoneDistanceValue(int value) { 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() { - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.forNumber(microphoneDistance_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; + public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance + getMicrophoneDistance() { + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.forNumber( + 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(); } @@ -1787,11 +2086,15 @@ public Builder setMicrophoneDistance(com.google.cloud.speech.v1.RecognitionMetad 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() { @@ -1803,22 +2106,31 @@ 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. */ @@ -1829,28 +2141,41 @@ public Builder setOriginalMediaTypeValue(int value) { 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() { - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.forNumber(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.forNumber( + 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(); } @@ -1860,11 +2185,15 @@ public Builder setOriginalMediaType(com.google.cloud.speech.v1.RecognitionMetada 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() { @@ -1876,22 +2205,33 @@ 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. */ @@ -1902,28 +2242,44 @@ public Builder setRecordingDeviceTypeValue(int value) { 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() { - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.forNumber(recordingDeviceType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; + public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType + getRecordingDeviceType() { + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.forNumber( + 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(); } @@ -1933,11 +2289,16 @@ public Builder setRecordingDeviceType(com.google.cloud.speech.v1.RecognitionMeta 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() { @@ -1949,6 +2310,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
@@ -1956,13 +2319,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; @@ -1971,6 +2334,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
@@ -1978,15 +2343,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 { @@ -1994,6 +2358,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
@@ -2001,18 +2367,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecordingDeviceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } recordingDeviceName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2020,6 +2390,7 @@ public Builder setRecordingDeviceName(
      * 
* * string recording_device_name = 7; + * * @return This builder for chaining. */ public Builder clearRecordingDeviceName() { @@ -2029,6 +2400,8 @@ public Builder clearRecordingDeviceName() { return this; } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2036,12 +2409,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecordingDeviceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); recordingDeviceName_ = value; bitField0_ |= 0x00000020; @@ -2051,6 +2426,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`.
@@ -2059,13 +2436,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; @@ -2074,6 +2451,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`.
@@ -2082,15 +2461,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 { @@ -2098,6 +2476,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`.
@@ -2106,18 +2486,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setOriginalMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } originalMimeType_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2126,6 +2510,7 @@ public Builder setOriginalMimeType(
      * 
* * string original_mime_type = 8; + * * @return This builder for chaining. */ public Builder clearOriginalMimeType() { @@ -2135,6 +2520,8 @@ public Builder clearOriginalMimeType() { return this; } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2143,12 +2530,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setOriginalMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); originalMimeType_ = value; bitField0_ |= 0x00000040; @@ -2158,19 +2547,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; @@ -2179,21 +2570,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 { @@ -2201,30 +2593,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setAudioTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } audioTopic_ = value; bitField0_ |= 0x00000080; 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() { @@ -2234,27 +2633,31 @@ public Builder clearAudioTopic() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setAudioTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); audioTopic_ = value; bitField0_ |= 0x00000080; 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); } @@ -2264,12 +2667,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(); } @@ -2278,27 +2681,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2313,6 +2716,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java similarity index 76% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java index 5b3a0073fc09..bd7b23985e30 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java similarity index 59% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java index 1e69cbf4d513..09e4d70b8582 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java @@ -1,61 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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 @@ -63,39 +86,57 @@ 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() { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } 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 @@ -103,30 +144,44 @@ 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() { - return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,8 +193,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()); } @@ -156,12 +210,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -171,22 +223,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -212,130 +263,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -354,9 +411,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 @@ -375,8 +432,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.RecognizeRequest result = + new com.google.cloud.speech.v1.RecognizeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -384,14 +444,10 @@ public com.google.cloud.speech.v1.RecognizeRequest buildPartial() { private void buildPartial0(com.google.cloud.speech.v1.RecognizeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.config_ = configBuilder_ == null - ? config_ - : configBuilder_.build(); + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.audio_ = audioBuilder_ == null - ? audio_ - : audioBuilder_.build(); + result.audio_ = audioBuilder_ == null ? audio_ : audioBuilder_.build(); } } @@ -399,38 +455,39 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognizeRequest result) { 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; @@ -471,26 +528,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getAudioFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getAudioFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,46 +556,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * 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) { @@ -555,15 +631,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(); } else { @@ -574,18 +653,22 @@ 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 (((bitField0_ & 0x00000001) != 0) && - config_ != null && - config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && config_ != null + && config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -598,12 +681,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -616,12 +703,16 @@ 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() { bitField0_ |= 0x00000001; @@ -629,38 +720,50 @@ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { 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_; @@ -668,39 +771,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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) { @@ -716,14 +838,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(); } else { @@ -734,17 +859,21 @@ 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 (((bitField0_ & 0x00000002) != 0) && - audio_ != null && - audio_ != com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && audio_ != null + && audio_ != com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) { getAudioBuilder().mergeFrom(value); } else { audio_ = value; @@ -757,11 +886,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -774,11 +907,15 @@ 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() { bitField0_ |= 0x00000002; @@ -786,43 +923,55 @@ public com.google.cloud.speech.v1.RecognitionAudio.Builder getAudioBuilder() { 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); } @@ -832,12 +981,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(); } @@ -846,27 +995,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -881,6 +1030,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java new file mode 100644 index 000000000000..df0bfe2abf0f --- /dev/null +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java similarity index 72% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java index 3a4609c04b81..1e903b6aecc6 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java +++ b/java-speech/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,48 +29,53 @@
  *
  * 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;
   }
-  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;
+
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -66,6 +88,8 @@ public java.util.List getRes
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -74,11 +98,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.
@@ -91,6 +117,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -103,6 +131,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.
@@ -119,11 +149,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 @@ -131,18 +164,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.
    * 
@@ -151,17 +191,22 @@ public com.google.protobuf.Duration getTotalBilledTime() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 7; private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_; /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -169,18 +214,25 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } /** + * + * *
    * Provides information on adaptation behavior in response
    * 
@@ -188,19 +240,25 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; */ @java.lang.Override - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 8; private long requestId_ = 0L; /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 8; + * * @return The requestId. */ @java.lang.Override @@ -209,6 +267,7 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,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)); } @@ -244,20 +302,17 @@ 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 (speechAdaptationInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getSpeechAdaptationInfo()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, requestId_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -267,27 +322,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.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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo() - .equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() - != other.getRequestId()) return false; + if (getRequestId() != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -312,104 +364,110 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; 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`
@@ -418,33 +476,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -471,9 +528,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
@@ -492,9 +549,12 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -514,14 +574,14 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1.RecognizeResp
     private void buildPartial0(com.google.cloud.speech.v1.RecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
-            ? totalBilledTime_
-            : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ =
+            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
-            ? speechAdaptationInfo_
-            : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ =
+            speechAdaptationInfoBuilder_ == null
+                ? speechAdaptationInfo_
+                : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.requestId_ = requestId_;
@@ -532,38 +592,39 @@ private void buildPartial0(com.google.cloud.speech.v1.RecognizeResponse result)
     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;
@@ -590,9 +651,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_);
           }
@@ -633,44 +695,46 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18: {
-              com.google.cloud.speech.v1.SpeechRecognitionResult m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
-                      extensionRegistry);
-              if (resultsBuilder_ == null) {
-                ensureResultsIsMutable();
-                results_.add(m);
-              } else {
-                resultsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getTotalBilledTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 26
-            case 58: {
-              input.readMessage(
-                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 58
-            case 64: {
-              requestId_ = input.readInt64();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 64
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 18:
+              {
+                com.google.cloud.speech.v1.SpeechRecognitionResult m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
+                        extensionRegistry);
+                if (resultsBuilder_ == null) {
+                  ensureResultsIsMutable();
+                  results_.add(m);
+                } else {
+                  resultsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+            case 58:
+              {
+                input.readMessage(
+                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 58
+            case 64:
+              {
+                requestId_ = input.readInt64();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 64
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -680,21 +744,29 @@ public Builder mergeFrom(
       } // finally
       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.
@@ -710,6 +782,8 @@ public java.util.List getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -725,6 +799,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -740,6 +816,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -747,8 +825,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();
@@ -762,6 +839,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -781,6 +860,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -802,6 +883,8 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -809,8 +892,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();
@@ -824,6 +906,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -843,6 +927,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -862,6 +948,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -873,8 +961,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);
@@ -882,6 +969,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -900,6 +989,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -918,6 +1009,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -925,11 +1018,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.
@@ -940,11 +1034,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.
@@ -952,8 +1049,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 {
@@ -961,6 +1058,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -969,10 +1068,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.
@@ -980,12 +1081,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.
@@ -993,20 +1096,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_;
@@ -1014,34 +1120,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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.
      * 
@@ -1062,14 +1181,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(); } else { @@ -1080,6 +1200,8 @@ public Builder setTotalBilledTime( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1088,9 +1210,9 @@ public Builder setTotalBilledTime( */ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - totalBilledTime_ != null && - totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && totalBilledTime_ != null + && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getTotalBilledTimeBuilder().mergeFrom(value); } else { totalBilledTime_ = value; @@ -1103,6 +1225,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1120,6 +1244,8 @@ public Builder clearTotalBilledTime() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1132,6 +1258,8 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { return getTotalBilledTimeFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1142,11 +1270,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.
      * 
@@ -1154,14 +1285,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_; @@ -1169,34 +1303,47 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_; + com.google.cloud.speech.v1.SpeechAdaptationInfo, + com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> + speechAdaptationInfoBuilder_; /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1217,6 +1364,8 @@ public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptati return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1235,17 +1384,21 @@ public Builder setSpeechAdaptationInfo( return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo( + com.google.cloud.speech.v1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - speechAdaptationInfo_ != null && - speechAdaptationInfo_ != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && speechAdaptationInfo_ != null + && speechAdaptationInfo_ + != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -1258,6 +1411,8 @@ public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdapta return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1275,33 +1430,42 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder + getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null ? - com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1309,27 +1473,33 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptat * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1.SpeechAdaptationInfo, + com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), - getParentForChildren(), - isClean()); + speechAdaptationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.SpeechAdaptationInfo, + com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), getParentForChildren(), isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_ ; + private long requestId_; /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; + * * @return The requestId. */ @java.lang.Override @@ -1337,29 +1507,35 @@ public long getRequestId() { return requestId_; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; + * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1368,9 +1544,9 @@ public Builder clearRequestId() { 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); } @@ -1380,12 +1556,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(); } @@ -1394,27 +1570,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1429,6 +1605,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java similarity index 80% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java index abeea15f5484..47f347663cae 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java +++ b/java-speech/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.
    * 
@@ -84,24 +116,32 @@ com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder( com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder(); /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** + * + * *
    * Provides information on adaptation behavior in response
    * 
@@ -111,12 +151,15 @@ com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder( com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 8; + * * @return The requestId. */ long getRequestId(); diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java similarity index 69% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java index a3625012a50b..b73e5b4f202b 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java @@ -1,55 +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; /** + * + * *
  * 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; } - 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_ = false; /** + * + * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -57,6 +77,7 @@ protected java.lang.Object newInstance(
    * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -67,6 +88,8 @@ public boolean getEnableSpeakerDiarization() { public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_ = 0; /** + * + * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -74,6 +97,7 @@ public boolean getEnableSpeakerDiarization() {
    * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -84,6 +108,8 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_ = 0; /** + * + * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -91,6 +117,7 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -101,21 +128,27 @@ public int getMaxSpeakerCount() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_ = 0; /** + * + * *
    * 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=456 + * 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=456 * @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; @@ -127,8 +160,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_); } @@ -151,20 +183,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,21 +202,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -201,8 +226,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; @@ -215,129 +239,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +380,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 @@ -371,8 +401,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.SpeakerDiarizationConfig result = + new com.google.cloud.speech.v1.SpeakerDiarizationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -397,38 +430,39 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeakerDiarizationConfig r 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; @@ -436,7 +470,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()); } @@ -475,32 +510,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableSpeakerDiarization_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - minSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - maxSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 40: { - speakerTag_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableSpeakerDiarization_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + minSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + maxSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 40: + { + speakerTag_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -510,10 +550,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - 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
@@ -521,6 +564,7 @@ public Builder mergeFrom(
      * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -528,6 +572,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
@@ -535,17 +581,20 @@ 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; bitField0_ |= 0x00000001; 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
@@ -553,6 +602,7 @@ public Builder setEnableSpeakerDiarization(boolean value) {
      * 
* * bool enable_speaker_diarization = 1; + * * @return This builder for chaining. */ public Builder clearEnableSpeakerDiarization() { @@ -562,8 +612,10 @@ public Builder clearEnableSpeakerDiarization() { 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
@@ -571,6 +623,7 @@ public Builder clearEnableSpeakerDiarization() {
      * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -578,6 +631,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
@@ -585,17 +640,20 @@ 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; bitField0_ |= 0x00000002; 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
@@ -603,6 +661,7 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2; + * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { @@ -612,8 +671,10 @@ public Builder clearMinSpeakerCount() { 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
@@ -621,6 +682,7 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -628,6 +690,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
@@ -635,17 +699,20 @@ 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; bitField0_ |= 0x00000004; 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
@@ -653,6 +720,7 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3; + * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { @@ -662,58 +730,73 @@ public Builder clearMaxSpeakerCount() { 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=456 + * 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=456 * @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=456 + * 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=456 * @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; bitField0_ |= 0x00000008; 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=456 + * 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=456 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearSpeakerTag() { + @java.lang.Deprecated + public Builder clearSpeakerTag() { bitField0_ = (bitField0_ & ~0x00000008); 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); } @@ -723,12 +806,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(); } @@ -737,27 +820,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -772,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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java similarity index 64% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java index 0da15ac5a99d..d754b4e464ec 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java +++ b/java-speech/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=456 + * 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=456 * @return The speakerTag. */ - @java.lang.Deprecated int getSpeakerTag(); + @java.lang.Deprecated + int getSpeakerTag(); } diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java similarity index 76% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java index 1c4672f85a6d..526bd25894c3 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java +++ b/java-speech/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,154 +45,175 @@ 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; } - 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 interface ABNFGrammarOrBuilder extends + public interface ABNFGrammarOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @return A list containing the abnfStrings. */ - java.util.List - getAbnfStringsList(); + java.util.List getAbnfStringsList(); /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @return The count of abnfStrings. */ int getAbnfStringsCount(); /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ java.lang.String getAbnfStrings(int index); /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - com.google.protobuf.ByteString - getAbnfStringsBytes(int index); + com.google.protobuf.ByteString getAbnfStringsBytes(int index); } - /** - * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar} - */ - public static final class ABNFGrammar extends - com.google.protobuf.GeneratedMessageV3 implements + /** Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar} */ + public static final class ABNFGrammar extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) ABNFGrammarOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ABNFGrammar.newBuilder() to construct. private ABNFGrammar(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ABNFGrammar() { abnfStrings_ = 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 ABNFGrammar(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_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_ABNFGrammar_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.class, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.class, + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder.class); } public static final int ABNF_STRINGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList abnfStrings_; /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @return A list containing the abnfStrings. */ - public com.google.protobuf.ProtocolStringList - getAbnfStringsList() { + public com.google.protobuf.ProtocolStringList getAbnfStringsList() { return abnfStrings_; } /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @return The count of abnfStrings. */ public int getAbnfStringsCount() { return abnfStrings_.size(); } /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ @@ -182,21 +221,24 @@ public java.lang.String getAbnfStrings(int index) { return abnfStrings_.get(index); } /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - public com.google.protobuf.ByteString - getAbnfStringsBytes(int index) { + public com.google.protobuf.ByteString getAbnfStringsBytes(int index) { return abnfStrings_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,8 +250,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 < abnfStrings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, abnfStrings_.getRaw(i)); } @@ -238,15 +279,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.SpeechAdaptation.ABNFGrammar)) { return super.equals(obj); } - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar other = (com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) obj; + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar other = + (com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) obj; - if (!getAbnfStringsList() - .equals(other.getAbnfStringsList())) return false; + if (!getAbnfStringsList().equals(other.getAbnfStringsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,87 +309,94 @@ public int hashCode() { } public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar 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.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar 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 @@ -357,36 +405,34 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_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_ABNFGrammar_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.class, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.class, + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -397,9 +443,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_ABNFGrammar_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_descriptor; } @java.lang.Override @@ -418,14 +464,18 @@ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar buildPartial() { - com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar result = new com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar(this); + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar result = + new com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar result) { if (((bitField0_ & 0x00000001) != 0)) { abnfStrings_ = abnfStrings_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -441,38 +491,41 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGramm 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.SpeechAdaptation.ABNFGrammar) { - return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar)other); + return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) other); } else { super.mergeFrom(other); return this; @@ -480,7 +533,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar other) { - if (other == com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) + return this; if (!other.abnfStrings_.isEmpty()) { if (abnfStrings_.isEmpty()) { abnfStrings_ = other.abnfStrings_; @@ -517,18 +571,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAbnfStringsIsMutable(); - abnfStrings_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAbnfStringsIsMutable(); + abnfStrings_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -538,47 +594,58 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList abnfStrings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList abnfStrings_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAbnfStringsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { abnfStrings_ = new com.google.protobuf.LazyStringArrayList(abnfStrings_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @return A list containing the abnfStrings. */ - public com.google.protobuf.ProtocolStringList - getAbnfStringsList() { + public com.google.protobuf.ProtocolStringList getAbnfStringsList() { return abnfStrings_.getUnmodifiableView(); } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @return The count of abnfStrings. */ public int getAbnfStringsCount() { return abnfStrings_.size(); } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ @@ -586,81 +653,95 @@ public java.lang.String getAbnfStrings(int index) { return abnfStrings_.get(index); } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - public com.google.protobuf.ByteString - getAbnfStringsBytes(int index) { + public com.google.protobuf.ByteString getAbnfStringsBytes(int index) { return abnfStrings_.getByteString(index); } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param index The index to set the value at. * @param value The abnfStrings to set. * @return This builder for chaining. */ - public Builder setAbnfStrings( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAbnfStrings(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAbnfStringsIsMutable(); abnfStrings_.set(index, value); onChanged(); return this; } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param value The abnfStrings to add. * @return This builder for chaining. */ - public Builder addAbnfStrings( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAbnfStrings(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAbnfStringsIsMutable(); abnfStrings_.add(value); onChanged(); return this; } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param values The abnfStrings to add. * @return This builder for chaining. */ - public Builder addAllAbnfStrings( - java.lang.Iterable values) { + public Builder addAllAbnfStrings(java.lang.Iterable values) { ensureAbnfStringsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, abnfStrings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, abnfStrings_); onChanged(); return this; } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @return This builder for chaining. */ public Builder clearAbnfStrings() { @@ -670,24 +751,29 @@ public Builder clearAbnfStrings() { return this; } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param value The bytes of the abnfStrings to add. * @return This builder for chaining. */ - public Builder addAbnfStringsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAbnfStringsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAbnfStringsIsMutable(); abnfStrings_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -700,12 +786,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar) private static final com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar(); } @@ -714,27 +800,28 @@ public static com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ABNFGrammar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ABNFGrammar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -749,13 +836,15 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int PHRASE_SETS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") 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
@@ -769,6 +858,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
@@ -778,11 +869,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
@@ -796,6 +889,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
@@ -809,6 +904,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
@@ -818,43 +915,54 @@ 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;
+
   @SuppressWarnings("serial")
   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. */ @@ -862,23 +970,29 @@ 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; + @SuppressWarnings("serial") 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
@@ -893,6 +1007,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
@@ -903,11 +1019,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
@@ -922,6 +1040,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
@@ -936,6 +1056,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
@@ -946,14 +1068,15 @@ 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);
   }
 
   public static final int ABNF_GRAMMAR_FIELD_NUMBER = 4;
   private com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnfGrammar_;
   /**
+   *
+   *
    * 
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -961,6 +1084,7 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder
    * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return Whether the abnfGrammar field is set. */ @java.lang.Override @@ -968,6 +1092,8 @@ public boolean hasAbnfGrammar() { return abnfGrammar_ != null; } /** + * + * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -975,13 +1101,18 @@ public boolean hasAbnfGrammar() {
    * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return The abnfGrammar. */ @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getAbnfGrammar() { - return abnfGrammar_ == null ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_; + return abnfGrammar_ == null + ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() + : abnfGrammar_; } /** + * + * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -991,11 +1122,15 @@ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getAbnfGrammar()
    * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder getAbnfGrammarOrBuilder() {
-    return abnfGrammar_ == null ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_;
+  public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder
+      getAbnfGrammarOrBuilder() {
+    return abnfGrammar_ == null
+        ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()
+        : abnfGrammar_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1007,8 +1142,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));
     }
@@ -1031,8 +1165,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;
@@ -1043,12 +1176,10 @@ 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));
     }
     if (abnfGrammar_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getAbnfGrammar());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAbnfGrammar());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1058,23 +1189,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.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 (hasAbnfGrammar() != other.hasAbnfGrammar()) return false;
     if (hasAbnfGrammar()) {
-      if (!getAbnfGrammar()
-          .equals(other.getAbnfGrammar())) return false;
+      if (!getAbnfGrammar().equals(other.getAbnfGrammar())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -1108,130 +1236,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1261,9 +1395,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 @@ -1282,9 +1416,12 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1318,9 +1455,8 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1.SpeechAdaptat private void buildPartial0(com.google.cloud.speech.v1.SpeechAdaptation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000008) != 0)) { - result.abnfGrammar_ = abnfGrammarBuilder_ == null - ? abnfGrammar_ - : abnfGrammarBuilder_.build(); + result.abnfGrammar_ = + abnfGrammarBuilder_ == null ? abnfGrammar_ : abnfGrammarBuilder_.build(); } } @@ -1328,38 +1464,39 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechAdaptation result) { 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; @@ -1386,9 +1523,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_); } @@ -1422,9 +1560,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_); } @@ -1459,51 +1598,52 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1.PhraseSet m = - input.readMessage( - com.google.cloud.speech.v1.PhraseSet.parser(), - extensionRegistry); - if (phraseSetsBuilder_ == null) { - ensurePhraseSetsIsMutable(); - phraseSets_.add(m); - } else { - phraseSetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensurePhraseSetReferencesIsMutable(); - phraseSetReferences_.add(s); - break; - } // case 18 - case 26: { - com.google.cloud.speech.v1.CustomClass m = - input.readMessage( - com.google.cloud.speech.v1.CustomClass.parser(), - extensionRegistry); - if (customClassesBuilder_ == null) { - ensureCustomClassesIsMutable(); - customClasses_.add(m); - } else { - customClassesBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: { - input.readMessage( - getAbnfGrammarFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.speech.v1.PhraseSet m = + input.readMessage( + com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry); + if (phraseSetsBuilder_ == null) { + ensurePhraseSetsIsMutable(); + phraseSets_.add(m); + } else { + phraseSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePhraseSetReferencesIsMutable(); + phraseSetReferences_.add(s); + break; + } // case 18 + case 26: + { + com.google.cloud.speech.v1.CustomClass m = + input.readMessage( + com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry); + if (customClassesBuilder_ == null) { + ensureCustomClassesIsMutable(); + customClasses_.add(m); + } else { + customClassesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage(getAbnfGrammarFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1513,21 +1653,28 @@ public Builder mergeFrom( } // finally 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
@@ -1544,6 +1691,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
@@ -1560,6 +1709,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
@@ -1576,6 +1727,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
@@ -1584,8 +1737,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();
@@ -1599,6 +1751,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
@@ -1619,6 +1773,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
@@ -1641,6 +1797,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
@@ -1649,8 +1807,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();
@@ -1664,6 +1821,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
@@ -1672,8 +1831,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());
@@ -1684,6 +1842,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
@@ -1704,6 +1864,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
@@ -1716,8 +1878,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);
@@ -1725,6 +1886,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
@@ -1744,6 +1907,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
@@ -1763,6 +1928,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
@@ -1771,11 +1938,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
@@ -1784,14 +1952,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
@@ -1800,8 +1970,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 {
@@ -1809,6 +1979,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
@@ -1818,10 +1990,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
@@ -1830,12 +2004,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
@@ -1844,61 +2019,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. */ @@ -1906,76 +2096,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhraseSetReferences(int index, java.lang.String value) { + if (value == null) { + 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addPhraseSetReferences(java.lang.String value) { + if (value == null) { + 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() { @@ -1985,17 +2194,22 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addPhraseSetReferencesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); @@ -2004,18 +2218,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
@@ -2033,6 +2254,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
@@ -2050,6 +2273,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
@@ -2067,6 +2292,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
@@ -2076,8 +2303,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();
@@ -2091,6 +2317,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
@@ -2112,6 +2340,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
@@ -2135,6 +2365,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
@@ -2144,8 +2376,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();
@@ -2159,6 +2390,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
@@ -2180,6 +2413,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
@@ -2201,6 +2436,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
@@ -2214,8 +2451,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);
@@ -2223,6 +2459,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
@@ -2243,6 +2481,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
@@ -2263,6 +2503,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
@@ -2272,11 +2514,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
@@ -2286,14 +2529,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
@@ -2303,8 +2548,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 {
@@ -2312,6 +2557,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
@@ -2322,10 +2569,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
@@ -2335,12 +2584,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
@@ -2350,16 +2600,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(),
@@ -2371,8 +2627,13 @@ public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(
 
     private com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnfGrammar_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder> abnfGrammarBuilder_;
+            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar,
+            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder,
+            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder>
+        abnfGrammarBuilder_;
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2380,12 +2641,15 @@ public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(
      * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return Whether the abnfGrammar field is set. */ public boolean hasAbnfGrammar() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2393,16 +2657,21 @@ public boolean hasAbnfGrammar() {
      * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return The abnfGrammar. */ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getAbnfGrammar() { if (abnfGrammarBuilder_ == null) { - return abnfGrammar_ == null ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_; + return abnfGrammar_ == null + ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() + : abnfGrammar_; } else { return abnfGrammarBuilder_.getMessage(); } } /** + * + * *
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2425,6 +2694,8 @@ public Builder setAbnfGrammar(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGr
       return this;
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2445,6 +2716,8 @@ public Builder setAbnfGrammar(
       return this;
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2455,9 +2728,10 @@ public Builder setAbnfGrammar(
      */
     public Builder mergeAbnfGrammar(com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar value) {
       if (abnfGrammarBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          abnfGrammar_ != null &&
-          abnfGrammar_ != com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && abnfGrammar_ != null
+            && abnfGrammar_
+                != com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) {
           getAbnfGrammarBuilder().mergeFrom(value);
         } else {
           abnfGrammar_ = value;
@@ -2470,6 +2744,8 @@ public Builder mergeAbnfGrammar(com.google.cloud.speech.v1.SpeechAdaptation.ABNF
       return this;
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2489,6 +2765,8 @@ public Builder clearAbnfGrammar() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2503,6 +2781,8 @@ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder getAbnfGr
       return getAbnfGrammarFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2511,15 +2791,19 @@ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder getAbnfGr
      *
      * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
-    public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder getAbnfGrammarOrBuilder() {
+    public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder
+        getAbnfGrammarOrBuilder() {
       if (abnfGrammarBuilder_ != null) {
         return abnfGrammarBuilder_.getMessageOrBuilder();
       } else {
-        return abnfGrammar_ == null ?
-            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_;
+        return abnfGrammar_ == null
+            ? com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()
+            : abnfGrammar_;
       }
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2529,21 +2813,24 @@ public com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder getAbnfG
      * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder> 
+            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar,
+            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder,
+            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder>
         getAbnfGrammarFieldBuilder() {
       if (abnfGrammarBuilder_ == null) {
-        abnfGrammarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder>(
-                getAbnfGrammar(),
-                getParentForChildren(),
-                isClean());
+        abnfGrammarBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar,
+                com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar.Builder,
+                com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammarOrBuilder>(
+                getAbnfGrammar(), getParentForChildren(), isClean());
         abnfGrammar_ = null;
       }
       return abnfGrammarBuilder_;
     }
+
     @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);
     }
 
@@ -2553,12 +2840,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();
   }
@@ -2567,27 +2854,27 @@ 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 {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  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 {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2602,6 +2889,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v1.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java
similarity index 68%
rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java
rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java
index 30c16d3b25ce..b0420ecba70f 100644
--- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java
+++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfo.java
@@ -1,62 +1,84 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License 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;
 
 /**
+ *
+ *
  * 
  * Information on speech adaptation use in results
  * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptationInfo} */ -public final class SpeechAdaptationInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechAdaptationInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechAdaptationInfo) SpeechAdaptationInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechAdaptationInfo.newBuilder() to construct. private SpeechAdaptationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechAdaptationInfo() { timeoutMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechAdaptationInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptationInfo.class, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptationInfo.class, + com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder.class); } public static final int ADAPTATION_TIMEOUT_FIELD_NUMBER = 1; private boolean adaptationTimeout_ = false; /** + * + * *
    * Whether there was a timeout when applying speech adaptation. If true,
    * adaptation had no effect in the response transcript.
    * 
* * bool adaptation_timeout = 1; + * * @return The adaptationTimeout. */ @java.lang.Override @@ -65,15 +87,19 @@ public boolean getAdaptationTimeout() { } public static final int TIMEOUT_MESSAGE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object timeoutMessage_ = ""; /** + * + * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; + * * @return The timeoutMessage. */ @java.lang.Override @@ -82,30 +108,30 @@ public java.lang.String getTimeoutMessage() { 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(); timeoutMessage_ = s; return s; } } /** + * + * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; + * * @return The bytes for timeoutMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getTimeoutMessageBytes() { + public com.google.protobuf.ByteString getTimeoutMessageBytes() { java.lang.Object ref = timeoutMessage_; 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); timeoutMessage_ = b; return b; } else { @@ -114,6 +140,7 @@ public java.lang.String getTimeoutMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -125,8 +152,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 (adaptationTimeout_ != false) { output.writeBool(1, adaptationTimeout_); } @@ -143,8 +169,7 @@ public int getSerializedSize() { size = 0; if (adaptationTimeout_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, adaptationTimeout_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, adaptationTimeout_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeoutMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, timeoutMessage_); @@ -157,17 +182,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.SpeechAdaptationInfo)) { return super.equals(obj); } - com.google.cloud.speech.v1.SpeechAdaptationInfo other = (com.google.cloud.speech.v1.SpeechAdaptationInfo) obj; + com.google.cloud.speech.v1.SpeechAdaptationInfo other = + (com.google.cloud.speech.v1.SpeechAdaptationInfo) obj; - if (getAdaptationTimeout() - != other.getAdaptationTimeout()) return false; - if (!getTimeoutMessage() - .equals(other.getTimeoutMessage())) return false; + if (getAdaptationTimeout() != other.getAdaptationTimeout()) return false; + if (!getTimeoutMessage().equals(other.getTimeoutMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -180,8 +204,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADAPTATION_TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAdaptationTimeout()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAdaptationTimeout()); hash = (37 * hash) + TIMEOUT_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getTimeoutMessage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -189,130 +212,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.SpeechAdaptationInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.SpeechAdaptationInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.SpeechAdaptationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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; } /** + * + * *
    * Information on speech adaptation use in results
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptationInfo} */ - 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.SpeechAdaptationInfo) com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptationInfo.class, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptationInfo.class, + com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechAdaptationInfo.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +352,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_SpeechAdaptationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; } @java.lang.Override @@ -344,8 +373,11 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfo build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptationInfo buildPartial() { - com.google.cloud.speech.v1.SpeechAdaptationInfo result = new com.google.cloud.speech.v1.SpeechAdaptationInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.SpeechAdaptationInfo result = + new com.google.cloud.speech.v1.SpeechAdaptationInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -364,38 +396,39 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechAdaptationInfo resul 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.SpeechAdaptationInfo) { - return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptationInfo)other); + return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptationInfo) other); } else { super.mergeFrom(other); return this; @@ -403,7 +436,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.SpeechAdaptationInfo other) { - if (other == com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) + return this; if (other.getAdaptationTimeout() != false) { setAdaptationTimeout(other.getAdaptationTimeout()); } @@ -438,22 +472,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - adaptationTimeout_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 34: { - timeoutMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + adaptationTimeout_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 34: + { + timeoutMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -463,16 +500,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean adaptationTimeout_ ; + private boolean adaptationTimeout_; /** + * + * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; + * * @return The adaptationTimeout. */ @java.lang.Override @@ -480,29 +521,35 @@ public boolean getAdaptationTimeout() { return adaptationTimeout_; } /** + * + * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; + * * @param value The adaptationTimeout to set. * @return This builder for chaining. */ public Builder setAdaptationTimeout(boolean value) { - + adaptationTimeout_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; + * * @return This builder for chaining. */ public Builder clearAdaptationTimeout() { @@ -514,19 +561,21 @@ public Builder clearAdaptationTimeout() { private java.lang.Object timeoutMessage_ = ""; /** + * + * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; + * * @return The timeoutMessage. */ public java.lang.String getTimeoutMessage() { java.lang.Object ref = timeoutMessage_; 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(); timeoutMessage_ = s; return s; @@ -535,21 +584,22 @@ public java.lang.String getTimeoutMessage() { } } /** + * + * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; + * * @return The bytes for timeoutMessage. */ - public com.google.protobuf.ByteString - getTimeoutMessageBytes() { + public com.google.protobuf.ByteString getTimeoutMessageBytes() { java.lang.Object ref = timeoutMessage_; 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); timeoutMessage_ = b; return b; } else { @@ -557,30 +607,37 @@ public java.lang.String getTimeoutMessage() { } } /** + * + * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; + * * @param value The timeoutMessage to set. * @return This builder for chaining. */ - public Builder setTimeoutMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTimeoutMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } timeoutMessage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; + * * @return This builder for chaining. */ public Builder clearTimeoutMessage() { @@ -590,27 +647,31 @@ public Builder clearTimeoutMessage() { return this; } /** + * + * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; + * * @param value The bytes for timeoutMessage to set. * @return This builder for chaining. */ - public Builder setTimeoutMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTimeoutMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); timeoutMessage_ = value; bitField0_ |= 0x00000002; 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); } @@ -620,12 +681,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.SpeechAdaptationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechAdaptationInfo) private static final com.google.cloud.speech.v1.SpeechAdaptationInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.SpeechAdaptationInfo(); } @@ -634,27 +695,27 @@ public static com.google.cloud.speech.v1.SpeechAdaptationInfo getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechAdaptationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechAdaptationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -669,6 +730,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechAdaptationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java similarity index 58% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java index 7be8c26b1e8b..da65be18b760 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationInfoOrBuilder.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/cloud_speech.proto package com.google.cloud.speech.v1; -public interface SpeechAdaptationInfoOrBuilder extends +public interface SpeechAdaptationInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechAdaptationInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Whether there was a timeout when applying speech adaptation. If true,
    * adaptation had no effect in the response transcript.
    * 
* * bool adaptation_timeout = 1; + * * @return The adaptationTimeout. */ boolean getAdaptationTimeout(); /** + * + * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; + * * @return The timeoutMessage. */ java.lang.String getTimeoutMessage(); /** + * + * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; + * * @return The bytes for timeoutMessage. */ - com.google.protobuf.ByteString - getTimeoutMessageBytes(); + com.google.protobuf.ByteString getTimeoutMessageBytes(); } diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java similarity index 82% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java index 97607d1d668f..af5aec644d5e 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java +++ b/java-speech/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,10 +205,11 @@ 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);
 
   /**
+   *
+   *
    * 
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -169,10 +217,13 @@ com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(
    * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return Whether the abnfGrammar field is set. */ boolean hasAbnfGrammar(); /** + * + * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -180,10 +231,13 @@ com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(
    * 
* * .google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return The abnfGrammar. */ com.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar getAbnfGrammar(); /** + * + * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
diff --git a/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java
new file mode 100644
index 000000000000..081817d7ecba
--- /dev/null
+++ b/java-speech/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,48 +28,53 @@
  *
  * 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;
   }
-  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;
+
   @SuppressWarnings("serial")
   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
@@ -68,13 +90,15 @@ protected java.lang.Object newInstance(
    * 
* * 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
@@ -90,12 +114,15 @@ protected java.lang.Object newInstance(
    * 
* * 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
@@ -111,6 +138,7 @@ public int getPhrasesCount() {
    * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -118,6 +146,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
@@ -133,17 +163,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_ = 0F; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -156,6 +188,7 @@ public java.lang.String getPhrases(int index) {
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -164,6 +197,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +209,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)); } @@ -201,8 +234,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -212,18 +244,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -240,104 +270,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) + getUnknownFields().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.
@@ -345,33 +381,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -383,9 +418,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
@@ -404,9 +439,12 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -430,38 +468,39 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechContext result) {
     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;
@@ -509,23 +548,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensurePhrasesIsMutable();
-              phrases_.add(s);
-              break;
-            } // case 10
-            case 37: {
-              boost_ = input.readFloat();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 37
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensurePhrasesIsMutable();
+                phrases_.add(s);
+                break;
+              } // case 10
+            case 37:
+              {
+                boost_ = input.readFloat();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 37
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -535,16 +577,21 @@ public Builder mergeFrom(
       } // finally
       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
@@ -560,13 +607,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
@@ -582,12 +631,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
@@ -603,6 +655,7 @@ public int getPhrasesCount() {
      * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -610,6 +663,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
@@ -625,14 +680,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
@@ -648,19 +705,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhrases(int index, java.lang.String value) { + if (value == null) { + 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
@@ -676,18 +737,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) { - if (value == null) { throw new NullPointerException(); } + public Builder addPhrases(java.lang.String value) { + if (value == null) { + 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
@@ -703,18 +768,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
@@ -730,6 +796,7 @@ public Builder addAllPhrases(
      * 
* * repeated string phrases = 1; + * * @return This builder for chaining. */ public Builder clearPhrases() { @@ -739,6 +806,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
@@ -754,12 +823,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensurePhrasesIsMutable(); phrases_.add(value); @@ -767,8 +838,10 @@ public Builder addPhrasesBytes( 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
@@ -781,6 +854,7 @@ public Builder addPhrasesBytes(
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -788,6 +862,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
@@ -800,17 +876,20 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000002; 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
@@ -823,6 +902,7 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { @@ -831,9 +911,9 @@ public Builder clearBoost() { 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); } @@ -843,12 +923,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(); } @@ -857,27 +937,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -892,6 +972,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java similarity index 85% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java index 97fbd87c39aa..a529f04289b7 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java +++ b/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java new file mode 100644 index 000000000000..00b8954f454a --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java @@ -0,0 +1,495 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechAdaptationInfo_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\"\355\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\022L\n\026speech_adaptation_info\030\007 " + + "\001(\0132,.google.cloud.speech.v1.SpeechAdapt" + + "ationInfo\022\022\n\nrequest_id\030\010 \001(\003\"\351\002\n\034LongRu" + + "nningRecognizeResponse\022@\n\007results\030\002 \003(\0132" + + "/.google.cloud.speech.v1.SpeechRecogniti" + + "onResult\0224\n\021total_billed_time\030\003 \001(\0132\031.go" + + "ogle.protobuf.Duration\022E\n\routput_config\030" + + "\006 \001(\0132..google.cloud.speech.v1.Transcrip" + + "tOutputConfig\022(\n\014output_error\030\007 \001(\0132\022.go" + + "ogle.rpc.Status\022L\n\026speech_adaptation_inf" + + "o\030\010 \001(\0132,.google.cloud.speech.v1.SpeechA" + + "daptationInfo\022\022\n\nrequest_id\030\t \001(\003\"\260\001\n\034Lo" + + "ngRunningRecognizeMetadata\022\030\n\020progress_p" + + "ercent\030\001 \001(\005\022.\n\nstart_time\030\002 \001(\0132\032.googl" + + "e.protobuf.Timestamp\0224\n\020last_update_time" + + "\030\003 \001(\0132\032.google.protobuf.Timestamp\022\020\n\003ur" + + "i\030\004 \001(\tB\003\340A\003\"\311\003\n\032StreamingRecognizeRespo" + + "nse\022!\n\005error\030\001 \001(\0132\022.google.rpc.Status\022C" + + "\n\007results\030\002 \003(\01322.google.cloud.speech.v1" + + ".StreamingRecognitionResult\022]\n\021speech_ev" + + "ent_type\030\004 \001(\0162B.google.cloud.speech.v1." + + "StreamingRecognizeResponse.SpeechEventTy" + + "pe\0224\n\021total_billed_time\030\005 \001(\0132\031.google.p" + + "rotobuf.Duration\022L\n\026speech_adaptation_in" + + "fo\030\t \001(\0132,.google.cloud.speech.v1.Speech" + + "AdaptationInfo\022\022\n\nrequest_id\030\n \001(\003\"L\n\017Sp" + + "eechEventType\022\034\n\030SPEECH_EVENT_UNSPECIFIE" + + "D\020\000\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\362\001\n\032Str" + + "eamingRecognitionResult\022J\n\014alternatives\030" + + "\001 \003(\01324.google.cloud.speech.v1.SpeechRec" + + "ognitionAlternative\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\"\312\001" + + "\n\027SpeechRecognitionResult\022J\n\014alternative" + + "s\030\001 \003(\01324.google.cloud.speech.v1.SpeechR" + + "ecognitionAlternative\022\023\n\013channel_tag\030\002 \001" + + "(\005\0222\n\017result_end_time\030\004 \001(\0132\031.google.pro" + + "tobuf.Duration\022\032\n\rlanguage_code\030\005 \001(\tB\003\340" + + "A\003\"w\n\034SpeechRecognitionAlternative\022\022\n\ntr" + + "anscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022/\n\005wo" + + "rds\030\003 \003(\0132 .google.cloud.speech.v1.WordI" + + "nfo\"\242\001\n\010WordInfo\022-\n\nstart_time\030\001 \001(\0132\031.g" + + "oogle.protobuf.Duration\022+\n\010end_time\030\002 \001(" + + "\0132\031.google.protobuf.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\003\"K\n\024SpeechAdaptationInfo\022\032\n\022adap" + + "tation_timeout\030\001 \001(\010\022\027\n\017timeout_message\030" + + "\004 \001(\t2\321\004\n\006Speech\022\220\001\n\tRecognize\022(.google." + + "cloud.speech.v1.RecognizeRequest\032).googl" + + "e.cloud.speech.v1.RecognizeResponse\".\202\323\344" + + "\223\002\031\"\024/v1/speech:recognize:\001*\332A\014config,au" + + "dio\022\344\001\n\024LongRunningRecognize\0223.google.cl" + + "oud.speech.v1.LongRunningRecognizeReques" + + "t\032\035.google.longrunning.Operation\"x\202\323\344\223\002$" + + "\"\037/v1/speech:longrunningrecognize:\001*\332A\014c" + + "onfig,audio\312A<\n\034LongRunningRecognizeResp" + + "onse\022\034LongRunningRecognizeMetadata\022\201\001\n\022S" + + "treamingRecognize\0221.google.cloud.speech." + + "v1.StreamingRecognizeRequest\0322.google.cl" + + "oud.speech.v1.StreamingRecognizeResponse" + + "\"\000(\0010\001\032I\312A\025speech.googleapis.com\322A.https" + + "://www.googleapis.com/auth/cloud-platfor" + + "mBr\n\032com.google.cloud.speech.v1B\013SpeechP" + + "rotoP\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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") 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
@@ -61,6 +83,7 @@ protected java.lang.Object newInstance(
    * 
* * string transcript = 1; + * * @return The transcript. */ @java.lang.Override @@ -69,14 +92,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
@@ -85,16 +109,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 { @@ -105,6 +128,8 @@ public java.lang.String getTranscript() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_ = 0F; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -116,6 +141,7 @@ public java.lang.String getTranscript() {
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -124,9 +150,12 @@ public float getConfidence() { } public static final int WORDS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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
@@ -140,6 +169,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
@@ -149,11 +180,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
@@ -167,6 +200,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
@@ -180,6 +215,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
@@ -189,12 +226,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;
@@ -206,8 +243,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_);
     }
@@ -230,12 +266,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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -245,20 +279,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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -273,8 +305,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();
@@ -285,129 +316,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,9 +463,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 @@ -446,14 +484,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1.SpeechRecognitionAlternative result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1.SpeechRecognitionAlternative result) { if (wordsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -479,38 +521,39 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechRecognitionAlternati 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; @@ -518,7 +561,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_; bitField0_ |= 0x00000001; @@ -545,9 +589,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.SpeechRecognitionAlternative wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000004); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWordsFieldBuilder() : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWordsFieldBuilder() + : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -579,35 +624,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - transcript_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - case 26: { - com.google.cloud.speech.v1.WordInfo m = - input.readMessage( - com.google.cloud.speech.v1.WordInfo.parser(), - extensionRegistry); - if (wordsBuilder_ == null) { - ensureWordsIsMutable(); - words_.add(m); - } else { - wordsBuilder_.addMessage(m); - } - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + transcript_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 26: + { + com.google.cloud.speech.v1.WordInfo m = + input.readMessage( + com.google.cloud.speech.v1.WordInfo.parser(), extensionRegistry); + if (wordsBuilder_ == null) { + ensureWordsIsMutable(); + words_.add(m); + } else { + wordsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -617,10 +665,13 @@ public Builder mergeFrom( } // finally 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
@@ -629,13 +680,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; @@ -644,6 +695,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
@@ -652,15 +705,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 { @@ -668,6 +720,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
@@ -676,18 +730,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranscript(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } transcript_ = value; bitField0_ |= 0x00000001; 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
@@ -696,6 +754,7 @@ public Builder setTranscript(
      * 
* * string transcript = 1; + * * @return This builder for chaining. */ public Builder clearTranscript() { @@ -705,6 +764,8 @@ public Builder clearTranscript() { return this; } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -713,12 +774,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); transcript_ = value; bitField0_ |= 0x00000001; @@ -726,8 +789,10 @@ public Builder setTranscriptBytes( 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
@@ -739,6 +804,7 @@ public Builder setTranscriptBytes(
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -746,6 +812,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
@@ -757,17 +825,20 @@ public float getConfidence() {
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000002; 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
@@ -779,6 +850,7 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -789,18 +861,24 @@ public Builder clearConfidence() { } private java.util.List words_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000004; - } + } } 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
@@ -817,6 +895,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
@@ -833,6 +913,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
@@ -849,6 +931,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
@@ -857,8 +941,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();
@@ -872,6 +955,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
@@ -892,6 +977,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
@@ -914,6 +1001,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
@@ -922,8 +1011,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();
@@ -937,6 +1025,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
@@ -945,8 +1035,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());
@@ -957,6 +1046,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
@@ -977,6 +1068,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
@@ -989,8 +1082,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);
@@ -998,6 +1090,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
@@ -1017,6 +1111,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
@@ -1036,6 +1132,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
@@ -1044,11 +1142,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
@@ -1057,14 +1156,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
@@ -1073,8 +1174,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 {
@@ -1082,6 +1183,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
@@ -1091,10 +1194,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
@@ -1103,12 +1208,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
@@ -1117,27 +1223,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_ & 0x00000004) != 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_ & 0x00000004) != 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);
     }
 
@@ -1147,12 +1255,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();
   }
@@ -1161,27 +1269,27 @@ 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 {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  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 {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1196,6 +1304,4 @@ public com.google.protobuf.Parser getParserForType
   public com.google.cloud.speech.v1.SpeechRecognitionAlternative getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
similarity index 78%
rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
index 90fecb6d97c4..058f60aa9d01 100644
--- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
+++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
similarity index 75%
rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
index 35e9bd85f0b2..cec60f257c60 100644
--- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
+++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private java.util.List alternatives_; /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -63,10 +85,13 @@ protected java.lang.Object newInstance(
    * 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`).
@@ -77,11 +102,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`).
@@ -96,6 +123,8 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -110,6 +139,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`).
@@ -128,6 +159,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int CHANNEL_TAG_FIELD_NUMBER = 2;
   private int channelTag_ = 0;
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -135,6 +168,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -145,12 +179,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 @@ -158,19 +195,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.
@@ -180,13 +224,18 @@ public com.google.protobuf.Duration getResultEndTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
-    return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
+    return resultEndTime_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : resultEndTime_;
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
+
   @SuppressWarnings("serial")
   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
@@ -194,6 +243,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -202,14 +252,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
@@ -217,16 +268,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 { @@ -235,6 +285,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,8 +297,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)); } @@ -270,16 +320,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_); @@ -292,24 +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.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,129 +383,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -484,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_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 @@ -505,14 +555,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1.SpeechRecognitionResult result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1.SpeechRecognitionResult result) { if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -530,9 +584,8 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechRecognitionResult re result.channelTag_ = channelTag_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.resultEndTime_ = resultEndTimeBuilder_ == null - ? resultEndTime_ - : resultEndTimeBuilder_.build(); + result.resultEndTime_ = + resultEndTimeBuilder_ == null ? resultEndTime_ : resultEndTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.languageCode_ = languageCode_; @@ -543,38 +596,39 @@ private void buildPartial0(com.google.cloud.speech.v1.SpeechRecognitionResult re 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; @@ -582,7 +636,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()) { @@ -601,9 +656,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_); } @@ -646,42 +702,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1.SpeechRecognitionAlternative m = - input.readMessage( - com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), - extensionRegistry); - if (alternativesBuilder_ == null) { - ensureAlternativesIsMutable(); - alternatives_.add(m); - } else { - alternativesBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: { - channelTag_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 34: { - input.readMessage( - getResultEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.speech.v1.SpeechRecognitionAlternative m = + input.readMessage( + com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), + extensionRegistry); + if (alternativesBuilder_ == null) { + ensureAlternativesIsMutable(); + alternatives_.add(m); + } else { + alternativesBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + channelTag_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 34: + { + input.readMessage(getResultEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -691,21 +750,30 @@ public Builder mergeFrom( } // finally 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`).
@@ -715,7 +783,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 {
@@ -723,6 +792,8 @@ public java.util.List g
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -740,6 +811,8 @@ public int getAlternativesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -757,6 +830,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`).
@@ -781,6 +856,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -791,7 +868,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());
@@ -802,6 +880,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -825,6 +905,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`).
@@ -849,6 +931,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -870,6 +954,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -880,7 +966,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());
@@ -891,6 +978,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -901,11 +990,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);
@@ -913,6 +1002,8 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -933,6 +1024,8 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -953,6 +1046,8 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -967,6 +1062,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`).
@@ -976,14 +1073,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`).
@@ -993,8 +1093,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 {
@@ -1002,6 +1103,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1011,11 +1114,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`).
@@ -1027,10 +1133,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`).
@@ -1040,27 +1149,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.
@@ -1068,6 +1182,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -1075,6 +1190,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.
@@ -1082,17 +1199,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1100,6 +1220,7 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; + * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1111,36 +1232,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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.
@@ -1162,6 +1296,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.
@@ -1169,8 +1305,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();
       } else {
@@ -1181,6 +1316,8 @@ public Builder setResultEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1190,9 +1327,9 @@ public Builder setResultEndTime(
      */
     public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          resultEndTime_ != null &&
-          resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && resultEndTime_ != null
+            && resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndTimeBuilder().mergeFrom(value);
         } else {
           resultEndTime_ = value;
@@ -1205,6 +1342,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.
@@ -1223,6 +1362,8 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1236,6 +1377,8 @@ public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1247,11 +1390,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.
@@ -1260,14 +1406,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_;
@@ -1275,6 +1424,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
@@ -1282,13 +1433,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; @@ -1297,6 +1448,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
@@ -1304,15 +1457,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 { @@ -1320,6 +1472,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
@@ -1327,18 +1481,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000008; 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
@@ -1346,6 +1504,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1355,6 +1514,8 @@ public Builder clearLanguageCode() { 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
@@ -1362,21 +1523,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000008; 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); } @@ -1386,12 +1549,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(); } @@ -1400,27 +1563,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1435,6 +1598,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java similarity index 83% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java index aa2bef7b69e6..50085b974066 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java +++ b/java-speech/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/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java new file mode 100644 index 000000000000..9e47f5d5edee --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java @@ -0,0 +1,155 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechAdaptation_ABNFGrammar_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}\"\275\002\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.CustomClass\022J\n" + + "\014abnf_grammar\030\004 \001(\01324.google.cloud.speec" + + "h.v1.SpeechAdaptation.ABNFGrammar\032#\n\013ABN" + + "FGrammar\022\024\n\014abnf_strings\030\001 \003(\tBz\n\032com.go" + + "ogle.cloud.speech.v1B\023SpeechResourceProt" + + "oP\001Z * Provides information to the recognizer that specifies how to process the * request. @@ -11,52 +28,58 @@ * * 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; } - 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 @@ -64,34 +87,49 @@ 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() { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 2; private boolean singleUtterance_ = false; /** + * + * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -114,6 +152,7 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ @java.lang.Override @@ -124,6 +163,8 @@ public boolean getSingleUtterance() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 3; private boolean interimResults_ = false; /** + * + * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -132,6 +173,7 @@ public boolean getSingleUtterance() {
    * 
* * bool interim_results = 3; + * * @return The interimResults. */ @java.lang.Override @@ -140,6 +182,7 @@ public boolean getInterimResults() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +194,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()); } @@ -172,16 +214,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -191,22 +230,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,107 +260,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) + getUnknownFields().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.
@@ -331,33 +374,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -373,9 +415,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
@@ -394,8 +436,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v1.StreamingRecognitionConfig result =
+          new com.google.cloud.speech.v1.StreamingRecognitionConfig(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -403,9 +448,7 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognitionConfig result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.config_ = configBuilder_ == null
-            ? config_
-            : configBuilder_.build();
+        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.singleUtterance_ = singleUtterance_;
@@ -419,38 +462,39 @@ private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognitionConfig
     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;
@@ -458,7 +502,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());
       }
@@ -494,29 +539,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              singleUtterance_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 24: {
-              interimResults_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                singleUtterance_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 24:
+              {
+                interimResults_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -526,46 +573,66 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * 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) { @@ -581,15 +648,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(); } else { @@ -600,18 +670,22 @@ 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 (((bitField0_ & 0x00000001) != 0) && - config_ != null && - config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && config_ != null + && config_ != com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -624,12 +698,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -642,12 +720,16 @@ 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() { bitField0_ |= 0x00000001; @@ -655,45 +737,59 @@ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { 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
@@ -716,6 +812,7 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ @java.lang.Override @@ -723,6 +820,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
@@ -745,17 +844,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -778,6 +880,7 @@ public Builder setSingleUtterance(boolean value) {
      * 
* * bool single_utterance = 2; + * * @return This builder for chaining. */ public Builder clearSingleUtterance() { @@ -787,8 +890,10 @@ public Builder clearSingleUtterance() { 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
@@ -797,6 +902,7 @@ public Builder clearSingleUtterance() {
      * 
* * bool interim_results = 3; + * * @return The interimResults. */ @java.lang.Override @@ -804,6 +910,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
@@ -812,17 +920,20 @@ 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -831,6 +942,7 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 3; + * * @return This builder for chaining. */ public Builder clearInterimResults() { @@ -839,9 +951,9 @@ public Builder clearInterimResults() { 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); } @@ -851,12 +963,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(); } @@ -865,27 +977,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -900,6 +1012,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java index 8c5cfecdc1c5..7b3064599957 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java similarity index 76% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java index 8b0f758aa248..1ee89c35cdc8 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java +++ b/java-speech/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,33 +45,37 @@ 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;
   }
-  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;
+
   @SuppressWarnings("serial")
   private java.util.List alternatives_;
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -64,10 +86,13 @@ protected java.lang.Object newInstance(
    * 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`).
@@ -78,11 +103,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`).
@@ -97,6 +124,8 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -111,6 +140,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`).
@@ -129,6 +160,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int IS_FINAL_FIELD_NUMBER = 2;
   private boolean isFinal_ = false;
   /**
+   *
+   *
    * 
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -138,6 +171,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -148,6 +182,8 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_ = 0F; /** + * + * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -157,6 +193,7 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -167,12 +204,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 @@ -180,19 +220,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.
@@ -202,12 +249,16 @@ public com.google.protobuf.Duration getResultEndTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
-    return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
+    return resultEndTime_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : resultEndTime_;
   }
 
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_ = 0;
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -215,6 +266,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -223,9 +275,12 @@ public int getChannelTag() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") 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
@@ -233,6 +288,7 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -241,14 +297,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
@@ -256,16 +313,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 { @@ -274,6 +330,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,8 +342,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)); } @@ -315,24 +371,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_); @@ -345,29 +396,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -384,11 +430,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(); @@ -403,96 +447,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.
@@ -500,33 +552,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -551,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_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
@@ -572,14 +623,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v1.StreamingRecognitionResult result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v1.StreamingRecognitionResult result) {
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -600,9 +655,8 @@ private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognitionResult
         result.stability_ = stability_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.resultEndTime_ = resultEndTimeBuilder_ == null
-            ? resultEndTime_
-            : resultEndTimeBuilder_.build();
+        result.resultEndTime_ =
+            resultEndTimeBuilder_ == null ? resultEndTime_ : resultEndTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.channelTag_ = channelTag_;
@@ -616,38 +670,39 @@ private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognitionResult
     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;
@@ -655,7 +710,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()) {
@@ -674,9 +730,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_);
           }
@@ -725,52 +782,57 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.speech.v1.SpeechRecognitionAlternative m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(),
-                      extensionRegistry);
-              if (alternativesBuilder_ == null) {
-                ensureAlternativesIsMutable();
-                alternatives_.add(m);
-              } else {
-                alternativesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 16: {
-              isFinal_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 29: {
-              stability_ = input.readFloat();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 29
-            case 34: {
-              input.readMessage(
-                  getResultEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 40: {
-              channelTag_ = input.readInt32();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 40
-            case 50: {
-              languageCode_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.speech.v1.SpeechRecognitionAlternative m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(),
+                        extensionRegistry);
+                if (alternativesBuilder_ == null) {
+                  ensureAlternativesIsMutable();
+                  alternatives_.add(m);
+                } else {
+                  alternativesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 16:
+              {
+                isFinal_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 29:
+              {
+                stability_ = input.readFloat();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 29
+            case 34:
+              {
+                input.readMessage(getResultEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 40:
+              {
+                channelTag_ = input.readInt32();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+            case 50:
+              {
+                languageCode_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -780,21 +842,30 @@ public Builder mergeFrom(
       } // finally
       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`).
@@ -804,7 +875,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 {
@@ -812,6 +884,8 @@ public java.util.List g
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -829,6 +903,8 @@ public int getAlternativesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -846,6 +922,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`).
@@ -870,6 +948,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -880,7 +960,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());
@@ -891,6 +972,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -914,6 +997,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`).
@@ -938,6 +1023,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -959,6 +1046,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -969,7 +1058,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());
@@ -980,6 +1070,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -990,11 +1082,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);
@@ -1002,6 +1094,8 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1022,6 +1116,8 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1042,6 +1138,8 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1056,6 +1154,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`).
@@ -1065,14 +1165,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`).
@@ -1082,8 +1185,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 {
@@ -1091,6 +1195,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1100,11 +1206,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`).
@@ -1116,10 +1225,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`).
@@ -1129,27 +1241,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
@@ -1159,6 +1276,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -1166,6 +1284,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
@@ -1175,17 +1295,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1195,6 +1318,7 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; + * * @return This builder for chaining. */ public Builder clearIsFinal() { @@ -1204,8 +1328,10 @@ public Builder clearIsFinal() { 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
@@ -1215,6 +1341,7 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -1222,6 +1349,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
@@ -1231,17 +1360,20 @@ public float getStability() {
      * 
* * float stability = 3; + * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; bitField0_ |= 0x00000004; 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
@@ -1251,6 +1383,7 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; + * * @return This builder for chaining. */ public Builder clearStability() { @@ -1262,36 +1395,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 ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * 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.
@@ -1313,6 +1459,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.
@@ -1320,8 +1468,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();
       } else {
@@ -1332,6 +1479,8 @@ public Builder setResultEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1341,9 +1490,9 @@ public Builder setResultEndTime(
      */
     public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          resultEndTime_ != null &&
-          resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && resultEndTime_ != null
+            && resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndTimeBuilder().mergeFrom(value);
         } else {
           resultEndTime_ = value;
@@ -1356,6 +1505,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.
@@ -1374,6 +1525,8 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1387,6 +1540,8 @@ public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1398,11 +1553,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.
@@ -1411,21 +1569,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.
@@ -1433,6 +1596,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -1440,6 +1604,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.
@@ -1447,17 +1613,20 @@ 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1465,6 +1634,7 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; + * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1476,6 +1646,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
@@ -1483,13 +1655,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; @@ -1498,6 +1670,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
@@ -1505,15 +1679,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 { @@ -1521,6 +1694,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
@@ -1528,18 +1703,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000020; 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
@@ -1547,6 +1726,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1556,6 +1736,8 @@ public Builder clearLanguageCode() { 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,21 +1745,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000020; 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); } @@ -1587,12 +1771,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(); } @@ -1601,27 +1785,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1636,6 +1820,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java similarity index 85% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java index c44aa1077a0d..21ef917f18b9 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java similarity index 72% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java index 66731bd86572..d72b525f59ea 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java +++ b/java-speech/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,52 +31,56 @@
  *
  * 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;
   }
-  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;
     }
@@ -75,25 +96,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
@@ -101,6 +127,7 @@ public int getNumber() {
    * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -108,6 +135,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
@@ -115,16 +144,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
@@ -134,15 +166,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
@@ -155,6 +190,7 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreami
    * 
* * bytes audio_content = 2; + * * @return Whether the audioContent field is set. */ @java.lang.Override @@ -162,6 +198,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
@@ -174,6 +212,7 @@ public boolean hasAudioContent() {
    * 
* * bytes audio_content = 2; + * * @return The audioContent. */ @java.lang.Override @@ -185,6 +224,7 @@ public com.google.protobuf.ByteString getAudioContent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,14 +236,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_); } getUnknownFields().writeTo(output); } @@ -215,13 +254,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -231,22 +271,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: @@ -280,96 +319,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
@@ -380,33 +426,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -420,9 +465,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
@@ -441,8 +486,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v1.StreamingRecognizeRequest result =
+          new com.google.cloud.speech.v1.StreamingRecognizeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -455,8 +503,7 @@ private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognizeRequest
     private void buildPartialOneofs(com.google.cloud.speech.v1.StreamingRecognizeRequest result) {
       result.streamingRequestCase_ = streamingRequestCase_;
       result.streamingRequest_ = this.streamingRequest_;
-      if (streamingRequestCase_ == 1 &&
-          streamingConfigBuilder_ != null) {
+      if (streamingRequestCase_ == 1 && streamingConfigBuilder_ != null) {
         result.streamingRequest_ = streamingConfigBuilder_.build();
       }
     }
@@ -465,38 +512,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v1.StreamingRecognizeReq
     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;
@@ -504,19 +552,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.getUnknownFields());
       onChanged();
@@ -544,24 +596,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getStreamingConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              streamingRequestCase_ = 1;
-              break;
-            } // case 10
-            case 18: {
-              streamingRequest_ = input.readBytes();
-              streamingRequestCase_ = 2;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getStreamingConfigFieldBuilder().getBuilder(), extensionRegistry);
+                streamingRequestCase_ = 1;
+                break;
+              } // case 10
+            case 18:
+              {
+                streamingRequest_ = input.readBytes();
+                streamingRequestCase_ = 2;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -571,12 +624,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -589,8 +642,13 @@ public Builder clearStreamingRequest() {
     private int bitField0_;
 
     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
@@ -598,6 +656,7 @@ public Builder clearStreamingRequest() {
      * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -605,6 +664,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
@@ -612,6 +673,7 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return The streamingConfig. */ @java.lang.Override @@ -629,6 +691,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
@@ -651,6 +715,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
@@ -671,6 +737,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
@@ -679,12 +747,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;
         }
@@ -700,6 +773,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
@@ -725,6 +800,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
@@ -733,10 +810,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
@@ -746,7 +826,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 {
@@ -757,6 +838,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
@@ -766,14 +849,20 @@ 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());
@@ -785,6 +874,8 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreami
     }
 
     /**
+     *
+     *
      * 
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -797,12 +888,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
@@ -815,6 +909,7 @@ public boolean hasAudioContent() {
      * 
* * bytes audio_content = 2; + * * @return The audioContent. */ public com.google.protobuf.ByteString getAudioContent() { @@ -824,6 +919,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
@@ -836,17 +933,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(); } + if (value == null) { + 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
@@ -859,6 +961,7 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 2; + * * @return This builder for chaining. */ public Builder clearAudioContent() { @@ -869,9 +972,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); } @@ -881,12 +984,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(); } @@ -895,27 +998,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -930,6 +1033,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java index 28ed92b158ab..13fc461c9e7b 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java similarity index 75% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java index 9a06793de786..d35855eadc79 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java +++ b/java-speech/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,39 +79,43 @@ 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;
   }
-  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.
      * 
@@ -102,6 +124,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
@@ -119,6 +143,8 @@ public enum SpeechEventType
     ;
 
     /**
+     *
+     *
      * 
      * No speech event specified.
      * 
@@ -127,6 +153,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
@@ -141,7 +169,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(
@@ -166,39 +193,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();
@@ -206,8 +237,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;
@@ -227,12 +257,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 @@ -240,12 +273,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 @@ -253,6 +289,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.
@@ -266,9 +304,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -283,6 +324,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.
@@ -293,11 +336,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.
@@ -312,6 +357,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.
@@ -326,6 +373,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.
@@ -344,38 +393,56 @@ public com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResults
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 4;
   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; + * + * * @return The speechEventType. */ - @java.lang.Override public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.forNumber(speechEventType_); - return result == null ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.forNumber( + 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 @@ -383,19 +450,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.
@@ -405,17 +479,22 @@ public com.google.protobuf.Duration getTotalBilledTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
-    return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_;
+    return totalBilledTime_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : totalBilledTime_;
   }
 
   public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 9;
   private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_;
   /**
+   *
+   *
    * 
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -423,18 +502,25 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } /** + * + * *
    * Provides information on adaptation behavior in response
    * 
@@ -442,19 +528,25 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; */ @java.lang.Override - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 10; private long requestId_ = 0L; /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 10; + * * @return The requestId. */ @java.lang.Override @@ -463,6 +555,7 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -474,15 +567,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) { @@ -504,28 +599,26 @@ 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()); } if (speechAdaptationInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getSpeechAdaptationInfo()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, requestId_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -535,33 +628,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.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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo() - .equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() - != other.getRequestId()) return false; + if (getRequestId() != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -592,104 +681,111 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } 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`
@@ -731,33 +827,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -790,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
@@ -811,14 +906,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v1.StreamingRecognizeResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v1.StreamingRecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000002) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -833,22 +932,20 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1.StreamingReco
     private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.error_ = errorBuilder_ == null
-            ? error_
-            : errorBuilder_.build();
+        result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.speechEventType_ = speechEventType_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
-            ? totalBilledTime_
-            : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ =
+            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
-            ? speechAdaptationInfo_
-            : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ =
+            speechAdaptationInfoBuilder_ == null
+                ? speechAdaptationInfo_
+                : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.requestId_ = requestId_;
@@ -859,38 +956,39 @@ private void buildPartial0(com.google.cloud.speech.v1.StreamingRecognizeResponse
     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;
@@ -898,7 +996,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());
       }
@@ -920,9 +1019,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognizeResponse o
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            resultsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResultsFieldBuilder() : null;
+            resultsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResultsFieldBuilder()
+                    : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -966,56 +1066,58 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getErrorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              com.google.cloud.speech.v1.StreamingRecognitionResult m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.StreamingRecognitionResult.parser(),
-                      extensionRegistry);
-              if (resultsBuilder_ == null) {
-                ensureResultsIsMutable();
-                results_.add(m);
-              } else {
-                resultsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            case 32: {
-              speechEventType_ = input.readEnum();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 32
-            case 42: {
-              input.readMessage(
-                  getTotalBilledTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 42
-            case 74: {
-              input.readMessage(
-                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 74
-            case 80: {
-              requestId_ = input.readInt64();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 80
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.cloud.speech.v1.StreamingRecognitionResult m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1.StreamingRecognitionResult.parser(),
+                        extensionRegistry);
+                if (resultsBuilder_ == null) {
+                  ensureResultsIsMutable();
+                  results_.add(m);
+                } else {
+                  resultsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            case 32:
+              {
+                speechEventType_ = input.readEnum();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 32
+            case 42:
+              {
+                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 42
+            case 74:
+              {
+                input.readMessage(
+                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 74
+            case 80:
+              {
+                requestId_ = input.readInt64();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 80
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1025,30 +1127,38 @@ public Builder mergeFrom(
       } // finally
       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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * 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() { @@ -1059,6 +1169,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.
@@ -1080,6 +1192,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.
@@ -1087,8 +1201,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();
       } else {
@@ -1099,6 +1212,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1108,9 +1223,9 @@ public Builder setError(
      */
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          error_ != null &&
-          error_ != com.google.rpc.Status.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && error_ != null
+            && error_ != com.google.rpc.Status.getDefaultInstance()) {
           getErrorBuilder().mergeFrom(value);
         } else {
           error_ = value;
@@ -1123,6 +1238,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.
@@ -1141,6 +1258,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1154,6 +1273,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() {
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1165,11 +1286,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.
@@ -1178,32 +1300,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_ & 0x00000002) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(
+                results_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     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.
@@ -1221,6 +1351,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.
@@ -1238,6 +1370,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1255,6 +1389,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.
@@ -1279,6 +1415,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.
@@ -1300,6 +1438,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.
@@ -1323,6 +1463,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.
@@ -1347,6 +1489,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.
@@ -1368,6 +1512,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.
@@ -1389,6 +1535,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.
@@ -1399,11 +1547,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);
@@ -1411,6 +1559,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.
@@ -1431,6 +1581,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.
@@ -1451,6 +1603,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.
@@ -1465,6 +1619,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.
@@ -1477,11 +1633,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.
@@ -1491,8 +1650,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 {
@@ -1500,6 +1659,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.
@@ -1510,10 +1671,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.
@@ -1525,10 +1688,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.
@@ -1538,20 +1704,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_ & 0x00000002) != 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_ & 0x00000002) != 0), getParentForChildren(), isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1559,22 +1728,33 @@ 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. */ @@ -1585,28 +1765,44 @@ public Builder setSpeechEventTypeValue(int value) { 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() { - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.forNumber(speechEventType_); - return result == null ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.forNumber( + 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(); } @@ -1616,11 +1812,16 @@ public Builder setSpeechEventType(com.google.cloud.speech.v1.StreamingRecognizeR 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() { @@ -1632,36 +1833,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 ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * 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.
@@ -1683,6 +1897,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.
@@ -1690,8 +1906,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();
       } else {
@@ -1702,6 +1917,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.
@@ -1711,9 +1928,9 @@ public Builder setTotalBilledTime(
      */
     public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       if (totalBilledTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          totalBilledTime_ != null &&
-          totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && totalBilledTime_ != null
+            && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getTotalBilledTimeBuilder().mergeFrom(value);
         } else {
           totalBilledTime_ = value;
@@ -1726,6 +1943,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.
@@ -1744,6 +1963,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.
@@ -1757,6 +1978,8 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() {
       return getTotalBilledTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1768,11 +1991,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.
@@ -1781,14 +2007,17 @@ 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_;
@@ -1796,34 +2025,47 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
 
     private com.google.cloud.speech.v1.SpeechAdaptationInfo speechAdaptationInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_;
+            com.google.cloud.speech.v1.SpeechAdaptationInfo,
+            com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder,
+            com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>
+        speechAdaptationInfoBuilder_;
     /**
+     *
+     *
      * 
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1844,6 +2086,8 @@ public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptati return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1862,17 +2106,21 @@ public Builder setSpeechAdaptationInfo( return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo( + com.google.cloud.speech.v1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - speechAdaptationInfo_ != null && - speechAdaptationInfo_ != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && speechAdaptationInfo_ != null + && speechAdaptationInfo_ + != com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -1885,6 +2133,8 @@ public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1.SpeechAdapta return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1902,33 +2152,42 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder + getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null ? - com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1936,27 +2195,33 @@ public com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptat * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1.SpeechAdaptationInfo, + com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptationInfo, com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), - getParentForChildren(), - isClean()); + speechAdaptationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.SpeechAdaptationInfo, + com.google.cloud.speech.v1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), getParentForChildren(), isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_ ; + private long requestId_; /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; + * * @return The requestId. */ @java.lang.Override @@ -1964,29 +2229,35 @@ public long getRequestId() { return requestId_; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; + * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1995,9 +2266,9 @@ public Builder clearRequestId() { 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); } @@ -2007,12 +2278,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(); } @@ -2021,27 +2292,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2056,6 +2327,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java similarity index 85% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java index d6bf3c6b1c3f..d047556c57ee 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java +++ b/java-speech/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.
@@ -146,24 +194,32 @@ com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResultsOrBuild
   com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** + * + * *
    * Provides information on adaptation behavior in response
    * 
@@ -173,12 +229,15 @@ com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResultsOrBuild com.google.cloud.speech.v1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 10; + * * @return The requestId. */ long getRequestId(); diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java similarity index 67% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java index d06efc0da88b..54abd4a6031d 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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; } @@ -70,24 +91,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
@@ -95,12 +120,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
@@ -108,6 +136,7 @@ public boolean hasGcsUri() {
    * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ public java.lang.String getGcsUri() { @@ -118,8 +147,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; @@ -128,6 +156,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
@@ -135,18 +165,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; } @@ -157,6 +186,7 @@ public java.lang.String getGcsUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +198,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_); } @@ -193,18 +222,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: @@ -234,129 +263,135 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -367,9 +402,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 @@ -388,8 +423,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.TranscriptOutputConfig result = + new com.google.cloud.speech.v1.TranscriptOutputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -408,38 +446,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v1.TranscriptOutputConfi 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; @@ -447,17 +486,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.getUnknownFields()); onChanged(); @@ -485,18 +527,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - outputTypeCase_ = 1; - outputType_ = s; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + outputTypeCase_ = 1; + outputType_ = s; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -506,12 +550,12 @@ public Builder mergeFrom( } // finally 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() { @@ -524,6 +568,8 @@ public Builder clearOutputType() { private int bitField0_; /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -531,6 +577,7 @@ public Builder clearOutputType() {
      * 
* * string gcs_uri = 1; + * * @return Whether the gcsUri field is set. */ @java.lang.Override @@ -538,6 +585,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
@@ -545,6 +594,7 @@ public boolean hasGcsUri() {
      * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ @java.lang.Override @@ -554,8 +604,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; @@ -566,6 +615,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
@@ -573,19 +624,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; } @@ -595,6 +645,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
@@ -602,18 +654,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + 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
@@ -621,6 +677,7 @@ public Builder setGcsUri(
      * 
* * string gcs_uri = 1; + * * @return This builder for chaining. */ public Builder clearGcsUri() { @@ -632,6 +689,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
@@ -639,21 +698,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + 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); } @@ -663,12 +724,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(); } @@ -677,27 +738,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -712,6 +773,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.TranscriptOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java similarity index 63% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java index 5ce9fd8335aa..c5255ae7500d 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java similarity index 69% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java index 45faae6359d4..5ae4e26d20f6 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java @@ -1,55 +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_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; } - 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
@@ -62,7 +82,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -70,6 +93,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
@@ -82,14 +107,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
@@ -102,21 +134,28 @@ 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() { - return customClass_ == null ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() + : customClass_; } 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 @@ -124,11 +163,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 @@ -136,6 +178,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * 
@@ -148,6 +192,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +204,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()); } @@ -177,12 +221,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -192,22 +234,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -234,129 +275,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +422,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 @@ -396,8 +443,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.UpdateCustomClassRequest result = + new com.google.cloud.speech.v1.UpdateCustomClassRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -405,14 +455,11 @@ public com.google.cloud.speech.v1.UpdateCustomClassRequest buildPartial() { private void buildPartial0(com.google.cloud.speech.v1.UpdateCustomClassRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.customClass_ = customClassBuilder_ == null - ? customClass_ - : customClassBuilder_.build(); + result.customClass_ = + customClassBuilder_ == null ? customClass_ : customClassBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -420,38 +467,39 @@ private void buildPartial0(com.google.cloud.speech.v1.UpdateCustomClassRequest r 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; @@ -459,7 +507,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()); } @@ -492,26 +541,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCustomClassFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -521,12 +569,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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
@@ -539,13 +593,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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -558,17 +617,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
@@ -581,7 +647,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) { @@ -597,6 +665,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
@@ -609,10 +679,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(); } else { @@ -623,6 +694,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
@@ -635,13 +708,15 @@ 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 (((bitField0_ & 0x00000001) != 0) && - customClass_ != null && - customClass_ != com.google.cloud.speech.v1.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && customClass_ != null + && customClass_ != com.google.cloud.speech.v1.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -654,6 +729,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
@@ -666,7 +743,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -679,6 +758,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
@@ -691,7 +772,9 @@ 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() { bitField0_ |= 0x00000001; @@ -699,6 +782,8 @@ public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassBuilder() { return getCustomClassFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -711,17 +796,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
@@ -734,17 +824,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_; @@ -752,34 +847,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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.
      * 
@@ -800,14 +908,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(); } else { @@ -818,6 +927,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -826,9 +937,9 @@ public Builder setUpdateMask( */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -841,6 +952,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -858,6 +971,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -870,6 +985,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -880,11 +997,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.
      * 
@@ -892,21 +1012,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); } @@ -916,12 +1039,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(); } @@ -930,27 +1053,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -965,6 +1088,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.UpdateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java index 502a36d4010f..884d296e1688 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java similarity index 69% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java index d17c351c5f38..4cd7329df193 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java @@ -1,55 +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_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; } - 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
@@ -62,7 +82,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -70,6 +93,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
@@ -82,14 +107,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
@@ -102,21 +134,28 @@ 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() { - return phraseSet_ == null ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() + : phraseSet_; } 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 @@ -124,11 +163,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 @@ -136,6 +178,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * 
@@ -148,6 +192,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +204,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()); } @@ -177,12 +221,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -192,22 +234,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -234,129 +275,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +422,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 @@ -396,8 +443,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1.UpdatePhraseSetRequest result = + new com.google.cloud.speech.v1.UpdatePhraseSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -405,14 +455,10 @@ public com.google.cloud.speech.v1.UpdatePhraseSetRequest buildPartial() { private void buildPartial0(com.google.cloud.speech.v1.UpdatePhraseSetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.phraseSet_ = phraseSetBuilder_ == null - ? phraseSet_ - : phraseSetBuilder_.build(); + result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -420,38 +466,39 @@ private void buildPartial0(com.google.cloud.speech.v1.UpdatePhraseSetRequest res 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; @@ -459,7 +506,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()); } @@ -492,26 +540,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getPhraseSetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -521,12 +568,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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
@@ -539,13 +592,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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -558,17 +616,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
@@ -581,7 +646,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) { @@ -597,6 +664,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
@@ -609,10 +678,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(); } else { @@ -623,6 +693,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
@@ -635,13 +707,15 @@ 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 (((bitField0_ & 0x00000001) != 0) && - phraseSet_ != null && - phraseSet_ != com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && phraseSet_ != null + && phraseSet_ != com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -654,6 +728,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
@@ -666,7 +742,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -679,6 +757,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
@@ -691,7 +771,9 @@ 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() { bitField0_ |= 0x00000001; @@ -699,6 +781,8 @@ public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetBuilder() { return getPhraseSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -711,17 +795,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
@@ -734,17 +823,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_; @@ -752,34 +846,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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.
      * 
@@ -800,14 +907,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(); } else { @@ -818,6 +926,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -826,9 +936,9 @@ public Builder setUpdateMask( */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -841,6 +951,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -858,6 +970,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -870,6 +984,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -880,11 +996,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.
      * 
@@ -892,21 +1011,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); } @@ -916,12 +1038,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(); } @@ -930,27 +1052,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -965,6 +1087,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.UpdatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java index 1c70780af975..f4b31a356377 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java similarity index 76% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java index b0d7f6277e06..5faee23db9dc 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java +++ b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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.
@@ -61,6 +82,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -68,6 +90,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.
@@ -78,6 +102,7 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -85,6 +110,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.
@@ -104,6 +131,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.
@@ -114,6 +143,7 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -121,6 +151,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.
@@ -131,6 +163,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -138,6 +171,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.
@@ -155,14 +190,18 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
   }
 
   public static final int WORD_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object word_ = "";
   /**
+   *
+   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The word. */ @java.lang.Override @@ -171,29 +210,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 { @@ -204,6 +243,8 @@ public java.lang.String getWord() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_ = 0F; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -215,6 +256,7 @@ public java.lang.String getWord() {
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -225,6 +267,8 @@ public float getConfidence() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_ = 0; /** + * + * *
    * 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
@@ -234,6 +278,7 @@ public float getConfidence() {
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ @java.lang.Override @@ -242,6 +287,7 @@ public int getSpeakerTag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,8 +299,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()); } @@ -280,23 +325,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -306,7 +347,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); @@ -315,21 +356,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -352,8 +388,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) + getUnknownFields().hashCode(); @@ -361,130 +396,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -506,9 +546,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 @@ -528,7 +568,9 @@ public com.google.cloud.speech.v1.WordInfo build() { @java.lang.Override public com.google.cloud.speech.v1.WordInfo buildPartial() { com.google.cloud.speech.v1.WordInfo result = new com.google.cloud.speech.v1.WordInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -536,14 +578,10 @@ public com.google.cloud.speech.v1.WordInfo buildPartial() { private void buildPartial0(com.google.cloud.speech.v1.WordInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null - ? startTime_ - : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.word_ = word_; @@ -560,38 +598,39 @@ private void buildPartial0(com.google.cloud.speech.v1.WordInfo result) { 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; @@ -643,41 +682,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - word_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 37: { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000008; - break; - } // case 37 - case 40: { - speakerTag_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + word_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 37: + { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + case 40: + { + speakerTag_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -687,12 +728,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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.
@@ -703,12 +750,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -719,6 +769,7 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { @@ -729,6 +780,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.
@@ -754,6 +807,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.
@@ -765,8 +820,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();
       } else {
@@ -777,6 +831,8 @@ public Builder setStartTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -790,9 +846,9 @@ public Builder setStartTime(
      */
     public Builder mergeStartTime(com.google.protobuf.Duration value) {
       if (startTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          startTime_ != null &&
-          startTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && startTime_ != null
+            && startTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getStartTimeBuilder().mergeFrom(value);
         } else {
           startTime_ = value;
@@ -805,6 +861,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.
@@ -827,6 +885,8 @@ public Builder clearStartTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -844,6 +904,8 @@ public com.google.protobuf.Duration.Builder getStartTimeBuilder() {
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -859,11 +921,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.
@@ -876,14 +939,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_;
@@ -891,8 +957,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.
@@ -903,12 +974,15 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -919,6 +993,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { @@ -929,6 +1004,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.
@@ -954,6 +1031,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.
@@ -965,8 +1044,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();
       } else {
@@ -977,6 +1055,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -990,9 +1070,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Duration value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1005,6 +1085,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.
@@ -1027,6 +1109,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1044,6 +1128,8 @@ public com.google.protobuf.Duration.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1059,11 +1145,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.
@@ -1076,14 +1163,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_;
@@ -1091,18 +1181,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; @@ -1111,20 +1203,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 { @@ -1132,28 +1225,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setWord(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } word_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @return This builder for chaining. */ public Builder clearWord() { @@ -1163,17 +1263,21 @@ public Builder clearWord() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setWordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); word_ = value; bitField0_ |= 0x00000004; @@ -1181,8 +1285,10 @@ public Builder setWordBytes( 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
@@ -1194,6 +1300,7 @@ public Builder setWordBytes(
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1201,6 +1308,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
@@ -1212,17 +1321,20 @@ public float getConfidence() {
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000008; 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
@@ -1234,6 +1346,7 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -1243,8 +1356,10 @@ public Builder clearConfidence() { 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
@@ -1254,6 +1369,7 @@ public Builder clearConfidence() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ @java.lang.Override @@ -1261,6 +1377,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
@@ -1270,17 +1388,20 @@ 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; bitField0_ |= 0x00000010; 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
@@ -1290,6 +1411,7 @@ public Builder setSpeakerTag(int value) {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearSpeakerTag() { @@ -1298,9 +1420,9 @@ public Builder clearSpeakerTag() { 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); } @@ -1310,12 +1432,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(); } @@ -1324,27 +1446,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1359,6 +1481,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java b/java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java similarity index 84% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java index f8e889216201..45ed38fc69e3 100644 --- a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java +++ b/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto b/java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto similarity index 100% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto rename to java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto b/java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto similarity index 100% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto rename to java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto diff --git a/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto b/java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto similarity index 100% rename from owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto rename to java-speech/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java index d83a8c206e8f..b1fc669caa25 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource where this custom class will be created.
    * Format:
@@ -64,7 +86,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -73,14 +98,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:
@@ -92,17 +118,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 { @@ -111,9 +138,12 @@ public java.lang.String getParent() { } public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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.
@@ -122,6 +152,7 @@ public java.lang.String getParent() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The customClassId. */ @java.lang.Override @@ -130,14 +161,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.
@@ -146,16 +178,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 { @@ -166,11 +197,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 @@ -178,30 +214,44 @@ 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() { - return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() + : customClass_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -240,8 +289,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -251,21 +299,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -292,129 +338,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -430,9 +483,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 @@ -451,8 +504,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest result = + new com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -466,9 +522,8 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CreateCustomClassRe result.customClassId_ = customClassId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.customClass_ = customClassBuilder_ == null - ? customClass_ - : customClassBuilder_.build(); + result.customClass_ = + customClassBuilder_ == null ? customClass_ : customClassBuilder_.build(); } } @@ -476,38 +531,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CreateCustomClassRe 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; @@ -515,7 +571,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_; bitField0_ |= 0x00000001; @@ -555,29 +612,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - customClassId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getCustomClassFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + customClassId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -587,10 +646,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource where this custom class will be created.
      * Format:
@@ -602,14 +664,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; @@ -618,6 +682,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this custom class will be created.
      * Format:
@@ -629,16 +695,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 { @@ -646,6 +713,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this custom class will be created.
      * Format:
@@ -657,19 +726,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this custom class will be created.
      * Format:
@@ -681,7 +756,10 @@ 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() { @@ -691,6 +769,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource where this custom class will be created.
      * Format:
@@ -702,13 +782,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -718,6 +802,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.
@@ -726,13 +812,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; @@ -741,6 +827,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.
@@ -749,15 +837,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 { @@ -765,6 +852,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,18 +862,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomClassId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } customClassId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -793,6 +886,7 @@ public Builder setCustomClassId(
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCustomClassId() { @@ -802,6 +896,8 @@ public Builder clearCustomClassId() { return this; } /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -810,12 +906,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); customClassId_ = value; bitField0_ |= 0x00000002; @@ -825,39 +923,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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) { @@ -873,11 +990,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) { @@ -891,17 +1012,21 @@ 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 (((bitField0_ & 0x00000004) != 0) && - customClass_ != null && - customClass_ != com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && customClass_ != null + && customClass_ != com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -914,11 +1039,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -931,11 +1060,15 @@ 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() { bitField0_ |= 0x00000004; @@ -943,43 +1076,55 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassBuild 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); } @@ -989,12 +1134,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(); } @@ -1003,27 +1148,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1038,6 +1183,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java index c027e008393a..96fea57ca645 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java +++ b/java-speech/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:
@@ -19,11 +37,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:
@@ -35,13 +58,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.
@@ -50,10 +77,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.
@@ -62,35 +92,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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java index d9be2d584232..78c4494d418b 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource where this phrase set will be created.
    * Format:
@@ -64,7 +86,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -73,14 +98,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:
@@ -92,17 +118,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 { @@ -111,9 +138,12 @@ public java.lang.String getParent() { } public static final int PHRASE_SET_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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.
@@ -122,6 +152,7 @@ public java.lang.String getParent() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The phraseSetId. */ @java.lang.Override @@ -130,14 +161,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.
@@ -146,16 +178,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 { @@ -166,11 +197,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 @@ -178,30 +214,44 @@ 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() { - return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() + : phraseSet_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -240,8 +289,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -251,21 +299,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -292,129 +338,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -430,9 +483,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 @@ -451,8 +504,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -466,9 +522,7 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequ result.phraseSetId_ = phraseSetId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.phraseSet_ = phraseSetBuilder_ == null - ? phraseSet_ - : phraseSetBuilder_.build(); + result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build(); } } @@ -476,38 +530,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequ 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; @@ -515,7 +570,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_; bitField0_ |= 0x00000001; @@ -555,29 +611,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - phraseSetId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getPhraseSetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + phraseSetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -587,10 +645,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource where this phrase set will be created.
      * Format:
@@ -602,14 +663,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; @@ -618,6 +681,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this phrase set will be created.
      * Format:
@@ -629,16 +694,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 { @@ -646,6 +712,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this phrase set will be created.
      * Format:
@@ -657,19 +725,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this phrase set will be created.
      * Format:
@@ -681,7 +755,10 @@ 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() { @@ -691,6 +768,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource where this phrase set will be created.
      * Format:
@@ -702,13 +781,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -718,6 +801,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.
@@ -726,13 +811,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; @@ -741,6 +826,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.
@@ -749,15 +836,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 { @@ -765,6 +851,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,18 +861,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhraseSetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } phraseSetId_ = value; bitField0_ |= 0x00000002; 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.
@@ -793,6 +885,7 @@ public Builder setPhraseSetId(
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPhraseSetId() { @@ -802,6 +895,8 @@ public Builder clearPhraseSetId() { return this; } /** + * + * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -810,12 +905,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); phraseSetId_ = value; bitField0_ |= 0x00000002; @@ -825,39 +922,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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) { @@ -873,11 +989,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) { @@ -891,17 +1011,21 @@ 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 (((bitField0_ & 0x00000004) != 0) && - phraseSet_ != null && - phraseSet_ != com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && phraseSet_ != null + && phraseSet_ != com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -914,11 +1038,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -931,11 +1059,15 @@ 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() { bitField0_ |= 0x00000004; @@ -943,43 +1075,55 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetBuilder() 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); } @@ -989,12 +1133,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(); } @@ -1003,27 +1147,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1038,6 +1182,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java index 0cdb1bc03037..724371c4424c 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java +++ b/java-speech/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:
@@ -19,11 +37,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:
@@ -35,13 +58,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.
@@ -50,10 +77,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.
@@ -62,35 +92,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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java similarity index 72% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java index c788eebef313..d064e986a5a3 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java +++ b/java-speech/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,107 +47,122 @@ 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;
   }
-  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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** + * + * *
      * The class item's value.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -138,29 +171,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 { @@ -169,6 +202,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,8 +214,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_); } @@ -205,15 +238,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,87 +266,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 @@ -323,39 +363,41 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -365,9 +407,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 @@ -386,8 +428,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem result = + new com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -403,38 +448,41 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CustomClass.ClassIt 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; @@ -442,7 +490,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_; bitField0_ |= 0x00000001; @@ -474,17 +523,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -494,22 +545,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -518,20 +572,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 { @@ -539,28 +594,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -570,23 +632,28 @@ public Builder clearValue() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -599,12 +666,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(); } @@ -613,27 +680,28 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,18 +716,21 @@ 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -668,29 +739,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 { @@ -699,15 +770,19 @@ public java.lang.String getName() { } public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -716,30 +791,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 { @@ -748,9 +823,12 @@ public java.lang.String getCustomClassId() { } public static final int ITEMS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List items_; /** + * + * *
    * A collection of class items.
    * 
@@ -762,6 +840,8 @@ public java.util.List g return items_; } /** + * + * *
    * A collection of class items.
    * 
@@ -769,11 +849,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.
    * 
@@ -785,6 +867,8 @@ public int getItemsCount() { return items_.size(); } /** + * + * *
    * A collection of class items.
    * 
@@ -796,6 +880,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int inde return items_.get(index); } /** + * + * *
    * A collection of class items.
    * 
@@ -809,6 +895,7 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItems } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -820,8 +907,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_); } @@ -847,8 +933,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -858,19 +943,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -895,97 +978,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
@@ -994,33 +1084,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1038,9 +1127,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
@@ -1059,9 +1148,12 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1092,38 +1184,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.CustomClass result)
     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;
@@ -1160,9 +1253,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            itemsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getItemsFieldBuilder() : null;
+            itemsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getItemsFieldBuilder()
+                    : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -1194,35 +1288,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              customClassId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.parser(),
-                      extensionRegistry);
-              if (itemsBuilder_ == null) {
-                ensureItemsIsMutable();
-                items_.add(m);
-              } else {
-                itemsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                customClassId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.parser(),
+                        extensionRegistry);
+                if (itemsBuilder_ == null) {
+                  ensureItemsIsMutable();
+                  items_.add(m);
+                } else {
+                  itemsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1232,22 +1330,25 @@ public Builder mergeFrom(
       } // finally
       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; @@ -1256,20 +1357,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 { @@ -1277,28 +1379,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1308,17 +1417,21 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1328,19 +1441,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; @@ -1349,21 +1464,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 { @@ -1371,30 +1487,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomClassId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } customClassId_ = value; bitField0_ |= 0x00000002; 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() { @@ -1404,18 +1527,22 @@ public Builder clearCustomClassId() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); customClassId_ = value; bitField0_ |= 0x00000002; @@ -1424,18 +1551,26 @@ public Builder setCustomClassIdBytes( } private java.util.List items_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - items_ = new java.util.ArrayList(items_); + items_ = + new java.util.ArrayList( + items_); bitField0_ |= 0x00000004; - } + } } 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.
      * 
@@ -1450,6 +1585,8 @@ public java.util.List g } } /** + * + * *
      * A collection of class items.
      * 
@@ -1464,6 +1601,8 @@ public int getItemsCount() { } } /** + * + * *
      * A collection of class items.
      * 
@@ -1478,6 +1617,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int inde } } /** + * + * *
      * A collection of class items.
      * 
@@ -1499,6 +1640,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1506,7 +1649,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()); @@ -1517,6 +1661,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1537,6 +1683,8 @@ public Builder addItems(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1558,6 +1706,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1576,6 +1726,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1583,7 +1735,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()); @@ -1594,6 +1747,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1601,11 +1756,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); @@ -1613,6 +1768,8 @@ public Builder addAllItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1630,6 +1787,8 @@ public Builder clearItems() { return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1647,6 +1806,8 @@ public Builder removeItems(int index) { return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1658,6 +1819,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder getItemsB return getItemsFieldBuilder().getBuilder(index); } /** + * + * *
      * A collection of class items.
      * 
@@ -1667,19 +1830,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 { @@ -1687,6 +1854,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItems } } /** + * + * *
      * A collection of class items.
      * 
@@ -1694,10 +1863,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.
      * 
@@ -1706,37 +1877,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_ & 0x00000004) != 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_ & 0x00000004) != 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); } @@ -1746,12 +1923,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(); } @@ -1760,27 +1937,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1795,6 +1972,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java index 5a2383a9cef5..49436233656b 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java index bbb366cf504b..3b6a7835efad 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java @@ -1,57 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -62,7 +84,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -71,14 +96,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}`
@@ -89,17 +115,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 { @@ -108,6 +135,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -119,8 +147,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_); } @@ -144,15 +171,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,129 +199,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -304,9 +338,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 @@ -325,8 +359,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest result = + new com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -342,38 +379,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRe 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; @@ -381,7 +419,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_; bitField0_ |= 0x00000001; @@ -413,17 +452,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -433,10 +474,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -447,14 +491,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; @@ -463,6 +509,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -473,16 +521,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 { @@ -490,6 +539,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -500,19 +551,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -523,7 +580,10 @@ 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() { @@ -533,6 +593,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -543,22 +605,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -568,12 +634,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(); } @@ -582,27 +648,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -617,6 +683,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java index 477f46c0e2f8..21121096eb41 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java similarity index 64% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java index 07d9ddf94c18..b87312b547f8 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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; + @SuppressWarnings("serial") 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 @@ -66,30 +91,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 { @@ -98,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +137,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_); } @@ -134,15 +161,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,129 +189,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,9 +328,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 @@ -315,8 +349,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -332,38 +369,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequ 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; @@ -371,7 +409,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_; bitField0_ |= 0x00000001; @@ -403,17 +442,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,23 +464,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -448,21 +494,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 { @@ -470,30 +519,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -503,27 +563,33 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -533,12 +599,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(); } @@ -547,27 +613,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -582,6 +648,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java new file mode 100644 index 000000000000..f6228f5daa9a --- /dev/null +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java similarity index 63% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java index 4ed77d987ed1..89016327b398 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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; + @SuppressWarnings("serial") 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 @@ -66,30 +91,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 { @@ -98,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +137,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_); } @@ -134,15 +161,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,129 +189,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,9 +328,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 @@ -315,8 +349,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest result = + new com.google.cloud.speech.v1p1beta1.GetCustomClassRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -332,38 +369,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.GetCustomClassReque 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; @@ -371,7 +409,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_; bitField0_ |= 0x00000001; @@ -403,17 +442,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,23 +464,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -448,21 +494,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 { @@ -470,30 +519,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -503,27 +563,33 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -533,12 +599,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(); } @@ -547,27 +613,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -582,6 +648,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java new file mode 100644 index 000000000000..05350941a005 --- /dev/null +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java index c5510a21f889..ec9e420513d6 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java @@ -1,57 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -62,7 +84,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -71,14 +96,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}`
@@ -89,17 +115,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 { @@ -108,6 +135,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -119,8 +147,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_); } @@ -144,15 +171,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,129 +199,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -304,9 +338,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 @@ -325,8 +359,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -342,38 +379,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest 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; @@ -381,7 +419,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_; bitField0_ |= 0x00000001; @@ -413,17 +452,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -433,10 +474,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -447,14 +491,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; @@ -463,6 +509,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -473,16 +521,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 { @@ -490,6 +539,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -500,19 +551,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -523,7 +580,10 @@ 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() { @@ -533,6 +593,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -543,22 +605,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -568,12 +634,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(); } @@ -582,27 +648,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -617,6 +683,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java index b5ad6ae0036f..fb9fa55ec399 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java similarity index 71% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java index 0cec901e8359..b866c124f727 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -63,7 +85,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -72,14 +97,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`
@@ -90,17 +116,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 { @@ -111,6 +138,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * 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
@@ -119,6 +148,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -127,9 +157,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -138,6 +171,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -146,14 +180,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.
@@ -162,16 +197,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 { @@ -180,6 +214,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +226,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_); } @@ -215,8 +249,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_); @@ -229,19 +262,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,129 +296,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -399,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_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 @@ -420,8 +458,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest result = + new com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -443,38 +484,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.ListCustomClassesRe 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; @@ -482,7 +524,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_; bitField0_ |= 0x00000001; @@ -522,27 +565,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -552,10 +599,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -566,14 +616,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; @@ -582,6 +634,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -592,16 +646,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 { @@ -609,6 +664,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -619,19 +676,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -642,7 +705,10 @@ 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() { @@ -652,6 +718,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -662,13 +730,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -676,8 +748,10 @@ public Builder setParentBytes( 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
@@ -686,6 +760,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -693,6 +768,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
@@ -701,17 +778,20 @@ 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; bitField0_ |= 0x00000002; 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
@@ -720,6 +800,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -731,6 +812,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.
@@ -739,13 +822,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; @@ -754,6 +837,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -762,15 +847,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 { @@ -778,6 +862,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -786,18 +872,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -806,6 +896,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -815,6 +906,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -823,21 +916,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -847,12 +942,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(); } @@ -861,27 +956,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +991,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java index e83c2e601a5a..de9020900455 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java similarity index 73% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java index 9cd1b9a7e0cd..76b2fb87583a 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private java.util.List customClasses_; /** + * + * *
    * The custom classes.
    * 
@@ -64,6 +86,8 @@ public java.util.List getCustomCl return customClasses_; } /** + * + * *
    * The custom classes.
    * 
@@ -71,11 +95,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.
    * 
@@ -87,6 +113,8 @@ public int getCustomClassesCount() { return customClasses_.size(); } /** + * + * *
    * The custom classes.
    * 
@@ -98,6 +126,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index) return customClasses_.get(index); } /** + * + * *
    * The custom classes.
    * 
@@ -111,15 +141,19 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -128,30 +162,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 { @@ -160,6 +194,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +206,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)); } @@ -189,8 +223,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_); @@ -203,17 +236,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,129 +269,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +415,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 @@ -397,14 +436,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse result) { if (customClassesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { customClasses_ = java.util.Collections.unmodifiableList(customClasses_); @@ -427,38 +470,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.ListCustomClassesRe 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; @@ -466,7 +510,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()) { @@ -485,9 +530,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_); } @@ -524,30 +570,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1p1beta1.CustomClass m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.CustomClass.parser(), - extensionRegistry); - if (customClassesBuilder_ == null) { - ensureCustomClassesIsMutable(); - customClasses_.add(m); - } else { - customClassesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.speech.v1p1beta1.CustomClass m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); + if (customClassesBuilder_ == null) { + ensureCustomClassesIsMutable(); + customClasses_.add(m); + } else { + customClassesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,21 +605,29 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -586,6 +642,8 @@ public java.util.List getCustomCl } } /** + * + * *
      * The custom classes.
      * 
@@ -600,6 +658,8 @@ public int getCustomClassesCount() { } } /** + * + * *
      * The custom classes.
      * 
@@ -614,6 +674,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index) } } /** + * + * *
      * The custom classes.
      * 
@@ -635,6 +697,8 @@ public Builder setCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -653,6 +717,8 @@ public Builder setCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -673,6 +739,8 @@ public Builder addCustomClasses(com.google.cloud.speech.v1p1beta1.CustomClass va return this; } /** + * + * *
      * The custom classes.
      * 
@@ -694,6 +762,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -712,6 +782,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -730,6 +802,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -740,8 +814,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); @@ -749,6 +822,8 @@ public Builder addAllCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -766,6 +841,8 @@ public Builder clearCustomClasses() { return this; } /** + * + * *
      * The custom classes.
      * 
@@ -783,6 +860,8 @@ public Builder removeCustomClasses(int index) { return this; } /** + * + * *
      * The custom classes.
      * 
@@ -794,6 +873,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassesBui return getCustomClassesFieldBuilder().getBuilder(index); } /** + * + * *
      * The custom classes.
      * 
@@ -803,19 +884,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 { @@ -823,6 +907,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr } } /** + * + * *
      * The custom classes.
      * 
@@ -830,10 +916,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.
      * 
@@ -842,26 +930,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(), @@ -873,19 +969,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; @@ -894,21 +992,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 { @@ -916,30 +1015,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -949,27 +1055,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -979,12 +1089,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(); } @@ -993,27 +1103,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1028,6 +1138,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java index bb845e9819e6..ba426471df4a 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java similarity index 71% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java index 79bf9654d1e9..ec356159bcab 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -63,7 +85,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -72,14 +97,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}`
@@ -90,17 +116,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 { @@ -111,6 +138,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * 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
@@ -119,6 +148,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -127,9 +157,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -138,6 +171,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -146,14 +180,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.
@@ -162,16 +197,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 { @@ -180,6 +214,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +226,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_); } @@ -215,8 +249,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_); @@ -229,19 +262,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,129 +296,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -399,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_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 @@ -420,8 +458,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -443,38 +484,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.ListPhraseSetReques 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; @@ -482,7 +524,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_; bitField0_ |= 0x00000001; @@ -522,27 +565,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -552,10 +599,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -566,14 +616,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; @@ -582,6 +634,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -592,16 +646,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 { @@ -609,6 +664,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -619,19 +676,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -642,7 +705,10 @@ 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() { @@ -652,6 +718,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -662,13 +730,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -676,8 +748,10 @@ public Builder setParentBytes( 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
@@ -686,6 +760,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -693,6 +768,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
@@ -701,17 +778,20 @@ 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; bitField0_ |= 0x00000002; 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
@@ -720,6 +800,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -731,6 +812,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.
@@ -739,13 +822,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; @@ -754,6 +837,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -762,15 +847,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 { @@ -778,6 +862,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -786,18 +872,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -806,6 +896,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -815,6 +906,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -823,21 +916,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -847,12 +942,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(); } @@ -861,27 +956,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +991,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java index 1f93fa365224..51f5352582e1 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java similarity index 71% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java index 0450e2136200..93c06391bea1 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") private java.util.List phraseSets_; /** + * + * *
    * The phrase set.
    * 
@@ -64,6 +86,8 @@ public java.util.List getPhraseSets return phraseSets_; } /** + * + * *
    * The phrase set.
    * 
@@ -71,11 +95,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.
    * 
@@ -87,6 +113,8 @@ public int getPhraseSetsCount() { return phraseSets_.size(); } /** + * + * *
    * The phrase set.
    * 
@@ -98,6 +126,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** + * + * *
    * The phrase set.
    * 
@@ -105,21 +135,24 @@ 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; + @SuppressWarnings("serial") 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 @@ -128,30 +161,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 { @@ -160,6 +193,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +205,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)); } @@ -189,8 +222,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_); @@ -203,17 +235,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -237,129 +268,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +414,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 @@ -397,14 +435,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse result) { if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -427,38 +469,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.ListPhraseSetRespon 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; @@ -466,7 +509,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()) { @@ -485,9 +529,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_); } @@ -524,30 +569,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1p1beta1.PhraseSet m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), - extensionRegistry); - if (phraseSetsBuilder_ == null) { - ensurePhraseSetsIsMutable(); - phraseSets_.add(m); - } else { - phraseSetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.speech.v1p1beta1.PhraseSet m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); + if (phraseSetsBuilder_ == null) { + ensurePhraseSetsIsMutable(); + phraseSets_.add(m); + } else { + phraseSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,21 +604,29 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -586,6 +641,8 @@ public java.util.List getPhraseSets } } /** + * + * *
      * The phrase set.
      * 
@@ -600,6 +657,8 @@ public int getPhraseSetsCount() { } } /** + * + * *
      * The phrase set.
      * 
@@ -614,14 +673,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(); @@ -635,6 +695,8 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -653,6 +715,8 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -673,14 +737,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(); @@ -694,6 +759,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -712,6 +779,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -730,6 +799,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -740,8 +811,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); @@ -749,6 +819,8 @@ public Builder addAllPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -766,6 +838,8 @@ public Builder clearPhraseSets() { return this; } /** + * + * *
      * The phrase set.
      * 
@@ -783,39 +857,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 { @@ -823,6 +902,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuild } } /** + * + * *
      * The phrase set.
      * 
@@ -830,42 +911,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_; @@ -873,19 +960,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; @@ -894,21 +983,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 { @@ -916,30 +1006,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -949,27 +1046,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -979,12 +1080,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(); } @@ -993,27 +1094,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1028,6 +1129,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java index 7a24d1b77dc3..319d29f4fab5 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java similarity index 66% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java index a8bf3abc718e..67f5dbc14799 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java +++ b/java-speech/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,53 +29,58 @@
  *
  * 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;
   }
-  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_ = 0;
   /**
+   *
+   *
    * 
    * 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 @@ -69,11 +91,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 @@ -81,11 +106,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 @@ -93,6 +121,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Time when the request was received.
    * 
@@ -107,11 +137,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 @@ -119,18 +152,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.
    * 
@@ -139,19 +179,25 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } public static final int URI_FIELD_NUMBER = 4; + @SuppressWarnings("serial") 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 @@ -160,30 +206,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 { @@ -194,11 +240,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 @@ -206,30 +257,45 @@ 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() { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -241,8 +307,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_); } @@ -268,23 +333,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -294,31 +355,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -353,96 +410,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
@@ -451,33 +516,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -503,13 +567,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();
     }
 
@@ -524,34 +589,34 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result =
+          new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result) {
+    private void buildPartial0(
+        com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.progressPercent_ = progressPercent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null
-            ? startTime_
-            : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.lastUpdateTime_ = lastUpdateTimeBuilder_ == null
-            ? lastUpdateTime_
-            : lastUpdateTimeBuilder_.build();
+        result.lastUpdateTime_ =
+            lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.uri_ = uri_;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.outputConfig_ = outputConfigBuilder_ == null
-            ? outputConfig_
-            : outputConfigBuilder_.build();
+        result.outputConfig_ =
+            outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
       }
     }
 
@@ -559,38 +624,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.LongRunningRecogniz
     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;
@@ -598,7 +664,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());
       }
@@ -642,43 +710,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              progressPercent_ = input.readInt32();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              input.readMessage(
-                  getStartTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getLastUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              uri_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getOutputConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                progressPercent_ = input.readInt32();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                uri_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -688,16 +756,20 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    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 @@ -705,29 +777,35 @@ 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; bitField0_ |= 0x00000001; 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() { @@ -739,24 +817,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -767,6 +854,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Time when the request was received.
      * 
@@ -787,14 +876,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(); } else { @@ -805,6 +895,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -813,9 +905,9 @@ public Builder setStartTime( */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -828,6 +920,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -845,6 +939,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -857,6 +953,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the request was received.
      * 
@@ -867,11 +965,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.
      * 
@@ -879,14 +978,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_; @@ -894,34 +996,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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.
      * 
@@ -942,14 +1057,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(); } else { @@ -960,6 +1076,8 @@ public Builder setLastUpdateTime( return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -968,9 +1086,9 @@ public Builder setLastUpdateTime( */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - lastUpdateTime_ != null && - lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && lastUpdateTime_ != null + && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; @@ -983,6 +1101,8 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -1000,6 +1120,8 @@ public Builder clearLastUpdateTime() { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -1012,6 +1134,8 @@ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { return getLastUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -1022,11 +1146,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.
      * 
@@ -1034,14 +1161,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_; @@ -1049,19 +1179,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; @@ -1070,21 +1202,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 { @@ -1092,30 +1225,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uri_ = value; bitField0_ |= 0x00000008; 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() { @@ -1125,18 +1265,22 @@ public Builder clearUri() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000008; @@ -1146,39 +1290,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 ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * 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) { @@ -1194,11 +1357,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) { @@ -1212,17 +1379,23 @@ 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 (((bitField0_ & 0x00000010) != 0) && - outputConfig_ != null && - outputConfig_ != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -1235,11 +1408,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() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1252,55 +1429,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() { bitField0_ |= 0x00000010; 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); } @@ -1310,41 +1505,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1356,9 +1553,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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java index 2e4b54cbc0f0..0016ab958fc5 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java similarity index 58% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java index 248cb8f11897..0ec03b1087c8 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java +++ b/java-speech/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,52 +28,58 @@
  *
  * 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;
   }
-  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 @@ -64,39 +87,57 @@ 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() { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } 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 @@ -104,37 +145,55 @@ 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() { - return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } 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 @@ -142,30 +201,45 @@ 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() { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +251,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()); } @@ -198,16 +271,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -217,27 +287,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -268,96 +336,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.
@@ -365,33 +441,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -415,13 +490,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();
     }
 
@@ -436,28 +512,27 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result =
+          new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result) {
+    private void buildPartial0(
+        com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.config_ = configBuilder_ == null
-            ? config_
-            : configBuilder_.build();
+        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.audio_ = audioBuilder_ == null
-            ? audio_
-            : audioBuilder_.build();
+        result.audio_ = audioBuilder_ == null ? audio_ : audioBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.outputConfig_ = outputConfigBuilder_ == null
-            ? outputConfig_
-            : outputConfigBuilder_.build();
+        result.outputConfig_ =
+            outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
       }
     }
 
@@ -465,38 +540,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.LongRunningRecogniz
     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;
@@ -504,7 +580,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());
       }
@@ -540,33 +618,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getAudioFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 34: {
-              input.readMessage(
-                  getOutputConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getAudioFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 34:
+              {
+                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -576,46 +652,66 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * 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) { @@ -631,12 +727,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) { @@ -650,18 +750,23 @@ 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 (((bitField0_ & 0x00000001) != 0) && - config_ != null && - config_ != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && config_ != null + && config_ + != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -674,12 +779,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -692,12 +801,16 @@ 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() { bitField0_ |= 0x00000001; @@ -705,38 +818,50 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuil 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_; @@ -744,39 +869,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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) { @@ -792,11 +936,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) { @@ -810,17 +958,21 @@ 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 (((bitField0_ & 0x00000002) != 0) && - audio_ != null && - audio_ != com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && audio_ != null + && audio_ != com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance()) { getAudioBuilder().mergeFrom(value); } else { audio_ = value; @@ -833,11 +985,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -850,11 +1006,15 @@ 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() { bitField0_ |= 0x00000002; @@ -862,36 +1022,48 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder getAudioBuilde 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_; @@ -899,39 +1071,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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) { @@ -947,11 +1138,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) { @@ -965,17 +1160,23 @@ 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 (((bitField0_ & 0x00000004) != 0) && - outputConfig_ != null && - outputConfig_ != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -988,11 +1189,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1005,55 +1210,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() { bitField0_ |= 0x00000004; 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); } @@ -1063,12 +1286,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(); } @@ -1077,27 +1301,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1112,6 +1336,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java index 5a5a7bb3a28f..02d21f70fe28 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java similarity index 72% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java index f91bf577e9df..2af036458d8c 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java +++ b/java-speech/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,48 +31,53 @@
  *
  * 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;
   }
-  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;
+
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -64,10 +86,13 @@ protected java.lang.Object newInstance(
    * 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.
@@ -76,11 +101,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.
@@ -93,6 +121,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -105,6 +135,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.
@@ -121,11 +153,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 @@ -133,18 +168,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.
    * 
@@ -153,17 +195,22 @@ public com.google.protobuf.Duration getTotalBilledTime() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } 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 @@ -171,18 +218,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.
    * 
@@ -190,18 +244,24 @@ 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() { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } 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 @@ -209,11 +269,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 @@ -221,6 +284,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.
    * 
@@ -235,11 +300,14 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 8; private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_; /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -247,18 +315,25 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
@@ -266,19 +341,25 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptatio * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 9; private long requestId_ = 0L; /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 9; + * * @return The requestId. */ @java.lang.Override @@ -287,6 +368,7 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -298,8 +380,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)); } @@ -328,28 +409,23 @@ 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()); } if (speechAdaptationInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSpeechAdaptationInfo()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, requestId_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -359,37 +435,32 @@ 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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo() - .equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() - != other.getRequestId()) return false; + if (getRequestId() != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -422,104 +493,111 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } 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`
@@ -530,33 +608,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -593,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_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();
     }
 
@@ -614,14 +692,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -633,27 +715,26 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.LongRu
       }
     }
 
-    private void buildPartial0(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result) {
+    private void buildPartial0(
+        com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
-            ? totalBilledTime_
-            : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ =
+            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.outputConfig_ = outputConfigBuilder_ == null
-            ? outputConfig_
-            : outputConfigBuilder_.build();
+        result.outputConfig_ =
+            outputConfigBuilder_ == null ? outputConfig_ : outputConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.outputError_ = outputErrorBuilder_ == null
-            ? outputError_
-            : outputErrorBuilder_.build();
+        result.outputError_ =
+            outputErrorBuilder_ == null ? outputError_ : outputErrorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
-            ? speechAdaptationInfo_
-            : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ =
+            speechAdaptationInfoBuilder_ == null
+                ? speechAdaptationInfo_
+                : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.requestId_ = requestId_;
@@ -664,38 +745,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.LongRunningRecogniz
     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;
@@ -703,7 +785,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()) {
@@ -722,9 +806,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_);
           }
@@ -771,58 +856,58 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18: {
-              com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
-                      extensionRegistry);
-              if (resultsBuilder_ == null) {
-                ensureResultsIsMutable();
-                results_.add(m);
-              } else {
-                resultsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getTotalBilledTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 26
-            case 50: {
-              input.readMessage(
-                  getOutputConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getOutputErrorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 66
-            case 72: {
-              requestId_ = input.readInt64();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 72
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 18:
+              {
+                com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
+                        extensionRegistry);
+                if (resultsBuilder_ == null) {
+                  ensureResultsIsMutable();
+                  results_.add(m);
+                } else {
+                  resultsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+            case 50:
+              {
+                input.readMessage(getOutputConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getOutputErrorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(
+                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 66
+            case 72:
+              {
+                requestId_ = input.readInt64();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 72
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -832,21 +917,30 @@ public Builder mergeFrom(
       } // finally
       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.
@@ -854,7 +948,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 {
@@ -862,6 +957,8 @@ public java.util.List
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -877,6 +974,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -892,6 +991,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -914,6 +1015,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -922,7 +1025,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());
@@ -933,6 +1037,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -954,6 +1060,8 @@ public Builder addResults(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRes
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -976,6 +1084,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -995,6 +1105,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1003,7 +1115,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());
@@ -1014,6 +1127,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1022,11 +1137,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);
@@ -1034,6 +1149,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1052,6 +1169,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1070,6 +1189,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1082,6 +1203,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.
@@ -1092,11 +1215,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.
@@ -1104,8 +1230,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 {
@@ -1113,6 +1240,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1121,10 +1250,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.
@@ -1134,10 +1266,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.
@@ -1145,20 +1281,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_;
@@ -1166,34 +1305,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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.
      * 
@@ -1214,14 +1366,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(); } else { @@ -1232,6 +1385,8 @@ public Builder setTotalBilledTime( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1240,9 +1395,9 @@ public Builder setTotalBilledTime( */ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - totalBilledTime_ != null && - totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && totalBilledTime_ != null + && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getTotalBilledTimeBuilder().mergeFrom(value); } else { totalBilledTime_ = value; @@ -1255,6 +1410,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1272,6 +1429,8 @@ public Builder clearTotalBilledTime() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1284,6 +1443,8 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { return getTotalBilledTimeFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1294,11 +1455,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.
      * 
@@ -1306,14 +1470,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_; @@ -1321,34 +1488,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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.
      * 
@@ -1369,6 +1549,8 @@ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutpu return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1387,17 +1569,21 @@ 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 (((bitField0_ & 0x00000004) != 0) && - outputConfig_ != null && - outputConfig_ != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && outputConfig_ != null + && outputConfig_ + != com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) { getOutputConfigBuilder().mergeFrom(value); } else { outputConfig_ = value; @@ -1410,6 +1596,8 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOut return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1427,33 +1615,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() { bitField0_ |= 0x00000004; 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.
      * 
@@ -1461,14 +1658,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_; @@ -1476,24 +1676,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 ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * 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() { @@ -1504,6 +1711,8 @@ public com.google.rpc.Status getOutputError() { } } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1524,14 +1733,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(); } else { @@ -1542,6 +1752,8 @@ public Builder setOutputError( return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1550,9 +1762,9 @@ public Builder setOutputError( */ public Builder mergeOutputError(com.google.rpc.Status value) { if (outputErrorBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - outputError_ != null && - outputError_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && outputError_ != null + && outputError_ != com.google.rpc.Status.getDefaultInstance()) { getOutputErrorBuilder().mergeFrom(value); } else { outputError_ = value; @@ -1565,6 +1777,8 @@ public Builder mergeOutputError(com.google.rpc.Status value) { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1582,6 +1796,8 @@ public Builder clearOutputError() { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1594,6 +1810,8 @@ public com.google.rpc.Status.Builder getOutputErrorBuilder() { return getOutputErrorFieldBuilder().getBuilder(); } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1604,11 +1822,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.
      * 
@@ -1616,14 +1835,15 @@ 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_; @@ -1631,41 +1851,55 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_; + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> + speechAdaptationInfoBuilder_; /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder setSpeechAdaptationInfo( + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1679,6 +1913,8 @@ public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechA return this; } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1697,17 +1933,21 @@ public Builder setSpeechAdaptationInfo( return this; } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo( + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - speechAdaptationInfo_ != null && - speechAdaptationInfo_ != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && speechAdaptationInfo_ != null + && speechAdaptationInfo_ + != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -1720,6 +1960,8 @@ public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.Speec return this; } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1737,33 +1979,42 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder + getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null ? - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } } /** + * + * *
      * Provides information on speech adaptation behavior in response
      * 
@@ -1771,27 +2022,33 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeech * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), - getParentForChildren(), - isClean()); + speechAdaptationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), getParentForChildren(), isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_ ; + private long requestId_; /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; + * * @return The requestId. */ @java.lang.Override @@ -1799,29 +2056,35 @@ public long getRequestId() { return requestId_; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; + * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 9; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1830,9 +2093,9 @@ public Builder clearRequestId() { 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); } @@ -1842,41 +2105,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1888,9 +2153,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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java similarity index 83% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java index 76046b9abd9a..62b75e4f97ee 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java +++ b/java-speech/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.
    * 
@@ -138,39 +186,51 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrB com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder(); /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; + * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** + * + * *
    * Provides information on speech adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8; */ - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder(); /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 9; + * * @return The requestId. */ long getRequestId(); diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java similarity index 76% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java index b16b287a089e..5abc2dbde6ed 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java +++ b/java-speech/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,54 +45,63 @@ 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;
   }
-  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
@@ -88,11 +115,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
@@ -121,53 +151,59 @@ 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;
     }
-    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;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object value_ = "";
     /**
+     *
+     *
      * 
      * The phrase itself.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -176,29 +212,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 { @@ -209,6 +245,8 @@ public java.lang.String getValue() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_ = 0F; /** + * + * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -222,6 +260,7 @@ public java.lang.String getValue() {
      * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -230,6 +269,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -241,8 +281,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_); } @@ -262,8 +301,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -273,18 +311,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -299,95 +336,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) + getUnknownFields().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 @@ -397,6 +439,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
@@ -425,33 +469,33 @@ 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()
-      private Builder() {
+      private Builder() {}
 
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -462,9 +506,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
@@ -483,8 +527,11 @@ 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);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase result =
+            new com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -503,38 +550,41 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase re
       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;
@@ -542,7 +592,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_;
           bitField0_ |= 0x00000001;
@@ -577,22 +628,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                value_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 21: {
-                boost_ = input.readFloat();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 21
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  value_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 21:
+                {
+                  boost_ = input.readFloat();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 21
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -602,22 +656,25 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       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; @@ -626,20 +683,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 { @@ -647,28 +705,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -678,17 +743,21 @@ public Builder clearValue() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; @@ -696,8 +765,10 @@ public Builder setValueBytes( 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
@@ -711,6 +782,7 @@ public Builder setValueBytes(
        * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -718,6 +790,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
@@ -731,17 +805,20 @@ public float getBoost() {
        * 
* * float boost = 2; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000002; 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
@@ -755,6 +832,7 @@ public Builder setBoost(float value) {
        * 
* * float boost = 2; + * * @return This builder for chaining. */ public Builder clearBoost() { @@ -763,6 +841,7 @@ public Builder clearBoost() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -775,12 +854,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(); } @@ -789,27 +868,28 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -824,18 +904,21 @@ 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -844,29 +927,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 { @@ -875,9 +958,12 @@ public java.lang.String getName() { } public static final int PHRASES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List phrases_; /** + * + * *
    * A list of word and phrases.
    * 
@@ -889,6 +975,8 @@ public java.util.List getPhr return phrases_; } /** + * + * *
    * A list of word and phrases.
    * 
@@ -896,11 +984,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.
    * 
@@ -912,6 +1002,8 @@ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -923,6 +1015,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getPhrases(int index) return phrases_.get(index); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -938,6 +1032,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB public static final int BOOST_FIELD_NUMBER = 4; private float boost_ = 0F; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -951,6 +1047,7 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -959,6 +1056,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -970,8 +1068,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_); } @@ -994,12 +1091,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1009,20 +1104,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1041,104 +1134,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) + getUnknownFields().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.
@@ -1146,33 +1245,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1190,9 +1288,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
@@ -1211,9 +1309,12 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1244,38 +1345,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.PhraseSet result) {
     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;
@@ -1307,9 +1409,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            phrasesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPhrasesFieldBuilder() : null;
+            phrasesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPhrasesFieldBuilder()
+                    : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -1344,35 +1447,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.parser(),
-                      extensionRegistry);
-              if (phrasesBuilder_ == null) {
-                ensurePhrasesIsMutable();
-                phrases_.add(m);
-              } else {
-                phrasesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            case 37: {
-              boost_ = input.readFloat();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 37
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.parser(),
+                        extensionRegistry);
+                if (phrasesBuilder_ == null) {
+                  ensurePhrasesIsMutable();
+                  phrases_.add(m);
+                } else {
+                  phrasesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            case 37:
+              {
+                boost_ = input.readFloat();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 37
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1382,22 +1489,25 @@ public Builder mergeFrom(
       } // finally
       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; @@ -1406,20 +1516,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 { @@ -1427,28 +1538,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1458,17 +1576,21 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1477,18 +1599,25 @@ public Builder setNameBytes( } private java.util.List phrases_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - phrases_ = new java.util.ArrayList(phrases_); + phrases_ = + new java.util.ArrayList(phrases_); bitField0_ |= 0x00000002; - } + } } 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.
      * 
@@ -1503,6 +1632,8 @@ public java.util.List getPhr } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1517,6 +1648,8 @@ public int getPhrasesCount() { } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1531,14 +1664,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(); @@ -1552,6 +1686,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1570,6 +1706,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1590,14 +1728,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(); @@ -1611,6 +1750,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1629,6 +1770,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1647,6 +1790,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1657,8 +1802,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); @@ -1666,6 +1810,8 @@ public Builder addAllPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1683,6 +1829,8 @@ public Builder clearPhrases() { return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1700,17 +1848,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.
      * 
@@ -1720,19 +1871,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 { @@ -1740,6 +1894,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1747,49 +1903,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_ & 0x00000002) != 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_ & 0x00000002) != 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
@@ -1803,6 +1968,7 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuil
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -1810,6 +1976,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
@@ -1823,17 +1991,20 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000004; 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
@@ -1847,6 +2018,7 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { @@ -1855,9 +2027,9 @@ public Builder clearBoost() { 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); } @@ -1867,12 +2039,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(); } @@ -1881,27 +2053,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1916,6 +2088,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java similarity index 74% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java index a61fb229f984..91b548072ad2 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java similarity index 73% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java index 817d05c5e700..651bcd221d10 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java +++ b/java-speech/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,52 +30,56 @@
  *
  * 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;
   }
-  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;
     }
@@ -74,25 +95,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
@@ -100,6 +126,7 @@ public int getNumber() {
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ @java.lang.Override @@ -107,6 +134,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
@@ -114,6 +143,7 @@ public boolean hasContent() {
    * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -126,6 +156,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).
@@ -137,12 +169,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).
@@ -154,6 +189,7 @@ public boolean hasUri() {
    * 
* * string uri = 2; + * * @return The uri. */ public java.lang.String getUri() { @@ -164,8 +200,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; @@ -174,6 +209,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).
@@ -185,18 +222,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; } @@ -207,6 +243,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,11 +255,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_); @@ -237,9 +272,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_); @@ -252,22 +287,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: @@ -301,96 +335,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
@@ -400,33 +441,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -437,9 +477,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
@@ -458,8 +498,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v1p1beta1.RecognitionAudio result =
+          new com.google.cloud.speech.v1p1beta1.RecognitionAudio(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -478,38 +521,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v1p1beta1.RecognitionAud
     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;
@@ -517,21 +561,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.getUnknownFields());
       onChanged();
@@ -559,23 +607,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              audioSource_ = input.readBytes();
-              audioSourceCase_ = 1;
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              audioSourceCase_ = 2;
-              audioSource_ = s;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                audioSource_ = input.readBytes();
+                audioSourceCase_ = 1;
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                audioSourceCase_ = 2;
+                audioSource_ = s;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -585,12 +636,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -603,6 +654,8 @@ public Builder clearAudioSource() {
     private int bitField0_;
 
     /**
+     *
+     *
      * 
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -610,12 +663,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
@@ -623,6 +679,7 @@ public boolean hasContent() {
      * 
* * bytes content = 1; + * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -632,6 +689,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
@@ -639,17 +698,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(); } + if (value == null) { + 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
@@ -657,6 +721,7 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -669,6 +734,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).
@@ -680,6 +747,7 @@ public Builder clearContent() {
      * 
* * string uri = 2; + * * @return Whether the uri field is set. */ @java.lang.Override @@ -687,6 +755,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).
@@ -698,6 +768,7 @@ public boolean hasUri() {
      * 
* * string uri = 2; + * * @return The uri. */ @java.lang.Override @@ -707,8 +778,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; @@ -719,6 +789,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).
@@ -730,19 +802,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; } @@ -752,6 +823,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).
@@ -763,18 +836,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUri(java.lang.String value) { + if (value == null) { + 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).
@@ -786,6 +863,7 @@ public Builder setUri(
      * 
* * string uri = 2; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -797,6 +875,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).
@@ -808,21 +888,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + 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); } @@ -832,12 +914,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(); } @@ -846,27 +928,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -881,6 +963,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionAudio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java similarity index 79% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java index 6127a94e206c..37850c3d9f62 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java similarity index 82% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java index 8f11f30e7c05..88f75ac38043 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java +++ b/java-speech/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,30 +48,33 @@ 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;
   }
-  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
@@ -79,9 +100,10 @@ protected java.lang.Object newInstance(
    *
    * 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.
      * 
@@ -90,6 +112,8 @@ public enum AudioEncoding */ ENCODING_UNSPECIFIED(0), /** + * + * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -98,6 +122,8 @@ public enum AudioEncoding */ LINEAR16(1), /** + * + * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -111,6 +137,8 @@ public enum AudioEncoding
      */
     FLAC(2),
     /**
+     *
+     *
      * 
      * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
      * 
@@ -119,6 +147,8 @@ public enum AudioEncoding */ MULAW(3), /** + * + * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -127,6 +157,8 @@ public enum AudioEncoding */ AMR(4), /** + * + * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -135,6 +167,8 @@ public enum AudioEncoding */ AMR_WB(5), /** + * + * *
      * Opus encoded audio frames in Ogg container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)).
@@ -145,6 +179,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
@@ -165,6 +201,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
@@ -176,6 +214,8 @@ public enum AudioEncoding
      */
     MP3(8),
     /**
+     *
+     *
      * 
      * Opus encoded audio frames in WebM container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be
@@ -189,6 +229,8 @@ public enum AudioEncoding
     ;
 
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -197,6 +239,8 @@ public enum AudioEncoding */ public static final int ENCODING_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -205,6 +249,8 @@ public enum AudioEncoding */ public static final int LINEAR16_VALUE = 1; /** + * + * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -218,6 +264,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.
      * 
@@ -226,6 +274,8 @@ public enum AudioEncoding */ public static final int MULAW_VALUE = 3; /** + * + * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -234,6 +284,8 @@ public enum AudioEncoding */ public static final int AMR_VALUE = 4; /** + * + * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -242,6 +294,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)).
@@ -252,6 +306,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
@@ -272,6 +328,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
@@ -283,6 +341,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
@@ -293,7 +353,6 @@ public enum AudioEncoding
      */
     public static final int WEBM_OPUS_VALUE = 9;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -318,56 +377,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;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+        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() {
       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;
@@ -387,6 +455,8 @@ private AudioEncoding(int value) {
   public static final int ENCODING_FIELD_NUMBER = 1;
   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
@@ -394,12 +464,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
@@ -407,16 +481,23 @@ 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() { - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.forNumber(encoding_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding() { + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.forNumber(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_ = 0; /** + * + * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -428,6 +509,7 @@ private AudioEncoding(int value) {
    * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -438,6 +520,8 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 7; private int audioChannelCount_ = 0; /** + * + * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -450,6 +534,7 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ @java.lang.Override @@ -460,6 +545,8 @@ public int getAudioChannelCount() { public static final int ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER = 12; private boolean enableSeparateRecognitionPerChannel_ = false; /** + * + * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -470,6 +557,7 @@ public int getAudioChannelCount() {
    * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -478,9 +566,12 @@ public boolean getEnableSeparateRecognitionPerChannel() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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.
@@ -491,6 +582,7 @@ public boolean getEnableSeparateRecognitionPerChannel() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ @java.lang.Override @@ -499,14 +591,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.
@@ -517,16 +610,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 { @@ -535,9 +627,12 @@ public java.lang.String getLanguageCode() { } public static final int ALTERNATIVE_LANGUAGE_CODES_FIELD_NUMBER = 18; + @SuppressWarnings("serial") 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,
@@ -554,13 +649,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,
@@ -577,12 +674,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,
@@ -599,6 +699,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. */ @@ -606,6 +707,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,
@@ -622,17 +725,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_ = 0; /** + * + * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -643,6 +748,7 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
    * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ @java.lang.Override @@ -653,6 +759,8 @@ public int getMaxAlternatives() { public static final int PROFANITY_FILTER_FIELD_NUMBER = 5; private boolean profanityFilter_ = false; /** + * + * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -661,6 +769,7 @@ public int getMaxAlternatives() {
    * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ @java.lang.Override @@ -671,6 +780,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
@@ -680,6 +791,7 @@ public boolean getProfanityFilter() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -687,6 +799,8 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -696,13 +810,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
@@ -715,12 +834,16 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation getAdaptation() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptationOrBuilder() {
-    return adaptation_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance() : adaptation_;
+    return adaptation_ == null
+        ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance()
+        : adaptation_;
   }
 
   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
@@ -728,7 +851,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 @@ -736,6 +861,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
@@ -743,14 +870,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
@@ -758,17 +891,24 @@ 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() { - return transcriptNormalization_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance() : transcriptNormalization_; + public com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder + getTranscriptNormalizationOrBuilder() { + return transcriptNormalization_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance() + : transcriptNormalization_; } public static final int SPEECH_CONTEXTS_FIELD_NUMBER = 6; + @SuppressWarnings("serial") 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
@@ -784,6 +924,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
@@ -795,11 +937,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
@@ -815,6 +959,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
@@ -830,6 +976,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
@@ -849,6 +997,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
   public static final int ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER = 8;
   private boolean enableWordTimeOffsets_ = false;
   /**
+   *
+   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -857,6 +1007,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
    * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -867,6 +1018,8 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 15; private boolean enableWordConfidence_ = false; /** + * + * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -874,6 +1027,7 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -884,6 +1038,8 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 11; private boolean enableAutomaticPunctuation_ = false; /** + * + * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -892,6 +1048,7 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -902,6 +1059,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
@@ -913,6 +1072,7 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ @java.lang.Override @@ -920,6 +1080,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
@@ -931,13 +1093,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
@@ -952,12 +1119,16 @@ public com.google.protobuf.BoolValue getEnableSpokenPunctuation() {
    */
   @java.lang.Override
   public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilder() {
-    return enableSpokenPunctuation_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenPunctuation_;
+    return enableSpokenPunctuation_ == null
+        ? com.google.protobuf.BoolValue.getDefaultInstance()
+        : enableSpokenPunctuation_;
   }
 
   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
@@ -967,6 +1138,7 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ @java.lang.Override @@ -974,6 +1146,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
@@ -983,13 +1157,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
@@ -1002,12 +1181,16 @@ public com.google.protobuf.BoolValue getEnableSpokenEmojis() {
    */
   @java.lang.Override
   public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
-    return enableSpokenEmojis_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenEmojis_;
+    return enableSpokenEmojis_ == null
+        ? com.google.protobuf.BoolValue.getDefaultInstance()
+        : enableSpokenEmojis_;
   }
 
   public static final int ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER = 16;
   private boolean enableSpeakerDiarization_ = false;
   /**
+   *
+   *
    * 
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -1016,18 +1199,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=377 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=377 * @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_ = 0; /** + * + * *
    * If set, specifies the estimated number of speakers in the conversation.
    * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -1035,18 +1222,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=382 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=382 * @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.
@@ -1059,6 +1250,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 @@ -1066,6 +1258,8 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1078,13 +1272,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.
@@ -1099,18 +1298,24 @@ 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() {
-    return diarizationConfig_ == null ? com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_;
+  public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder
+      getDiarizationConfigOrBuilder() {
+    return diarizationConfig_ == null
+        ? com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance()
+        : diarizationConfig_;
   }
 
   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 @@ -1118,18 +1323,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.
    * 
@@ -1138,13 +1350,18 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata getMetadata() { */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() + : metadata_; } public static final int MODEL_FIELD_NUMBER = 13; + @SuppressWarnings("serial") 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
@@ -1200,6 +1417,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat
    * 
* * string model = 13; + * * @return The model. */ @java.lang.Override @@ -1208,14 +1426,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
@@ -1271,16 +1490,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 { @@ -1291,6 +1509,8 @@ public java.lang.String getModel() { public static final int USE_ENHANCED_FIELD_NUMBER = 14; private boolean useEnhanced_ = false; /** + * + * *
    * 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
@@ -1302,6 +1522,7 @@ public java.lang.String getModel() {
    * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ @java.lang.Override @@ -1310,6 +1531,7 @@ public boolean getUseEnhanced() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1321,9 +1543,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) { @@ -1372,7 +1595,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()); @@ -1398,67 +1622,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; @@ -1469,24 +1684,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1496,74 +1710,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1582,8 +1778,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) { @@ -1593,8 +1790,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(); @@ -1608,14 +1804,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(); @@ -1625,8 +1818,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()) { @@ -1640,104 +1832,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) + getUnknownFields().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.
@@ -1745,33 +1943,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1833,9 +2030,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
@@ -1854,14 +2051,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.RecognitionConfig result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v1p1beta1.RecognitionConfig result) {
       if (((bitField0_ & 0x00000020) != 0)) {
         alternativeLanguageCodes_ = alternativeLanguageCodes_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000020);
@@ -1902,14 +2103,13 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognitionConfig r
         result.profanityFilter_ = profanityFilter_;
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.adaptation_ = adaptationBuilder_ == null
-            ? adaptation_
-            : adaptationBuilder_.build();
+        result.adaptation_ = adaptationBuilder_ == null ? adaptation_ : adaptationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.transcriptNormalization_ = transcriptNormalizationBuilder_ == null
-            ? transcriptNormalization_
-            : transcriptNormalizationBuilder_.build();
+        result.transcriptNormalization_ =
+            transcriptNormalizationBuilder_ == null
+                ? transcriptNormalization_
+                : transcriptNormalizationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
         result.enableWordTimeOffsets_ = enableWordTimeOffsets_;
@@ -1921,14 +2121,16 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognitionConfig r
         result.enableAutomaticPunctuation_ = enableAutomaticPunctuation_;
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.enableSpokenPunctuation_ = enableSpokenPunctuationBuilder_ == null
-            ? enableSpokenPunctuation_
-            : enableSpokenPunctuationBuilder_.build();
+        result.enableSpokenPunctuation_ =
+            enableSpokenPunctuationBuilder_ == null
+                ? enableSpokenPunctuation_
+                : enableSpokenPunctuationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.enableSpokenEmojis_ = enableSpokenEmojisBuilder_ == null
-            ? enableSpokenEmojis_
-            : enableSpokenEmojisBuilder_.build();
+        result.enableSpokenEmojis_ =
+            enableSpokenEmojisBuilder_ == null
+                ? enableSpokenEmojis_
+                : enableSpokenEmojisBuilder_.build();
       }
       if (((from_bitField0_ & 0x00010000) != 0)) {
         result.enableSpeakerDiarization_ = enableSpeakerDiarization_;
@@ -1937,14 +2139,13 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognitionConfig r
         result.diarizationSpeakerCount_ = diarizationSpeakerCount_;
       }
       if (((from_bitField0_ & 0x00040000) != 0)) {
-        result.diarizationConfig_ = diarizationConfigBuilder_ == null
-            ? diarizationConfig_
-            : diarizationConfigBuilder_.build();
+        result.diarizationConfig_ =
+            diarizationConfigBuilder_ == null
+                ? diarizationConfig_
+                : diarizationConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00080000) != 0)) {
-        result.metadata_ = metadataBuilder_ == null
-            ? metadata_
-            : metadataBuilder_.build();
+        result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
       }
       if (((from_bitField0_ & 0x00100000) != 0)) {
         result.model_ = model_;
@@ -1958,38 +2159,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognitionConfig r
     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;
@@ -1997,7 +2199,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());
       }
@@ -2055,9 +2258,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognitionConfig oth
             speechContextsBuilder_ = null;
             speechContexts_ = other.speechContexts_;
             bitField0_ = (bitField0_ & ~0x00000400);
-            speechContextsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSpeechContextsFieldBuilder() : null;
+            speechContextsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSpeechContextsFieldBuilder()
+                    : null;
           } else {
             speechContextsBuilder_.addAllMessages(other.speechContexts_);
           }
@@ -2124,143 +2328,158 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              encoding_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 16: {
-              sampleRateHertz_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              languageCode_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 26
-            case 32: {
-              maxAlternatives_ = input.readInt32();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 32
-            case 40: {
-              profanityFilter_ = input.readBool();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 40
-            case 50: {
-              com.google.cloud.speech.v1p1beta1.SpeechContext m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.SpeechContext.parser(),
-                      extensionRegistry);
-              if (speechContextsBuilder_ == null) {
-                ensureSpeechContextsIsMutable();
-                speechContexts_.add(m);
-              } else {
-                speechContextsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 50
-            case 56: {
-              audioChannelCount_ = input.readInt32();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 56
-            case 64: {
-              enableWordTimeOffsets_ = input.readBool();
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 64
-            case 74: {
-              input.readMessage(
-                  getMetadataFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00080000;
-              break;
-            } // case 74
-            case 88: {
-              enableAutomaticPunctuation_ = input.readBool();
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 88
-            case 96: {
-              enableSeparateRecognitionPerChannel_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 96
-            case 106: {
-              model_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00100000;
-              break;
-            } // case 106
-            case 112: {
-              useEnhanced_ = input.readBool();
-              bitField0_ |= 0x00200000;
-              break;
-            } // case 112
-            case 120: {
-              enableWordConfidence_ = input.readBool();
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 120
-            case 128: {
-              enableSpeakerDiarization_ = input.readBool();
-              bitField0_ |= 0x00010000;
-              break;
-            } // case 128
-            case 136: {
-              diarizationSpeakerCount_ = input.readInt32();
-              bitField0_ |= 0x00020000;
-              break;
-            } // case 136
-            case 146: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureAlternativeLanguageCodesIsMutable();
-              alternativeLanguageCodes_.add(s);
-              break;
-            } // case 146
-            case 154: {
-              input.readMessage(
-                  getDiarizationConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00040000;
-              break;
-            } // case 154
-            case 162: {
-              input.readMessage(
-                  getAdaptationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 162
-            case 178: {
-              input.readMessage(
-                  getEnableSpokenPunctuationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00004000;
-              break;
-            } // case 178
-            case 186: {
-              input.readMessage(
-                  getEnableSpokenEmojisFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00008000;
-              break;
-            } // case 186
-            case 194: {
-              input.readMessage(
-                  getTranscriptNormalizationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 194
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                encoding_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 16:
+              {
+                sampleRateHertz_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                languageCode_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 26
+            case 32:
+              {
+                maxAlternatives_ = input.readInt32();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 32
+            case 40:
+              {
+                profanityFilter_ = input.readBool();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 40
+            case 50:
+              {
+                com.google.cloud.speech.v1p1beta1.SpeechContext m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1p1beta1.SpeechContext.parser(),
+                        extensionRegistry);
+                if (speechContextsBuilder_ == null) {
+                  ensureSpeechContextsIsMutable();
+                  speechContexts_.add(m);
+                } else {
+                  speechContextsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 50
+            case 56:
+              {
+                audioChannelCount_ = input.readInt32();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 56
+            case 64:
+              {
+                enableWordTimeOffsets_ = input.readBool();
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 64
+            case 74:
+              {
+                input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00080000;
+                break;
+              } // case 74
+            case 88:
+              {
+                enableAutomaticPunctuation_ = input.readBool();
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 88
+            case 96:
+              {
+                enableSeparateRecognitionPerChannel_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 96
+            case 106:
+              {
+                model_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00100000;
+                break;
+              } // case 106
+            case 112:
+              {
+                useEnhanced_ = input.readBool();
+                bitField0_ |= 0x00200000;
+                break;
+              } // case 112
+            case 120:
+              {
+                enableWordConfidence_ = input.readBool();
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 120
+            case 128:
+              {
+                enableSpeakerDiarization_ = input.readBool();
+                bitField0_ |= 0x00010000;
+                break;
+              } // case 128
+            case 136:
+              {
+                diarizationSpeakerCount_ = input.readInt32();
+                bitField0_ |= 0x00020000;
+                break;
+              } // case 136
+            case 146:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureAlternativeLanguageCodesIsMutable();
+                alternativeLanguageCodes_.add(s);
+                break;
+              } // case 146
+            case 154:
+              {
+                input.readMessage(
+                    getDiarizationConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00040000;
+                break;
+              } // case 154
+            case 162:
+              {
+                input.readMessage(getAdaptationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 162
+            case 178:
+              {
+                input.readMessage(
+                    getEnableSpokenPunctuationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00004000;
+                break;
+              } // case 178
+            case 186:
+              {
+                input.readMessage(
+                    getEnableSpokenEmojisFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00008000;
+                break;
+              } // case 186
+            case 194:
+              {
+                input.readMessage(
+                    getTranscriptNormalizationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 194
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2270,10 +2489,13 @@ public Builder mergeFrom(
       } // finally
       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
@@ -2281,12 +2503,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
@@ -2294,6 +2520,7 @@ 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. */ @@ -2304,6 +2531,8 @@ public Builder setEncodingValue(int value) { return this; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2311,14 +2540,20 @@ 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() { - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.forNumber(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.forNumber(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
@@ -2326,10 +2561,12 @@ 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(); } @@ -2339,6 +2576,8 @@ public Builder setEncoding(com.google.cloud.speech.v1p1beta1.RecognitionConfig.A return this; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2346,6 +2585,7 @@ 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() { @@ -2355,8 +2595,10 @@ public Builder clearEncoding() { 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.
@@ -2368,6 +2610,7 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -2375,6 +2618,8 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2386,17 +2631,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2408,6 +2656,7 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; + * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { @@ -2417,8 +2666,10 @@ public Builder clearSampleRateHertz() { return this; } - private int audioChannelCount_ ; + private int audioChannelCount_; /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2431,6 +2682,7 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ @java.lang.Override @@ -2438,6 +2690,8 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2450,17 +2704,20 @@ 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2473,6 +2730,7 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 7; + * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { @@ -2482,8 +2740,10 @@ public Builder clearAudioChannelCount() { 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
@@ -2494,6 +2754,7 @@ public Builder clearAudioChannelCount() {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -2501,6 +2762,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
@@ -2511,17 +2774,20 @@ 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; bitField0_ |= 0x00000008; 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
@@ -2532,6 +2798,7 @@ public Builder setEnableSeparateRecognitionPerChannel(boolean value) {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return This builder for chaining. */ public Builder clearEnableSeparateRecognitionPerChannel() { @@ -2543,6 +2810,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.
@@ -2553,13 +2822,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; @@ -2568,6 +2837,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.
@@ -2578,15 +2849,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 { @@ -2594,6 +2864,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.
@@ -2604,18 +2876,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000010; 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.
@@ -2626,6 +2902,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -2635,6 +2912,8 @@ public Builder clearLanguageCode() { return this; } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2645,12 +2924,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000010; @@ -2658,14 +2939,19 @@ public Builder setLanguageCodeBytes( 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_ & 0x00000020) != 0)) { - alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); + alternativeLanguageCodes_ = + new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); bitField0_ |= 0x00000020; - } + } } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2682,13 +2968,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,
@@ -2705,12 +2993,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,
@@ -2727,6 +3018,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. */ @@ -2734,6 +3026,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,
@@ -2750,14 +3044,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,
@@ -2774,19 +3070,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setAlternativeLanguageCodes(int index, java.lang.String value) { + if (value == null) { + 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,
@@ -2803,18 +3103,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) { - if (value == null) { throw new NullPointerException(); } + public Builder addAlternativeLanguageCodes(java.lang.String value) { + if (value == null) { + 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,
@@ -2831,18 +3135,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,
@@ -2859,6 +3164,7 @@ public Builder addAllAlternativeLanguageCodes(
      * 
* * repeated string alternative_language_codes = 18; + * * @return This builder for chaining. */ public Builder clearAlternativeLanguageCodes() { @@ -2868,6 +3174,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,
@@ -2884,12 +3192,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); @@ -2897,8 +3207,10 @@ public Builder addAlternativeLanguageCodesBytes( return this; } - private int maxAlternatives_ ; + private int maxAlternatives_; /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2909,6 +3221,7 @@ public Builder addAlternativeLanguageCodesBytes(
      * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ @java.lang.Override @@ -2916,6 +3229,8 @@ public int getMaxAlternatives() { return maxAlternatives_; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2926,17 +3241,20 @@ 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; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2947,6 +3265,7 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 4; + * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { @@ -2956,8 +3275,10 @@ public Builder clearMaxAlternatives() { 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
@@ -2966,6 +3287,7 @@ public Builder clearMaxAlternatives() {
      * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ @java.lang.Override @@ -2973,6 +3295,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
@@ -2981,17 +3305,20 @@ 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; bitField0_ |= 0x00000080; 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
@@ -3000,6 +3327,7 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 5; + * * @return This builder for chaining. */ public Builder clearProfanityFilter() { @@ -3011,8 +3339,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
@@ -3022,12 +3355,15 @@ public Builder clearProfanityFilter() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3037,16 +3373,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
@@ -3071,6 +3412,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
@@ -3093,6 +3436,8 @@ public Builder setAdaptation(
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3105,9 +3450,10 @@ public Builder setAdaptation(
      */
     public Builder mergeAdaptation(com.google.cloud.speech.v1p1beta1.SpeechAdaptation value) {
       if (adaptationBuilder_ == null) {
-        if (((bitField0_ & 0x00000100) != 0) &&
-          adaptation_ != null &&
-          adaptation_ != com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000100) != 0)
+            && adaptation_ != null
+            && adaptation_
+                != com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance()) {
           getAdaptationBuilder().mergeFrom(value);
         } else {
           adaptation_ = value;
@@ -3120,6 +3466,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
@@ -3141,6 +3489,8 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3157,6 +3507,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder getAdaptationB
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3171,11 +3523,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
@@ -3187,14 +3542,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_;
@@ -3202,8 +3560,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
@@ -3211,13 +3574,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 ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3225,17 +3592,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
@@ -3243,9 +3616,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(); @@ -3259,6 +3634,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
@@ -3266,7 +3643,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) { @@ -3280,6 +3658,8 @@ public Builder setTranscriptNormalization( return this; } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3287,13 +3667,16 @@ 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 (((bitField0_ & 0x00000200) != 0) && - transcriptNormalization_ != null && - transcriptNormalization_ != com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && transcriptNormalization_ != null + && transcriptNormalization_ + != com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance()) { getTranscriptNormalizationBuilder().mergeFrom(value); } else { transcriptNormalization_ = value; @@ -3306,6 +3689,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
@@ -3313,7 +3698,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() { bitField0_ = (bitField0_ & ~0x00000200); @@ -3326,6 +3712,8 @@ public Builder clearTranscriptNormalization() { return this; } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3333,14 +3721,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() { bitField0_ |= 0x00000200; onChanged(); return getTranscriptNormalizationFieldBuilder().getBuilder(); } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3348,17 +3740,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
@@ -3366,35 +3763,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_ & 0x00000400) != 0)) { - speechContexts_ = new java.util.ArrayList(speechContexts_); + speechContexts_ = + new java.util.ArrayList( + speechContexts_); bitField0_ |= 0x00000400; - } + } } 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
@@ -3413,6 +3822,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
@@ -3431,6 +3842,8 @@ public int getSpeechContextsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3449,6 +3862,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
@@ -3474,6 +3889,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
@@ -3496,6 +3913,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
@@ -3520,6 +3939,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
@@ -3545,6 +3966,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
@@ -3567,6 +3990,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
@@ -3589,6 +4014,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
@@ -3603,8 +4030,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);
@@ -3612,6 +4038,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
@@ -3633,6 +4061,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
@@ -3654,6 +4084,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
@@ -3669,6 +4101,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
@@ -3682,11 +4116,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
@@ -3697,8 +4134,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 {
@@ -3706,6 +4143,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
@@ -3717,10 +4156,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
@@ -3733,10 +4174,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
@@ -3747,16 +4190,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_ & 0x00000400) != 0),
                 getParentForChildren(),
@@ -3766,8 +4215,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
@@ -3776,6 +4227,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContexts
      * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -3783,6 +4235,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
@@ -3791,17 +4245,20 @@ 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; bitField0_ |= 0x00000800; 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
@@ -3810,6 +4267,7 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 8; + * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { @@ -3819,8 +4277,10 @@ public Builder clearEnableWordTimeOffsets() { 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
@@ -3828,6 +4288,7 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -3835,6 +4296,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
@@ -3842,17 +4305,20 @@ 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; bitField0_ |= 0x00001000; 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
@@ -3860,6 +4326,7 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 15; + * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { @@ -3869,8 +4336,10 @@ public Builder clearEnableWordConfidence() { 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
@@ -3879,6 +4348,7 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -3886,6 +4356,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
@@ -3894,17 +4366,20 @@ 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; bitField0_ |= 0x00002000; onChanged(); return this; } /** + * + * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3913,6 +4388,7 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 11; + * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { @@ -3924,8 +4400,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
@@ -3937,12 +4418,15 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ public boolean hasEnableSpokenPunctuation() { return ((bitField0_ & 0x00004000) != 0); } /** + * + * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3954,16 +4438,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
@@ -3990,6 +4479,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
@@ -4014,6 +4505,8 @@ public Builder setEnableSpokenPunctuation(
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4028,9 +4521,9 @@ public Builder setEnableSpokenPunctuation(
      */
     public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value) {
       if (enableSpokenPunctuationBuilder_ == null) {
-        if (((bitField0_ & 0x00004000) != 0) &&
-          enableSpokenPunctuation_ != null &&
-          enableSpokenPunctuation_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
+        if (((bitField0_ & 0x00004000) != 0)
+            && enableSpokenPunctuation_ != null
+            && enableSpokenPunctuation_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
           getEnableSpokenPunctuationBuilder().mergeFrom(value);
         } else {
           enableSpokenPunctuation_ = value;
@@ -4043,6 +4536,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
@@ -4066,6 +4561,8 @@ public Builder clearEnableSpokenPunctuation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4084,6 +4581,8 @@ public com.google.protobuf.BoolValue.Builder getEnableSpokenPunctuationBuilder()
       return getEnableSpokenPunctuationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4100,11 +4599,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
@@ -4118,14 +4620,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_;
@@ -4133,8 +4638,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
@@ -4144,12 +4654,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 ((bitField0_ & 0x00008000) != 0); } /** + * + * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4159,16 +4672,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
@@ -4193,6 +4711,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
@@ -4203,8 +4723,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();
       } else {
@@ -4215,6 +4734,8 @@ public Builder setEnableSpokenEmojis(
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4227,9 +4748,9 @@ public Builder setEnableSpokenEmojis(
      */
     public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       if (enableSpokenEmojisBuilder_ == null) {
-        if (((bitField0_ & 0x00008000) != 0) &&
-          enableSpokenEmojis_ != null &&
-          enableSpokenEmojis_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
+        if (((bitField0_ & 0x00008000) != 0)
+            && enableSpokenEmojis_ != null
+            && enableSpokenEmojis_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
           getEnableSpokenEmojisBuilder().mergeFrom(value);
         } else {
           enableSpokenEmojis_ = value;
@@ -4242,6 +4763,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
@@ -4263,6 +4786,8 @@ public Builder clearEnableSpokenEmojis() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4279,6 +4804,8 @@ public com.google.protobuf.BoolValue.Builder getEnableSpokenEmojisBuilder() {
       return getEnableSpokenEmojisFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4293,11 +4820,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
@@ -4309,21 +4839,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
@@ -4332,15 +4867,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=377 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=377 * @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
@@ -4349,19 +4888,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=377 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=377 * @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; bitField0_ |= 0x00010000; 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
@@ -4370,19 +4913,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=377 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=377 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearEnableSpeakerDiarization() { + @java.lang.Deprecated + public Builder clearEnableSpeakerDiarization() { bitField0_ = (bitField0_ & ~0x00010000); 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.
@@ -4390,15 +4937,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=382 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=382 * @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.
@@ -4406,19 +4957,23 @@ 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=382 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=382 * @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; bitField0_ |= 0x00020000; 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.
@@ -4426,11 +4981,13 @@ 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=382 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=382 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearDiarizationSpeakerCount() { + @java.lang.Deprecated + public Builder clearDiarizationSpeakerCount() { bitField0_ = (bitField0_ & ~0x00020000); diarizationSpeakerCount_ = 0; onChanged(); @@ -4439,8 +4996,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.
@@ -4453,12 +5015,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 ((bitField0_ & 0x00040000) != 0); } /** + * + * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4471,16 +5036,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.
@@ -4494,7 +5064,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();
@@ -4508,6 +5079,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.
@@ -4533,6 +5106,8 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4546,11 +5121,14 @@ 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 (((bitField0_ & 0x00040000) != 0) &&
-          diarizationConfig_ != null &&
-          diarizationConfig_ != com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00040000) != 0)
+            && diarizationConfig_ != null
+            && diarizationConfig_
+                != com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig
+                    .getDefaultInstance()) {
           getDiarizationConfigBuilder().mergeFrom(value);
         } else {
           diarizationConfig_ = value;
@@ -4563,6 +5141,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.
@@ -4587,6 +5167,8 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4600,12 +5182,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() {
       bitField0_ |= 0x00040000;
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4619,15 +5204,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.
@@ -4642,14 +5231,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_;
@@ -4657,34 +5249,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 ((bitField0_ & 0x00080000) != 0); } /** + * + * *
      * 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.
      * 
@@ -4705,6 +5310,8 @@ public Builder setMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetadata return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4723,6 +5330,8 @@ public Builder setMetadata( return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4731,9 +5340,10 @@ public Builder setMetadata( */ public Builder mergeMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetadata value) { if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) && - metadata_ != null && - metadata_ != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00080000) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; @@ -4746,6 +5356,8 @@ public Builder mergeMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetada return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4763,6 +5375,8 @@ public Builder clearMetadata() { return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4775,6 +5389,8 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder getMetadata return getMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4785,11 +5401,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.
      * 
@@ -4797,14 +5416,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_; @@ -4812,6 +5434,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
@@ -4867,13 +5491,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; @@ -4882,6 +5506,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
@@ -4937,15 +5563,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 { @@ -4953,6 +5578,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
@@ -5008,18 +5635,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00100000; 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
@@ -5075,6 +5706,7 @@ public Builder setModel(
      * 
* * string model = 13; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -5084,6 +5716,8 @@ public Builder clearModel() { 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
@@ -5139,12 +5773,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00100000; @@ -5152,8 +5788,10 @@ public Builder setModelBytes( 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
@@ -5165,6 +5803,7 @@ public Builder setModelBytes(
      * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ @java.lang.Override @@ -5172,6 +5811,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
@@ -5183,17 +5824,20 @@ 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; bitField0_ |= 0x00200000; 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
@@ -5205,6 +5849,7 @@ public Builder setUseEnhanced(boolean value) {
      * 
* * bool use_enhanced = 14; + * * @return This builder for chaining. */ public Builder clearUseEnhanced() { @@ -5213,9 +5858,9 @@ public Builder clearUseEnhanced() { 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); } @@ -5225,12 +5870,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(); } @@ -5239,27 +5884,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5274,6 +5919,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java similarity index 93% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java index 3662ea486fe6..8511b88f1247 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java +++ b/java-speech/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.
@@ -59,11 +86,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
@@ -74,11 +104,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.
@@ -89,10 +122,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.
@@ -103,12 +139,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,
@@ -125,11 +163,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,
@@ -146,10 +186,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,
@@ -166,11 +209,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,
@@ -187,13 +233,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
@@ -204,11 +252,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
@@ -217,11 +268,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
@@ -231,10 +285,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
@@ -244,10 +301,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
@@ -261,6 +321,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
@@ -268,11 +330,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
@@ -280,11 +346,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
@@ -292,11 +362,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
@@ -307,9 +381,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
@@ -322,6 +397,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
@@ -334,6 +411,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
@@ -344,9 +423,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
@@ -357,10 +438,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
@@ -369,11 +451,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
@@ -381,11 +466,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
@@ -394,11 +482,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
@@ -410,10 +501,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
@@ -425,10 +519,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
@@ -444,6 +541,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
@@ -453,10 +552,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
@@ -466,10 +568,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
@@ -483,6 +588,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
@@ -491,13 +598,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=377 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=377 * @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.
@@ -505,13 +616,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=382 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=382 * @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.
@@ -524,10 +639,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.
@@ -540,10 +658,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.
@@ -557,27 +678,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.
    * 
@@ -587,6 +717,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
@@ -642,10 +774,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
@@ -701,12 +836,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
@@ -718,6 +855,7 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ boolean getUseEnhanced(); diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java similarity index 69% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java index c39ea85770a7..45cd4cf4163a 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java +++ b/java-speech/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,30 +50,33 @@ 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; } - 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.
@@ -62,9 +84,10 @@ protected java.lang.Object newInstance(
    *
    * 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.
@@ -74,6 +97,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
@@ -85,6 +110,8 @@ public enum InteractionType
      */
     DISCUSSION(1),
     /**
+     *
+     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -94,6 +121,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.
@@ -103,6 +132,8 @@ public enum InteractionType
      */
     PHONE_CALL(3),
     /**
+     *
+     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -111,6 +142,8 @@ public enum InteractionType */ VOICEMAIL(4), /** + * + * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -119,6 +152,8 @@ public enum InteractionType */ PROFESSIONALLY_PRODUCED(5), /** + * + * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -127,6 +162,8 @@ public enum InteractionType */ VOICE_SEARCH(6), /** + * + * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -135,6 +172,8 @@ public enum InteractionType */ VOICE_COMMAND(7), /** + * + * *
      * Transcribe speech to text to create a written document, such as a
      * text-message, email or report.
@@ -147,6 +186,8 @@ public enum InteractionType
     ;
 
     /**
+     *
+     *
      * 
      * Use case is either unknown or is something other than one of the other
      * values below.
@@ -156,6 +197,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
@@ -167,6 +210,8 @@ public enum InteractionType
      */
     public static final int DISCUSSION_VALUE = 1;
     /**
+     *
+     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -176,6 +221,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.
@@ -185,6 +232,8 @@ public enum InteractionType
      */
     public static final int PHONE_CALL_VALUE = 3;
     /**
+     *
+     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -193,6 +242,8 @@ public enum InteractionType */ public static final int VOICEMAIL_VALUE = 4; /** + * + * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -201,6 +252,8 @@ public enum InteractionType */ public static final int PROFESSIONALLY_PRODUCED_VALUE = 5; /** + * + * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -209,6 +262,8 @@ public enum InteractionType */ public static final int VOICE_SEARCH_VALUE = 6; /** + * + * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -217,6 +272,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.
@@ -226,7 +283,6 @@ public enum InteractionType
      */
     public static final int DICTATION_VALUE = 8;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -251,46 +307,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();
@@ -298,8 +365,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;
@@ -317,15 +383,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.
      * 
@@ -334,6 +403,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
@@ -344,6 +415,8 @@ public enum MicrophoneDistance
      */
     NEARFIELD(1),
     /**
+     *
+     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -352,6 +425,8 @@ public enum MicrophoneDistance */ MIDFIELD(2), /** + * + * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -363,6 +438,8 @@ public enum MicrophoneDistance ; /** + * + * *
      * Audio type is not known.
      * 
@@ -371,6 +448,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
@@ -381,6 +460,8 @@ public enum MicrophoneDistance
      */
     public static final int NEARFIELD_VALUE = 1;
     /**
+     *
+     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -389,6 +470,8 @@ public enum MicrophoneDistance */ public static final int MIDFIELD_VALUE = 2; /** + * + * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -397,7 +480,6 @@ public enum MicrophoneDistance */ public static final int FARFIELD_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -422,11 +504,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; } } @@ -434,29 +521,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(); @@ -464,8 +553,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; @@ -483,15 +571,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.
      * 
@@ -500,6 +591,8 @@ public enum OriginalMediaType */ ORIGINAL_MEDIA_TYPE_UNSPECIFIED(0), /** + * + * *
      * The speech data is an audio recording.
      * 
@@ -508,6 +601,8 @@ public enum OriginalMediaType */ AUDIO(1), /** + * + * *
      * The speech data originally recorded on a video.
      * 
@@ -519,6 +614,8 @@ public enum OriginalMediaType ; /** + * + * *
      * Unknown original media type.
      * 
@@ -527,6 +624,8 @@ public enum OriginalMediaType */ public static final int ORIGINAL_MEDIA_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The speech data is an audio recording.
      * 
@@ -535,6 +634,8 @@ public enum OriginalMediaType */ public static final int AUDIO_VALUE = 1; /** + * + * *
      * The speech data originally recorded on a video.
      * 
@@ -543,7 +644,6 @@ public enum OriginalMediaType */ public static final int VIDEO_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -568,10 +668,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; } } @@ -579,29 +683,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(); @@ -609,8 +715,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; @@ -628,15 +733,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.
      * 
@@ -645,6 +753,8 @@ public enum RecordingDeviceType */ RECORDING_DEVICE_TYPE_UNSPECIFIED(0), /** + * + * *
      * Speech was recorded on a smartphone.
      * 
@@ -653,6 +763,8 @@ public enum RecordingDeviceType */ SMARTPHONE(1), /** + * + * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -661,6 +773,8 @@ public enum RecordingDeviceType */ PC(2), /** + * + * *
      * Speech was recorded over a phone line.
      * 
@@ -669,6 +783,8 @@ public enum RecordingDeviceType */ PHONE_LINE(3), /** + * + * *
      * Speech was recorded in a vehicle.
      * 
@@ -677,6 +793,8 @@ public enum RecordingDeviceType */ VEHICLE(4), /** + * + * *
      * Speech was recorded outdoors.
      * 
@@ -685,6 +803,8 @@ public enum RecordingDeviceType */ OTHER_OUTDOOR_DEVICE(5), /** + * + * *
      * Speech was recorded indoors.
      * 
@@ -696,6 +816,8 @@ public enum RecordingDeviceType ; /** + * + * *
      * The recording device is unknown.
      * 
@@ -704,6 +826,8 @@ public enum RecordingDeviceType */ public static final int RECORDING_DEVICE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Speech was recorded on a smartphone.
      * 
@@ -712,6 +836,8 @@ public enum RecordingDeviceType */ public static final int SMARTPHONE_VALUE = 1; /** + * + * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -720,6 +846,8 @@ public enum RecordingDeviceType */ public static final int PC_VALUE = 2; /** + * + * *
      * Speech was recorded over a phone line.
      * 
@@ -728,6 +856,8 @@ public enum RecordingDeviceType */ public static final int PHONE_LINE_VALUE = 3; /** + * + * *
      * Speech was recorded in a vehicle.
      * 
@@ -736,6 +866,8 @@ public enum RecordingDeviceType */ public static final int VEHICLE_VALUE = 4; /** + * + * *
      * Speech was recorded outdoors.
      * 
@@ -744,6 +876,8 @@ public enum RecordingDeviceType */ public static final int OTHER_OUTDOOR_DEVICE_VALUE = 5; /** + * + * *
      * Speech was recorded indoors.
      * 
@@ -752,7 +886,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( @@ -777,14 +910,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; } } @@ -792,29 +933,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(); @@ -822,8 +965,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; @@ -843,32 +985,49 @@ private RecordingDeviceType(int value) { public static final int INTERACTION_TYPE_FIELD_NUMBER = 1; 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; + * + * * @return The interactionType. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType getInteractionType() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.forNumber(interactionType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType + getInteractionType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.forNumber( + 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_ = 0; /** + * + * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -877,6 +1036,7 @@ private RecordingDeviceType(int value) {
    * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -887,85 +1047,139 @@ public int getIndustryNaicsCodeOfAudio() { public static final int MICROPHONE_DISTANCE_FIELD_NUMBER = 4; 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; + * + * * @return The microphoneDistance. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.forNumber(microphoneDistance_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance + getMicrophoneDistance() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.forNumber( + 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_ = 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; + * + * * @return The originalMediaType. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.forNumber(originalMediaType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType + getOriginalMediaType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.forNumber( + 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_ = 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; + * + * * @return The recordingDeviceType. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.forNumber(recordingDeviceType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType + getRecordingDeviceType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.forNumber( + recordingDeviceType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED + : result; } public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER = 7; + @SuppressWarnings("serial") 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
@@ -973,6 +1187,7 @@ public int getIndustryNaicsCodeOfAudio() {
    * 
* * string recording_device_name = 7; + * * @return The recordingDeviceName. */ @java.lang.Override @@ -981,14 +1196,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
@@ -996,16 +1212,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 { @@ -1014,9 +1229,12 @@ public java.lang.String getRecordingDeviceName() { } public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER = 8; + @SuppressWarnings("serial") 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`.
@@ -1025,6 +1243,7 @@ public java.lang.String getRecordingDeviceName() {
    * 
* * string original_mime_type = 8; + * * @return The originalMimeType. */ @java.lang.Override @@ -1033,14 +1252,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`.
@@ -1049,16 +1269,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 { @@ -1069,31 +1288,39 @@ public java.lang.String getOriginalMimeType() { public static final int OBFUSCATED_ID_FIELD_NUMBER = 9; private long obfuscatedId_ = 0L; /** + * + * *
    * 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=611 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. See + * google/cloud/speech/v1p1beta1/cloud_speech.proto;l=611 * @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; + @SuppressWarnings("serial") 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 @@ -1102,30 +1329,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 { @@ -1134,6 +1361,7 @@ public java.lang.String getAudioTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1145,21 +1373,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_)) { @@ -1183,25 +1422,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_); @@ -1210,8 +1456,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_); @@ -1224,27 +1469,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1271,8 +1512,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) + getUnknownFields().hashCode(); @@ -1281,129 +1521,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1421,9 +1668,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 @@ -1442,8 +1689,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.RecognitionMetadata result = + new com.google.cloud.speech.v1p1beta1.RecognitionMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1483,38 +1733,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognitionMetadata 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; @@ -1522,7 +1773,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()); } @@ -1582,57 +1834,67 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - interactionType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 24: { - industryNaicsCodeOfAudio_ = input.readUInt32(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 32: { - microphoneDistance_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 40: { - originalMediaType_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 48: { - recordingDeviceType_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 48 - case 58: { - recordingDeviceName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: { - originalMimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 72: { - obfuscatedId_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 72 - case 82: { - audioTopic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + interactionType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 24: + { + industryNaicsCodeOfAudio_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: + { + microphoneDistance_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: + { + originalMediaType_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: + { + recordingDeviceType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: + { + recordingDeviceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + originalMimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 72: + { + obfuscatedId_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 82: + { + audioTopic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1642,26 +1904,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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. */ @@ -1672,28 +1946,44 @@ public Builder setInteractionTypeValue(int value) { 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() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.forNumber(interactionType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType + getInteractionType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.forNumber( + 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(); } @@ -1703,11 +1993,16 @@ public Builder setInteractionType(com.google.cloud.speech.v1p1beta1.RecognitionM 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() { @@ -1717,8 +2012,10 @@ public Builder clearInteractionType() { 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
@@ -1727,6 +2024,7 @@ public Builder clearInteractionType() {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1734,6 +2032,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
@@ -1742,17 +2042,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1761,6 +2064,7 @@ public Builder setIndustryNaicsCodeOfAudio(int value) {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return This builder for chaining. */ public Builder clearIndustryNaicsCodeOfAudio() { @@ -1772,22 +2076,33 @@ 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. */ @@ -1798,28 +2113,44 @@ public Builder setMicrophoneDistanceValue(int value) { 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() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.forNumber(microphoneDistance_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance + getMicrophoneDistance() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.forNumber( + 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(); } @@ -1829,11 +2160,16 @@ public Builder setMicrophoneDistance(com.google.cloud.speech.v1p1beta1.Recogniti 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() { @@ -1845,22 +2181,33 @@ 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. */ @@ -1871,28 +2218,44 @@ public Builder setOriginalMediaTypeValue(int value) { 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() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.forNumber(originalMediaType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType + getOriginalMediaType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.forNumber( + 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(); } @@ -1902,11 +2265,16 @@ public Builder setOriginalMediaType(com.google.cloud.speech.v1p1beta1.Recognitio 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() { @@ -1918,22 +2286,33 @@ 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. */ @@ -1944,28 +2323,44 @@ public Builder setRecordingDeviceTypeValue(int value) { 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() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.forNumber(recordingDeviceType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType + getRecordingDeviceType() { + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.forNumber( + 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(); } @@ -1975,11 +2370,16 @@ public Builder setRecordingDeviceType(com.google.cloud.speech.v1p1beta1.Recognit 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() { @@ -1991,6 +2391,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
@@ -1998,13 +2400,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; @@ -2013,6 +2415,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
@@ -2020,15 +2424,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 { @@ -2036,6 +2439,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,18 +2448,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecordingDeviceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } recordingDeviceName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2062,6 +2471,7 @@ public Builder setRecordingDeviceName(
      * 
* * string recording_device_name = 7; + * * @return This builder for chaining. */ public Builder clearRecordingDeviceName() { @@ -2071,6 +2481,8 @@ public Builder clearRecordingDeviceName() { return this; } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2078,12 +2490,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecordingDeviceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); recordingDeviceName_ = value; bitField0_ |= 0x00000020; @@ -2093,6 +2507,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`.
@@ -2101,13 +2517,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; @@ -2116,6 +2532,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`.
@@ -2124,15 +2542,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 { @@ -2140,6 +2557,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`.
@@ -2148,18 +2567,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setOriginalMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } originalMimeType_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2168,6 +2591,7 @@ public Builder setOriginalMimeType(
      * 
* * string original_mime_type = 8; + * * @return This builder for chaining. */ public Builder clearOriginalMimeType() { @@ -2177,6 +2601,8 @@ public Builder clearOriginalMimeType() { return this; } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2185,12 +2611,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setOriginalMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); originalMimeType_ = value; bitField0_ |= 0x00000040; @@ -2198,53 +2626,65 @@ public Builder setOriginalMimeTypeBytes( 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=611 * @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=611 * @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; bitField0_ |= 0x00000080; 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=611 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearObfuscatedId() { + @java.lang.Deprecated + public Builder clearObfuscatedId() { bitField0_ = (bitField0_ & ~0x00000080); obfuscatedId_ = 0L; onChanged(); @@ -2253,19 +2693,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; @@ -2274,21 +2716,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 { @@ -2296,30 +2739,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setAudioTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } audioTopic_ = value; bitField0_ |= 0x00000100; 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() { @@ -2329,27 +2779,31 @@ public Builder clearAudioTopic() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setAudioTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); audioTopic_ = value; bitField0_ |= 0x00000100; 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); } @@ -2359,12 +2813,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(); } @@ -2373,27 +2827,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2408,6 +2862,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java similarity index 69% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java index 34934518b6b8..592a1fe85d0e 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java +++ b/java-speech/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=611 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. See + * google/cloud/speech/v1p1beta1/cloud_speech.proto;l=611 * @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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java similarity index 59% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java index 72f5a09d10e2..086a278dc2d0 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java @@ -1,61 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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 @@ -63,39 +86,57 @@ 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() { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } 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 @@ -103,30 +144,44 @@ 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() { - return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,8 +193,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()); } @@ -156,12 +210,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -171,22 +223,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -213,129 +264,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -354,9 +411,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 @@ -375,8 +432,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.RecognizeRequest result = + new com.google.cloud.speech.v1p1beta1.RecognizeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -384,14 +444,10 @@ public com.google.cloud.speech.v1p1beta1.RecognizeRequest buildPartial() { private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognizeRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.config_ = configBuilder_ == null - ? config_ - : configBuilder_.build(); + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.audio_ = audioBuilder_ == null - ? audio_ - : audioBuilder_.build(); + result.audio_ = audioBuilder_ == null ? audio_ : audioBuilder_.build(); } } @@ -399,38 +455,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognizeRequest re 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; @@ -438,7 +495,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()); } @@ -471,26 +529,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getAudioFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getAudioFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,46 +557,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * 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) { @@ -555,12 +632,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) { @@ -574,18 +655,23 @@ 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 (((bitField0_ & 0x00000001) != 0) && - config_ != null && - config_ != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && config_ != null + && config_ + != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -598,12 +684,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -616,12 +706,16 @@ 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() { bitField0_ |= 0x00000001; @@ -629,38 +723,50 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuil 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_; @@ -668,39 +774,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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) { @@ -716,11 +841,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) { @@ -734,17 +863,21 @@ 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 (((bitField0_ & 0x00000002) != 0) && - audio_ != null && - audio_ != com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && audio_ != null + && audio_ != com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance()) { getAudioBuilder().mergeFrom(value); } else { audio_ = value; @@ -757,11 +890,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -774,11 +911,15 @@ 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() { bitField0_ |= 0x00000002; @@ -786,43 +927,55 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder getAudioBuilde 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); } @@ -832,12 +985,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(); } @@ -846,27 +999,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -881,6 +1034,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java new file mode 100644 index 000000000000..2f3e881fd154 --- /dev/null +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java similarity index 71% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java index 14b944493319..332085672c61 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java +++ b/java-speech/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,48 +29,53 @@
  *
  * 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;
   }
-  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;
+
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -62,10 +84,13 @@ protected java.lang.Object newInstance(
    * 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.
@@ -74,11 +99,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.
@@ -91,6 +119,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -103,6 +133,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.
@@ -119,11 +151,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 @@ -131,18 +166,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.
    * 
@@ -151,17 +193,22 @@ public com.google.protobuf.Duration getTotalBilledTime() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 7; private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_; /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -169,18 +216,25 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } /** + * + * *
    * Provides information on adaptation behavior in response
    * 
@@ -188,19 +242,25 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptatio * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 8; private long requestId_ = 0L; /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 8; + * * @return The requestId. */ @java.lang.Override @@ -209,6 +269,7 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,8 +281,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)); } @@ -244,20 +304,17 @@ 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 (speechAdaptationInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getSpeechAdaptationInfo()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, requestId_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -267,27 +324,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.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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo() - .equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() - != other.getRequestId()) return false; + if (getRequestId() != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -312,104 +366,110 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } 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`
@@ -418,33 +478,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -471,9 +530,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
@@ -492,14 +551,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.RecognizeResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v1p1beta1.RecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -514,14 +577,14 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.Recogn
     private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
-            ? totalBilledTime_
-            : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ =
+            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
-            ? speechAdaptationInfo_
-            : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ =
+            speechAdaptationInfoBuilder_ == null
+                ? speechAdaptationInfo_
+                : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.requestId_ = requestId_;
@@ -532,38 +595,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.RecognizeResponse r
     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;
@@ -571,7 +635,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()) {
@@ -590,9 +655,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_);
           }
@@ -633,44 +699,46 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18: {
-              com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
-                      extensionRegistry);
-              if (resultsBuilder_ == null) {
-                ensureResultsIsMutable();
-                results_.add(m);
-              } else {
-                resultsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getTotalBilledTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 26
-            case 58: {
-              input.readMessage(
-                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 58
-            case 64: {
-              requestId_ = input.readInt64();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 64
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 18:
+              {
+                com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
+                        extensionRegistry);
+                if (resultsBuilder_ == null) {
+                  ensureResultsIsMutable();
+                  results_.add(m);
+                } else {
+                  resultsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+            case 58:
+              {
+                input.readMessage(
+                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 58
+            case 64:
+              {
+                requestId_ = input.readInt64();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 64
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -680,21 +748,30 @@ public Builder mergeFrom(
       } // finally
       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.
@@ -702,7 +779,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 {
@@ -710,6 +788,8 @@ public java.util.List
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -725,6 +805,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -740,6 +822,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -762,6 +846,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -770,7 +856,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());
@@ -781,6 +868,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -802,6 +891,8 @@ public Builder addResults(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRes
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -824,6 +915,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -843,6 +936,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -851,7 +946,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());
@@ -862,6 +958,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -870,11 +968,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);
@@ -882,6 +980,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -900,6 +1000,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -918,6 +1020,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -930,6 +1034,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.
@@ -940,11 +1046,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.
@@ -952,8 +1061,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 {
@@ -961,6 +1071,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -969,10 +1081,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.
@@ -982,10 +1097,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.
@@ -993,20 +1112,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_;
@@ -1014,34 +1136,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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.
      * 
@@ -1062,14 +1197,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(); } else { @@ -1080,6 +1216,8 @@ public Builder setTotalBilledTime( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1088,9 +1226,9 @@ public Builder setTotalBilledTime( */ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - totalBilledTime_ != null && - totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && totalBilledTime_ != null + && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) { getTotalBilledTimeBuilder().mergeFrom(value); } else { totalBilledTime_ = value; @@ -1103,6 +1241,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1120,6 +1260,8 @@ public Builder clearTotalBilledTime() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1132,6 +1274,8 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { return getTotalBilledTimeFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1142,11 +1286,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.
      * 
@@ -1154,14 +1301,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_; @@ -1169,41 +1319,55 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_; + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> + speechAdaptationInfoBuilder_; /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder setSpeechAdaptationInfo( + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1217,6 +1381,8 @@ public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechA return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1235,17 +1401,21 @@ public Builder setSpeechAdaptationInfo( return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo( + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - speechAdaptationInfo_ != null && - speechAdaptationInfo_ != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && speechAdaptationInfo_ != null + && speechAdaptationInfo_ + != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -1258,6 +1428,8 @@ public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.Speec return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1275,33 +1447,42 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder + getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null ? - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1309,27 +1490,33 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeech * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), - getParentForChildren(), - isClean()); + speechAdaptationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), getParentForChildren(), isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_ ; + private long requestId_; /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; + * * @return The requestId. */ @java.lang.Override @@ -1337,29 +1524,35 @@ public long getRequestId() { return requestId_; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; + * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 8; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1368,9 +1561,9 @@ public Builder clearRequestId() { 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); } @@ -1380,12 +1573,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(); } @@ -1394,27 +1587,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1429,6 +1622,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java similarity index 79% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java index 9e93219032fb..e98bffda311b 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java +++ b/java-speech/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.
    * 
@@ -84,39 +116,51 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrB com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder(); /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; + * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7; */ - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder(); /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 8; + * * @return The requestId. */ long getRequestId(); diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java similarity index 70% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java index 6041c4903edb..ca33cbc211a7 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java @@ -1,55 +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; /** + * + * *
  * 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; } - 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_ = false; /** + * + * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -57,6 +77,7 @@ protected java.lang.Object newInstance(
    * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -67,6 +88,8 @@ public boolean getEnableSpeakerDiarization() { public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_ = 0; /** + * + * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -74,6 +97,7 @@ public boolean getEnableSpeakerDiarization() {
    * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -84,6 +108,8 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_ = 0; /** + * + * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -91,6 +117,7 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -101,21 +128,27 @@ public int getMaxSpeakerCount() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_ = 0; /** + * + * *
    * 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=479 * @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; @@ -127,8 +160,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_); } @@ -151,20 +183,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,21 +202,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -201,8 +226,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; @@ -215,129 +239,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +381,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 @@ -371,8 +402,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig result = + new com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -397,38 +431,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationC 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; @@ -436,7 +471,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()); } @@ -475,32 +511,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableSpeakerDiarization_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - minSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - maxSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 40: { - speakerTag_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableSpeakerDiarization_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + minSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + maxSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 40: + { + speakerTag_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -510,10 +551,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - 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
@@ -521,6 +565,7 @@ public Builder mergeFrom(
      * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -528,6 +573,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
@@ -535,17 +582,20 @@ 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; bitField0_ |= 0x00000001; 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
@@ -553,6 +603,7 @@ public Builder setEnableSpeakerDiarization(boolean value) {
      * 
* * bool enable_speaker_diarization = 1; + * * @return This builder for chaining. */ public Builder clearEnableSpeakerDiarization() { @@ -562,8 +613,10 @@ public Builder clearEnableSpeakerDiarization() { 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
@@ -571,6 +624,7 @@ public Builder clearEnableSpeakerDiarization() {
      * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -578,6 +632,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
@@ -585,17 +641,20 @@ 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; bitField0_ |= 0x00000002; 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
@@ -603,6 +662,7 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2; + * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { @@ -612,8 +672,10 @@ public Builder clearMinSpeakerCount() { 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
@@ -621,6 +683,7 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -628,6 +691,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
@@ -635,17 +700,20 @@ 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; bitField0_ |= 0x00000004; 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
@@ -653,6 +721,7 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3; + * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { @@ -662,58 +731,73 @@ public Builder clearMaxSpeakerCount() { 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=479 * @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=479 * @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; bitField0_ |= 0x00000008; 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=479 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearSpeakerTag() { + @java.lang.Deprecated + public Builder clearSpeakerTag() { bitField0_ = (bitField0_ & ~0x00000008); 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); } @@ -723,12 +807,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(); } @@ -737,27 +821,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -772,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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java similarity index 68% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java index 48953e669d2a..37f7409eca89 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java +++ b/java-speech/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=479 * @return The speakerTag. */ - @java.lang.Deprecated int getSpeakerTag(); + @java.lang.Deprecated + int getSpeakerTag(); } diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java similarity index 76% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java index 4e7cd8399c91..156b2694de08 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java +++ b/java-speech/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,154 +45,175 @@ 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; } - 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 interface ABNFGrammarOrBuilder extends + public interface ABNFGrammarOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @return A list containing the abnfStrings. */ - java.util.List - getAbnfStringsList(); + java.util.List getAbnfStringsList(); /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @return The count of abnfStrings. */ int getAbnfStringsCount(); /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ java.lang.String getAbnfStrings(int index); /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - com.google.protobuf.ByteString - getAbnfStringsBytes(int index); + com.google.protobuf.ByteString getAbnfStringsBytes(int index); } - /** - * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar} - */ - public static final class ABNFGrammar extends - com.google.protobuf.GeneratedMessageV3 implements + /** Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar} */ + public static final class ABNFGrammar extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) ABNFGrammarOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ABNFGrammar.newBuilder() to construct. private ABNFGrammar(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ABNFGrammar() { abnfStrings_ = 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 ABNFGrammar(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_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_ABNFGrammar_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.class, + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder.class); } public static final int ABNF_STRINGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList abnfStrings_; /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @return A list containing the abnfStrings. */ - public com.google.protobuf.ProtocolStringList - getAbnfStringsList() { + public com.google.protobuf.ProtocolStringList getAbnfStringsList() { return abnfStrings_; } /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @return The count of abnfStrings. */ public int getAbnfStringsCount() { return abnfStrings_.size(); } /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ @@ -182,21 +221,24 @@ public java.lang.String getAbnfStrings(int index) { return abnfStrings_.get(index); } /** + * + * *
      * All declarations and rules of an ABNF grammar broken up into multiple
      * strings that will end up concatenated.
      * 
* * repeated string abnf_strings = 1; + * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - public com.google.protobuf.ByteString - getAbnfStringsBytes(int index) { + public com.google.protobuf.ByteString getAbnfStringsBytes(int index) { return abnfStrings_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,8 +250,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 < abnfStrings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, abnfStrings_.getRaw(i)); } @@ -238,15 +279,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.SpeechAdaptation.ABNFGrammar)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar other = (com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) obj; + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar other = + (com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) obj; - if (!getAbnfStringsList() - .equals(other.getAbnfStringsList())) return false; + if (!getAbnfStringsList().equals(other.getAbnfStringsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,87 +309,94 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar 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.ABNFGrammar prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar 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 @@ -357,36 +405,34 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_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_ABNFGrammar_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.class, + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -397,13 +443,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_SpeechAdaptation_ABNFGrammar_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor; } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar + getDefaultInstanceForType() { return com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance(); } @@ -418,14 +465,18 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result = new com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar(this); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result = + new com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result) { if (((bitField0_ & 0x00000001) != 0)) { abnfStrings_ = abnfStrings_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -433,7 +484,8 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.Speech result.abnfStrings_ = abnfStrings_; } - private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result) { + private void buildPartial0( + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar result) { int from_bitField0_ = bitField0_; } @@ -441,46 +493,52 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.AB 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.SpeechAdaptation.ABNFGrammar) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar other) { - if (other == com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar other) { + if (other + == com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) + return this; if (!other.abnfStrings_.isEmpty()) { if (abnfStrings_.isEmpty()) { abnfStrings_ = other.abnfStrings_; @@ -517,18 +575,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAbnfStringsIsMutable(); - abnfStrings_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAbnfStringsIsMutable(); + abnfStrings_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -538,47 +598,58 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList abnfStrings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList abnfStrings_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAbnfStringsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { abnfStrings_ = new com.google.protobuf.LazyStringArrayList(abnfStrings_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @return A list containing the abnfStrings. */ - public com.google.protobuf.ProtocolStringList - getAbnfStringsList() { + public com.google.protobuf.ProtocolStringList getAbnfStringsList() { return abnfStrings_.getUnmodifiableView(); } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @return The count of abnfStrings. */ public int getAbnfStringsCount() { return abnfStrings_.size(); } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param index The index of the element to return. * @return The abnfStrings at the given index. */ @@ -586,81 +657,95 @@ public java.lang.String getAbnfStrings(int index) { return abnfStrings_.get(index); } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param index The index of the value to return. * @return The bytes of the abnfStrings at the given index. */ - public com.google.protobuf.ByteString - getAbnfStringsBytes(int index) { + public com.google.protobuf.ByteString getAbnfStringsBytes(int index) { return abnfStrings_.getByteString(index); } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param index The index to set the value at. * @param value The abnfStrings to set. * @return This builder for chaining. */ - public Builder setAbnfStrings( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAbnfStrings(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAbnfStringsIsMutable(); abnfStrings_.set(index, value); onChanged(); return this; } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param value The abnfStrings to add. * @return This builder for chaining. */ - public Builder addAbnfStrings( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAbnfStrings(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAbnfStringsIsMutable(); abnfStrings_.add(value); onChanged(); return this; } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param values The abnfStrings to add. * @return This builder for chaining. */ - public Builder addAllAbnfStrings( - java.lang.Iterable values) { + public Builder addAllAbnfStrings(java.lang.Iterable values) { ensureAbnfStringsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, abnfStrings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, abnfStrings_); onChanged(); return this; } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @return This builder for chaining. */ public Builder clearAbnfStrings() { @@ -670,24 +755,29 @@ public Builder clearAbnfStrings() { return this; } /** + * + * *
        * All declarations and rules of an ABNF grammar broken up into multiple
        * strings that will end up concatenated.
        * 
* * repeated string abnf_strings = 1; + * * @param value The bytes of the abnfStrings to add. * @return This builder for chaining. */ - public Builder addAbnfStringsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAbnfStringsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAbnfStringsIsMutable(); abnfStrings_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -700,41 +790,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar) - private static final com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar DEFAULT_INSTANCE; + private static final com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar(); } - public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getDefaultInstance() { + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ABNFGrammar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ABNFGrammar parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -746,16 +839,19 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int PHRASE_SETS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") 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
@@ -769,6 +865,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
@@ -778,11 +876,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
@@ -796,6 +896,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
@@ -809,6 +911,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
@@ -818,43 +922,54 @@ 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;
+
   @SuppressWarnings("serial")
   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. */ @@ -862,23 +977,29 @@ 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; + @SuppressWarnings("serial") 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
@@ -893,6 +1014,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
@@ -903,11 +1026,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
@@ -922,6 +1047,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
@@ -936,6 +1063,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
@@ -954,6 +1083,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr
   public static final int ABNF_GRAMMAR_FIELD_NUMBER = 4;
   private com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnfGrammar_;
   /**
+   *
+   *
    * 
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -961,6 +1092,7 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return Whether the abnfGrammar field is set. */ @java.lang.Override @@ -968,6 +1100,8 @@ public boolean hasAbnfGrammar() { return abnfGrammar_ != null; } /** + * + * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -975,13 +1109,18 @@ public boolean hasAbnfGrammar() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return The abnfGrammar. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getAbnfGrammar() { - return abnfGrammar_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_; + return abnfGrammar_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() + : abnfGrammar_; } /** + * + * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -991,11 +1130,15 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getAbnfGra
    * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder getAbnfGrammarOrBuilder() {
-    return abnfGrammar_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_;
+  public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder
+      getAbnfGrammarOrBuilder() {
+    return abnfGrammar_ == null
+        ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()
+        : abnfGrammar_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1007,8 +1150,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));
     }
@@ -1031,8 +1173,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;
@@ -1043,12 +1184,10 @@ 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));
     }
     if (abnfGrammar_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getAbnfGrammar());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAbnfGrammar());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1058,23 +1197,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.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 (hasAbnfGrammar() != other.hasAbnfGrammar()) return false;
     if (hasAbnfGrammar()) {
-      if (!getAbnfGrammar()
-          .equals(other.getAbnfGrammar())) return false;
+      if (!getAbnfGrammar().equals(other.getAbnfGrammar())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -1109,129 +1245,135 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1261,9 +1403,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 @@ -1282,14 +1424,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.SpeechAdaptation result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1p1beta1.SpeechAdaptation result) { if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -1318,9 +1464,8 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.Speech private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechAdaptation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000008) != 0)) { - result.abnfGrammar_ = abnfGrammarBuilder_ == null - ? abnfGrammar_ - : abnfGrammarBuilder_.build(); + result.abnfGrammar_ = + abnfGrammarBuilder_ == null ? abnfGrammar_ : abnfGrammarBuilder_.build(); } } @@ -1328,38 +1473,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechAdaptation re 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; @@ -1367,7 +1513,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()) { @@ -1386,9 +1533,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_); } @@ -1422,9 +1570,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_); } @@ -1459,51 +1608,52 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1p1beta1.PhraseSet m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), - extensionRegistry); - if (phraseSetsBuilder_ == null) { - ensurePhraseSetsIsMutable(); - phraseSets_.add(m); - } else { - phraseSetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensurePhraseSetReferencesIsMutable(); - phraseSetReferences_.add(s); - break; - } // case 18 - case 26: { - com.google.cloud.speech.v1p1beta1.CustomClass m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.CustomClass.parser(), - extensionRegistry); - if (customClassesBuilder_ == null) { - ensureCustomClassesIsMutable(); - customClasses_.add(m); - } else { - customClassesBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: { - input.readMessage( - getAbnfGrammarFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.speech.v1p1beta1.PhraseSet m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); + if (phraseSetsBuilder_ == null) { + ensurePhraseSetsIsMutable(); + phraseSets_.add(m); + } else { + phraseSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePhraseSetReferencesIsMutable(); + phraseSetReferences_.add(s); + break; + } // case 18 + case 26: + { + com.google.cloud.speech.v1p1beta1.CustomClass m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); + if (customClassesBuilder_ == null) { + ensureCustomClassesIsMutable(); + customClasses_.add(m); + } else { + customClassesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage(getAbnfGrammarFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1513,21 +1663,29 @@ public Builder mergeFrom( } // finally 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
@@ -1544,6 +1702,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
@@ -1560,6 +1720,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
@@ -1576,6 +1738,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
@@ -1584,8 +1748,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();
@@ -1599,6 +1762,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
@@ -1619,6 +1784,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
@@ -1641,6 +1808,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
@@ -1649,8 +1818,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();
@@ -1664,6 +1832,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
@@ -1684,6 +1854,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
@@ -1704,6 +1876,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
@@ -1716,8 +1890,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);
@@ -1725,6 +1898,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
@@ -1744,6 +1919,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
@@ -1763,6 +1940,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
@@ -1771,11 +1950,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
@@ -1784,14 +1964,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
@@ -1800,8 +1982,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 {
@@ -1809,6 +1991,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
@@ -1818,10 +2002,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
@@ -1830,12 +2016,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
@@ -1844,61 +2031,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. */ @@ -1906,76 +2109,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhraseSetReferences(int index, java.lang.String value) { + if (value == null) { + 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addPhraseSetReferences(java.lang.String value) { + if (value == null) { + 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() { @@ -1985,17 +2207,22 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addPhraseSetReferencesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); @@ -2004,18 +2231,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
@@ -2033,6 +2267,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
@@ -2050,6 +2286,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
@@ -2067,6 +2305,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
@@ -2091,6 +2331,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
@@ -2112,6 +2354,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
@@ -2135,6 +2379,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
@@ -2159,6 +2405,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
@@ -2180,6 +2428,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
@@ -2201,6 +2451,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
@@ -2214,8 +2466,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);
@@ -2223,6 +2474,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
@@ -2243,6 +2496,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
@@ -2263,6 +2518,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
@@ -2277,6 +2534,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
@@ -2289,11 +2548,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
@@ -2303,8 +2565,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 {
@@ -2312,6 +2574,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
@@ -2322,10 +2586,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
@@ -2337,10 +2603,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
@@ -2350,16 +2618,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(),
@@ -2371,8 +2645,13 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBui
 
     private com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnfGrammar_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder> abnfGrammarBuilder_;
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar,
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder>
+        abnfGrammarBuilder_;
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2380,12 +2659,15 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBui
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return Whether the abnfGrammar field is set. */ public boolean hasAbnfGrammar() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2393,16 +2675,21 @@ public boolean hasAbnfGrammar() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return The abnfGrammar. */ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getAbnfGrammar() { if (abnfGrammarBuilder_ == null) { - return abnfGrammar_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_; + return abnfGrammar_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() + : abnfGrammar_; } else { return abnfGrammarBuilder_.getMessage(); } } /** + * + * *
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2411,7 +2698,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getAbnfGra
      *
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
-    public Builder setAbnfGrammar(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar value) {
+    public Builder setAbnfGrammar(
+        com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar value) {
       if (abnfGrammarBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2425,6 +2713,8 @@ public Builder setAbnfGrammar(com.google.cloud.speech.v1p1beta1.SpeechAdaptation
       return this;
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2445,6 +2735,8 @@ public Builder setAbnfGrammar(
       return this;
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2453,11 +2745,14 @@ public Builder setAbnfGrammar(
      *
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
-    public Builder mergeAbnfGrammar(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar value) {
+    public Builder mergeAbnfGrammar(
+        com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar value) {
       if (abnfGrammarBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          abnfGrammar_ != null &&
-          abnfGrammar_ != com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && abnfGrammar_ != null
+            && abnfGrammar_
+                != com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar
+                    .getDefaultInstance()) {
           getAbnfGrammarBuilder().mergeFrom(value);
         } else {
           abnfGrammar_ = value;
@@ -2470,6 +2765,8 @@ public Builder mergeAbnfGrammar(com.google.cloud.speech.v1p1beta1.SpeechAdaptati
       return this;
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2489,6 +2786,8 @@ public Builder clearAbnfGrammar() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2497,12 +2796,15 @@ public Builder clearAbnfGrammar() {
      *
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
-    public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder getAbnfGrammarBuilder() {
+    public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder
+        getAbnfGrammarBuilder() {
       bitField0_ |= 0x00000008;
       onChanged();
       return getAbnfGrammarFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2511,15 +2813,19 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder ge
      *
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
-    public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder getAbnfGrammarOrBuilder() {
+    public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder
+        getAbnfGrammarOrBuilder() {
       if (abnfGrammarBuilder_ != null) {
         return abnfGrammarBuilder_.getMessageOrBuilder();
       } else {
-        return abnfGrammar_ == null ?
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance() : abnfGrammar_;
+        return abnfGrammar_ == null
+            ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.getDefaultInstance()
+            : abnfGrammar_;
       }
     }
     /**
+     *
+     *
      * 
      * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
      * comprised by a set of derivation rules.
@@ -2529,21 +2835,24 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder g
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder> 
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar,
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder>
         getAbnfGrammarFieldBuilder() {
       if (abnfGrammarBuilder_ == null) {
-        abnfGrammarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder>(
-                getAbnfGrammar(),
-                getParentForChildren(),
-                isClean());
+        abnfGrammarBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar,
+                com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar.Builder,
+                com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammarOrBuilder>(
+                getAbnfGrammar(), getParentForChildren(), isClean());
         abnfGrammar_ = null;
       }
       return abnfGrammarBuilder_;
     }
+
     @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);
     }
 
@@ -2553,12 +2862,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();
   }
@@ -2567,27 +2876,27 @@ 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 {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  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 {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2602,6 +2911,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v1p1beta1.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java
similarity index 67%
rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java
rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java
index 2395ba4ad4ff..25386dead1cf 100644
--- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java
+++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfo.java
@@ -1,62 +1,84 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License 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;
 
 /**
+ *
+ *
  * 
  * Information on speech adaptation use in results
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptationInfo} */ -public final class SpeechAdaptationInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechAdaptationInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) SpeechAdaptationInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechAdaptationInfo.newBuilder() to construct. private SpeechAdaptationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechAdaptationInfo() { timeoutMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechAdaptationInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.class, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder.class); } public static final int ADAPTATION_TIMEOUT_FIELD_NUMBER = 1; private boolean adaptationTimeout_ = false; /** + * + * *
    * Whether there was a timeout when applying speech adaptation. If true,
    * adaptation had no effect in the response transcript.
    * 
* * bool adaptation_timeout = 1; + * * @return The adaptationTimeout. */ @java.lang.Override @@ -65,15 +87,19 @@ public boolean getAdaptationTimeout() { } public static final int TIMEOUT_MESSAGE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object timeoutMessage_ = ""; /** + * + * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; + * * @return The timeoutMessage. */ @java.lang.Override @@ -82,30 +108,30 @@ public java.lang.String getTimeoutMessage() { 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(); timeoutMessage_ = s; return s; } } /** + * + * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; + * * @return The bytes for timeoutMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getTimeoutMessageBytes() { + public com.google.protobuf.ByteString getTimeoutMessageBytes() { java.lang.Object ref = timeoutMessage_; 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); timeoutMessage_ = b; return b; } else { @@ -114,6 +140,7 @@ public java.lang.String getTimeoutMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -125,8 +152,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 (adaptationTimeout_ != false) { output.writeBool(1, adaptationTimeout_); } @@ -143,8 +169,7 @@ public int getSerializedSize() { size = 0; if (adaptationTimeout_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, adaptationTimeout_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, adaptationTimeout_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeoutMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, timeoutMessage_); @@ -157,17 +182,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.SpeechAdaptationInfo)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo other = (com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) obj; + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo other = + (com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) obj; - if (getAdaptationTimeout() - != other.getAdaptationTimeout()) return false; - if (!getTimeoutMessage() - .equals(other.getTimeoutMessage())) return false; + if (getAdaptationTimeout() != other.getAdaptationTimeout()) return false; + if (!getTimeoutMessage().equals(other.getTimeoutMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -180,8 +204,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ADAPTATION_TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAdaptationTimeout()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAdaptationTimeout()); hash = (37 * hash) + TIMEOUT_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getTimeoutMessage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -190,129 +213,136 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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.SpeechAdaptationInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo 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.SpeechAdaptationInfo prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo 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; } /** + * + * *
    * Information on speech adaptation use in results
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptationInfo} */ - 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.SpeechAdaptationInfo) com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.class, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +353,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_SpeechAdaptationInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; } @java.lang.Override @@ -344,8 +374,11 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo result = new com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo result = + new com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -364,38 +397,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInf 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.SpeechAdaptationInfo) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) other); } else { super.mergeFrom(other); return this; @@ -403,7 +437,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo other) { - if (other == com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) + return this; if (other.getAdaptationTimeout() != false) { setAdaptationTimeout(other.getAdaptationTimeout()); } @@ -438,22 +473,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - adaptationTimeout_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 34: { - timeoutMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + adaptationTimeout_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 34: + { + timeoutMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -463,16 +501,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean adaptationTimeout_ ; + private boolean adaptationTimeout_; /** + * + * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; + * * @return The adaptationTimeout. */ @java.lang.Override @@ -480,29 +522,35 @@ public boolean getAdaptationTimeout() { return adaptationTimeout_; } /** + * + * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; + * * @param value The adaptationTimeout to set. * @return This builder for chaining. */ public Builder setAdaptationTimeout(boolean value) { - + adaptationTimeout_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Whether there was a timeout when applying speech adaptation. If true,
      * adaptation had no effect in the response transcript.
      * 
* * bool adaptation_timeout = 1; + * * @return This builder for chaining. */ public Builder clearAdaptationTimeout() { @@ -514,19 +562,21 @@ public Builder clearAdaptationTimeout() { private java.lang.Object timeoutMessage_ = ""; /** + * + * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; + * * @return The timeoutMessage. */ public java.lang.String getTimeoutMessage() { java.lang.Object ref = timeoutMessage_; 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(); timeoutMessage_ = s; return s; @@ -535,21 +585,22 @@ public java.lang.String getTimeoutMessage() { } } /** + * + * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; + * * @return The bytes for timeoutMessage. */ - public com.google.protobuf.ByteString - getTimeoutMessageBytes() { + public com.google.protobuf.ByteString getTimeoutMessageBytes() { java.lang.Object ref = timeoutMessage_; 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); timeoutMessage_ = b; return b; } else { @@ -557,30 +608,37 @@ public java.lang.String getTimeoutMessage() { } } /** + * + * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; + * * @param value The timeoutMessage to set. * @return This builder for chaining. */ - public Builder setTimeoutMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTimeoutMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } timeoutMessage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; + * * @return This builder for chaining. */ public Builder clearTimeoutMessage() { @@ -590,27 +648,31 @@ public Builder clearTimeoutMessage() { return this; } /** + * + * *
      * If set, returns a message specifying which part of the speech adaptation
      * request timed out.
      * 
* * string timeout_message = 4; + * * @param value The bytes for timeoutMessage to set. * @return This builder for chaining. */ - public Builder setTimeoutMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTimeoutMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); timeoutMessage_ = value; bitField0_ |= 0x00000002; 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); } @@ -620,12 +682,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) private static final com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo(); } @@ -634,27 +696,27 @@ public static com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechAdaptationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechAdaptationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -669,6 +731,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java similarity index 59% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java index 0a1b98bbef2e..bd5508cea1c6 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationInfoOrBuilder.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/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface SpeechAdaptationInfoOrBuilder extends +public interface SpeechAdaptationInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechAdaptationInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Whether there was a timeout when applying speech adaptation. If true,
    * adaptation had no effect in the response transcript.
    * 
* * bool adaptation_timeout = 1; + * * @return The adaptationTimeout. */ boolean getAdaptationTimeout(); /** + * + * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; + * * @return The timeoutMessage. */ java.lang.String getTimeoutMessage(); /** + * + * *
    * If set, returns a message specifying which part of the speech adaptation
    * request timed out.
    * 
* * string timeout_message = 4; + * * @return The bytes for timeoutMessage. */ - com.google.protobuf.ByteString - getTimeoutMessageBytes(); + com.google.protobuf.ByteString getTimeoutMessageBytes(); } diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java similarity index 83% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java index 037c2dbd76f7..637902e79fb0 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java +++ b/java-speech/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,10 +205,11 @@ 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);
 
   /**
+   *
+   *
    * 
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -169,10 +217,13 @@ com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return Whether the abnfGrammar field is set. */ boolean hasAbnfGrammar(); /** + * + * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
@@ -180,10 +231,13 @@ com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4; + * * @return The abnfGrammar. */ com.google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar getAbnfGrammar(); /** + * + * *
    * Augmented Backus-Naur form (ABNF) is a standardized grammar notation
    * comprised by a set of derivation rules.
diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java
new file mode 100644
index 000000000000..2d3104cbb88a
--- /dev/null
+++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
similarity index 78%
rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
index 2d92e1404445..6ae937dad075 100644
--- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
+++ b/java-speech/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,48 +28,53 @@
  *
  * 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;
   }
-  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;
+
   @SuppressWarnings("serial")
   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
@@ -68,13 +90,15 @@ protected java.lang.Object newInstance(
    * 
* * 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
@@ -90,12 +114,15 @@ protected java.lang.Object newInstance(
    * 
* * 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
@@ -111,6 +138,7 @@ public int getPhrasesCount() {
    * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -118,6 +146,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
@@ -133,17 +163,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_ = 0F; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -156,6 +188,7 @@ public java.lang.String getPhrases(int index) {
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -164,6 +197,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +209,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)); } @@ -201,8 +234,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -212,18 +244,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -240,104 +271,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) + getUnknownFields().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.
@@ -345,33 +382,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -383,9 +419,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
@@ -404,14 +440,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.SpeechContext result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v1p1beta1.SpeechContext result) {
       if (((bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
         bitField0_ = (bitField0_ & ~0x00000001);
@@ -430,38 +470,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechContext resul
     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;
@@ -469,7 +510,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_;
@@ -509,23 +551,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensurePhrasesIsMutable();
-              phrases_.add(s);
-              break;
-            } // case 10
-            case 37: {
-              boost_ = input.readFloat();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 37
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensurePhrasesIsMutable();
+                phrases_.add(s);
+                break;
+              } // case 10
+            case 37:
+              {
+                boost_ = input.readFloat();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 37
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -535,16 +580,21 @@ public Builder mergeFrom(
       } // finally
       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
@@ -560,13 +610,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
@@ -582,12 +634,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
@@ -603,6 +658,7 @@ public int getPhrasesCount() {
      * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -610,6 +666,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
@@ -625,14 +683,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
@@ -648,19 +708,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhrases(int index, java.lang.String value) { + if (value == null) { + 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
@@ -676,18 +740,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) { - if (value == null) { throw new NullPointerException(); } + public Builder addPhrases(java.lang.String value) { + if (value == null) { + 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
@@ -703,18 +771,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
@@ -730,6 +799,7 @@ public Builder addAllPhrases(
      * 
* * repeated string phrases = 1; + * * @return This builder for chaining. */ public Builder clearPhrases() { @@ -739,6 +809,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
@@ -754,12 +826,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensurePhrasesIsMutable(); phrases_.add(value); @@ -767,8 +841,10 @@ public Builder addPhrasesBytes( 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
@@ -781,6 +857,7 @@ public Builder addPhrasesBytes(
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -788,6 +865,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
@@ -800,17 +879,20 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000002; 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
@@ -823,6 +905,7 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { @@ -831,9 +914,9 @@ public Builder clearBoost() { 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); } @@ -843,12 +926,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(); } @@ -857,27 +940,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -892,6 +975,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java similarity index 85% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java index 1daae97d3d7c..9c1e1ba589d1 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java +++ b/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java new file mode 100644 index 000000000000..c0e43bb88557 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java @@ -0,0 +1,513 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_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\"\373\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\022S\n\026" + + "speech_adaptation_info\030\007 \001(\01323.google.cl" + + "oud.speech.v1p1beta1.SpeechAdaptationInf" + + "o\022\022\n\nrequest_id\030\010 \001(\003\"\376\002\n\034LongRunningRec" + + "ognizeResponse\022G\n\007results\030\002 \003(\01326.google" + + ".cloud.speech.v1p1beta1.SpeechRecognitio" + + "nResult\0224\n\021total_billed_time\030\003 \001(\0132\031.goo" + + "gle.protobuf.Duration\022L\n\routput_config\030\006" + + " \001(\01325.google.cloud.speech.v1p1beta1.Tra" + + "nscriptOutputConfig\022(\n\014output_error\030\007 \001(" + + "\0132\022.google.rpc.Status\022S\n\026speech_adaptati" + + "on_info\030\010 \001(\01323.google.cloud.speech.v1p1" + + "beta1.SpeechAdaptationInfo\022\022\n\nrequest_id" + + "\030\t \001(\003\"\203\002\n\034LongRunningRecognizeMetadata\022" + + "\030\n\020progress_percent\030\001 \001(\005\022.\n\nstart_time\030" + + "\002 \001(\0132\032.google.protobuf.Timestamp\0224\n\020las" + + "t_update_time\030\003 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022\020\n\003uri\030\004 \001(\tB\003\340A\003\022Q\n\routput_conf" + + "ig\030\005 \001(\01325.google.cloud.speech.v1p1beta1" + + ".TranscriptOutputConfigB\003\340A\003\"\336\003\n\032Streami" + + "ngRecognizeResponse\022!\n\005error\030\001 \001(\0132\022.goo" + + "gle.rpc.Status\022J\n\007results\030\002 \003(\01329.google" + + ".cloud.speech.v1p1beta1.StreamingRecogni" + + "tionResult\022d\n\021speech_event_type\030\004 \001(\0162I." + + "google.cloud.speech.v1p1beta1.StreamingR" + + "ecognizeResponse.SpeechEventType\0224\n\021tota" + + "l_billed_time\030\005 \001(\0132\031.google.protobuf.Du" + + "ration\022S\n\026speech_adaptation_info\030\t \001(\01323" + + ".google.cloud.speech.v1p1beta1.SpeechAda" + + "ptationInfo\022\022\n\nrequest_id\030\n \001(\003\"L\n\017Speec" + + "hEventType\022\034\n\030SPEECH_EVENT_UNSPECIFIED\020\000" + + "\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\371\001\n\032Stream" + + "ingRecognitionResult\022Q\n\014alternatives\030\001 \003" + + "(\0132;.google.cloud.speech.v1p1beta1.Speec" + + "hRecognitionAlternative\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\013chan" + + "nel_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A" + + "\003\"\321\001\n\027SpeechRecognitionResult\022Q\n\014alterna" + + "tives\030\001 \003(\0132;.google.cloud.speech.v1p1be" + + "ta1.SpeechRecognitionAlternative\022\023\n\013chan" + + "nel_tag\030\002 \001(\005\0222\n\017result_end_time\030\004 \001(\0132\031" + + ".google.protobuf.Duration\022\032\n\rlanguage_co" + + "de\030\005 \001(\tB\003\340A\003\"~\n\034SpeechRecognitionAltern" + + "ative\022\022\n\ntranscript\030\001 \001(\t\022\022\n\nconfidence\030" + + "\002 \001(\002\0226\n\005words\030\003 \003(\0132\'.google.cloud.spee" + + "ch.v1p1beta1.WordInfo\"\242\001\n\010WordInfo\022-\n\nst" + + "art_time\030\001 \001(\0132\031.google.protobuf.Duratio" + + "n\022+\n\010end_time\030\002 \001(\0132\031.google.protobuf.Du" + + "ration\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\003\"K\n\024SpeechAdap" + + "tationInfo\022\032\n\022adaptation_timeout\030\001 \001(\010\022\027" + + "\n\017timeout_message\030\004 \001(\t2\202\005\n\006Speech\022\245\001\n\tR" + + "ecognize\022/.google.cloud.speech.v1p1beta1" + + ".RecognizeRequest\0320.google.cloud.speech." + + "v1p1beta1.RecognizeResponse\"5\202\323\344\223\002 \"\033/v1" + + "p1beta1/speech:recognize:\001*\332A\014config,aud" + + "io\022\362\001\n\024LongRunningRecognize\022:.google.clo" + + "ud.speech.v1p1beta1.LongRunningRecognize" + + "Request\032\035.google.longrunning.Operation\"\177" + + "\202\323\344\223\002+\"&/v1p1beta1/speech:longrunningrec" + + "ognize:\001*\332A\014config,audio\312A<\n\034LongRunning" + + "RecognizeResponse\022\034LongRunningRecognizeM" + + "etadata\022\217\001\n\022StreamingRecognize\0228.google." + + "cloud.speech.v1p1beta1.StreamingRecogniz" + + "eRequest\0329.google.cloud.speech.v1p1beta1" + + ".StreamingRecognizeResponse\"\000(\0010\001\032I\312A\025sp" + + "eech.googleapis.com\322A.https://www.google" + + "apis.com/auth/cloud-platformB\200\001\n!com.goo" + + "gle.cloud.speech.v1p1beta1B\013SpeechProtoP" + + "\001ZCgoogle.golang.org/genproto/googleapis" + + "/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", "SpeechAdaptationInfo", "RequestId", + }); + 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", + "SpeechAdaptationInfo", + "RequestId", + }); + 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", + "SpeechAdaptationInfo", + "RequestId", + }); + 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", + }); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor, + new java.lang.String[] { + "AdaptationTimeout", "TimeoutMessage", + }); + 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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java similarity index 74% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java index 180eb2a0b33f..e6ddb84c1de8 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java +++ b/java-speech/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,33 +44,37 @@ 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; } - 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; + @SuppressWarnings("serial") 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
@@ -61,6 +83,7 @@ protected java.lang.Object newInstance(
    * 
* * string transcript = 1; + * * @return The transcript. */ @java.lang.Override @@ -69,14 +92,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
@@ -85,16 +109,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 { @@ -105,6 +128,8 @@ public java.lang.String getTranscript() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_ = 0F; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -116,6 +141,7 @@ public java.lang.String getTranscript() {
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -124,9 +150,12 @@ public float getConfidence() { } public static final int WORDS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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
@@ -140,6 +169,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
@@ -149,11 +180,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
@@ -167,6 +200,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
@@ -180,6 +215,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
@@ -189,12 +226,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;
@@ -206,8 +243,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_);
     }
@@ -230,12 +266,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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -245,20 +279,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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -273,8 +305,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();
@@ -285,129 +316,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,13 +463,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(); } @@ -446,14 +485,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result) { if (wordsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -465,7 +508,8 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.Speech } } - private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result) { + private void buildPartial0( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.transcript_ = transcript_; @@ -479,38 +523,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAl 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; @@ -518,7 +563,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_; bitField0_ |= 0x00000001; @@ -545,9 +592,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlte wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000004); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWordsFieldBuilder() : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWordsFieldBuilder() + : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -579,35 +627,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - transcript_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - case 26: { - com.google.cloud.speech.v1p1beta1.WordInfo m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.WordInfo.parser(), - extensionRegistry); - if (wordsBuilder_ == null) { - ensureWordsIsMutable(); - words_.add(m); - } else { - wordsBuilder_.addMessage(m); - } - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + transcript_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 26: + { + com.google.cloud.speech.v1p1beta1.WordInfo m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.WordInfo.parser(), extensionRegistry); + if (wordsBuilder_ == null) { + ensureWordsIsMutable(); + words_.add(m); + } else { + wordsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -617,10 +668,13 @@ public Builder mergeFrom( } // finally 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
@@ -629,13 +683,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; @@ -644,6 +698,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
@@ -652,15 +708,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 { @@ -668,6 +723,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
@@ -676,18 +733,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranscript(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } transcript_ = value; bitField0_ |= 0x00000001; 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
@@ -696,6 +757,7 @@ public Builder setTranscript(
      * 
* * string transcript = 1; + * * @return This builder for chaining. */ public Builder clearTranscript() { @@ -705,6 +767,8 @@ public Builder clearTranscript() { return this; } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -713,12 +777,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); transcript_ = value; bitField0_ |= 0x00000001; @@ -726,8 +792,10 @@ public Builder setTranscriptBytes( 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
@@ -739,6 +807,7 @@ public Builder setTranscriptBytes(
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -746,6 +815,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
@@ -757,17 +828,20 @@ public float getConfidence() {
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000002; 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
@@ -779,6 +853,7 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -789,18 +864,24 @@ public Builder clearConfidence() { } private java.util.List words_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000004; - } + } } 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
@@ -817,6 +898,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
@@ -833,6 +916,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
@@ -849,6 +934,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
@@ -857,8 +944,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();
@@ -872,6 +958,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
@@ -892,6 +980,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
@@ -914,6 +1004,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
@@ -922,8 +1014,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();
@@ -937,6 +1028,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
@@ -945,8 +1038,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());
@@ -957,6 +1049,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
@@ -977,6 +1071,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
@@ -989,8 +1085,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);
@@ -998,6 +1093,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
@@ -1017,6 +1114,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
@@ -1036,6 +1135,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
@@ -1044,11 +1145,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
@@ -1057,14 +1159,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
@@ -1073,8 +1177,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 {
@@ -1082,6 +1186,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
@@ -1091,10 +1197,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
@@ -1103,12 +1211,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
@@ -1117,27 +1226,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_ & 0x00000004) != 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_ & 0x00000004) != 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);
     }
 
@@ -1147,41 +1259,43 @@ 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 {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  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 {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1193,9 +1307,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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
similarity index 79%
rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
index 24dc349ab976..8b8eb60eb325 100644
--- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
+++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
similarity index 72%
rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
index 4b1ae85bc937..8068ee456a05 100644
--- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
+++ b/java-speech/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,33 +44,38 @@ 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; } - 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; + @SuppressWarnings("serial") - 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`).
@@ -60,13 +83,17 @@ protected java.lang.Object newInstance(
    * 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`).
@@ -74,14 +101,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`).
@@ -89,13 +120,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`).
@@ -103,13 +137,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`).
@@ -117,17 +154,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_ = 0; /** + * + * *
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -135,6 +175,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g
    * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -145,12 +186,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 @@ -158,19 +202,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.
@@ -180,13 +231,18 @@ public com.google.protobuf.Duration getResultEndTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
-    return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
+    return resultEndTime_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : resultEndTime_;
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
+
   @SuppressWarnings("serial")
   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
@@ -194,6 +250,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -202,14 +259,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
@@ -217,16 +275,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 { @@ -235,6 +292,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,8 +304,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)); } @@ -270,16 +327,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_); @@ -292,24 +346,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,129 +390,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -484,9 +542,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 @@ -505,14 +563,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult result) { if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -530,9 +592,8 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRe result.channelTag_ = channelTag_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.resultEndTime_ = resultEndTimeBuilder_ == null - ? resultEndTime_ - : resultEndTimeBuilder_.build(); + result.resultEndTime_ = + resultEndTimeBuilder_ == null ? resultEndTime_ : resultEndTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.languageCode_ = languageCode_; @@ -543,38 +604,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRe 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; @@ -582,7 +644,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()) { @@ -601,9 +664,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_); } @@ -646,42 +710,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative m = - input.readMessage( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), - extensionRegistry); - if (alternativesBuilder_ == null) { - ensureAlternativesIsMutable(); - alternatives_.add(m); - } else { - alternativesBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: { - channelTag_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 34: { - input.readMessage( - getResultEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative m = + input.readMessage( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), + extensionRegistry); + if (alternativesBuilder_ == null) { + ensureAlternativesIsMutable(); + alternatives_.add(m); + } else { + alternativesBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + channelTag_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 34: + { + input.readMessage(getResultEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -691,21 +758,30 @@ public Builder mergeFrom( } // finally 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`).
@@ -713,9 +789,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 { @@ -723,6 +801,8 @@ public java.util.List * May contain one or more recognition hypotheses (up to the * maximum specified in `max_alternatives`). @@ -730,7 +810,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) { @@ -740,6 +821,8 @@ public int getAlternativesCount() { } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -747,9 +830,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 { @@ -757,6 +842,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -764,7 +851,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) { @@ -781,6 +869,8 @@ public Builder setAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -788,10 +878,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()); @@ -802,6 +894,8 @@ public Builder setAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -809,9 +903,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(); @@ -825,6 +921,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`).
@@ -832,7 +930,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) { @@ -849,6 +948,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -856,7 +957,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) { @@ -870,6 +972,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -877,10 +981,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()); @@ -891,6 +997,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -898,14 +1006,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); @@ -913,6 +1022,8 @@ public Builder addAllAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -920,7 +1031,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) { @@ -933,6 +1045,8 @@ public Builder clearAlternatives() { return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -940,7 +1054,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) { @@ -953,6 +1068,8 @@ public Builder removeAlternatives(int index) { return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -960,13 +1077,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`).
@@ -974,16 +1094,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`).
@@ -991,10 +1115,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 { @@ -1002,6 +1128,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1009,13 +1137,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`).
@@ -1023,14 +1156,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`).
@@ -1038,29 +1176,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.
@@ -1068,6 +1212,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder ad
      * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -1075,6 +1220,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.
@@ -1082,17 +1229,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1100,6 +1250,7 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; + * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1111,36 +1262,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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.
@@ -1162,6 +1326,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.
@@ -1169,8 +1335,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();
       } else {
@@ -1181,6 +1346,8 @@ public Builder setResultEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1190,9 +1357,9 @@ public Builder setResultEndTime(
      */
     public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          resultEndTime_ != null &&
-          resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && resultEndTime_ != null
+            && resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndTimeBuilder().mergeFrom(value);
         } else {
           resultEndTime_ = value;
@@ -1205,6 +1372,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.
@@ -1223,6 +1392,8 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1236,6 +1407,8 @@ public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1247,11 +1420,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.
@@ -1260,14 +1436,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_;
@@ -1275,6 +1454,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
@@ -1282,13 +1463,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; @@ -1297,6 +1478,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
@@ -1304,15 +1487,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 { @@ -1320,6 +1502,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
@@ -1327,18 +1511,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000008; 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
@@ -1346,6 +1534,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1355,6 +1544,8 @@ public Builder clearLanguageCode() { 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
@@ -1362,21 +1553,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000008; 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); } @@ -1386,12 +1579,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(); } @@ -1400,27 +1593,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1435,6 +1628,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java similarity index 79% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java index 55e3c978e3c9..b836a20e796b 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java +++ b/java-speech/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/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java new file mode 100644 index 000000000000..71f4e12c7685 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java @@ -0,0 +1,190 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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_SpeechAdaptation_ABNFGrammar_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_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}\"\322\002\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\022" + + "Q\n\014abnf_grammar\030\004 \001(\0132;.google.cloud.spe" + + "ech.v1p1beta1.SpeechAdaptation.ABNFGramm" + + "ar\032#\n\013ABNFGrammar\022\024\n\014abnf_strings\030\001 \003(\t\"" + + "\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", "AbnfGrammar", + }); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor = + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor, + new java.lang.String[] { + "AbnfStrings", + }); + 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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java similarity index 68% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java index 08f9f8234503..f88b8d2f1c25 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java +++ b/java-speech/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,52 +28,58 @@
  *
  * 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;
   }
-  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 @@ -64,34 +87,49 @@ 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() { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 2; private boolean singleUtterance_ = false; /** + * + * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -114,6 +152,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB
    * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ @java.lang.Override @@ -124,6 +163,8 @@ public boolean getSingleUtterance() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 3; private boolean interimResults_ = false; /** + * + * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -132,6 +173,7 @@ public boolean getSingleUtterance() {
    * 
* * bool interim_results = 3; + * * @return The interimResults. */ @java.lang.Override @@ -140,6 +182,7 @@ public boolean getInterimResults() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +194,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()); } @@ -172,16 +214,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -191,22 +230,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,107 +260,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) + getUnknownFields().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.
@@ -331,33 +374,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -373,13 +415,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();
     }
 
@@ -394,18 +437,20 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result =
+          new com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result) {
+    private void buildPartial0(
+        com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.config_ = configBuilder_ == null
-            ? config_
-            : configBuilder_.build();
+        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.singleUtterance_ = singleUtterance_;
@@ -419,38 +464,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognitio
     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;
@@ -458,7 +504,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());
       }
@@ -494,29 +542,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              singleUtterance_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 24: {
-              interimResults_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                singleUtterance_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 24:
+              {
+                interimResults_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -526,46 +576,66 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * 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) { @@ -581,12 +651,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) { @@ -600,18 +674,23 @@ 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 (((bitField0_ & 0x00000001) != 0) && - config_ != null && - config_ != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && config_ != null + && config_ + != com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -624,12 +703,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -642,12 +725,16 @@ 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() { bitField0_ |= 0x00000001; @@ -655,45 +742,59 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuil 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
@@ -716,6 +817,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB
      * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ @java.lang.Override @@ -723,6 +825,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
@@ -745,17 +849,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -778,6 +885,7 @@ public Builder setSingleUtterance(boolean value) {
      * 
* * bool single_utterance = 2; + * * @return This builder for chaining. */ public Builder clearSingleUtterance() { @@ -787,8 +895,10 @@ public Builder clearSingleUtterance() { 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
@@ -797,6 +907,7 @@ public Builder clearSingleUtterance() {
      * 
* * bool interim_results = 3; + * * @return The interimResults. */ @java.lang.Override @@ -804,6 +915,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
@@ -812,17 +925,20 @@ 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -831,6 +947,7 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 3; + * * @return This builder for chaining. */ public Builder clearInterimResults() { @@ -839,9 +956,9 @@ public Builder clearInterimResults() { 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); } @@ -851,12 +968,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(); } @@ -865,27 +983,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -900,6 +1018,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java index 73a8d60b1e89..40aa63db7d36 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java similarity index 73% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java index d59885078a57..6726065e8e16 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java +++ b/java-speech/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,33 +45,38 @@ 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;
   }
-  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;
+
   @SuppressWarnings("serial")
-  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`).
@@ -61,13 +84,17 @@ protected java.lang.Object newInstance(
    * 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`).
@@ -75,14 +102,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`).
@@ -90,13 +121,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`).
@@ -104,13 +138,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`).
@@ -118,17 +155,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_ = false; /** + * + * *
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -138,6 +178,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g
    * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -148,6 +189,8 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_ = 0F; /** + * + * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -157,6 +200,7 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -167,12 +211,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 @@ -180,19 +227,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.
@@ -202,12 +256,16 @@ public com.google.protobuf.Duration getResultEndTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
-    return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
+    return resultEndTime_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : resultEndTime_;
   }
 
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_ = 0;
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -215,6 +273,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -223,9 +282,12 @@ public int getChannelTag() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") 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
@@ -233,6 +295,7 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -241,14 +304,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
@@ -256,16 +320,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 { @@ -274,6 +337,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,8 +349,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)); } @@ -315,24 +378,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_); @@ -345,29 +403,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -384,11 +437,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(); @@ -403,96 +454,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.
@@ -500,33 +559,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -551,13 +609,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();
     }
 
@@ -572,14 +631,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result) {
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -591,7 +654,8 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.Stream
       }
     }
 
-    private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result) {
+    private void buildPartial0(
+        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.isFinal_ = isFinal_;
@@ -600,9 +664,8 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognitio
         result.stability_ = stability_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.resultEndTime_ = resultEndTimeBuilder_ == null
-            ? resultEndTime_
-            : resultEndTimeBuilder_.build();
+        result.resultEndTime_ =
+            resultEndTimeBuilder_ == null ? resultEndTime_ : resultEndTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.channelTag_ = channelTag_;
@@ -616,38 +679,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognitio
     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;
@@ -655,7 +719,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()) {
@@ -674,9 +740,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_);
           }
@@ -725,52 +792,57 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(),
-                      extensionRegistry);
-              if (alternativesBuilder_ == null) {
-                ensureAlternativesIsMutable();
-                alternatives_.add(m);
-              } else {
-                alternativesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 16: {
-              isFinal_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 29: {
-              stability_ = input.readFloat();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 29
-            case 34: {
-              input.readMessage(
-                  getResultEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 40: {
-              channelTag_ = input.readInt32();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 40
-            case 50: {
-              languageCode_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(),
+                        extensionRegistry);
+                if (alternativesBuilder_ == null) {
+                  ensureAlternativesIsMutable();
+                  alternatives_.add(m);
+                } else {
+                  alternativesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 16:
+              {
+                isFinal_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 29:
+              {
+                stability_ = input.readFloat();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 29
+            case 34:
+              {
+                input.readMessage(getResultEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 40:
+              {
+                channelTag_ = input.readInt32();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+            case 50:
+              {
+                languageCode_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -780,21 +852,30 @@ public Builder mergeFrom(
       } // finally
       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`).
@@ -802,9 +883,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 { @@ -812,6 +895,8 @@ public java.util.List * May contain one or more recognition hypotheses (up to the * maximum specified in `max_alternatives`). @@ -819,7 +904,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) { @@ -829,6 +915,8 @@ public int getAlternativesCount() { } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -836,9 +924,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 { @@ -846,6 +936,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -853,7 +945,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) { @@ -870,6 +963,8 @@ public Builder setAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -877,10 +972,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()); @@ -891,6 +988,8 @@ public Builder setAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -898,9 +997,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(); @@ -914,6 +1015,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`).
@@ -921,7 +1024,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) { @@ -938,6 +1042,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -945,7 +1051,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) { @@ -959,6 +1066,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -966,10 +1075,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()); @@ -980,6 +1091,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -987,14 +1100,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); @@ -1002,6 +1116,8 @@ public Builder addAllAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1009,7 +1125,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) { @@ -1022,6 +1139,8 @@ public Builder clearAlternatives() { return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1029,7 +1148,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) { @@ -1042,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`).
@@ -1049,13 +1171,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`).
@@ -1063,16 +1188,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`).
@@ -1080,10 +1209,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 { @@ -1091,6 +1222,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1098,13 +1231,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`).
@@ -1112,14 +1250,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`).
@@ -1127,29 +1270,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
@@ -1159,6 +1308,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder ad
      * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -1166,6 +1316,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
@@ -1175,17 +1327,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1195,6 +1350,7 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; + * * @return This builder for chaining. */ public Builder clearIsFinal() { @@ -1204,8 +1360,10 @@ public Builder clearIsFinal() { 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
@@ -1215,6 +1373,7 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -1222,6 +1381,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
@@ -1231,17 +1392,20 @@ public float getStability() {
      * 
* * float stability = 3; + * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; bitField0_ |= 0x00000004; 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
@@ -1251,6 +1415,7 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; + * * @return This builder for chaining. */ public Builder clearStability() { @@ -1262,36 +1427,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 ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * 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.
@@ -1313,6 +1491,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.
@@ -1320,8 +1500,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();
       } else {
@@ -1332,6 +1511,8 @@ public Builder setResultEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1341,9 +1522,9 @@ public Builder setResultEndTime(
      */
     public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          resultEndTime_ != null &&
-          resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && resultEndTime_ != null
+            && resultEndTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndTimeBuilder().mergeFrom(value);
         } else {
           resultEndTime_ = value;
@@ -1356,6 +1537,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.
@@ -1374,6 +1557,8 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1387,6 +1572,8 @@ public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1398,11 +1585,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.
@@ -1411,21 +1601,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.
@@ -1433,6 +1628,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -1440,6 +1636,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.
@@ -1447,17 +1645,20 @@ 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1465,6 +1666,7 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; + * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1476,6 +1678,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
@@ -1483,13 +1687,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; @@ -1498,6 +1702,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
@@ -1505,15 +1711,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 { @@ -1521,6 +1726,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
@@ -1528,18 +1735,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000020; 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
@@ -1547,6 +1758,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1556,6 +1768,8 @@ public Builder clearLanguageCode() { 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,21 +1777,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000020; 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); } @@ -1587,12 +1803,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(); } @@ -1601,27 +1818,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1636,6 +1853,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java similarity index 82% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java index 3d6da9c0a6f4..8a2935d3769e 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java similarity index 71% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java index 3d47de7e1678..b7ab12b6c9c8 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java +++ b/java-speech/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,52 +31,56 @@
  *
  * 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;
   }
-  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;
     }
@@ -75,25 +96,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
@@ -101,6 +127,7 @@ public int getNumber() {
    * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -108,6 +135,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
@@ -115,16 +144,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
@@ -134,15 +166,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
@@ -155,6 +190,7 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder get
    * 
* * bytes audio_content = 2; + * * @return Whether the audioContent field is set. */ @java.lang.Override @@ -162,6 +198,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
@@ -174,6 +212,7 @@ public boolean hasAudioContent() {
    * 
* * bytes audio_content = 2; + * * @return The audioContent. */ @java.lang.Override @@ -185,6 +224,7 @@ public com.google.protobuf.ByteString getAudioContent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,14 +236,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_); } getUnknownFields().writeTo(output); } @@ -215,13 +254,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -231,22 +271,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: @@ -280,96 +319,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
@@ -380,33 +427,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -420,9 +466,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
@@ -441,8 +487,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result =
+          new com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -452,11 +501,11 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognizeR
       int from_bitField0_ = bitField0_;
     }
 
-    private void buildPartialOneofs(com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result) {
+    private void buildPartialOneofs(
+        com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result) {
       result.streamingRequestCase_ = streamingRequestCase_;
       result.streamingRequest_ = this.streamingRequest_;
-      if (streamingRequestCase_ == 1 &&
-          streamingConfigBuilder_ != null) {
+      if (streamingRequestCase_ == 1 && streamingConfigBuilder_ != null) {
         result.streamingRequest_ = streamingConfigBuilder_.build();
       }
     }
@@ -465,38 +514,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v1p1beta1.StreamingRecog
     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;
@@ -504,19 +554,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.getUnknownFields());
       onChanged();
@@ -544,24 +598,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getStreamingConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              streamingRequestCase_ = 1;
-              break;
-            } // case 10
-            case 18: {
-              streamingRequest_ = input.readBytes();
-              streamingRequestCase_ = 2;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getStreamingConfigFieldBuilder().getBuilder(), extensionRegistry);
+                streamingRequestCase_ = 1;
+                break;
+              } // case 10
+            case 18:
+              {
+                streamingRequest_ = input.readBytes();
+                streamingRequestCase_ = 2;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -571,12 +626,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -589,8 +644,13 @@ public Builder clearStreamingRequest() {
     private int bitField0_;
 
     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
@@ -598,6 +658,7 @@ public Builder clearStreamingRequest() {
      * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -605,6 +666,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
@@ -612,6 +675,7 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return The streamingConfig. */ @java.lang.Override @@ -629,6 +693,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
@@ -637,7 +703,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();
@@ -651,6 +718,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
@@ -671,6 +740,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
@@ -679,12 +750,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;
         }
@@ -700,6 +778,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
@@ -725,6 +805,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
@@ -733,10 +815,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
@@ -746,7 +831,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 {
@@ -757,6 +843,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
@@ -766,14 +854,20 @@ 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());
@@ -785,6 +879,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder get
     }
 
     /**
+     *
+     *
      * 
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -797,12 +893,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
@@ -815,6 +914,7 @@ public boolean hasAudioContent() {
      * 
* * bytes audio_content = 2; + * * @return The audioContent. */ public com.google.protobuf.ByteString getAudioContent() { @@ -824,6 +924,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
@@ -836,17 +938,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(); } + if (value == null) { + 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
@@ -859,6 +966,7 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 2; + * * @return This builder for chaining. */ public Builder clearAudioContent() { @@ -869,9 +977,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); } @@ -881,12 +989,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(); } @@ -895,27 +1003,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -930,6 +1038,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java similarity index 78% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java index e77bf66cfcba..f6b61734f16b 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java similarity index 74% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java index 0c9ad5afff96..fba0d2affa9b 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java +++ b/java-speech/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,39 +79,43 @@ 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;
   }
-  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.
      * 
@@ -102,6 +124,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
@@ -119,6 +143,8 @@ public enum SpeechEventType
     ;
 
     /**
+     *
+     *
      * 
      * No speech event specified.
      * 
@@ -127,6 +153,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
@@ -141,7 +169,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(
@@ -166,39 +193,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();
@@ -206,8 +237,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;
@@ -227,12 +257,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 @@ -240,12 +273,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 @@ -253,6 +289,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.
@@ -266,9 +304,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -279,10 +320,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.
@@ -293,11 +337,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.
@@ -312,6 +359,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.
@@ -326,6 +375,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.
@@ -344,38 +395,58 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder get
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 4;
   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; + * + * * @return The speechEventType. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.forNumber(speechEventType_); - return result == null ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.forNumber( + 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 @@ -383,19 +454,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.
@@ -405,17 +483,22 @@ public com.google.protobuf.Duration getTotalBilledTime() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
-    return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_;
+    return totalBilledTime_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : totalBilledTime_;
   }
 
   public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER = 9;
   private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_;
   /**
+   *
+   *
    * 
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return Whether the speechAdaptationInfo field is set. */ @java.lang.Override @@ -423,18 +506,25 @@ public boolean hasSpeechAdaptationInfo() { return speechAdaptationInfo_ != null; } /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return The speechAdaptationInfo. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } /** + * + * *
    * Provides information on adaptation behavior in response
    * 
@@ -442,19 +532,25 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptatio * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } public static final int REQUEST_ID_FIELD_NUMBER = 10; private long requestId_ = 0L; /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 10; + * * @return The requestId. */ @java.lang.Override @@ -463,6 +559,7 @@ public long getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -474,15 +571,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) { @@ -504,28 +603,26 @@ 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()); } if (speechAdaptationInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getSpeechAdaptationInfo()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSpeechAdaptationInfo()); } if (requestId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, requestId_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, requestId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -535,33 +632,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.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 (hasSpeechAdaptationInfo() != other.hasSpeechAdaptationInfo()) return false; if (hasSpeechAdaptationInfo()) { - if (!getSpeechAdaptationInfo() - .equals(other.getSpeechAdaptationInfo())) return false; + if (!getSpeechAdaptationInfo().equals(other.getSpeechAdaptationInfo())) return false; } - if (getRequestId() - != other.getRequestId()) return false; + if (getRequestId() != other.getRequestId()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -592,104 +685,111 @@ public int hashCode() { hash = (53 * hash) + getSpeechAdaptationInfo().hashCode(); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRequestId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRequestId()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } 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`
@@ -731,33 +831,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -790,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();
     }
 
@@ -811,14 +911,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000002) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -830,25 +934,24 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.Stream
       }
     }
 
-    private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result) {
+    private void buildPartial0(
+        com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.error_ = errorBuilder_ == null
-            ? error_
-            : errorBuilder_.build();
+        result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.speechEventType_ = speechEventType_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.totalBilledTime_ = totalBilledTimeBuilder_ == null
-            ? totalBilledTime_
-            : totalBilledTimeBuilder_.build();
+        result.totalBilledTime_ =
+            totalBilledTimeBuilder_ == null ? totalBilledTime_ : totalBilledTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.speechAdaptationInfo_ = speechAdaptationInfoBuilder_ == null
-            ? speechAdaptationInfo_
-            : speechAdaptationInfoBuilder_.build();
+        result.speechAdaptationInfo_ =
+            speechAdaptationInfoBuilder_ == null
+                ? speechAdaptationInfo_
+                : speechAdaptationInfoBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.requestId_ = requestId_;
@@ -859,38 +962,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.StreamingRecognizeR
     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;
@@ -898,7 +1002,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());
       }
@@ -920,9 +1026,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognizeRes
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            resultsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResultsFieldBuilder() : null;
+            resultsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResultsFieldBuilder()
+                    : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -966,56 +1073,58 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getErrorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.parser(),
-                      extensionRegistry);
-              if (resultsBuilder_ == null) {
-                ensureResultsIsMutable();
-                results_.add(m);
-              } else {
-                resultsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            case 32: {
-              speechEventType_ = input.readEnum();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 32
-            case 42: {
-              input.readMessage(
-                  getTotalBilledTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 42
-            case 74: {
-              input.readMessage(
-                  getSpeechAdaptationInfoFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 74
-            case 80: {
-              requestId_ = input.readInt64();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 80
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.parser(),
+                        extensionRegistry);
+                if (resultsBuilder_ == null) {
+                  ensureResultsIsMutable();
+                  results_.add(m);
+                } else {
+                  resultsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            case 32:
+              {
+                speechEventType_ = input.readEnum();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 32
+            case 42:
+              {
+                input.readMessage(getTotalBilledTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 42
+            case 74:
+              {
+                input.readMessage(
+                    getSpeechAdaptationInfoFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 74
+            case 80:
+              {
+                requestId_ = input.readInt64();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 80
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1025,30 +1134,38 @@ public Builder mergeFrom(
       } // finally
       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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * 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() { @@ -1059,6 +1176,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.
@@ -1080,6 +1199,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.
@@ -1087,8 +1208,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();
       } else {
@@ -1099,6 +1219,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1108,9 +1230,9 @@ public Builder setError(
      */
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          error_ != null &&
-          error_ != com.google.rpc.Status.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && error_ != null
+            && error_ != com.google.rpc.Status.getDefaultInstance()) {
           getErrorBuilder().mergeFrom(value);
         } else {
           error_ = value;
@@ -1123,6 +1245,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.
@@ -1141,6 +1265,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1154,6 +1280,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() {
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1165,11 +1293,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.
@@ -1178,32 +1307,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_ & 0x00000002) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(
+                results_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     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.
@@ -1213,7 +1350,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 {
@@ -1221,6 +1359,8 @@ public java.util.List
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1238,6 +1378,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1255,6 +1397,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.
@@ -1279,6 +1423,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.
@@ -1289,7 +1435,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());
@@ -1300,6 +1447,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.
@@ -1323,6 +1472,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.
@@ -1347,6 +1498,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.
@@ -1368,6 +1521,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.
@@ -1378,7 +1533,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());
@@ -1389,6 +1545,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.
@@ -1399,11 +1557,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);
@@ -1411,6 +1569,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.
@@ -1431,6 +1591,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.
@@ -1451,6 +1613,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.
@@ -1465,6 +1629,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.
@@ -1474,14 +1640,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.
@@ -1491,8 +1660,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 {
@@ -1500,6 +1670,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.
@@ -1509,11 +1681,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.
@@ -1525,10 +1701,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.
@@ -1538,20 +1718,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_ & 0x00000002) != 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_ & 0x00000002) != 0), getParentForChildren(), isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1559,22 +1742,33 @@ 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. */ @@ -1585,28 +1779,45 @@ public Builder setSpeechEventTypeValue(int value) { 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() { - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.forNumber(speechEventType_); - return result == null ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.forNumber( + 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(); } @@ -1616,11 +1827,16 @@ public Builder setSpeechEventType(com.google.cloud.speech.v1p1beta1.StreamingRec 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() { @@ -1632,36 +1848,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 ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * 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.
@@ -1683,6 +1912,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.
@@ -1690,8 +1921,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();
       } else {
@@ -1702,6 +1932,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.
@@ -1711,9 +1943,9 @@ public Builder setTotalBilledTime(
      */
     public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       if (totalBilledTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          totalBilledTime_ != null &&
-          totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && totalBilledTime_ != null
+            && totalBilledTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getTotalBilledTimeBuilder().mergeFrom(value);
         } else {
           totalBilledTime_ = value;
@@ -1726,6 +1958,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.
@@ -1744,6 +1978,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.
@@ -1757,6 +1993,8 @@ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() {
       return getTotalBilledTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1768,11 +2006,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.
@@ -1781,14 +2022,17 @@ 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_;
@@ -1796,41 +2040,55 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
 
     private com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speechAdaptationInfo_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> speechAdaptationInfoBuilder_;
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo,
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>
+        speechAdaptationInfoBuilder_;
     /**
+     *
+     *
      * 
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return Whether the speechAdaptationInfo field is set. */ public boolean hasSpeechAdaptationInfo() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return The speechAdaptationInfo. */ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo() { if (speechAdaptationInfoBuilder_ == null) { - return speechAdaptationInfo_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } else { return speechAdaptationInfoBuilder_.getMessage(); } } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder setSpeechAdaptationInfo( + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1844,6 +2102,8 @@ public Builder setSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechA return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1862,17 +2122,21 @@ public Builder setSpeechAdaptationInfo( return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { + public Builder mergeSpeechAdaptationInfo( + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo value) { if (speechAdaptationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - speechAdaptationInfo_ != null && - speechAdaptationInfo_ != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && speechAdaptationInfo_ != null + && speechAdaptationInfo_ + != com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance()) { getSpeechAdaptationInfoBuilder().mergeFrom(value); } else { speechAdaptationInfo_ = value; @@ -1885,6 +2149,8 @@ public Builder mergeSpeechAdaptationInfo(com.google.cloud.speech.v1p1beta1.Speec return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1902,33 +2168,42 @@ public Builder clearSpeechAdaptationInfo() { return this; } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder getSpeechAdaptationInfoBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder + getSpeechAdaptationInfoBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSpeechAdaptationInfoFieldBuilder().getBuilder(); } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder() { + public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder() { if (speechAdaptationInfoBuilder_ != null) { return speechAdaptationInfoBuilder_.getMessageOrBuilder(); } else { - return speechAdaptationInfo_ == null ? - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() : speechAdaptationInfo_; + return speechAdaptationInfo_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.getDefaultInstance() + : speechAdaptationInfo_; } } /** + * + * *
      * Provides information on adaptation behavior in response
      * 
@@ -1936,27 +2211,33 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeech * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder> getSpeechAdaptationInfoFieldBuilder() { if (speechAdaptationInfoBuilder_ == null) { - speechAdaptationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( - getSpeechAdaptationInfo(), - getParentForChildren(), - isClean()); + speechAdaptationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo.Builder, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder>( + getSpeechAdaptationInfo(), getParentForChildren(), isClean()); speechAdaptationInfo_ = null; } return speechAdaptationInfoBuilder_; } - private long requestId_ ; + private long requestId_; /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; + * * @return The requestId. */ @java.lang.Override @@ -1964,29 +2245,35 @@ public long getRequestId() { return requestId_; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; + * * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId(long value) { - + requestId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The ID associated with the request. This is a unique ID specific only to
      * the given request.
      * 
* * int64 request_id = 10; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1995,9 +2282,9 @@ public Builder clearRequestId() { 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); } @@ -2007,12 +2294,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(); } @@ -2021,27 +2309,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2056,6 +2344,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java similarity index 83% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java index b1386d9a3fa9..5997fc2d431a 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java +++ b/java-speech/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.
@@ -146,39 +197,51 @@ com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder getResults
   com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return Whether the speechAdaptationInfo field is set. */ boolean hasSpeechAdaptationInfo(); /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; + * * @return The speechAdaptationInfo. */ com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo getSpeechAdaptationInfo(); /** + * + * *
    * Provides information on adaptation behavior in response
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9; */ - com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder(); + com.google.cloud.speech.v1p1beta1.SpeechAdaptationInfoOrBuilder + getSpeechAdaptationInfoOrBuilder(); /** + * + * *
    * The ID associated with the request. This is a unique ID specific only to
    * the given request.
    * 
* * int64 request_id = 10; + * * @return The requestId. */ long getRequestId(); diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java similarity index 71% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java index e15a0b452024..615d5bf14767 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java +++ b/java-speech/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,114 +30,133 @@
  *
  * 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;
   }
-  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_ = ""; @@ -128,38 +164,43 @@ 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object search_ = ""; /** + * + * *
      * What to replace. Max length is 100 characters.
      * 
* * string search = 1; + * * @return The search. */ @java.lang.Override @@ -168,29 +209,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 { @@ -199,14 +240,18 @@ public java.lang.String getSearch() { } public static final int REPLACE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object replace_ = ""; /** + * + * *
      * What to replace with. Max length is 100 characters.
      * 
* * string replace = 2; + * * @return The replace. */ @java.lang.Override @@ -215,29 +260,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 { @@ -248,11 +293,14 @@ public java.lang.String getReplace() { public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; private boolean caseSensitive_ = false; /** + * + * *
      * Whether the search is case sensitive.
      * 
* * bool case_sensitive = 3; + * * @return The caseSensitive. */ @java.lang.Override @@ -261,6 +309,7 @@ public boolean getCaseSensitive() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,8 +321,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_); } @@ -299,8 +347,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -310,19 +357,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,95 +384,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) + getUnknownFields().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 @@ -437,39 +489,42 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -481,13 +536,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(); } @@ -502,13 +558,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result = + new com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result) { + private void buildPartial0( + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.search_ = search_; @@ -525,46 +585,52 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.TranscriptNormaliza 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_; bitField0_ |= 0x00000001; @@ -604,27 +670,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - search_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - replace_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - caseSensitive_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + search_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + replace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + caseSensitive_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -634,22 +704,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -658,20 +731,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 { @@ -679,28 +753,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setSearch(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } search_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; + * * @return This builder for chaining. */ public Builder clearSearch() { @@ -710,17 +791,21 @@ public Builder clearSearch() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setSearchBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); search_ = value; bitField0_ |= 0x00000001; @@ -730,18 +815,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; @@ -750,20 +837,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 { @@ -771,28 +859,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setReplace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } replace_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; + * * @return This builder for chaining. */ public Builder clearReplace() { @@ -802,17 +897,21 @@ public Builder clearReplace() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setReplaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); replace_ = value; bitField0_ |= 0x00000002; @@ -820,13 +919,16 @@ public Builder setReplaceBytes( return this; } - private boolean caseSensitive_ ; + private boolean caseSensitive_; /** + * + * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; + * * @return The caseSensitive. */ @java.lang.Override @@ -834,27 +936,33 @@ 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; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; + * * @return This builder for chaining. */ public Builder clearCaseSensitive() { @@ -863,6 +971,7 @@ public Builder clearCaseSensitive() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -875,41 +984,44 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -921,16 +1033,19 @@ 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; + @SuppressWarnings("serial") 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"
@@ -941,10 +1056,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"
@@ -955,11 +1073,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"
@@ -974,6 +1095,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"
@@ -988,6 +1111,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"
@@ -998,12 +1123,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;
@@ -1015,8 +1141,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));
     }
@@ -1030,8 +1155,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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1041,15 +1165,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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -1071,96 +1195,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
@@ -1170,33 +1302,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1212,9 +1343,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
@@ -1233,14 +1364,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v1p1beta1.TranscriptNormalization result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v1p1beta1.TranscriptNormalization result) {
       if (entriesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           entries_ = java.util.Collections.unmodifiableList(entries_);
@@ -1260,38 +1395,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.TranscriptNormaliza
     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;
@@ -1299,7 +1435,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()) {
@@ -1318,9 +1455,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_);
           }
@@ -1352,25 +1490,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry m =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.parser(),
-                      extensionRegistry);
-              if (entriesBuilder_ == null) {
-                ensureEntriesIsMutable();
-                entries_.add(m);
-              } else {
-                entriesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry m =
+                    input.readMessage(
+                        com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.parser(),
+                        extensionRegistry);
+                if (entriesBuilder_ == null) {
+                  ensureEntriesIsMutable();
+                  entries_.add(m);
+                } else {
+                  entriesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1380,21 +1520,30 @@ public Builder mergeFrom(
       } // finally
       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"
@@ -1402,9 +1551,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 { @@ -1412,6 +1563,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" @@ -1419,7 +1572,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) { @@ -1429,6 +1583,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"
@@ -1436,7 +1592,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) { @@ -1446,6 +1603,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"
@@ -1453,7 +1612,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) { @@ -1470,6 +1630,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"
@@ -1477,10 +1639,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()); @@ -1491,6 +1655,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"
@@ -1498,9 +1664,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(); @@ -1514,6 +1682,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"
@@ -1521,7 +1691,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) { @@ -1538,6 +1709,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"
@@ -1545,7 +1718,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) { @@ -1559,6 +1733,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"
@@ -1566,10 +1742,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()); @@ -1580,6 +1758,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"
@@ -1587,14 +1767,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); @@ -1602,6 +1784,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"
@@ -1609,7 +1793,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) { @@ -1622,6 +1807,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"
@@ -1629,7 +1816,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) { @@ -1642,6 +1830,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"
@@ -1649,13 +1839,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"
@@ -1663,16 +1856,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"
@@ -1680,10 +1877,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 { @@ -1691,6 +1890,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"
@@ -1698,13 +1899,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"
@@ -1712,14 +1918,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"
@@ -1727,29 +1938,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); } @@ -1759,12 +1974,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(); } @@ -1773,27 +1988,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1808,6 +2023,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.TranscriptNormalization getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java similarity index 78% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java index fa51b40b7003..11549b4c3678 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
similarity index 67%
rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
index 65a8b62eb71a..6fb07026dcf3 100644
--- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
+++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
@@ -1,60 +1,81 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License 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; } - 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; } @@ -70,24 +91,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
@@ -95,12 +120,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
@@ -108,6 +136,7 @@ public boolean hasGcsUri() {
    * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ public java.lang.String getGcsUri() { @@ -118,8 +147,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; @@ -128,6 +156,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
@@ -135,18 +165,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; } @@ -157,6 +186,7 @@ public java.lang.String getGcsUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +198,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_); } @@ -193,18 +222,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: @@ -234,129 +263,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -367,9 +403,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 @@ -388,8 +424,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result = + new com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -399,7 +438,8 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.TranscriptOutputCon int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result) { + private void buildPartialOneofs( + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result) { result.outputTypeCase_ = outputTypeCase_; result.outputType_ = this.outputType_; } @@ -408,38 +448,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v1p1beta1.TranscriptOutp 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; @@ -447,17 +488,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.getUnknownFields()); onChanged(); @@ -485,18 +529,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - outputTypeCase_ = 1; - outputType_ = s; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + outputTypeCase_ = 1; + outputType_ = s; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -506,12 +552,12 @@ public Builder mergeFrom( } // finally 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() { @@ -524,6 +570,8 @@ public Builder clearOutputType() { private int bitField0_; /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -531,6 +579,7 @@ public Builder clearOutputType() {
      * 
* * string gcs_uri = 1; + * * @return Whether the gcsUri field is set. */ @java.lang.Override @@ -538,6 +587,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
@@ -545,6 +596,7 @@ public boolean hasGcsUri() {
      * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ @java.lang.Override @@ -554,8 +606,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; @@ -566,6 +617,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
@@ -573,19 +626,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; } @@ -595,6 +647,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
@@ -602,18 +656,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + 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
@@ -621,6 +679,7 @@ public Builder setGcsUri(
      * 
* * string gcs_uri = 1; + * * @return This builder for chaining. */ public Builder clearGcsUri() { @@ -632,6 +691,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
@@ -639,21 +700,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + 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); } @@ -663,12 +726,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(); } @@ -677,27 +740,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -712,6 +775,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java similarity index 61% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java index 3733fac7b5f9..102d1f01edf5 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java similarity index 70% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java index cdbcccc6ceb9..2145f8a07c4f 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java @@ -1,55 +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_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; } - 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
@@ -62,7 +82,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -70,6 +93,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
@@ -82,14 +107,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
@@ -102,21 +134,28 @@ 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() { - return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() + : customClass_; } 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 @@ -124,11 +163,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 @@ -136,6 +178,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * 
@@ -148,6 +192,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +204,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()); } @@ -177,12 +221,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -192,22 +234,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -234,129 +275,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +423,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 @@ -396,8 +444,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest result = + new com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -405,14 +456,11 @@ public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest buildPartial() private void buildPartial0(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.customClass_ = customClassBuilder_ == null - ? customClass_ - : customClassBuilder_.build(); + result.customClass_ = + customClassBuilder_ == null ? customClass_ : customClassBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -420,38 +468,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRe 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; @@ -459,7 +508,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()); } @@ -492,26 +542,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCustomClassFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -521,12 +570,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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
@@ -539,13 +594,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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -558,17 +618,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
@@ -581,7 +648,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) { @@ -597,6 +666,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
@@ -609,7 +680,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) { @@ -623,6 +696,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
@@ -635,13 +710,15 @@ 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 (((bitField0_ & 0x00000001) != 0) && - customClass_ != null && - customClass_ != com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && customClass_ != null + && customClass_ != com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -654,6 +731,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
@@ -666,7 +745,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -679,6 +760,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
@@ -691,7 +774,9 @@ 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() { bitField0_ |= 0x00000001; @@ -699,6 +784,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassBuild return getCustomClassFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -711,17 +798,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
@@ -734,17 +826,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_; @@ -752,34 +849,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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.
      * 
@@ -800,14 +910,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(); } else { @@ -818,6 +929,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -826,9 +939,9 @@ public Builder setUpdateMask( */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -841,6 +954,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -858,6 +973,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -870,6 +987,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -880,11 +999,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.
      * 
@@ -892,21 +1014,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); } @@ -916,12 +1041,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(); } @@ -930,27 +1055,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -965,6 +1090,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java index 5ffdf4623cc2..debebb1437ec 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java similarity index 70% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java index 1efe0649bd69..afd2df61b155 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java @@ -1,55 +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_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; } - 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
@@ -62,7 +82,10 @@ protected java.lang.Object newInstance(
    * 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 @@ -70,6 +93,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
@@ -82,14 +107,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
@@ -102,21 +134,28 @@ 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() { - return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() + : phraseSet_; } 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 @@ -124,11 +163,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 @@ -136,6 +178,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * 
@@ -148,6 +192,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +204,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()); } @@ -177,12 +221,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -192,22 +234,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -234,129 +275,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +423,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 @@ -396,8 +444,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -405,14 +456,10 @@ public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest buildPartial() { private void buildPartial0(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.phraseSet_ = phraseSetBuilder_ == null - ? phraseSet_ - : phraseSetBuilder_.build(); + result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -420,38 +467,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequ 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; @@ -459,7 +507,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()); } @@ -492,26 +541,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getPhraseSetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -521,12 +569,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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
@@ -539,13 +593,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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -558,17 +617,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
@@ -581,7 +647,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) { @@ -597,6 +665,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
@@ -609,7 +679,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) { @@ -623,6 +695,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
@@ -635,13 +709,15 @@ 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 (((bitField0_ & 0x00000001) != 0) && - phraseSet_ != null && - phraseSet_ != com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && phraseSet_ != null + && phraseSet_ != com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -654,6 +730,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
@@ -666,7 +744,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -679,6 +759,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
@@ -691,7 +773,9 @@ 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() { bitField0_ |= 0x00000001; @@ -699,6 +783,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetBuilder() return getPhraseSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -711,17 +797,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
@@ -734,17 +825,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_; @@ -752,34 +848,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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.
      * 
@@ -800,14 +909,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(); } else { @@ -818,6 +928,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -826,9 +938,9 @@ public Builder setUpdateMask( */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -841,6 +953,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -858,6 +972,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -870,6 +986,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -880,11 +998,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.
      * 
@@ -892,21 +1013,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); } @@ -916,12 +1040,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(); } @@ -930,27 +1054,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -965,6 +1089,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java index ae3c2a999eb0..5bb289426a97 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java similarity index 76% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java index 4b5613106d6f..a8286eea3f95 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } - 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.
@@ -61,6 +82,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -68,6 +90,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.
@@ -78,6 +102,7 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -85,6 +110,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.
@@ -104,6 +131,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.
@@ -114,6 +143,7 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -121,6 +151,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.
@@ -131,6 +163,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -138,6 +171,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.
@@ -155,14 +190,18 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
   }
 
   public static final int WORD_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object word_ = "";
   /**
+   *
+   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The word. */ @java.lang.Override @@ -171,29 +210,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 { @@ -204,6 +243,8 @@ public java.lang.String getWord() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_ = 0F; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -215,6 +256,7 @@ public java.lang.String getWord() {
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -225,6 +267,8 @@ public float getConfidence() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_ = 0; /** + * + * *
    * 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
@@ -234,6 +278,7 @@ public float getConfidence() {
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ @java.lang.Override @@ -242,6 +287,7 @@ public int getSpeakerTag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,8 +299,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()); } @@ -280,23 +325,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -306,30 +347,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -352,8 +389,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) + getUnknownFields().hashCode(); @@ -361,130 +397,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -506,9 +548,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 @@ -527,8 +569,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v1p1beta1.WordInfo result = + new com.google.cloud.speech.v1p1beta1.WordInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -536,14 +581,10 @@ public com.google.cloud.speech.v1p1beta1.WordInfo buildPartial() { private void buildPartial0(com.google.cloud.speech.v1p1beta1.WordInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null - ? startTime_ - : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.word_ = word_; @@ -560,38 +601,39 @@ private void buildPartial0(com.google.cloud.speech.v1p1beta1.WordInfo result) { 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; @@ -643,41 +685,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - word_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 37: { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000008; - break; - } // case 37 - case 40: { - speakerTag_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + word_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 37: + { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + case 40: + { + speakerTag_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -687,12 +731,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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.
@@ -703,12 +753,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -719,6 +772,7 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { @@ -729,6 +783,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.
@@ -754,6 +810,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.
@@ -765,8 +823,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();
       } else {
@@ -777,6 +834,8 @@ public Builder setStartTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -790,9 +849,9 @@ public Builder setStartTime(
      */
     public Builder mergeStartTime(com.google.protobuf.Duration value) {
       if (startTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          startTime_ != null &&
-          startTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && startTime_ != null
+            && startTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getStartTimeBuilder().mergeFrom(value);
         } else {
           startTime_ = value;
@@ -805,6 +864,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.
@@ -827,6 +888,8 @@ public Builder clearStartTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -844,6 +907,8 @@ public com.google.protobuf.Duration.Builder getStartTimeBuilder() {
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -859,11 +924,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.
@@ -876,14 +942,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_;
@@ -891,8 +960,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.
@@ -903,12 +977,15 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -919,6 +996,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { @@ -929,6 +1007,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.
@@ -954,6 +1034,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.
@@ -965,8 +1047,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();
       } else {
@@ -977,6 +1058,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -990,9 +1073,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Duration value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1005,6 +1088,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.
@@ -1027,6 +1112,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1044,6 +1131,8 @@ public com.google.protobuf.Duration.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1059,11 +1148,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.
@@ -1076,14 +1166,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_;
@@ -1091,18 +1184,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; @@ -1111,20 +1206,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 { @@ -1132,28 +1228,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setWord(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } word_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @return This builder for chaining. */ public Builder clearWord() { @@ -1163,17 +1266,21 @@ public Builder clearWord() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setWordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); word_ = value; bitField0_ |= 0x00000004; @@ -1181,8 +1288,10 @@ public Builder setWordBytes( 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
@@ -1194,6 +1303,7 @@ public Builder setWordBytes(
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1201,6 +1311,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
@@ -1212,17 +1324,20 @@ public float getConfidence() {
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000008; 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
@@ -1234,6 +1349,7 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -1243,8 +1359,10 @@ public Builder clearConfidence() { 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
@@ -1254,6 +1372,7 @@ public Builder clearConfidence() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ @java.lang.Override @@ -1261,6 +1380,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
@@ -1270,17 +1391,20 @@ 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; bitField0_ |= 0x00000010; 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
@@ -1290,6 +1414,7 @@ public Builder setSpeakerTag(int value) {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearSpeakerTag() { @@ -1298,9 +1423,9 @@ public Builder clearSpeakerTag() { 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); } @@ -1310,12 +1435,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(); } @@ -1324,27 +1449,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1359,6 +1484,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java similarity index 84% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java index b811f0f3088d..0bdb11ab40df 100644 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java +++ b/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto diff --git a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto b/java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto rename to java-speech/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java similarity index 64% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java index 0ad7af9e165f..82aaf8ce8a3a 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfig.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Automatically detected decoding parameters.
  * Supported for the following encodings:
@@ -20,44 +37,46 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.AutoDetectDecodingConfig}
  */
-public final class AutoDetectDecodingConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AutoDetectDecodingConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.AutoDetectDecodingConfig)
     AutoDetectDecodingConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AutoDetectDecodingConfig.newBuilder() to construct.
   private AutoDetectDecodingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private AutoDetectDecodingConfig() {
-  }
+
+  private AutoDetectDecodingConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AutoDetectDecodingConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.AutoDetectDecodingConfig.class, com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder.class);
+            com.google.cloud.speech.v2.AutoDetectDecodingConfig.class,
+            com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -69,8 +88,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 {
     getUnknownFields().writeTo(output);
   }
 
@@ -88,12 +106,13 @@ 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.v2.AutoDetectDecodingConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.AutoDetectDecodingConfig other = (com.google.cloud.speech.v2.AutoDetectDecodingConfig) obj;
+    com.google.cloud.speech.v2.AutoDetectDecodingConfig other =
+        (com.google.cloud.speech.v2.AutoDetectDecodingConfig) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -112,96 +131,103 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v2.AutoDetectDecodingConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v2.AutoDetectDecodingConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig 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;
   }
   /**
+   *
+   *
    * 
    * Automatically detected decoding parameters.
    * Supported for the following encodings:
@@ -218,33 +244,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.AutoDetectDecodingConfig}
    */
-  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.v2.AutoDetectDecodingConfig)
       com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.AutoDetectDecodingConfig.class, com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder.class);
+              com.google.cloud.speech.v2.AutoDetectDecodingConfig.class,
+              com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.AutoDetectDecodingConfig.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -252,9 +277,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor;
     }
 
     @java.lang.Override
@@ -273,7 +298,8 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.AutoDetectDecodingConfig buildPartial() {
-      com.google.cloud.speech.v2.AutoDetectDecodingConfig result = new com.google.cloud.speech.v2.AutoDetectDecodingConfig(this);
+      com.google.cloud.speech.v2.AutoDetectDecodingConfig result =
+          new com.google.cloud.speech.v2.AutoDetectDecodingConfig(this);
       onBuilt();
       return result;
     }
@@ -282,38 +308,39 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig 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.v2.AutoDetectDecodingConfig) {
-        return mergeFrom((com.google.cloud.speech.v2.AutoDetectDecodingConfig)other);
+        return mergeFrom((com.google.cloud.speech.v2.AutoDetectDecodingConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -321,7 +348,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.AutoDetectDecodingConfig other) {
-      if (other == com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance())
+        return this;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -348,12 +376,13 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -363,9 +392,9 @@ public Builder mergeFrom(
       } // finally
       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);
     }
 
@@ -375,12 +404,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.AutoDetectDecodingConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.AutoDetectDecodingConfig)
   private static final com.google.cloud.speech.v2.AutoDetectDecodingConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.AutoDetectDecodingConfig();
   }
@@ -389,27 +418,27 @@ public static com.google.cloud.speech.v2.AutoDetectDecodingConfig getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public AutoDetectDecodingConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public AutoDetectDecodingConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -424,6 +453,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v2.AutoDetectDecodingConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java
new file mode 100644
index 000000000000..eb900c2c33fb
--- /dev/null
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java
@@ -0,0 +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/v2/cloud_speech.proto
+
+package com.google.cloud.speech.v2;
+
+public interface AutoDetectDecodingConfigOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.AutoDetectDecodingConfig)
+    com.google.protobuf.MessageOrBuilder {}
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java
similarity index 77%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java
index 2759c33fcb35..4cfda3d25d30 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadata.java
@@ -1,60 +1,81 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
+ *
+ *
  * 
  * Metadata about a single file in a batch for BatchRecognize.
  * 
* * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeFileMetadata} */ -public final class BatchRecognizeFileMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchRecognizeFileMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeFileMetadata) BatchRecognizeFileMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchRecognizeFileMetadata.newBuilder() to construct. private BatchRecognizeFileMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchRecognizeFileMetadata() { - } + + private BatchRecognizeFileMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchRecognizeFileMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.BatchRecognizeFileMetadata.class, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder.class); + com.google.cloud.speech.v2.BatchRecognizeFileMetadata.class, + com.google.cloud.speech.v2.BatchRecognizeFileMetadata.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 { URI(1), AUDIOSOURCE_NOT_SET(0); private final int value; + private AudioSourceCase(int value) { this.value = value; } @@ -70,40 +91,48 @@ public static AudioSourceCase valueOf(int value) { public static AudioSourceCase forNumber(int value) { switch (value) { - case 1: return URI; - case 0: return AUDIOSOURCE_NOT_SET; - default: return null; + case 1: + 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 URI_FIELD_NUMBER = 1; /** + * + * *
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; + * * @return Whether the uri field is set. */ public boolean hasUri() { return audioSourceCase_ == 1; } /** + * + * *
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; + * * @return The uri. */ public java.lang.String getUri() { @@ -114,8 +143,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_ == 1) { audioSource_ = s; @@ -124,23 +152,24 @@ public java.lang.String getUri() { } } /** + * + * *
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; if (audioSourceCase_ == 1) { 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_ == 1) { audioSource_ = b; } @@ -153,6 +182,8 @@ public java.lang.String getUri() { public static final int CONFIG_FIELD_NUMBER = 4; private com.google.cloud.speech.v2.RecognitionConfig config_; /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -165,6 +196,7 @@ public java.lang.String getUri() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return Whether the config field is set. */ @java.lang.Override @@ -172,6 +204,8 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -184,13 +218,18 @@ public boolean hasConfig() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -206,12 +245,16 @@ public com.google.cloud.speech.v2.RecognitionConfig getConfig() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder() {
-    return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
+    return config_ == null
+        ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
+        : config_;
   }
 
   public static final int CONFIG_MASK_FIELD_NUMBER = 5;
   private com.google.protobuf.FieldMask configMask_;
   /**
+   *
+   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -229,6 +272,7 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return Whether the configMask field is set. */ @java.lang.Override @@ -236,6 +280,8 @@ public boolean hasConfigMask() { return configMask_ != null; } /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -253,6 +299,7 @@ public boolean hasConfigMask() {
    * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return The configMask. */ @java.lang.Override @@ -260,6 +307,8 @@ public com.google.protobuf.FieldMask getConfigMask() { return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -284,6 +333,7 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -295,8 +345,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 (audioSourceCase_ == 1) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, audioSource_);
     }
@@ -319,12 +368,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, audioSource_);
     }
     if (config_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getConfig());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfig());
     }
     if (configMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getConfigMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getConfigMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -334,28 +381,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.v2.BatchRecognizeFileMetadata)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.BatchRecognizeFileMetadata other = (com.google.cloud.speech.v2.BatchRecognizeFileMetadata) obj;
+    com.google.cloud.speech.v2.BatchRecognizeFileMetadata other =
+        (com.google.cloud.speech.v2.BatchRecognizeFileMetadata) obj;
 
     if (hasConfig() != other.hasConfig()) return false;
     if (hasConfig()) {
-      if (!getConfig()
-          .equals(other.getConfig())) return false;
+      if (!getConfig().equals(other.getConfig())) return false;
     }
     if (hasConfigMask() != other.hasConfigMask()) return false;
     if (hasConfigMask()) {
-      if (!getConfigMask()
-          .equals(other.getConfigMask())) return false;
+      if (!getConfigMask().equals(other.getConfigMask())) return false;
     }
     if (!getAudioSourceCase().equals(other.getAudioSourceCase())) return false;
     switch (audioSourceCase_) {
       case 1:
-        if (!getUri()
-            .equals(other.getUri())) return false;
+        if (!getUri().equals(other.getUri())) return false;
         break;
       case 0:
       default:
@@ -393,129 +438,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata 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.v2.BatchRecognizeFileMetadata prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.speech.v2.BatchRecognizeFileMetadata 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;
   }
   /**
+   *
+   *
    * 
    * Metadata about a single file in a batch for BatchRecognize.
    * 
* * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeFileMetadata} */ - 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.v2.BatchRecognizeFileMetadata) com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.BatchRecognizeFileMetadata.class, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder.class); + com.google.cloud.speech.v2.BatchRecognizeFileMetadata.class, + com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder.class); } // Construct using com.google.cloud.speech.v2.BatchRecognizeFileMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -536,9 +588,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; } @java.lang.Override @@ -557,8 +609,11 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata build() { @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeFileMetadata buildPartial() { - com.google.cloud.speech.v2.BatchRecognizeFileMetadata result = new com.google.cloud.speech.v2.BatchRecognizeFileMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v2.BatchRecognizeFileMetadata result = + new com.google.cloud.speech.v2.BatchRecognizeFileMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -567,14 +622,10 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata buildPartial() { private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeFileMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { - result.config_ = configBuilder_ == null - ? config_ - : configBuilder_.build(); + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.configMask_ = configMaskBuilder_ == null - ? configMask_ - : configMaskBuilder_.build(); + result.configMask_ = configMaskBuilder_ == null ? configMask_ : configMaskBuilder_.build(); } } @@ -587,38 +638,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.BatchRecognizeFileMet 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.v2.BatchRecognizeFileMetadata) { - return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeFileMetadata)other); + return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeFileMetadata) other); } else { super.mergeFrom(other); return this; @@ -626,7 +678,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeFileMetadata other) { - if (other == com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()) + return this; if (other.hasConfig()) { mergeConfig(other.getConfig()); } @@ -634,15 +687,17 @@ public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeFileMetadata o mergeConfigMask(other.getConfigMask()); } switch (other.getAudioSourceCase()) { - case URI: { - audioSourceCase_ = 1; - audioSource_ = other.audioSource_; - onChanged(); - break; - } - case AUDIOSOURCE_NOT_SET: { - break; - } + case URI: + { + audioSourceCase_ = 1; + audioSource_ = other.audioSource_; + onChanged(); + break; + } + case AUDIOSOURCE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -670,32 +725,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - audioSourceCase_ = 1; - audioSource_ = s; - break; - } // case 10 - case 34: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 34 - case 42: { - input.readMessage( - getConfigMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + audioSourceCase_ = 1; + audioSource_ = s; + break; + } // case 10 + case 34: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: + { + input.readMessage(getConfigMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -705,12 +760,12 @@ public Builder mergeFrom( } // finally 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() { @@ -723,11 +778,14 @@ public Builder clearAudioSource() { private int bitField0_; /** + * + * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; + * * @return Whether the uri field is set. */ @java.lang.Override @@ -735,11 +793,14 @@ public boolean hasUri() { return audioSourceCase_ == 1; } /** + * + * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; + * * @return The uri. */ @java.lang.Override @@ -749,8 +810,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_ == 1) { audioSource_ = s; @@ -761,24 +821,25 @@ public java.lang.String getUri() { } } /** + * + * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; + * * @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_ == 1) { 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_ == 1) { audioSource_ = b; } @@ -788,28 +849,35 @@ public java.lang.String getUri() { } } /** + * + * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } audioSourceCase_ = 1; audioSource_ = value; onChanged(); return this; } /** + * + * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -821,17 +889,21 @@ public Builder clearUri() { return this; } /** + * + * *
      * Cloud Storage URI for the audio file.
      * 
* * string uri = 1; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); audioSourceCase_ = 1; audioSource_ = value; @@ -841,8 +913,13 @@ public Builder setUriBytes( private com.google.cloud.speech.v2.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> configBuilder_; + com.google.cloud.speech.v2.RecognitionConfig, + com.google.cloud.speech.v2.RecognitionConfig.Builder, + com.google.cloud.speech.v2.RecognitionConfigOrBuilder> + configBuilder_; /** + * + * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -855,12 +932,15 @@ public Builder setUriBytes(
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -873,16 +953,21 @@ public boolean hasConfig() {
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return The config. */ public com.google.cloud.speech.v2.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -910,6 +995,8 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -923,8 +1010,7 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
      *
      * .google.cloud.speech.v2.RecognitionConfig config = 4;
      */
-    public Builder setConfig(
-        com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
+    public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
       if (configBuilder_ == null) {
         config_ = builderForValue.build();
       } else {
@@ -935,6 +1021,8 @@ public Builder setConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -950,9 +1038,9 @@ public Builder setConfig(
      */
     public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       if (configBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          config_ != null &&
-          config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && config_ != null
+            && config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
           getConfigBuilder().mergeFrom(value);
         } else {
           config_ = value;
@@ -965,6 +1053,8 @@ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -989,6 +1079,8 @@ public Builder clearConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1008,6 +1100,8 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() {
       return getConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1025,11 +1119,14 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
       if (configBuilder_ != null) {
         return configBuilder_.getMessageOrBuilder();
       } else {
-        return config_ == null ?
-            com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
+        return config_ == null
+            ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
+            : config_;
       }
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1044,14 +1141,17 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * .google.cloud.speech.v2.RecognitionConfig config = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> 
+            com.google.cloud.speech.v2.RecognitionConfig,
+            com.google.cloud.speech.v2.RecognitionConfig.Builder,
+            com.google.cloud.speech.v2.RecognitionConfigOrBuilder>
         getConfigFieldBuilder() {
       if (configBuilder_ == null) {
-        configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
-                getConfig(),
-                getParentForChildren(),
-                isClean());
+        configBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v2.RecognitionConfig,
+                com.google.cloud.speech.v2.RecognitionConfig.Builder,
+                com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
+                getConfig(), getParentForChildren(), isClean());
         config_ = null;
       }
       return configBuilder_;
@@ -1059,8 +1159,13 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
 
     private com.google.protobuf.FieldMask configMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> configMaskBuilder_;
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
+        configMaskBuilder_;
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1078,12 +1183,15 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return Whether the configMask field is set. */ public boolean hasConfigMask() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1101,16 +1209,21 @@ public boolean hasConfigMask() {
      * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return The configMask. */ public com.google.protobuf.FieldMask getConfigMask() { if (configMaskBuilder_ == null) { - return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; + return configMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : configMask_; } else { return configMaskBuilder_.getMessage(); } } /** + * + * *
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1143,6 +1256,8 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1161,8 +1276,7 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask config_mask = 5;
      */
-    public Builder setConfigMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (configMaskBuilder_ == null) {
         configMask_ = builderForValue.build();
       } else {
@@ -1173,6 +1287,8 @@ public Builder setConfigMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1193,9 +1309,9 @@ public Builder setConfigMask(
      */
     public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       if (configMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          configMask_ != null &&
-          configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && configMask_ != null
+            && configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getConfigMaskBuilder().mergeFrom(value);
         } else {
           configMask_ = value;
@@ -1208,6 +1324,8 @@ public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1237,6 +1355,8 @@ public Builder clearConfigMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1261,6 +1381,8 @@ public com.google.protobuf.FieldMask.Builder getConfigMaskBuilder() {
       return getConfigMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1283,11 +1405,14 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
       if (configMaskBuilder_ != null) {
         return configMaskBuilder_.getMessageOrBuilder();
       } else {
-        return configMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : configMask_;
+        return configMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : configMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -1307,21 +1432,24 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
      * .google.protobuf.FieldMask config_mask = 5;
      */
     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>
         getConfigMaskFieldBuilder() {
       if (configMaskBuilder_ == null) {
-        configMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getConfigMask(),
-                getParentForChildren(),
-                isClean());
+        configMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getConfigMask(), getParentForChildren(), isClean());
         configMask_ = null;
       }
       return configMaskBuilder_;
     }
+
     @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);
     }
 
@@ -1331,12 +1459,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeFileMetadata)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeFileMetadata)
   private static final com.google.cloud.speech.v2.BatchRecognizeFileMetadata DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeFileMetadata();
   }
@@ -1345,27 +1473,27 @@ public static com.google.cloud.speech.v2.BatchRecognizeFileMetadata getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchRecognizeFileMetadata parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchRecognizeFileMetadata parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1380,6 +1508,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.speech.v2.BatchRecognizeFileMetadata getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java
similarity index 87%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java
index 0769802337de..8e666904d05e 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileMetadataOrBuilder.java
@@ -1,42 +1,68 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
-public interface BatchRecognizeFileMetadataOrBuilder extends
+public interface BatchRecognizeFileMetadataOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeFileMetadata)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; + * * @return Whether the uri field is set. */ boolean hasUri(); /** + * + * *
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Cloud Storage URI for the audio file.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -49,10 +75,13 @@ public interface BatchRecognizeFileMetadataOrBuilder extends
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -65,10 +94,13 @@ public interface BatchRecognizeFileMetadataOrBuilder extends
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return The config. */ com.google.cloud.speech.v2.RecognitionConfig getConfig(); /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -85,6 +117,8 @@ public interface BatchRecognizeFileMetadataOrBuilder extends
   com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -102,10 +136,13 @@ public interface BatchRecognizeFileMetadataOrBuilder extends
    * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return Whether the configMask field is set. */ boolean hasConfigMask(); /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
@@ -123,10 +160,13 @@ public interface BatchRecognizeFileMetadataOrBuilder extends
    * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return The configMask. */ com.google.protobuf.FieldMask getConfigMask(); /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeFileMetadata.config] that
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java
similarity index 68%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java
index cfb53bc3ef30..17f5d8a3fbc3 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResult.java
@@ -1,62 +1,85 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
+ *
+ *
  * 
  * Final results for a single file.
  * 
* * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeFileResult} */ -public final class BatchRecognizeFileResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchRecognizeFileResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeFileResult) BatchRecognizeFileResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchRecognizeFileResult.newBuilder() to construct. private BatchRecognizeFileResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchRecognizeFileResult() { uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchRecognizeFileResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.BatchRecognizeFileResult.class, com.google.cloud.speech.v2.BatchRecognizeFileResult.Builder.class); + com.google.cloud.speech.v2.BatchRecognizeFileResult.class, + com.google.cloud.speech.v2.BatchRecognizeFileResult.Builder.class); } public static final int URI_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** + * + * *
    * The GCS URI to which recognition results were written.
    * 
* * string uri = 1; + * * @return The uri. */ @java.lang.Override @@ -65,29 +88,29 @@ 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; } } /** + * + * *
    * The GCS URI to which recognition results were written.
    * 
* * string uri = 1; + * * @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 { @@ -98,11 +121,14 @@ public java.lang.String getUri() { public static final int ERROR_FIELD_NUMBER = 2; private com.google.rpc.Status error_; /** + * + * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ @java.lang.Override @@ -110,11 +136,14 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; + * * @return The error. */ @java.lang.Override @@ -122,6 +151,8 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** + * + * *
    * Error if one was encountered.
    * 
@@ -134,6 +165,7 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -145,8 +177,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(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); } @@ -166,8 +197,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); } if (error_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getError()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,19 +207,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.v2.BatchRecognizeFileResult)) { return super.equals(obj); } - com.google.cloud.speech.v2.BatchRecognizeFileResult other = (com.google.cloud.speech.v2.BatchRecognizeFileResult) obj; + com.google.cloud.speech.v2.BatchRecognizeFileResult other = + (com.google.cloud.speech.v2.BatchRecognizeFileResult) obj; - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -214,129 +243,135 @@ public int hashCode() { } public static com.google.cloud.speech.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.BatchRecognizeFileResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.BatchRecognizeFileResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult 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.v2.BatchRecognizeFileResult 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; } /** + * + * *
    * Final results for a single file.
    * 
* * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeFileResult} */ - 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.v2.BatchRecognizeFileResult) com.google.cloud.speech.v2.BatchRecognizeFileResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.BatchRecognizeFileResult.class, com.google.cloud.speech.v2.BatchRecognizeFileResult.Builder.class); + com.google.cloud.speech.v2.BatchRecognizeFileResult.class, + com.google.cloud.speech.v2.BatchRecognizeFileResult.Builder.class); } // Construct using com.google.cloud.speech.v2.BatchRecognizeFileResult.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +386,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; } @java.lang.Override @@ -372,8 +407,11 @@ public com.google.cloud.speech.v2.BatchRecognizeFileResult build() { @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeFileResult buildPartial() { - com.google.cloud.speech.v2.BatchRecognizeFileResult result = new com.google.cloud.speech.v2.BatchRecognizeFileResult(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v2.BatchRecognizeFileResult result = + new com.google.cloud.speech.v2.BatchRecognizeFileResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -384,9 +422,7 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeFileResult r result.uri_ = uri_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.error_ = errorBuilder_ == null - ? error_ - : errorBuilder_.build(); + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); } } @@ -394,38 +430,39 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeFileResult r 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.v2.BatchRecognizeFileResult) { - return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeFileResult)other); + return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeFileResult) other); } else { super.mergeFrom(other); return this; @@ -433,7 +470,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeFileResult other) { - if (other == com.google.cloud.speech.v2.BatchRecognizeFileResult.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v2.BatchRecognizeFileResult.getDefaultInstance()) + return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; bitField0_ |= 0x00000001; @@ -468,24 +506,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getErrorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -495,22 +534,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object uri_ = ""; /** + * + * *
      * The GCS URI to which recognition results were written.
      * 
* * string uri = 1; + * * @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; @@ -519,20 +561,21 @@ public java.lang.String getUri() { } } /** + * + * *
      * The GCS URI to which recognition results were written.
      * 
* * string uri = 1; + * * @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 { @@ -540,28 +583,35 @@ public java.lang.String getUri() { } } /** + * + * *
      * The GCS URI to which recognition results were written.
      * 
* * string uri = 1; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The GCS URI to which recognition results were written.
      * 
* * string uri = 1; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -571,17 +621,21 @@ public Builder clearUri() { return this; } /** + * + * *
      * The GCS URI to which recognition results were written.
      * 
* * string uri = 1; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000001; @@ -591,24 +645,31 @@ public Builder setUriBytes( 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_; /** + * + * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -619,6 +680,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * Error if one was encountered.
      * 
@@ -639,14 +702,15 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** + * + * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; */ - public Builder setError( - com.google.rpc.Status.Builder builderForValue) { + public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); } else { @@ -657,6 +721,8 @@ public Builder setError( return this; } /** + * + * *
      * Error if one was encountered.
      * 
@@ -665,9 +731,9 @@ public Builder setError( */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - error_ != null && - error_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; @@ -680,6 +746,8 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** + * + * *
      * Error if one was encountered.
      * 
@@ -697,6 +765,8 @@ public Builder clearError() { return this; } /** + * + * *
      * Error if one was encountered.
      * 
@@ -709,6 +779,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** + * + * *
      * Error if one was encountered.
      * 
@@ -719,11 +791,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_; } } /** + * + * *
      * Error if one was encountered.
      * 
@@ -731,21 +804,21 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 2; */ 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_; } + @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); } @@ -755,12 +828,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeFileResult) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeFileResult) private static final com.google.cloud.speech.v2.BatchRecognizeFileResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeFileResult(); } @@ -769,27 +842,27 @@ public static com.google.cloud.speech.v2.BatchRecognizeFileResult getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRecognizeFileResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchRecognizeFileResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -804,6 +877,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.BatchRecognizeFileResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java similarity index 60% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java index 75094b397db2..5ec2c3bdb67d 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeFileResultOrBuilder.java @@ -1,51 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface BatchRecognizeFileResultOrBuilder extends +public interface BatchRecognizeFileResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeFileResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The GCS URI to which recognition results were written.
    * 
* * string uri = 1; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * The GCS URI to which recognition results were written.
    * 
* * string uri = 1; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * Error if one was encountered.
    * 
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java similarity index 51% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java index d8db2e8bd21f..cfac2e6b4760 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadata.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Operation metadata for
  * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize].
@@ -11,144 +28,177 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeMetadata}
  */
-public final class BatchRecognizeMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchRecognizeMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeMetadata)
     BatchRecognizeMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchRecognizeMetadata.newBuilder() to construct.
   private BatchRecognizeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private BatchRecognizeMetadata() {
-  }
+
+  private BatchRecognizeMetadata() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchRecognizeMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 1:
         return internalGetTranscriptionMetadata();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.BatchRecognizeMetadata.class, com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder.class);
+            com.google.cloud.speech.v2.BatchRecognizeMetadata.class,
+            com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder.class);
   }
 
   public static final int TRANSCRIPTION_METADATA_FIELD_NUMBER = 1;
+
   private static final class TranscriptionMetadataDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-        java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> defaultEntry =
+            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
+        defaultEntry =
             com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.getDefaultInstance());
+                .
+                    newDefaultInstance(
+                        com.google.cloud.speech.v2.CloudSpeechProto
+                            .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_descriptor,
+                        com.google.protobuf.WireFormat.FieldType.STRING,
+                        "",
+                        com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                        com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata
+                            .getDefaultInstance());
   }
+
   @SuppressWarnings("serial")
   private com.google.protobuf.MapField<
-      java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcriptionMetadata_;
-  private com.google.protobuf.MapField
-  internalGetTranscriptionMetadata() {
+          java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
+      transcriptionMetadata_;
+
+  private com.google.protobuf.MapField<
+          java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
+      internalGetTranscriptionMetadata() {
     if (transcriptionMetadata_ == null) {
       return com.google.protobuf.MapField.emptyMapField(
           TranscriptionMetadataDefaultEntryHolder.defaultEntry);
     }
     return transcriptionMetadata_;
   }
+
   public int getTranscriptionMetadataCount() {
     return internalGetTranscriptionMetadata().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Map from provided filename to the transcription metadata for that file.
    * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ @java.lang.Override - public boolean containsTranscriptionMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsTranscriptionMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetTranscriptionMetadata().getMap().containsKey(key); } - /** - * Use {@link #getTranscriptionMetadataMap()} instead. - */ + /** Use {@link #getTranscriptionMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getTranscriptionMetadata() { + public java.util.Map< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> + getTranscriptionMetadata() { return getTranscriptionMetadataMap(); } /** + * + * *
    * Map from provided filename to the transcription metadata for that file.
    * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ @java.lang.Override - public java.util.Map getTranscriptionMetadataMap() { + public java.util.Map< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> + getTranscriptionMetadataMap() { return internalGetTranscriptionMetadata().getMap(); } /** + * + * *
    * Map from provided filename to the transcription metadata for that file.
    * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTranscriptionMetadata().getMap(); + public /* nullable */ com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata + getTranscriptionMetadataOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetTranscriptionMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Map from provided filename to the transcription metadata for that file.
    * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTranscriptionMetadata().getMap(); + public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata + getTranscriptionMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetTranscriptionMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -156,6 +206,7 @@ public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,10 +218,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetTranscriptionMetadata(), TranscriptionMetadataDefaultEntryHolder.defaultEntry, @@ -184,15 +233,18 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetTranscriptionMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry - transcriptionMetadata__ = TranscriptionMetadataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, transcriptionMetadata__); + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> + entry : internalGetTranscriptionMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> + transcriptionMetadata__ = + TranscriptionMetadataDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, transcriptionMetadata__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -202,15 +254,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.v2.BatchRecognizeMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v2.BatchRecognizeMetadata other = (com.google.cloud.speech.v2.BatchRecognizeMetadata) obj; + com.google.cloud.speech.v2.BatchRecognizeMetadata other = + (com.google.cloud.speech.v2.BatchRecognizeMetadata) obj; - if (!internalGetTranscriptionMetadata().equals( - other.internalGetTranscriptionMetadata())) return false; + if (!internalGetTranscriptionMetadata().equals(other.internalGetTranscriptionMetadata())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,96 +285,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.BatchRecognizeMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.BatchRecognizeMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata 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.v2.BatchRecognizeMetadata 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; } /** + * + * *
    * Operation metadata for
    * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize].
@@ -329,55 +389,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeMetadata}
    */
-  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.v2.BatchRecognizeMetadata)
       com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 1:
           return internalGetTranscriptionMetadata();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 1:
           return internalGetMutableTranscriptionMetadata();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.BatchRecognizeMetadata.class, com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder.class);
+              com.google.cloud.speech.v2.BatchRecognizeMetadata.class,
+              com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.BatchRecognizeMetadata.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -387,9 +444,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -408,8 +465,11 @@ public com.google.cloud.speech.v2.BatchRecognizeMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.BatchRecognizeMetadata buildPartial() {
-      com.google.cloud.speech.v2.BatchRecognizeMetadata result = new com.google.cloud.speech.v2.BatchRecognizeMetadata(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.BatchRecognizeMetadata result =
+          new com.google.cloud.speech.v2.BatchRecognizeMetadata(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -426,38 +486,39 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeMetadata res
     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.v2.BatchRecognizeMetadata) {
-        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeMetadata)other);
+        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -465,9 +526,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeMetadata other) {
-      if (other == com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance()) return this;
-      internalGetMutableTranscriptionMetadata().mergeFrom(
-          other.internalGetTranscriptionMetadata());
+      if (other == com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance())
+        return this;
+      internalGetMutableTranscriptionMetadata().mergeFrom(other.internalGetTranscriptionMetadata());
       bitField0_ |= 0x00000001;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -495,21 +556,28 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.protobuf.MapEntry
-              transcriptionMetadata__ = input.readMessage(
-                  TranscriptionMetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableTranscriptionMetadata().getMutableMap().put(
-                  transcriptionMetadata__.getKey(), transcriptionMetadata__.getValue());
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.protobuf.MapEntry<
+                        java.lang.String,
+                        com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
+                    transcriptionMetadata__ =
+                        input.readMessage(
+                            TranscriptionMetadataDefaultEntryHolder.defaultEntry.getParserForType(),
+                            extensionRegistry);
+                internalGetMutableTranscriptionMetadata()
+                    .getMutableMap()
+                    .put(transcriptionMetadata__.getKey(), transcriptionMetadata__.getValue());
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -519,11 +587,15 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.MapField<
-        java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcriptionMetadata_;
-    private com.google.protobuf.MapField
+            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
+        transcriptionMetadata_;
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
         internalGetTranscriptionMetadata() {
       if (transcriptionMetadata_ == null) {
         return com.google.protobuf.MapField.emptyMapField(
@@ -531,11 +603,14 @@ public Builder mergeFrom(
       }
       return transcriptionMetadata_;
     }
-    private com.google.protobuf.MapField
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata>
         internalGetMutableTranscriptionMetadata() {
       if (transcriptionMetadata_ == null) {
-        transcriptionMetadata_ = com.google.protobuf.MapField.newMapField(
-            TranscriptionMetadataDefaultEntryHolder.defaultEntry);
+        transcriptionMetadata_ =
+            com.google.protobuf.MapField.newMapField(
+                TranscriptionMetadataDefaultEntryHolder.defaultEntry);
       }
       if (!transcriptionMetadata_.isMutable()) {
         transcriptionMetadata_ = transcriptionMetadata_.copy();
@@ -544,140 +619,181 @@ public Builder mergeFrom(
       onChanged();
       return transcriptionMetadata_;
     }
+
     public int getTranscriptionMetadataCount() {
       return internalGetTranscriptionMetadata().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ @java.lang.Override - public boolean containsTranscriptionMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsTranscriptionMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetTranscriptionMetadata().getMap().containsKey(key); } - /** - * Use {@link #getTranscriptionMetadataMap()} instead. - */ + /** Use {@link #getTranscriptionMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getTranscriptionMetadata() { + public java.util.Map< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> + getTranscriptionMetadata() { return getTranscriptionMetadataMap(); } /** + * + * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ @java.lang.Override - public java.util.Map getTranscriptionMetadataMap() { + public java.util.Map< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> + getTranscriptionMetadataMap() { return internalGetTranscriptionMetadata().getMap(); } /** + * + * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTranscriptionMetadata().getMap(); + public /* nullable */ com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata + getTranscriptionMetadataOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> + map = internalGetTranscriptionMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTranscriptionMetadata().getMap(); + public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata + getTranscriptionMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> + map = internalGetTranscriptionMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearTranscriptionMetadata() { bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableTranscriptionMetadata().getMutableMap() - .clear(); + internalGetMutableTranscriptionMetadata().getMutableMap().clear(); return this; } /** + * + * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ - public Builder removeTranscriptionMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableTranscriptionMetadata().getMutableMap() - .remove(key); + public Builder removeTranscriptionMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableTranscriptionMetadata().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> getMutableTranscriptionMetadata() { bitField0_ |= 0x00000001; return internalGetMutableTranscriptionMetadata().getMutableMap(); } /** + * + * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ public Builder putTranscriptionMetadata( java.lang.String key, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableTranscriptionMetadata().getMutableMap() - .put(key, value); + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableTranscriptionMetadata().getMutableMap().put(key, value); bitField0_ |= 0x00000001; return this; } /** + * + * *
      * Map from provided filename to the transcription metadata for that file.
      * 
* - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * */ public Builder putAllTranscriptionMetadata( - java.util.Map values) { - internalGetMutableTranscriptionMetadata().getMutableMap() - .putAll(values); + java.util.Map< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> + values) { + internalGetMutableTranscriptionMetadata().getMutableMap().putAll(values); bitField0_ |= 0x00000001; 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); } @@ -687,12 +803,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeMetadata) private static final com.google.cloud.speech.v2.BatchRecognizeMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeMetadata(); } @@ -701,27 +817,27 @@ public static com.google.cloud.speech.v2.BatchRecognizeMetadata getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRecognizeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchRecognizeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -736,6 +852,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.BatchRecognizeMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java new file mode 100644 index 000000000000..353613c3a61f --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public interface BatchRecognizeMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Map from provided filename to the transcription metadata for that file.
+   * 
+ * + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + */ + int getTranscriptionMetadataCount(); + /** + * + * + *
+   * Map from provided filename to the transcription metadata for that file.
+   * 
+ * + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + */ + boolean containsTranscriptionMetadata(java.lang.String key); + /** Use {@link #getTranscriptionMetadataMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getTranscriptionMetadata(); + /** + * + * + *
+   * Map from provided filename to the transcription metadata for that file.
+   * 
+ * + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + */ + java.util.Map + getTranscriptionMetadataMap(); + /** + * + * + *
+   * Map from provided filename to the transcription metadata for that file.
+   * 
+ * + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + */ + /* nullable */ + com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue); + /** + * + * + *
+   * Map from provided filename to the transcription metadata for that file.
+   * 
+ * + * + * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; + * + */ + com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrThrow( + java.lang.String key); +} diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java similarity index 76% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java index 865cc8a206b9..563a9d435667 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeRequest}
  */
-public final class BatchRecognizeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeRequest)
     BatchRecognizeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchRecognizeRequest.newBuilder() to construct.
   private BatchRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private BatchRecognizeRequest() {
     recognizer_ = "";
     files_ = java.util.Collections.emptyList();
@@ -28,38 +46,45 @@ private BatchRecognizeRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.BatchRecognizeRequest.class, com.google.cloud.speech.v2.BatchRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v2.BatchRecognizeRequest.class,
+            com.google.cloud.speech.v2.BatchRecognizeRequest.Builder.class);
   }
 
   public static final int RECOGNIZER_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object recognizer_ = "";
   /**
+   *
+   *
    * 
    * Required. Resource name of the recognizer to be used for ASR.
    * 
* - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The recognizer. */ @java.lang.Override @@ -68,29 +93,31 @@ public java.lang.String getRecognizer() { 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(); recognizer_ = s; return s; } } /** + * + * *
    * Required. Resource name of the recognizer to be used for ASR.
    * 
* - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for recognizer. */ @java.lang.Override - public com.google.protobuf.ByteString - getRecognizerBytes() { + public com.google.protobuf.ByteString getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -101,6 +128,8 @@ public java.lang.String getRecognizer() { public static final int CONFIG_FIELD_NUMBER = 4; private com.google.cloud.speech.v2.RecognitionConfig config_; /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -111,6 +140,7 @@ public java.lang.String getRecognizer() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return Whether the config field is set. */ @java.lang.Override @@ -118,6 +148,8 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -128,13 +160,18 @@ public boolean hasConfig() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -148,12 +185,16 @@ public com.google.cloud.speech.v2.RecognitionConfig getConfig() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder() {
-    return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
+    return config_ == null
+        ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
+        : config_;
   }
 
   public static final int CONFIG_MASK_FIELD_NUMBER = 5;
   private com.google.protobuf.FieldMask configMask_;
   /**
+   *
+   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -171,6 +212,7 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return Whether the configMask field is set. */ @java.lang.Override @@ -178,6 +220,8 @@ public boolean hasConfigMask() { return configMask_ != null; } /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -195,6 +239,7 @@ public boolean hasConfigMask() {
    * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return The configMask. */ @java.lang.Override @@ -202,6 +247,8 @@ public com.google.protobuf.FieldMask getConfigMask() { return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -226,9 +273,12 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
   }
 
   public static final int FILES_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private java.util.List files_;
   /**
+   *
+   *
    * 
    * Audio files with file metadata for ASR.
    * 
@@ -240,6 +290,8 @@ public java.util.List get return files_; } /** + * + * *
    * Audio files with file metadata for ASR.
    * 
@@ -247,11 +299,13 @@ public java.util.List get * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ @java.lang.Override - public java.util.List + public java.util.List getFilesOrBuilderList() { return files_; } /** + * + * *
    * Audio files with file metadata for ASR.
    * 
@@ -263,6 +317,8 @@ public int getFilesCount() { return files_.size(); } /** + * + * *
    * Audio files with file metadata for ASR.
    * 
@@ -274,6 +330,8 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata getFiles(int index) return files_.get(index); } /** + * + * *
    * Audio files with file metadata for ASR.
    * 
@@ -287,6 +345,7 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -298,8 +357,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(recognizer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recognizer_); } @@ -325,16 +383,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, recognizer_); } for (int i = 0; i < files_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, files_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, files_.get(i)); } if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfig()); } if (configMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getConfigMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getConfigMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -344,27 +399,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.v2.BatchRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.BatchRecognizeRequest other = (com.google.cloud.speech.v2.BatchRecognizeRequest) obj; + com.google.cloud.speech.v2.BatchRecognizeRequest other = + (com.google.cloud.speech.v2.BatchRecognizeRequest) obj; - if (!getRecognizer() - .equals(other.getRecognizer())) return false; + if (!getRecognizer().equals(other.getRecognizer())) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (hasConfigMask() != other.hasConfigMask()) return false; if (hasConfigMask()) { - if (!getConfigMask() - .equals(other.getConfigMask())) return false; + if (!getConfigMask().equals(other.getConfigMask())) return false; } - if (!getFilesList() - .equals(other.getFilesList())) return false; + if (!getFilesList().equals(other.getFilesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -395,97 +447,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.BatchRecognizeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.BatchRecognizeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.BatchRecognizeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.BatchRecognizeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest 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.v2.BatchRecognizeRequest 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; } /** + * + * *
    * Request message for the
    * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize]
@@ -494,33 +553,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeRequest}
    */
-  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.v2.BatchRecognizeRequest)
       com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.BatchRecognizeRequest.class, com.google.cloud.speech.v2.BatchRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v2.BatchRecognizeRequest.class,
+              com.google.cloud.speech.v2.BatchRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.BatchRecognizeRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -547,9 +605,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -568,14 +626,18 @@ public com.google.cloud.speech.v2.BatchRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.BatchRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v2.BatchRecognizeRequest result = new com.google.cloud.speech.v2.BatchRecognizeRequest(this);
+      com.google.cloud.speech.v2.BatchRecognizeRequest result =
+          new com.google.cloud.speech.v2.BatchRecognizeRequest(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.BatchRecognizeRequest result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v2.BatchRecognizeRequest result) {
       if (filesBuilder_ == null) {
         if (((bitField0_ & 0x00000008) != 0)) {
           files_ = java.util.Collections.unmodifiableList(files_);
@@ -593,14 +655,10 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeRequest resu
         result.recognizer_ = recognizer_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.config_ = configBuilder_ == null
-            ? config_
-            : configBuilder_.build();
+        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.configMask_ = configMaskBuilder_ == null
-            ? configMask_
-            : configMaskBuilder_.build();
+        result.configMask_ = configMaskBuilder_ == null ? configMask_ : configMaskBuilder_.build();
       }
     }
 
@@ -608,38 +666,39 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeRequest resu
     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.v2.BatchRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -647,7 +706,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeRequest other) {
-      if (other == com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance())
+        return this;
       if (!other.getRecognizer().isEmpty()) {
         recognizer_ = other.recognizer_;
         bitField0_ |= 0x00000001;
@@ -677,9 +737,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeRequest other)
             filesBuilder_ = null;
             files_ = other.files_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            filesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getFilesFieldBuilder() : null;
+            filesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getFilesFieldBuilder()
+                    : null;
           } else {
             filesBuilder_.addAllMessages(other.files_);
           }
@@ -711,44 +772,45 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              recognizer_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 26: {
-              com.google.cloud.speech.v2.BatchRecognizeFileMetadata m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.BatchRecognizeFileMetadata.parser(),
-                      extensionRegistry);
-              if (filesBuilder_ == null) {
-                ensureFilesIsMutable();
-                files_.add(m);
-              } else {
-                filesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getConfigMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                recognizer_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 26:
+              {
+                com.google.cloud.speech.v2.BatchRecognizeFileMetadata m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.BatchRecognizeFileMetadata.parser(),
+                        extensionRegistry);
+                if (filesBuilder_ == null) {
+                  ensureFilesIsMutable();
+                  files_.add(m);
+                } else {
+                  filesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getConfigMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -758,22 +820,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object recognizer_ = "";
     /**
+     *
+     *
      * 
      * Required. Resource name of the recognizer to be used for ASR.
      * 
* - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The recognizer. */ public java.lang.String getRecognizer() { java.lang.Object ref = recognizer_; 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(); recognizer_ = s; return s; @@ -782,20 +849,23 @@ public java.lang.String getRecognizer() { } } /** + * + * *
      * Required. Resource name of the recognizer to be used for ASR.
      * 
* - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for recognizer. */ - public com.google.protobuf.ByteString - getRecognizerBytes() { + public com.google.protobuf.ByteString getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -803,28 +873,39 @@ public java.lang.String getRecognizer() { } } /** + * + * *
      * Required. Resource name of the recognizer to be used for ASR.
      * 
* - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizer( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecognizer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } recognizer_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Resource name of the recognizer to be used for ASR.
      * 
* - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearRecognizer() { @@ -834,17 +915,23 @@ public Builder clearRecognizer() { return this; } /** + * + * *
      * Required. Resource name of the recognizer to be used for ASR.
      * 
* - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecognizerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); recognizer_ = value; bitField0_ |= 0x00000001; @@ -854,8 +941,13 @@ public Builder setRecognizerBytes( private com.google.cloud.speech.v2.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> configBuilder_; + com.google.cloud.speech.v2.RecognitionConfig, + com.google.cloud.speech.v2.RecognitionConfig.Builder, + com.google.cloud.speech.v2.RecognitionConfigOrBuilder> + configBuilder_; /** + * + * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -866,12 +958,15 @@ public Builder setRecognizerBytes(
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -882,16 +977,21 @@ public boolean hasConfig() {
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return The config. */ public com.google.cloud.speech.v2.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -917,6 +1017,8 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -928,8 +1030,7 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
      *
      * .google.cloud.speech.v2.RecognitionConfig config = 4;
      */
-    public Builder setConfig(
-        com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
+    public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
       if (configBuilder_ == null) {
         config_ = builderForValue.build();
       } else {
@@ -940,6 +1041,8 @@ public Builder setConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -953,9 +1056,9 @@ public Builder setConfig(
      */
     public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       if (configBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          config_ != null &&
-          config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && config_ != null
+            && config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
           getConfigBuilder().mergeFrom(value);
         } else {
           config_ = value;
@@ -968,6 +1071,8 @@ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -990,6 +1095,8 @@ public Builder clearConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1007,6 +1114,8 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() {
       return getConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1022,11 +1131,14 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
       if (configBuilder_ != null) {
         return configBuilder_.getMessageOrBuilder();
       } else {
-        return config_ == null ?
-            com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
+        return config_ == null
+            ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
+            : config_;
       }
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1039,14 +1151,17 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * .google.cloud.speech.v2.RecognitionConfig config = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> 
+            com.google.cloud.speech.v2.RecognitionConfig,
+            com.google.cloud.speech.v2.RecognitionConfig.Builder,
+            com.google.cloud.speech.v2.RecognitionConfigOrBuilder>
         getConfigFieldBuilder() {
       if (configBuilder_ == null) {
-        configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
-                getConfig(),
-                getParentForChildren(),
-                isClean());
+        configBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v2.RecognitionConfig,
+                com.google.cloud.speech.v2.RecognitionConfig.Builder,
+                com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
+                getConfig(), getParentForChildren(), isClean());
         config_ = null;
       }
       return configBuilder_;
@@ -1054,8 +1169,13 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
 
     private com.google.protobuf.FieldMask configMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> configMaskBuilder_;
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
+        configMaskBuilder_;
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1073,12 +1193,15 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return Whether the configMask field is set. */ public boolean hasConfigMask() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1096,16 +1219,21 @@ public boolean hasConfigMask() {
      * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return The configMask. */ public com.google.protobuf.FieldMask getConfigMask() { if (configMaskBuilder_ == null) { - return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; + return configMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : configMask_; } else { return configMaskBuilder_.getMessage(); } } /** + * + * *
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1138,6 +1266,8 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1156,8 +1286,7 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask config_mask = 5;
      */
-    public Builder setConfigMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (configMaskBuilder_ == null) {
         configMask_ = builderForValue.build();
       } else {
@@ -1168,6 +1297,8 @@ public Builder setConfigMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1188,9 +1319,9 @@ public Builder setConfigMask(
      */
     public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       if (configMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          configMask_ != null &&
-          configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && configMask_ != null
+            && configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getConfigMaskBuilder().mergeFrom(value);
         } else {
           configMask_ = value;
@@ -1203,6 +1334,8 @@ public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1232,6 +1365,8 @@ public Builder clearConfigMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1256,6 +1391,8 @@ public com.google.protobuf.FieldMask.Builder getConfigMaskBuilder() {
       return getConfigMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1278,11 +1415,14 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
       if (configMaskBuilder_ != null) {
         return configMaskBuilder_.getMessageOrBuilder();
       } else {
-        return configMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : configMask_;
+        return configMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : configMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -1302,32 +1442,42 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
      * .google.protobuf.FieldMask config_mask = 5;
      */
     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>
         getConfigMaskFieldBuilder() {
       if (configMaskBuilder_ == null) {
-        configMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getConfigMask(),
-                getParentForChildren(),
-                isClean());
+        configMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getConfigMask(), getParentForChildren(), isClean());
         configMask_ = null;
       }
       return configMaskBuilder_;
     }
 
     private java.util.List files_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureFilesIsMutable() {
       if (!((bitField0_ & 0x00000008) != 0)) {
-        files_ = new java.util.ArrayList(files_);
+        files_ =
+            new java.util.ArrayList(files_);
         bitField0_ |= 0x00000008;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v2.BatchRecognizeFileMetadata, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder> filesBuilder_;
+            com.google.cloud.speech.v2.BatchRecognizeFileMetadata,
+            com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder,
+            com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder>
+        filesBuilder_;
 
     /**
+     *
+     *
      * 
      * Audio files with file metadata for ASR.
      * 
@@ -1342,6 +1492,8 @@ public java.util.List get } } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1356,6 +1508,8 @@ public int getFilesCount() { } } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1370,6 +1524,8 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata getFiles(int index) } } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1391,6 +1547,8 @@ public Builder setFiles( return this; } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1409,6 +1567,8 @@ public Builder setFiles( return this; } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1429,6 +1589,8 @@ public Builder addFiles(com.google.cloud.speech.v2.BatchRecognizeFileMetadata va return this; } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1450,6 +1612,8 @@ public Builder addFiles( return this; } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1468,6 +1632,8 @@ public Builder addFiles( return this; } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1486,6 +1652,8 @@ public Builder addFiles( return this; } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1493,11 +1661,11 @@ public Builder addFiles( * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ public Builder addAllFiles( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (filesBuilder_ == null) { ensureFilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, files_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, files_); onChanged(); } else { filesBuilder_.addAllMessages(values); @@ -1505,6 +1673,8 @@ public Builder addAllFiles( return this; } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1522,6 +1692,8 @@ public Builder clearFiles() { return this; } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1539,6 +1711,8 @@ public Builder removeFiles(int index) { return this; } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1550,6 +1724,8 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder getFilesBui return getFilesFieldBuilder().getBuilder(index); } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1559,19 +1735,22 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder getFilesBui public com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOrBuilder( int index) { if (filesBuilder_ == null) { - return files_.get(index); } else { + return files_.get(index); + } else { return filesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
* * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ - public java.util.List - getFilesOrBuilderList() { + public java.util.List + getFilesOrBuilderList() { if (filesBuilder_ != null) { return filesBuilder_.getMessageOrBuilderList(); } else { @@ -1579,6 +1758,8 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOr } } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1586,10 +1767,12 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOr * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder addFilesBuilder() { - return getFilesFieldBuilder().addBuilder( - com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()); + return getFilesFieldBuilder() + .addBuilder(com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()); } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
@@ -1598,37 +1781,43 @@ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder addFilesBui */ public com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder addFilesBuilder( int index) { - return getFilesFieldBuilder().addBuilder( - index, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()); + return getFilesFieldBuilder() + .addBuilder( + index, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.getDefaultInstance()); } /** + * + * *
      * Audio files with file metadata for ASR.
      * 
* * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ - public java.util.List - getFilesBuilderList() { + public java.util.List + getFilesBuilderList() { return getFilesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeFileMetadata, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder> + com.google.cloud.speech.v2.BatchRecognizeFileMetadata, + com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder, + com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder> getFilesFieldBuilder() { if (filesBuilder_ == null) { - filesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeFileMetadata, com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder>( - files_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + filesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.BatchRecognizeFileMetadata, + com.google.cloud.speech.v2.BatchRecognizeFileMetadata.Builder, + com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder>( + files_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); files_ = null; } return filesBuilder_; } + @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); } @@ -1638,12 +1827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeRequest) private static final com.google.cloud.speech.v2.BatchRecognizeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeRequest(); } @@ -1652,27 +1841,27 @@ public static com.google.cloud.speech.v2.BatchRecognizeRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1687,6 +1876,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.BatchRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java similarity index 84% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java index e84825dedbfd..3c9471a9e2cf 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface BatchRecognizeRequestOrBuilder extends +public interface BatchRecognizeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Resource name of the recognizer to be used for ASR.
    * 
* - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The recognizer. */ java.lang.String getRecognizer(); /** + * + * *
    * Required. Resource name of the recognizer to be used for ASR.
    * 
* - * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for recognizer. */ - com.google.protobuf.ByteString - getRecognizerBytes(); + com.google.protobuf.ByteString getRecognizerBytes(); /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -38,10 +65,13 @@ public interface BatchRecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -52,10 +82,13 @@ public interface BatchRecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 4; + * * @return The config. */ com.google.cloud.speech.v2.RecognitionConfig getConfig(); /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -70,6 +103,8 @@ public interface BatchRecognizeRequestOrBuilder extends
   com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -87,10 +122,13 @@ public interface BatchRecognizeRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return Whether the configMask field is set. */ boolean hasConfigMask(); /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -108,10 +146,13 @@ public interface BatchRecognizeRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask config_mask = 5; + * * @return The configMask. */ com.google.protobuf.FieldMask getConfigMask(); /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.BatchRecognizeRequest.config] that override
@@ -133,15 +174,18 @@ public interface BatchRecognizeRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * Audio files with file metadata for ASR.
    * 
* * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ - java.util.List - getFilesList(); + java.util.List getFilesList(); /** + * + * *
    * Audio files with file metadata for ASR.
    * 
@@ -150,6 +194,8 @@ public interface BatchRecognizeRequestOrBuilder extends */ com.google.cloud.speech.v2.BatchRecognizeFileMetadata getFiles(int index); /** + * + * *
    * Audio files with file metadata for ASR.
    * 
@@ -158,21 +204,24 @@ public interface BatchRecognizeRequestOrBuilder extends */ int getFilesCount(); /** + * + * *
    * Audio files with file metadata for ASR.
    * 
* * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ - java.util.List + java.util.List getFilesOrBuilderList(); /** + * + * *
    * Audio files with file metadata for ASR.
    * 
* * repeated .google.cloud.speech.v2.BatchRecognizeFileMetadata files = 3; */ - com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOrBuilder( - int index); + com.google.cloud.speech.v2.BatchRecognizeFileMetadataOrBuilder getFilesOrBuilder(int index); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java similarity index 59% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java index 75fe5f37828b..21d2081a3b6f 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponse.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Response message for
  * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize] that is
@@ -12,82 +29,92 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeResponse}
  */
-public final class BatchRecognizeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeResponse)
     BatchRecognizeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchRecognizeResponse.newBuilder() to construct.
   private BatchRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private BatchRecognizeResponse() {
-  }
+
+  private BatchRecognizeResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 1:
         return internalGetResults();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.BatchRecognizeResponse.class, com.google.cloud.speech.v2.BatchRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v2.BatchRecognizeResponse.class,
+            com.google.cloud.speech.v2.BatchRecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 1;
+
   private static final class ResultsDefaultEntryHolder {
     static final com.google.protobuf.MapEntry<
-        java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult> defaultEntry =
+            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
+        defaultEntry =
             com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.MESSAGE,
-                com.google.cloud.speech.v2.BatchRecognizeFileResult.getDefaultInstance());
+                .
+                    newDefaultInstance(
+                        com.google.cloud.speech.v2.CloudSpeechProto
+                            .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_descriptor,
+                        com.google.protobuf.WireFormat.FieldType.STRING,
+                        "",
+                        com.google.protobuf.WireFormat.FieldType.MESSAGE,
+                        com.google.cloud.speech.v2.BatchRecognizeFileResult.getDefaultInstance());
   }
+
   @SuppressWarnings("serial")
   private com.google.protobuf.MapField<
-      java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult> results_;
-  private com.google.protobuf.MapField
-  internalGetResults() {
+          java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
+      results_;
+
+  private com.google.protobuf.MapField<
+          java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
+      internalGetResults() {
     if (results_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          ResultsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(ResultsDefaultEntryHolder.defaultEntry);
     }
     return results_;
   }
+
   public int getResultsCount() {
     return internalGetResults().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Map from filename to the final result for that file.
    * 
@@ -95,20 +122,22 @@ public int getResultsCount() { * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public boolean containsResults( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsResults(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetResults().getMap().containsKey(key); } - /** - * Use {@link #getResultsMap()} instead. - */ + /** Use {@link #getResultsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getResults() { + public java.util.Map + getResults() { return getResultsMap(); } /** + * + * *
    * Map from filename to the final result for that file.
    * 
@@ -116,10 +145,13 @@ public java.util.Mapmap<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public java.util.Map getResultsMap() { + public java.util.Map + getResultsMap() { return internalGetResults().getMap(); } /** + * + * *
    * Map from filename to the final result for that file.
    * 
@@ -127,17 +159,20 @@ public java.util.Mapmap<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( + public /* nullable */ com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetResults().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Map from filename to the final result for that file.
    * 
@@ -147,7 +182,9 @@ com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetResults().getMap(); if (!map.containsKey(key)) { @@ -157,6 +194,7 @@ public com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,14 +206,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetResults(), - ResultsDefaultEntryHolder.defaultEntry, - 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetResults(), ResultsDefaultEntryHolder.defaultEntry, 1); getUnknownFields().writeTo(output); } @@ -185,15 +218,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetResults().getMap().entrySet()) { - com.google.protobuf.MapEntry - results__ = ResultsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, results__); + for (java.util.Map.Entry + entry : internalGetResults().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult> + results__ = + ResultsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, results__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -203,15 +238,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.v2.BatchRecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.BatchRecognizeResponse other = (com.google.cloud.speech.v2.BatchRecognizeResponse) obj; + com.google.cloud.speech.v2.BatchRecognizeResponse other = + (com.google.cloud.speech.v2.BatchRecognizeResponse) obj; - if (!internalGetResults().equals( - other.internalGetResults())) return false; + if (!internalGetResults().equals(other.internalGetResults())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,96 +268,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.BatchRecognizeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.BatchRecognizeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse 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.v2.BatchRecognizeResponse 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; } /** + * + * *
    * Response message for
    * [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize] that is
@@ -331,55 +373,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeResponse}
    */
-  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.v2.BatchRecognizeResponse)
       com.google.cloud.speech.v2.BatchRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 1:
           return internalGetResults();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 1:
           return internalGetMutableResults();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.BatchRecognizeResponse.class, com.google.cloud.speech.v2.BatchRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v2.BatchRecognizeResponse.class,
+              com.google.cloud.speech.v2.BatchRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.BatchRecognizeResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -389,9 +428,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
@@ -410,8 +449,11 @@ public com.google.cloud.speech.v2.BatchRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.BatchRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v2.BatchRecognizeResponse result = new com.google.cloud.speech.v2.BatchRecognizeResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.BatchRecognizeResponse result =
+          new com.google.cloud.speech.v2.BatchRecognizeResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -428,38 +470,39 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeResponse res
     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.v2.BatchRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -467,9 +510,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeResponse other) {
-      if (other == com.google.cloud.speech.v2.BatchRecognizeResponse.getDefaultInstance()) return this;
-      internalGetMutableResults().mergeFrom(
-          other.internalGetResults());
+      if (other == com.google.cloud.speech.v2.BatchRecognizeResponse.getDefaultInstance())
+        return this;
+      internalGetMutableResults().mergeFrom(other.internalGetResults());
       bitField0_ |= 0x00000001;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -497,21 +540,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.protobuf.MapEntry
-              results__ = input.readMessage(
-                  ResultsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableResults().getMutableMap().put(
-                  results__.getKey(), results__.getValue());
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.protobuf.MapEntry<
+                        java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
+                    results__ =
+                        input.readMessage(
+                            ResultsDefaultEntryHolder.defaultEntry.getParserForType(),
+                            extensionRegistry);
+                internalGetMutableResults()
+                    .getMutableMap()
+                    .put(results__.getKey(), results__.getValue());
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -521,23 +570,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.MapField<
-        java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult> results_;
-    private com.google.protobuf.MapField
+            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
+        results_;
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
         internalGetResults() {
       if (results_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(
-            ResultsDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(ResultsDefaultEntryHolder.defaultEntry);
       }
       return results_;
     }
-    private com.google.protobuf.MapField
+
+    private com.google.protobuf.MapField<
+            java.lang.String, com.google.cloud.speech.v2.BatchRecognizeFileResult>
         internalGetMutableResults() {
       if (results_ == null) {
-        results_ = com.google.protobuf.MapField.newMapField(
-            ResultsDefaultEntryHolder.defaultEntry);
+        results_ = com.google.protobuf.MapField.newMapField(ResultsDefaultEntryHolder.defaultEntry);
       }
       if (!results_.isMutable()) {
         results_ = results_.copy();
@@ -546,10 +599,13 @@ public Builder mergeFrom(
       onChanged();
       return results_;
     }
+
     public int getResultsCount() {
       return internalGetResults().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Map from filename to the final result for that file.
      * 
@@ -557,20 +613,22 @@ public int getResultsCount() { * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public boolean containsResults( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsResults(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetResults().getMap().containsKey(key); } - /** - * Use {@link #getResultsMap()} instead. - */ + /** Use {@link #getResultsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getResults() { + public java.util.Map + getResults() { return getResultsMap(); } /** + * + * *
      * Map from filename to the final result for that file.
      * 
@@ -578,10 +636,13 @@ public java.util.Mapmap<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public java.util.Map getResultsMap() { + public java.util.Map + getResultsMap() { return internalGetResults().getMap(); } /** + * + * *
      * Map from filename to the final result for that file.
      * 
@@ -589,17 +650,20 @@ public java.util.Mapmap<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ @java.lang.Override - public /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( + public /* nullable */ com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetResults().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Map from filename to the final result for that file.
      * 
@@ -609,7 +673,9 @@ com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetResults().getMap(); if (!map.containsKey(key)) { @@ -617,29 +683,29 @@ public com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow( } return map.get(key); } + public Builder clearResults() { bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableResults().getMutableMap() - .clear(); + internalGetMutableResults().getMutableMap().clear(); return this; } /** + * + * *
      * Map from filename to the final result for that file.
      * 
* * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ - public Builder removeResults( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableResults().getMutableMap() - .remove(key); + public Builder removeResults(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableResults().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableResults() { @@ -647,6 +713,8 @@ public Builder removeResults( return internalGetMutableResults().getMutableMap(); } /** + * + * *
      * Map from filename to the final result for that file.
      * 
@@ -654,16 +722,20 @@ public Builder removeResults( * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ public Builder putResults( - java.lang.String key, - com.google.cloud.speech.v2.BatchRecognizeFileResult value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableResults().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.speech.v2.BatchRecognizeFileResult value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableResults().getMutableMap().put(key, value); bitField0_ |= 0x00000001; return this; } /** + * + * *
      * Map from filename to the final result for that file.
      * 
@@ -671,15 +743,15 @@ public Builder putResults( * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ public Builder putAllResults( - java.util.Map values) { - internalGetMutableResults().getMutableMap() - .putAll(values); + java.util.Map + values) { + internalGetMutableResults().getMutableMap().putAll(values); bitField0_ |= 0x00000001; 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 +761,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeResponse) private static final com.google.cloud.speech.v2.BatchRecognizeResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeResponse(); } @@ -703,27 +775,27 @@ public static com.google.cloud.speech.v2.BatchRecognizeResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchRecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -738,6 +810,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.BatchRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java similarity index 60% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java index 941fa7e878f7..26c78951aef5 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeResponseOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface BatchRecognizeResponseOrBuilder extends +public interface BatchRecognizeResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Map from filename to the final result for that file.
    * 
@@ -16,21 +34,21 @@ public interface BatchRecognizeResponseOrBuilder extends */ int getResultsCount(); /** + * + * *
    * Map from filename to the final result for that file.
    * 
* * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ - boolean containsResults( - java.lang.String key); - /** - * Use {@link #getResultsMap()} instead. - */ + boolean containsResults(java.lang.String key); + /** Use {@link #getResultsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getResults(); + java.util.Map getResults(); /** + * + * *
    * Map from filename to the final result for that file.
    * 
@@ -38,8 +56,10 @@ boolean containsResults( * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ java.util.Map - getResultsMap(); + getResultsMap(); /** + * + * *
    * Map from filename to the final result for that file.
    * 
@@ -47,17 +67,18 @@ boolean containsResults( * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( + com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue); + com.google.cloud.speech.v2.BatchRecognizeFileResult defaultValue); /** + * + * *
    * Map from filename to the final result for that file.
    * 
* * map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1; */ - com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow( - java.lang.String key); + com.google.cloud.speech.v2.BatchRecognizeFileResult getResultsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java similarity index 67% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java index 7d0584cd7927..b16bc466813f 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadata.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Metadata about transcription for a single file (for example, progress
  * percent).
@@ -11,52 +28,59 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata}
  */
-public final class BatchRecognizeTranscriptionMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class BatchRecognizeTranscriptionMetadata
+    extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata)
     BatchRecognizeTranscriptionMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use BatchRecognizeTranscriptionMetadata.newBuilder() to construct.
-  private BatchRecognizeTranscriptionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private BatchRecognizeTranscriptionMetadata(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private BatchRecognizeTranscriptionMetadata() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new BatchRecognizeTranscriptionMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.class, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.Builder.class);
+            com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.class,
+            com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.Builder.class);
   }
 
   public static final int PROGRESS_PERCENT_FIELD_NUMBER = 1;
   private int progressPercent_ = 0;
   /**
+   *
+   *
    * 
    * How much of the file has been transcribed so far.
    * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ @java.lang.Override @@ -67,11 +91,14 @@ public int getProgressPercent() { public static final int ERROR_FIELD_NUMBER = 2; private com.google.rpc.Status error_; /** + * + * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ @java.lang.Override @@ -79,11 +106,14 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; + * * @return The error. */ @java.lang.Override @@ -91,6 +121,8 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** + * + * *
    * Error if one was encountered.
    * 
@@ -103,14 +135,18 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { } public static final int URI_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object uri_ = ""; /** + * + * *
    * The GCS URI to which recognition results will be written.
    * 
* * string uri = 3; + * * @return The uri. */ @java.lang.Override @@ -119,29 +155,29 @@ 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; } } /** + * + * *
    * The GCS URI to which recognition results will be written.
    * 
* * string uri = 3; + * * @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 { @@ -150,6 +186,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +198,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_); } @@ -182,12 +218,10 @@ 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 (error_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getError()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); @@ -200,22 +234,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.v2.BatchRecognizeTranscriptionMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata other = (com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) obj; + com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata other = + (com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) obj; - if (getProgressPercent() - != other.getProgressPercent()) return false; + if (getProgressPercent() != other.getProgressPercent()) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; } - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,96 +273,104 @@ public int hashCode() { } public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata 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.v2.BatchRecognizeTranscriptionMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata 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; } /** + * + * *
    * Metadata about transcription for a single file (for example, progress
    * percent).
@@ -338,33 +378,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata}
    */
-  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.v2.BatchRecognizeTranscriptionMetadata)
       com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.class, com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.Builder.class);
+              com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.class,
+              com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -380,13 +419,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getDefaultInstanceForType() {
+    public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata
+        getDefaultInstanceForType() {
       return com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.getDefaultInstance();
     }
 
@@ -401,21 +441,23 @@ public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata buildPartial() {
-      com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata result = new com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata result =
+          new com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata result) {
+    private void buildPartial0(
+        com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.progressPercent_ = progressPercent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.error_ = errorBuilder_ == null
-            ? error_
-            : errorBuilder_.build();
+        result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.uri_ = uri_;
@@ -426,38 +468,39 @@ private void buildPartial0(com.google.cloud.speech.v2.BatchRecognizeTranscriptio
     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.v2.BatchRecognizeTranscriptionMetadata) {
-        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata)other);
+        return mergeFrom((com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -465,7 +508,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata other) {
-      if (other == com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata.getDefaultInstance())
+        return this;
       if (other.getProgressPercent() != 0) {
         setProgressPercent(other.getProgressPercent());
       }
@@ -503,29 +548,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              progressPercent_ = input.readInt32();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              input.readMessage(
-                  getErrorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              uri_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                progressPercent_ = input.readInt32();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                uri_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -535,15 +582,19 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private int progressPercent_ ;
+    private int progressPercent_;
     /**
+     *
+     *
      * 
      * How much of the file has been transcribed so far.
      * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ @java.lang.Override @@ -551,27 +602,33 @@ public int getProgressPercent() { return progressPercent_; } /** + * + * *
      * How much of the file has been transcribed so far.
      * 
* * int32 progress_percent = 1; + * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * How much of the file has been transcribed so far.
      * 
* * int32 progress_percent = 1; + * * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -583,24 +640,31 @@ public Builder clearProgressPercent() { 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_; /** + * + * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -611,6 +675,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * Error if one was encountered.
      * 
@@ -631,14 +697,15 @@ public Builder setError(com.google.rpc.Status value) { return this; } /** + * + * *
      * Error if one was encountered.
      * 
* * .google.rpc.Status error = 2; */ - public Builder setError( - com.google.rpc.Status.Builder builderForValue) { + public Builder setError(com.google.rpc.Status.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); } else { @@ -649,6 +716,8 @@ public Builder setError( return this; } /** + * + * *
      * Error if one was encountered.
      * 
@@ -657,9 +726,9 @@ public Builder setError( */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - error_ != null && - error_ != com.google.rpc.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; @@ -672,6 +741,8 @@ public Builder mergeError(com.google.rpc.Status value) { return this; } /** + * + * *
      * Error if one was encountered.
      * 
@@ -689,6 +760,8 @@ public Builder clearError() { return this; } /** + * + * *
      * Error if one was encountered.
      * 
@@ -701,6 +774,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** + * + * *
      * Error if one was encountered.
      * 
@@ -711,11 +786,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_; } } /** + * + * *
      * Error if one was encountered.
      * 
@@ -723,14 +799,14 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { * .google.rpc.Status error = 2; */ 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_; @@ -738,18 +814,20 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { private java.lang.Object uri_ = ""; /** + * + * *
      * The GCS URI to which recognition results will be written.
      * 
* * string uri = 3; + * * @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; @@ -758,20 +836,21 @@ public java.lang.String getUri() { } } /** + * + * *
      * The GCS URI to which recognition results will be written.
      * 
* * string uri = 3; + * * @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 { @@ -779,28 +858,35 @@ public java.lang.String getUri() { } } /** + * + * *
      * The GCS URI to which recognition results will be written.
      * 
* * string uri = 3; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uri_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The GCS URI to which recognition results will be written.
      * 
* * string uri = 3; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -810,26 +896,30 @@ public Builder clearUri() { return this; } /** + * + * *
      * The GCS URI to which recognition results will be written.
      * 
* * string uri = 3; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uri_ = value; bitField0_ |= 0x00000004; 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); } @@ -839,41 +929,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) - private static final com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata(); } - public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getDefaultInstance() { + public static com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchRecognizeTranscriptionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchRecognizeTranscriptionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -885,9 +977,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getDefaultInstanceForType() { + public com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java similarity index 63% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java index 3398c30c398a..f2763466c9d6 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeTranscriptionMetadataOrBuilder.java @@ -1,41 +1,68 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface BatchRecognizeTranscriptionMetadataOrBuilder extends +public interface BatchRecognizeTranscriptionMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * How much of the file has been transcribed so far.
    * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ int getProgressPercent(); /** + * + * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * Error if one was encountered.
    * 
* * .google.rpc.Status error = 2; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * Error if one was encountered.
    * 
@@ -45,22 +72,27 @@ public interface BatchRecognizeTranscriptionMetadataOrBuilder extends com.google.rpc.StatusOrBuilder getErrorOrBuilder(); /** + * + * *
    * The GCS URI to which recognition results will be written.
    * 
* * string uri = 3; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * The GCS URI to which recognition results will be written.
    * 
* * string uri = 3; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java new file mode 100644 index 000000000000..dabcad59583b --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java @@ -0,0 +1,1346 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public final class CloudSpeechProto { + private CloudSpeechProto() {} + + 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_v2_CreateRecognizerRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_Recognizer_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_WordInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_Config_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_Config_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_CustomClass_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_PhraseSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_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/v2/cloud_speech.pr" + + "oto\022\026google.cloud.speech.v2\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\032#google/longrunni" + + "ng/operations.proto\032\036google/protobuf/dur" + + "ation.proto\032 google/protobuf/field_mask." + + "proto\032\037google/protobuf/timestamp.proto\032\027" + + "google/rpc/status.proto\"\276\001\n\027CreateRecogn" + + "izerRequest\022;\n\nrecognizer\030\001 \001(\0132\".google" + + ".cloud.speech.v2.RecognizerB\003\340A\002\022\025\n\rvali" + + "date_only\030\002 \001(\010\022\025\n\rrecognizer_id\030\003 \001(\t\0228" + + "\n\006parent\030\004 \001(\tB(\340A\002\372A\"\022 speech.googleapi" + + "s.com/Recognizer\"\343\014\n\021OperationMetadata\022/" + + "\n\013create_time\030\001 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022/\n\013update_time\030\002 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022\020\n\010resource\030\003 \001(\t\022\016\n\006me" + + "thod\030\004 \001(\t\022<\n\014kms_key_name\030\006 \001(\tB&\372A#\n!c" + + "loudkms.googleapis.com/CryptoKey\022K\n\024kms_" + + "key_version_name\030\007 \001(\tB-\372A*\n(cloudkms.go" + + "ogleapis.com/CryptoKeyVersion\022P\n\027batch_r" + + "ecognize_request\030\010 \001(\0132-.google.cloud.sp" + + "eech.v2.BatchRecognizeRequestH\000\022T\n\031creat" + + "e_recognizer_request\030\t \001(\0132/.google.clou" + + "d.speech.v2.CreateRecognizerRequestH\000\022T\n" + + "\031update_recognizer_request\030\n \001(\0132/.googl" + + "e.cloud.speech.v2.UpdateRecognizerReques" + + "tH\000\022T\n\031delete_recognizer_request\030\013 \001(\0132/" + + ".google.cloud.speech.v2.DeleteRecognizer" + + "RequestH\000\022X\n\033undelete_recognizer_request" + + "\030\014 \001(\01321.google.cloud.speech.v2.Undelete" + + "RecognizerRequestH\000\022W\n\033create_custom_cla" + + "ss_request\030\r \001(\01320.google.cloud.speech.v" + + "2.CreateCustomClassRequestH\000\022W\n\033update_c" + + "ustom_class_request\030\016 \001(\01320.google.cloud" + + ".speech.v2.UpdateCustomClassRequestH\000\022W\n" + + "\033delete_custom_class_request\030\017 \001(\01320.goo" + + "gle.cloud.speech.v2.DeleteCustomClassReq" + + "uestH\000\022[\n\035undelete_custom_class_request\030" + + "\020 \001(\01322.google.cloud.speech.v2.UndeleteC" + + "ustomClassRequestH\000\022S\n\031create_phrase_set" + + "_request\030\021 \001(\0132..google.cloud.speech.v2." + + "CreatePhraseSetRequestH\000\022S\n\031update_phras" + + "e_set_request\030\022 \001(\0132..google.cloud.speec" + + "h.v2.UpdatePhraseSetRequestH\000\022S\n\031delete_" + + "phrase_set_request\030\023 \001(\0132..google.cloud." + + "speech.v2.DeletePhraseSetRequestH\000\022W\n\033un" + + "delete_phrase_set_request\030\024 \001(\01320.google" + + ".cloud.speech.v2.UndeletePhraseSetReques" + + "tH\000\022L\n\025update_config_request\030\025 \001(\0132+.goo" + + "gle.cloud.speech.v2.UpdateConfigRequestH" + + "\000\022\030\n\020progress_percent\030\026 \001(\005\022R\n\030batch_rec" + + "ognize_metadata\030\027 \001(\0132..google.cloud.spe" + + "ech.v2.BatchRecognizeMetadataH\001B\t\n\007reque" + + "stB\n\n\010metadata\"\220\001\n\026ListRecognizersReques" + + "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goo" + + "gleapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(" + + "\010\"k\n\027ListRecognizersResponse\0227\n\013recogniz" + + "ers\030\001 \003(\0132\".google.cloud.speech.v2.Recog" + + "nizer\022\027\n\017next_page_token\030\002 \001(\t\"N\n\024GetRec" + + "ognizerRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n sp" + + "eech.googleapis.com/Recognizer\"\236\001\n\027Updat" + + "eRecognizerRequest\022;\n\nrecognizer\030\001 \001(\0132\"" + + ".google.cloud.speech.v2.RecognizerB\003\340A\002\022" + + "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + + "ieldMask\022\025\n\rvalidate_only\030\004 \001(\010\"\215\001\n\027Dele" + + "teRecognizerRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A" + + "\"\n speech.googleapis.com/Recognizer\022\025\n\rv" + + "alidate_only\030\002 \001(\010\022\025\n\rallow_missing\030\004 \001(" + + "\010\022\014\n\004etag\030\003 \001(\t\"x\n\031UndeleteRecognizerReq" + + "uest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n speech.googl" + + "eapis.com/Recognizer\022\025\n\rvalidate_only\030\003 " + + "\001(\010\022\014\n\004etag\030\004 \001(\t\"\276\007\n\nRecognizer\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\024\n\014display" + + "_name\030\003 \001(\t\022\022\n\005model\030\004 \001(\tB\003\340A\002\022\033\n\016langu" + + "age_codes\030\021 \003(\tB\003\340A\002\022M\n\032default_recognit" + + "ion_config\030\006 \001(\0132).google.cloud.speech.v" + + "2.RecognitionConfig\022H\n\013annotations\030\007 \003(\013" + + "23.google.cloud.speech.v2.Recognizer.Ann" + + "otationsEntry\022<\n\005state\030\010 \001(\0162(.google.cl" + + "oud.speech.v2.Recognizer.StateB\003\340A\003\0224\n\013c" + + "reate_time\030\t \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\013" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013expire_time\030\016 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\022\021\n\004etag\030\014 \001(\tB\003\340A\003\022\030\n\013reconc" + + "iling\030\r \001(\010B\003\340A\003\022?\n\014kms_key_name\030\017 \001(\tB)" + + "\340A\003\372A#\n!cloudkms.googleapis.com/CryptoKe" + + "y\022N\n\024kms_key_version_name\030\020 \001(\tB0\340A\003\372A*\n" + + "(cloudkms.googleapis.com/CryptoKeyVersio" + + "n\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"7\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\n\n\006ACTIVE\020\002\022\013\n\007DELETED\020\004:j\352Ag\n spe" + + "ech.googleapis.com/Recognizer\022@projects/" + + "{project}/locations/{location}/recognize" + + "rs/{recognizer}R\001\001\"\032\n\030AutoDetectDecoding" + + "Config\"\371\001\n\026ExplicitDecodingConfig\022S\n\010enc" + + "oding\030\001 \001(\0162<.google.cloud.speech.v2.Exp" + + "licitDecodingConfig.AudioEncodingB\003\340A\002\022\031" + + "\n\021sample_rate_hertz\030\002 \001(\005\022\033\n\023audio_chann" + + "el_count\030\003 \001(\005\"R\n\rAudioEncoding\022\036\n\032AUDIO" + + "_ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\t\n" + + "\005MULAW\020\002\022\010\n\004ALAW\020\003\"Z\n\030SpeakerDiarization" + + "Config\022\036\n\021min_speaker_count\030\002 \001(\005B\003\340A\002\022\036" + + "\n\021max_speaker_count\030\003 \001(\005B\003\340A\002\"\370\003\n\023Recog" + + "nitionFeatures\022\030\n\020profanity_filter\030\001 \001(\010" + + "\022 \n\030enable_word_time_offsets\030\002 \001(\010\022\036\n\026en" + + "able_word_confidence\030\003 \001(\010\022$\n\034enable_aut" + + "omatic_punctuation\030\004 \001(\010\022!\n\031enable_spoke" + + "n_punctuation\030\016 \001(\010\022\034\n\024enable_spoken_emo" + + "jis\030\017 \001(\010\022X\n\022multi_channel_mode\030\021 \001(\0162<." + + "google.cloud.speech.v2.RecognitionFeatur" + + "es.MultiChannelMode\022L\n\022diarization_confi" + + "g\030\t \001(\01320.google.cloud.speech.v2.Speaker" + + "DiarizationConfig\022\030\n\020max_alternatives\030\020 " + + "\001(\005\"\\\n\020MultiChannelMode\022\"\n\036MULTI_CHANNEL" + + "_MODE_UNSPECIFIED\020\000\022$\n SEPARATE_RECOGNIT" + + "ION_PER_CHANNEL\020\001\"\277\002\n\020SpeechAdaptation\022Q" + + "\n\013phrase_sets\030\001 \003(\0132<.google.cloud.speec" + + "h.v2.SpeechAdaptation.AdaptationPhraseSe" + + "t\022;\n\016custom_classes\030\002 \003(\0132#.google.cloud" + + ".speech.v2.CustomClass\032\232\001\n\023AdaptationPhr" + + "aseSet\022:\n\nphrase_set\030\001 \001(\tB$\372A!\n\037speech." + + "googleapis.com/PhraseSetH\000\022>\n\021inline_phr" + + "ase_set\030\002 \001(\0132!.google.cloud.speech.v2.P" + + "hraseSetH\000B\007\n\005value\"\311\002\n\021RecognitionConfi" + + "g\022P\n\024auto_decoding_config\030\007 \001(\01320.google" + + ".cloud.speech.v2.AutoDetectDecodingConfi" + + "gH\000\022R\n\030explicit_decoding_config\030\010 \001(\0132.." + + "google.cloud.speech.v2.ExplicitDecodingC" + + "onfigH\000\022=\n\010features\030\002 \001(\0132+.google.cloud" + + ".speech.v2.RecognitionFeatures\022<\n\nadapta" + + "tion\030\006 \001(\0132(.google.cloud.speech.v2.Spee" + + "chAdaptationB\021\n\017decoding_config\"\356\001\n\020Reco" + + "gnizeRequest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A\"" + + "\n speech.googleapis.com/Recognizer\0229\n\006co" + + "nfig\030\001 \001(\0132).google.cloud.speech.v2.Reco" + + "gnitionConfig\022/\n\013config_mask\030\010 \001(\0132\032.goo" + + "gle.protobuf.FieldMask\022\021\n\007content\030\005 \001(\014H" + + "\000\022\r\n\003uri\030\006 \001(\tH\000B\016\n\014audio_source\"W\n\033Reco" + + "gnitionResponseMetadata\0228\n\025total_billed_" + + "duration\030\006 \001(\0132\031.google.protobuf.Duratio" + + "n\"w\n\034SpeechRecognitionAlternative\022\022\n\ntra" + + "nscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022/\n\005wor" + + "ds\030\003 \003(\0132 .google.cloud.speech.v2.WordIn" + + "fo\"\243\001\n\010WordInfo\022/\n\014start_offset\030\001 \001(\0132\031." + + "google.protobuf.Duration\022-\n\nend_offset\030\002" + + " \001(\0132\031.google.protobuf.Duration\022\014\n\004word\030" + + "\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002\022\025\n\rspeaker_lab" + + "el\030\006 \001(\t\"\314\001\n\027SpeechRecognitionResult\022J\n\014" + + "alternatives\030\001 \003(\01324.google.cloud.speech" + + ".v2.SpeechRecognitionAlternative\022\023\n\013chan" + + "nel_tag\030\002 \001(\005\0224\n\021result_end_offset\030\004 \001(\013" + + "2\031.google.protobuf.Duration\022\032\n\rlanguage_" + + "code\030\005 \001(\tB\003\340A\003\"\234\001\n\021RecognizeResponse\022@\n" + + "\007results\030\003 \003(\0132/.google.cloud.speech.v2." + + "SpeechRecognitionResult\022E\n\010metadata\030\002 \001(" + + "\01323.google.cloud.speech.v2.RecognitionRe" + + "sponseMetadata\"\321\002\n\034StreamingRecognitionF" + + "eatures\022$\n\034enable_voice_activity_events\030" + + "\001 \001(\010\022\027\n\017interim_results\030\002 \001(\010\022i\n\026voice_" + + "activity_timeout\030\003 \001(\0132I.google.cloud.sp" + + "eech.v2.StreamingRecognitionFeatures.Voi" + + "ceActivityTimeout\032\206\001\n\024VoiceActivityTimeo" + + "ut\0227\n\024speech_start_timeout\030\001 \001(\0132\031.googl" + + "e.protobuf.Duration\0225\n\022speech_end_timeou" + + "t\030\002 \001(\0132\031.google.protobuf.Duration\"\337\001\n\032S" + + "treamingRecognitionConfig\022>\n\006config\030\001 \001(" + + "\0132).google.cloud.speech.v2.RecognitionCo" + + "nfigB\003\340A\002\022/\n\013config_mask\030\003 \001(\0132\032.google." + + "protobuf.FieldMask\022P\n\022streaming_features" + + "\030\002 \001(\01324.google.cloud.speech.v2.Streamin" + + "gRecognitionFeatures\"\317\001\n\031StreamingRecogn" + + "izeRequest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A\"\n " + + "speech.googleapis.com/Recognizer\022N\n\020stre" + + "aming_config\030\006 \001(\01322.google.cloud.speech" + + ".v2.StreamingRecognitionConfigH\000\022\017\n\005audi" + + "o\030\005 \001(\014H\000B\023\n\021streaming_request\"\204\002\n\025Batch" + + "RecognizeRequest\022<\n\nrecognizer\030\001 \001(\tB(\340A" + + "\002\372A\"\n speech.googleapis.com/Recognizer\0229" + + "\n\006config\030\004 \001(\0132).google.cloud.speech.v2." + + "RecognitionConfig\022/\n\013config_mask\030\005 \001(\0132\032" + + ".google.protobuf.FieldMask\022A\n\005files\030\003 \003(" + + "\01322.google.cloud.speech.v2.BatchRecogniz" + + "eFileMetadata\"\310\001\n\026BatchRecognizeResponse" + + "\022L\n\007results\030\001 \003(\0132;.google.cloud.speech." + + "v2.BatchRecognizeResponse.ResultsEntry\032`" + + "\n\014ResultsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001" + + "(\01320.google.cloud.speech.v2.BatchRecogni" + + "zeFileResult:\0028\001\"J\n\030BatchRecognizeFileRe" + + "sult\022\013\n\003uri\030\001 \001(\t\022!\n\005error\030\002 \001(\0132\022.googl" + + "e.rpc.Status\"o\n#BatchRecognizeTranscript" + + "ionMetadata\022\030\n\020progress_percent\030\001 \001(\005\022!\n" + + "\005error\030\002 \001(\0132\022.google.rpc.Status\022\013\n\003uri\030" + + "\003 \001(\t\"\376\001\n\026BatchRecognizeMetadata\022i\n\026tran" + + "scription_metadata\030\001 \003(\0132I.google.cloud." + + "speech.v2.BatchRecognizeMetadata.Transcr" + + "iptionMetadataEntry\032y\n\032TranscriptionMeta" + + "dataEntry\022\013\n\003key\030\001 \001(\t\022J\n\005value\030\002 \001(\0132;." + + "google.cloud.speech.v2.BatchRecognizeTra" + + "nscriptionMetadata:\0028\001\"\247\001\n\032BatchRecogniz" + + "eFileMetadata\022\r\n\003uri\030\001 \001(\tH\000\0229\n\006config\030\004" + + " \001(\0132).google.cloud.speech.v2.Recognitio" + + "nConfig\022/\n\013config_mask\030\005 \001(\0132\032.google.pr" + + "otobuf.FieldMaskB\016\n\014audio_source\"\364\001\n\032Str" + + "eamingRecognitionResult\022J\n\014alternatives\030" + + "\001 \003(\01324.google.cloud.speech.v2.SpeechRec" + + "ognitionAlternative\022\020\n\010is_final\030\002 \001(\010\022\021\n" + + "\tstability\030\003 \001(\002\0224\n\021result_end_offset\030\004 " + + "\001(\0132\031.google.protobuf.Duration\022\023\n\013channe" + + "l_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A\003\"" + + "\307\003\n\032StreamingRecognizeResponse\022C\n\007result" + + "s\030\006 \003(\01322.google.cloud.speech.v2.Streami" + + "ngRecognitionResult\022]\n\021speech_event_type" + + "\030\003 \001(\0162B.google.cloud.speech.v2.Streamin" + + "gRecognizeResponse.SpeechEventType\0226\n\023sp" + + "eech_event_offset\030\007 \001(\0132\031.google.protobu" + + "f.Duration\022E\n\010metadata\030\005 \001(\01323.google.cl" + + "oud.speech.v2.RecognitionResponseMetadat" + + "a\"\205\001\n\017SpeechEventType\022!\n\035SPEECH_EVENT_TY" + + "PE_UNSPECIFIED\020\000\022\033\n\027END_OF_SINGLE_UTTERA" + + "NCE\020\001\022\031\n\025SPEECH_ACTIVITY_BEGIN\020\002\022\027\n\023SPEE" + + "CH_ACTIVITY_END\020\003\"\345\001\n\006Config\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\003\022?\n\014kms_key_name\030\002 \001(\tB)\340A\001\372A#\n!c" + + "loudkms.googleapis.com/CryptoKey\0224\n\013upda" + + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003:Q\352AN\n\034speech.googleapis.com/Confi" + + "g\022.projects/{project}/locations/{locatio" + + "n}/config\"F\n\020GetConfigRequest\0222\n\004name\030\001 " + + "\001(\tB$\340A\002\372A\036\n\034speech.googleapis.com/Confi" + + "g\"{\n\023UpdateConfigRequest\0223\n\006config\030\001 \001(\013" + + "2\036.google.cloud.speech.v2.ConfigB\003\340A\002\022/\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMask\"\240\007\n\013CustomClass\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\024\n\014display_name\030\004 \001(" + + "\t\022<\n\005items\030\005 \003(\0132-.google.cloud.speech.v" + + "2.CustomClass.ClassItem\022=\n\005state\030\017 \001(\0162)" + + ".google.cloud.speech.v2.CustomClass.Stat" + + "eB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013de" + + "lete_time\030\010 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0224\n\013expire_time\030\t \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022I\n\013annotations\030\n " + + "\003(\01324.google.cloud.speech.v2.CustomClass" + + ".AnnotationsEntry\022\021\n\004etag\030\013 \001(\tB\003\340A\003\022\030\n\013" + + "reconciling\030\014 \001(\010B\003\340A\003\022?\n\014kms_key_name\030\r" + + " \001(\tB)\340A\003\372A#\n!cloudkms.googleapis.com/Cr" + + "yptoKey\022N\n\024kms_key_version_name\030\016 \001(\tB0\340" + + "A\003\372A*\n(cloudkms.googleapis.com/CryptoKey" + + "Version\032\032\n\tClassItem\022\r\n\005value\030\001 \001(\t\0322\n\020A" + + "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\"7\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + + "\n\n\006ACTIVE\020\002\022\013\n\007DELETED\020\004:o\352Al\n!speech.go" + + "ogleapis.com/CustomClass\022Dprojects/{proj" + + "ect}/locations/{location}/customClasses/" + + "{custom_class}R\001\001\"\253\007\n\tPhraseSet\022\021\n\004name\030" + + "\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0229\n\007phrases\030" + + "\003 \003(\0132(.google.cloud.speech.v2.PhraseSet" + + ".Phrase\022\r\n\005boost\030\004 \001(\002\022\024\n\014display_name\030\005" + + " \001(\t\022;\n\005state\030\017 \001(\0162\'.google.cloud.speec" + + "h.v2.PhraseSet.StateB\003\340A\003\0224\n\013create_time" + + "\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "4\n\013update_time\030\007 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0224\n\013expire_ti" + + "me\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\022G\n\013annotations\030\n \003(\01322.google.cloud.sp" + + "eech.v2.PhraseSet.AnnotationsEntry\022\021\n\004et" + + "ag\030\013 \001(\tB\003\340A\003\022\030\n\013reconciling\030\014 \001(\010B\003\340A\003\022" + + "?\n\014kms_key_name\030\r \001(\tB)\340A\003\372A#\n!cloudkms." + + "googleapis.com/CryptoKey\022N\n\024kms_key_vers" + + "ion_name\030\016 \001(\tB0\340A\003\372A*\n(cloudkms.googlea" + + "pis.com/CryptoKeyVersion\032&\n\006Phrase\022\r\n\005va" + + "lue\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002\0322\n\020AnnotationsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\005" + + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\002" + + "\022\013\n\007DELETED\020\004:h\352Ae\n\037speech.googleapis.co" + + "m/PhraseSet\022?projects/{project}/location" + + "s/{location}/phraseSets/{phrase_set}R\001\001\"" + + "\305\001\n\030CreateCustomClassRequest\022>\n\014custom_c" + + "lass\030\001 \001(\0132#.google.cloud.speech.v2.Cust" + + "omClassB\003\340A\002\022\025\n\rvalidate_only\030\002 \001(\010\022\027\n\017c" + + "ustom_class_id\030\003 \001(\t\0229\n\006parent\030\004 \001(\tB)\340A" + + "\002\372A#\022!speech.googleapis.com/CustomClass\"" + + "\222\001\n\030ListCustomClassesRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + + "ocation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"q\n\031ListCust" + + "omClassesResponse\022;\n\016custom_classes\030\001 \003(" + + "\0132#.google.cloud.speech.v2.CustomClass\022\027" + + "\n\017next_page_token\030\002 \001(\t\"P\n\025GetCustomClas" + + "sRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.g" + + "oogleapis.com/CustomClass\"\242\001\n\030UpdateCust" + + "omClassRequest\022>\n\014custom_class\030\001 \001(\0132#.g" + + "oogle.cloud.speech.v2.CustomClassB\003\340A\002\022/" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMask\022\025\n\rvalidate_only\030\004 \001(\010\"\217\001\n\030Delet" + + "eCustomClassRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A" + + "#\n!speech.googleapis.com/CustomClass\022\025\n\r" + + "validate_only\030\002 \001(\010\022\025\n\rallow_missing\030\004 \001" + + "(\010\022\014\n\004etag\030\003 \001(\t\"z\n\032UndeleteCustomClassR" + + "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.goo" + + "gleapis.com/CustomClass\022\025\n\rvalidate_only" + + "\030\003 \001(\010\022\014\n\004etag\030\004 \001(\t\"\273\001\n\026CreatePhraseSet" + + "Request\022:\n\nphrase_set\030\001 \001(\0132!.google.clo" + + "ud.speech.v2.PhraseSetB\003\340A\002\022\025\n\rvalidate_" + + "only\030\002 \001(\010\022\025\n\rphrase_set_id\030\003 \001(\t\0227\n\006par" + + "ent\030\004 \001(\tB\'\340A\002\372A!\022\037speech.googleapis.com" + + "/PhraseSet\"\217\001\n\025ListPhraseSetsRequest\0229\n\006" + + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + + "ge_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"i\n\026" + + "ListPhraseSetsResponse\0226\n\013phrase_sets\030\001 " + + "\003(\0132!.google.cloud.speech.v2.PhraseSet\022\027" + + "\n\017next_page_token\030\002 \001(\t\"L\n\023GetPhraseSetR" + + "equest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.goo" + + "gleapis.com/PhraseSet\"\234\001\n\026UpdatePhraseSe" + + "tRequest\022:\n\nphrase_set\030\001 \001(\0132!.google.cl" + + "oud.speech.v2.PhraseSetB\003\340A\002\022/\n\013update_m" + + "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\022\025\n" + + "\rvalidate_only\030\004 \001(\010\"\213\001\n\026DeletePhraseSet" + + "Request\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.go" + + "ogleapis.com/PhraseSet\022\025\n\rvalidate_only\030" + + "\002 \001(\010\022\025\n\rallow_missing\030\004 \001(\010\022\014\n\004etag\030\003 \001" + + "(\t\"v\n\030UndeletePhraseSetRequest\0225\n\004name\030\001" + + " \001(\tB\'\340A\002\372A!\n\037speech.googleapis.com/Phra" + + "seSet\022\025\n\rvalidate_only\030\003 \001(\010\022\014\n\004etag\030\004 \001" + + "(\t2\277%\n\006Speech\022\354\001\n\020CreateRecognizer\022/.goo" + + "gle.cloud.speech.v2.CreateRecognizerRequ" + + "est\032\035.google.longrunning.Operation\"\207\001\202\323\344" + + "\223\002=\"//v2/{parent=projects/*/locations/*}" + + "/recognizers:\nrecognizer\332A\037parent,recogn" + + "izer,recognizer_id\312A\037\n\nRecognizer\022\021Opera" + + "tionMetadata\022\264\001\n\017ListRecognizers\022..googl" + + "e.cloud.speech.v2.ListRecognizersRequest" + + "\032/.google.cloud.speech.v2.ListRecognizer" + + "sResponse\"@\202\323\344\223\0021\022//v2/{parent=projects/" + + "*/locations/*}/recognizers\332A\006parent\022\241\001\n\r" + + "GetRecognizer\022,.google.cloud.speech.v2.G" + + "etRecognizerRequest\032\".google.cloud.speec" + + "h.v2.Recognizer\">\202\323\344\223\0021\022//v2/{name=proje" + + "cts/*/locations/*/recognizers/*}\332A\004name\022" + + "\356\001\n\020UpdateRecognizer\022/.google.cloud.spee" + + "ch.v2.UpdateRecognizerRequest\032\035.google.l" + + "ongrunning.Operation\"\211\001\202\323\344\223\002H2:/v2/{reco" + + "gnizer.name=projects/*/locations/*/recog" + + "nizers/*}:\nrecognizer\332A\026recognizer,updat" + + "e_mask\312A\037\n\nRecognizer\022\021OperationMetadata" + + "\022\304\001\n\020DeleteRecognizer\022/.google.cloud.spe" + + "ech.v2.DeleteRecognizerRequest\032\035.google." + + "longrunning.Operation\"`\202\323\344\223\0021*//v2/{name" + + "=projects/*/locations/*/recognizers/*}\332A" + + "\004name\312A\037\n\nRecognizer\022\021OperationMetadata\022" + + "\324\001\n\022UndeleteRecognizer\0221.google.cloud.sp" + + "eech.v2.UndeleteRecognizerRequest\032\035.goog" + + "le.longrunning.Operation\"l\202\323\344\223\002=\"8/v2/{n" + + "ame=projects/*/locations/*/recognizers/*" + + "}:undelete:\001*\332A\004name\312A\037\n\nRecognizer\022\021Ope" + + "rationMetadata\022\371\001\n\tRecognize\022(.google.cl" + + "oud.speech.v2.RecognizeRequest\032).google." + + "cloud.speech.v2.RecognizeResponse\"\226\001\202\323\344\223" + + "\002D\"?/v2/{recognizer=projects/*/locations" + + "/*/recognizers/*}:recognize:\001*\332A%recogni" + + "zer,config,config_mask,content\332A!recogni" + + "zer,config,config_mask,uri\022\201\001\n\022Streaming" + + "Recognize\0221.google.cloud.speech.v2.Strea" + + "mingRecognizeRequest\0322.google.cloud.spee" + + "ch.v2.StreamingRecognizeResponse\"\000(\0010\001\022\204" + + "\002\n\016BatchRecognize\022-.google.cloud.speech." + + "v2.BatchRecognizeRequest\032\035.google.longru" + + "nning.Operation\"\243\001\202\323\344\223\002I\"D/v2/{recognize" + + "r=projects/*/locations/*/recognizers/*}:" + + "batchRecognize:\001*\332A#recognizer,config,co" + + "nfig_mask,files\312A+\n\026BatchRecognizeRespon" + + "se\022\021OperationMetadata\022\216\001\n\tGetConfig\022(.go" + + "ogle.cloud.speech.v2.GetConfigRequest\032\036." + + "google.cloud.speech.v2.Config\"7\202\323\344\223\002*\022(/" + + "v2/{name=projects/*/locations/*/config}\332" + + "A\004name\022\261\001\n\014UpdateConfig\022+.google.cloud.s" + + "peech.v2.UpdateConfigRequest\032\036.google.cl" + + "oud.speech.v2.Config\"T\202\323\344\223\00292//v2/{confi" + + "g.name=projects/*/locations/*/config}:\006c" + + "onfig\332A\022config,update_mask\022\367\001\n\021CreateCus" + + "tomClass\0220.google.cloud.speech.v2.Create" + + "CustomClassRequest\032\035.google.longrunning." + + "Operation\"\220\001\202\323\344\223\002A\"1/v2/{parent=projects" + + "/*/locations/*}/customClasses:\014custom_cl" + + "ass\332A#parent,custom_class,custom_class_i" + + "d\312A \n\013CustomClass\022\021OperationMetadata\022\274\001\n" + + "\021ListCustomClasses\0220.google.cloud.speech" + + ".v2.ListCustomClassesRequest\0321.google.cl" + + "oud.speech.v2.ListCustomClassesResponse\"" + + "B\202\323\344\223\0023\0221/v2/{parent=projects/*/location" + + "s/*}/customClasses\332A\006parent\022\246\001\n\016GetCusto" + + "mClass\022-.google.cloud.speech.v2.GetCusto" + + "mClassRequest\032#.google.cloud.speech.v2.C" + + "ustomClass\"@\202\323\344\223\0023\0221/v2/{name=projects/*", + "/locations/*/customClasses/*}\332A\004name\022\371\001\n" + + "\021UpdateCustomClass\0220.google.cloud.speech" + + ".v2.UpdateCustomClassRequest\032\035.google.lo" + + "ngrunning.Operation\"\222\001\202\323\344\223\002N2>/v2/{custo" + + "m_class.name=projects/*/locations/*/cust" + + "omClasses/*}:\014custom_class\332A\030custom_clas" + + "s,update_mask\312A \n\013CustomClass\022\021Operation" + + "Metadata\022\311\001\n\021DeleteCustomClass\0220.google." + + "cloud.speech.v2.DeleteCustomClassRequest" + + "\032\035.google.longrunning.Operation\"c\202\323\344\223\0023*" + + "1/v2/{name=projects/*/locations/*/custom" + + "Classes/*}\332A\004name\312A \n\013CustomClass\022\021Opera" + + "tionMetadata\022\331\001\n\023UndeleteCustomClass\0222.g" + + "oogle.cloud.speech.v2.UndeleteCustomClas" + + "sRequest\032\035.google.longrunning.Operation\"" + + "o\202\323\344\223\002?\":/v2/{name=projects/*/locations/" + + "*/customClasses/*}:undelete:\001*\332A\004name\312A " + + "\n\013CustomClass\022\021OperationMetadata\022\350\001\n\017Cre" + + "atePhraseSet\022..google.cloud.speech.v2.Cr" + + "eatePhraseSetRequest\032\035.google.longrunnin" + + "g.Operation\"\205\001\202\323\344\223\002<\"./v2/{parent=projec" + + "ts/*/locations/*}/phraseSets:\nphrase_set" + + "\332A\037parent,phrase_set,phrase_set_id\312A\036\n\tP" + + "hraseSet\022\021OperationMetadata\022\260\001\n\016ListPhra" + + "seSets\022-.google.cloud.speech.v2.ListPhra" + + "seSetsRequest\032..google.cloud.speech.v2.L" + + "istPhraseSetsResponse\"?\202\323\344\223\0020\022./v2/{pare" + + "nt=projects/*/locations/*}/phraseSets\332A\006" + + "parent\022\235\001\n\014GetPhraseSet\022+.google.cloud.s" + + "peech.v2.GetPhraseSetRequest\032!.google.cl" + + "oud.speech.v2.PhraseSet\"=\202\323\344\223\0020\022./v2/{na" + + "me=projects/*/locations/*/phraseSets/*}\332" + + "A\004name\022\352\001\n\017UpdatePhraseSet\022..google.clou" + + "d.speech.v2.UpdatePhraseSetRequest\032\035.goo" + + "gle.longrunning.Operation\"\207\001\202\323\344\223\002G29/v2/" + + "{phrase_set.name=projects/*/locations/*/" + + "phraseSets/*}:\nphrase_set\332A\026phrase_set,u" + + "pdate_mask\312A\036\n\tPhraseSet\022\021OperationMetad" + + "ata\022\300\001\n\017DeletePhraseSet\022..google.cloud.s" + + "peech.v2.DeletePhraseSetRequest\032\035.google" + + ".longrunning.Operation\"^\202\323\344\223\0020*./v2/{nam" + + "e=projects/*/locations/*/phraseSets/*}\332A" + + "\004name\312A\036\n\tPhraseSet\022\021OperationMetadata\022\320" + + "\001\n\021UndeletePhraseSet\0220.google.cloud.spee" + + "ch.v2.UndeletePhraseSetRequest\032\035.google." + + "longrunning.Operation\"j\202\323\344\223\002<\"7/v2/{name" + + "=projects/*/locations/*/phraseSets/*}:un" + + "delete:\001*\332A\004name\312A\036\n\tPhraseSet\022\021Operatio" + + "nMetadata\032I\312A\025speech.googleapis.com\322A.ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "formB\223\003\n\032com.google.cloud.speech.v2B\020Clo" + + "udSpeechProtoP\001Z * Message representing the config for the Speech-to-Text API. This includes an * optional [KMS key](https://cloud.google.com/kms/docs/resource-hierarchy#keys) @@ -12,15 +29,16 @@ * * Protobuf type {@code google.cloud.speech.v2.Config} */ -public final class Config extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Config extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.Config) ConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Config.newBuilder() to construct. private Config(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Config() { name_ = ""; kmsKeyName_ = ""; @@ -28,33 +46,37 @@ private Config() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Config(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Config_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_Config_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Config_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_Config_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.Config.class, com.google.cloud.speech.v2.Config.Builder.class); + com.google.cloud.speech.v2.Config.class, + com.google.cloud.speech.v2.Config.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. The name of the config resource. There is exactly one config
    * resource per project per location. The expected format is
@@ -62,6 +84,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -70,14 +93,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; } } /** + * + * *
    * Output only. The name of the config resource. There is exactly one config
    * resource per project per location. The expected format is
@@ -85,16 +109,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -103,9 +126,12 @@ public java.lang.String getName() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** + * + * *
    * Optional. An optional [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -115,7 +141,10 @@ public java.lang.String getName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ @java.lang.Override @@ -124,14 +153,15 @@ public java.lang.String getKmsKeyName() { 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(); kmsKeyName_ = s; return s; } } /** + * + * *
    * Optional. An optional [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -141,17 +171,18 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -162,11 +193,15 @@ public java.lang.String getKmsKeyName() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -174,11 +209,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -186,11 +225,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -198,6 +240,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,8 +252,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_); } @@ -236,8 +278,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kmsKeyName_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -247,21 +288,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.v2.Config)) { return super.equals(obj); } com.google.cloud.speech.v2.Config other = (com.google.cloud.speech.v2.Config) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getKmsKeyName() - .equals(other.getKmsKeyName())) return false; + if (!getName().equals(other.getName())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -287,97 +325,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.Config parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.Config parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.Config 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.v2.Config parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.speech.v2.Config parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.Config 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.v2.Config parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.Config 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.v2.Config 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.v2.Config 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.v2.Config 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.v2.Config 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.v2.Config 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.v2.Config 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.v2.Config 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 representing the config for the Speech-to-Text API. This includes an
    * optional [KMS key](https://cloud.google.com/kms/docs/resource-hierarchy#keys)
@@ -386,33 +430,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.Config}
    */
-  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.v2.Config)
       com.google.cloud.speech.v2.ConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Config_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_Config_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Config_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_Config_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.Config.class, com.google.cloud.speech.v2.Config.Builder.class);
+              com.google.cloud.speech.v2.Config.class,
+              com.google.cloud.speech.v2.Config.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.Config.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -428,9 +471,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Config_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_Config_descriptor;
     }
 
     @java.lang.Override
@@ -450,7 +493,9 @@ public com.google.cloud.speech.v2.Config build() {
     @java.lang.Override
     public com.google.cloud.speech.v2.Config buildPartial() {
       com.google.cloud.speech.v2.Config result = new com.google.cloud.speech.v2.Config(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -464,9 +509,7 @@ private void buildPartial0(com.google.cloud.speech.v2.Config result) {
         result.kmsKeyName_ = kmsKeyName_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
     }
 
@@ -474,38 +517,39 @@ private void buildPartial0(com.google.cloud.speech.v2.Config result) {
     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.v2.Config) {
-        return mergeFrom((com.google.cloud.speech.v2.Config)other);
+        return mergeFrom((com.google.cloud.speech.v2.Config) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -553,29 +597,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              kmsKeyName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                kmsKeyName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -585,10 +631,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The name of the config resource. There is exactly one config
      * resource per project per location. The expected format is
@@ -596,13 +645,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -611,6 +660,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of the config resource. There is exactly one config
      * resource per project per location. The expected format is
@@ -618,15 +669,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -634,6 +684,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of the config resource. There is exactly one config
      * resource per project per location. The expected format is
@@ -641,18 +693,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The name of the config resource. There is exactly one config
      * resource per project per location. The expected format is
@@ -660,6 +716,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -669,6 +726,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The name of the config resource. There is exactly one config
      * resource per project per location. The expected format is
@@ -676,12 +735,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -691,6 +752,8 @@ public Builder setNameBytes( private java.lang.Object kmsKeyName_ = ""; /** + * + * *
      * Optional. An optional [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -700,14 +763,16 @@ public Builder setNameBytes(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; 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(); kmsKeyName_ = s; return s; @@ -716,6 +781,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Optional. An optional [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -725,16 +792,17 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -742,6 +810,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Optional. An optional [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -751,19 +821,25 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. An optional [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -773,7 +849,10 @@ public Builder setKmsKeyName(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -783,6 +862,8 @@ public Builder clearKmsKeyName() { return this; } /** + * + * *
      * Optional. An optional [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -792,13 +873,17 @@ public Builder clearKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00000002; @@ -808,39 +893,58 @@ public Builder setKmsKeyNameBytes( private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -856,14 +960,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -874,17 +981,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -897,11 +1008,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -914,11 +1029,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -926,43 +1045,55 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } + @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); } @@ -972,12 +1103,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.Config) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.Config) private static final com.google.cloud.speech.v2.Config DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.Config(); } @@ -986,27 +1117,27 @@ public static com.google.cloud.speech.v2.Config getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Config parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Config parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1021,6 +1152,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.Config getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java similarity index 100% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigName.java diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java similarity index 68% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java index 882c277e0239..6d4dd82b7de2 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ConfigOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ConfigOrBuilder extends +public interface ConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.Config) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The name of the config resource. There is exactly one config
    * resource per project per location. The expected format is
@@ -15,10 +33,13 @@ public interface ConfigOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The name of the config resource. There is exactly one config
    * resource per project per location. The expected format is
@@ -26,12 +47,14 @@ public interface ConfigOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. An optional [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -41,11 +64,16 @@ public interface ConfigOrBuilder extends
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** + * + * *
    * Optional. An optional [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if
@@ -55,36 +83,49 @@ public interface ConfigOrBuilder extends
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString - getKmsKeyNameBytes(); + com.google.protobuf.ByteString getKmsKeyNameBytes(); /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java similarity index 65% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java index 42e674391f4c..3c5619413afd 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [CreateCustomClass][google.cloud.speech.v2.Speech.CreateCustomClass] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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() {
     customClassId_ = "";
     parent_ = "";
@@ -27,37 +45,43 @@ 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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.CreateCustomClassRequest.class, com.google.cloud.speech.v2.CreateCustomClassRequest.Builder.class);
+            com.google.cloud.speech.v2.CreateCustomClassRequest.class,
+            com.google.cloud.speech.v2.CreateCustomClassRequest.Builder.class);
   }
 
   public static final int CUSTOM_CLASS_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.CustomClass customClass_;
   /**
+   *
+   *
    * 
    * Required. The CustomClass to create.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ @java.lang.Override @@ -65,38 +89,54 @@ public boolean hasCustomClass() { return customClass_ != null; } /** + * + * *
    * Required. The CustomClass to create.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ @java.lang.Override public com.google.cloud.speech.v2.CustomClass getCustomClass() { - return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() + : customClass_; } /** + * + * *
    * Required. The CustomClass to create.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder() { - return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() + : customClass_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the CustomClass, but do not
    * actually create it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -105,9 +145,12 @@ public boolean getValidateOnly() { } public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object customClassId_ = ""; /** + * + * *
    * The ID to use for the CustomClass, which will become the final component of
    * the CustomClass's resource name.
@@ -116,6 +159,7 @@ public boolean getValidateOnly() {
    * 
* * string custom_class_id = 3; + * * @return The customClassId. */ @java.lang.Override @@ -124,14 +168,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; } } /** + * + * *
    * The ID to use for the CustomClass, which will become the final component of
    * the CustomClass's resource name.
@@ -140,16 +185,15 @@ public java.lang.String getCustomClassId() {
    * 
* * string custom_class_id = 3; + * * @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 { @@ -158,15 +202,21 @@ public java.lang.String getCustomClassId() { } public static final int PARENT_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The project and location where this CustomClass will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -175,30 +225,32 @@ 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 project and location where this CustomClass will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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 { @@ -207,6 +259,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,8 +271,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 +294,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 (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customClassId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, customClassId_); @@ -263,24 +313,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.v2.CreateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.CreateCustomClassRequest other = (com.google.cloud.speech.v2.CreateCustomClassRequest) obj; + com.google.cloud.speech.v2.CreateCustomClassRequest other = + (com.google.cloud.speech.v2.CreateCustomClassRequest) obj; if (hasCustomClass() != other.hasCustomClass()) return false; if (hasCustomClass()) { - if (!getCustomClass() - .equals(other.getCustomClass())) return false; + if (!getCustomClass().equals(other.getCustomClass())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getCustomClassId() - .equals(other.getCustomClassId())) return false; - if (!getParent() - .equals(other.getParent())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getCustomClassId().equals(other.getCustomClassId())) return false; + if (!getParent().equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -297,8 +344,7 @@ public int hashCode() { hash = (53 * hash) + getCustomClass().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + CUSTOM_CLASS_ID_FIELD_NUMBER; hash = (53 * hash) + getCustomClassId().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; @@ -309,96 +355,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.CreateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.CreateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.CreateCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.CreateCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.CreateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.CreateCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [CreateCustomClass][google.cloud.speech.v2.Speech.CreateCustomClass] method.
@@ -406,33 +459,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.CreateCustomClassRequest)
       com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.CreateCustomClassRequest.class, com.google.cloud.speech.v2.CreateCustomClassRequest.Builder.class);
+              com.google.cloud.speech.v2.CreateCustomClassRequest.class,
+              com.google.cloud.speech.v2.CreateCustomClassRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.CreateCustomClassRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -449,9 +501,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
@@ -470,8 +522,11 @@ public com.google.cloud.speech.v2.CreateCustomClassRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.CreateCustomClassRequest buildPartial() {
-      com.google.cloud.speech.v2.CreateCustomClassRequest result = new com.google.cloud.speech.v2.CreateCustomClassRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.CreateCustomClassRequest result =
+          new com.google.cloud.speech.v2.CreateCustomClassRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -479,9 +534,8 @@ public com.google.cloud.speech.v2.CreateCustomClassRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.CreateCustomClassRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.customClass_ = customClassBuilder_ == null
-            ? customClass_
-            : customClassBuilder_.build();
+        result.customClass_ =
+            customClassBuilder_ == null ? customClass_ : customClassBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -498,38 +552,39 @@ private void buildPartial0(com.google.cloud.speech.v2.CreateCustomClassRequest r
     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.v2.CreateCustomClassRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.CreateCustomClassRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.CreateCustomClassRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -537,7 +592,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.CreateCustomClassRequest other) {
-      if (other == com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance())
+        return this;
       if (other.hasCustomClass()) {
         mergeCustomClass(other.getCustomClass());
       }
@@ -580,34 +636,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getCustomClassFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              customClassId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                customClassId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -617,43 +676,63 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.speech.v2.CustomClass customClass_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> customClassBuilder_;
+            com.google.cloud.speech.v2.CustomClass,
+            com.google.cloud.speech.v2.CustomClass.Builder,
+            com.google.cloud.speech.v2.CustomClassOrBuilder>
+        customClassBuilder_;
     /**
+     *
+     *
      * 
      * Required. The CustomClass to create.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The CustomClass to create.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ public com.google.cloud.speech.v2.CustomClass getCustomClass() { if (customClassBuilder_ == null) { - return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() + : customClass_; } else { return customClassBuilder_.getMessage(); } } /** + * + * *
      * Required. The CustomClass to create.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass value) { if (customClassBuilder_ == null) { @@ -669,14 +748,17 @@ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass value) { return this; } /** + * + * *
      * Required. The CustomClass to create.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCustomClass( - com.google.cloud.speech.v2.CustomClass.Builder builderForValue) { + public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass.Builder builderForValue) { if (customClassBuilder_ == null) { customClass_ = builderForValue.build(); } else { @@ -687,17 +769,21 @@ public Builder setCustomClass( return this; } /** + * + * *
      * Required. The CustomClass to create.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCustomClass(com.google.cloud.speech.v2.CustomClass value) { if (customClassBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - customClass_ != null && - customClass_ != com.google.cloud.speech.v2.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && customClass_ != null + && customClass_ != com.google.cloud.speech.v2.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -710,11 +796,15 @@ public Builder mergeCustomClass(com.google.cloud.speech.v2.CustomClass value) { return this; } /** + * + * *
      * Required. The CustomClass to create.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCustomClass() { bitField0_ = (bitField0_ & ~0x00000001); @@ -727,11 +817,15 @@ public Builder clearCustomClass() { return this; } /** + * + * *
      * Required. The CustomClass to create.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassBuilder() { bitField0_ |= 0x00000001; @@ -739,49 +833,64 @@ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassBuilder() { return getCustomClassFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The CustomClass to create.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder() { if (customClassBuilder_ != null) { return customClassBuilder_.getMessageOrBuilder(); } else { - return customClass_ == null ? - com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() + : customClass_; } } /** + * + * *
      * Required. The CustomClass to create.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> + com.google.cloud.speech.v2.CustomClass, + com.google.cloud.speech.v2.CustomClass.Builder, + com.google.cloud.speech.v2.CustomClassOrBuilder> getCustomClassFieldBuilder() { if (customClassBuilder_ == null) { - customClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder>( - getCustomClass(), - getParentForChildren(), - isClean()); + customClassBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.CustomClass, + com.google.cloud.speech.v2.CustomClass.Builder, + com.google.cloud.speech.v2.CustomClassOrBuilder>( + getCustomClass(), getParentForChildren(), isClean()); customClass_ = null; } return customClassBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the CustomClass, but do not
      * actually create it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -789,29 +898,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the CustomClass, but do not
      * actually create it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the CustomClass, but do not
      * actually create it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -823,6 +938,8 @@ public Builder clearValidateOnly() { private java.lang.Object customClassId_ = ""; /** + * + * *
      * The ID to use for the CustomClass, which will become the final component of
      * the CustomClass's resource name.
@@ -831,13 +948,13 @@ public Builder clearValidateOnly() {
      * 
* * string custom_class_id = 3; + * * @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,6 +963,8 @@ public java.lang.String getCustomClassId() { } } /** + * + * *
      * The ID to use for the CustomClass, which will become the final component of
      * the CustomClass's resource name.
@@ -854,15 +973,14 @@ public java.lang.String getCustomClassId() {
      * 
* * string custom_class_id = 3; + * * @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 { @@ -870,6 +988,8 @@ public java.lang.String getCustomClassId() { } } /** + * + * *
      * The ID to use for the CustomClass, which will become the final component of
      * the CustomClass's resource name.
@@ -878,18 +998,22 @@ public java.lang.String getCustomClassId() {
      * 
* * string custom_class_id = 3; + * * @param value The customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomClassId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } customClassId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The ID to use for the CustomClass, which will become the final component of
      * the CustomClass's resource name.
@@ -898,6 +1022,7 @@ public Builder setCustomClassId(
      * 
* * string custom_class_id = 3; + * * @return This builder for chaining. */ public Builder clearCustomClassId() { @@ -907,6 +1032,8 @@ public Builder clearCustomClassId() { return this; } /** + * + * *
      * The ID to use for the CustomClass, which will become the final component of
      * the CustomClass's resource name.
@@ -915,12 +1042,14 @@ public Builder clearCustomClassId() {
      * 
* * string custom_class_id = 3; + * * @param value The bytes for customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); customClassId_ = value; bitField0_ |= 0x00000004; @@ -930,19 +1059,23 @@ public Builder setCustomClassIdBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project and location where this CustomClass will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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; @@ -951,21 +1084,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location where this CustomClass will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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 { @@ -973,30 +1109,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location where this CustomClass will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Required. The project and location where this CustomClass will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1006,27 +1153,33 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The project and location where this CustomClass will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000008; 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); } @@ -1036,12 +1189,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.CreateCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.CreateCustomClassRequest) private static final com.google.cloud.speech.v2.CreateCustomClassRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.CreateCustomClassRequest(); } @@ -1050,27 +1203,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1085,6 +1238,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.CreateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java index a787ee130a2a..4a356278c295 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateCustomClassRequestOrBuilder.java @@ -1,51 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface CreateCustomClassRequestOrBuilder extends +public interface CreateCustomClassRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.CreateCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The CustomClass to create.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ boolean hasCustomClass(); /** + * + * *
    * Required. The CustomClass to create.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ com.google.cloud.speech.v2.CustomClass getCustomClass(); /** + * + * *
    * Required. The CustomClass to create.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder(); /** + * + * *
    * If set, validate the request and preview the CustomClass, but do not
    * actually create it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * The ID to use for the CustomClass, which will become the final component of
    * the CustomClass's resource name.
@@ -54,10 +89,13 @@ public interface CreateCustomClassRequestOrBuilder extends
    * 
* * string custom_class_id = 3; + * * @return The customClassId. */ java.lang.String getCustomClassId(); /** + * + * *
    * The ID to use for the CustomClass, which will become the final component of
    * the CustomClass's resource name.
@@ -66,30 +104,39 @@ public interface CreateCustomClassRequestOrBuilder extends
    * 
* * string custom_class_id = 3; + * * @return The bytes for customClassId. */ - com.google.protobuf.ByteString - getCustomClassIdBytes(); + com.google.protobuf.ByteString getCustomClassIdBytes(); /** + * + * *
    * Required. The project and location where this CustomClass will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project and location where this CustomClass will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java similarity index 65% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java index 81b996533df4..7414b3b497b8 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [CreatePhraseSet][google.cloud.speech.v2.Speech.CreatePhraseSet] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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() {
     phraseSetId_ = "";
     parent_ = "";
@@ -27,37 +45,43 @@ 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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.CreatePhraseSetRequest.class, com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder.class);
+            com.google.cloud.speech.v2.CreatePhraseSetRequest.class,
+            com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder.class);
   }
 
   public static final int PHRASE_SET_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.PhraseSet phraseSet_;
   /**
+   *
+   *
    * 
    * Required. The PhraseSet to create.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -65,38 +89,54 @@ public boolean hasPhraseSet() { return phraseSet_ != null; } /** + * + * *
    * Required. The PhraseSet to create.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSet getPhraseSet() { - return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() + : phraseSet_; } /** + * + * *
    * Required. The PhraseSet to create.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder() { - return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() + : phraseSet_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the PhraseSet, but do not
    * actually create it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -105,9 +145,12 @@ public boolean getValidateOnly() { } public static final int PHRASE_SET_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object phraseSetId_ = ""; /** + * + * *
    * The ID to use for the PhraseSet, which will become the final component of
    * the PhraseSet's resource name.
@@ -116,6 +159,7 @@ public boolean getValidateOnly() {
    * 
* * string phrase_set_id = 3; + * * @return The phraseSetId. */ @java.lang.Override @@ -124,14 +168,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; } } /** + * + * *
    * The ID to use for the PhraseSet, which will become the final component of
    * the PhraseSet's resource name.
@@ -140,16 +185,15 @@ public java.lang.String getPhraseSetId() {
    * 
* * string phrase_set_id = 3; + * * @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 { @@ -158,15 +202,21 @@ public java.lang.String getPhraseSetId() { } public static final int PARENT_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The project and location where this PhraseSet will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -175,30 +225,32 @@ 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 project and location where this PhraseSet will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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 { @@ -207,6 +259,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,8 +271,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 +294,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 (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phraseSetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, phraseSetId_); @@ -263,24 +313,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.v2.CreatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.CreatePhraseSetRequest other = (com.google.cloud.speech.v2.CreatePhraseSetRequest) obj; + com.google.cloud.speech.v2.CreatePhraseSetRequest other = + (com.google.cloud.speech.v2.CreatePhraseSetRequest) obj; if (hasPhraseSet() != other.hasPhraseSet()) return false; if (hasPhraseSet()) { - if (!getPhraseSet() - .equals(other.getPhraseSet())) return false; + if (!getPhraseSet().equals(other.getPhraseSet())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getPhraseSetId() - .equals(other.getPhraseSetId())) return false; - if (!getParent() - .equals(other.getParent())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getPhraseSetId().equals(other.getPhraseSetId())) return false; + if (!getParent().equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -297,8 +344,7 @@ public int hashCode() { hash = (53 * hash) + getPhraseSet().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + PHRASE_SET_ID_FIELD_NUMBER; hash = (53 * hash) + getPhraseSetId().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; @@ -309,96 +355,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.CreatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.CreatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.CreatePhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.CreatePhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.CreatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.CreatePhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [CreatePhraseSet][google.cloud.speech.v2.Speech.CreatePhraseSet] method.
@@ -406,33 +459,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.CreatePhraseSetRequest)
       com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.CreatePhraseSetRequest.class, com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder.class);
+              com.google.cloud.speech.v2.CreatePhraseSetRequest.class,
+              com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.CreatePhraseSetRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -449,9 +501,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -470,8 +522,11 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.CreatePhraseSetRequest buildPartial() {
-      com.google.cloud.speech.v2.CreatePhraseSetRequest result = new com.google.cloud.speech.v2.CreatePhraseSetRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.CreatePhraseSetRequest result =
+          new com.google.cloud.speech.v2.CreatePhraseSetRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -479,9 +534,7 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.CreatePhraseSetRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.phraseSet_ = phraseSetBuilder_ == null
-            ? phraseSet_
-            : phraseSetBuilder_.build();
+        result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -498,38 +551,39 @@ private void buildPartial0(com.google.cloud.speech.v2.CreatePhraseSetRequest res
     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.v2.CreatePhraseSetRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.CreatePhraseSetRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.CreatePhraseSetRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -537,7 +591,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.CreatePhraseSetRequest other) {
-      if (other == com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance())
+        return this;
       if (other.hasPhraseSet()) {
         mergePhraseSet(other.getPhraseSet());
       }
@@ -580,34 +635,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getPhraseSetFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              phraseSetId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                phraseSetId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -617,43 +675,63 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.speech.v2.PhraseSet phraseSet_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> phraseSetBuilder_;
+            com.google.cloud.speech.v2.PhraseSet,
+            com.google.cloud.speech.v2.PhraseSet.Builder,
+            com.google.cloud.speech.v2.PhraseSetOrBuilder>
+        phraseSetBuilder_;
     /**
+     *
+     *
      * 
      * Required. The PhraseSet to create.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The PhraseSet to create.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ public com.google.cloud.speech.v2.PhraseSet getPhraseSet() { if (phraseSetBuilder_ == null) { - return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() + : phraseSet_; } else { return phraseSetBuilder_.getMessage(); } } /** + * + * *
      * Required. The PhraseSet to create.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetBuilder_ == null) { @@ -669,14 +747,17 @@ public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** + * + * *
      * Required. The PhraseSet to create.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setPhraseSet( - com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { + public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { if (phraseSetBuilder_ == null) { phraseSet_ = builderForValue.build(); } else { @@ -687,17 +768,21 @@ public Builder setPhraseSet( return this; } /** + * + * *
      * Required. The PhraseSet to create.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - phraseSet_ != null && - phraseSet_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && phraseSet_ != null + && phraseSet_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -710,11 +795,15 @@ public Builder mergePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** + * + * *
      * Required. The PhraseSet to create.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPhraseSet() { bitField0_ = (bitField0_ & ~0x00000001); @@ -727,11 +816,15 @@ public Builder clearPhraseSet() { return this; } /** + * + * *
      * Required. The PhraseSet to create.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetBuilder() { bitField0_ |= 0x00000001; @@ -739,49 +832,64 @@ public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetBuilder() { return getPhraseSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The PhraseSet to create.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder() { if (phraseSetBuilder_ != null) { return phraseSetBuilder_.getMessageOrBuilder(); } else { - return phraseSet_ == null ? - com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() + : phraseSet_; } } /** + * + * *
      * Required. The PhraseSet to create.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> + com.google.cloud.speech.v2.PhraseSet, + com.google.cloud.speech.v2.PhraseSet.Builder, + com.google.cloud.speech.v2.PhraseSetOrBuilder> getPhraseSetFieldBuilder() { if (phraseSetBuilder_ == null) { - phraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder>( - getPhraseSet(), - getParentForChildren(), - isClean()); + phraseSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.PhraseSet, + com.google.cloud.speech.v2.PhraseSet.Builder, + com.google.cloud.speech.v2.PhraseSetOrBuilder>( + getPhraseSet(), getParentForChildren(), isClean()); phraseSet_ = null; } return phraseSetBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the PhraseSet, but do not
      * actually create it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -789,29 +897,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the PhraseSet, but do not
      * actually create it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the PhraseSet, but do not
      * actually create it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -823,6 +937,8 @@ public Builder clearValidateOnly() { private java.lang.Object phraseSetId_ = ""; /** + * + * *
      * The ID to use for the PhraseSet, which will become the final component of
      * the PhraseSet's resource name.
@@ -831,13 +947,13 @@ public Builder clearValidateOnly() {
      * 
* * string phrase_set_id = 3; + * * @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,6 +962,8 @@ public java.lang.String getPhraseSetId() { } } /** + * + * *
      * The ID to use for the PhraseSet, which will become the final component of
      * the PhraseSet's resource name.
@@ -854,15 +972,14 @@ public java.lang.String getPhraseSetId() {
      * 
* * string phrase_set_id = 3; + * * @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 { @@ -870,6 +987,8 @@ public java.lang.String getPhraseSetId() { } } /** + * + * *
      * The ID to use for the PhraseSet, which will become the final component of
      * the PhraseSet's resource name.
@@ -878,18 +997,22 @@ public java.lang.String getPhraseSetId() {
      * 
* * string phrase_set_id = 3; + * * @param value The phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhraseSetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } phraseSetId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The ID to use for the PhraseSet, which will become the final component of
      * the PhraseSet's resource name.
@@ -898,6 +1021,7 @@ public Builder setPhraseSetId(
      * 
* * string phrase_set_id = 3; + * * @return This builder for chaining. */ public Builder clearPhraseSetId() { @@ -907,6 +1031,8 @@ public Builder clearPhraseSetId() { return this; } /** + * + * *
      * The ID to use for the PhraseSet, which will become the final component of
      * the PhraseSet's resource name.
@@ -915,12 +1041,14 @@ public Builder clearPhraseSetId() {
      * 
* * string phrase_set_id = 3; + * * @param value The bytes for phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); phraseSetId_ = value; bitField0_ |= 0x00000004; @@ -930,19 +1058,23 @@ public Builder setPhraseSetIdBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project and location where this PhraseSet will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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; @@ -951,21 +1083,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location where this PhraseSet will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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 { @@ -973,30 +1108,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location where this PhraseSet will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Required. The project and location where this PhraseSet will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1006,27 +1152,33 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The project and location where this PhraseSet will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000008; 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); } @@ -1036,12 +1188,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.CreatePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.CreatePhraseSetRequest) private static final com.google.cloud.speech.v2.CreatePhraseSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.CreatePhraseSetRequest(); } @@ -1050,27 +1202,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1085,6 +1237,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.CreatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java index b5990b5ce7a0..862e79fa966f 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreatePhraseSetRequestOrBuilder.java @@ -1,51 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface CreatePhraseSetRequestOrBuilder extends +public interface CreatePhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.CreatePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The PhraseSet to create.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** + * + * *
    * Required. The PhraseSet to create.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ com.google.cloud.speech.v2.PhraseSet getPhraseSet(); /** + * + * *
    * Required. The PhraseSet to create.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder(); /** + * + * *
    * If set, validate the request and preview the PhraseSet, but do not
    * actually create it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * The ID to use for the PhraseSet, which will become the final component of
    * the PhraseSet's resource name.
@@ -54,10 +89,13 @@ public interface CreatePhraseSetRequestOrBuilder extends
    * 
* * string phrase_set_id = 3; + * * @return The phraseSetId. */ java.lang.String getPhraseSetId(); /** + * + * *
    * The ID to use for the PhraseSet, which will become the final component of
    * the PhraseSet's resource name.
@@ -66,30 +104,39 @@ public interface CreatePhraseSetRequestOrBuilder extends
    * 
* * string phrase_set_id = 3; + * * @return The bytes for phraseSetId. */ - com.google.protobuf.ByteString - getPhraseSetIdBytes(); + com.google.protobuf.ByteString getPhraseSetIdBytes(); /** + * + * *
    * Required. The project and location where this PhraseSet will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project and location where this PhraseSet will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java similarity index 65% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java index 1f373bf761f0..f9a1139da8fd 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [CreateRecognizer][google.cloud.speech.v2.Speech.CreateRecognizer] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.CreateRecognizerRequest}
  */
-public final class CreateRecognizerRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateRecognizerRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.CreateRecognizerRequest)
     CreateRecognizerRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateRecognizerRequest.newBuilder() to construct.
   private CreateRecognizerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateRecognizerRequest() {
     recognizerId_ = "";
     parent_ = "";
@@ -27,37 +45,43 @@ private CreateRecognizerRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateRecognizerRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.CreateRecognizerRequest.class, com.google.cloud.speech.v2.CreateRecognizerRequest.Builder.class);
+            com.google.cloud.speech.v2.CreateRecognizerRequest.class,
+            com.google.cloud.speech.v2.CreateRecognizerRequest.Builder.class);
   }
 
   public static final int RECOGNIZER_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.Recognizer recognizer_;
   /**
+   *
+   *
    * 
    * Required. The Recognizer to create.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the recognizer field is set. */ @java.lang.Override @@ -65,38 +89,54 @@ public boolean hasRecognizer() { return recognizer_ != null; } /** + * + * *
    * Required. The Recognizer to create.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The recognizer. */ @java.lang.Override public com.google.cloud.speech.v2.Recognizer getRecognizer() { - return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; + return recognizer_ == null + ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() + : recognizer_; } /** + * + * *
    * Required. The Recognizer to create.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder() { - return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; + return recognizer_ == null + ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() + : recognizer_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the Recognizer, but do not
    * actually create it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -105,9 +145,12 @@ public boolean getValidateOnly() { } public static final int RECOGNIZER_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object recognizerId_ = ""; /** + * + * *
    * The ID to use for the Recognizer, which will become the final component of
    * the Recognizer's resource name.
@@ -116,6 +159,7 @@ public boolean getValidateOnly() {
    * 
* * string recognizer_id = 3; + * * @return The recognizerId. */ @java.lang.Override @@ -124,14 +168,15 @@ public java.lang.String getRecognizerId() { 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(); recognizerId_ = s; return s; } } /** + * + * *
    * The ID to use for the Recognizer, which will become the final component of
    * the Recognizer's resource name.
@@ -140,16 +185,15 @@ public java.lang.String getRecognizerId() {
    * 
* * string recognizer_id = 3; + * * @return The bytes for recognizerId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRecognizerIdBytes() { + public com.google.protobuf.ByteString getRecognizerIdBytes() { java.lang.Object ref = recognizerId_; 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); recognizerId_ = b; return b; } else { @@ -158,15 +202,21 @@ public java.lang.String getRecognizerId() { } public static final int PARENT_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The project and location where this Recognizer will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -175,30 +225,32 @@ 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 project and location where this Recognizer will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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 { @@ -207,6 +259,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,8 +271,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 (recognizer_ != null) { output.writeMessage(1, getRecognizer()); } @@ -242,12 +294,10 @@ public int getSerializedSize() { size = 0; if (recognizer_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRecognizer()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRecognizer()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recognizerId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, recognizerId_); @@ -263,24 +313,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.v2.CreateRecognizerRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.CreateRecognizerRequest other = (com.google.cloud.speech.v2.CreateRecognizerRequest) obj; + com.google.cloud.speech.v2.CreateRecognizerRequest other = + (com.google.cloud.speech.v2.CreateRecognizerRequest) obj; if (hasRecognizer() != other.hasRecognizer()) return false; if (hasRecognizer()) { - if (!getRecognizer() - .equals(other.getRecognizer())) return false; + if (!getRecognizer().equals(other.getRecognizer())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getRecognizerId() - .equals(other.getRecognizerId())) return false; - if (!getParent() - .equals(other.getParent())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRecognizerId().equals(other.getRecognizerId())) return false; + if (!getParent().equals(other.getParent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -297,8 +344,7 @@ public int hashCode() { hash = (53 * hash) + getRecognizer().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + RECOGNIZER_ID_FIELD_NUMBER; hash = (53 * hash) + getRecognizerId().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; @@ -309,96 +355,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.CreateRecognizerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.CreateRecognizerRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest 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.v2.CreateRecognizerRequest 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; } /** + * + * *
    * Request message for the
    * [CreateRecognizer][google.cloud.speech.v2.Speech.CreateRecognizer] method.
@@ -406,33 +459,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.CreateRecognizerRequest}
    */
-  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.v2.CreateRecognizerRequest)
       com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.CreateRecognizerRequest.class, com.google.cloud.speech.v2.CreateRecognizerRequest.Builder.class);
+              com.google.cloud.speech.v2.CreateRecognizerRequest.class,
+              com.google.cloud.speech.v2.CreateRecognizerRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.CreateRecognizerRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -449,9 +501,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CreateRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
@@ -470,8 +522,11 @@ public com.google.cloud.speech.v2.CreateRecognizerRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.CreateRecognizerRequest buildPartial() {
-      com.google.cloud.speech.v2.CreateRecognizerRequest result = new com.google.cloud.speech.v2.CreateRecognizerRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.CreateRecognizerRequest result =
+          new com.google.cloud.speech.v2.CreateRecognizerRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -479,9 +534,7 @@ public com.google.cloud.speech.v2.CreateRecognizerRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.CreateRecognizerRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.recognizer_ = recognizerBuilder_ == null
-            ? recognizer_
-            : recognizerBuilder_.build();
+        result.recognizer_ = recognizerBuilder_ == null ? recognizer_ : recognizerBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -498,38 +551,39 @@ private void buildPartial0(com.google.cloud.speech.v2.CreateRecognizerRequest re
     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.v2.CreateRecognizerRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.CreateRecognizerRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.CreateRecognizerRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -537,7 +591,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.CreateRecognizerRequest other) {
-      if (other == com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance())
+        return this;
       if (other.hasRecognizer()) {
         mergeRecognizer(other.getRecognizer());
       }
@@ -580,34 +635,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getRecognizerFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              recognizerId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getRecognizerFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                recognizerId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -617,43 +675,63 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.speech.v2.Recognizer recognizer_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> recognizerBuilder_;
+            com.google.cloud.speech.v2.Recognizer,
+            com.google.cloud.speech.v2.Recognizer.Builder,
+            com.google.cloud.speech.v2.RecognizerOrBuilder>
+        recognizerBuilder_;
     /**
+     *
+     *
      * 
      * Required. The Recognizer to create.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the recognizer field is set. */ public boolean hasRecognizer() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The Recognizer to create.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The recognizer. */ public com.google.cloud.speech.v2.Recognizer getRecognizer() { if (recognizerBuilder_ == null) { - return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; + return recognizer_ == null + ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() + : recognizer_; } else { return recognizerBuilder_.getMessage(); } } /** + * + * *
      * Required. The Recognizer to create.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer value) { if (recognizerBuilder_ == null) { @@ -669,14 +747,17 @@ public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer value) { return this; } /** + * + * *
      * Required. The Recognizer to create.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setRecognizer( - com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { + public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { if (recognizerBuilder_ == null) { recognizer_ = builderForValue.build(); } else { @@ -687,17 +768,21 @@ public Builder setRecognizer( return this; } /** + * + * *
      * Required. The Recognizer to create.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeRecognizer(com.google.cloud.speech.v2.Recognizer value) { if (recognizerBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - recognizer_ != null && - recognizer_ != com.google.cloud.speech.v2.Recognizer.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && recognizer_ != null + && recognizer_ != com.google.cloud.speech.v2.Recognizer.getDefaultInstance()) { getRecognizerBuilder().mergeFrom(value); } else { recognizer_ = value; @@ -710,11 +795,15 @@ public Builder mergeRecognizer(com.google.cloud.speech.v2.Recognizer value) { return this; } /** + * + * *
      * Required. The Recognizer to create.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRecognizer() { bitField0_ = (bitField0_ & ~0x00000001); @@ -727,11 +816,15 @@ public Builder clearRecognizer() { return this; } /** + * + * *
      * Required. The Recognizer to create.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.Recognizer.Builder getRecognizerBuilder() { bitField0_ |= 0x00000001; @@ -739,49 +832,64 @@ public com.google.cloud.speech.v2.Recognizer.Builder getRecognizerBuilder() { return getRecognizerFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Recognizer to create.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder() { if (recognizerBuilder_ != null) { return recognizerBuilder_.getMessageOrBuilder(); } else { - return recognizer_ == null ? - com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; + return recognizer_ == null + ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() + : recognizer_; } } /** + * + * *
      * Required. The Recognizer to create.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> + com.google.cloud.speech.v2.Recognizer, + com.google.cloud.speech.v2.Recognizer.Builder, + com.google.cloud.speech.v2.RecognizerOrBuilder> getRecognizerFieldBuilder() { if (recognizerBuilder_ == null) { - recognizerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder>( - getRecognizer(), - getParentForChildren(), - isClean()); + recognizerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.Recognizer, + com.google.cloud.speech.v2.Recognizer.Builder, + com.google.cloud.speech.v2.RecognizerOrBuilder>( + getRecognizer(), getParentForChildren(), isClean()); recognizer_ = null; } return recognizerBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the Recognizer, but do not
      * actually create it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -789,29 +897,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the Recognizer, but do not
      * actually create it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the Recognizer, but do not
      * actually create it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -823,6 +937,8 @@ public Builder clearValidateOnly() { private java.lang.Object recognizerId_ = ""; /** + * + * *
      * The ID to use for the Recognizer, which will become the final component of
      * the Recognizer's resource name.
@@ -831,13 +947,13 @@ public Builder clearValidateOnly() {
      * 
* * string recognizer_id = 3; + * * @return The recognizerId. */ public java.lang.String getRecognizerId() { java.lang.Object ref = recognizerId_; 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(); recognizerId_ = s; return s; @@ -846,6 +962,8 @@ public java.lang.String getRecognizerId() { } } /** + * + * *
      * The ID to use for the Recognizer, which will become the final component of
      * the Recognizer's resource name.
@@ -854,15 +972,14 @@ public java.lang.String getRecognizerId() {
      * 
* * string recognizer_id = 3; + * * @return The bytes for recognizerId. */ - public com.google.protobuf.ByteString - getRecognizerIdBytes() { + public com.google.protobuf.ByteString getRecognizerIdBytes() { java.lang.Object ref = recognizerId_; 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); recognizerId_ = b; return b; } else { @@ -870,6 +987,8 @@ public java.lang.String getRecognizerId() { } } /** + * + * *
      * The ID to use for the Recognizer, which will become the final component of
      * the Recognizer's resource name.
@@ -878,18 +997,22 @@ public java.lang.String getRecognizerId() {
      * 
* * string recognizer_id = 3; + * * @param value The recognizerId to set. * @return This builder for chaining. */ - public Builder setRecognizerId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecognizerId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } recognizerId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The ID to use for the Recognizer, which will become the final component of
      * the Recognizer's resource name.
@@ -898,6 +1021,7 @@ public Builder setRecognizerId(
      * 
* * string recognizer_id = 3; + * * @return This builder for chaining. */ public Builder clearRecognizerId() { @@ -907,6 +1031,8 @@ public Builder clearRecognizerId() { return this; } /** + * + * *
      * The ID to use for the Recognizer, which will become the final component of
      * the Recognizer's resource name.
@@ -915,12 +1041,14 @@ public Builder clearRecognizerId() {
      * 
* * string recognizer_id = 3; + * * @param value The bytes for recognizerId to set. * @return This builder for chaining. */ - public Builder setRecognizerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecognizerIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); recognizerId_ = value; bitField0_ |= 0x00000004; @@ -930,19 +1058,23 @@ public Builder setRecognizerIdBytes( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The project and location where this Recognizer will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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; @@ -951,21 +1083,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location where this Recognizer will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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 { @@ -973,30 +1108,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location where this Recognizer will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Required. The project and location where this Recognizer will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1006,27 +1152,33 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The project and location where this Recognizer will be created.
      * The expected format is `projects/{project}/locations/{location}`.
      * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000008; 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); } @@ -1036,12 +1188,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.CreateRecognizerRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.CreateRecognizerRequest) private static final com.google.cloud.speech.v2.CreateRecognizerRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.CreateRecognizerRequest(); } @@ -1050,27 +1202,27 @@ public static com.google.cloud.speech.v2.CreateRecognizerRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRecognizerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRecognizerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1085,6 +1237,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.CreateRecognizerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java index ae28e33df050..77aa7ec49b6a 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CreateRecognizerRequestOrBuilder.java @@ -1,51 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface CreateRecognizerRequestOrBuilder extends +public interface CreateRecognizerRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.CreateRecognizerRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Recognizer to create.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the recognizer field is set. */ boolean hasRecognizer(); /** + * + * *
    * Required. The Recognizer to create.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The recognizer. */ com.google.cloud.speech.v2.Recognizer getRecognizer(); /** + * + * *
    * Required. The Recognizer to create.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder(); /** + * + * *
    * If set, validate the request and preview the Recognizer, but do not
    * actually create it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * The ID to use for the Recognizer, which will become the final component of
    * the Recognizer's resource name.
@@ -54,10 +89,13 @@ public interface CreateRecognizerRequestOrBuilder extends
    * 
* * string recognizer_id = 3; + * * @return The recognizerId. */ java.lang.String getRecognizerId(); /** + * + * *
    * The ID to use for the Recognizer, which will become the final component of
    * the Recognizer's resource name.
@@ -66,30 +104,39 @@ public interface CreateRecognizerRequestOrBuilder extends
    * 
* * string recognizer_id = 3; + * * @return The bytes for recognizerId. */ - com.google.protobuf.ByteString - getRecognizerIdBytes(); + com.google.protobuf.ByteString getRecognizerIdBytes(); /** + * + * *
    * Required. The project and location where this Recognizer will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The project and location where this Recognizer will be created.
    * The expected format is `projects/{project}/locations/{location}`.
    * 
* - * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java similarity index 69% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java index 3c0b408a3a4c..5fd33410c96d 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClass.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * CustomClass for biasing in speech recognition. Used to define a set of words
  * or phrases that represents a common concept or theme likely to appear in your
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
     uid_ = "";
@@ -34,51 +52,54 @@ 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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_CustomClass_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 10:
         return internalGetAnnotations();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.CustomClass.class, com.google.cloud.speech.v2.CustomClass.Builder.class);
+            com.google.cloud.speech.v2.CustomClass.class,
+            com.google.cloud.speech.v2.CustomClass.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Set of states that define the lifecycle of a CustomClass.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.CustomClass.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified state.  This is only used/useful for distinguishing
      * unset values.
@@ -88,6 +109,8 @@ public enum State
      */
     STATE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * The normal and active state.
      * 
@@ -96,6 +119,8 @@ public enum State */ ACTIVE(2), /** + * + * *
      * This CustomClass has been deleted.
      * 
@@ -107,6 +132,8 @@ public enum State ; /** + * + * *
      * Unspecified state.  This is only used/useful for distinguishing
      * unset values.
@@ -116,6 +143,8 @@ public enum State
      */
     public static final int STATE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * The normal and active state.
      * 
@@ -124,6 +153,8 @@ public enum State */ public static final int ACTIVE_VALUE = 2; /** + * + * *
      * This CustomClass has been deleted.
      * 
@@ -132,7 +163,6 @@ public enum State */ public static final int DELETED_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -157,49 +187,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 2: return ACTIVE; - case 4: return DELETED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 2: + return ACTIVE; + case 4: + return DELETED; + 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< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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 State findValueByNumber(int number) { + return State.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.v2.CustomClass.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -216,84 +246,98 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.speech.v2.CustomClass.State) } - public interface ClassItemOrBuilder extends + public interface ClassItemOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.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.v2.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.v2.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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.CustomClass.ClassItem.class, com.google.cloud.speech.v2.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v2.CustomClass.ClassItem.class, + com.google.cloud.speech.v2.CustomClass.ClassItem.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** + * + * *
      * The class item's value.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -302,29 +346,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 { @@ -333,6 +377,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -344,8 +389,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_); } @@ -369,15 +413,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.v2.CustomClass.ClassItem)) { return super.equals(obj); } - com.google.cloud.speech.v2.CustomClass.ClassItem other = (com.google.cloud.speech.v2.CustomClass.ClassItem) obj; + com.google.cloud.speech.v2.CustomClass.ClassItem other = + (com.google.cloud.speech.v2.CustomClass.ClassItem) obj; - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -397,87 +441,93 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.CustomClass.ClassItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.CustomClass.ClassItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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 @@ -487,39 +537,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * An item of the class.
      * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.CustomClass.ClassItem) com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.CustomClass.ClassItem.class, com.google.cloud.speech.v2.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v2.CustomClass.ClassItem.class, + com.google.cloud.speech.v2.CustomClass.ClassItem.Builder.class); } // Construct using com.google.cloud.speech.v2.CustomClass.ClassItem.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -529,9 +581,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; } @java.lang.Override @@ -550,8 +602,11 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem build() { @java.lang.Override public com.google.cloud.speech.v2.CustomClass.ClassItem buildPartial() { - com.google.cloud.speech.v2.CustomClass.ClassItem result = new com.google.cloud.speech.v2.CustomClass.ClassItem(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v2.CustomClass.ClassItem result = + new com.google.cloud.speech.v2.CustomClass.ClassItem(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -567,38 +622,41 @@ private void buildPartial0(com.google.cloud.speech.v2.CustomClass.ClassItem resu 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.v2.CustomClass.ClassItem) { - return mergeFrom((com.google.cloud.speech.v2.CustomClass.ClassItem)other); + return mergeFrom((com.google.cloud.speech.v2.CustomClass.ClassItem) other); } else { super.mergeFrom(other); return this; @@ -606,7 +664,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.CustomClass.ClassItem other) { - if (other == com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()) + return this; if (!other.getValue().isEmpty()) { value_ = other.value_; bitField0_ |= 0x00000001; @@ -638,17 +697,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -658,22 +719,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -682,20 +746,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 { @@ -703,28 +768,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -734,23 +806,28 @@ public Builder clearValue() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -763,12 +840,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.CustomClass.ClassItem) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.CustomClass.ClassItem) private static final com.google.cloud.speech.v2.CustomClass.ClassItem DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.CustomClass.ClassItem(); } @@ -777,27 +854,28 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -812,13 +890,15 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.CustomClass.ClassItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. The resource name of the CustomClass.
    * Format:
@@ -826,6 +906,7 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem getDefaultInstanceForTyp
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -834,14 +915,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; } } /** + * + * *
    * Output only. The resource name of the CustomClass.
    * Format:
@@ -849,16 +931,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -867,14 +948,18 @@ public java.lang.String getName() { } public static final int UID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** + * + * *
    * Output only. System-assigned unique identifier for the CustomClass.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -883,29 +968,29 @@ public java.lang.String getUid() { 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(); uid_ = s; return s; } } /** + * + * *
    * Output only. System-assigned unique identifier for the CustomClass.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -914,15 +999,19 @@ public java.lang.String getUid() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * User-settable, human-readable name for the CustomClass. Must be 63
    * characters or less.
    * 
* * string display_name = 4; + * * @return The displayName. */ @java.lang.Override @@ -931,30 +1020,30 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** + * + * *
    * User-settable, human-readable name for the CustomClass. Must be 63
    * characters or less.
    * 
* * string display_name = 4; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -963,9 +1052,12 @@ public java.lang.String getDisplayName() { } public static final int ITEMS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private java.util.List items_; /** + * + * *
    * A collection of class items.
    * 
@@ -977,6 +1069,8 @@ public java.util.List getItems return items_; } /** + * + * *
    * A collection of class items.
    * 
@@ -984,11 +1078,13 @@ public java.util.List getItems * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ @java.lang.Override - public java.util.List + public java.util.List getItemsOrBuilderList() { return items_; } /** + * + * *
    * A collection of class items.
    * 
@@ -1000,6 +1096,8 @@ public int getItemsCount() { return items_.size(); } /** + * + * *
    * A collection of class items.
    * 
@@ -1011,6 +1109,8 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem getItems(int index) { return items_.get(index); } /** + * + * *
    * A collection of class items.
    * 
@@ -1018,45 +1118,61 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem getItems(int index) { * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ @java.lang.Override - public com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder( - int index) { + public com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index) { return items_.get(index); } public static final int STATE_FIELD_NUMBER = 15; private int state_ = 0; /** + * + * *
    * Output only. The CustomClass lifecycle state.
    * 
* - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The CustomClass lifecycle state.
    * 
* - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.speech.v2.CustomClass.State getState() { - com.google.cloud.speech.v2.CustomClass.State result = com.google.cloud.speech.v2.CustomClass.State.forNumber(state_); + @java.lang.Override + public com.google.cloud.speech.v2.CustomClass.State getState() { + com.google.cloud.speech.v2.CustomClass.State result = + com.google.cloud.speech.v2.CustomClass.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.CustomClass.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1064,11 +1180,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -1076,11 +1196,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1090,11 +1213,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1102,11 +1229,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -1114,11 +1245,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1128,11 +1262,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -1140,11 +1278,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -1152,11 +1294,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -1166,11 +1311,15 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -1178,11 +1327,15 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ @java.lang.Override @@ -1190,11 +1343,14 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -1202,32 +1358,35 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } public static final int ANNOTATIONS_FIELD_NUMBER = 10; + private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1237,20 +1396,21 @@ public int getAnnotationsCount() {
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public boolean containsAnnotations(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsAnnotations(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetAnnotations().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getAnnotationsMap()} instead.
-   */
+  /** Use {@link #getAnnotationsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAnnotations() {
     return getAnnotationsMap();
   }
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1264,6 +1424,8 @@ public java.util.Map getAnnotationsMap() {
     return internalGetAnnotations().getMap();
   }
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1273,17 +1435,19 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getAnnotationsOrDefault(
+  public /* nullable */ java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1293,11 +1457,11 @@ java.lang.String getAnnotationsOrDefault(
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public java.lang.String getAnnotationsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1305,9 +1469,12 @@ public java.lang.String getAnnotationsOrThrow(
   }
 
   public static final int ETAG_FIELD_NUMBER = 11;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object etag_ = "";
   /**
+   *
+   *
    * 
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -1315,6 +1482,7 @@ public java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ @java.lang.Override @@ -1323,14 +1491,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -1338,16 +1507,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -1358,12 +1526,15 @@ public java.lang.String getEtag() { public static final int RECONCILING_FIELD_NUMBER = 12; private boolean reconciling_ = false; /** + * + * *
    * Output only. Whether or not this CustomClass is in the process of being
    * updated.
    * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -1372,9 +1543,12 @@ public boolean getReconciling() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 13; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -1382,7 +1556,10 @@ public boolean getReconciling() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ @java.lang.Override @@ -1391,14 +1568,15 @@ public java.lang.String getKmsKeyName() { 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(); kmsKeyName_ = s; return s; } } /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -1406,17 +1584,18 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -1425,9 +1604,12 @@ public java.lang.String getKmsKeyName() { } public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER = 14; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyVersionName_ = ""; /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1435,7 +1617,10 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyVersionName. */ @java.lang.Override @@ -1444,14 +1629,15 @@ public java.lang.String getKmsKeyVersionName() { 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(); kmsKeyVersionName_ = s; return s; } } /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1459,17 +1645,18 @@ public java.lang.String getKmsKeyVersionName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyVersionName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -1478,6 +1665,7 @@ public java.lang.String getKmsKeyVersionName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1489,8 +1677,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_); } @@ -1515,12 +1702,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (expireTime_ != null) { output.writeMessage(9, getExpireTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 10); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 10); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, etag_); } @@ -1555,41 +1738,35 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); } for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, items_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, items_.get(i)); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getExpireTime()); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, annotations__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getExpireTime()); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, annotations__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etag_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, reconciling_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, reconciling_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kmsKeyName_); @@ -1598,8 +1775,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, kmsKeyVersionName_); } if (state_ != com.google.cloud.speech.v2.CustomClass.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1609,52 +1785,39 @@ 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.v2.CustomClass)) { return super.equals(obj); } com.google.cloud.speech.v2.CustomClass other = (com.google.cloud.speech.v2.CustomClass) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getItemsList() - .equals(other.getItemsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getItemsList().equals(other.getItemsList())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; - } - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (getReconciling() - != other.getReconciling()) return false; - if (!getKmsKeyName() - .equals(other.getKmsKeyName())) return false; - if (!getKmsKeyVersionName() - .equals(other.getKmsKeyVersionName())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; + } + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1701,8 +1864,7 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getKmsKeyName().hashCode(); hash = (37 * hash) + KMS_KEY_VERSION_NAME_FIELD_NUMBER; @@ -1712,97 +1874,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.CustomClass parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.CustomClass parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.CustomClass parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.CustomClass parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * CustomClass for biasing in speech recognition. Used to define a set of words
    * or phrases that represents a common concept or theme likely to appear in your
@@ -1811,55 +1980,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.CustomClass)
       com.google.cloud.speech.v2.CustomClassOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CustomClass_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 10:
           return internalGetAnnotations();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 10:
           return internalGetMutableAnnotations();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.CustomClass.class, com.google.cloud.speech.v2.CustomClass.Builder.class);
+              com.google.cloud.speech.v2.CustomClass.class,
+              com.google.cloud.speech.v2.CustomClass.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.CustomClass.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1904,9 +2070,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_CustomClass_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_CustomClass_descriptor;
     }
 
     @java.lang.Override
@@ -1925,9 +2091,12 @@ public com.google.cloud.speech.v2.CustomClass build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.CustomClass buildPartial() {
-      com.google.cloud.speech.v2.CustomClass result = new com.google.cloud.speech.v2.CustomClass(this);
+      com.google.cloud.speech.v2.CustomClass result =
+          new com.google.cloud.speech.v2.CustomClass(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1959,24 +2128,16 @@ private void buildPartial0(com.google.cloud.speech.v2.CustomClass result) {
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null
-            ? deleteTime_
-            : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.expireTime_ = expireTimeBuilder_ == null
-            ? expireTime_
-            : expireTimeBuilder_.build();
+        result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.annotations_ = internalGetAnnotations();
@@ -2000,38 +2161,39 @@ private void buildPartial0(com.google.cloud.speech.v2.CustomClass result) {
     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.v2.CustomClass) {
-        return mergeFrom((com.google.cloud.speech.v2.CustomClass)other);
+        return mergeFrom((com.google.cloud.speech.v2.CustomClass) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2073,9 +2235,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            itemsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getItemsFieldBuilder() : null;
+            itemsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getItemsFieldBuilder()
+                    : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -2096,8 +2259,7 @@ public Builder mergeFrom(com.google.cloud.speech.v2.CustomClass other) {
       if (other.hasExpireTime()) {
         mergeExpireTime(other.getExpireTime());
       }
-      internalGetMutableAnnotations().mergeFrom(
-          other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
       bitField0_ |= 0x00000200;
       if (!other.getEtag().isEmpty()) {
         etag_ = other.etag_;
@@ -2143,102 +2305,111 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              uid_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 34: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 34
-            case 42: {
-              com.google.cloud.speech.v2.CustomClass.ClassItem m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.CustomClass.ClassItem.parser(),
-                      extensionRegistry);
-              if (itemsBuilder_ == null) {
-                ensureItemsIsMutable();
-                items_.add(m);
-              } else {
-                itemsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getDeleteTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 66
-            case 74: {
-              input.readMessage(
-                  getExpireTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 74
-            case 82: {
-              com.google.protobuf.MapEntry
-              annotations__ = input.readMessage(
-                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableAnnotations().getMutableMap().put(
-                  annotations__.getKey(), annotations__.getValue());
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 82
-            case 90: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 90
-            case 96: {
-              reconciling_ = input.readBool();
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 96
-            case 106: {
-              kmsKeyName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 106
-            case 114: {
-              kmsKeyVersionName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 114
-            case 120: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 120
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                uid_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 34:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 34
+            case 42:
+              {
+                com.google.cloud.speech.v2.CustomClass.ClassItem m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.CustomClass.ClassItem.parser(),
+                        extensionRegistry);
+                if (itemsBuilder_ == null) {
+                  ensureItemsIsMutable();
+                  items_.add(m);
+                } else {
+                  itemsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 66
+            case 74:
+              {
+                input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 74
+            case 82:
+              {
+                com.google.protobuf.MapEntry annotations__ =
+                    input.readMessage(
+                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableAnnotations()
+                    .getMutableMap()
+                    .put(annotations__.getKey(), annotations__.getValue());
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 82
+            case 90:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 90
+            case 96:
+              {
+                reconciling_ = input.readBool();
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 96
+            case 106:
+              {
+                kmsKeyName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 106
+            case 114:
+              {
+                kmsKeyVersionName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 114
+            case 120:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 120
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2248,10 +2419,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource name of the CustomClass.
      * Format:
@@ -2259,13 +2433,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -2274,6 +2448,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the CustomClass.
      * Format:
@@ -2281,15 +2457,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -2297,6 +2472,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the CustomClass.
      * Format:
@@ -2304,18 +2481,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the CustomClass.
      * Format:
@@ -2323,6 +2504,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -2332,6 +2514,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource name of the CustomClass.
      * Format:
@@ -2339,12 +2523,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2354,18 +2540,20 @@ public Builder setNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. System-assigned unique identifier for the CustomClass.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; 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(); uid_ = s; return s; @@ -2374,20 +2562,21 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. System-assigned unique identifier for the CustomClass.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -2395,28 +2584,35 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. System-assigned unique identifier for the CustomClass.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. System-assigned unique identifier for the CustomClass.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -2426,17 +2622,21 @@ public Builder clearUid() { return this; } /** + * + * *
      * Output only. System-assigned unique identifier for the CustomClass.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000002; @@ -2446,19 +2646,21 @@ public Builder setUidBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * User-settable, human-readable name for the CustomClass. Must be 63
      * characters or less.
      * 
* * string display_name = 4; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -2467,21 +2669,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User-settable, human-readable name for the CustomClass. Must be 63
      * characters or less.
      * 
* * string display_name = 4; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -2489,30 +2692,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User-settable, human-readable name for the CustomClass. Must be 63
      * characters or less.
      * 
* * string display_name = 4; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * User-settable, human-readable name for the CustomClass. Must be 63
      * characters or less.
      * 
* * string display_name = 4; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2522,18 +2732,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * User-settable, human-readable name for the CustomClass. Must be 63
      * characters or less.
      * 
* * string display_name = 4; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000004; @@ -2542,18 +2756,24 @@ public Builder setDisplayNameBytes( } private java.util.List items_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass.ClassItem, com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder> itemsBuilder_; + com.google.cloud.speech.v2.CustomClass.ClassItem, + com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder> + itemsBuilder_; /** + * + * *
      * A collection of class items.
      * 
@@ -2568,6 +2788,8 @@ public java.util.List getItems } } /** + * + * *
      * A collection of class items.
      * 
@@ -2582,6 +2804,8 @@ public int getItemsCount() { } } /** + * + * *
      * A collection of class items.
      * 
@@ -2596,14 +2820,15 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem getItems(int index) { } } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public Builder setItems( - int index, com.google.cloud.speech.v2.CustomClass.ClassItem value) { + public Builder setItems(int index, com.google.cloud.speech.v2.CustomClass.ClassItem value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2617,6 +2842,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -2635,6 +2862,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -2655,14 +2884,15 @@ public Builder addItems(com.google.cloud.speech.v2.CustomClass.ClassItem value) return this; } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public Builder addItems( - int index, com.google.cloud.speech.v2.CustomClass.ClassItem value) { + public Builder addItems(int index, com.google.cloud.speech.v2.CustomClass.ClassItem value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2676,6 +2906,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -2694,6 +2926,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -2712,6 +2946,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -2722,8 +2958,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); @@ -2731,6 +2966,8 @@ public Builder addAllItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -2748,6 +2985,8 @@ public Builder clearItems() { return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -2765,39 +3004,44 @@ public Builder removeItems(int index) { return this; } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder getItemsBuilder( - int index) { + public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder( - int index) { + public com.google.cloud.speech.v2.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.v2.CustomClass.ClassItem items = 5; */ - public java.util.List - getItemsOrBuilderList() { + public java.util.List + getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { @@ -2805,6 +3049,8 @@ public com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuild } } /** + * + * *
      * A collection of class items.
      * 
@@ -2812,42 +3058,48 @@ public com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuild * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder addItemsBuilder() { - return getItemsFieldBuilder().addBuilder( - com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()); + return getItemsFieldBuilder() + .addBuilder(com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()); } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder addItemsBuilder( - int index) { - return getItemsFieldBuilder().addBuilder( - index, com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()); + public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder addItemsBuilder(int index) { + return getItemsFieldBuilder() + .addBuilder(index, com.google.cloud.speech.v2.CustomClass.ClassItem.getDefaultInstance()); } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - public java.util.List - getItemsBuilderList() { + public java.util.List + getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass.ClassItem, com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder> + com.google.cloud.speech.v2.CustomClass.ClassItem, + com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass.ClassItem, com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder>( - items_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + itemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.CustomClass.ClassItem, + com.google.cloud.speech.v2.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder>( + items_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; @@ -2855,22 +3107,33 @@ public com.google.cloud.speech.v2.CustomClass.ClassItem.Builder addItemsBuilder( private int state_ = 0; /** + * + * *
      * Output only. The CustomClass lifecycle state.
      * 
* - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The CustomClass lifecycle state.
      * 
* - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2881,24 +3144,35 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The CustomClass lifecycle state.
      * 
* - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.speech.v2.CustomClass.State getState() { - com.google.cloud.speech.v2.CustomClass.State result = com.google.cloud.speech.v2.CustomClass.State.forNumber(state_); + com.google.cloud.speech.v2.CustomClass.State result = + com.google.cloud.speech.v2.CustomClass.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.CustomClass.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The CustomClass lifecycle state.
      * 
* - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2912,11 +3186,16 @@ public Builder setState(com.google.cloud.speech.v2.CustomClass.State value) { return this; } /** + * + * *
      * Output only. The CustomClass lifecycle state.
      * 
* - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -2928,39 +3207,58 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2976,14 +3274,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2994,17 +3295,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3017,11 +3322,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -3034,11 +3343,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000020; @@ -3046,36 +3359,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3083,39 +3408,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3131,14 +3475,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3149,17 +3496,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3172,11 +3523,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3189,11 +3544,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000040; @@ -3201,36 +3560,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3238,39 +3609,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3286,14 +3676,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -3304,17 +3697,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -3327,11 +3724,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3344,11 +3745,15 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000080; @@ -3356,36 +3761,48 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -3393,39 +3810,58 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -3441,14 +3877,17 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -3459,17 +3898,21 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - expireTime_ != null && - expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -3482,11 +3925,15 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -3499,11 +3946,15 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000100; @@ -3511,43 +3962,55 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); expireTime_ = null; } return expireTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -3556,11 +4019,12 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } return annotations_; } + private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -3569,10 +4033,13 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { onChanged(); return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3582,20 +4049,21 @@ public int getAnnotationsCount() {
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public boolean containsAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetAnnotations().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getAnnotationsMap()} instead.
-     */
+    /** Use {@link #getAnnotationsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAnnotations() {
       return getAnnotationsMap();
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3609,6 +4077,8 @@ public java.util.Map getAnnotationsMap() {
       return internalGetAnnotations().getMap();
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3618,17 +4088,19 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getAnnotationsOrDefault(
+    public /* nullable */ java.lang.String getAnnotationsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3638,23 +4110,25 @@ java.lang.String getAnnotationsOrDefault(
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public java.lang.String getAnnotationsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearAnnotations() {
       bitField0_ = (bitField0_ & ~0x00000200);
-      internalGetMutableAnnotations().getMutableMap()
-          .clear();
+      internalGetMutableAnnotations().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3663,23 +4137,22 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 10;
      */
-    public Builder removeAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableAnnotations().getMutableMap()
-          .remove(key);
+    public Builder removeAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableAnnotations().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableAnnotations() {
+    public java.util.Map getMutableAnnotations() {
       bitField0_ |= 0x00000200;
       return internalGetMutableAnnotations().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3688,17 +4161,20 @@ public Builder removeAnnotations(
      *
      * map<string, string> annotations = 10;
      */
-    public Builder putAnnotations(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableAnnotations().getMutableMap()
-          .put(key, value);
+    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableAnnotations().getMutableMap().put(key, value);
       bitField0_ |= 0x00000200;
       return this;
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3707,16 +4183,16 @@ public Builder putAnnotations(
      *
      * map<string, string> annotations = 10;
      */
-    public Builder putAllAnnotations(
-        java.util.Map values) {
-      internalGetMutableAnnotations().getMutableMap()
-          .putAll(values);
+    public Builder putAllAnnotations(java.util.Map values) {
+      internalGetMutableAnnotations().getMutableMap().putAll(values);
       bitField0_ |= 0x00000200;
       return this;
     }
 
     private java.lang.Object etag_ = "";
     /**
+     *
+     *
      * 
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3724,13 +4200,13 @@ public Builder putAllAnnotations(
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -3739,6 +4215,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3746,15 +4224,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -3762,6 +4239,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3769,18 +4248,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3788,6 +4271,7 @@ public Builder setEtag(
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -3797,6 +4281,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3804,12 +4290,14 @@ public Builder clearEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000400; @@ -3817,14 +4305,17 @@ public Builder setEtagBytes( return this; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Whether or not this CustomClass is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -3832,29 +4323,35 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Whether or not this CustomClass is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** + * + * *
      * Output only. Whether or not this CustomClass is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -3866,6 +4363,8 @@ public Builder clearReconciling() { private java.lang.Object kmsKeyName_ = ""; /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3873,14 +4372,16 @@ public Builder clearReconciling() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; 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(); kmsKeyName_ = s; return s; @@ -3889,6 +4390,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3896,16 +4399,17 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -3913,6 +4417,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3920,19 +4426,25 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyName_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3940,7 +4452,10 @@ public Builder setKmsKeyName(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -3950,6 +4465,8 @@ public Builder clearKmsKeyName() { return this; } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3957,13 +4474,17 @@ public Builder clearKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00001000; @@ -3973,6 +4494,8 @@ public Builder setKmsKeyNameBytes( private java.lang.Object kmsKeyVersionName_ = ""; /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3980,14 +4503,16 @@ public Builder setKmsKeyNameBytes(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyVersionName. */ public java.lang.String getKmsKeyVersionName() { java.lang.Object ref = kmsKeyVersionName_; 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(); kmsKeyVersionName_ = s; return s; @@ -3996,6 +4521,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4003,16 +4530,17 @@ public java.lang.String getKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyVersionName. */ - public com.google.protobuf.ByteString - getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -4020,6 +4548,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4027,19 +4557,25 @@ public java.lang.String getKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyVersionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyVersionName_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4047,7 +4583,10 @@ public Builder setKmsKeyVersionName(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { @@ -4057,6 +4596,8 @@ public Builder clearKmsKeyVersionName() { return this; } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4064,22 +4605,26 @@ public Builder clearKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyVersionName_ = value; bitField0_ |= 0x00002000; 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); } @@ -4089,12 +4634,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.CustomClass) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.CustomClass) private static final com.google.cloud.speech.v2.CustomClass DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.CustomClass(); } @@ -4103,27 +4648,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4138,6 +4683,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java similarity index 100% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassName.java diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java similarity index 75% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java index 1104804e72bf..b30eb892dc41 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CustomClassOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface CustomClassOrBuilder extends +public interface CustomClassOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.CustomClass) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the CustomClass.
    * Format:
@@ -15,10 +33,13 @@ public interface CustomClassOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the CustomClass.
    * Format:
@@ -26,63 +47,76 @@ public interface CustomClassOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. System-assigned unique identifier for the CustomClass.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. System-assigned unique identifier for the CustomClass.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * User-settable, human-readable name for the CustomClass. Must be 63
    * characters or less.
    * 
* * string display_name = 4; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * User-settable, human-readable name for the CustomClass. Must be 63
    * characters or less.
    * 
* * string display_name = 4; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - java.util.List - getItemsList(); + java.util.List getItemsList(); /** + * + * *
    * A collection of class items.
    * 
@@ -91,6 +125,8 @@ public interface CustomClassOrBuilder extends */ com.google.cloud.speech.v2.CustomClass.ClassItem getItems(int index); /** + * + * *
    * A collection of class items.
    * 
@@ -99,152 +135,211 @@ public interface CustomClassOrBuilder extends */ int getItemsCount(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - java.util.List + java.util.List getItemsOrBuilderList(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v2.CustomClass.ClassItem items = 5; */ - com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder( - int index); + com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index); /** + * + * *
    * Output only. The CustomClass lifecycle state.
    * 
* - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The CustomClass lifecycle state.
    * 
* - * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.CustomClass.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.speech.v2.CustomClass.State getState(); /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** + * + * *
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -255,6 +350,8 @@ com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder(
    */
   int getAnnotationsCount();
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -263,15 +360,13 @@ com.google.cloud.speech.v2.CustomClass.ClassItemOrBuilder getItemsOrBuilder(
    *
    * map<string, string> annotations = 10;
    */
-  boolean containsAnnotations(
-      java.lang.String key);
-  /**
-   * Use {@link #getAnnotationsMap()} instead.
-   */
+  boolean containsAnnotations(java.lang.String key);
+  /** Use {@link #getAnnotationsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getAnnotations();
+  java.util.Map getAnnotations();
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -280,9 +375,10 @@ boolean containsAnnotations(
    *
    * map<string, string> annotations = 10;
    */
-  java.util.Map
-  getAnnotationsMap();
+  java.util.Map getAnnotationsMap();
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -292,11 +388,13 @@ boolean containsAnnotations(
    * map<string, string> annotations = 10;
    */
   /* nullable */
-java.lang.String getAnnotationsOrDefault(
+  java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -305,10 +403,11 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> annotations = 10;
    */
-  java.lang.String getAnnotationsOrThrow(
-      java.lang.String key);
+  java.lang.String getAnnotationsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -316,10 +415,13 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -327,23 +429,28 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Output only. Whether or not this CustomClass is in the process of being
    * updated.
    * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -351,11 +458,16 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -363,13 +475,17 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString - getKmsKeyNameBytes(); + com.google.protobuf.ByteString getKmsKeyNameBytes(); /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -377,11 +493,16 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyVersionName. */ java.lang.String getKmsKeyVersionName(); /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -389,9 +510,11 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyVersionName. */ - com.google.protobuf.ByteString - getKmsKeyVersionNameBytes(); + com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java similarity index 68% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java index 5763f51d0eba..f524a67060a1 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [DeleteCustomClass][google.cloud.speech.v2.Speech.DeleteCustomClass] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
     etag_ = "";
@@ -27,40 +45,47 @@ private DeleteCustomClassRequest() {
 
   @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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.DeleteCustomClassRequest.class, com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder.class);
+            com.google.cloud.speech.v2.DeleteCustomClassRequest.class,
+            com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the CustomClass to delete.
    * 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 @@ -69,31 +94,33 @@ 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 CustomClass to delete.
    * 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 { @@ -104,12 +131,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the deleted CustomClass, but do
    * not actually delete it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -120,12 +150,15 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** + * + * *
    * If set to true, and the CustomClass is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -134,9 +167,12 @@ public boolean getAllowMissing() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -144,6 +180,7 @@ public boolean getAllowMissing() {
    * 
* * string etag = 3; + * * @return The etag. */ @java.lang.Override @@ -152,14 +189,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -167,16 +205,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 3; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -185,6 +222,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,8 +234,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_); } @@ -223,15 +260,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -241,21 +276,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.v2.DeleteCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.DeleteCustomClassRequest other = (com.google.cloud.speech.v2.DeleteCustomClassRequest) obj; + com.google.cloud.speech.v2.DeleteCustomClassRequest other = + (com.google.cloud.speech.v2.DeleteCustomClassRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -270,11 +302,9 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -283,96 +313,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.DeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.DeleteCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.DeleteCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.DeleteCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.DeleteCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.DeleteCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [DeleteCustomClass][google.cloud.speech.v2.Speech.DeleteCustomClass] method.
@@ -380,33 +417,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.DeleteCustomClassRequest)
       com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.DeleteCustomClassRequest.class, com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder.class);
+              com.google.cloud.speech.v2.DeleteCustomClassRequest.class,
+              com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.DeleteCustomClassRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -419,9 +455,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
@@ -440,8 +476,11 @@ public com.google.cloud.speech.v2.DeleteCustomClassRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.DeleteCustomClassRequest buildPartial() {
-      com.google.cloud.speech.v2.DeleteCustomClassRequest result = new com.google.cloud.speech.v2.DeleteCustomClassRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.DeleteCustomClassRequest result =
+          new com.google.cloud.speech.v2.DeleteCustomClassRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -466,38 +505,39 @@ private void buildPartial0(com.google.cloud.speech.v2.DeleteCustomClassRequest r
     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.v2.DeleteCustomClassRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.DeleteCustomClassRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.DeleteCustomClassRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -505,7 +545,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.DeleteCustomClassRequest other) {
-      if (other == com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -548,32 +589,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 26
-            case 32: {
-              allowMissing_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 26
+            case 32:
+              {
+                allowMissing_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -583,24 +629,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the CustomClass to delete.
      * 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; @@ -609,22 +660,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the CustomClass to delete.
      * 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 { @@ -632,32 +686,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the CustomClass to delete.
      * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the CustomClass to delete.
      * 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() { @@ -667,19 +732,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the CustomClass to delete.
      * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -687,14 +758,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the deleted CustomClass, but do
      * not actually delete it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -702,29 +776,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the deleted CustomClass, but do
      * not actually delete it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the deleted CustomClass, but do
      * not actually delete it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -734,14 +814,17 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_ ; + private boolean allowMissing_; /** + * + * *
      * If set to true, and the CustomClass is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -749,29 +832,35 @@ public boolean getAllowMissing() { return allowMissing_; } /** + * + * *
      * If set to true, and the CustomClass is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; + * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set to true, and the CustomClass is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; + * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -783,6 +872,8 @@ public Builder clearAllowMissing() { private java.lang.Object etag_ = ""; /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -790,13 +881,13 @@ public Builder clearAllowMissing() {
      * 
* * string etag = 3; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -805,6 +896,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -812,15 +905,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 3; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -828,6 +920,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -835,18 +929,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 3; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -854,6 +952,7 @@ public Builder setEtag(
      * 
* * string etag = 3; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -863,6 +962,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -870,21 +971,23 @@ public Builder clearEtag() {
      * 
* * string etag = 3; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000008; 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); } @@ -894,12 +997,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.DeleteCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.DeleteCustomClassRequest) private static final com.google.cloud.speech.v2.DeleteCustomClassRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.DeleteCustomClassRequest(); } @@ -908,27 +1011,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -943,6 +1046,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.DeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java index 8564ba1c46af..5654d75a604d 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteCustomClassRequestOrBuilder.java @@ -1,59 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface DeleteCustomClassRequestOrBuilder extends +public interface DeleteCustomClassRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.DeleteCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the CustomClass to delete.
    * 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.String getName(); /** + * + * *
    * Required. The name of the CustomClass to delete.
    * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set, validate the request and preview the deleted CustomClass, but do
    * not actually delete it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set to true, and the CustomClass is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ boolean getAllowMissing(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -61,10 +94,13 @@ public interface DeleteCustomClassRequestOrBuilder extends
    * 
* * string etag = 3; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -72,8 +108,8 @@ public interface DeleteCustomClassRequestOrBuilder extends
    * 
* * string etag = 3; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java similarity index 68% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java index af0e0d86ccd5..76fbfb88e5f5 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [DeletePhraseSet][google.cloud.speech.v2.Speech.DeletePhraseSet] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
     etag_ = "";
@@ -27,39 +45,46 @@ private DeletePhraseSetRequest() {
 
   @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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.DeletePhraseSetRequest.class, com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder.class);
+            com.google.cloud.speech.v2.DeletePhraseSetRequest.class,
+            com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the PhraseSet 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 @@ -68,30 +93,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 PhraseSet 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 { @@ -102,12 +129,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the deleted PhraseSet, but do not
    * actually delete it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -118,12 +148,15 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** + * + * *
    * If set to true, and the PhraseSet is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -132,9 +165,12 @@ public boolean getAllowMissing() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -142,6 +178,7 @@ public boolean getAllowMissing() {
    * 
* * string etag = 3; + * * @return The etag. */ @java.lang.Override @@ -150,14 +187,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -165,16 +203,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 3; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -183,6 +220,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,8 +232,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_); } @@ -221,15 +258,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -239,21 +274,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.v2.DeletePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.DeletePhraseSetRequest other = (com.google.cloud.speech.v2.DeletePhraseSetRequest) obj; + com.google.cloud.speech.v2.DeletePhraseSetRequest other = + (com.google.cloud.speech.v2.DeletePhraseSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,11 +300,9 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -281,96 +311,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.DeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.DeletePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.DeletePhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.DeletePhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.DeletePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.DeletePhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [DeletePhraseSet][google.cloud.speech.v2.Speech.DeletePhraseSet] method.
@@ -378,33 +415,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.DeletePhraseSetRequest)
       com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.DeletePhraseSetRequest.class, com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder.class);
+              com.google.cloud.speech.v2.DeletePhraseSetRequest.class,
+              com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.DeletePhraseSetRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -417,9 +453,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -438,8 +474,11 @@ public com.google.cloud.speech.v2.DeletePhraseSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.DeletePhraseSetRequest buildPartial() {
-      com.google.cloud.speech.v2.DeletePhraseSetRequest result = new com.google.cloud.speech.v2.DeletePhraseSetRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.DeletePhraseSetRequest result =
+          new com.google.cloud.speech.v2.DeletePhraseSetRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -464,38 +503,39 @@ private void buildPartial0(com.google.cloud.speech.v2.DeletePhraseSetRequest res
     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.v2.DeletePhraseSetRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.DeletePhraseSetRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.DeletePhraseSetRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -503,7 +543,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.DeletePhraseSetRequest other) {
-      if (other == com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -546,32 +587,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 26
-            case 32: {
-              allowMissing_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 26
+            case 32:
+              {
+                allowMissing_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -581,23 +627,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the PhraseSet 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; @@ -606,21 +657,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the PhraseSet 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 { @@ -628,30 +682,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the PhraseSet 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the PhraseSet 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() { @@ -661,18 +726,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the PhraseSet 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -680,14 +751,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the deleted PhraseSet, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -695,29 +769,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the deleted PhraseSet, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the deleted PhraseSet, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -727,14 +807,17 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_ ; + private boolean allowMissing_; /** + * + * *
      * If set to true, and the PhraseSet is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -742,29 +825,35 @@ public boolean getAllowMissing() { return allowMissing_; } /** + * + * *
      * If set to true, and the PhraseSet is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; + * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set to true, and the PhraseSet is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; + * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -776,6 +865,8 @@ public Builder clearAllowMissing() { private java.lang.Object etag_ = ""; /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -783,13 +874,13 @@ public Builder clearAllowMissing() {
      * 
* * string etag = 3; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -798,6 +889,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -805,15 +898,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 3; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -821,6 +913,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -828,18 +922,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 3; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -847,6 +945,7 @@ public Builder setEtag(
      * 
* * string etag = 3; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -856,6 +955,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -863,21 +964,23 @@ public Builder clearEtag() {
      * 
* * string etag = 3; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000008; 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); } @@ -887,12 +990,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.DeletePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.DeletePhraseSetRequest) private static final com.google.cloud.speech.v2.DeletePhraseSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.DeletePhraseSetRequest(); } @@ -901,27 +1004,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -936,6 +1039,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.DeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java index dc82d1b9ad7f..090a269f9461 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeletePhraseSetRequestOrBuilder.java @@ -1,57 +1,90 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface DeletePhraseSetRequestOrBuilder extends +public interface DeletePhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.DeletePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the PhraseSet 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.String getName(); /** + * + * *
    * Required. The name of the PhraseSet 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set, validate the request and preview the deleted PhraseSet, but do not
    * actually delete it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set to true, and the PhraseSet is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ boolean getAllowMissing(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -59,10 +92,13 @@ public interface DeletePhraseSetRequestOrBuilder extends
    * 
* * string etag = 3; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -70,8 +106,8 @@ public interface DeletePhraseSetRequestOrBuilder extends
    * 
* * string etag = 3; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java similarity index 68% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java index d089dc1ff61e..13142e61a2cf 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [DeleteRecognizer][google.cloud.speech.v2.Speech.DeleteRecognizer] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.DeleteRecognizerRequest}
  */
-public final class DeleteRecognizerRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteRecognizerRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.DeleteRecognizerRequest)
     DeleteRecognizerRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteRecognizerRequest.newBuilder() to construct.
   private DeleteRecognizerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteRecognizerRequest() {
     name_ = "";
     etag_ = "";
@@ -27,39 +45,46 @@ private DeleteRecognizerRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteRecognizerRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.DeleteRecognizerRequest.class, com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder.class);
+            com.google.cloud.speech.v2.DeleteRecognizerRequest.class,
+            com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the Recognizer to delete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * 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 @@ -68,30 +93,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 Recognizer to delete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * 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 { @@ -102,12 +129,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the deleted Recognizer, but do not
    * actually delete it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -118,12 +148,15 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** + * + * *
    * If set to true, and the Recognizer is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -132,9 +165,12 @@ public boolean getAllowMissing() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -142,6 +178,7 @@ public boolean getAllowMissing() {
    * 
* * string etag = 3; + * * @return The etag. */ @java.lang.Override @@ -150,14 +187,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -165,16 +203,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 3; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -183,6 +220,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,8 +232,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_); } @@ -221,15 +258,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -239,21 +274,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.v2.DeleteRecognizerRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.DeleteRecognizerRequest other = (com.google.cloud.speech.v2.DeleteRecognizerRequest) obj; + com.google.cloud.speech.v2.DeleteRecognizerRequest other = + (com.google.cloud.speech.v2.DeleteRecognizerRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,11 +300,9 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -281,96 +311,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.DeleteRecognizerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.DeleteRecognizerRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest 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.v2.DeleteRecognizerRequest 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; } /** + * + * *
    * Request message for the
    * [DeleteRecognizer][google.cloud.speech.v2.Speech.DeleteRecognizer] method.
@@ -378,33 +415,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.DeleteRecognizerRequest}
    */
-  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.v2.DeleteRecognizerRequest)
       com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.DeleteRecognizerRequest.class, com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder.class);
+              com.google.cloud.speech.v2.DeleteRecognizerRequest.class,
+              com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.DeleteRecognizerRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -417,9 +453,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
@@ -438,8 +474,11 @@ public com.google.cloud.speech.v2.DeleteRecognizerRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.DeleteRecognizerRequest buildPartial() {
-      com.google.cloud.speech.v2.DeleteRecognizerRequest result = new com.google.cloud.speech.v2.DeleteRecognizerRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.DeleteRecognizerRequest result =
+          new com.google.cloud.speech.v2.DeleteRecognizerRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -464,38 +503,39 @@ private void buildPartial0(com.google.cloud.speech.v2.DeleteRecognizerRequest re
     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.v2.DeleteRecognizerRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.DeleteRecognizerRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.DeleteRecognizerRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -503,7 +543,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.DeleteRecognizerRequest other) {
-      if (other == com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -546,32 +587,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 26
-            case 32: {
-              allowMissing_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 26
+            case 32:
+              {
+                allowMissing_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -581,23 +627,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the Recognizer to delete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * 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; @@ -606,21 +657,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Recognizer to delete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * 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 { @@ -628,30 +682,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Recognizer to delete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the Recognizer to delete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * 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() { @@ -661,18 +726,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the Recognizer to delete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -680,14 +751,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the deleted Recognizer, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; + * * @return The validateOnly. */ @java.lang.Override @@ -695,29 +769,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the deleted Recognizer, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the deleted Recognizer, but do not
      * actually delete it.
      * 
* * bool validate_only = 2; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -727,14 +807,17 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_ ; + private boolean allowMissing_; /** + * + * *
      * If set to true, and the Recognizer is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ @java.lang.Override @@ -742,29 +825,35 @@ public boolean getAllowMissing() { return allowMissing_; } /** + * + * *
      * If set to true, and the Recognizer is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; + * * @param value The allowMissing to set. * @return This builder for chaining. */ public Builder setAllowMissing(boolean value) { - + allowMissing_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set to true, and the Recognizer is not found, the request will succeed
      * and  be a no-op (no Operation is recorded in this case).
      * 
* * bool allow_missing = 4; + * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -776,6 +865,8 @@ public Builder clearAllowMissing() { private java.lang.Object etag_ = ""; /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -783,13 +874,13 @@ public Builder clearAllowMissing() {
      * 
* * string etag = 3; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -798,6 +889,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -805,15 +898,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 3; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -821,6 +913,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -828,18 +922,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 3; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -847,6 +945,7 @@ public Builder setEtag(
      * 
* * string etag = 3; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -856,6 +955,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -863,21 +964,23 @@ public Builder clearEtag() {
      * 
* * string etag = 3; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000008; 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); } @@ -887,12 +990,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.DeleteRecognizerRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.DeleteRecognizerRequest) private static final com.google.cloud.speech.v2.DeleteRecognizerRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.DeleteRecognizerRequest(); } @@ -901,27 +1004,27 @@ public static com.google.cloud.speech.v2.DeleteRecognizerRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRecognizerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRecognizerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -936,6 +1039,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.DeleteRecognizerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java index 7c5e32245a21..929c1f8a9d5d 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/DeleteRecognizerRequestOrBuilder.java @@ -1,57 +1,90 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface DeleteRecognizerRequestOrBuilder extends +public interface DeleteRecognizerRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.DeleteRecognizerRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Recognizer to delete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * 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 Recognizer to delete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * 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(); /** + * + * *
    * If set, validate the request and preview the deleted Recognizer, but do not
    * actually delete it.
    * 
* * bool validate_only = 2; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * If set to true, and the Recognizer is not found, the request will succeed
    * and  be a no-op (no Operation is recorded in this case).
    * 
* * bool allow_missing = 4; + * * @return The allowMissing. */ boolean getAllowMissing(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -59,10 +92,13 @@ public interface DeleteRecognizerRequestOrBuilder extends
    * 
* * string etag = 3; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -70,8 +106,8 @@ public interface DeleteRecognizerRequestOrBuilder extends
    * 
* * string etag = 3; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java similarity index 68% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java index b154198f542b..c72aaef3f952 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfig.java @@ -1,63 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Explicitly specified decoding parameters.
  * 
* * Protobuf type {@code google.cloud.speech.v2.ExplicitDecodingConfig} */ -public final class ExplicitDecodingConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ExplicitDecodingConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ExplicitDecodingConfig) ExplicitDecodingConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExplicitDecodingConfig.newBuilder() to construct. private ExplicitDecodingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ExplicitDecodingConfig() { encoding_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExplicitDecodingConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.ExplicitDecodingConfig.class, com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder.class); + com.google.cloud.speech.v2.ExplicitDecodingConfig.class, + com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder.class); } /** + * + * *
    * Supported audio data encodings.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding} */ - public enum AudioEncoding - implements com.google.protobuf.ProtocolMessageEnum { + public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value. This value is unused.
      * 
@@ -66,6 +88,8 @@ public enum AudioEncoding */ AUDIO_ENCODING_UNSPECIFIED(0), /** + * + * *
      * Headerless 16-bit signed little-endian PCM samples.
      * 
@@ -74,6 +98,8 @@ public enum AudioEncoding */ LINEAR16(1), /** + * + * *
      * Headerless 8-bit companded mulaw samples.
      * 
@@ -82,6 +108,8 @@ public enum AudioEncoding */ MULAW(2), /** + * + * *
      * Headerless 8-bit companded alaw samples.
      * 
@@ -93,6 +121,8 @@ public enum AudioEncoding ; /** + * + * *
      * Default value. This value is unused.
      * 
@@ -101,6 +131,8 @@ public enum AudioEncoding */ public static final int AUDIO_ENCODING_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Headerless 16-bit signed little-endian PCM samples.
      * 
@@ -109,6 +141,8 @@ public enum AudioEncoding */ public static final int LINEAR16_VALUE = 1; /** + * + * *
      * Headerless 8-bit companded mulaw samples.
      * 
@@ -117,6 +151,8 @@ public enum AudioEncoding */ public static final int MULAW_VALUE = 2; /** + * + * *
      * Headerless 8-bit companded alaw samples.
      * 
@@ -125,7 +161,6 @@ public enum AudioEncoding */ public static final int ALAW_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -150,50 +185,53 @@ public static AudioEncoding valueOf(int value) { */ public static AudioEncoding forNumber(int value) { switch (value) { - case 0: return AUDIO_ENCODING_UNSPECIFIED; - case 1: return LINEAR16; - case 2: return MULAW; - case 3: return ALAW; - default: return null; + case 0: + return AUDIO_ENCODING_UNSPECIFIED; + case 1: + return LINEAR16; + case 2: + return MULAW; + case 3: + return ALAW; + 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.v2.ExplicitDecodingConfig.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.speech.v2.ExplicitDecodingConfig.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; @@ -213,32 +251,49 @@ private AudioEncoding(int value) { public static final int ENCODING_FIELD_NUMBER = 1; private int encoding_ = 0; /** + * + * *
    * Required. Encoding of the audio data sent for recognition.
    * 
* - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override public int getEncodingValue() { + @java.lang.Override + public int getEncodingValue() { return encoding_; } /** + * + * *
    * Required. Encoding of the audio data sent for recognition.
    * 
* - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The encoding. */ - @java.lang.Override public com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncoding() { - com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding result = com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.forNumber(encoding_); - return result == null ? com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncoding() { + com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding result = + com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.forNumber(encoding_); + return result == null + ? com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.UNRECOGNIZED + : result; } public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; private int sampleRateHertz_ = 0; /** + * + * *
    * Sample rate in Hertz of the audio data sent for recognition. Valid
    * values are: 8000-48000. 16000 is optimal. For best results, set the
@@ -251,6 +306,7 @@ private AudioEncoding(int value) {
    * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -261,6 +317,8 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 3; private int audioChannelCount_ = 0; /** + * + * *
    * Number of channels present in the audio data sent for recognition.
    * Supported for the following encodings:
@@ -270,6 +328,7 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 3; + * * @return The audioChannelCount. */ @java.lang.Override @@ -278,6 +337,7 @@ public int getAudioChannelCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -289,9 +349,11 @@ 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.v2.ExplicitDecodingConfig.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (encoding_ + != com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding + .AUDIO_ENCODING_UNSPECIFIED + .getNumber()) { output.writeEnum(1, encoding_); } if (sampleRateHertz_ != 0) { @@ -309,17 +371,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (encoding_ != com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.AUDIO_ENCODING_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, encoding_); + if (encoding_ + != com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding + .AUDIO_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 (audioChannelCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, audioChannelCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, audioChannelCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -329,18 +391,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.v2.ExplicitDecodingConfig)) { return super.equals(obj); } - com.google.cloud.speech.v2.ExplicitDecodingConfig other = (com.google.cloud.speech.v2.ExplicitDecodingConfig) obj; + com.google.cloud.speech.v2.ExplicitDecodingConfig other = + (com.google.cloud.speech.v2.ExplicitDecodingConfig) obj; if (encoding_ != other.encoding_) return false; - if (getSampleRateHertz() - != other.getSampleRateHertz()) return false; - if (getAudioChannelCount() - != other.getAudioChannelCount()) return false; + if (getSampleRateHertz() != other.getSampleRateHertz()) return false; + if (getAudioChannelCount() != other.getAudioChannelCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -364,129 +425,135 @@ public int hashCode() { } public static com.google.cloud.speech.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ExplicitDecodingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ExplicitDecodingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig 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.v2.ExplicitDecodingConfig 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; } /** + * + * *
    * Explicitly specified decoding parameters.
    * 
* * Protobuf type {@code google.cloud.speech.v2.ExplicitDecodingConfig} */ - 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.v2.ExplicitDecodingConfig) com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.ExplicitDecodingConfig.class, com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder.class); + com.google.cloud.speech.v2.ExplicitDecodingConfig.class, + com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder.class); } // Construct using com.google.cloud.speech.v2.ExplicitDecodingConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -498,9 +565,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; } @java.lang.Override @@ -519,8 +586,11 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig build() { @java.lang.Override public com.google.cloud.speech.v2.ExplicitDecodingConfig buildPartial() { - com.google.cloud.speech.v2.ExplicitDecodingConfig result = new com.google.cloud.speech.v2.ExplicitDecodingConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v2.ExplicitDecodingConfig result = + new com.google.cloud.speech.v2.ExplicitDecodingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -542,38 +612,39 @@ private void buildPartial0(com.google.cloud.speech.v2.ExplicitDecodingConfig res 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.v2.ExplicitDecodingConfig) { - return mergeFrom((com.google.cloud.speech.v2.ExplicitDecodingConfig)other); + return mergeFrom((com.google.cloud.speech.v2.ExplicitDecodingConfig) other); } else { super.mergeFrom(other); return this; @@ -581,7 +652,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.ExplicitDecodingConfig other) { - if (other == com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance()) + return this; if (other.encoding_ != 0) { setEncodingValue(other.getEncodingValue()); } @@ -617,27 +689,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - encoding_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - sampleRateHertz_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - audioChannelCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + encoding_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + sampleRateHertz_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + audioChannelCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -647,26 +723,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int encoding_ = 0; /** + * + * *
      * Required. Encoding of the audio data sent for recognition.
      * 
* - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override public int getEncodingValue() { + @java.lang.Override + public int getEncodingValue() { return encoding_; } /** + * + * *
      * Required. Encoding of the audio data sent for recognition.
      * 
* - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. */ @@ -677,28 +765,42 @@ public Builder setEncodingValue(int value) { return this; } /** + * + * *
      * Required. Encoding of the audio data sent for recognition.
      * 
* - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The encoding. */ @java.lang.Override public com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncoding() { - com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding result = com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.forNumber(encoding_); - return result == null ? com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.UNRECOGNIZED : result; + com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding result = + com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.forNumber(encoding_); + return result == null + ? com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding.UNRECOGNIZED + : result; } /** + * + * *
      * Required. Encoding of the audio data sent for recognition.
      * 
* - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The encoding to set. * @return This builder for chaining. */ - public Builder setEncoding(com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding value) { + public Builder setEncoding( + com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding value) { if (value == null) { throw new NullPointerException(); } @@ -708,11 +810,16 @@ public Builder setEncoding(com.google.cloud.speech.v2.ExplicitDecodingConfig.Aud return this; } /** + * + * *
      * Required. Encoding of the audio data sent for recognition.
      * 
* - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearEncoding() { @@ -722,8 +829,10 @@ public Builder clearEncoding() { return this; } - private int sampleRateHertz_ ; + private int sampleRateHertz_; /** + * + * *
      * Sample rate in Hertz of the audio data sent for recognition. Valid
      * values are: 8000-48000. 16000 is optimal. For best results, set the
@@ -736,6 +845,7 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -743,6 +853,8 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** + * + * *
      * Sample rate in Hertz of the audio data sent for recognition. Valid
      * values are: 8000-48000. 16000 is optimal. For best results, set the
@@ -755,17 +867,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Sample rate in Hertz of the audio data sent for recognition. Valid
      * values are: 8000-48000. 16000 is optimal. For best results, set the
@@ -778,6 +893,7 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; + * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { @@ -787,8 +903,10 @@ public Builder clearSampleRateHertz() { return this; } - private int audioChannelCount_ ; + private int audioChannelCount_; /** + * + * *
      * Number of channels present in the audio data sent for recognition.
      * Supported for the following encodings:
@@ -798,6 +916,7 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 3; + * * @return The audioChannelCount. */ @java.lang.Override @@ -805,6 +924,8 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** + * + * *
      * Number of channels present in the audio data sent for recognition.
      * Supported for the following encodings:
@@ -814,17 +935,20 @@ public int getAudioChannelCount() {
      * 
* * int32 audio_channel_count = 3; + * * @param value The audioChannelCount to set. * @return This builder for chaining. */ public Builder setAudioChannelCount(int value) { - + audioChannelCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Number of channels present in the audio data sent for recognition.
      * Supported for the following encodings:
@@ -834,6 +958,7 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 3; + * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { @@ -842,9 +967,9 @@ public Builder clearAudioChannelCount() { 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); } @@ -854,12 +979,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ExplicitDecodingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ExplicitDecodingConfig) private static final com.google.cloud.speech.v2.ExplicitDecodingConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ExplicitDecodingConfig(); } @@ -868,27 +993,27 @@ public static com.google.cloud.speech.v2.ExplicitDecodingConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExplicitDecodingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExplicitDecodingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -903,6 +1028,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ExplicitDecodingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java similarity index 64% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java index 153b9dad6346..6ccfdbb1b03f 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ExplicitDecodingConfigOrBuilder.java @@ -1,32 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ExplicitDecodingConfigOrBuilder extends +public interface ExplicitDecodingConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ExplicitDecodingConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Encoding of the audio data sent for recognition.
    * 
* - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); /** + * + * *
    * Required. Encoding of the audio data sent for recognition.
    * 
* - * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding encoding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The encoding. */ com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding getEncoding(); /** + * + * *
    * Sample rate in Hertz of the audio data sent for recognition. Valid
    * values are: 8000-48000. 16000 is optimal. For best results, set the
@@ -39,11 +67,14 @@ public interface ExplicitDecodingConfigOrBuilder extends
    * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ int getSampleRateHertz(); /** + * + * *
    * Number of channels present in the audio data sent for recognition.
    * Supported for the following encodings:
@@ -53,6 +84,7 @@ public interface ExplicitDecodingConfigOrBuilder extends
    * 
* * int32 audio_channel_count = 3; + * * @return The audioChannelCount. */ int getAudioChannelCount(); diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java similarity index 63% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java index ed962b92dac6..96ab9a86fc23 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [GetConfig][google.cloud.speech.v2.Speech.GetConfig] method.
@@ -11,55 +28,63 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.GetConfigRequest}
  */
-public final class GetConfigRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetConfigRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.GetConfigRequest)
     GetConfigRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetConfigRequest.newBuilder() to construct.
   private GetConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetConfigRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetConfigRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.GetConfigRequest.class, com.google.cloud.speech.v2.GetConfigRequest.Builder.class);
+            com.google.cloud.speech.v2.GetConfigRequest.class,
+            com.google.cloud.speech.v2.GetConfigRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the config to retrieve. There is exactly one config
    * resource per project per location. The expected format is
    * `projects/{project}/locations/{location}/config`.
    * 
* - * 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 @@ -68,31 +93,33 @@ 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 config to retrieve. There is exactly one config
    * resource per project per location. The expected format is
    * `projects/{project}/locations/{location}/config`.
    * 
* - * 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 { @@ -101,6 +128,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -112,8 +140,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_); } @@ -137,15 +164,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.v2.GetConfigRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.GetConfigRequest other = (com.google.cloud.speech.v2.GetConfigRequest) obj; + com.google.cloud.speech.v2.GetConfigRequest other = + (com.google.cloud.speech.v2.GetConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -164,97 +191,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.GetConfigRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.GetConfigRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.GetConfigRequest 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.v2.GetConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.GetConfigRequest 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.v2.GetConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.GetConfigRequest 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.v2.GetConfigRequest 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.v2.GetConfigRequest 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.v2.GetConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.GetConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.GetConfigRequest 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.v2.GetConfigRequest 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.v2.GetConfigRequest 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.v2.GetConfigRequest 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; } /** + * + * *
    * Request message for the
    * [GetConfig][google.cloud.speech.v2.Speech.GetConfig] method.
@@ -262,33 +296,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.GetConfigRequest}
    */
-  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.v2.GetConfigRequest)
       com.google.cloud.speech.v2.GetConfigRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.GetConfigRequest.class, com.google.cloud.speech.v2.GetConfigRequest.Builder.class);
+              com.google.cloud.speech.v2.GetConfigRequest.class,
+              com.google.cloud.speech.v2.GetConfigRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.GetConfigRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -298,9 +331,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor;
     }
 
     @java.lang.Override
@@ -319,8 +352,11 @@ public com.google.cloud.speech.v2.GetConfigRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.GetConfigRequest buildPartial() {
-      com.google.cloud.speech.v2.GetConfigRequest result = new com.google.cloud.speech.v2.GetConfigRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.GetConfigRequest result =
+          new com.google.cloud.speech.v2.GetConfigRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -336,38 +372,39 @@ private void buildPartial0(com.google.cloud.speech.v2.GetConfigRequest result) {
     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.v2.GetConfigRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.GetConfigRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.GetConfigRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -407,17 +444,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -427,24 +466,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the config to retrieve. There is exactly one config
      * resource per project per location. The expected format is
      * `projects/{project}/locations/{location}/config`.
      * 
* - * 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; @@ -453,22 +497,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the config to retrieve. There is exactly one config
      * resource per project per location. The expected format is
      * `projects/{project}/locations/{location}/config`.
      * 
* - * 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 { @@ -476,32 +523,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the config to retrieve. There is exactly one config
      * resource per project per location. The expected format is
      * `projects/{project}/locations/{location}/config`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the config to retrieve. There is exactly one config
      * resource per project per location. The expected format is
      * `projects/{project}/locations/{location}/config`.
      * 
* - * 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() { @@ -511,28 +569,34 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the config to retrieve. There is exactly one config
      * resource per project per location. The expected format is
      * `projects/{project}/locations/{location}/config`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -542,12 +606,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.GetConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.GetConfigRequest) private static final com.google.cloud.speech.v2.GetConfigRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.GetConfigRequest(); } @@ -556,27 +620,27 @@ public static com.google.cloud.speech.v2.GetConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -591,6 +655,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.GetConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequestOrBuilder.java new file mode 100644 index 000000000000..b69d7aefe5d0 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetConfigRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public interface GetConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the config to retrieve. There is exactly one config
+   * resource per project per location. The expected format is
+   * `projects/{project}/locations/{location}/config`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the config to retrieve. There is exactly one config
+   * resource per project per location. The expected format is
+   * `projects/{project}/locations/{location}/config`.
+   * 
+ * + * + * 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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java similarity index 63% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java index dff71e658be2..caea196f7c23 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [GetCustomClass][google.cloud.speech.v2.Speech.GetCustomClass] method.
@@ -11,54 +28,62 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.GetCustomClassRequest.class, com.google.cloud.speech.v2.GetCustomClassRequest.Builder.class);
+            com.google.cloud.speech.v2.GetCustomClassRequest.class,
+            com.google.cloud.speech.v2.GetCustomClassRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the CustomClass to retrieve. The expected format is
    * `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 @@ -67,30 +92,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 CustomClass to retrieve. The expected format is
    * `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 { @@ -99,6 +126,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +138,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_); } @@ -135,15 +162,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.v2.GetCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.GetCustomClassRequest other = (com.google.cloud.speech.v2.GetCustomClassRequest) obj; + com.google.cloud.speech.v2.GetCustomClassRequest other = + (com.google.cloud.speech.v2.GetCustomClassRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,97 +189,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.GetCustomClassRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.GetCustomClassRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.GetCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.GetCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.GetCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.GetCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.GetCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.GetCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [GetCustomClass][google.cloud.speech.v2.Speech.GetCustomClass] method.
@@ -260,33 +294,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.GetCustomClassRequest)
       com.google.cloud.speech.v2.GetCustomClassRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.GetCustomClassRequest.class, com.google.cloud.speech.v2.GetCustomClassRequest.Builder.class);
+              com.google.cloud.speech.v2.GetCustomClassRequest.class,
+              com.google.cloud.speech.v2.GetCustomClassRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.GetCustomClassRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -296,9 +329,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
@@ -317,8 +350,11 @@ public com.google.cloud.speech.v2.GetCustomClassRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.GetCustomClassRequest buildPartial() {
-      com.google.cloud.speech.v2.GetCustomClassRequest result = new com.google.cloud.speech.v2.GetCustomClassRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.GetCustomClassRequest result =
+          new com.google.cloud.speech.v2.GetCustomClassRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -334,38 +370,39 @@ private void buildPartial0(com.google.cloud.speech.v2.GetCustomClassRequest resu
     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.v2.GetCustomClassRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.GetCustomClassRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.GetCustomClassRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -373,7 +410,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.GetCustomClassRequest other) {
-      if (other == com.google.cloud.speech.v2.GetCustomClassRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.GetCustomClassRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -405,17 +443,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -425,23 +465,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the CustomClass to retrieve. The expected format is
      * `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; @@ -450,21 +495,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the CustomClass to retrieve. The expected format is
      * `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 { @@ -472,30 +520,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the CustomClass to retrieve. The expected format is
      * `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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the CustomClass to retrieve. The expected format is
      * `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() { @@ -505,27 +564,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the CustomClass to retrieve. The expected format is
      * `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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -535,12 +600,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.GetCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.GetCustomClassRequest) private static final com.google.cloud.speech.v2.GetCustomClassRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.GetCustomClassRequest(); } @@ -549,27 +614,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -584,6 +649,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.GetCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java new file mode 100644 index 000000000000..4988dd99a937 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public interface GetCustomClassRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetCustomClassRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the CustomClass to retrieve. The expected format is
+   * `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 CustomClass to retrieve. The expected format is
+   * `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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java similarity index 63% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java index 08a136073ad8..dc32063d3bfc 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [GetPhraseSet][google.cloud.speech.v2.Speech.GetPhraseSet] method.
@@ -11,54 +28,62 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.GetPhraseSetRequest.class, com.google.cloud.speech.v2.GetPhraseSetRequest.Builder.class);
+            com.google.cloud.speech.v2.GetPhraseSetRequest.class,
+            com.google.cloud.speech.v2.GetPhraseSetRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the PhraseSet to retrieve. The expected format is
    * `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 @@ -67,30 +92,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 PhraseSet to retrieve. The expected format is
    * `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 { @@ -99,6 +126,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +138,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_); } @@ -135,15 +162,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.v2.GetPhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.GetPhraseSetRequest other = (com.google.cloud.speech.v2.GetPhraseSetRequest) obj; + com.google.cloud.speech.v2.GetPhraseSetRequest other = + (com.google.cloud.speech.v2.GetPhraseSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,97 +189,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.GetPhraseSetRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.GetPhraseSetRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.GetPhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.GetPhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.GetPhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.GetPhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [GetPhraseSet][google.cloud.speech.v2.Speech.GetPhraseSet] method.
@@ -260,33 +294,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.GetPhraseSetRequest)
       com.google.cloud.speech.v2.GetPhraseSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.GetPhraseSetRequest.class, com.google.cloud.speech.v2.GetPhraseSetRequest.Builder.class);
+              com.google.cloud.speech.v2.GetPhraseSetRequest.class,
+              com.google.cloud.speech.v2.GetPhraseSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.GetPhraseSetRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -296,9 +329,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -317,8 +350,11 @@ public com.google.cloud.speech.v2.GetPhraseSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.GetPhraseSetRequest buildPartial() {
-      com.google.cloud.speech.v2.GetPhraseSetRequest result = new com.google.cloud.speech.v2.GetPhraseSetRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.GetPhraseSetRequest result =
+          new com.google.cloud.speech.v2.GetPhraseSetRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -334,38 +370,39 @@ private void buildPartial0(com.google.cloud.speech.v2.GetPhraseSetRequest result
     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.v2.GetPhraseSetRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.GetPhraseSetRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.GetPhraseSetRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -405,17 +442,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -425,23 +464,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the PhraseSet to retrieve. The expected format is
      * `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; @@ -450,21 +494,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the PhraseSet to retrieve. The expected format is
      * `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 { @@ -472,30 +519,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the PhraseSet to retrieve. The expected format is
      * `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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the PhraseSet to retrieve. The expected format is
      * `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() { @@ -505,27 +563,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the PhraseSet to retrieve. The expected format is
      * `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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -535,12 +599,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.GetPhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.GetPhraseSetRequest) private static final com.google.cloud.speech.v2.GetPhraseSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.GetPhraseSetRequest(); } @@ -549,27 +613,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -584,6 +648,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.GetPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java new file mode 100644 index 000000000000..d1e52870afb2 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.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/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public interface GetPhraseSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetPhraseSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the PhraseSet to retrieve. The expected format is
+   * `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 PhraseSet to retrieve. The expected format is
+   * `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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java similarity index 63% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java index fe8ce0b495e5..83b03053f25c 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [GetRecognizer][google.cloud.speech.v2.Speech.GetRecognizer] method.
@@ -11,54 +28,62 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.GetRecognizerRequest}
  */
-public final class GetRecognizerRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetRecognizerRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.GetRecognizerRequest)
     GetRecognizerRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetRecognizerRequest.newBuilder() to construct.
   private GetRecognizerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetRecognizerRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetRecognizerRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.GetRecognizerRequest.class, com.google.cloud.speech.v2.GetRecognizerRequest.Builder.class);
+            com.google.cloud.speech.v2.GetRecognizerRequest.class,
+            com.google.cloud.speech.v2.GetRecognizerRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the Recognizer to retrieve. The expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * 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 @@ -67,30 +92,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 Recognizer to retrieve. The expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * 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 { @@ -99,6 +126,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +138,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_); } @@ -135,15 +162,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.v2.GetRecognizerRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.GetRecognizerRequest other = (com.google.cloud.speech.v2.GetRecognizerRequest) obj; + com.google.cloud.speech.v2.GetRecognizerRequest other = + (com.google.cloud.speech.v2.GetRecognizerRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,97 +189,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.GetRecognizerRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.GetRecognizerRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.GetRecognizerRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest 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.v2.GetRecognizerRequest 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; } /** + * + * *
    * Request message for the
    * [GetRecognizer][google.cloud.speech.v2.Speech.GetRecognizer] method.
@@ -260,33 +294,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.GetRecognizerRequest}
    */
-  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.v2.GetRecognizerRequest)
       com.google.cloud.speech.v2.GetRecognizerRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.GetRecognizerRequest.class, com.google.cloud.speech.v2.GetRecognizerRequest.Builder.class);
+              com.google.cloud.speech.v2.GetRecognizerRequest.class,
+              com.google.cloud.speech.v2.GetRecognizerRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.GetRecognizerRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -296,9 +329,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
@@ -317,8 +350,11 @@ public com.google.cloud.speech.v2.GetRecognizerRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.GetRecognizerRequest buildPartial() {
-      com.google.cloud.speech.v2.GetRecognizerRequest result = new com.google.cloud.speech.v2.GetRecognizerRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.GetRecognizerRequest result =
+          new com.google.cloud.speech.v2.GetRecognizerRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -334,38 +370,39 @@ private void buildPartial0(com.google.cloud.speech.v2.GetRecognizerRequest resul
     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.v2.GetRecognizerRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.GetRecognizerRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.GetRecognizerRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -373,7 +410,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.GetRecognizerRequest other) {
-      if (other == com.google.cloud.speech.v2.GetRecognizerRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.GetRecognizerRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -405,17 +443,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -425,23 +465,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the Recognizer to retrieve. The expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * 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; @@ -450,21 +495,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Recognizer to retrieve. The expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * 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 { @@ -472,30 +520,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Recognizer to retrieve. The expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the Recognizer to retrieve. The expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * 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() { @@ -505,27 +564,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the Recognizer to retrieve. The expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -535,12 +600,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.GetRecognizerRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.GetRecognizerRequest) private static final com.google.cloud.speech.v2.GetRecognizerRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.GetRecognizerRequest(); } @@ -549,27 +614,27 @@ public static com.google.cloud.speech.v2.GetRecognizerRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRecognizerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRecognizerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -584,6 +649,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.GetRecognizerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java new file mode 100644 index 000000000000..0b709d73d3e5 --- /dev/null +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.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/v2/cloud_speech.proto + +package com.google.cloud.speech.v2; + +public interface GetRecognizerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetRecognizerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Recognizer to retrieve. The expected format is
+   * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Recognizer to retrieve. The expected format is
+   * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
+   * 
+ * + * + * 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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java similarity index 70% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java index 3745f8a25c27..d0147c4fff10 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
@@ -27,39 +45,46 @@ 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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListCustomClassesRequest.class, com.google.cloud.speech.v2.ListCustomClassesRequest.Builder.class);
+            com.google.cloud.speech.v2.ListCustomClassesRequest.class,
+            com.google.cloud.speech.v2.ListCustomClassesRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. The project and location of CustomClass resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * 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 @@ -68,30 +93,32 @@ 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 project and location of CustomClass resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * 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 { @@ -102,6 +129,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Number of results per requests. A valid page_size ranges from 0 to 20
    * inclusive. If the page_size is zero or unspecified, a page size of 5 will
@@ -110,6 +139,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -118,9 +148,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -131,6 +164,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -139,14 +173,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
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -157,16 +192,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 { @@ -177,11 +211,14 @@ public java.lang.String getPageToken() { public static final int SHOW_DELETED_FIELD_NUMBER = 4; private boolean showDeleted_ = false; /** + * + * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ @java.lang.Override @@ -190,6 +227,7 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,8 +239,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_); } @@ -228,15 +265,13 @@ 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_); } if (showDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, showDeleted_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, showDeleted_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -246,21 +281,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.v2.ListCustomClassesRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListCustomClassesRequest other = (com.google.cloud.speech.v2.ListCustomClassesRequest) obj; + com.google.cloud.speech.v2.ListCustomClassesRequest other = + (com.google.cloud.speech.v2.ListCustomClassesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getShowDeleted() - != other.getShowDeleted()) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getShowDeleted() != other.getShowDeleted()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -279,104 +311,110 @@ public int hashCode() { hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getShowDeleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v2.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.v2.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.v2.ListCustomClassesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.ListCustomClassesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.ListCustomClassesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListCustomClassesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.ListCustomClassesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListCustomClassesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.
@@ -384,33 +422,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.ListCustomClassesRequest)
       com.google.cloud.speech.v2.ListCustomClassesRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListCustomClassesRequest.class, com.google.cloud.speech.v2.ListCustomClassesRequest.Builder.class);
+              com.google.cloud.speech.v2.ListCustomClassesRequest.class,
+              com.google.cloud.speech.v2.ListCustomClassesRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListCustomClassesRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -423,9 +460,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor;
     }
 
     @java.lang.Override
@@ -444,8 +481,11 @@ public com.google.cloud.speech.v2.ListCustomClassesRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListCustomClassesRequest buildPartial() {
-      com.google.cloud.speech.v2.ListCustomClassesRequest result = new com.google.cloud.speech.v2.ListCustomClassesRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.ListCustomClassesRequest result =
+          new com.google.cloud.speech.v2.ListCustomClassesRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -470,38 +510,39 @@ private void buildPartial0(com.google.cloud.speech.v2.ListCustomClassesRequest r
     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.v2.ListCustomClassesRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.ListCustomClassesRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.ListCustomClassesRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -509,7 +550,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListCustomClassesRequest other) {
-      if (other == com.google.cloud.speech.v2.ListCustomClassesRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.ListCustomClassesRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -552,32 +594,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              pageSize_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              pageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              showDeleted_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                pageSize_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                showDeleted_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -587,23 +634,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The project and location of CustomClass resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * 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; @@ -612,21 +664,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location of CustomClass resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * 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 { @@ -634,30 +689,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location of CustomClass resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The project and location of CustomClass resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * 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() { @@ -667,18 +733,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The project and location of CustomClass resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -686,8 +758,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Number of results per requests. A valid page_size ranges from 0 to 20
      * inclusive. If the page_size is zero or unspecified, a page size of 5 will
@@ -696,6 +770,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -703,6 +778,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Number of results per requests. A valid page_size ranges from 0 to 20
      * inclusive. If the page_size is zero or unspecified, a page size of 5 will
@@ -711,17 +788,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Number of results per requests. A valid page_size ranges from 0 to 20
      * inclusive. If the page_size is zero or unspecified, a page size of 5 will
@@ -730,6 +810,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -741,6 +822,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous
      * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -751,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; @@ -766,6 +849,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous
      * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -776,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 { @@ -792,6 +876,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous
      * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -802,18 +888,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous
      * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -824,6 +914,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -833,6 +924,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous
      * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -843,12 +936,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -856,13 +951,16 @@ public Builder setPageTokenBytes( return this; } - private boolean showDeleted_ ; + private boolean showDeleted_; /** + * + * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ @java.lang.Override @@ -870,27 +968,33 @@ public boolean getShowDeleted() { return showDeleted_; } /** + * + * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; + * * @param value The showDeleted to set. * @return This builder for chaining. */ public Builder setShowDeleted(boolean value) { - + showDeleted_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; + * * @return This builder for chaining. */ public Builder clearShowDeleted() { @@ -899,9 +1003,9 @@ public Builder clearShowDeleted() { 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); } @@ -911,12 +1015,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListCustomClassesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListCustomClassesRequest) private static final com.google.cloud.speech.v2.ListCustomClassesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListCustomClassesRequest(); } @@ -925,27 +1029,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -960,6 +1064,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ListCustomClassesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java index 9a7d873f753a..86ead68f92f1 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListCustomClassesRequestOrBuilder extends +public interface ListCustomClassesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListCustomClassesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project and location of CustomClass resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * 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 project and location of CustomClass resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * 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(); /** + * + * *
    * Number of results per requests. A valid page_size ranges from 0 to 20
    * inclusive. If the page_size is zero or unspecified, a page size of 5 will
@@ -38,11 +65,14 @@ public interface ListCustomClassesRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -53,10 +83,13 @@ public interface ListCustomClassesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] call.
@@ -67,17 +100,20 @@ public interface ListCustomClassesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ boolean getShowDeleted(); diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java similarity index 72% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java index e71e0ce98404..fa3c1ad11026 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponse.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Response message for the
  * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
@@ -27,33 +45,37 @@ 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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListCustomClassesResponse.class, com.google.cloud.speech.v2.ListCustomClassesResponse.Builder.class);
+            com.google.cloud.speech.v2.ListCustomClassesResponse.class,
+            com.google.cloud.speech.v2.ListCustomClassesResponse.Builder.class);
   }
 
   public static final int CUSTOM_CLASSES_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List customClasses_;
   /**
+   *
+   *
    * 
    * The list of requested CustomClasses.
    * 
@@ -65,6 +87,8 @@ public java.util.List getCustomClassesLi return customClasses_; } /** + * + * *
    * The list of requested CustomClasses.
    * 
@@ -72,11 +96,13 @@ public java.util.List getCustomClassesLi * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCustomClassesOrBuilderList() { return customClasses_; } /** + * + * *
    * The list of requested CustomClasses.
    * 
@@ -88,6 +114,8 @@ public int getCustomClassesCount() { return customClasses_.size(); } /** + * + * *
    * The list of requested CustomClasses.
    * 
@@ -99,6 +127,8 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) { return customClasses_.get(index); } /** + * + * *
    * The list of requested CustomClasses.
    * 
@@ -106,15 +136,17 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) { * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ @java.lang.Override - public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder( - int index) { + public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index) { return customClasses_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -123,6 +155,7 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -131,14 +164,15 @@ 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][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -147,16 +181,15 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -165,6 +198,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +210,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)); } @@ -194,8 +227,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_); @@ -208,17 +240,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.v2.ListCustomClassesResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListCustomClassesResponse other = (com.google.cloud.speech.v2.ListCustomClassesResponse) obj; + com.google.cloud.speech.v2.ListCustomClassesResponse other = + (com.google.cloud.speech.v2.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -242,96 +273,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.ListCustomClassesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.ListCustomClassesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.ListCustomClassesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListCustomClassesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.ListCustomClassesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListCustomClassesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Response message for the
    * [ListCustomClasses][google.cloud.speech.v2.Speech.ListCustomClasses] method.
@@ -339,33 +377,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.ListCustomClassesResponse)
       com.google.cloud.speech.v2.ListCustomClassesResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListCustomClassesResponse.class, com.google.cloud.speech.v2.ListCustomClassesResponse.Builder.class);
+              com.google.cloud.speech.v2.ListCustomClassesResponse.class,
+              com.google.cloud.speech.v2.ListCustomClassesResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListCustomClassesResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -382,9 +419,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor;
     }
 
     @java.lang.Override
@@ -403,14 +440,18 @@ public com.google.cloud.speech.v2.ListCustomClassesResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListCustomClassesResponse buildPartial() {
-      com.google.cloud.speech.v2.ListCustomClassesResponse result = new com.google.cloud.speech.v2.ListCustomClassesResponse(this);
+      com.google.cloud.speech.v2.ListCustomClassesResponse result =
+          new com.google.cloud.speech.v2.ListCustomClassesResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.ListCustomClassesResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v2.ListCustomClassesResponse result) {
       if (customClassesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           customClasses_ = java.util.Collections.unmodifiableList(customClasses_);
@@ -433,38 +474,39 @@ private void buildPartial0(com.google.cloud.speech.v2.ListCustomClassesResponse
     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.v2.ListCustomClassesResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.ListCustomClassesResponse)other);
+        return mergeFrom((com.google.cloud.speech.v2.ListCustomClassesResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -472,7 +514,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListCustomClassesResponse other) {
-      if (other == com.google.cloud.speech.v2.ListCustomClassesResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.ListCustomClassesResponse.getDefaultInstance())
+        return this;
       if (customClassesBuilder_ == null) {
         if (!other.customClasses_.isEmpty()) {
           if (customClasses_.isEmpty()) {
@@ -491,9 +534,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_);
           }
@@ -530,30 +574,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.speech.v2.CustomClass m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.CustomClass.parser(),
-                      extensionRegistry);
-              if (customClassesBuilder_ == null) {
-                ensureCustomClassesIsMutable();
-                customClasses_.add(m);
-              } else {
-                customClassesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              nextPageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.speech.v2.CustomClass m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.CustomClass.parser(), extensionRegistry);
+                if (customClassesBuilder_ == null) {
+                  ensureCustomClassesIsMutable();
+                  customClasses_.add(m);
+                } else {
+                  customClassesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                nextPageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -563,21 +609,29 @@ public Builder mergeFrom(
       } // finally
       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.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> customClassesBuilder_;
+            com.google.cloud.speech.v2.CustomClass,
+            com.google.cloud.speech.v2.CustomClass.Builder,
+            com.google.cloud.speech.v2.CustomClassOrBuilder>
+        customClassesBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of requested CustomClasses.
      * 
@@ -592,6 +646,8 @@ public java.util.List getCustomClassesLi } } /** + * + * *
      * The list of requested CustomClasses.
      * 
@@ -606,6 +662,8 @@ public int getCustomClassesCount() { } } /** + * + * *
      * The list of requested CustomClasses.
      * 
@@ -620,14 +678,15 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) { } } /** + * + * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public Builder setCustomClasses( - int index, com.google.cloud.speech.v2.CustomClass value) { + public Builder setCustomClasses(int index, com.google.cloud.speech.v2.CustomClass value) { if (customClassesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,6 +700,8 @@ public Builder setCustomClasses( return this; } /** + * + * *
      * The list of requested CustomClasses.
      * 
@@ -659,6 +720,8 @@ public Builder setCustomClasses( return this; } /** + * + * *
      * The list of requested CustomClasses.
      * 
@@ -679,14 +742,15 @@ public Builder addCustomClasses(com.google.cloud.speech.v2.CustomClass value) { return this; } /** + * + * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public Builder addCustomClasses( - int index, com.google.cloud.speech.v2.CustomClass value) { + public Builder addCustomClasses(int index, com.google.cloud.speech.v2.CustomClass value) { if (customClassesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -700,6 +764,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The list of requested CustomClasses.
      * 
@@ -718,6 +784,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The list of requested CustomClasses.
      * 
@@ -736,6 +804,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The list of requested CustomClasses.
      * 
@@ -746,8 +816,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); @@ -755,6 +824,8 @@ public Builder addAllCustomClasses( return this; } /** + * + * *
      * The list of requested CustomClasses.
      * 
@@ -772,6 +843,8 @@ public Builder clearCustomClasses() { return this; } /** + * + * *
      * The list of requested CustomClasses.
      * 
@@ -789,39 +862,44 @@ public Builder removeCustomClasses(int index) { return this; } /** + * + * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassesBuilder( - int index) { + public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassesBuilder(int index) { return getCustomClassesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder( - int index) { + public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index) { if (customClassesBuilder_ == null) { - return customClasses_.get(index); } else { + return customClasses_.get(index); + } else { return customClassesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public java.util.List - getCustomClassesOrBuilderList() { + public java.util.List + getCustomClassesOrBuilderList() { if (customClassesBuilder_ != null) { return customClassesBuilder_.getMessageOrBuilderList(); } else { @@ -829,6 +907,8 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder } } /** + * + * *
      * The list of requested CustomClasses.
      * 
@@ -836,38 +916,47 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder() { - return getCustomClassesFieldBuilder().addBuilder( - com.google.cloud.speech.v2.CustomClass.getDefaultInstance()); + return getCustomClassesFieldBuilder() + .addBuilder(com.google.cloud.speech.v2.CustomClass.getDefaultInstance()); } /** + * + * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder( - int index) { - return getCustomClassesFieldBuilder().addBuilder( - index, com.google.cloud.speech.v2.CustomClass.getDefaultInstance()); + public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(int index) { + return getCustomClassesFieldBuilder() + .addBuilder(index, com.google.cloud.speech.v2.CustomClass.getDefaultInstance()); } /** + * + * *
      * The list of requested CustomClasses.
      * 
* * repeated .google.cloud.speech.v2.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.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> + com.google.cloud.speech.v2.CustomClass, + com.google.cloud.speech.v2.CustomClass.Builder, + com.google.cloud.speech.v2.CustomClassOrBuilder> getCustomClassesFieldBuilder() { if (customClassesBuilder_ == null) { - customClassesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder>( + customClassesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.CustomClass, + com.google.cloud.speech.v2.CustomClass.Builder, + com.google.cloud.speech.v2.CustomClassOrBuilder>( customClasses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -879,6 +968,8 @@ public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -887,13 +978,13 @@ public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(
      * 
* * 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; @@ -902,6 +993,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -910,15 +1003,14 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -926,6 +1018,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -934,18 +1028,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -954,6 +1052,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -963,6 +1062,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -971,21 +1072,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -995,12 +1098,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListCustomClassesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListCustomClassesResponse) private static final com.google.cloud.speech.v2.ListCustomClassesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListCustomClassesResponse(); } @@ -1009,27 +1112,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1044,6 +1147,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.ListCustomClassesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java index 125a49023494..0177a87b7564 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListCustomClassesResponseOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListCustomClassesResponseOrBuilder extends +public interface ListCustomClassesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListCustomClassesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of requested CustomClasses.
    * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - java.util.List - getCustomClassesList(); + java.util.List getCustomClassesList(); /** + * + * *
    * The list of requested CustomClasses.
    * 
@@ -25,6 +44,8 @@ public interface ListCustomClassesResponseOrBuilder extends */ com.google.cloud.speech.v2.CustomClass getCustomClasses(int index); /** + * + * *
    * The list of requested CustomClasses.
    * 
@@ -33,25 +54,30 @@ public interface ListCustomClassesResponseOrBuilder extends */ int getCustomClassesCount(); /** + * + * *
    * The list of requested CustomClasses.
    * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - java.util.List + java.util.List getCustomClassesOrBuilderList(); /** + * + * *
    * The list of requested CustomClasses.
    * 
* * repeated .google.cloud.speech.v2.CustomClass custom_classes = 1; */ - com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder( - int index); + com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index); /** + * + * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -60,10 +86,13 @@ com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListCustomClassesRequest.page_token] to
@@ -72,8 +101,8 @@ com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(
    * 
* * 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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java similarity index 70% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java index e683c6220027..067383e3f289 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.ListPhraseSetsRequest}
  */
-public final class ListPhraseSetsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListPhraseSetsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ListPhraseSetsRequest)
     ListPhraseSetsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListPhraseSetsRequest.newBuilder() to construct.
   private ListPhraseSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListPhraseSetsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -27,39 +45,46 @@ private ListPhraseSetsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListPhraseSetsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListPhraseSetsRequest.class, com.google.cloud.speech.v2.ListPhraseSetsRequest.Builder.class);
+            com.google.cloud.speech.v2.ListPhraseSetsRequest.class,
+            com.google.cloud.speech.v2.ListPhraseSetsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. The project and location of PhraseSet resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * 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 @@ -68,30 +93,32 @@ 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 project and location of PhraseSet resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * 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 { @@ -102,6 +129,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of PhraseSets to return. The service may return fewer
    * than this value. If unspecified, at most 20 PhraseSets will be returned.
@@ -109,6 +138,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -117,9 +147,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -130,6 +163,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -138,14 +172,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
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -156,16 +191,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 { @@ -176,11 +210,14 @@ public java.lang.String getPageToken() { public static final int SHOW_DELETED_FIELD_NUMBER = 4; private boolean showDeleted_ = false; /** + * + * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ @java.lang.Override @@ -189,6 +226,7 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +238,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_); } @@ -227,15 +264,13 @@ 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_); } if (showDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, showDeleted_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, showDeleted_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -245,21 +280,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.v2.ListPhraseSetsRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListPhraseSetsRequest other = (com.google.cloud.speech.v2.ListPhraseSetsRequest) obj; + com.google.cloud.speech.v2.ListPhraseSetsRequest other = + (com.google.cloud.speech.v2.ListPhraseSetsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getShowDeleted() - != other.getShowDeleted()) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getShowDeleted() != other.getShowDeleted()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -278,104 +310,110 @@ public int hashCode() { hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getShowDeleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v2.ListPhraseSetsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.ListPhraseSetsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListPhraseSetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListPhraseSetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest 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.v2.ListPhraseSetsRequest 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; } /** + * + * *
    * Request message for the
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.
@@ -383,33 +421,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.ListPhraseSetsRequest}
    */
-  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.v2.ListPhraseSetsRequest)
       com.google.cloud.speech.v2.ListPhraseSetsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListPhraseSetsRequest.class, com.google.cloud.speech.v2.ListPhraseSetsRequest.Builder.class);
+              com.google.cloud.speech.v2.ListPhraseSetsRequest.class,
+              com.google.cloud.speech.v2.ListPhraseSetsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListPhraseSetsRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -422,9 +459,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -443,8 +480,11 @@ public com.google.cloud.speech.v2.ListPhraseSetsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListPhraseSetsRequest buildPartial() {
-      com.google.cloud.speech.v2.ListPhraseSetsRequest result = new com.google.cloud.speech.v2.ListPhraseSetsRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.ListPhraseSetsRequest result =
+          new com.google.cloud.speech.v2.ListPhraseSetsRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -469,38 +509,39 @@ private void buildPartial0(com.google.cloud.speech.v2.ListPhraseSetsRequest resu
     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.v2.ListPhraseSetsRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.ListPhraseSetsRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.ListPhraseSetsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -508,7 +549,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListPhraseSetsRequest other) {
-      if (other == com.google.cloud.speech.v2.ListPhraseSetsRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.ListPhraseSetsRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -551,32 +593,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              pageSize_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              pageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              showDeleted_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                pageSize_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                showDeleted_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -586,23 +633,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The project and location of PhraseSet resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * 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; @@ -611,21 +663,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location of PhraseSet resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * 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 { @@ -633,30 +688,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location of PhraseSet resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The project and location of PhraseSet resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * 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() { @@ -666,18 +732,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The project and location of PhraseSet resources to list. The
      * expected format is `projects/{project}/locations/{location}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -685,8 +757,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of PhraseSets to return. The service may return fewer
      * than this value. If unspecified, at most 20 PhraseSets will be returned.
@@ -694,6 +768,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -701,6 +776,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of PhraseSets to return. The service may return fewer
      * than this value. If unspecified, at most 20 PhraseSets will be returned.
@@ -708,17 +785,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of PhraseSets to return. The service may return fewer
      * than this value. If unspecified, at most 20 PhraseSets will be returned.
@@ -726,6 +806,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -737,6 +818,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous
      * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -747,13 +830,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; @@ -762,6 +845,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous
      * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -772,15 +857,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 { @@ -788,6 +872,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous
      * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -798,18 +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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous
      * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -820,6 +910,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -829,6 +920,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous
      * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -839,12 +932,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -852,13 +947,16 @@ public Builder setPageTokenBytes( return this; } - private boolean showDeleted_ ; + private boolean showDeleted_; /** + * + * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ @java.lang.Override @@ -866,27 +964,33 @@ public boolean getShowDeleted() { return showDeleted_; } /** + * + * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; + * * @param value The showDeleted to set. * @return This builder for chaining. */ public Builder setShowDeleted(boolean value) { - + showDeleted_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; + * * @return This builder for chaining. */ public Builder clearShowDeleted() { @@ -895,9 +999,9 @@ public Builder clearShowDeleted() { 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); } @@ -907,12 +1011,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListPhraseSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListPhraseSetsRequest) private static final com.google.cloud.speech.v2.ListPhraseSetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListPhraseSetsRequest(); } @@ -921,27 +1025,27 @@ public static com.google.cloud.speech.v2.ListPhraseSetsRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -956,6 +1060,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ListPhraseSetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java index 0aae9ecfa7be..0d0d9c9ab953 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListPhraseSetsRequestOrBuilder extends +public interface ListPhraseSetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListPhraseSetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project and location of PhraseSet resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * 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 project and location of PhraseSet resources to list. The
    * expected format is `projects/{project}/locations/{location}`.
    * 
* - * 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 PhraseSets to return. The service may return fewer
    * than this value. If unspecified, at most 20 PhraseSets will be returned.
@@ -37,11 +64,14 @@ public interface ListPhraseSetsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -52,10 +82,13 @@ public interface ListPhraseSetsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] call.
@@ -66,17 +99,20 @@ public interface ListPhraseSetsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ boolean getShowDeleted(); diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java similarity index 72% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java index e216d41baa1c..b8ebfa5b3910 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponse.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Response message for the
  * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.ListPhraseSetsResponse}
  */
-public final class ListPhraseSetsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListPhraseSetsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ListPhraseSetsResponse)
     ListPhraseSetsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListPhraseSetsResponse.newBuilder() to construct.
   private ListPhraseSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListPhraseSetsResponse() {
     phraseSets_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -27,33 +45,37 @@ private ListPhraseSetsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListPhraseSetsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListPhraseSetsResponse.class, com.google.cloud.speech.v2.ListPhraseSetsResponse.Builder.class);
+            com.google.cloud.speech.v2.ListPhraseSetsResponse.class,
+            com.google.cloud.speech.v2.ListPhraseSetsResponse.Builder.class);
   }
 
   public static final int PHRASE_SETS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List phraseSets_;
   /**
+   *
+   *
    * 
    * The list of requested PhraseSets.
    * 
@@ -65,6 +87,8 @@ public java.util.List getPhraseSetsList() return phraseSets_; } /** + * + * *
    * The list of requested PhraseSets.
    * 
@@ -72,11 +96,13 @@ public java.util.List getPhraseSetsList() * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPhraseSetsOrBuilderList() { return phraseSets_; } /** + * + * *
    * The list of requested PhraseSets.
    * 
@@ -88,6 +114,8 @@ public int getPhraseSetsCount() { return phraseSets_.size(); } /** + * + * *
    * The list of requested PhraseSets.
    * 
@@ -99,6 +127,8 @@ public com.google.cloud.speech.v2.PhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** + * + * *
    * The list of requested PhraseSets.
    * 
@@ -106,15 +136,17 @@ public com.google.cloud.speech.v2.PhraseSet getPhraseSets(int index) { * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ @java.lang.Override - public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder( - int index) { + public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) { return phraseSets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -123,6 +155,7 @@ public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -131,14 +164,15 @@ 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][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -147,16 +181,15 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -165,6 +198,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +210,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)); } @@ -194,8 +227,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_); @@ -208,17 +240,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.v2.ListPhraseSetsResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListPhraseSetsResponse other = (com.google.cloud.speech.v2.ListPhraseSetsResponse) obj; + com.google.cloud.speech.v2.ListPhraseSetsResponse other = + (com.google.cloud.speech.v2.ListPhraseSetsResponse) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -242,96 +273,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListPhraseSetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListPhraseSetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse 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.v2.ListPhraseSetsResponse 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; } /** + * + * *
    * Response message for the
    * [ListPhraseSets][google.cloud.speech.v2.Speech.ListPhraseSets] method.
@@ -339,33 +377,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.ListPhraseSetsResponse}
    */
-  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.v2.ListPhraseSetsResponse)
       com.google.cloud.speech.v2.ListPhraseSetsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListPhraseSetsResponse.class, com.google.cloud.speech.v2.ListPhraseSetsResponse.Builder.class);
+              com.google.cloud.speech.v2.ListPhraseSetsResponse.class,
+              com.google.cloud.speech.v2.ListPhraseSetsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListPhraseSetsResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -382,9 +419,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -403,14 +440,18 @@ public com.google.cloud.speech.v2.ListPhraseSetsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListPhraseSetsResponse buildPartial() {
-      com.google.cloud.speech.v2.ListPhraseSetsResponse result = new com.google.cloud.speech.v2.ListPhraseSetsResponse(this);
+      com.google.cloud.speech.v2.ListPhraseSetsResponse result =
+          new com.google.cloud.speech.v2.ListPhraseSetsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.ListPhraseSetsResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v2.ListPhraseSetsResponse result) {
       if (phraseSetsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_);
@@ -433,38 +474,39 @@ private void buildPartial0(com.google.cloud.speech.v2.ListPhraseSetsResponse res
     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.v2.ListPhraseSetsResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.ListPhraseSetsResponse)other);
+        return mergeFrom((com.google.cloud.speech.v2.ListPhraseSetsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -472,7 +514,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListPhraseSetsResponse other) {
-      if (other == com.google.cloud.speech.v2.ListPhraseSetsResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.ListPhraseSetsResponse.getDefaultInstance())
+        return this;
       if (phraseSetsBuilder_ == null) {
         if (!other.phraseSets_.isEmpty()) {
           if (phraseSets_.isEmpty()) {
@@ -491,9 +534,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.ListPhraseSetsResponse 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_);
           }
@@ -530,30 +574,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.speech.v2.PhraseSet m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.PhraseSet.parser(),
-                      extensionRegistry);
-              if (phraseSetsBuilder_ == null) {
-                ensurePhraseSetsIsMutable();
-                phraseSets_.add(m);
-              } else {
-                phraseSetsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              nextPageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.speech.v2.PhraseSet m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.PhraseSet.parser(), extensionRegistry);
+                if (phraseSetsBuilder_ == null) {
+                  ensurePhraseSetsIsMutable();
+                  phraseSets_.add(m);
+                } else {
+                  phraseSetsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                nextPageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -563,21 +609,28 @@ public Builder mergeFrom(
       } // finally
       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.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> phraseSetsBuilder_;
+            com.google.cloud.speech.v2.PhraseSet,
+            com.google.cloud.speech.v2.PhraseSet.Builder,
+            com.google.cloud.speech.v2.PhraseSetOrBuilder>
+        phraseSetsBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of requested PhraseSets.
      * 
@@ -592,6 +645,8 @@ public java.util.List getPhraseSetsList() } } /** + * + * *
      * The list of requested PhraseSets.
      * 
@@ -606,6 +661,8 @@ public int getPhraseSetsCount() { } } /** + * + * *
      * The list of requested PhraseSets.
      * 
@@ -620,14 +677,15 @@ public com.google.cloud.speech.v2.PhraseSet getPhraseSets(int index) { } } /** + * + * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public Builder setPhraseSets( - int index, com.google.cloud.speech.v2.PhraseSet value) { + public Builder setPhraseSets(int index, com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,6 +699,8 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * The list of requested PhraseSets.
      * 
@@ -659,6 +719,8 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * The list of requested PhraseSets.
      * 
@@ -679,14 +741,15 @@ public Builder addPhraseSets(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** + * + * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public Builder addPhraseSets( - int index, com.google.cloud.speech.v2.PhraseSet value) { + public Builder addPhraseSets(int index, com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -700,14 +763,15 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public Builder addPhraseSets( - com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { + public Builder addPhraseSets(com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { if (phraseSetsBuilder_ == null) { ensurePhraseSetsIsMutable(); phraseSets_.add(builderForValue.build()); @@ -718,6 +782,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The list of requested PhraseSets.
      * 
@@ -736,6 +802,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The list of requested PhraseSets.
      * 
@@ -746,8 +814,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); @@ -755,6 +822,8 @@ public Builder addAllPhraseSets( return this; } /** + * + * *
      * The list of requested PhraseSets.
      * 
@@ -772,6 +841,8 @@ public Builder clearPhraseSets() { return this; } /** + * + * *
      * The list of requested PhraseSets.
      * 
@@ -789,39 +860,44 @@ public Builder removePhraseSets(int index) { return this; } /** + * + * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetsBuilder( - int index) { + public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetsBuilder(int index) { return getPhraseSetsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder( - int index) { + public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) { if (phraseSetsBuilder_ == null) { - return phraseSets_.get(index); } else { + return phraseSets_.get(index); + } else { return phraseSetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public java.util.List - getPhraseSetsOrBuilderList() { + public java.util.List + getPhraseSetsOrBuilderList() { if (phraseSetsBuilder_ != null) { return phraseSetsBuilder_.getMessageOrBuilderList(); } else { @@ -829,6 +905,8 @@ public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder( } } /** + * + * *
      * The list of requested PhraseSets.
      * 
@@ -836,42 +914,47 @@ public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder( * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ public com.google.cloud.speech.v2.PhraseSet.Builder addPhraseSetsBuilder() { - return getPhraseSetsFieldBuilder().addBuilder( - com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()); + return getPhraseSetsFieldBuilder() + .addBuilder(com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()); } /** + * + * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v2.PhraseSet.Builder addPhraseSetsBuilder( - int index) { - return getPhraseSetsFieldBuilder().addBuilder( - index, com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()); + public com.google.cloud.speech.v2.PhraseSet.Builder addPhraseSetsBuilder(int index) { + return getPhraseSetsFieldBuilder() + .addBuilder(index, com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()); } /** + * + * *
      * The list of requested PhraseSets.
      * 
* * repeated .google.cloud.speech.v2.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.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> + com.google.cloud.speech.v2.PhraseSet, + com.google.cloud.speech.v2.PhraseSet.Builder, + com.google.cloud.speech.v2.PhraseSetOrBuilder> getPhraseSetsFieldBuilder() { if (phraseSetsBuilder_ == null) { - phraseSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder>( - phraseSets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + phraseSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.PhraseSet, + com.google.cloud.speech.v2.PhraseSet.Builder, + com.google.cloud.speech.v2.PhraseSetOrBuilder>( + phraseSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); phraseSets_ = null; } return phraseSetsBuilder_; @@ -879,6 +962,8 @@ public com.google.cloud.speech.v2.PhraseSet.Builder addPhraseSetsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -887,13 +972,13 @@ public com.google.cloud.speech.v2.PhraseSet.Builder addPhraseSetsBuilder(
      * 
* * 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; @@ -902,6 +987,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -910,15 +997,14 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -926,6 +1012,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -934,18 +1022,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -954,6 +1046,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -963,6 +1056,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -971,21 +1066,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -995,12 +1092,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListPhraseSetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListPhraseSetsResponse) private static final com.google.cloud.speech.v2.ListPhraseSetsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListPhraseSetsResponse(); } @@ -1009,27 +1106,27 @@ public static com.google.cloud.speech.v2.ListPhraseSetsResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1044,6 +1141,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ListPhraseSetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java index aa3460bcc180..3d9cdca0eefa 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListPhraseSetsResponseOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListPhraseSetsResponseOrBuilder extends +public interface ListPhraseSetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListPhraseSetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of requested PhraseSets.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - java.util.List - getPhraseSetsList(); + java.util.List getPhraseSetsList(); /** + * + * *
    * The list of requested PhraseSets.
    * 
@@ -25,6 +44,8 @@ public interface ListPhraseSetsResponseOrBuilder extends */ com.google.cloud.speech.v2.PhraseSet getPhraseSets(int index); /** + * + * *
    * The list of requested PhraseSets.
    * 
@@ -33,25 +54,30 @@ public interface ListPhraseSetsResponseOrBuilder extends */ int getPhraseSetsCount(); /** + * + * *
    * The list of requested PhraseSets.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - java.util.List + java.util.List getPhraseSetsOrBuilderList(); /** + * + * *
    * The list of requested PhraseSets.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet phrase_sets = 1; */ - com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder( - int index); + com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index); /** + * + * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -60,10 +86,13 @@ com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListPhraseSetsRequest.page_token] to
@@ -72,8 +101,8 @@ com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    * 
* * 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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java similarity index 70% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java index ad4edac0cd6c..f5d19cdf4292 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.ListRecognizersRequest}
  */
-public final class ListRecognizersRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListRecognizersRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ListRecognizersRequest)
     ListRecognizersRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListRecognizersRequest.newBuilder() to construct.
   private ListRecognizersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListRecognizersRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -27,39 +45,46 @@ private ListRecognizersRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListRecognizersRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListRecognizersRequest.class, com.google.cloud.speech.v2.ListRecognizersRequest.Builder.class);
+            com.google.cloud.speech.v2.ListRecognizersRequest.class,
+            com.google.cloud.speech.v2.ListRecognizersRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. The project and location of Recognizers to list. The expected
    * format is `projects/{project}/locations/{location}`.
    * 
* - * 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 @@ -68,30 +93,32 @@ 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 project and location of Recognizers to list. The expected
    * format is `projects/{project}/locations/{location}`.
    * 
* - * 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 { @@ -102,6 +129,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of Recognizers to return. The service may return fewer
    * than this value. If unspecified, at most 20 Recognizers will be returned.
@@ -109,6 +138,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -117,9 +147,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -130,6 +163,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -138,14 +172,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
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -156,16 +191,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 { @@ -176,11 +210,14 @@ public java.lang.String getPageToken() { public static final int SHOW_DELETED_FIELD_NUMBER = 4; private boolean showDeleted_ = false; /** + * + * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ @java.lang.Override @@ -189,6 +226,7 @@ public boolean getShowDeleted() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +238,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_); } @@ -227,15 +264,13 @@ 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_); } if (showDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, showDeleted_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, showDeleted_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -245,21 +280,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.v2.ListRecognizersRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListRecognizersRequest other = (com.google.cloud.speech.v2.ListRecognizersRequest) obj; + com.google.cloud.speech.v2.ListRecognizersRequest other = + (com.google.cloud.speech.v2.ListRecognizersRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getShowDeleted() - != other.getShowDeleted()) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getShowDeleted() != other.getShowDeleted()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -278,104 +310,110 @@ public int hashCode() { hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getShowDeleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListRecognizersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListRecognizersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest 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.v2.ListRecognizersRequest 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; } /** + * + * *
    * Request message for the
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.
@@ -383,33 +421,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.ListRecognizersRequest}
    */
-  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.v2.ListRecognizersRequest)
       com.google.cloud.speech.v2.ListRecognizersRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListRecognizersRequest.class, com.google.cloud.speech.v2.ListRecognizersRequest.Builder.class);
+              com.google.cloud.speech.v2.ListRecognizersRequest.class,
+              com.google.cloud.speech.v2.ListRecognizersRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListRecognizersRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -422,9 +459,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor;
     }
 
     @java.lang.Override
@@ -443,8 +480,11 @@ public com.google.cloud.speech.v2.ListRecognizersRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListRecognizersRequest buildPartial() {
-      com.google.cloud.speech.v2.ListRecognizersRequest result = new com.google.cloud.speech.v2.ListRecognizersRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.ListRecognizersRequest result =
+          new com.google.cloud.speech.v2.ListRecognizersRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -469,38 +509,39 @@ private void buildPartial0(com.google.cloud.speech.v2.ListRecognizersRequest res
     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.v2.ListRecognizersRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.ListRecognizersRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.ListRecognizersRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -508,7 +549,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListRecognizersRequest other) {
-      if (other == com.google.cloud.speech.v2.ListRecognizersRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.ListRecognizersRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -551,32 +593,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              pageSize_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              pageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              showDeleted_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                pageSize_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                showDeleted_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -586,23 +633,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The project and location of Recognizers to list. The expected
      * format is `projects/{project}/locations/{location}`.
      * 
* - * 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; @@ -611,21 +663,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location of Recognizers to list. The expected
      * format is `projects/{project}/locations/{location}`.
      * 
* - * 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 { @@ -633,30 +688,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The project and location of Recognizers to list. The expected
      * format is `projects/{project}/locations/{location}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The project and location of Recognizers to list. The expected
      * format is `projects/{project}/locations/{location}`.
      * 
* - * 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() { @@ -666,18 +732,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The project and location of Recognizers to list. The expected
      * format is `projects/{project}/locations/{location}`.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -685,8 +757,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of Recognizers to return. The service may return fewer
      * than this value. If unspecified, at most 20 Recognizers will be returned.
@@ -694,6 +768,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -701,6 +776,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of Recognizers to return. The service may return fewer
      * than this value. If unspecified, at most 20 Recognizers will be returned.
@@ -708,17 +785,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of Recognizers to return. The service may return fewer
      * than this value. If unspecified, at most 20 Recognizers will be returned.
@@ -726,6 +806,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -737,6 +818,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous
      * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -747,13 +830,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; @@ -762,6 +845,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous
      * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -772,15 +857,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 { @@ -788,6 +872,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous
      * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -798,18 +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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous
      * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -820,6 +910,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -829,6 +920,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous
      * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -839,12 +932,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -852,13 +947,16 @@ public Builder setPageTokenBytes( return this; } - private boolean showDeleted_ ; + private boolean showDeleted_; /** + * + * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ @java.lang.Override @@ -866,27 +964,33 @@ public boolean getShowDeleted() { return showDeleted_; } /** + * + * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; + * * @param value The showDeleted to set. * @return This builder for chaining. */ public Builder setShowDeleted(boolean value) { - + showDeleted_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Whether, or not, to show resources that have been deleted.
      * 
* * bool show_deleted = 4; + * * @return This builder for chaining. */ public Builder clearShowDeleted() { @@ -895,9 +999,9 @@ public Builder clearShowDeleted() { 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); } @@ -907,12 +1011,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListRecognizersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListRecognizersRequest) private static final com.google.cloud.speech.v2.ListRecognizersRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListRecognizersRequest(); } @@ -921,27 +1025,27 @@ public static com.google.cloud.speech.v2.ListRecognizersRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRecognizersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRecognizersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -956,6 +1060,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ListRecognizersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java index c3e14de54055..96ffdcaa9487 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListRecognizersRequestOrBuilder extends +public interface ListRecognizersRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListRecognizersRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The project and location of Recognizers to list. The expected
    * format is `projects/{project}/locations/{location}`.
    * 
* - * 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 project and location of Recognizers to list. The expected
    * format is `projects/{project}/locations/{location}`.
    * 
* - * 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 Recognizers to return. The service may return fewer
    * than this value. If unspecified, at most 20 Recognizers will be returned.
@@ -37,11 +64,14 @@ public interface ListRecognizersRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -52,10 +82,13 @@ public interface ListRecognizersRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] call.
@@ -66,17 +99,20 @@ public interface ListRecognizersRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Whether, or not, to show resources that have been deleted.
    * 
* * bool show_deleted = 4; + * * @return The showDeleted. */ boolean getShowDeleted(); diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java similarity index 72% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java index 959437a7ea20..e9195797bb14 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponse.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Response message for the
  * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.ListRecognizersResponse}
  */
-public final class ListRecognizersResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListRecognizersResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.ListRecognizersResponse)
     ListRecognizersResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListRecognizersResponse.newBuilder() to construct.
   private ListRecognizersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListRecognizersResponse() {
     recognizers_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -27,33 +45,37 @@ private ListRecognizersResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListRecognizersResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.ListRecognizersResponse.class, com.google.cloud.speech.v2.ListRecognizersResponse.Builder.class);
+            com.google.cloud.speech.v2.ListRecognizersResponse.class,
+            com.google.cloud.speech.v2.ListRecognizersResponse.Builder.class);
   }
 
   public static final int RECOGNIZERS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List recognizers_;
   /**
+   *
+   *
    * 
    * The list of requested Recognizers.
    * 
@@ -65,6 +87,8 @@ public java.util.List getRecognizersList( return recognizers_; } /** + * + * *
    * The list of requested Recognizers.
    * 
@@ -72,11 +96,13 @@ public java.util.List getRecognizersList( * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRecognizersOrBuilderList() { return recognizers_; } /** + * + * *
    * The list of requested Recognizers.
    * 
@@ -88,6 +114,8 @@ public int getRecognizersCount() { return recognizers_.size(); } /** + * + * *
    * The list of requested Recognizers.
    * 
@@ -99,6 +127,8 @@ public com.google.cloud.speech.v2.Recognizer getRecognizers(int index) { return recognizers_.get(index); } /** + * + * *
    * The list of requested Recognizers.
    * 
@@ -106,15 +136,17 @@ public com.google.cloud.speech.v2.Recognizer getRecognizers(int index) { * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ @java.lang.Override - public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder( - int index) { + public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(int index) { return recognizers_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -123,6 +155,7 @@ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -131,14 +164,15 @@ 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][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -147,16 +181,15 @@ public java.lang.String getNextPageToken() {
    * 
* * 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 { @@ -165,6 +198,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +210,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 < recognizers_.size(); i++) { output.writeMessage(1, recognizers_.get(i)); } @@ -194,8 +227,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < recognizers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, recognizers_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, recognizers_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -208,17 +240,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.v2.ListRecognizersResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.ListRecognizersResponse other = (com.google.cloud.speech.v2.ListRecognizersResponse) obj; + com.google.cloud.speech.v2.ListRecognizersResponse other = + (com.google.cloud.speech.v2.ListRecognizersResponse) obj; - if (!getRecognizersList() - .equals(other.getRecognizersList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getRecognizersList().equals(other.getRecognizersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -242,96 +273,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListRecognizersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.ListRecognizersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse 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.v2.ListRecognizersResponse 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; } /** + * + * *
    * Response message for the
    * [ListRecognizers][google.cloud.speech.v2.Speech.ListRecognizers] method.
@@ -339,33 +377,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.ListRecognizersResponse}
    */
-  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.v2.ListRecognizersResponse)
       com.google.cloud.speech.v2.ListRecognizersResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.ListRecognizersResponse.class, com.google.cloud.speech.v2.ListRecognizersResponse.Builder.class);
+              com.google.cloud.speech.v2.ListRecognizersResponse.class,
+              com.google.cloud.speech.v2.ListRecognizersResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.ListRecognizersResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -382,9 +419,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor;
     }
 
     @java.lang.Override
@@ -403,14 +440,18 @@ public com.google.cloud.speech.v2.ListRecognizersResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.ListRecognizersResponse buildPartial() {
-      com.google.cloud.speech.v2.ListRecognizersResponse result = new com.google.cloud.speech.v2.ListRecognizersResponse(this);
+      com.google.cloud.speech.v2.ListRecognizersResponse result =
+          new com.google.cloud.speech.v2.ListRecognizersResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.ListRecognizersResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v2.ListRecognizersResponse result) {
       if (recognizersBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           recognizers_ = java.util.Collections.unmodifiableList(recognizers_);
@@ -433,38 +474,39 @@ private void buildPartial0(com.google.cloud.speech.v2.ListRecognizersResponse re
     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.v2.ListRecognizersResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.ListRecognizersResponse)other);
+        return mergeFrom((com.google.cloud.speech.v2.ListRecognizersResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -472,7 +514,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.ListRecognizersResponse other) {
-      if (other == com.google.cloud.speech.v2.ListRecognizersResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.ListRecognizersResponse.getDefaultInstance())
+        return this;
       if (recognizersBuilder_ == null) {
         if (!other.recognizers_.isEmpty()) {
           if (recognizers_.isEmpty()) {
@@ -491,9 +534,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.ListRecognizersResponse othe
             recognizersBuilder_ = null;
             recognizers_ = other.recognizers_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            recognizersBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getRecognizersFieldBuilder() : null;
+            recognizersBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getRecognizersFieldBuilder()
+                    : null;
           } else {
             recognizersBuilder_.addAllMessages(other.recognizers_);
           }
@@ -530,30 +574,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.speech.v2.Recognizer m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.Recognizer.parser(),
-                      extensionRegistry);
-              if (recognizersBuilder_ == null) {
-                ensureRecognizersIsMutable();
-                recognizers_.add(m);
-              } else {
-                recognizersBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              nextPageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.speech.v2.Recognizer m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.Recognizer.parser(), extensionRegistry);
+                if (recognizersBuilder_ == null) {
+                  ensureRecognizersIsMutable();
+                  recognizers_.add(m);
+                } else {
+                  recognizersBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                nextPageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -563,21 +609,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List recognizers_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureRecognizersIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         recognizers_ = new java.util.ArrayList(recognizers_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> recognizersBuilder_;
+            com.google.cloud.speech.v2.Recognizer,
+            com.google.cloud.speech.v2.Recognizer.Builder,
+            com.google.cloud.speech.v2.RecognizerOrBuilder>
+        recognizersBuilder_;
 
     /**
+     *
+     *
      * 
      * The list of requested Recognizers.
      * 
@@ -592,6 +645,8 @@ public java.util.List getRecognizersList( } } /** + * + * *
      * The list of requested Recognizers.
      * 
@@ -606,6 +661,8 @@ public int getRecognizersCount() { } } /** + * + * *
      * The list of requested Recognizers.
      * 
@@ -620,14 +677,15 @@ public com.google.cloud.speech.v2.Recognizer getRecognizers(int index) { } } /** + * + * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public Builder setRecognizers( - int index, com.google.cloud.speech.v2.Recognizer value) { + public Builder setRecognizers(int index, com.google.cloud.speech.v2.Recognizer value) { if (recognizersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,6 +699,8 @@ public Builder setRecognizers( return this; } /** + * + * *
      * The list of requested Recognizers.
      * 
@@ -659,6 +719,8 @@ public Builder setRecognizers( return this; } /** + * + * *
      * The list of requested Recognizers.
      * 
@@ -679,14 +741,15 @@ public Builder addRecognizers(com.google.cloud.speech.v2.Recognizer value) { return this; } /** + * + * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public Builder addRecognizers( - int index, com.google.cloud.speech.v2.Recognizer value) { + public Builder addRecognizers(int index, com.google.cloud.speech.v2.Recognizer value) { if (recognizersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -700,14 +763,15 @@ public Builder addRecognizers( return this; } /** + * + * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public Builder addRecognizers( - com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { + public Builder addRecognizers(com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { if (recognizersBuilder_ == null) { ensureRecognizersIsMutable(); recognizers_.add(builderForValue.build()); @@ -718,6 +782,8 @@ public Builder addRecognizers( return this; } /** + * + * *
      * The list of requested Recognizers.
      * 
@@ -736,6 +802,8 @@ public Builder addRecognizers( return this; } /** + * + * *
      * The list of requested Recognizers.
      * 
@@ -746,8 +814,7 @@ public Builder addAllRecognizers( java.lang.Iterable values) { if (recognizersBuilder_ == null) { ensureRecognizersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, recognizers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recognizers_); onChanged(); } else { recognizersBuilder_.addAllMessages(values); @@ -755,6 +822,8 @@ public Builder addAllRecognizers( return this; } /** + * + * *
      * The list of requested Recognizers.
      * 
@@ -772,6 +841,8 @@ public Builder clearRecognizers() { return this; } /** + * + * *
      * The list of requested Recognizers.
      * 
@@ -789,39 +860,44 @@ public Builder removeRecognizers(int index) { return this; } /** + * + * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public com.google.cloud.speech.v2.Recognizer.Builder getRecognizersBuilder( - int index) { + public com.google.cloud.speech.v2.Recognizer.Builder getRecognizersBuilder(int index) { return getRecognizersFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder( - int index) { + public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(int index) { if (recognizersBuilder_ == null) { - return recognizers_.get(index); } else { + return recognizers_.get(index); + } else { return recognizersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public java.util.List - getRecognizersOrBuilderList() { + public java.util.List + getRecognizersOrBuilderList() { if (recognizersBuilder_ != null) { return recognizersBuilder_.getMessageOrBuilderList(); } else { @@ -829,6 +905,8 @@ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder( } } /** + * + * *
      * The list of requested Recognizers.
      * 
@@ -836,42 +914,48 @@ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder( * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ public com.google.cloud.speech.v2.Recognizer.Builder addRecognizersBuilder() { - return getRecognizersFieldBuilder().addBuilder( - com.google.cloud.speech.v2.Recognizer.getDefaultInstance()); + return getRecognizersFieldBuilder() + .addBuilder(com.google.cloud.speech.v2.Recognizer.getDefaultInstance()); } /** + * + * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public com.google.cloud.speech.v2.Recognizer.Builder addRecognizersBuilder( - int index) { - return getRecognizersFieldBuilder().addBuilder( - index, com.google.cloud.speech.v2.Recognizer.getDefaultInstance()); + public com.google.cloud.speech.v2.Recognizer.Builder addRecognizersBuilder(int index) { + return getRecognizersFieldBuilder() + .addBuilder(index, com.google.cloud.speech.v2.Recognizer.getDefaultInstance()); } /** + * + * *
      * The list of requested Recognizers.
      * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - public java.util.List - getRecognizersBuilderList() { + public java.util.List + getRecognizersBuilderList() { return getRecognizersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> + com.google.cloud.speech.v2.Recognizer, + com.google.cloud.speech.v2.Recognizer.Builder, + com.google.cloud.speech.v2.RecognizerOrBuilder> getRecognizersFieldBuilder() { if (recognizersBuilder_ == null) { - recognizersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder>( - recognizers_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + recognizersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.Recognizer, + com.google.cloud.speech.v2.Recognizer.Builder, + com.google.cloud.speech.v2.RecognizerOrBuilder>( + recognizers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); recognizers_ = null; } return recognizersBuilder_; @@ -879,6 +963,8 @@ public com.google.cloud.speech.v2.Recognizer.Builder addRecognizersBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -887,13 +973,13 @@ public com.google.cloud.speech.v2.Recognizer.Builder addRecognizersBuilder(
      * 
* * 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; @@ -902,6 +988,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -910,15 +998,14 @@ public java.lang.String getNextPageToken() {
      * 
* * 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 { @@ -926,6 +1013,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -934,18 +1023,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -954,6 +1047,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -963,6 +1057,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as
      * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -971,21 +1067,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -995,12 +1093,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.ListRecognizersResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.ListRecognizersResponse) private static final com.google.cloud.speech.v2.ListRecognizersResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.ListRecognizersResponse(); } @@ -1009,27 +1107,27 @@ public static com.google.cloud.speech.v2.ListRecognizersResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRecognizersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRecognizersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1044,6 +1142,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.ListRecognizersResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java index d50723b13868..a1760558e343 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/ListRecognizersResponseOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface ListRecognizersResponseOrBuilder extends +public interface ListRecognizersResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.ListRecognizersResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of requested Recognizers.
    * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - java.util.List - getRecognizersList(); + java.util.List getRecognizersList(); /** + * + * *
    * The list of requested Recognizers.
    * 
@@ -25,6 +44,8 @@ public interface ListRecognizersResponseOrBuilder extends */ com.google.cloud.speech.v2.Recognizer getRecognizers(int index); /** + * + * *
    * The list of requested Recognizers.
    * 
@@ -33,25 +54,30 @@ public interface ListRecognizersResponseOrBuilder extends */ int getRecognizersCount(); /** + * + * *
    * The list of requested Recognizers.
    * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - java.util.List + java.util.List getRecognizersOrBuilderList(); /** + * + * *
    * The list of requested Recognizers.
    * 
* * repeated .google.cloud.speech.v2.Recognizer recognizers = 1; */ - com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder( - int index); + com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(int index); /** + * + * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -60,10 +86,13 @@ com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as
    * [page_token][google.cloud.speech.v2.ListRecognizersRequest.page_token] to
@@ -72,8 +101,8 @@ com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizersOrBuilder(
    * 
* * 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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java similarity index 100% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/LocationName.java diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java similarity index 72% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java index 423fd08b48cf..e6b4a2d3a67f 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadata.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Represents the metadata of a long-running operation.
  * 
* * Protobuf type {@code google.cloud.speech.v2.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { resource_ = ""; method_ = ""; @@ -28,33 +46,36 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.OperationMetadata.class, com.google.cloud.speech.v2.OperationMetadata.Builder.class); + com.google.cloud.speech.v2.OperationMetadata.class, + com.google.cloud.speech.v2.OperationMetadata.Builder.class); } private int requestCase_ = 0; private java.lang.Object request_; + public enum RequestCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BATCH_RECOGNIZE_REQUEST(8), CREATE_RECOGNIZER_REQUEST(9), @@ -72,6 +93,7 @@ public enum RequestCase UPDATE_CONFIG_REQUEST(21), REQUEST_NOT_SET(0); private final int value; + private RequestCase(int value) { this.value = value; } @@ -87,43 +109,61 @@ public static RequestCase valueOf(int value) { public static RequestCase forNumber(int value) { switch (value) { - case 8: return BATCH_RECOGNIZE_REQUEST; - case 9: return CREATE_RECOGNIZER_REQUEST; - case 10: return UPDATE_RECOGNIZER_REQUEST; - case 11: return DELETE_RECOGNIZER_REQUEST; - case 12: return UNDELETE_RECOGNIZER_REQUEST; - case 13: return CREATE_CUSTOM_CLASS_REQUEST; - case 14: return UPDATE_CUSTOM_CLASS_REQUEST; - case 15: return DELETE_CUSTOM_CLASS_REQUEST; - case 16: return UNDELETE_CUSTOM_CLASS_REQUEST; - case 17: return CREATE_PHRASE_SET_REQUEST; - case 18: return UPDATE_PHRASE_SET_REQUEST; - case 19: return DELETE_PHRASE_SET_REQUEST; - case 20: return UNDELETE_PHRASE_SET_REQUEST; - case 21: return UPDATE_CONFIG_REQUEST; - case 0: return REQUEST_NOT_SET; - default: return null; + case 8: + return BATCH_RECOGNIZE_REQUEST; + case 9: + return CREATE_RECOGNIZER_REQUEST; + case 10: + return UPDATE_RECOGNIZER_REQUEST; + case 11: + return DELETE_RECOGNIZER_REQUEST; + case 12: + return UNDELETE_RECOGNIZER_REQUEST; + case 13: + return CREATE_CUSTOM_CLASS_REQUEST; + case 14: + return UPDATE_CUSTOM_CLASS_REQUEST; + case 15: + return DELETE_CUSTOM_CLASS_REQUEST; + case 16: + return UNDELETE_CUSTOM_CLASS_REQUEST; + case 17: + return CREATE_PHRASE_SET_REQUEST; + case 18: + return UPDATE_PHRASE_SET_REQUEST; + case 19: + return DELETE_PHRASE_SET_REQUEST; + case 20: + return UNDELETE_PHRASE_SET_REQUEST; + case 21: + return UPDATE_CONFIG_REQUEST; + case 0: + return REQUEST_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public RequestCase - getRequestCase() { - return RequestCase.forNumber( - requestCase_); + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); } private int metadataCase_ = 0; private java.lang.Object metadata_; + public enum MetadataCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BATCH_RECOGNIZE_METADATA(23), METADATA_NOT_SET(0); private final int value; + private MetadataCase(int value) { this.value = value; } @@ -139,30 +179,35 @@ public static MetadataCase valueOf(int value) { public static MetadataCase forNumber(int value) { switch (value) { - case 23: return BATCH_RECOGNIZE_METADATA; - case 0: return METADATA_NOT_SET; - default: return null; + case 23: + return BATCH_RECOGNIZE_METADATA; + case 0: + return METADATA_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public MetadataCase - getMetadataCase() { - return MetadataCase.forNumber( - metadataCase_); + public MetadataCase getMetadataCase() { + return MetadataCase.forNumber(metadataCase_); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -170,11 +215,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ @java.lang.Override @@ -182,6 +230,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time the operation was created.
    * 
@@ -196,11 +246,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The time the operation was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 2; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -208,11 +261,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * The time the operation was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 2; + * * @return The updateTime. */ @java.lang.Override @@ -220,6 +276,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The time the operation was last updated.
    * 
@@ -232,14 +290,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int RESOURCE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object resource_ = ""; /** + * + * *
    * The resource path for the target of the operation.
    * 
* * string resource = 3; + * * @return The resource. */ @java.lang.Override @@ -248,29 +310,29 @@ public java.lang.String getResource() { 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(); resource_ = s; return s; } } /** + * + * *
    * The resource path for the target of the operation.
    * 
* * string resource = 3; + * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; 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); resource_ = b; return b; } else { @@ -279,14 +341,18 @@ public java.lang.String getResource() { } public static final int METHOD_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object method_ = ""; /** + * + * *
    * The method that triggered the operation.
    * 
* * string method = 4; + * * @return The method. */ @java.lang.Override @@ -295,29 +361,29 @@ public java.lang.String getMethod() { 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(); method_ = s; return s; } } /** + * + * *
    * The method that triggered the operation.
    * 
* * string method = 4; + * * @return The bytes for method. */ @java.lang.Override - public com.google.protobuf.ByteString - getMethodBytes() { + public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; 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); method_ = b; return b; } else { @@ -326,9 +392,12 @@ public java.lang.String getMethod() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** + * + * *
    * The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -337,6 +406,7 @@ public java.lang.String getMethod() {
    * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } + * * @return The kmsKeyName. */ @java.lang.Override @@ -345,14 +415,15 @@ public java.lang.String getKmsKeyName() { 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(); kmsKeyName_ = s; return s; } } /** + * + * *
    * The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -361,16 +432,15 @@ public java.lang.String getKmsKeyName() {
    * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -379,9 +449,12 @@ public java.lang.String getKmsKeyName() { } public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyVersionName_ = ""; /** + * + * *
    * The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -390,6 +463,7 @@ public java.lang.String getKmsKeyName() {
    * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } + * * @return The kmsKeyVersionName. */ @java.lang.Override @@ -398,14 +472,15 @@ public java.lang.String getKmsKeyVersionName() { 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(); kmsKeyVersionName_ = s; return s; } } /** + * + * *
    * The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -414,16 +489,15 @@ public java.lang.String getKmsKeyVersionName() {
    * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } + * * @return The bytes for kmsKeyVersionName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -433,11 +507,14 @@ public java.lang.String getKmsKeyVersionName() { public static final int BATCH_RECOGNIZE_REQUEST_FIELD_NUMBER = 8; /** + * + * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; + * * @return Whether the batchRecognizeRequest field is set. */ @java.lang.Override @@ -445,21 +522,26 @@ public boolean hasBatchRecognizeRequest() { return requestCase_ == 8; } /** + * + * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; + * * @return The batchRecognizeRequest. */ @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeRequest getBatchRecognizeRequest() { if (requestCase_ == 8) { - return (com.google.cloud.speech.v2.BatchRecognizeRequest) request_; + return (com.google.cloud.speech.v2.BatchRecognizeRequest) request_; } return com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance(); } /** + * + * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
@@ -467,20 +549,24 @@ public com.google.cloud.speech.v2.BatchRecognizeRequest getBatchRecognizeRequest * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder getBatchRecognizeRequestOrBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder + getBatchRecognizeRequestOrBuilder() { if (requestCase_ == 8) { - return (com.google.cloud.speech.v2.BatchRecognizeRequest) request_; + return (com.google.cloud.speech.v2.BatchRecognizeRequest) request_; } return com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance(); } public static final int CREATE_RECOGNIZER_REQUEST_FIELD_NUMBER = 9; /** + * + * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; + * * @return Whether the createRecognizerRequest field is set. */ @java.lang.Override @@ -488,21 +574,26 @@ public boolean hasCreateRecognizerRequest() { return requestCase_ == 9; } /** + * + * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; + * * @return The createRecognizerRequest. */ @java.lang.Override public com.google.cloud.speech.v2.CreateRecognizerRequest getCreateRecognizerRequest() { if (requestCase_ == 9) { - return (com.google.cloud.speech.v2.CreateRecognizerRequest) request_; + return (com.google.cloud.speech.v2.CreateRecognizerRequest) request_; } return com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance(); } /** + * + * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
@@ -510,20 +601,24 @@ public com.google.cloud.speech.v2.CreateRecognizerRequest getCreateRecognizerReq * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ @java.lang.Override - public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder getCreateRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder + getCreateRecognizerRequestOrBuilder() { if (requestCase_ == 9) { - return (com.google.cloud.speech.v2.CreateRecognizerRequest) request_; + return (com.google.cloud.speech.v2.CreateRecognizerRequest) request_; } return com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance(); } public static final int UPDATE_RECOGNIZER_REQUEST_FIELD_NUMBER = 10; /** + * + * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; + * * @return Whether the updateRecognizerRequest field is set. */ @java.lang.Override @@ -531,21 +626,26 @@ public boolean hasUpdateRecognizerRequest() { return requestCase_ == 10; } /** + * + * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; + * * @return The updateRecognizerRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UpdateRecognizerRequest getUpdateRecognizerRequest() { if (requestCase_ == 10) { - return (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_; + return (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_; } return com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance(); } /** + * + * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
@@ -553,20 +653,24 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequest getUpdateRecognizerReq * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder getUpdateRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder + getUpdateRecognizerRequestOrBuilder() { if (requestCase_ == 10) { - return (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_; + return (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_; } return com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance(); } public static final int DELETE_RECOGNIZER_REQUEST_FIELD_NUMBER = 11; /** + * + * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; + * * @return Whether the deleteRecognizerRequest field is set. */ @java.lang.Override @@ -574,21 +678,26 @@ public boolean hasDeleteRecognizerRequest() { return requestCase_ == 11; } /** + * + * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; + * * @return The deleteRecognizerRequest. */ @java.lang.Override public com.google.cloud.speech.v2.DeleteRecognizerRequest getDeleteRecognizerRequest() { if (requestCase_ == 11) { - return (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_; + return (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_; } return com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance(); } /** + * + * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
@@ -596,20 +705,25 @@ public com.google.cloud.speech.v2.DeleteRecognizerRequest getDeleteRecognizerReq * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ @java.lang.Override - public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder getDeleteRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder + getDeleteRecognizerRequestOrBuilder() { if (requestCase_ == 11) { - return (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_; + return (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_; } return com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance(); } public static final int UNDELETE_RECOGNIZER_REQUEST_FIELD_NUMBER = 12; /** + * + * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * + * * @return Whether the undeleteRecognizerRequest field is set. */ @java.lang.Override @@ -617,42 +731,53 @@ public boolean hasUndeleteRecognizerRequest() { return requestCase_ == 12; } /** + * + * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * + * * @return The undeleteRecognizerRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UndeleteRecognizerRequest getUndeleteRecognizerRequest() { if (requestCase_ == 12) { - return (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_; + return (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_; } return com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance(); } /** + * + * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * */ @java.lang.Override - public com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder getUndeleteRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder + getUndeleteRecognizerRequestOrBuilder() { if (requestCase_ == 12) { - return (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_; + return (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_; } return com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance(); } public static final int CREATE_CUSTOM_CLASS_REQUEST_FIELD_NUMBER = 13; /** + * + * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * * @return Whether the createCustomClassRequest field is set. */ @java.lang.Override @@ -660,21 +785,26 @@ public boolean hasCreateCustomClassRequest() { return requestCase_ == 13; } /** + * + * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * * @return The createCustomClassRequest. */ @java.lang.Override public com.google.cloud.speech.v2.CreateCustomClassRequest getCreateCustomClassRequest() { if (requestCase_ == 13) { - return (com.google.cloud.speech.v2.CreateCustomClassRequest) request_; + return (com.google.cloud.speech.v2.CreateCustomClassRequest) request_; } return com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance(); } /** + * + * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
@@ -682,20 +812,24 @@ public com.google.cloud.speech.v2.CreateCustomClassRequest getCreateCustomClassR * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ @java.lang.Override - public com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder getCreateCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder + getCreateCustomClassRequestOrBuilder() { if (requestCase_ == 13) { - return (com.google.cloud.speech.v2.CreateCustomClassRequest) request_; + return (com.google.cloud.speech.v2.CreateCustomClassRequest) request_; } return com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance(); } public static final int UPDATE_CUSTOM_CLASS_REQUEST_FIELD_NUMBER = 14; /** + * + * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * * @return Whether the updateCustomClassRequest field is set. */ @java.lang.Override @@ -703,21 +837,26 @@ public boolean hasUpdateCustomClassRequest() { return requestCase_ == 14; } /** + * + * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * * @return The updateCustomClassRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UpdateCustomClassRequest getUpdateCustomClassRequest() { if (requestCase_ == 14) { - return (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_; + return (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_; } return com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance(); } /** + * + * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
@@ -725,20 +864,24 @@ public com.google.cloud.speech.v2.UpdateCustomClassRequest getUpdateCustomClassR * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder getUpdateCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder + getUpdateCustomClassRequestOrBuilder() { if (requestCase_ == 14) { - return (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_; + return (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_; } return com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance(); } public static final int DELETE_CUSTOM_CLASS_REQUEST_FIELD_NUMBER = 15; /** + * + * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * * @return Whether the deleteCustomClassRequest field is set. */ @java.lang.Override @@ -746,21 +889,26 @@ public boolean hasDeleteCustomClassRequest() { return requestCase_ == 15; } /** + * + * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * * @return The deleteCustomClassRequest. */ @java.lang.Override public com.google.cloud.speech.v2.DeleteCustomClassRequest getDeleteCustomClassRequest() { if (requestCase_ == 15) { - return (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_; + return (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_; } return com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance(); } /** + * + * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
@@ -768,20 +916,25 @@ public com.google.cloud.speech.v2.DeleteCustomClassRequest getDeleteCustomClassR * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ @java.lang.Override - public com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder getDeleteCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder + getDeleteCustomClassRequestOrBuilder() { if (requestCase_ == 15) { - return (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_; + return (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_; } return com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance(); } public static final int UNDELETE_CUSTOM_CLASS_REQUEST_FIELD_NUMBER = 16; /** + * + * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * + * * @return Whether the undeleteCustomClassRequest field is set. */ @java.lang.Override @@ -789,42 +942,53 @@ public boolean hasUndeleteCustomClassRequest() { return requestCase_ == 16; } /** + * + * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * + * * @return The undeleteCustomClassRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UndeleteCustomClassRequest getUndeleteCustomClassRequest() { if (requestCase_ == 16) { - return (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_; + return (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_; } return com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance(); } /** + * + * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * */ @java.lang.Override - public com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder getUndeleteCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder + getUndeleteCustomClassRequestOrBuilder() { if (requestCase_ == 16) { - return (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_; + return (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_; } return com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance(); } public static final int CREATE_PHRASE_SET_REQUEST_FIELD_NUMBER = 17; /** + * + * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; + * * @return Whether the createPhraseSetRequest field is set. */ @java.lang.Override @@ -832,21 +996,26 @@ public boolean hasCreatePhraseSetRequest() { return requestCase_ == 17; } /** + * + * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; + * * @return The createPhraseSetRequest. */ @java.lang.Override public com.google.cloud.speech.v2.CreatePhraseSetRequest getCreatePhraseSetRequest() { if (requestCase_ == 17) { - return (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_; } return com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance(); } /** + * + * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
@@ -854,20 +1023,24 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequest getCreatePhraseSetReque * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ @java.lang.Override - public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder getCreatePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder + getCreatePhraseSetRequestOrBuilder() { if (requestCase_ == 17) { - return (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_; } return com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance(); } public static final int UPDATE_PHRASE_SET_REQUEST_FIELD_NUMBER = 18; /** + * + * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; + * * @return Whether the updatePhraseSetRequest field is set. */ @java.lang.Override @@ -875,21 +1048,26 @@ public boolean hasUpdatePhraseSetRequest() { return requestCase_ == 18; } /** + * + * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; + * * @return The updatePhraseSetRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UpdatePhraseSetRequest getUpdatePhraseSetRequest() { if (requestCase_ == 18) { - return (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_; } return com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance(); } /** + * + * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
@@ -897,20 +1075,24 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequest getUpdatePhraseSetReque * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder getUpdatePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder + getUpdatePhraseSetRequestOrBuilder() { if (requestCase_ == 18) { - return (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_; } return com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance(); } public static final int DELETE_PHRASE_SET_REQUEST_FIELD_NUMBER = 19; /** + * + * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; + * * @return Whether the deletePhraseSetRequest field is set. */ @java.lang.Override @@ -918,21 +1100,26 @@ public boolean hasDeletePhraseSetRequest() { return requestCase_ == 19; } /** + * + * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; + * * @return The deletePhraseSetRequest. */ @java.lang.Override public com.google.cloud.speech.v2.DeletePhraseSetRequest getDeletePhraseSetRequest() { if (requestCase_ == 19) { - return (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_; } return com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance(); } /** + * + * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
@@ -940,20 +1127,24 @@ public com.google.cloud.speech.v2.DeletePhraseSetRequest getDeletePhraseSetReque * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ @java.lang.Override - public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder getDeletePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder + getDeletePhraseSetRequestOrBuilder() { if (requestCase_ == 19) { - return (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_; } return com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance(); } public static final int UNDELETE_PHRASE_SET_REQUEST_FIELD_NUMBER = 20; /** + * + * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * * @return Whether the undeletePhraseSetRequest field is set. */ @java.lang.Override @@ -961,21 +1152,26 @@ public boolean hasUndeletePhraseSetRequest() { return requestCase_ == 20; } /** + * + * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * * @return The undeletePhraseSetRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UndeletePhraseSetRequest getUndeletePhraseSetRequest() { if (requestCase_ == 20) { - return (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_; } return com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance(); } /** + * + * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
@@ -983,20 +1179,24 @@ public com.google.cloud.speech.v2.UndeletePhraseSetRequest getUndeletePhraseSetR * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ @java.lang.Override - public com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder getUndeletePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder + getUndeletePhraseSetRequestOrBuilder() { if (requestCase_ == 20) { - return (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_; + return (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_; } return com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance(); } public static final int UPDATE_CONFIG_REQUEST_FIELD_NUMBER = 21; /** + * + * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; + * * @return Whether the updateConfigRequest field is set. */ @java.lang.Override @@ -1004,21 +1204,26 @@ public boolean hasUpdateConfigRequest() { return requestCase_ == 21; } /** + * + * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; + * * @return The updateConfigRequest. */ @java.lang.Override public com.google.cloud.speech.v2.UpdateConfigRequest getUpdateConfigRequest() { if (requestCase_ == 21) { - return (com.google.cloud.speech.v2.UpdateConfigRequest) request_; + return (com.google.cloud.speech.v2.UpdateConfigRequest) request_; } return com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance(); } /** + * + * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
@@ -1028,7 +1233,7 @@ public com.google.cloud.speech.v2.UpdateConfigRequest getUpdateConfigRequest() { @java.lang.Override public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRequestOrBuilder() { if (requestCase_ == 21) { - return (com.google.cloud.speech.v2.UpdateConfigRequest) request_; + return (com.google.cloud.speech.v2.UpdateConfigRequest) request_; } return com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance(); } @@ -1036,12 +1241,15 @@ public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRe public static final int PROGRESS_PERCENT_FIELD_NUMBER = 22; private int progressPercent_ = 0; /** + * + * *
    * The percent progress of the Operation. Values can range from 0-100. If the
    * value is 100, then the operation is finished.
    * 
* * int32 progress_percent = 22; + * * @return The progressPercent. */ @java.lang.Override @@ -1051,11 +1259,14 @@ public int getProgressPercent() { public static final int BATCH_RECOGNIZE_METADATA_FIELD_NUMBER = 23; /** + * + * *
    * Metadata specific to the BatchRecognize method.
    * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; + * * @return Whether the batchRecognizeMetadata field is set. */ @java.lang.Override @@ -1063,21 +1274,26 @@ public boolean hasBatchRecognizeMetadata() { return metadataCase_ == 23; } /** + * + * *
    * Metadata specific to the BatchRecognize method.
    * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; + * * @return The batchRecognizeMetadata. */ @java.lang.Override public com.google.cloud.speech.v2.BatchRecognizeMetadata getBatchRecognizeMetadata() { if (metadataCase_ == 23) { - return (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_; + return (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_; } return com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance(); } /** + * + * *
    * Metadata specific to the BatchRecognize method.
    * 
@@ -1085,14 +1301,16 @@ public com.google.cloud.speech.v2.BatchRecognizeMetadata getBatchRecognizeMetada * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder getBatchRecognizeMetadataOrBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder + getBatchRecognizeMetadataOrBuilder() { if (metadataCase_ == 23) { - return (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_; + return (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_; } return com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1104,8 +1322,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -1182,12 +1399,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resource_); @@ -1202,68 +1417,82 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, kmsKeyVersionName_); } if (requestCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.cloud.speech.v2.BatchRecognizeRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.speech.v2.BatchRecognizeRequest) request_); } if (requestCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.cloud.speech.v2.CreateRecognizerRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.speech.v2.CreateRecognizerRequest) request_); } if (requestCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_); } if (requestCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_); } if (requestCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_); } if (requestCase_ == 13) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, (com.google.cloud.speech.v2.CreateCustomClassRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.speech.v2.CreateCustomClassRequest) request_); } if (requestCase_ == 14) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_); } if (requestCase_ == 15) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_); } if (requestCase_ == 16) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_); } if (requestCase_ == 17) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 17, (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_); } if (requestCase_ == 18) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_); } if (requestCase_ == 19) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 19, (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_); } if (requestCase_ == 20) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 20, (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_); } if (requestCase_ == 21) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, (com.google.cloud.speech.v2.UpdateConfigRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, (com.google.cloud.speech.v2.UpdateConfigRequest) request_); } if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(22, progressPercent_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(22, progressPercent_); } if (metadataCase_ == 23) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 23, (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1273,90 +1502,76 @@ 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.v2.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v2.OperationMetadata other = (com.google.cloud.speech.v2.OperationMetadata) obj; + com.google.cloud.speech.v2.OperationMetadata other = + (com.google.cloud.speech.v2.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!getResource() - .equals(other.getResource())) return false; - if (!getMethod() - .equals(other.getMethod())) return false; - if (!getKmsKeyName() - .equals(other.getKmsKeyName())) return false; - if (!getKmsKeyVersionName() - .equals(other.getKmsKeyVersionName())) return false; - if (getProgressPercent() - != other.getProgressPercent()) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getResource().equals(other.getResource())) return false; + if (!getMethod().equals(other.getMethod())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; + if (getProgressPercent() != other.getProgressPercent()) return false; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 8: - if (!getBatchRecognizeRequest() - .equals(other.getBatchRecognizeRequest())) return false; + if (!getBatchRecognizeRequest().equals(other.getBatchRecognizeRequest())) return false; break; case 9: - if (!getCreateRecognizerRequest() - .equals(other.getCreateRecognizerRequest())) return false; + if (!getCreateRecognizerRequest().equals(other.getCreateRecognizerRequest())) return false; break; case 10: - if (!getUpdateRecognizerRequest() - .equals(other.getUpdateRecognizerRequest())) return false; + if (!getUpdateRecognizerRequest().equals(other.getUpdateRecognizerRequest())) return false; break; case 11: - if (!getDeleteRecognizerRequest() - .equals(other.getDeleteRecognizerRequest())) return false; + if (!getDeleteRecognizerRequest().equals(other.getDeleteRecognizerRequest())) return false; break; case 12: - if (!getUndeleteRecognizerRequest() - .equals(other.getUndeleteRecognizerRequest())) return false; + if (!getUndeleteRecognizerRequest().equals(other.getUndeleteRecognizerRequest())) + return false; break; case 13: - if (!getCreateCustomClassRequest() - .equals(other.getCreateCustomClassRequest())) return false; + if (!getCreateCustomClassRequest().equals(other.getCreateCustomClassRequest())) + return false; break; case 14: - if (!getUpdateCustomClassRequest() - .equals(other.getUpdateCustomClassRequest())) return false; + if (!getUpdateCustomClassRequest().equals(other.getUpdateCustomClassRequest())) + return false; break; case 15: - if (!getDeleteCustomClassRequest() - .equals(other.getDeleteCustomClassRequest())) return false; + if (!getDeleteCustomClassRequest().equals(other.getDeleteCustomClassRequest())) + return false; break; case 16: - if (!getUndeleteCustomClassRequest() - .equals(other.getUndeleteCustomClassRequest())) return false; + if (!getUndeleteCustomClassRequest().equals(other.getUndeleteCustomClassRequest())) + return false; break; case 17: - if (!getCreatePhraseSetRequest() - .equals(other.getCreatePhraseSetRequest())) return false; + if (!getCreatePhraseSetRequest().equals(other.getCreatePhraseSetRequest())) return false; break; case 18: - if (!getUpdatePhraseSetRequest() - .equals(other.getUpdatePhraseSetRequest())) return false; + if (!getUpdatePhraseSetRequest().equals(other.getUpdatePhraseSetRequest())) return false; break; case 19: - if (!getDeletePhraseSetRequest() - .equals(other.getDeletePhraseSetRequest())) return false; + if (!getDeletePhraseSetRequest().equals(other.getDeletePhraseSetRequest())) return false; break; case 20: - if (!getUndeletePhraseSetRequest() - .equals(other.getUndeletePhraseSetRequest())) return false; + if (!getUndeletePhraseSetRequest().equals(other.getUndeletePhraseSetRequest())) + return false; break; case 21: - if (!getUpdateConfigRequest() - .equals(other.getUpdateConfigRequest())) return false; + if (!getUpdateConfigRequest().equals(other.getUpdateConfigRequest())) return false; break; case 0: default: @@ -1364,8 +1579,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMetadataCase().equals(other.getMetadataCase())) return false; switch (metadataCase_) { case 23: - if (!getBatchRecognizeMetadata() - .equals(other.getBatchRecognizeMetadata())) return false; + if (!getBatchRecognizeMetadata().equals(other.getBatchRecognizeMetadata())) return false; break; case 0: default: @@ -1472,130 +1686,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.OperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.OperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.OperationMetadata 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.v2.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.OperationMetadata 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.v2.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.OperationMetadata 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.v2.OperationMetadata 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.v2.OperationMetadata 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.v2.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.OperationMetadata 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.v2.OperationMetadata 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.v2.OperationMetadata 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.v2.OperationMetadata 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; } /** + * + * *
    * Represents the metadata of a long-running operation.
    * 
* * Protobuf type {@code google.cloud.speech.v2.OperationMetadata} */ - 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.v2.OperationMetadata) com.google.cloud.speech.v2.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.OperationMetadata.class, com.google.cloud.speech.v2.OperationMetadata.Builder.class); + com.google.cloud.speech.v2.OperationMetadata.class, + com.google.cloud.speech.v2.OperationMetadata.Builder.class); } // Construct using com.google.cloud.speech.v2.OperationMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1668,9 +1888,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; } @java.lang.Override @@ -1689,8 +1909,11 @@ public com.google.cloud.speech.v2.OperationMetadata build() { @java.lang.Override public com.google.cloud.speech.v2.OperationMetadata buildPartial() { - com.google.cloud.speech.v2.OperationMetadata result = new com.google.cloud.speech.v2.OperationMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v2.OperationMetadata result = + new com.google.cloud.speech.v2.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -1699,14 +1922,10 @@ public com.google.cloud.speech.v2.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.speech.v2.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.resource_ = resource_; @@ -1728,66 +1947,51 @@ private void buildPartial0(com.google.cloud.speech.v2.OperationMetadata result) private void buildPartialOneofs(com.google.cloud.speech.v2.OperationMetadata result) { result.requestCase_ = requestCase_; result.request_ = this.request_; - if (requestCase_ == 8 && - batchRecognizeRequestBuilder_ != null) { + if (requestCase_ == 8 && batchRecognizeRequestBuilder_ != null) { result.request_ = batchRecognizeRequestBuilder_.build(); } - if (requestCase_ == 9 && - createRecognizerRequestBuilder_ != null) { + if (requestCase_ == 9 && createRecognizerRequestBuilder_ != null) { result.request_ = createRecognizerRequestBuilder_.build(); } - if (requestCase_ == 10 && - updateRecognizerRequestBuilder_ != null) { + if (requestCase_ == 10 && updateRecognizerRequestBuilder_ != null) { result.request_ = updateRecognizerRequestBuilder_.build(); } - if (requestCase_ == 11 && - deleteRecognizerRequestBuilder_ != null) { + if (requestCase_ == 11 && deleteRecognizerRequestBuilder_ != null) { result.request_ = deleteRecognizerRequestBuilder_.build(); } - if (requestCase_ == 12 && - undeleteRecognizerRequestBuilder_ != null) { + if (requestCase_ == 12 && undeleteRecognizerRequestBuilder_ != null) { result.request_ = undeleteRecognizerRequestBuilder_.build(); } - if (requestCase_ == 13 && - createCustomClassRequestBuilder_ != null) { + if (requestCase_ == 13 && createCustomClassRequestBuilder_ != null) { result.request_ = createCustomClassRequestBuilder_.build(); } - if (requestCase_ == 14 && - updateCustomClassRequestBuilder_ != null) { + if (requestCase_ == 14 && updateCustomClassRequestBuilder_ != null) { result.request_ = updateCustomClassRequestBuilder_.build(); } - if (requestCase_ == 15 && - deleteCustomClassRequestBuilder_ != null) { + if (requestCase_ == 15 && deleteCustomClassRequestBuilder_ != null) { result.request_ = deleteCustomClassRequestBuilder_.build(); } - if (requestCase_ == 16 && - undeleteCustomClassRequestBuilder_ != null) { + if (requestCase_ == 16 && undeleteCustomClassRequestBuilder_ != null) { result.request_ = undeleteCustomClassRequestBuilder_.build(); } - if (requestCase_ == 17 && - createPhraseSetRequestBuilder_ != null) { + if (requestCase_ == 17 && createPhraseSetRequestBuilder_ != null) { result.request_ = createPhraseSetRequestBuilder_.build(); } - if (requestCase_ == 18 && - updatePhraseSetRequestBuilder_ != null) { + if (requestCase_ == 18 && updatePhraseSetRequestBuilder_ != null) { result.request_ = updatePhraseSetRequestBuilder_.build(); } - if (requestCase_ == 19 && - deletePhraseSetRequestBuilder_ != null) { + if (requestCase_ == 19 && deletePhraseSetRequestBuilder_ != null) { result.request_ = deletePhraseSetRequestBuilder_.build(); } - if (requestCase_ == 20 && - undeletePhraseSetRequestBuilder_ != null) { + if (requestCase_ == 20 && undeletePhraseSetRequestBuilder_ != null) { result.request_ = undeletePhraseSetRequestBuilder_.build(); } - if (requestCase_ == 21 && - updateConfigRequestBuilder_ != null) { + if (requestCase_ == 21 && updateConfigRequestBuilder_ != null) { result.request_ = updateConfigRequestBuilder_.build(); } result.metadataCase_ = metadataCase_; result.metadata_ = this.metadata_; - if (metadataCase_ == 23 && - batchRecognizeMetadataBuilder_ != null) { + if (metadataCase_ == 23 && batchRecognizeMetadataBuilder_ != null) { result.metadata_ = batchRecognizeMetadataBuilder_.build(); } } @@ -1796,38 +2000,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.OperationMetadata res 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.v2.OperationMetadata) { - return mergeFrom((com.google.cloud.speech.v2.OperationMetadata)other); + return mergeFrom((com.google.cloud.speech.v2.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -1866,74 +2071,91 @@ public Builder mergeFrom(com.google.cloud.speech.v2.OperationMetadata other) { setProgressPercent(other.getProgressPercent()); } switch (other.getRequestCase()) { - case BATCH_RECOGNIZE_REQUEST: { - mergeBatchRecognizeRequest(other.getBatchRecognizeRequest()); - break; - } - case CREATE_RECOGNIZER_REQUEST: { - mergeCreateRecognizerRequest(other.getCreateRecognizerRequest()); - break; - } - case UPDATE_RECOGNIZER_REQUEST: { - mergeUpdateRecognizerRequest(other.getUpdateRecognizerRequest()); - break; - } - case DELETE_RECOGNIZER_REQUEST: { - mergeDeleteRecognizerRequest(other.getDeleteRecognizerRequest()); - break; - } - case UNDELETE_RECOGNIZER_REQUEST: { - mergeUndeleteRecognizerRequest(other.getUndeleteRecognizerRequest()); - break; - } - case CREATE_CUSTOM_CLASS_REQUEST: { - mergeCreateCustomClassRequest(other.getCreateCustomClassRequest()); - break; - } - case UPDATE_CUSTOM_CLASS_REQUEST: { - mergeUpdateCustomClassRequest(other.getUpdateCustomClassRequest()); - break; - } - case DELETE_CUSTOM_CLASS_REQUEST: { - mergeDeleteCustomClassRequest(other.getDeleteCustomClassRequest()); - break; - } - case UNDELETE_CUSTOM_CLASS_REQUEST: { - mergeUndeleteCustomClassRequest(other.getUndeleteCustomClassRequest()); - break; - } - case CREATE_PHRASE_SET_REQUEST: { - mergeCreatePhraseSetRequest(other.getCreatePhraseSetRequest()); - break; - } - case UPDATE_PHRASE_SET_REQUEST: { - mergeUpdatePhraseSetRequest(other.getUpdatePhraseSetRequest()); - break; - } - case DELETE_PHRASE_SET_REQUEST: { - mergeDeletePhraseSetRequest(other.getDeletePhraseSetRequest()); - break; - } - case UNDELETE_PHRASE_SET_REQUEST: { - mergeUndeletePhraseSetRequest(other.getUndeletePhraseSetRequest()); - break; - } - case UPDATE_CONFIG_REQUEST: { - mergeUpdateConfigRequest(other.getUpdateConfigRequest()); - break; - } - case REQUEST_NOT_SET: { - break; - } + case BATCH_RECOGNIZE_REQUEST: + { + mergeBatchRecognizeRequest(other.getBatchRecognizeRequest()); + break; + } + case CREATE_RECOGNIZER_REQUEST: + { + mergeCreateRecognizerRequest(other.getCreateRecognizerRequest()); + break; + } + case UPDATE_RECOGNIZER_REQUEST: + { + mergeUpdateRecognizerRequest(other.getUpdateRecognizerRequest()); + break; + } + case DELETE_RECOGNIZER_REQUEST: + { + mergeDeleteRecognizerRequest(other.getDeleteRecognizerRequest()); + break; + } + case UNDELETE_RECOGNIZER_REQUEST: + { + mergeUndeleteRecognizerRequest(other.getUndeleteRecognizerRequest()); + break; + } + case CREATE_CUSTOM_CLASS_REQUEST: + { + mergeCreateCustomClassRequest(other.getCreateCustomClassRequest()); + break; + } + case UPDATE_CUSTOM_CLASS_REQUEST: + { + mergeUpdateCustomClassRequest(other.getUpdateCustomClassRequest()); + break; + } + case DELETE_CUSTOM_CLASS_REQUEST: + { + mergeDeleteCustomClassRequest(other.getDeleteCustomClassRequest()); + break; + } + case UNDELETE_CUSTOM_CLASS_REQUEST: + { + mergeUndeleteCustomClassRequest(other.getUndeleteCustomClassRequest()); + break; + } + case CREATE_PHRASE_SET_REQUEST: + { + mergeCreatePhraseSetRequest(other.getCreatePhraseSetRequest()); + break; + } + case UPDATE_PHRASE_SET_REQUEST: + { + mergeUpdatePhraseSetRequest(other.getUpdatePhraseSetRequest()); + break; + } + case DELETE_PHRASE_SET_REQUEST: + { + mergeDeletePhraseSetRequest(other.getDeletePhraseSetRequest()); + break; + } + case UNDELETE_PHRASE_SET_REQUEST: + { + mergeUndeletePhraseSetRequest(other.getUndeletePhraseSetRequest()); + break; + } + case UPDATE_CONFIG_REQUEST: + { + mergeUpdateConfigRequest(other.getUpdateConfigRequest()); + break; + } + case REQUEST_NOT_SET: + { + break; + } } switch (other.getMetadataCase()) { - case BATCH_RECOGNIZE_METADATA: { - mergeBatchRecognizeMetadata(other.getBatchRecognizeMetadata()); - break; - } - case METADATA_NOT_SET: { - break; - } + case BATCH_RECOGNIZE_METADATA: + { + mergeBatchRecognizeMetadata(other.getBatchRecognizeMetadata()); + break; + } + case METADATA_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1961,156 +2183,160 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - resource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - method_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: { - kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 58: { - kmsKeyVersionName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: { - input.readMessage( - getBatchRecognizeRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 8; - break; - } // case 66 - case 74: { - input.readMessage( - getCreateRecognizerRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 9; - break; - } // case 74 - case 82: { - input.readMessage( - getUpdateRecognizerRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 10; - break; - } // case 82 - case 90: { - input.readMessage( - getDeleteRecognizerRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 11; - break; - } // case 90 - case 98: { - input.readMessage( - getUndeleteRecognizerRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 12; - break; - } // case 98 - case 106: { - input.readMessage( - getCreateCustomClassRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 13; - break; - } // case 106 - case 114: { - input.readMessage( - getUpdateCustomClassRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 14; - break; - } // case 114 - case 122: { - input.readMessage( - getDeleteCustomClassRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 15; - break; - } // case 122 - case 130: { - input.readMessage( - getUndeleteCustomClassRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 16; - break; - } // case 130 - case 138: { - input.readMessage( - getCreatePhraseSetRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 17; - break; - } // case 138 - case 146: { - input.readMessage( - getUpdatePhraseSetRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 18; - break; - } // case 146 - case 154: { - input.readMessage( - getDeletePhraseSetRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 19; - break; - } // case 154 - case 162: { - input.readMessage( - getUndeletePhraseSetRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 20; - break; - } // case 162 - case 170: { - input.readMessage( - getUpdateConfigRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 21; - break; - } // case 170 - case 176: { - progressPercent_ = input.readInt32(); - bitField0_ |= 0x00100000; - break; - } // case 176 - case 186: { - input.readMessage( - getBatchRecognizeMetadataFieldBuilder().getBuilder(), - extensionRegistry); - metadataCase_ = 23; - break; - } // case 186 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + method_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: + { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + kmsKeyVersionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage( + getBatchRecognizeRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage( + getCreateRecognizerRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage( + getUpdateRecognizerRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 10; + break; + } // case 82 + case 90: + { + input.readMessage( + getDeleteRecognizerRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 11; + break; + } // case 90 + case 98: + { + input.readMessage( + getUndeleteRecognizerRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 12; + break; + } // case 98 + case 106: + { + input.readMessage( + getCreateCustomClassRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 13; + break; + } // case 106 + case 114: + { + input.readMessage( + getUpdateCustomClassRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 14; + break; + } // case 114 + case 122: + { + input.readMessage( + getDeleteCustomClassRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 15; + break; + } // case 122 + case 130: + { + input.readMessage( + getUndeleteCustomClassRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 16; + break; + } // case 130 + case 138: + { + input.readMessage( + getCreatePhraseSetRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 17; + break; + } // case 138 + case 146: + { + input.readMessage( + getUpdatePhraseSetRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 18; + break; + } // case 146 + case 154: + { + input.readMessage( + getDeletePhraseSetRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 19; + break; + } // case 154 + case 162: + { + input.readMessage( + getUndeletePhraseSetRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 20; + break; + } // case 162 + case 170: + { + input.readMessage( + getUpdateConfigRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 21; + break; + } // case 170 + case 176: + { + progressPercent_ = input.readInt32(); + bitField0_ |= 0x00100000; + break; + } // case 176 + case 186: + { + input.readMessage( + getBatchRecognizeMetadataFieldBuilder().getBuilder(), extensionRegistry); + metadataCase_ = 23; + break; + } // case 186 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2120,12 +2346,12 @@ public Builder mergeFrom( } // finally return this; } + private int requestCase_ = 0; private java.lang.Object request_; - public RequestCase - getRequestCase() { - return RequestCase.forNumber( - requestCase_); + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); } public Builder clearRequest() { @@ -2137,10 +2363,9 @@ public Builder clearRequest() { private int metadataCase_ = 0; private java.lang.Object metadata_; - public MetadataCase - getMetadataCase() { - return MetadataCase.forNumber( - metadataCase_); + + public MetadataCase getMetadataCase() { + return MetadataCase.forNumber(metadataCase_); } public Builder clearMetadata() { @@ -2154,34 +2379,47 @@ public Builder clearMetadata() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The time the operation was created.
      * 
@@ -2202,14 +2440,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2220,6 +2459,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -2228,9 +2469,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2243,6 +2484,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -2260,6 +2503,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -2272,6 +2517,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation was created.
      * 
@@ -2282,11 +2529,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time the operation was created.
      * 
@@ -2294,14 +2544,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2309,34 +2562,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * The time the operation was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 2; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The time the operation was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 2; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * The time the operation was last updated.
      * 
@@ -2357,14 +2623,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was last updated.
      * 
* * .google.protobuf.Timestamp update_time = 2; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -2375,6 +2642,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * The time the operation was last updated.
      * 
@@ -2383,9 +2652,9 @@ public Builder setUpdateTime( */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -2398,6 +2667,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was last updated.
      * 
@@ -2415,6 +2686,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * The time the operation was last updated.
      * 
@@ -2427,6 +2700,8 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation was last updated.
      * 
@@ -2437,11 +2712,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * The time the operation was last updated.
      * 
@@ -2449,14 +2727,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2464,18 +2745,20 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object resource_ = ""; /** + * + * *
      * The resource path for the target of the operation.
      * 
* * string resource = 3; + * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; 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(); resource_ = s; return s; @@ -2484,20 +2767,21 @@ public java.lang.String getResource() { } } /** + * + * *
      * The resource path for the target of the operation.
      * 
* * string resource = 3; + * * @return The bytes for resource. */ - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; 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); resource_ = b; return b; } else { @@ -2505,28 +2789,35 @@ public java.lang.String getResource() { } } /** + * + * *
      * The resource path for the target of the operation.
      * 
* * string resource = 3; + * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } resource_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The resource path for the target of the operation.
      * 
* * string resource = 3; + * * @return This builder for chaining. */ public Builder clearResource() { @@ -2536,17 +2827,21 @@ public Builder clearResource() { return this; } /** + * + * *
      * The resource path for the target of the operation.
      * 
* * string resource = 3; + * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); resource_ = value; bitField0_ |= 0x00000004; @@ -2556,18 +2851,20 @@ public Builder setResourceBytes( private java.lang.Object method_ = ""; /** + * + * *
      * The method that triggered the operation.
      * 
* * string method = 4; + * * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; 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(); method_ = s; return s; @@ -2576,20 +2873,21 @@ public java.lang.String getMethod() { } } /** + * + * *
      * The method that triggered the operation.
      * 
* * string method = 4; + * * @return The bytes for method. */ - public com.google.protobuf.ByteString - getMethodBytes() { + public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; 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); method_ = b; return b; } else { @@ -2597,28 +2895,35 @@ public java.lang.String getMethod() { } } /** + * + * *
      * The method that triggered the operation.
      * 
* * string method = 4; + * * @param value The method to set. * @return This builder for chaining. */ - public Builder setMethod( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMethod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } method_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The method that triggered the operation.
      * 
* * string method = 4; + * * @return This builder for chaining. */ public Builder clearMethod() { @@ -2628,17 +2933,21 @@ public Builder clearMethod() { return this; } /** + * + * *
      * The method that triggered the operation.
      * 
* * string method = 4; + * * @param value The bytes for method to set. * @return This builder for chaining. */ - public Builder setMethodBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMethodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); method_ = value; bitField0_ |= 0x00000008; @@ -2648,6 +2957,8 @@ public Builder setMethodBytes( private java.lang.Object kmsKeyName_ = ""; /** + * + * *
      * The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -2656,13 +2967,13 @@ public Builder setMethodBytes(
      * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } + * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; 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(); kmsKeyName_ = s; return s; @@ -2671,6 +2982,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -2679,15 +2992,14 @@ public java.lang.String getKmsKeyName() {
      * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -2695,6 +3007,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -2703,18 +3017,22 @@ public java.lang.String getKmsKeyName() {
      * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } + * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -2723,6 +3041,7 @@ public Builder setKmsKeyName(
      * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -2732,6 +3051,8 @@ public Builder clearKmsKeyName() { return this; } /** + * + * *
      * The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -2740,12 +3061,14 @@ public Builder clearKmsKeyName() {
      * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00000010; @@ -2755,6 +3078,8 @@ public Builder setKmsKeyNameBytes( private java.lang.Object kmsKeyVersionName_ = ""; /** + * + * *
      * The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -2763,13 +3088,13 @@ public Builder setKmsKeyNameBytes(
      * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } + * * @return The kmsKeyVersionName. */ public java.lang.String getKmsKeyVersionName() { java.lang.Object ref = kmsKeyVersionName_; 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(); kmsKeyVersionName_ = s; return s; @@ -2778,6 +3103,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -2786,15 +3113,14 @@ public java.lang.String getKmsKeyVersionName() {
      * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } + * * @return The bytes for kmsKeyVersionName. */ - public com.google.protobuf.ByteString - getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -2802,6 +3128,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -2810,18 +3138,22 @@ public java.lang.String getKmsKeyVersionName() {
      * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } + * * @param value The kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyVersionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyVersionName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -2830,6 +3162,7 @@ public Builder setKmsKeyVersionName(
      * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { @@ -2839,6 +3172,8 @@ public Builder clearKmsKeyVersionName() { return this; } /** + * + * *
      * The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -2847,12 +3182,14 @@ public Builder clearKmsKeyVersionName() {
      * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyVersionName_ = value; bitField0_ |= 0x00000020; @@ -2861,13 +3198,19 @@ public Builder setKmsKeyVersionNameBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder> batchRecognizeRequestBuilder_; + com.google.cloud.speech.v2.BatchRecognizeRequest, + com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, + com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder> + batchRecognizeRequestBuilder_; /** + * + * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; + * * @return Whether the batchRecognizeRequest field is set. */ @java.lang.Override @@ -2875,11 +3218,14 @@ public boolean hasBatchRecognizeRequest() { return requestCase_ == 8; } /** + * + * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; + * * @return The batchRecognizeRequest. */ @java.lang.Override @@ -2897,13 +3243,16 @@ public com.google.cloud.speech.v2.BatchRecognizeRequest getBatchRecognizeRequest } } /** + * + * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ - public Builder setBatchRecognizeRequest(com.google.cloud.speech.v2.BatchRecognizeRequest value) { + public Builder setBatchRecognizeRequest( + com.google.cloud.speech.v2.BatchRecognizeRequest value) { if (batchRecognizeRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2917,6 +3266,8 @@ public Builder setBatchRecognizeRequest(com.google.cloud.speech.v2.BatchRecogniz return this; } /** + * + * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
@@ -2935,18 +3286,24 @@ public Builder setBatchRecognizeRequest( return this; } /** + * + * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ - public Builder mergeBatchRecognizeRequest(com.google.cloud.speech.v2.BatchRecognizeRequest value) { + public Builder mergeBatchRecognizeRequest( + com.google.cloud.speech.v2.BatchRecognizeRequest value) { if (batchRecognizeRequestBuilder_ == null) { - if (requestCase_ == 8 && - request_ != com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.BatchRecognizeRequest.newBuilder((com.google.cloud.speech.v2.BatchRecognizeRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 8 + && request_ != com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.BatchRecognizeRequest.newBuilder( + (com.google.cloud.speech.v2.BatchRecognizeRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -2962,6 +3319,8 @@ public Builder mergeBatchRecognizeRequest(com.google.cloud.speech.v2.BatchRecogn return this; } /** + * + * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
@@ -2985,16 +3344,21 @@ public Builder clearBatchRecognizeRequest() { return this; } /** + * + * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ - public com.google.cloud.speech.v2.BatchRecognizeRequest.Builder getBatchRecognizeRequestBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeRequest.Builder + getBatchRecognizeRequestBuilder() { return getBatchRecognizeRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
@@ -3002,7 +3366,8 @@ public com.google.cloud.speech.v2.BatchRecognizeRequest.Builder getBatchRecogniz * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder getBatchRecognizeRequestOrBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder + getBatchRecognizeRequestOrBuilder() { if ((requestCase_ == 8) && (batchRecognizeRequestBuilder_ != null)) { return batchRecognizeRequestBuilder_.getMessageOrBuilder(); } else { @@ -3013,6 +3378,8 @@ public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder getBatchRecogni } } /** + * + * *
      * The BatchRecognizeRequest that spawned the Operation.
      * 
@@ -3020,14 +3387,19 @@ public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder getBatchRecogni * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder> + com.google.cloud.speech.v2.BatchRecognizeRequest, + com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, + com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder> getBatchRecognizeRequestFieldBuilder() { if (batchRecognizeRequestBuilder_ == null) { if (!(requestCase_ == 8)) { request_ = com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance(); } - batchRecognizeRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeRequest, com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder>( + batchRecognizeRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.BatchRecognizeRequest, + com.google.cloud.speech.v2.BatchRecognizeRequest.Builder, + com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder>( (com.google.cloud.speech.v2.BatchRecognizeRequest) request_, getParentForChildren(), isClean()); @@ -3039,13 +3411,19 @@ public com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder getBatchRecogni } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder> createRecognizerRequestBuilder_; + com.google.cloud.speech.v2.CreateRecognizerRequest, + com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, + com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder> + createRecognizerRequestBuilder_; /** + * + * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; + * * @return Whether the createRecognizerRequest field is set. */ @java.lang.Override @@ -3053,11 +3431,14 @@ public boolean hasCreateRecognizerRequest() { return requestCase_ == 9; } /** + * + * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; + * * @return The createRecognizerRequest. */ @java.lang.Override @@ -3075,13 +3456,16 @@ public com.google.cloud.speech.v2.CreateRecognizerRequest getCreateRecognizerReq } } /** + * + * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ - public Builder setCreateRecognizerRequest(com.google.cloud.speech.v2.CreateRecognizerRequest value) { + public Builder setCreateRecognizerRequest( + com.google.cloud.speech.v2.CreateRecognizerRequest value) { if (createRecognizerRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3095,6 +3479,8 @@ public Builder setCreateRecognizerRequest(com.google.cloud.speech.v2.CreateRecog return this; } /** + * + * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
@@ -3113,18 +3499,25 @@ public Builder setCreateRecognizerRequest( return this; } /** + * + * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ - public Builder mergeCreateRecognizerRequest(com.google.cloud.speech.v2.CreateRecognizerRequest value) { + public Builder mergeCreateRecognizerRequest( + com.google.cloud.speech.v2.CreateRecognizerRequest value) { if (createRecognizerRequestBuilder_ == null) { - if (requestCase_ == 9 && - request_ != com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.CreateRecognizerRequest.newBuilder((com.google.cloud.speech.v2.CreateRecognizerRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 9 + && request_ + != com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.CreateRecognizerRequest.newBuilder( + (com.google.cloud.speech.v2.CreateRecognizerRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -3140,6 +3533,8 @@ public Builder mergeCreateRecognizerRequest(com.google.cloud.speech.v2.CreateRec return this; } /** + * + * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
@@ -3163,16 +3558,21 @@ public Builder clearCreateRecognizerRequest() { return this; } /** + * + * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ - public com.google.cloud.speech.v2.CreateRecognizerRequest.Builder getCreateRecognizerRequestBuilder() { + public com.google.cloud.speech.v2.CreateRecognizerRequest.Builder + getCreateRecognizerRequestBuilder() { return getCreateRecognizerRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
@@ -3180,7 +3580,8 @@ public com.google.cloud.speech.v2.CreateRecognizerRequest.Builder getCreateRecog * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ @java.lang.Override - public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder getCreateRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder + getCreateRecognizerRequestOrBuilder() { if ((requestCase_ == 9) && (createRecognizerRequestBuilder_ != null)) { return createRecognizerRequestBuilder_.getMessageOrBuilder(); } else { @@ -3191,6 +3592,8 @@ public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder getCreateReco } } /** + * + * *
      * The CreateRecognizerRequest that spawned the Operation.
      * 
@@ -3198,14 +3601,19 @@ public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder getCreateReco * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder> + com.google.cloud.speech.v2.CreateRecognizerRequest, + com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, + com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder> getCreateRecognizerRequestFieldBuilder() { if (createRecognizerRequestBuilder_ == null) { if (!(requestCase_ == 9)) { request_ = com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance(); } - createRecognizerRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateRecognizerRequest, com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder>( + createRecognizerRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.CreateRecognizerRequest, + com.google.cloud.speech.v2.CreateRecognizerRequest.Builder, + com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder>( (com.google.cloud.speech.v2.CreateRecognizerRequest) request_, getParentForChildren(), isClean()); @@ -3217,13 +3625,19 @@ public com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder getCreateReco } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder> updateRecognizerRequestBuilder_; + com.google.cloud.speech.v2.UpdateRecognizerRequest, + com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, + com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder> + updateRecognizerRequestBuilder_; /** + * + * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; + * * @return Whether the updateRecognizerRequest field is set. */ @java.lang.Override @@ -3231,11 +3645,14 @@ public boolean hasUpdateRecognizerRequest() { return requestCase_ == 10; } /** + * + * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; + * * @return The updateRecognizerRequest. */ @java.lang.Override @@ -3253,13 +3670,16 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequest getUpdateRecognizerReq } } /** + * + * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ - public Builder setUpdateRecognizerRequest(com.google.cloud.speech.v2.UpdateRecognizerRequest value) { + public Builder setUpdateRecognizerRequest( + com.google.cloud.speech.v2.UpdateRecognizerRequest value) { if (updateRecognizerRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3273,6 +3693,8 @@ public Builder setUpdateRecognizerRequest(com.google.cloud.speech.v2.UpdateRecog return this; } /** + * + * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
@@ -3291,18 +3713,25 @@ public Builder setUpdateRecognizerRequest( return this; } /** + * + * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ - public Builder mergeUpdateRecognizerRequest(com.google.cloud.speech.v2.UpdateRecognizerRequest value) { + public Builder mergeUpdateRecognizerRequest( + com.google.cloud.speech.v2.UpdateRecognizerRequest value) { if (updateRecognizerRequestBuilder_ == null) { - if (requestCase_ == 10 && - request_ != com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.UpdateRecognizerRequest.newBuilder((com.google.cloud.speech.v2.UpdateRecognizerRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 10 + && request_ + != com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.UpdateRecognizerRequest.newBuilder( + (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -3318,6 +3747,8 @@ public Builder mergeUpdateRecognizerRequest(com.google.cloud.speech.v2.UpdateRec return this; } /** + * + * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
@@ -3341,16 +3772,21 @@ public Builder clearUpdateRecognizerRequest() { return this; } /** + * + * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ - public com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder getUpdateRecognizerRequestBuilder() { + public com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder + getUpdateRecognizerRequestBuilder() { return getUpdateRecognizerRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
@@ -3358,7 +3794,8 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder getUpdateRecog * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder getUpdateRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder + getUpdateRecognizerRequestOrBuilder() { if ((requestCase_ == 10) && (updateRecognizerRequestBuilder_ != null)) { return updateRecognizerRequestBuilder_.getMessageOrBuilder(); } else { @@ -3369,6 +3806,8 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder getUpdateReco } } /** + * + * *
      * The UpdateRecognizerRequest that spawned the Operation.
      * 
@@ -3376,14 +3815,19 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder getUpdateReco * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder> + com.google.cloud.speech.v2.UpdateRecognizerRequest, + com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, + com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder> getUpdateRecognizerRequestFieldBuilder() { if (updateRecognizerRequestBuilder_ == null) { if (!(requestCase_ == 10)) { request_ = com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance(); } - updateRecognizerRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateRecognizerRequest, com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder>( + updateRecognizerRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UpdateRecognizerRequest, + com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder, + com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder>( (com.google.cloud.speech.v2.UpdateRecognizerRequest) request_, getParentForChildren(), isClean()); @@ -3395,13 +3839,19 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder getUpdateReco } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder> deleteRecognizerRequestBuilder_; + com.google.cloud.speech.v2.DeleteRecognizerRequest, + com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, + com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder> + deleteRecognizerRequestBuilder_; /** + * + * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; + * * @return Whether the deleteRecognizerRequest field is set. */ @java.lang.Override @@ -3409,11 +3859,14 @@ public boolean hasDeleteRecognizerRequest() { return requestCase_ == 11; } /** + * + * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; + * * @return The deleteRecognizerRequest. */ @java.lang.Override @@ -3431,13 +3884,16 @@ public com.google.cloud.speech.v2.DeleteRecognizerRequest getDeleteRecognizerReq } } /** + * + * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ - public Builder setDeleteRecognizerRequest(com.google.cloud.speech.v2.DeleteRecognizerRequest value) { + public Builder setDeleteRecognizerRequest( + com.google.cloud.speech.v2.DeleteRecognizerRequest value) { if (deleteRecognizerRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3451,6 +3907,8 @@ public Builder setDeleteRecognizerRequest(com.google.cloud.speech.v2.DeleteRecog return this; } /** + * + * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
@@ -3469,18 +3927,25 @@ public Builder setDeleteRecognizerRequest( return this; } /** + * + * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ - public Builder mergeDeleteRecognizerRequest(com.google.cloud.speech.v2.DeleteRecognizerRequest value) { + public Builder mergeDeleteRecognizerRequest( + com.google.cloud.speech.v2.DeleteRecognizerRequest value) { if (deleteRecognizerRequestBuilder_ == null) { - if (requestCase_ == 11 && - request_ != com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.DeleteRecognizerRequest.newBuilder((com.google.cloud.speech.v2.DeleteRecognizerRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 11 + && request_ + != com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.DeleteRecognizerRequest.newBuilder( + (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -3496,6 +3961,8 @@ public Builder mergeDeleteRecognizerRequest(com.google.cloud.speech.v2.DeleteRec return this; } /** + * + * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
@@ -3519,16 +3986,21 @@ public Builder clearDeleteRecognizerRequest() { return this; } /** + * + * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ - public com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder getDeleteRecognizerRequestBuilder() { + public com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder + getDeleteRecognizerRequestBuilder() { return getDeleteRecognizerRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
@@ -3536,7 +4008,8 @@ public com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder getDeleteRecog * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ @java.lang.Override - public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder getDeleteRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder + getDeleteRecognizerRequestOrBuilder() { if ((requestCase_ == 11) && (deleteRecognizerRequestBuilder_ != null)) { return deleteRecognizerRequestBuilder_.getMessageOrBuilder(); } else { @@ -3547,6 +4020,8 @@ public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder getDeleteReco } } /** + * + * *
      * The DeleteRecognizerRequest that spawned the Operation.
      * 
@@ -3554,14 +4029,19 @@ public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder getDeleteReco * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder> + com.google.cloud.speech.v2.DeleteRecognizerRequest, + com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, + com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder> getDeleteRecognizerRequestFieldBuilder() { if (deleteRecognizerRequestBuilder_ == null) { if (!(requestCase_ == 11)) { request_ = com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance(); } - deleteRecognizerRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteRecognizerRequest, com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder>( + deleteRecognizerRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.DeleteRecognizerRequest, + com.google.cloud.speech.v2.DeleteRecognizerRequest.Builder, + com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder>( (com.google.cloud.speech.v2.DeleteRecognizerRequest) request_, getParentForChildren(), isClean()); @@ -3573,13 +4053,20 @@ public com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder getDeleteReco } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder> undeleteRecognizerRequestBuilder_; + com.google.cloud.speech.v2.UndeleteRecognizerRequest, + com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, + com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder> + undeleteRecognizerRequestBuilder_; /** + * + * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * + * * @return Whether the undeleteRecognizerRequest field is set. */ @java.lang.Override @@ -3587,11 +4074,15 @@ public boolean hasUndeleteRecognizerRequest() { return requestCase_ == 12; } /** + * + * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * + * * @return The undeleteRecognizerRequest. */ @java.lang.Override @@ -3609,13 +4100,17 @@ public com.google.cloud.speech.v2.UndeleteRecognizerRequest getUndeleteRecognize } } /** + * + * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * */ - public Builder setUndeleteRecognizerRequest(com.google.cloud.speech.v2.UndeleteRecognizerRequest value) { + public Builder setUndeleteRecognizerRequest( + com.google.cloud.speech.v2.UndeleteRecognizerRequest value) { if (undeleteRecognizerRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3629,11 +4124,14 @@ public Builder setUndeleteRecognizerRequest(com.google.cloud.speech.v2.UndeleteR return this; } /** + * + * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * */ public Builder setUndeleteRecognizerRequest( com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder builderForValue) { @@ -3647,18 +4145,26 @@ public Builder setUndeleteRecognizerRequest( return this; } /** + * + * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * */ - public Builder mergeUndeleteRecognizerRequest(com.google.cloud.speech.v2.UndeleteRecognizerRequest value) { + public Builder mergeUndeleteRecognizerRequest( + com.google.cloud.speech.v2.UndeleteRecognizerRequest value) { if (undeleteRecognizerRequestBuilder_ == null) { - if (requestCase_ == 12 && - request_ != com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.UndeleteRecognizerRequest.newBuilder((com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 12 + && request_ + != com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.UndeleteRecognizerRequest.newBuilder( + (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -3674,11 +4180,14 @@ public Builder mergeUndeleteRecognizerRequest(com.google.cloud.speech.v2.Undelet return this; } /** + * + * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * */ public Builder clearUndeleteRecognizerRequest() { if (undeleteRecognizerRequestBuilder_ == null) { @@ -3697,24 +4206,32 @@ public Builder clearUndeleteRecognizerRequest() { return this; } /** + * + * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * */ - public com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder getUndeleteRecognizerRequestBuilder() { + public com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder + getUndeleteRecognizerRequestBuilder() { return getUndeleteRecognizerRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * */ @java.lang.Override - public com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder getUndeleteRecognizerRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder + getUndeleteRecognizerRequestOrBuilder() { if ((requestCase_ == 12) && (undeleteRecognizerRequestBuilder_ != null)) { return undeleteRecognizerRequestBuilder_.getMessageOrBuilder(); } else { @@ -3725,21 +4242,29 @@ public com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder getUndelete } } /** + * + * *
      * The UndeleteRecognizerRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder> + com.google.cloud.speech.v2.UndeleteRecognizerRequest, + com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, + com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder> getUndeleteRecognizerRequestFieldBuilder() { if (undeleteRecognizerRequestBuilder_ == null) { if (!(requestCase_ == 12)) { request_ = com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance(); } - undeleteRecognizerRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder>( + undeleteRecognizerRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UndeleteRecognizerRequest, + com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder, + com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder>( (com.google.cloud.speech.v2.UndeleteRecognizerRequest) request_, getParentForChildren(), isClean()); @@ -3751,13 +4276,20 @@ public com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder getUndelete } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder> createCustomClassRequestBuilder_; + com.google.cloud.speech.v2.CreateCustomClassRequest, + com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, + com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder> + createCustomClassRequestBuilder_; /** + * + * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * + * * @return Whether the createCustomClassRequest field is set. */ @java.lang.Override @@ -3765,11 +4297,15 @@ public boolean hasCreateCustomClassRequest() { return requestCase_ == 13; } /** + * + * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * + * * @return The createCustomClassRequest. */ @java.lang.Override @@ -3787,13 +4323,17 @@ public com.google.cloud.speech.v2.CreateCustomClassRequest getCreateCustomClassR } } /** + * + * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * */ - public Builder setCreateCustomClassRequest(com.google.cloud.speech.v2.CreateCustomClassRequest value) { + public Builder setCreateCustomClassRequest( + com.google.cloud.speech.v2.CreateCustomClassRequest value) { if (createCustomClassRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3807,11 +4347,14 @@ public Builder setCreateCustomClassRequest(com.google.cloud.speech.v2.CreateCust return this; } /** + * + * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * */ public Builder setCreateCustomClassRequest( com.google.cloud.speech.v2.CreateCustomClassRequest.Builder builderForValue) { @@ -3825,18 +4368,26 @@ public Builder setCreateCustomClassRequest( return this; } /** + * + * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * */ - public Builder mergeCreateCustomClassRequest(com.google.cloud.speech.v2.CreateCustomClassRequest value) { + public Builder mergeCreateCustomClassRequest( + com.google.cloud.speech.v2.CreateCustomClassRequest value) { if (createCustomClassRequestBuilder_ == null) { - if (requestCase_ == 13 && - request_ != com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.CreateCustomClassRequest.newBuilder((com.google.cloud.speech.v2.CreateCustomClassRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 13 + && request_ + != com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.CreateCustomClassRequest.newBuilder( + (com.google.cloud.speech.v2.CreateCustomClassRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -3852,11 +4403,14 @@ public Builder mergeCreateCustomClassRequest(com.google.cloud.speech.v2.CreateCu return this; } /** + * + * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * */ public Builder clearCreateCustomClassRequest() { if (createCustomClassRequestBuilder_ == null) { @@ -3875,24 +4429,32 @@ public Builder clearCreateCustomClassRequest() { return this; } /** + * + * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * */ - public com.google.cloud.speech.v2.CreateCustomClassRequest.Builder getCreateCustomClassRequestBuilder() { + public com.google.cloud.speech.v2.CreateCustomClassRequest.Builder + getCreateCustomClassRequestBuilder() { return getCreateCustomClassRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * */ @java.lang.Override - public com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder getCreateCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder + getCreateCustomClassRequestOrBuilder() { if ((requestCase_ == 13) && (createCustomClassRequestBuilder_ != null)) { return createCustomClassRequestBuilder_.getMessageOrBuilder(); } else { @@ -3903,21 +4465,29 @@ public com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder getCreateCus } } /** + * + * *
      * The CreateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder> + com.google.cloud.speech.v2.CreateCustomClassRequest, + com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, + com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder> getCreateCustomClassRequestFieldBuilder() { if (createCustomClassRequestBuilder_ == null) { if (!(requestCase_ == 13)) { request_ = com.google.cloud.speech.v2.CreateCustomClassRequest.getDefaultInstance(); } - createCustomClassRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreateCustomClassRequest, com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder>( + createCustomClassRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.CreateCustomClassRequest, + com.google.cloud.speech.v2.CreateCustomClassRequest.Builder, + com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder>( (com.google.cloud.speech.v2.CreateCustomClassRequest) request_, getParentForChildren(), isClean()); @@ -3929,13 +4499,20 @@ public com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder getCreateCus } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder> updateCustomClassRequestBuilder_; + com.google.cloud.speech.v2.UpdateCustomClassRequest, + com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, + com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder> + updateCustomClassRequestBuilder_; /** + * + * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * + * * @return Whether the updateCustomClassRequest field is set. */ @java.lang.Override @@ -3943,11 +4520,15 @@ public boolean hasUpdateCustomClassRequest() { return requestCase_ == 14; } /** + * + * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * + * * @return The updateCustomClassRequest. */ @java.lang.Override @@ -3965,13 +4546,17 @@ public com.google.cloud.speech.v2.UpdateCustomClassRequest getUpdateCustomClassR } } /** + * + * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * */ - public Builder setUpdateCustomClassRequest(com.google.cloud.speech.v2.UpdateCustomClassRequest value) { + public Builder setUpdateCustomClassRequest( + com.google.cloud.speech.v2.UpdateCustomClassRequest value) { if (updateCustomClassRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3985,11 +4570,14 @@ public Builder setUpdateCustomClassRequest(com.google.cloud.speech.v2.UpdateCust return this; } /** + * + * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * */ public Builder setUpdateCustomClassRequest( com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder builderForValue) { @@ -4003,18 +4591,26 @@ public Builder setUpdateCustomClassRequest( return this; } /** + * + * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * */ - public Builder mergeUpdateCustomClassRequest(com.google.cloud.speech.v2.UpdateCustomClassRequest value) { + public Builder mergeUpdateCustomClassRequest( + com.google.cloud.speech.v2.UpdateCustomClassRequest value) { if (updateCustomClassRequestBuilder_ == null) { - if (requestCase_ == 14 && - request_ != com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.UpdateCustomClassRequest.newBuilder((com.google.cloud.speech.v2.UpdateCustomClassRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 14 + && request_ + != com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.UpdateCustomClassRequest.newBuilder( + (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -4030,11 +4626,14 @@ public Builder mergeUpdateCustomClassRequest(com.google.cloud.speech.v2.UpdateCu return this; } /** + * + * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * */ public Builder clearUpdateCustomClassRequest() { if (updateCustomClassRequestBuilder_ == null) { @@ -4053,24 +4652,32 @@ public Builder clearUpdateCustomClassRequest() { return this; } /** + * + * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * */ - public com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder getUpdateCustomClassRequestBuilder() { + public com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder + getUpdateCustomClassRequestBuilder() { return getUpdateCustomClassRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * */ @java.lang.Override - public com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder getUpdateCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder + getUpdateCustomClassRequestOrBuilder() { if ((requestCase_ == 14) && (updateCustomClassRequestBuilder_ != null)) { return updateCustomClassRequestBuilder_.getMessageOrBuilder(); } else { @@ -4081,21 +4688,29 @@ public com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder getUpdateCus } } /** + * + * *
      * The UpdateCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder> + com.google.cloud.speech.v2.UpdateCustomClassRequest, + com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, + com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder> getUpdateCustomClassRequestFieldBuilder() { if (updateCustomClassRequestBuilder_ == null) { if (!(requestCase_ == 14)) { request_ = com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance(); } - updateCustomClassRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateCustomClassRequest, com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder>( + updateCustomClassRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UpdateCustomClassRequest, + com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder, + com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder>( (com.google.cloud.speech.v2.UpdateCustomClassRequest) request_, getParentForChildren(), isClean()); @@ -4107,13 +4722,20 @@ public com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder getUpdateCus } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder> deleteCustomClassRequestBuilder_; + com.google.cloud.speech.v2.DeleteCustomClassRequest, + com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, + com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder> + deleteCustomClassRequestBuilder_; /** + * + * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * + * * @return Whether the deleteCustomClassRequest field is set. */ @java.lang.Override @@ -4121,11 +4743,15 @@ public boolean hasDeleteCustomClassRequest() { return requestCase_ == 15; } /** + * + * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * + * * @return The deleteCustomClassRequest. */ @java.lang.Override @@ -4143,13 +4769,17 @@ public com.google.cloud.speech.v2.DeleteCustomClassRequest getDeleteCustomClassR } } /** + * + * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * */ - public Builder setDeleteCustomClassRequest(com.google.cloud.speech.v2.DeleteCustomClassRequest value) { + public Builder setDeleteCustomClassRequest( + com.google.cloud.speech.v2.DeleteCustomClassRequest value) { if (deleteCustomClassRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4163,11 +4793,14 @@ public Builder setDeleteCustomClassRequest(com.google.cloud.speech.v2.DeleteCust return this; } /** + * + * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * */ public Builder setDeleteCustomClassRequest( com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder builderForValue) { @@ -4181,18 +4814,26 @@ public Builder setDeleteCustomClassRequest( return this; } /** + * + * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * */ - public Builder mergeDeleteCustomClassRequest(com.google.cloud.speech.v2.DeleteCustomClassRequest value) { + public Builder mergeDeleteCustomClassRequest( + com.google.cloud.speech.v2.DeleteCustomClassRequest value) { if (deleteCustomClassRequestBuilder_ == null) { - if (requestCase_ == 15 && - request_ != com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.DeleteCustomClassRequest.newBuilder((com.google.cloud.speech.v2.DeleteCustomClassRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 15 + && request_ + != com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.DeleteCustomClassRequest.newBuilder( + (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -4208,11 +4849,14 @@ public Builder mergeDeleteCustomClassRequest(com.google.cloud.speech.v2.DeleteCu return this; } /** + * + * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * */ public Builder clearDeleteCustomClassRequest() { if (deleteCustomClassRequestBuilder_ == null) { @@ -4231,24 +4875,32 @@ public Builder clearDeleteCustomClassRequest() { return this; } /** + * + * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * */ - public com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder getDeleteCustomClassRequestBuilder() { + public com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder + getDeleteCustomClassRequestBuilder() { return getDeleteCustomClassRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * */ @java.lang.Override - public com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder getDeleteCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder + getDeleteCustomClassRequestOrBuilder() { if ((requestCase_ == 15) && (deleteCustomClassRequestBuilder_ != null)) { return deleteCustomClassRequestBuilder_.getMessageOrBuilder(); } else { @@ -4259,21 +4911,29 @@ public com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder getDeleteCus } } /** + * + * *
      * The DeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder> + com.google.cloud.speech.v2.DeleteCustomClassRequest, + com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, + com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder> getDeleteCustomClassRequestFieldBuilder() { if (deleteCustomClassRequestBuilder_ == null) { if (!(requestCase_ == 15)) { request_ = com.google.cloud.speech.v2.DeleteCustomClassRequest.getDefaultInstance(); } - deleteCustomClassRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeleteCustomClassRequest, com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder>( + deleteCustomClassRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.DeleteCustomClassRequest, + com.google.cloud.speech.v2.DeleteCustomClassRequest.Builder, + com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder>( (com.google.cloud.speech.v2.DeleteCustomClassRequest) request_, getParentForChildren(), isClean()); @@ -4285,13 +4945,20 @@ public com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder getDeleteCus } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder> undeleteCustomClassRequestBuilder_; + com.google.cloud.speech.v2.UndeleteCustomClassRequest, + com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, + com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder> + undeleteCustomClassRequestBuilder_; /** + * + * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * + * * @return Whether the undeleteCustomClassRequest field is set. */ @java.lang.Override @@ -4299,11 +4966,15 @@ public boolean hasUndeleteCustomClassRequest() { return requestCase_ == 16; } /** + * + * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * + * * @return The undeleteCustomClassRequest. */ @java.lang.Override @@ -4321,13 +4992,17 @@ public com.google.cloud.speech.v2.UndeleteCustomClassRequest getUndeleteCustomCl } } /** + * + * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * */ - public Builder setUndeleteCustomClassRequest(com.google.cloud.speech.v2.UndeleteCustomClassRequest value) { + public Builder setUndeleteCustomClassRequest( + com.google.cloud.speech.v2.UndeleteCustomClassRequest value) { if (undeleteCustomClassRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4341,11 +5016,14 @@ public Builder setUndeleteCustomClassRequest(com.google.cloud.speech.v2.Undelete return this; } /** + * + * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * */ public Builder setUndeleteCustomClassRequest( com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder builderForValue) { @@ -4359,18 +5037,26 @@ public Builder setUndeleteCustomClassRequest( return this; } /** + * + * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * */ - public Builder mergeUndeleteCustomClassRequest(com.google.cloud.speech.v2.UndeleteCustomClassRequest value) { + public Builder mergeUndeleteCustomClassRequest( + com.google.cloud.speech.v2.UndeleteCustomClassRequest value) { if (undeleteCustomClassRequestBuilder_ == null) { - if (requestCase_ == 16 && - request_ != com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.UndeleteCustomClassRequest.newBuilder((com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 16 + && request_ + != com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.UndeleteCustomClassRequest.newBuilder( + (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -4386,11 +5072,14 @@ public Builder mergeUndeleteCustomClassRequest(com.google.cloud.speech.v2.Undele return this; } /** + * + * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * */ public Builder clearUndeleteCustomClassRequest() { if (undeleteCustomClassRequestBuilder_ == null) { @@ -4409,24 +5098,32 @@ public Builder clearUndeleteCustomClassRequest() { return this; } /** + * + * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * */ - public com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder getUndeleteCustomClassRequestBuilder() { + public com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder + getUndeleteCustomClassRequestBuilder() { return getUndeleteCustomClassRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * */ @java.lang.Override - public com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder getUndeleteCustomClassRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder + getUndeleteCustomClassRequestOrBuilder() { if ((requestCase_ == 16) && (undeleteCustomClassRequestBuilder_ != null)) { return undeleteCustomClassRequestBuilder_.getMessageOrBuilder(); } else { @@ -4437,21 +5134,29 @@ public com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder getUndelet } } /** + * + * *
      * The UndeleteCustomClassRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder> + com.google.cloud.speech.v2.UndeleteCustomClassRequest, + com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, + com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder> getUndeleteCustomClassRequestFieldBuilder() { if (undeleteCustomClassRequestBuilder_ == null) { if (!(requestCase_ == 16)) { request_ = com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance(); } - undeleteCustomClassRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder>( + undeleteCustomClassRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UndeleteCustomClassRequest, + com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder, + com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder>( (com.google.cloud.speech.v2.UndeleteCustomClassRequest) request_, getParentForChildren(), isClean()); @@ -4463,13 +5168,19 @@ public com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder getUndelet } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder> createPhraseSetRequestBuilder_; + com.google.cloud.speech.v2.CreatePhraseSetRequest, + com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, + com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder> + createPhraseSetRequestBuilder_; /** + * + * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; + * * @return Whether the createPhraseSetRequest field is set. */ @java.lang.Override @@ -4477,11 +5188,14 @@ public boolean hasCreatePhraseSetRequest() { return requestCase_ == 17; } /** + * + * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; + * * @return The createPhraseSetRequest. */ @java.lang.Override @@ -4499,13 +5213,16 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequest getCreatePhraseSetReque } } /** + * + * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ - public Builder setCreatePhraseSetRequest(com.google.cloud.speech.v2.CreatePhraseSetRequest value) { + public Builder setCreatePhraseSetRequest( + com.google.cloud.speech.v2.CreatePhraseSetRequest value) { if (createPhraseSetRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4519,6 +5236,8 @@ public Builder setCreatePhraseSetRequest(com.google.cloud.speech.v2.CreatePhrase return this; } /** + * + * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
@@ -4537,18 +5256,24 @@ public Builder setCreatePhraseSetRequest( return this; } /** + * + * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ - public Builder mergeCreatePhraseSetRequest(com.google.cloud.speech.v2.CreatePhraseSetRequest value) { + public Builder mergeCreatePhraseSetRequest( + com.google.cloud.speech.v2.CreatePhraseSetRequest value) { if (createPhraseSetRequestBuilder_ == null) { - if (requestCase_ == 17 && - request_ != com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.CreatePhraseSetRequest.newBuilder((com.google.cloud.speech.v2.CreatePhraseSetRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 17 + && request_ != com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.CreatePhraseSetRequest.newBuilder( + (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -4564,6 +5289,8 @@ public Builder mergeCreatePhraseSetRequest(com.google.cloud.speech.v2.CreatePhra return this; } /** + * + * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
@@ -4587,16 +5314,21 @@ public Builder clearCreatePhraseSetRequest() { return this; } /** + * + * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ - public com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder getCreatePhraseSetRequestBuilder() { + public com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder + getCreatePhraseSetRequestBuilder() { return getCreatePhraseSetRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
@@ -4604,7 +5336,8 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder getCreatePhrase * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ @java.lang.Override - public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder getCreatePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder + getCreatePhraseSetRequestOrBuilder() { if ((requestCase_ == 17) && (createPhraseSetRequestBuilder_ != null)) { return createPhraseSetRequestBuilder_.getMessageOrBuilder(); } else { @@ -4615,6 +5348,8 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder getCreatePhras } } /** + * + * *
      * The CreatePhraseSetRequest that spawned the Operation.
      * 
@@ -4622,14 +5357,19 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder getCreatePhras * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder> + com.google.cloud.speech.v2.CreatePhraseSetRequest, + com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, + com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder> getCreatePhraseSetRequestFieldBuilder() { if (createPhraseSetRequestBuilder_ == null) { if (!(requestCase_ == 17)) { request_ = com.google.cloud.speech.v2.CreatePhraseSetRequest.getDefaultInstance(); } - createPhraseSetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CreatePhraseSetRequest, com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder>( + createPhraseSetRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.CreatePhraseSetRequest, + com.google.cloud.speech.v2.CreatePhraseSetRequest.Builder, + com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder>( (com.google.cloud.speech.v2.CreatePhraseSetRequest) request_, getParentForChildren(), isClean()); @@ -4641,13 +5381,19 @@ public com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder getCreatePhras } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder> updatePhraseSetRequestBuilder_; + com.google.cloud.speech.v2.UpdatePhraseSetRequest, + com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, + com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder> + updatePhraseSetRequestBuilder_; /** + * + * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; + * * @return Whether the updatePhraseSetRequest field is set. */ @java.lang.Override @@ -4655,11 +5401,14 @@ public boolean hasUpdatePhraseSetRequest() { return requestCase_ == 18; } /** + * + * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; + * * @return The updatePhraseSetRequest. */ @java.lang.Override @@ -4677,13 +5426,16 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequest getUpdatePhraseSetReque } } /** + * + * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ - public Builder setUpdatePhraseSetRequest(com.google.cloud.speech.v2.UpdatePhraseSetRequest value) { + public Builder setUpdatePhraseSetRequest( + com.google.cloud.speech.v2.UpdatePhraseSetRequest value) { if (updatePhraseSetRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4697,6 +5449,8 @@ public Builder setUpdatePhraseSetRequest(com.google.cloud.speech.v2.UpdatePhrase return this; } /** + * + * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
@@ -4715,18 +5469,24 @@ public Builder setUpdatePhraseSetRequest( return this; } /** + * + * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ - public Builder mergeUpdatePhraseSetRequest(com.google.cloud.speech.v2.UpdatePhraseSetRequest value) { + public Builder mergeUpdatePhraseSetRequest( + com.google.cloud.speech.v2.UpdatePhraseSetRequest value) { if (updatePhraseSetRequestBuilder_ == null) { - if (requestCase_ == 18 && - request_ != com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.UpdatePhraseSetRequest.newBuilder((com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 18 + && request_ != com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.UpdatePhraseSetRequest.newBuilder( + (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -4742,6 +5502,8 @@ public Builder mergeUpdatePhraseSetRequest(com.google.cloud.speech.v2.UpdatePhra return this; } /** + * + * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
@@ -4765,16 +5527,21 @@ public Builder clearUpdatePhraseSetRequest() { return this; } /** + * + * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ - public com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder getUpdatePhraseSetRequestBuilder() { + public com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder + getUpdatePhraseSetRequestBuilder() { return getUpdatePhraseSetRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
@@ -4782,7 +5549,8 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder getUpdatePhrase * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder getUpdatePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder + getUpdatePhraseSetRequestOrBuilder() { if ((requestCase_ == 18) && (updatePhraseSetRequestBuilder_ != null)) { return updatePhraseSetRequestBuilder_.getMessageOrBuilder(); } else { @@ -4793,6 +5561,8 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder getUpdatePhras } } /** + * + * *
      * The UpdatePhraseSetRequest that spawned the Operation.
      * 
@@ -4800,14 +5570,19 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder getUpdatePhras * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder> + com.google.cloud.speech.v2.UpdatePhraseSetRequest, + com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, + com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder> getUpdatePhraseSetRequestFieldBuilder() { if (updatePhraseSetRequestBuilder_ == null) { if (!(requestCase_ == 18)) { request_ = com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance(); } - updatePhraseSetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder>( + updatePhraseSetRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UpdatePhraseSetRequest, + com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder, + com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder>( (com.google.cloud.speech.v2.UpdatePhraseSetRequest) request_, getParentForChildren(), isClean()); @@ -4819,13 +5594,19 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder getUpdatePhras } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder> deletePhraseSetRequestBuilder_; + com.google.cloud.speech.v2.DeletePhraseSetRequest, + com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, + com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder> + deletePhraseSetRequestBuilder_; /** + * + * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; + * * @return Whether the deletePhraseSetRequest field is set. */ @java.lang.Override @@ -4833,11 +5614,14 @@ public boolean hasDeletePhraseSetRequest() { return requestCase_ == 19; } /** + * + * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; + * * @return The deletePhraseSetRequest. */ @java.lang.Override @@ -4855,13 +5639,16 @@ public com.google.cloud.speech.v2.DeletePhraseSetRequest getDeletePhraseSetReque } } /** + * + * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ - public Builder setDeletePhraseSetRequest(com.google.cloud.speech.v2.DeletePhraseSetRequest value) { + public Builder setDeletePhraseSetRequest( + com.google.cloud.speech.v2.DeletePhraseSetRequest value) { if (deletePhraseSetRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4875,6 +5662,8 @@ public Builder setDeletePhraseSetRequest(com.google.cloud.speech.v2.DeletePhrase return this; } /** + * + * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
@@ -4893,18 +5682,24 @@ public Builder setDeletePhraseSetRequest( return this; } /** + * + * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ - public Builder mergeDeletePhraseSetRequest(com.google.cloud.speech.v2.DeletePhraseSetRequest value) { + public Builder mergeDeletePhraseSetRequest( + com.google.cloud.speech.v2.DeletePhraseSetRequest value) { if (deletePhraseSetRequestBuilder_ == null) { - if (requestCase_ == 19 && - request_ != com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.DeletePhraseSetRequest.newBuilder((com.google.cloud.speech.v2.DeletePhraseSetRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 19 + && request_ != com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.DeletePhraseSetRequest.newBuilder( + (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -4920,6 +5715,8 @@ public Builder mergeDeletePhraseSetRequest(com.google.cloud.speech.v2.DeletePhra return this; } /** + * + * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
@@ -4943,16 +5740,21 @@ public Builder clearDeletePhraseSetRequest() { return this; } /** + * + * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ - public com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder getDeletePhraseSetRequestBuilder() { + public com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder + getDeletePhraseSetRequestBuilder() { return getDeletePhraseSetRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
@@ -4960,7 +5762,8 @@ public com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder getDeletePhrase * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ @java.lang.Override - public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder getDeletePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder + getDeletePhraseSetRequestOrBuilder() { if ((requestCase_ == 19) && (deletePhraseSetRequestBuilder_ != null)) { return deletePhraseSetRequestBuilder_.getMessageOrBuilder(); } else { @@ -4971,6 +5774,8 @@ public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder getDeletePhras } } /** + * + * *
      * The DeletePhraseSetRequest that spawned the Operation.
      * 
@@ -4978,14 +5783,19 @@ public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder getDeletePhras * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder> + com.google.cloud.speech.v2.DeletePhraseSetRequest, + com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, + com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder> getDeletePhraseSetRequestFieldBuilder() { if (deletePhraseSetRequestBuilder_ == null) { if (!(requestCase_ == 19)) { request_ = com.google.cloud.speech.v2.DeletePhraseSetRequest.getDefaultInstance(); } - deletePhraseSetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.DeletePhraseSetRequest, com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder>( + deletePhraseSetRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.DeletePhraseSetRequest, + com.google.cloud.speech.v2.DeletePhraseSetRequest.Builder, + com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder>( (com.google.cloud.speech.v2.DeletePhraseSetRequest) request_, getParentForChildren(), isClean()); @@ -4997,13 +5807,20 @@ public com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder getDeletePhras } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder> undeletePhraseSetRequestBuilder_; + com.google.cloud.speech.v2.UndeletePhraseSetRequest, + com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, + com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder> + undeletePhraseSetRequestBuilder_; /** + * + * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * + * * @return Whether the undeletePhraseSetRequest field is set. */ @java.lang.Override @@ -5011,11 +5828,15 @@ public boolean hasUndeletePhraseSetRequest() { return requestCase_ == 20; } /** + * + * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * + * * @return The undeletePhraseSetRequest. */ @java.lang.Override @@ -5033,13 +5854,17 @@ public com.google.cloud.speech.v2.UndeletePhraseSetRequest getUndeletePhraseSetR } } /** + * + * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * */ - public Builder setUndeletePhraseSetRequest(com.google.cloud.speech.v2.UndeletePhraseSetRequest value) { + public Builder setUndeletePhraseSetRequest( + com.google.cloud.speech.v2.UndeletePhraseSetRequest value) { if (undeletePhraseSetRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5053,11 +5878,14 @@ public Builder setUndeletePhraseSetRequest(com.google.cloud.speech.v2.UndeletePh return this; } /** + * + * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * */ public Builder setUndeletePhraseSetRequest( com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder builderForValue) { @@ -5071,18 +5899,26 @@ public Builder setUndeletePhraseSetRequest( return this; } /** + * + * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * */ - public Builder mergeUndeletePhraseSetRequest(com.google.cloud.speech.v2.UndeletePhraseSetRequest value) { + public Builder mergeUndeletePhraseSetRequest( + com.google.cloud.speech.v2.UndeletePhraseSetRequest value) { if (undeletePhraseSetRequestBuilder_ == null) { - if (requestCase_ == 20 && - request_ != com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.UndeletePhraseSetRequest.newBuilder((com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 20 + && request_ + != com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.UndeletePhraseSetRequest.newBuilder( + (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -5098,11 +5934,14 @@ public Builder mergeUndeletePhraseSetRequest(com.google.cloud.speech.v2.Undelete return this; } /** + * + * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * */ public Builder clearUndeletePhraseSetRequest() { if (undeletePhraseSetRequestBuilder_ == null) { @@ -5121,24 +5960,32 @@ public Builder clearUndeletePhraseSetRequest() { return this; } /** + * + * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * */ - public com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder getUndeletePhraseSetRequestBuilder() { + public com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder + getUndeletePhraseSetRequestBuilder() { return getUndeletePhraseSetRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * */ @java.lang.Override - public com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder getUndeletePhraseSetRequestOrBuilder() { + public com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder + getUndeletePhraseSetRequestOrBuilder() { if ((requestCase_ == 20) && (undeletePhraseSetRequestBuilder_ != null)) { return undeletePhraseSetRequestBuilder_.getMessageOrBuilder(); } else { @@ -5149,21 +5996,29 @@ public com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder getUndeleteP } } /** + * + * *
      * The UndeletePhraseSetRequest that spawned the Operation.
      * 
* - * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder> + com.google.cloud.speech.v2.UndeletePhraseSetRequest, + com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, + com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder> getUndeletePhraseSetRequestFieldBuilder() { if (undeletePhraseSetRequestBuilder_ == null) { if (!(requestCase_ == 20)) { request_ = com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance(); } - undeletePhraseSetRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder>( + undeletePhraseSetRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UndeletePhraseSetRequest, + com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder, + com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder>( (com.google.cloud.speech.v2.UndeletePhraseSetRequest) request_, getParentForChildren(), isClean()); @@ -5175,13 +6030,19 @@ public com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder getUndeleteP } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.UpdateConfigRequest.Builder, com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder> updateConfigRequestBuilder_; + com.google.cloud.speech.v2.UpdateConfigRequest, + com.google.cloud.speech.v2.UpdateConfigRequest.Builder, + com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder> + updateConfigRequestBuilder_; /** + * + * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; + * * @return Whether the updateConfigRequest field is set. */ @java.lang.Override @@ -5189,11 +6050,14 @@ public boolean hasUpdateConfigRequest() { return requestCase_ == 21; } /** + * + * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; + * * @return The updateConfigRequest. */ @java.lang.Override @@ -5211,6 +6075,8 @@ public com.google.cloud.speech.v2.UpdateConfigRequest getUpdateConfigRequest() { } } /** + * + * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -5231,6 +6097,8 @@ public Builder setUpdateConfigRequest(com.google.cloud.speech.v2.UpdateConfigReq return this; } /** + * + * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -5249,6 +6117,8 @@ public Builder setUpdateConfigRequest( return this; } /** + * + * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -5257,10 +6127,13 @@ public Builder setUpdateConfigRequest( */ public Builder mergeUpdateConfigRequest(com.google.cloud.speech.v2.UpdateConfigRequest value) { if (updateConfigRequestBuilder_ == null) { - if (requestCase_ == 21 && - request_ != com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance()) { - request_ = com.google.cloud.speech.v2.UpdateConfigRequest.newBuilder((com.google.cloud.speech.v2.UpdateConfigRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 21 + && request_ != com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance()) { + request_ = + com.google.cloud.speech.v2.UpdateConfigRequest.newBuilder( + (com.google.cloud.speech.v2.UpdateConfigRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -5276,6 +6149,8 @@ public Builder mergeUpdateConfigRequest(com.google.cloud.speech.v2.UpdateConfigR return this; } /** + * + * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -5299,6 +6174,8 @@ public Builder clearUpdateConfigRequest() { return this; } /** + * + * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -5309,6 +6186,8 @@ public com.google.cloud.speech.v2.UpdateConfigRequest.Builder getUpdateConfigReq return getUpdateConfigRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -5316,7 +6195,8 @@ public com.google.cloud.speech.v2.UpdateConfigRequest.Builder getUpdateConfigReq * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; */ @java.lang.Override - public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRequestOrBuilder() { + public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder + getUpdateConfigRequestOrBuilder() { if ((requestCase_ == 21) && (updateConfigRequestBuilder_ != null)) { return updateConfigRequestBuilder_.getMessageOrBuilder(); } else { @@ -5327,6 +6207,8 @@ public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRe } } /** + * + * *
      * The UpdateConfigRequest that spawned the Operation.
      * 
@@ -5334,14 +6216,19 @@ public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRe * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.UpdateConfigRequest.Builder, com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder> + com.google.cloud.speech.v2.UpdateConfigRequest, + com.google.cloud.speech.v2.UpdateConfigRequest.Builder, + com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder> getUpdateConfigRequestFieldBuilder() { if (updateConfigRequestBuilder_ == null) { if (!(requestCase_ == 21)) { request_ = com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance(); } - updateConfigRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.UpdateConfigRequest, com.google.cloud.speech.v2.UpdateConfigRequest.Builder, com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder>( + updateConfigRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.UpdateConfigRequest, + com.google.cloud.speech.v2.UpdateConfigRequest.Builder, + com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder>( (com.google.cloud.speech.v2.UpdateConfigRequest) request_, getParentForChildren(), isClean()); @@ -5352,14 +6239,17 @@ public com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRe return updateConfigRequestBuilder_; } - private int progressPercent_ ; + private int progressPercent_; /** + * + * *
      * The percent progress of the Operation. Values can range from 0-100. If the
      * value is 100, then the operation is finished.
      * 
* * int32 progress_percent = 22; + * * @return The progressPercent. */ @java.lang.Override @@ -5367,29 +6257,35 @@ public int getProgressPercent() { return progressPercent_; } /** + * + * *
      * The percent progress of the Operation. Values can range from 0-100. If the
      * value is 100, then the operation is finished.
      * 
* * int32 progress_percent = 22; + * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; bitField0_ |= 0x00100000; onChanged(); return this; } /** + * + * *
      * The percent progress of the Operation. Values can range from 0-100. If the
      * value is 100, then the operation is finished.
      * 
* * int32 progress_percent = 22; + * * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -5400,13 +6296,19 @@ public Builder clearProgressPercent() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeMetadata, com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder> batchRecognizeMetadataBuilder_; + com.google.cloud.speech.v2.BatchRecognizeMetadata, + com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, + com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder> + batchRecognizeMetadataBuilder_; /** + * + * *
      * Metadata specific to the BatchRecognize method.
      * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; + * * @return Whether the batchRecognizeMetadata field is set. */ @java.lang.Override @@ -5414,11 +6316,14 @@ public boolean hasBatchRecognizeMetadata() { return metadataCase_ == 23; } /** + * + * *
      * Metadata specific to the BatchRecognize method.
      * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; + * * @return The batchRecognizeMetadata. */ @java.lang.Override @@ -5436,13 +6341,16 @@ public com.google.cloud.speech.v2.BatchRecognizeMetadata getBatchRecognizeMetada } } /** + * + * *
      * Metadata specific to the BatchRecognize method.
      * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ - public Builder setBatchRecognizeMetadata(com.google.cloud.speech.v2.BatchRecognizeMetadata value) { + public Builder setBatchRecognizeMetadata( + com.google.cloud.speech.v2.BatchRecognizeMetadata value) { if (batchRecognizeMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5456,6 +6364,8 @@ public Builder setBatchRecognizeMetadata(com.google.cloud.speech.v2.BatchRecogni return this; } /** + * + * *
      * Metadata specific to the BatchRecognize method.
      * 
@@ -5474,18 +6384,25 @@ public Builder setBatchRecognizeMetadata( return this; } /** + * + * *
      * Metadata specific to the BatchRecognize method.
      * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ - public Builder mergeBatchRecognizeMetadata(com.google.cloud.speech.v2.BatchRecognizeMetadata value) { + public Builder mergeBatchRecognizeMetadata( + com.google.cloud.speech.v2.BatchRecognizeMetadata value) { if (batchRecognizeMetadataBuilder_ == null) { - if (metadataCase_ == 23 && - metadata_ != com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance()) { - metadata_ = com.google.cloud.speech.v2.BatchRecognizeMetadata.newBuilder((com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_) - .mergeFrom(value).buildPartial(); + if (metadataCase_ == 23 + && metadata_ + != com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance()) { + metadata_ = + com.google.cloud.speech.v2.BatchRecognizeMetadata.newBuilder( + (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_) + .mergeFrom(value) + .buildPartial(); } else { metadata_ = value; } @@ -5501,6 +6418,8 @@ public Builder mergeBatchRecognizeMetadata(com.google.cloud.speech.v2.BatchRecog return this; } /** + * + * *
      * Metadata specific to the BatchRecognize method.
      * 
@@ -5524,16 +6443,21 @@ public Builder clearBatchRecognizeMetadata() { return this; } /** + * + * *
      * Metadata specific to the BatchRecognize method.
      * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ - public com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder getBatchRecognizeMetadataBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder + getBatchRecognizeMetadataBuilder() { return getBatchRecognizeMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata specific to the BatchRecognize method.
      * 
@@ -5541,7 +6465,8 @@ public com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder getBatchRecogni * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ @java.lang.Override - public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder getBatchRecognizeMetadataOrBuilder() { + public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder + getBatchRecognizeMetadataOrBuilder() { if ((metadataCase_ == 23) && (batchRecognizeMetadataBuilder_ != null)) { return batchRecognizeMetadataBuilder_.getMessageOrBuilder(); } else { @@ -5552,6 +6477,8 @@ public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder getBatchRecogn } } /** + * + * *
      * Metadata specific to the BatchRecognize method.
      * 
@@ -5559,14 +6486,19 @@ public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder getBatchRecogn * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeMetadata, com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder> + com.google.cloud.speech.v2.BatchRecognizeMetadata, + com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, + com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder> getBatchRecognizeMetadataFieldBuilder() { if (batchRecognizeMetadataBuilder_ == null) { if (!(metadataCase_ == 23)) { metadata_ = com.google.cloud.speech.v2.BatchRecognizeMetadata.getDefaultInstance(); } - batchRecognizeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.BatchRecognizeMetadata, com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder>( + batchRecognizeMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.BatchRecognizeMetadata, + com.google.cloud.speech.v2.BatchRecognizeMetadata.Builder, + com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder>( (com.google.cloud.speech.v2.BatchRecognizeMetadata) metadata_, getParentForChildren(), isClean()); @@ -5576,9 +6508,9 @@ public com.google.cloud.speech.v2.BatchRecognizeMetadataOrBuilder getBatchRecogn onChanged(); return batchRecognizeMetadataBuilder_; } + @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); } @@ -5588,12 +6520,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.OperationMetadata) private static final com.google.cloud.speech.v2.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.OperationMetadata(); } @@ -5602,27 +6534,27 @@ public static com.google.cloud.speech.v2.OperationMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5637,6 +6569,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java similarity index 87% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java index 91aed4456f0c..8baa2442726f 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/OperationMetadataOrBuilder.java @@ -1,31 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
@@ -35,24 +59,32 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time the operation was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 2; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The time the operation was last updated.
    * 
* * .google.protobuf.Timestamp update_time = 2; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The time the operation was last updated.
    * 
@@ -62,46 +94,58 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * The resource path for the target of the operation.
    * 
* * string resource = 3; + * * @return The resource. */ java.lang.String getResource(); /** + * + * *
    * The resource path for the target of the operation.
    * 
* * string resource = 3; + * * @return The bytes for resource. */ - com.google.protobuf.ByteString - getResourceBytes(); + com.google.protobuf.ByteString getResourceBytes(); /** + * + * *
    * The method that triggered the operation.
    * 
* * string method = 4; + * * @return The method. */ java.lang.String getMethod(); /** + * + * *
    * The method that triggered the operation.
    * 
* * string method = 4; + * * @return The bytes for method. */ - com.google.protobuf.ByteString - getMethodBytes(); + com.google.protobuf.ByteString getMethodBytes(); /** + * + * *
    * The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -110,10 +154,13 @@ public interface OperationMetadataOrBuilder extends
    * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } + * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** + * + * *
    * The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -122,12 +169,14 @@ public interface OperationMetadataOrBuilder extends
    * 
* * string kms_key_name = 6 [(.google.api.resource_reference) = { ... } + * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString - getKmsKeyNameBytes(); + com.google.protobuf.ByteString getKmsKeyNameBytes(); /** + * + * *
    * The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -136,10 +185,13 @@ public interface OperationMetadataOrBuilder extends
    * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } + * * @return The kmsKeyVersionName. */ java.lang.String getKmsKeyVersionName(); /** + * + * *
    * The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -148,30 +200,38 @@ public interface OperationMetadataOrBuilder extends
    * 
* * string kms_key_version_name = 7 [(.google.api.resource_reference) = { ... } + * * @return The bytes for kmsKeyVersionName. */ - com.google.protobuf.ByteString - getKmsKeyVersionNameBytes(); + com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); /** + * + * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; + * * @return Whether the batchRecognizeRequest field is set. */ boolean hasBatchRecognizeRequest(); /** + * + * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.BatchRecognizeRequest batch_recognize_request = 8; + * * @return The batchRecognizeRequest. */ com.google.cloud.speech.v2.BatchRecognizeRequest getBatchRecognizeRequest(); /** + * + * *
    * The BatchRecognizeRequest that spawned the Operation.
    * 
@@ -181,24 +241,32 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.speech.v2.BatchRecognizeRequestOrBuilder getBatchRecognizeRequestOrBuilder(); /** + * + * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; + * * @return Whether the createRecognizerRequest field is set. */ boolean hasCreateRecognizerRequest(); /** + * + * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateRecognizerRequest create_recognizer_request = 9; + * * @return The createRecognizerRequest. */ com.google.cloud.speech.v2.CreateRecognizerRequest getCreateRecognizerRequest(); /** + * + * *
    * The CreateRecognizerRequest that spawned the Operation.
    * 
@@ -208,24 +276,32 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.speech.v2.CreateRecognizerRequestOrBuilder getCreateRecognizerRequestOrBuilder(); /** + * + * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; + * * @return Whether the updateRecognizerRequest field is set. */ boolean hasUpdateRecognizerRequest(); /** + * + * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateRecognizerRequest update_recognizer_request = 10; + * * @return The updateRecognizerRequest. */ com.google.cloud.speech.v2.UpdateRecognizerRequest getUpdateRecognizerRequest(); /** + * + * *
    * The UpdateRecognizerRequest that spawned the Operation.
    * 
@@ -235,24 +311,32 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder getUpdateRecognizerRequestOrBuilder(); /** + * + * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; + * * @return Whether the deleteRecognizerRequest field is set. */ boolean hasDeleteRecognizerRequest(); /** + * + * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteRecognizerRequest delete_recognizer_request = 11; + * * @return The deleteRecognizerRequest. */ com.google.cloud.speech.v2.DeleteRecognizerRequest getDeleteRecognizerRequest(); /** + * + * *
    * The DeleteRecognizerRequest that spawned the Operation.
    * 
@@ -262,159 +346,218 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.speech.v2.DeleteRecognizerRequestOrBuilder getDeleteRecognizerRequestOrBuilder(); /** + * + * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * + * * @return Whether the undeleteRecognizerRequest field is set. */ boolean hasUndeleteRecognizerRequest(); /** + * + * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * + * * @return The undeleteRecognizerRequest. */ com.google.cloud.speech.v2.UndeleteRecognizerRequest getUndeleteRecognizerRequest(); /** + * + * *
    * The UndeleteRecognizerRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * .google.cloud.speech.v2.UndeleteRecognizerRequest undelete_recognizer_request = 12; + * */ - com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder getUndeleteRecognizerRequestOrBuilder(); + com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder + getUndeleteRecognizerRequestOrBuilder(); /** + * + * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * * @return Whether the createCustomClassRequest field is set. */ boolean hasCreateCustomClassRequest(); /** + * + * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; + * * @return The createCustomClassRequest. */ com.google.cloud.speech.v2.CreateCustomClassRequest getCreateCustomClassRequest(); /** + * + * *
    * The CreateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreateCustomClassRequest create_custom_class_request = 13; */ - com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder getCreateCustomClassRequestOrBuilder(); + com.google.cloud.speech.v2.CreateCustomClassRequestOrBuilder + getCreateCustomClassRequestOrBuilder(); /** + * + * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * * @return Whether the updateCustomClassRequest field is set. */ boolean hasUpdateCustomClassRequest(); /** + * + * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; + * * @return The updateCustomClassRequest. */ com.google.cloud.speech.v2.UpdateCustomClassRequest getUpdateCustomClassRequest(); /** + * + * *
    * The UpdateCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateCustomClassRequest update_custom_class_request = 14; */ - com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder getUpdateCustomClassRequestOrBuilder(); + com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder + getUpdateCustomClassRequestOrBuilder(); /** + * + * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * * @return Whether the deleteCustomClassRequest field is set. */ boolean hasDeleteCustomClassRequest(); /** + * + * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; + * * @return The deleteCustomClassRequest. */ com.google.cloud.speech.v2.DeleteCustomClassRequest getDeleteCustomClassRequest(); /** + * + * *
    * The DeleteCustomClassRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeleteCustomClassRequest delete_custom_class_request = 15; */ - com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder getDeleteCustomClassRequestOrBuilder(); + com.google.cloud.speech.v2.DeleteCustomClassRequestOrBuilder + getDeleteCustomClassRequestOrBuilder(); /** + * + * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * + * * @return Whether the undeleteCustomClassRequest field is set. */ boolean hasUndeleteCustomClassRequest(); /** + * + * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * + * * @return The undeleteCustomClassRequest. */ com.google.cloud.speech.v2.UndeleteCustomClassRequest getUndeleteCustomClassRequest(); /** + * + * *
    * The UndeleteCustomClassRequest that spawned the Operation.
    * 
* - * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * .google.cloud.speech.v2.UndeleteCustomClassRequest undelete_custom_class_request = 16; + * */ - com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder getUndeleteCustomClassRequestOrBuilder(); + com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder + getUndeleteCustomClassRequestOrBuilder(); /** + * + * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; + * * @return Whether the createPhraseSetRequest field is set. */ boolean hasCreatePhraseSetRequest(); /** + * + * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.CreatePhraseSetRequest create_phrase_set_request = 17; + * * @return The createPhraseSetRequest. */ com.google.cloud.speech.v2.CreatePhraseSetRequest getCreatePhraseSetRequest(); /** + * + * *
    * The CreatePhraseSetRequest that spawned the Operation.
    * 
@@ -424,24 +567,32 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.speech.v2.CreatePhraseSetRequestOrBuilder getCreatePhraseSetRequestOrBuilder(); /** + * + * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; + * * @return Whether the updatePhraseSetRequest field is set. */ boolean hasUpdatePhraseSetRequest(); /** + * + * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdatePhraseSetRequest update_phrase_set_request = 18; + * * @return The updatePhraseSetRequest. */ com.google.cloud.speech.v2.UpdatePhraseSetRequest getUpdatePhraseSetRequest(); /** + * + * *
    * The UpdatePhraseSetRequest that spawned the Operation.
    * 
@@ -451,24 +602,32 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder getUpdatePhraseSetRequestOrBuilder(); /** + * + * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; + * * @return Whether the deletePhraseSetRequest field is set. */ boolean hasDeletePhraseSetRequest(); /** + * + * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.DeletePhraseSetRequest delete_phrase_set_request = 19; + * * @return The deletePhraseSetRequest. */ com.google.cloud.speech.v2.DeletePhraseSetRequest getDeletePhraseSetRequest(); /** + * + * *
    * The DeletePhraseSetRequest that spawned the Operation.
    * 
@@ -478,51 +637,68 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.speech.v2.DeletePhraseSetRequestOrBuilder getDeletePhraseSetRequestOrBuilder(); /** + * + * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * * @return Whether the undeletePhraseSetRequest field is set. */ boolean hasUndeletePhraseSetRequest(); /** + * + * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; + * * @return The undeletePhraseSetRequest. */ com.google.cloud.speech.v2.UndeletePhraseSetRequest getUndeletePhraseSetRequest(); /** + * + * *
    * The UndeletePhraseSetRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UndeletePhraseSetRequest undelete_phrase_set_request = 20; */ - com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder getUndeletePhraseSetRequestOrBuilder(); + com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder + getUndeletePhraseSetRequestOrBuilder(); /** + * + * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; + * * @return Whether the updateConfigRequest field is set. */ boolean hasUpdateConfigRequest(); /** + * + * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
* * .google.cloud.speech.v2.UpdateConfigRequest update_config_request = 21; + * * @return The updateConfigRequest. */ com.google.cloud.speech.v2.UpdateConfigRequest getUpdateConfigRequest(); /** + * + * *
    * The UpdateConfigRequest that spawned the Operation.
    * 
@@ -532,35 +708,46 @@ public interface OperationMetadataOrBuilder extends com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder getUpdateConfigRequestOrBuilder(); /** + * + * *
    * The percent progress of the Operation. Values can range from 0-100. If the
    * value is 100, then the operation is finished.
    * 
* * int32 progress_percent = 22; + * * @return The progressPercent. */ int getProgressPercent(); /** + * + * *
    * Metadata specific to the BatchRecognize method.
    * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; + * * @return Whether the batchRecognizeMetadata field is set. */ boolean hasBatchRecognizeMetadata(); /** + * + * *
    * Metadata specific to the BatchRecognize method.
    * 
* * .google.cloud.speech.v2.BatchRecognizeMetadata batch_recognize_metadata = 23; + * * @return The batchRecognizeMetadata. */ com.google.cloud.speech.v2.BatchRecognizeMetadata getBatchRecognizeMetadata(); /** + * + * *
    * Metadata specific to the BatchRecognize method.
    * 
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java similarity index 70% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java index 3226de2b8914..4290bf1ac65f 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSet.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * PhraseSet for biasing in speech recognition. A PhraseSet is used to provide
  * "hints" to the speech recognizer to favor specific words and phrases in the
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = "";
     uid_ = "";
@@ -34,51 +52,54 @@ 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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 10:
         return internalGetAnnotations();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.PhraseSet.class, com.google.cloud.speech.v2.PhraseSet.Builder.class);
+            com.google.cloud.speech.v2.PhraseSet.class,
+            com.google.cloud.speech.v2.PhraseSet.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Set of states that define the lifecycle of a PhraseSet.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.PhraseSet.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified state.  This is only used/useful for distinguishing
      * unset values.
@@ -88,6 +109,8 @@ public enum State
      */
     STATE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * The normal and active state.
      * 
@@ -96,6 +119,8 @@ public enum State */ ACTIVE(2), /** + * + * *
      * This PhraseSet has been deleted.
      * 
@@ -107,6 +132,8 @@ public enum State ; /** + * + * *
      * Unspecified state.  This is only used/useful for distinguishing
      * unset values.
@@ -116,6 +143,8 @@ public enum State
      */
     public static final int STATE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * The normal and active state.
      * 
@@ -124,6 +153,8 @@ public enum State */ public static final int ACTIVE_VALUE = 2; /** + * + * *
      * This PhraseSet has been deleted.
      * 
@@ -132,7 +163,6 @@ public enum State */ public static final int DELETED_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -157,49 +187,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 2: return ACTIVE; - case 4: return DELETED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 2: + return ACTIVE; + case 4: + return DELETED; + 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< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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 State findValueByNumber(int number) { + return State.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.v2.PhraseSet.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -216,31 +246,39 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.speech.v2.PhraseSet.State) } - public interface PhraseOrBuilder extends + public interface PhraseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.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
@@ -255,11 +293,14 @@ public interface PhraseOrBuilder extends
      * 
* * float boost = 2; + * * @return The boost. */ float getBoost(); } /** + * + * *
    * A Phrase contains words and phrase "hints" so that the speech recognition
    * is more likely to recognize them. This can be used to improve the accuracy
@@ -272,53 +313,59 @@ public interface PhraseOrBuilder extends
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.PhraseSet.Phrase.class, com.google.cloud.speech.v2.PhraseSet.Phrase.Builder.class);
+              com.google.cloud.speech.v2.PhraseSet.Phrase.class,
+              com.google.cloud.speech.v2.PhraseSet.Phrase.Builder.class);
     }
 
     public static final int VALUE_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object value_ = "";
     /**
+     *
+     *
      * 
      * The phrase itself.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -327,29 +374,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,6 +407,8 @@ public java.lang.String getValue() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_ = 0F; /** + * + * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -374,6 +423,7 @@ public java.lang.String getValue() {
      * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -382,6 +432,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -393,8 +444,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_); } @@ -414,8 +464,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -425,18 +474,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.v2.PhraseSet.Phrase)) { return super.equals(obj); } - com.google.cloud.speech.v2.PhraseSet.Phrase other = (com.google.cloud.speech.v2.PhraseSet.Phrase) obj; + com.google.cloud.speech.v2.PhraseSet.Phrase other = + (com.google.cloud.speech.v2.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -451,95 +499,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) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v2.PhraseSet.Phrase parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.PhraseSet.Phrase parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.PhraseSet.Phrase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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 @@ -549,6 +602,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A Phrase contains words and phrase "hints" so that the speech recognition
      * is more likely to recognize them. This can be used to improve the accuracy
@@ -561,33 +616,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.speech.v2.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.v2.PhraseSet.Phrase)
         com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.speech.v2.CloudSpeechProto
+            .internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable
+        return com.google.cloud.speech.v2.CloudSpeechProto
+            .internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.speech.v2.PhraseSet.Phrase.class, com.google.cloud.speech.v2.PhraseSet.Phrase.Builder.class);
+                com.google.cloud.speech.v2.PhraseSet.Phrase.class,
+                com.google.cloud.speech.v2.PhraseSet.Phrase.Builder.class);
       }
 
       // Construct using com.google.cloud.speech.v2.PhraseSet.Phrase.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -598,9 +653,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.speech.v2.CloudSpeechProto
+            .internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
@@ -619,8 +674,11 @@ public com.google.cloud.speech.v2.PhraseSet.Phrase build() {
 
       @java.lang.Override
       public com.google.cloud.speech.v2.PhraseSet.Phrase buildPartial() {
-        com.google.cloud.speech.v2.PhraseSet.Phrase result = new com.google.cloud.speech.v2.PhraseSet.Phrase(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.speech.v2.PhraseSet.Phrase result =
+            new com.google.cloud.speech.v2.PhraseSet.Phrase(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
@@ -639,38 +697,41 @@ private void buildPartial0(com.google.cloud.speech.v2.PhraseSet.Phrase result) {
       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.v2.PhraseSet.Phrase) {
-          return mergeFrom((com.google.cloud.speech.v2.PhraseSet.Phrase)other);
+          return mergeFrom((com.google.cloud.speech.v2.PhraseSet.Phrase) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -713,22 +774,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                value_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 21: {
-                boost_ = input.readFloat();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 21
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  value_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 21:
+                {
+                  boost_ = input.readFloat();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 21
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -738,22 +802,25 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       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; @@ -762,20 +829,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 { @@ -783,28 +851,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -814,17 +889,21 @@ public Builder clearValue() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000001; @@ -832,8 +911,10 @@ public Builder setValueBytes( 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
@@ -848,6 +929,7 @@ public Builder setValueBytes(
        * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -855,6 +937,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
@@ -869,17 +953,20 @@ public float getBoost() {
        * 
* * float boost = 2; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000002; 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
@@ -894,6 +981,7 @@ public Builder setBoost(float value) {
        * 
* * float boost = 2; + * * @return This builder for chaining. */ public Builder clearBoost() { @@ -902,6 +990,7 @@ public Builder clearBoost() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -914,12 +1003,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.PhraseSet.Phrase) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.PhraseSet.Phrase) private static final com.google.cloud.speech.v2.PhraseSet.Phrase DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.PhraseSet.Phrase(); } @@ -928,27 +1017,28 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -963,19 +1053,22 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.PhraseSet.Phrase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. The resource name of the PhraseSet.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -984,30 +1077,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; } } /** + * + * *
    * Output only. The resource name of the PhraseSet.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1016,14 +1109,18 @@ public java.lang.String getName() { } public static final int UID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** + * + * *
    * Output only. System-assigned unique identifier for the PhraseSet.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -1032,29 +1129,29 @@ public java.lang.String getUid() { 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(); uid_ = s; return s; } } /** + * + * *
    * Output only. System-assigned unique identifier for the PhraseSet.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -1063,9 +1160,12 @@ public java.lang.String getUid() { } public static final int PHRASES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List phrases_; /** + * + * *
    * A list of word and phrases.
    * 
@@ -1077,6 +1177,8 @@ public java.util.List getPhrasesLis return phrases_; } /** + * + * *
    * A list of word and phrases.
    * 
@@ -1084,11 +1186,13 @@ public java.util.List getPhrasesLis * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ @java.lang.Override - public java.util.List + public java.util.List getPhrasesOrBuilderList() { return phrases_; } /** + * + * *
    * A list of word and phrases.
    * 
@@ -1100,6 +1204,8 @@ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -1111,6 +1217,8 @@ public com.google.cloud.speech.v2.PhraseSet.Phrase getPhrases(int index) { return phrases_.get(index); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -1118,14 +1226,15 @@ public com.google.cloud.speech.v2.PhraseSet.Phrase getPhrases(int index) { * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ @java.lang.Override - public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( - int index) { + public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index) { return phrases_.get(index); } public static final int BOOST_FIELD_NUMBER = 4; private float boost_ = 0F; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -1135,6 +1244,7 @@ public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -1143,15 +1253,19 @@ public float getBoost() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * User-settable, human-readable name for the PhraseSet. Must be 63
    * characters or less.
    * 
* * string display_name = 5; + * * @return The displayName. */ @java.lang.Override @@ -1160,30 +1274,30 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** + * + * *
    * User-settable, human-readable name for the PhraseSet. Must be 63
    * characters or less.
    * 
* * string display_name = 5; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -1194,37 +1308,54 @@ public java.lang.String getDisplayName() { public static final int STATE_FIELD_NUMBER = 15; private int state_ = 0; /** + * + * *
    * Output only. The PhraseSet lifecycle state.
    * 
* - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The PhraseSet lifecycle state.
    * 
* - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.speech.v2.PhraseSet.State getState() { - com.google.cloud.speech.v2.PhraseSet.State result = com.google.cloud.speech.v2.PhraseSet.State.forNumber(state_); + @java.lang.Override + public com.google.cloud.speech.v2.PhraseSet.State getState() { + com.google.cloud.speech.v2.PhraseSet.State result = + com.google.cloud.speech.v2.PhraseSet.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.PhraseSet.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1232,11 +1363,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -1244,11 +1379,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1258,11 +1396,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1270,11 +1412,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -1282,11 +1428,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1296,11 +1445,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -1308,11 +1461,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -1320,11 +1477,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -1334,11 +1494,15 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -1346,11 +1510,15 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ @java.lang.Override @@ -1358,11 +1526,14 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -1370,32 +1541,35 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } public static final int ANNOTATIONS_FIELD_NUMBER = 10; + private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1405,20 +1579,21 @@ public int getAnnotationsCount() {
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public boolean containsAnnotations(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsAnnotations(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetAnnotations().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getAnnotationsMap()} instead.
-   */
+  /** Use {@link #getAnnotationsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAnnotations() {
     return getAnnotationsMap();
   }
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1432,6 +1607,8 @@ public java.util.Map getAnnotationsMap() {
     return internalGetAnnotations().getMap();
   }
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1441,17 +1618,19 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getAnnotationsOrDefault(
+  public /* nullable */ java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -1461,11 +1640,11 @@ java.lang.String getAnnotationsOrDefault(
    * map<string, string> annotations = 10;
    */
   @java.lang.Override
-  public java.lang.String getAnnotationsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1473,9 +1652,12 @@ public java.lang.String getAnnotationsOrThrow(
   }
 
   public static final int ETAG_FIELD_NUMBER = 11;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object etag_ = "";
   /**
+   *
+   *
    * 
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -1483,6 +1665,7 @@ public java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ @java.lang.Override @@ -1491,14 +1674,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -1506,16 +1690,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -1526,12 +1709,15 @@ public java.lang.String getEtag() { public static final int RECONCILING_FIELD_NUMBER = 12; private boolean reconciling_ = false; /** + * + * *
    * Output only. Whether or not this PhraseSet is in the process of being
    * updated.
    * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -1540,9 +1726,12 @@ public boolean getReconciling() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 13; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -1550,7 +1739,10 @@ public boolean getReconciling() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ @java.lang.Override @@ -1559,14 +1751,15 @@ public java.lang.String getKmsKeyName() { 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(); kmsKeyName_ = s; return s; } } /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -1574,17 +1767,18 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -1593,9 +1787,12 @@ public java.lang.String getKmsKeyName() { } public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER = 14; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyVersionName_ = ""; /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1603,7 +1800,10 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyVersionName. */ @java.lang.Override @@ -1612,14 +1812,15 @@ public java.lang.String getKmsKeyVersionName() { 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(); kmsKeyVersionName_ = s; return s; } } /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1627,17 +1828,18 @@ public java.lang.String getKmsKeyVersionName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyVersionName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -1646,6 +1848,7 @@ public java.lang.String getKmsKeyVersionName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1657,8 +1860,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_); } @@ -1686,12 +1888,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (expireTime_ != null) { output.writeMessage(9, getExpireTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 10); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 10); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, etag_); } @@ -1723,48 +1921,41 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); } for (int i = 0; i < phrases_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, phrases_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, 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_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getExpireTime()); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, annotations__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getExpireTime()); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, annotations__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etag_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, reconciling_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, reconciling_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, kmsKeyName_); @@ -1773,8 +1964,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, kmsKeyVersionName_); } if (state_ != com.google.cloud.speech.v2.PhraseSet.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, state_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1784,55 +1974,41 @@ 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.v2.PhraseSet)) { return super.equals(obj); } com.google.cloud.speech.v2.PhraseSet other = (com.google.cloud.speech.v2.PhraseSet) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (!getPhrasesList() - .equals(other.getPhrasesList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getPhrasesList().equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits( - other.getBoost())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + != java.lang.Float.floatToIntBits(other.getBoost())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; - } - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (getReconciling() - != other.getReconciling()) return false; - if (!getKmsKeyName() - .equals(other.getKmsKeyName())) return false; - if (!getKmsKeyVersionName() - .equals(other.getKmsKeyVersionName())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; + } + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1853,8 +2029,7 @@ 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 = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + STATE_FIELD_NUMBER; @@ -1882,8 +2057,7 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getKmsKeyName().hashCode(); hash = (37 * hash) + KMS_KEY_VERSION_NAME_FIELD_NUMBER; @@ -1893,97 +2067,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.PhraseSet parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.PhraseSet parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.PhraseSet parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.speech.v2.PhraseSet parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.PhraseSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * PhraseSet for biasing in speech recognition. A PhraseSet is used to provide
    * "hints" to the speech recognizer to favor specific words and phrases in the
@@ -1992,55 +2172,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.PhraseSet)
       com.google.cloud.speech.v2.PhraseSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 10:
           return internalGetAnnotations();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 10:
           return internalGetMutableAnnotations();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.PhraseSet.class, com.google.cloud.speech.v2.PhraseSet.Builder.class);
+              com.google.cloud.speech.v2.PhraseSet.class,
+              com.google.cloud.speech.v2.PhraseSet.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.PhraseSet.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2086,9 +2263,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_PhraseSet_descriptor;
     }
 
     @java.lang.Override
@@ -2109,7 +2286,9 @@ public com.google.cloud.speech.v2.PhraseSet build() {
     public com.google.cloud.speech.v2.PhraseSet buildPartial() {
       com.google.cloud.speech.v2.PhraseSet result = new com.google.cloud.speech.v2.PhraseSet(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -2144,24 +2323,16 @@ private void buildPartial0(com.google.cloud.speech.v2.PhraseSet result) {
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null
-            ? deleteTime_
-            : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.expireTime_ = expireTimeBuilder_ == null
-            ? expireTime_
-            : expireTimeBuilder_.build();
+        result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
         result.annotations_ = internalGetAnnotations();
@@ -2185,38 +2356,39 @@ private void buildPartial0(com.google.cloud.speech.v2.PhraseSet result) {
     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.v2.PhraseSet) {
-        return mergeFrom((com.google.cloud.speech.v2.PhraseSet)other);
+        return mergeFrom((com.google.cloud.speech.v2.PhraseSet) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2253,9 +2425,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            phrasesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPhrasesFieldBuilder() : null;
+            phrasesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPhrasesFieldBuilder()
+                    : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -2284,8 +2457,7 @@ public Builder mergeFrom(com.google.cloud.speech.v2.PhraseSet other) {
       if (other.hasExpireTime()) {
         mergeExpireTime(other.getExpireTime());
       }
-      internalGetMutableAnnotations().mergeFrom(
-          other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
       bitField0_ |= 0x00000400;
       if (!other.getEtag().isEmpty()) {
         etag_ = other.etag_;
@@ -2331,107 +2503,116 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              uid_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              com.google.cloud.speech.v2.PhraseSet.Phrase m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.PhraseSet.Phrase.parser(),
-                      extensionRegistry);
-              if (phrasesBuilder_ == null) {
-                ensurePhrasesIsMutable();
-                phrases_.add(m);
-              } else {
-                phrasesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            case 37: {
-              boost_ = input.readFloat();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 37
-            case 42: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getDeleteTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 66
-            case 74: {
-              input.readMessage(
-                  getExpireTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 74
-            case 82: {
-              com.google.protobuf.MapEntry
-              annotations__ = input.readMessage(
-                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableAnnotations().getMutableMap().put(
-                  annotations__.getKey(), annotations__.getValue());
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 82
-            case 90: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 90
-            case 96: {
-              reconciling_ = input.readBool();
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 96
-            case 106: {
-              kmsKeyName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 106
-            case 114: {
-              kmsKeyVersionName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00004000;
-              break;
-            } // case 114
-            case 120: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 120
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                uid_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                com.google.cloud.speech.v2.PhraseSet.Phrase m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.PhraseSet.Phrase.parser(), extensionRegistry);
+                if (phrasesBuilder_ == null) {
+                  ensurePhrasesIsMutable();
+                  phrases_.add(m);
+                } else {
+                  phrasesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            case 37:
+              {
+                boost_ = input.readFloat();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 37
+            case 42:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 66
+            case 74:
+              {
+                input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 74
+            case 82:
+              {
+                com.google.protobuf.MapEntry annotations__ =
+                    input.readMessage(
+                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableAnnotations()
+                    .getMutableMap()
+                    .put(annotations__.getKey(), annotations__.getValue());
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 82
+            case 90:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 90
+            case 96:
+              {
+                reconciling_ = input.readBool();
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 96
+            case 106:
+              {
+                kmsKeyName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 106
+            case 114:
+              {
+                kmsKeyVersionName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00004000;
+                break;
+              } // case 114
+            case 120:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 120
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2441,23 +2622,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource name of the PhraseSet.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -2466,21 +2650,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the PhraseSet.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -2488,30 +2673,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the PhraseSet.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the PhraseSet.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -2521,18 +2713,22 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource name of the PhraseSet.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2542,18 +2738,20 @@ public Builder setNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. System-assigned unique identifier for the PhraseSet.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; 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(); uid_ = s; return s; @@ -2562,20 +2760,21 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. System-assigned unique identifier for the PhraseSet.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -2583,28 +2782,35 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. System-assigned unique identifier for the PhraseSet.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. System-assigned unique identifier for the PhraseSet.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -2614,17 +2820,21 @@ public Builder clearUid() { return this; } /** + * + * *
      * Output only. System-assigned unique identifier for the PhraseSet.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000002; @@ -2633,18 +2843,24 @@ public Builder setUidBytes( } private java.util.List phrases_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { phrases_ = new java.util.ArrayList(phrases_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet.Phrase, com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder> phrasesBuilder_; + com.google.cloud.speech.v2.PhraseSet.Phrase, + com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder> + phrasesBuilder_; /** + * + * *
      * A list of word and phrases.
      * 
@@ -2659,6 +2875,8 @@ public java.util.List getPhrasesLis } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -2673,6 +2891,8 @@ public int getPhrasesCount() { } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -2687,14 +2907,15 @@ public com.google.cloud.speech.v2.PhraseSet.Phrase getPhrases(int index) { } } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public Builder setPhrases( - int index, com.google.cloud.speech.v2.PhraseSet.Phrase value) { + public Builder setPhrases(int index, com.google.cloud.speech.v2.PhraseSet.Phrase value) { if (phrasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2708,6 +2929,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -2726,6 +2949,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -2746,14 +2971,15 @@ public Builder addPhrases(com.google.cloud.speech.v2.PhraseSet.Phrase value) { return this; } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public Builder addPhrases( - int index, com.google.cloud.speech.v2.PhraseSet.Phrase value) { + public Builder addPhrases(int index, com.google.cloud.speech.v2.PhraseSet.Phrase value) { if (phrasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2767,14 +2993,15 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public Builder addPhrases( - com.google.cloud.speech.v2.PhraseSet.Phrase.Builder builderForValue) { + public Builder addPhrases(com.google.cloud.speech.v2.PhraseSet.Phrase.Builder builderForValue) { if (phrasesBuilder_ == null) { ensurePhrasesIsMutable(); phrases_.add(builderForValue.build()); @@ -2785,6 +3012,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -2803,6 +3032,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -2813,8 +3044,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); @@ -2822,6 +3052,8 @@ public Builder addAllPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -2839,6 +3071,8 @@ public Builder clearPhrases() { return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -2856,39 +3090,44 @@ public Builder removePhrases(int index) { return this; } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder getPhrasesBuilder( - int index) { + public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder getPhrasesBuilder(int index) { return getPhrasesFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( - int index) { + public com.google.cloud.speech.v2.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.v2.PhraseSet.Phrase phrases = 3; */ - public java.util.List - getPhrasesOrBuilderList() { + public java.util.List + getPhrasesOrBuilderList() { if (phrasesBuilder_ != null) { return phrasesBuilder_.getMessageOrBuilderList(); } else { @@ -2896,6 +3135,8 @@ public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -2903,49 +3144,57 @@ public com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder addPhrasesBuilder() { - return getPhrasesFieldBuilder().addBuilder( - com.google.cloud.speech.v2.PhraseSet.Phrase.getDefaultInstance()); + return getPhrasesFieldBuilder() + .addBuilder(com.google.cloud.speech.v2.PhraseSet.Phrase.getDefaultInstance()); } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder addPhrasesBuilder( - int index) { - return getPhrasesFieldBuilder().addBuilder( - index, com.google.cloud.speech.v2.PhraseSet.Phrase.getDefaultInstance()); + public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder addPhrasesBuilder(int index) { + return getPhrasesFieldBuilder() + .addBuilder(index, com.google.cloud.speech.v2.PhraseSet.Phrase.getDefaultInstance()); } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - public java.util.List - getPhrasesBuilderList() { + public java.util.List + getPhrasesBuilderList() { return getPhrasesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet.Phrase, com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder> + com.google.cloud.speech.v2.PhraseSet.Phrase, + com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder> getPhrasesFieldBuilder() { if (phrasesBuilder_ == null) { - phrasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet.Phrase, com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder>( - phrases_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + phrasesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.PhraseSet.Phrase, + com.google.cloud.speech.v2.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder>( + phrases_, ((bitField0_ & 0x00000004) != 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
@@ -2955,6 +3204,7 @@ public com.google.cloud.speech.v2.PhraseSet.Phrase.Builder addPhrasesBuilder(
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -2962,6 +3212,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
@@ -2971,17 +3223,20 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; bitField0_ |= 0x00000008; 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
@@ -2991,6 +3246,7 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { @@ -3002,19 +3258,21 @@ public Builder clearBoost() { private java.lang.Object displayName_ = ""; /** + * + * *
      * User-settable, human-readable name for the PhraseSet. Must be 63
      * characters or less.
      * 
* * string display_name = 5; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -3023,21 +3281,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User-settable, human-readable name for the PhraseSet. Must be 63
      * characters or less.
      * 
* * string display_name = 5; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -3045,30 +3304,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User-settable, human-readable name for the PhraseSet. Must be 63
      * characters or less.
      * 
* * string display_name = 5; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * User-settable, human-readable name for the PhraseSet. Must be 63
      * characters or less.
      * 
* * string display_name = 5; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -3078,18 +3344,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * User-settable, human-readable name for the PhraseSet. Must be 63
      * characters or less.
      * 
* * string display_name = 5; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000010; @@ -3099,22 +3369,33 @@ public Builder setDisplayNameBytes( private int state_ = 0; /** + * + * *
      * Output only. The PhraseSet lifecycle state.
      * 
* - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The PhraseSet lifecycle state.
      * 
* - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3125,24 +3406,35 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The PhraseSet lifecycle state.
      * 
* - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSet.State getState() { - com.google.cloud.speech.v2.PhraseSet.State result = com.google.cloud.speech.v2.PhraseSet.State.forNumber(state_); + com.google.cloud.speech.v2.PhraseSet.State result = + com.google.cloud.speech.v2.PhraseSet.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.PhraseSet.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The PhraseSet lifecycle state.
      * 
* - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -3156,11 +3448,16 @@ public Builder setState(com.google.cloud.speech.v2.PhraseSet.State value) { return this; } /** + * + * *
      * Output only. The PhraseSet lifecycle state.
      * 
* - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -3172,39 +3469,58 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3220,14 +3536,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -3238,17 +3557,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3261,11 +3584,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3278,11 +3605,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -3290,36 +3621,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3327,39 +3670,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3375,14 +3737,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3393,17 +3758,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3416,11 +3785,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3433,11 +3806,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -3445,36 +3822,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The most recent time this resource was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3482,39 +3871,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3530,14 +3938,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -3548,17 +3959,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -3571,11 +3986,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -3588,11 +4007,15 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -3600,36 +4023,48 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. The time at which this resource was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -3637,39 +4072,58 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -3685,14 +4139,17 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -3703,17 +4160,21 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - expireTime_ != null && - expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -3726,11 +4187,15 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000200); @@ -3743,11 +4208,15 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000200; @@ -3755,43 +4224,55 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } } /** + * + * *
      * Output only. The time at which this resource will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); expireTime_ = null; } return expireTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -3800,11 +4281,12 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } return annotations_; } + private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -3813,10 +4295,13 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { onChanged(); return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3826,20 +4311,21 @@ public int getAnnotationsCount() {
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public boolean containsAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetAnnotations().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getAnnotationsMap()} instead.
-     */
+    /** Use {@link #getAnnotationsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAnnotations() {
       return getAnnotationsMap();
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3853,6 +4339,8 @@ public java.util.Map getAnnotationsMap() {
       return internalGetAnnotations().getMap();
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3862,17 +4350,19 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getAnnotationsOrDefault(
+    public /* nullable */ java.lang.String getAnnotationsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3882,23 +4372,25 @@ java.lang.String getAnnotationsOrDefault(
      * map<string, string> annotations = 10;
      */
     @java.lang.Override
-    public java.lang.String getAnnotationsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearAnnotations() {
       bitField0_ = (bitField0_ & ~0x00000400);
-      internalGetMutableAnnotations().getMutableMap()
-          .clear();
+      internalGetMutableAnnotations().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3907,23 +4399,22 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 10;
      */
-    public Builder removeAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableAnnotations().getMutableMap()
-          .remove(key);
+    public Builder removeAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableAnnotations().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableAnnotations() {
+    public java.util.Map getMutableAnnotations() {
       bitField0_ |= 0x00000400;
       return internalGetMutableAnnotations().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3932,17 +4423,20 @@ public Builder removeAnnotations(
      *
      * map<string, string> annotations = 10;
      */
-    public Builder putAnnotations(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableAnnotations().getMutableMap()
-          .put(key, value);
+    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableAnnotations().getMutableMap().put(key, value);
       bitField0_ |= 0x00000400;
       return this;
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -3951,16 +4445,16 @@ public Builder putAnnotations(
      *
      * map<string, string> annotations = 10;
      */
-    public Builder putAllAnnotations(
-        java.util.Map values) {
-      internalGetMutableAnnotations().getMutableMap()
-          .putAll(values);
+    public Builder putAllAnnotations(java.util.Map values) {
+      internalGetMutableAnnotations().getMutableMap().putAll(values);
       bitField0_ |= 0x00000400;
       return this;
     }
 
     private java.lang.Object etag_ = "";
     /**
+     *
+     *
      * 
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3968,13 +4462,13 @@ public Builder putAllAnnotations(
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -3983,6 +4477,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3990,15 +4486,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -4006,6 +4501,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4013,18 +4510,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4032,6 +4533,7 @@ public Builder setEtag(
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -4041,6 +4543,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -4048,12 +4552,14 @@ public Builder clearEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000800; @@ -4061,14 +4567,17 @@ public Builder setEtagBytes( return this; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Whether or not this PhraseSet is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -4076,29 +4585,35 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Whether or not this PhraseSet is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** + * + * *
      * Output only. Whether or not this PhraseSet is in the process of being
      * updated.
      * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -4110,6 +4625,8 @@ public Builder clearReconciling() { private java.lang.Object kmsKeyName_ = ""; /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4117,14 +4634,16 @@ public Builder clearReconciling() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; 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(); kmsKeyName_ = s; return s; @@ -4133,6 +4652,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4140,16 +4661,17 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -4157,6 +4679,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4164,19 +4688,25 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyName_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4184,7 +4714,10 @@ public Builder setKmsKeyName(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -4194,6 +4727,8 @@ public Builder clearKmsKeyName() { return this; } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -4201,13 +4736,17 @@ public Builder clearKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00002000; @@ -4217,6 +4756,8 @@ public Builder setKmsKeyNameBytes( private java.lang.Object kmsKeyVersionName_ = ""; /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4224,14 +4765,16 @@ public Builder setKmsKeyNameBytes(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyVersionName. */ public java.lang.String getKmsKeyVersionName() { java.lang.Object ref = kmsKeyVersionName_; 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(); kmsKeyVersionName_ = s; return s; @@ -4240,6 +4783,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4247,16 +4792,17 @@ public java.lang.String getKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyVersionName. */ - public com.google.protobuf.ByteString - getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -4264,6 +4810,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4271,19 +4819,25 @@ public java.lang.String getKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyVersionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyVersionName_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4291,7 +4845,10 @@ public Builder setKmsKeyVersionName(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { @@ -4301,6 +4858,8 @@ public Builder clearKmsKeyVersionName() { return this; } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -4308,22 +4867,26 @@ public Builder clearKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyVersionName_ = value; bitField0_ |= 0x00004000; 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); } @@ -4333,12 +4896,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.PhraseSet) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.PhraseSet) private static final com.google.cloud.speech.v2.PhraseSet DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.PhraseSet(); } @@ -4347,27 +4910,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4382,6 +4945,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java similarity index 100% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetName.java diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java similarity index 75% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java index 8f448c93bd77..1989e818db78 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/PhraseSetOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface PhraseSetOrBuilder extends +public interface PhraseSetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.PhraseSet) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the PhraseSet.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the PhraseSet.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. System-assigned unique identifier for the PhraseSet.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. System-assigned unique identifier for the PhraseSet.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - java.util.List - getPhrasesList(); + java.util.List getPhrasesList(); /** + * + * *
    * A list of word and phrases.
    * 
@@ -67,6 +96,8 @@ public interface PhraseSetOrBuilder extends */ com.google.cloud.speech.v2.PhraseSet.Phrase getPhrases(int index); /** + * + * *
    * A list of word and phrases.
    * 
@@ -75,25 +106,30 @@ public interface PhraseSetOrBuilder extends */ int getPhrasesCount(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - java.util.List + java.util.List getPhrasesOrBuilderList(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v2.PhraseSet.Phrase phrases = 3; */ - com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( - int index); + com.google.cloud.speech.v2.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
@@ -103,160 +139,222 @@ com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    * 
* * float boost = 4; + * * @return The boost. */ float getBoost(); /** + * + * *
    * User-settable, human-readable name for the PhraseSet. Must be 63
    * characters or less.
    * 
* * string display_name = 5; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * User-settable, human-readable name for the PhraseSet. Must be 63
    * characters or less.
    * 
* * string display_name = 5; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. The PhraseSet lifecycle state.
    * 
* - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The PhraseSet lifecycle state.
    * 
* - * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.PhraseSet.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.speech.v2.PhraseSet.State getState(); /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The most recent time this resource was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. The time at which this resource was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Output only. The time at which this resource will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** + * + * *
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -267,6 +365,8 @@ com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    */
   int getAnnotationsCount();
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -275,15 +375,13 @@ com.google.cloud.speech.v2.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    *
    * map<string, string> annotations = 10;
    */
-  boolean containsAnnotations(
-      java.lang.String key);
-  /**
-   * Use {@link #getAnnotationsMap()} instead.
-   */
+  boolean containsAnnotations(java.lang.String key);
+  /** Use {@link #getAnnotationsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getAnnotations();
+  java.util.Map getAnnotations();
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -292,9 +390,10 @@ boolean containsAnnotations(
    *
    * map<string, string> annotations = 10;
    */
-  java.util.Map
-  getAnnotationsMap();
+  java.util.Map getAnnotationsMap();
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -304,11 +403,13 @@ boolean containsAnnotations(
    * map<string, string> annotations = 10;
    */
   /* nullable */
-java.lang.String getAnnotationsOrDefault(
+  java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -317,10 +418,11 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> annotations = 10;
    */
-  java.lang.String getAnnotationsOrThrow(
-      java.lang.String key);
+  java.lang.String getAnnotationsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -328,10 +430,13 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -339,23 +444,28 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Output only. Whether or not this PhraseSet is in the process of being
    * updated.
    * 
* * bool reconciling = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -363,11 +473,16 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -375,13 +490,17 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 13 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString - getKmsKeyNameBytes(); + com.google.protobuf.ByteString getKmsKeyNameBytes(); /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -389,11 +508,16 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyVersionName. */ java.lang.String getKmsKeyVersionName(); /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -401,9 +525,11 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyVersionName. */ - com.google.protobuf.ByteString - getKmsKeyVersionNameBytes(); + com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java similarity index 70% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java index 5cca8f7c317d..9968a0781200 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Provides information to the Recognizer that specifies how to process the
  * recognition request.
@@ -11,52 +28,56 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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() {
-  }
+
+  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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.RecognitionConfig.class, com.google.cloud.speech.v2.RecognitionConfig.Builder.class);
+            com.google.cloud.speech.v2.RecognitionConfig.class,
+            com.google.cloud.speech.v2.RecognitionConfig.Builder.class);
   }
 
   private int decodingConfigCase_ = 0;
   private java.lang.Object decodingConfig_;
+
   public enum DecodingConfigCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     AUTO_DECODING_CONFIG(7),
     EXPLICIT_DECODING_CONFIG(8),
     DECODINGCONFIG_NOT_SET(0);
     private final int value;
+
     private DecodingConfigCase(int value) {
       this.value = value;
     }
@@ -72,31 +93,37 @@ public static DecodingConfigCase valueOf(int value) {
 
     public static DecodingConfigCase forNumber(int value) {
       switch (value) {
-        case 7: return AUTO_DECODING_CONFIG;
-        case 8: return EXPLICIT_DECODING_CONFIG;
-        case 0: return DECODINGCONFIG_NOT_SET;
-        default: return null;
+        case 7:
+          return AUTO_DECODING_CONFIG;
+        case 8:
+          return EXPLICIT_DECODING_CONFIG;
+        case 0:
+          return DECODINGCONFIG_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public DecodingConfigCase
-  getDecodingConfigCase() {
-    return DecodingConfigCase.forNumber(
-        decodingConfigCase_);
+  public DecodingConfigCase getDecodingConfigCase() {
+    return DecodingConfigCase.forNumber(decodingConfigCase_);
   }
 
   public static final int AUTO_DECODING_CONFIG_FIELD_NUMBER = 7;
   /**
+   *
+   *
    * 
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
    * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; + * * @return Whether the autoDecodingConfig field is set. */ @java.lang.Override @@ -104,22 +131,27 @@ public boolean hasAutoDecodingConfig() { return decodingConfigCase_ == 7; } /** + * + * *
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
    * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; + * * @return The autoDecodingConfig. */ @java.lang.Override public com.google.cloud.speech.v2.AutoDetectDecodingConfig getAutoDecodingConfig() { if (decodingConfigCase_ == 7) { - return (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_; + return (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_; } return com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance(); } /** + * + * *
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
@@ -128,21 +160,25 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig getAutoDecodingConfig
    * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder getAutoDecodingConfigOrBuilder() {
+  public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder
+      getAutoDecodingConfigOrBuilder() {
     if (decodingConfigCase_ == 7) {
-       return (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_;
+      return (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_;
     }
     return com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance();
   }
 
   public static final int EXPLICIT_DECODING_CONFIG_FIELD_NUMBER = 8;
   /**
+   *
+   *
    * 
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
    * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; + * * @return Whether the explicitDecodingConfig field is set. */ @java.lang.Override @@ -150,22 +186,27 @@ public boolean hasExplicitDecodingConfig() { return decodingConfigCase_ == 8; } /** + * + * *
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
    * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; + * * @return The explicitDecodingConfig. */ @java.lang.Override public com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConfig() { if (decodingConfigCase_ == 8) { - return (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_; + return (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_; } return com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance(); } /** + * + * *
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -174,9 +215,10 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConf
    * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder getExplicitDecodingConfigOrBuilder() {
+  public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder
+      getExplicitDecodingConfigOrBuilder() {
     if (decodingConfigCase_ == 8) {
-       return (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_;
+      return (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_;
     }
     return com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance();
   }
@@ -184,11 +226,14 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder getExplicitDec
   public static final int FEATURES_FIELD_NUMBER = 2;
   private com.google.cloud.speech.v2.RecognitionFeatures features_;
   /**
+   *
+   *
    * 
    * Speech recognition features to enable.
    * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; + * * @return Whether the features field is set. */ @java.lang.Override @@ -196,18 +241,25 @@ public boolean hasFeatures() { return features_ != null; } /** + * + * *
    * Speech recognition features to enable.
    * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; + * * @return The features. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionFeatures getFeatures() { - return features_ == null ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() : features_; + return features_ == null + ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() + : features_; } /** + * + * *
    * Speech recognition features to enable.
    * 
@@ -216,18 +268,23 @@ public com.google.cloud.speech.v2.RecognitionFeatures getFeatures() { */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder getFeaturesOrBuilder() { - return features_ == null ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() : features_; + return features_ == null + ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() + : features_; } public static final int ADAPTATION_FIELD_NUMBER = 6; private com.google.cloud.speech.v2.SpeechAdaptation adaptation_; /** + * + * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
    * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; + * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -235,19 +292,26 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** + * + * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
    * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; + * * @return The adaptation. */ @java.lang.Override public com.google.cloud.speech.v2.SpeechAdaptation getAdaptation() { - return adaptation_ == null ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() : adaptation_; + return adaptation_ == null + ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() + : adaptation_; } /** + * + * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
@@ -257,10 +321,13 @@ public com.google.cloud.speech.v2.SpeechAdaptation getAdaptation() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v2.SpeechAdaptationOrBuilder getAdaptationOrBuilder() {
-    return adaptation_ == null ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() : adaptation_;
+    return adaptation_ == null
+        ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance()
+        : adaptation_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -272,8 +339,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 (features_ != null) {
       output.writeMessage(2, getFeatures());
     }
@@ -296,20 +362,20 @@ public int getSerializedSize() {
 
     size = 0;
     if (features_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getFeatures());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFeatures());
     }
     if (adaptation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, getAdaptation());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getAdaptation());
     }
     if (decodingConfigCase_ == 7) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              7, (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_);
     }
     if (decodingConfigCase_ == 8) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              8, (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -319,32 +385,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.v2.RecognitionConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.RecognitionConfig other = (com.google.cloud.speech.v2.RecognitionConfig) obj;
+    com.google.cloud.speech.v2.RecognitionConfig other =
+        (com.google.cloud.speech.v2.RecognitionConfig) obj;
 
     if (hasFeatures() != other.hasFeatures()) return false;
     if (hasFeatures()) {
-      if (!getFeatures()
-          .equals(other.getFeatures())) return false;
+      if (!getFeatures().equals(other.getFeatures())) 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 (!getDecodingConfigCase().equals(other.getDecodingConfigCase())) return false;
     switch (decodingConfigCase_) {
       case 7:
-        if (!getAutoDecodingConfig()
-            .equals(other.getAutoDecodingConfig())) return false;
+        if (!getAutoDecodingConfig().equals(other.getAutoDecodingConfig())) return false;
         break;
       case 8:
-        if (!getExplicitDecodingConfig()
-            .equals(other.getExplicitDecodingConfig())) return false;
+        if (!getExplicitDecodingConfig().equals(other.getExplicitDecodingConfig())) return false;
         break;
       case 0:
       default:
@@ -385,97 +448,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.speech.v2.RecognitionConfig parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.speech.v2.RecognitionConfig parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.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.v2.RecognitionConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.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.v2.RecognitionConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.RecognitionConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v2.RecognitionConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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
    * recognition request.
@@ -483,33 +553,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.RecognitionConfig)
       com.google.cloud.speech.v2.RecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.RecognitionConfig.class, com.google.cloud.speech.v2.RecognitionConfig.Builder.class);
+              com.google.cloud.speech.v2.RecognitionConfig.class,
+              com.google.cloud.speech.v2.RecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.RecognitionConfig.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -536,9 +605,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
@@ -557,8 +626,11 @@ public com.google.cloud.speech.v2.RecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.RecognitionConfig buildPartial() {
-      com.google.cloud.speech.v2.RecognitionConfig result = new com.google.cloud.speech.v2.RecognitionConfig(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.RecognitionConfig result =
+          new com.google.cloud.speech.v2.RecognitionConfig(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -567,26 +639,20 @@ public com.google.cloud.speech.v2.RecognitionConfig buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.RecognitionConfig result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.features_ = featuresBuilder_ == null
-            ? features_
-            : featuresBuilder_.build();
+        result.features_ = featuresBuilder_ == null ? features_ : featuresBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.adaptation_ = adaptationBuilder_ == null
-            ? adaptation_
-            : adaptationBuilder_.build();
+        result.adaptation_ = adaptationBuilder_ == null ? adaptation_ : adaptationBuilder_.build();
       }
     }
 
     private void buildPartialOneofs(com.google.cloud.speech.v2.RecognitionConfig result) {
       result.decodingConfigCase_ = decodingConfigCase_;
       result.decodingConfig_ = this.decodingConfig_;
-      if (decodingConfigCase_ == 7 &&
-          autoDecodingConfigBuilder_ != null) {
+      if (decodingConfigCase_ == 7 && autoDecodingConfigBuilder_ != null) {
         result.decodingConfig_ = autoDecodingConfigBuilder_.build();
       }
-      if (decodingConfigCase_ == 8 &&
-          explicitDecodingConfigBuilder_ != null) {
+      if (decodingConfigCase_ == 8 && explicitDecodingConfigBuilder_ != null) {
         result.decodingConfig_ = explicitDecodingConfigBuilder_.build();
       }
     }
@@ -595,38 +661,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.RecognitionConfig res
     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.v2.RecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v2.RecognitionConfig)other);
+        return mergeFrom((com.google.cloud.speech.v2.RecognitionConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -642,17 +709,20 @@ public Builder mergeFrom(com.google.cloud.speech.v2.RecognitionConfig other) {
         mergeAdaptation(other.getAdaptation());
       }
       switch (other.getDecodingConfigCase()) {
-        case AUTO_DECODING_CONFIG: {
-          mergeAutoDecodingConfig(other.getAutoDecodingConfig());
-          break;
-        }
-        case EXPLICIT_DECODING_CONFIG: {
-          mergeExplicitDecodingConfig(other.getExplicitDecodingConfig());
-          break;
-        }
-        case DECODINGCONFIG_NOT_SET: {
-          break;
-        }
+        case AUTO_DECODING_CONFIG:
+          {
+            mergeAutoDecodingConfig(other.getAutoDecodingConfig());
+            break;
+          }
+        case EXPLICIT_DECODING_CONFIG:
+          {
+            mergeExplicitDecodingConfig(other.getExplicitDecodingConfig());
+            break;
+          }
+        case DECODINGCONFIG_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -680,40 +750,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18: {
-              input.readMessage(
-                  getFeaturesFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 18
-            case 50: {
-              input.readMessage(
-                  getAdaptationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getAutoDecodingConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              decodingConfigCase_ = 7;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getExplicitDecodingConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              decodingConfigCase_ = 8;
-              break;
-            } // case 66
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 18:
+              {
+                input.readMessage(getFeaturesFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 18
+            case 50:
+              {
+                input.readMessage(getAdaptationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(
+                    getAutoDecodingConfigFieldBuilder().getBuilder(), extensionRegistry);
+                decodingConfigCase_ = 7;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(
+                    getExplicitDecodingConfigFieldBuilder().getBuilder(), extensionRegistry);
+                decodingConfigCase_ = 8;
+                break;
+              } // case 66
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -723,12 +792,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int decodingConfigCase_ = 0;
     private java.lang.Object decodingConfig_;
-    public DecodingConfigCase
-        getDecodingConfigCase() {
-      return DecodingConfigCase.forNumber(
-          decodingConfigCase_);
+
+    public DecodingConfigCase getDecodingConfigCase() {
+      return DecodingConfigCase.forNumber(decodingConfigCase_);
     }
 
     public Builder clearDecodingConfig() {
@@ -741,14 +810,20 @@ public Builder clearDecodingConfig() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.AutoDetectDecodingConfig, com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder, com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder> autoDecodingConfigBuilder_;
+            com.google.cloud.speech.v2.AutoDetectDecodingConfig,
+            com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder,
+            com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder>
+        autoDecodingConfigBuilder_;
     /**
+     *
+     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
      * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; + * * @return Whether the autoDecodingConfig field is set. */ @java.lang.Override @@ -756,12 +831,15 @@ public boolean hasAutoDecodingConfig() { return decodingConfigCase_ == 7; } /** + * + * *
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
      * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; + * * @return The autoDecodingConfig. */ @java.lang.Override @@ -779,6 +857,8 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig getAutoDecodingConfig } } /** + * + * *
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -786,7 +866,8 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig getAutoDecodingConfig
      *
      * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      */
-    public Builder setAutoDecodingConfig(com.google.cloud.speech.v2.AutoDetectDecodingConfig value) {
+    public Builder setAutoDecodingConfig(
+        com.google.cloud.speech.v2.AutoDetectDecodingConfig value) {
       if (autoDecodingConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -800,6 +881,8 @@ public Builder setAutoDecodingConfig(com.google.cloud.speech.v2.AutoDetectDecodi
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -819,6 +902,8 @@ public Builder setAutoDecodingConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -826,12 +911,17 @@ public Builder setAutoDecodingConfig(
      *
      * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      */
-    public Builder mergeAutoDecodingConfig(com.google.cloud.speech.v2.AutoDetectDecodingConfig value) {
+    public Builder mergeAutoDecodingConfig(
+        com.google.cloud.speech.v2.AutoDetectDecodingConfig value) {
       if (autoDecodingConfigBuilder_ == null) {
-        if (decodingConfigCase_ == 7 &&
-            decodingConfig_ != com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance()) {
-          decodingConfig_ = com.google.cloud.speech.v2.AutoDetectDecodingConfig.newBuilder((com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_)
-              .mergeFrom(value).buildPartial();
+        if (decodingConfigCase_ == 7
+            && decodingConfig_
+                != com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance()) {
+          decodingConfig_ =
+              com.google.cloud.speech.v2.AutoDetectDecodingConfig.newBuilder(
+                      (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           decodingConfig_ = value;
         }
@@ -847,6 +937,8 @@ public Builder mergeAutoDecodingConfig(com.google.cloud.speech.v2.AutoDetectDeco
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -871,6 +963,8 @@ public Builder clearAutoDecodingConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -878,10 +972,13 @@ public Builder clearAutoDecodingConfig() {
      *
      * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      */
-    public com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder getAutoDecodingConfigBuilder() {
+    public com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder
+        getAutoDecodingConfigBuilder() {
       return getAutoDecodingConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -890,7 +987,8 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder getAutoDecodi
      * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      */
     @java.lang.Override
-    public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder getAutoDecodingConfigOrBuilder() {
+    public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder
+        getAutoDecodingConfigOrBuilder() {
       if ((decodingConfigCase_ == 7) && (autoDecodingConfigBuilder_ != null)) {
         return autoDecodingConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -901,6 +999,8 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder getAutoDecod
       }
     }
     /**
+     *
+     *
      * 
      * Automatically detect decoding parameters.
      * Preferred for supported formats.
@@ -909,14 +1009,20 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder getAutoDecod
      * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.AutoDetectDecodingConfig, com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder, com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder> 
+            com.google.cloud.speech.v2.AutoDetectDecodingConfig,
+            com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder,
+            com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder>
         getAutoDecodingConfigFieldBuilder() {
       if (autoDecodingConfigBuilder_ == null) {
         if (!(decodingConfigCase_ == 7)) {
-          decodingConfig_ = com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance();
+          decodingConfig_ =
+              com.google.cloud.speech.v2.AutoDetectDecodingConfig.getDefaultInstance();
         }
-        autoDecodingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.AutoDetectDecodingConfig, com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder, com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder>(
+        autoDecodingConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v2.AutoDetectDecodingConfig,
+                com.google.cloud.speech.v2.AutoDetectDecodingConfig.Builder,
+                com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder>(
                 (com.google.cloud.speech.v2.AutoDetectDecodingConfig) decodingConfig_,
                 getParentForChildren(),
                 isClean());
@@ -928,14 +1034,20 @@ public com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder getAutoDecod
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.ExplicitDecodingConfig, com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder, com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder> explicitDecodingConfigBuilder_;
+            com.google.cloud.speech.v2.ExplicitDecodingConfig,
+            com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder,
+            com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder>
+        explicitDecodingConfigBuilder_;
     /**
+     *
+     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
      * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; + * * @return Whether the explicitDecodingConfig field is set. */ @java.lang.Override @@ -943,12 +1055,15 @@ public boolean hasExplicitDecodingConfig() { return decodingConfigCase_ == 8; } /** + * + * *
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
      * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; + * * @return The explicitDecodingConfig. */ @java.lang.Override @@ -966,6 +1081,8 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConf } } /** + * + * *
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -973,7 +1090,8 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConf
      *
      * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      */
-    public Builder setExplicitDecodingConfig(com.google.cloud.speech.v2.ExplicitDecodingConfig value) {
+    public Builder setExplicitDecodingConfig(
+        com.google.cloud.speech.v2.ExplicitDecodingConfig value) {
       if (explicitDecodingConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -987,6 +1105,8 @@ public Builder setExplicitDecodingConfig(com.google.cloud.speech.v2.ExplicitDeco
       return this;
     }
     /**
+     *
+     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1006,6 +1126,8 @@ public Builder setExplicitDecodingConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1013,12 +1135,17 @@ public Builder setExplicitDecodingConfig(
      *
      * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      */
-    public Builder mergeExplicitDecodingConfig(com.google.cloud.speech.v2.ExplicitDecodingConfig value) {
+    public Builder mergeExplicitDecodingConfig(
+        com.google.cloud.speech.v2.ExplicitDecodingConfig value) {
       if (explicitDecodingConfigBuilder_ == null) {
-        if (decodingConfigCase_ == 8 &&
-            decodingConfig_ != com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance()) {
-          decodingConfig_ = com.google.cloud.speech.v2.ExplicitDecodingConfig.newBuilder((com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_)
-              .mergeFrom(value).buildPartial();
+        if (decodingConfigCase_ == 8
+            && decodingConfig_
+                != com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance()) {
+          decodingConfig_ =
+              com.google.cloud.speech.v2.ExplicitDecodingConfig.newBuilder(
+                      (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           decodingConfig_ = value;
         }
@@ -1034,6 +1161,8 @@ public Builder mergeExplicitDecodingConfig(com.google.cloud.speech.v2.ExplicitDe
       return this;
     }
     /**
+     *
+     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1058,6 +1187,8 @@ public Builder clearExplicitDecodingConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1065,10 +1196,13 @@ public Builder clearExplicitDecodingConfig() {
      *
      * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      */
-    public com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder getExplicitDecodingConfigBuilder() {
+    public com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder
+        getExplicitDecodingConfigBuilder() {
       return getExplicitDecodingConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1077,7 +1211,8 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder getExplicitDeco
      * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      */
     @java.lang.Override
-    public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder getExplicitDecodingConfigOrBuilder() {
+    public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder
+        getExplicitDecodingConfigOrBuilder() {
       if ((decodingConfigCase_ == 8) && (explicitDecodingConfigBuilder_ != null)) {
         return explicitDecodingConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -1088,6 +1223,8 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder getExplicitDec
       }
     }
     /**
+     *
+     *
      * 
      * Explicitly specified decoding parameters.
      * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -1096,14 +1233,19 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder getExplicitDec
      * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.ExplicitDecodingConfig, com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder, com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder> 
+            com.google.cloud.speech.v2.ExplicitDecodingConfig,
+            com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder,
+            com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder>
         getExplicitDecodingConfigFieldBuilder() {
       if (explicitDecodingConfigBuilder_ == null) {
         if (!(decodingConfigCase_ == 8)) {
           decodingConfig_ = com.google.cloud.speech.v2.ExplicitDecodingConfig.getDefaultInstance();
         }
-        explicitDecodingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.ExplicitDecodingConfig, com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder, com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder>(
+        explicitDecodingConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v2.ExplicitDecodingConfig,
+                com.google.cloud.speech.v2.ExplicitDecodingConfig.Builder,
+                com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder>(
                 (com.google.cloud.speech.v2.ExplicitDecodingConfig) decodingConfig_,
                 getParentForChildren(),
                 isClean());
@@ -1116,34 +1258,47 @@ public com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder getExplicitDec
 
     private com.google.cloud.speech.v2.RecognitionFeatures features_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.RecognitionFeatures, com.google.cloud.speech.v2.RecognitionFeatures.Builder, com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder> featuresBuilder_;
+            com.google.cloud.speech.v2.RecognitionFeatures,
+            com.google.cloud.speech.v2.RecognitionFeatures.Builder,
+            com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder>
+        featuresBuilder_;
     /**
+     *
+     *
      * 
      * Speech recognition features to enable.
      * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; + * * @return Whether the features field is set. */ public boolean hasFeatures() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Speech recognition features to enable.
      * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; + * * @return The features. */ public com.google.cloud.speech.v2.RecognitionFeatures getFeatures() { if (featuresBuilder_ == null) { - return features_ == null ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() : features_; + return features_ == null + ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() + : features_; } else { return featuresBuilder_.getMessage(); } } /** + * + * *
      * Speech recognition features to enable.
      * 
@@ -1164,6 +1319,8 @@ public Builder setFeatures(com.google.cloud.speech.v2.RecognitionFeatures value) return this; } /** + * + * *
      * Speech recognition features to enable.
      * 
@@ -1182,6 +1339,8 @@ public Builder setFeatures( return this; } /** + * + * *
      * Speech recognition features to enable.
      * 
@@ -1190,9 +1349,9 @@ public Builder setFeatures( */ public Builder mergeFeatures(com.google.cloud.speech.v2.RecognitionFeatures value) { if (featuresBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - features_ != null && - features_ != com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && features_ != null + && features_ != com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance()) { getFeaturesBuilder().mergeFrom(value); } else { features_ = value; @@ -1205,6 +1364,8 @@ public Builder mergeFeatures(com.google.cloud.speech.v2.RecognitionFeatures valu return this; } /** + * + * *
      * Speech recognition features to enable.
      * 
@@ -1222,6 +1383,8 @@ public Builder clearFeatures() { return this; } /** + * + * *
      * Speech recognition features to enable.
      * 
@@ -1234,6 +1397,8 @@ public com.google.cloud.speech.v2.RecognitionFeatures.Builder getFeaturesBuilder return getFeaturesFieldBuilder().getBuilder(); } /** + * + * *
      * Speech recognition features to enable.
      * 
@@ -1244,11 +1409,14 @@ public com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder getFeaturesOrBuil if (featuresBuilder_ != null) { return featuresBuilder_.getMessageOrBuilder(); } else { - return features_ == null ? - com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() : features_; + return features_ == null + ? com.google.cloud.speech.v2.RecognitionFeatures.getDefaultInstance() + : features_; } } /** + * + * *
      * Speech recognition features to enable.
      * 
@@ -1256,14 +1424,17 @@ public com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder getFeaturesOrBuil * .google.cloud.speech.v2.RecognitionFeatures features = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionFeatures, com.google.cloud.speech.v2.RecognitionFeatures.Builder, com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder> + com.google.cloud.speech.v2.RecognitionFeatures, + com.google.cloud.speech.v2.RecognitionFeatures.Builder, + com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder> getFeaturesFieldBuilder() { if (featuresBuilder_ == null) { - featuresBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionFeatures, com.google.cloud.speech.v2.RecognitionFeatures.Builder, com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder>( - getFeatures(), - getParentForChildren(), - isClean()); + featuresBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.RecognitionFeatures, + com.google.cloud.speech.v2.RecognitionFeatures.Builder, + com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder>( + getFeatures(), getParentForChildren(), isClean()); features_ = null; } return featuresBuilder_; @@ -1271,36 +1442,49 @@ public com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder getFeaturesOrBuil private com.google.cloud.speech.v2.SpeechAdaptation adaptation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.SpeechAdaptation, com.google.cloud.speech.v2.SpeechAdaptation.Builder, com.google.cloud.speech.v2.SpeechAdaptationOrBuilder> adaptationBuilder_; + com.google.cloud.speech.v2.SpeechAdaptation, + com.google.cloud.speech.v2.SpeechAdaptation.Builder, + com.google.cloud.speech.v2.SpeechAdaptationOrBuilder> + adaptationBuilder_; /** + * + * *
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
      * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; + * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
      * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; + * * @return The adaptation. */ public com.google.cloud.speech.v2.SpeechAdaptation getAdaptation() { if (adaptationBuilder_ == null) { - return adaptation_ == null ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() : adaptation_; + return adaptation_ == null + ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() + : adaptation_; } else { return adaptationBuilder_.getMessage(); } } /** + * + * *
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1322,6 +1506,8 @@ public Builder setAdaptation(com.google.cloud.speech.v2.SpeechAdaptation value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1341,6 +1527,8 @@ public Builder setAdaptation(
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1350,9 +1538,9 @@ public Builder setAdaptation(
      */
     public Builder mergeAdaptation(com.google.cloud.speech.v2.SpeechAdaptation value) {
       if (adaptationBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          adaptation_ != null &&
-          adaptation_ != com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && adaptation_ != null
+            && adaptation_ != com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance()) {
           getAdaptationBuilder().mergeFrom(value);
         } else {
           adaptation_ = value;
@@ -1365,6 +1553,8 @@ public Builder mergeAdaptation(com.google.cloud.speech.v2.SpeechAdaptation value
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1383,6 +1573,8 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1396,6 +1588,8 @@ public com.google.cloud.speech.v2.SpeechAdaptation.Builder getAdaptationBuilder(
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1407,11 +1601,14 @@ public com.google.cloud.speech.v2.SpeechAdaptationOrBuilder getAdaptationOrBuild
       if (adaptationBuilder_ != null) {
         return adaptationBuilder_.getMessageOrBuilder();
       } else {
-        return adaptation_ == null ?
-            com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance() : adaptation_;
+        return adaptation_ == null
+            ? com.google.cloud.speech.v2.SpeechAdaptation.getDefaultInstance()
+            : adaptation_;
       }
     }
     /**
+     *
+     *
      * 
      * Speech adaptation context that weights recognizer predictions for specific
      * words and phrases.
@@ -1420,21 +1617,24 @@ public com.google.cloud.speech.v2.SpeechAdaptationOrBuilder getAdaptationOrBuild
      * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.SpeechAdaptation, com.google.cloud.speech.v2.SpeechAdaptation.Builder, com.google.cloud.speech.v2.SpeechAdaptationOrBuilder> 
+            com.google.cloud.speech.v2.SpeechAdaptation,
+            com.google.cloud.speech.v2.SpeechAdaptation.Builder,
+            com.google.cloud.speech.v2.SpeechAdaptationOrBuilder>
         getAdaptationFieldBuilder() {
       if (adaptationBuilder_ == null) {
-        adaptationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.SpeechAdaptation, com.google.cloud.speech.v2.SpeechAdaptation.Builder, com.google.cloud.speech.v2.SpeechAdaptationOrBuilder>(
-                getAdaptation(),
-                getParentForChildren(),
-                isClean());
+        adaptationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v2.SpeechAdaptation,
+                com.google.cloud.speech.v2.SpeechAdaptation.Builder,
+                com.google.cloud.speech.v2.SpeechAdaptationOrBuilder>(
+                getAdaptation(), getParentForChildren(), isClean());
         adaptation_ = null;
       }
       return adaptationBuilder_;
     }
+
     @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);
     }
 
@@ -1444,12 +1644,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.RecognitionConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.RecognitionConfig)
   private static final com.google.cloud.speech.v2.RecognitionConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.RecognitionConfig();
   }
@@ -1458,27 +1658,27 @@ public static com.google.cloud.speech.v2.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 {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  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 {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1493,6 +1693,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v2.RecognitionConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java
similarity index 83%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java
index b1dc2f84ec67..62221365975b 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfigOrBuilder.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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
-public interface RecognitionConfigOrBuilder extends
+public interface RecognitionConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.RecognitionConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
    * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; + * * @return Whether the autoDecodingConfig field is set. */ boolean hasAutoDecodingConfig(); /** + * + * *
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
    * 
* * .google.cloud.speech.v2.AutoDetectDecodingConfig auto_decoding_config = 7; + * * @return The autoDecodingConfig. */ com.google.cloud.speech.v2.AutoDetectDecodingConfig getAutoDecodingConfig(); /** + * + * *
    * Automatically detect decoding parameters.
    * Preferred for supported formats.
@@ -38,26 +62,34 @@ public interface RecognitionConfigOrBuilder extends
   com.google.cloud.speech.v2.AutoDetectDecodingConfigOrBuilder getAutoDecodingConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
    * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; + * * @return Whether the explicitDecodingConfig field is set. */ boolean hasExplicitDecodingConfig(); /** + * + * *
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
    * 
* * .google.cloud.speech.v2.ExplicitDecodingConfig explicit_decoding_config = 8; + * * @return The explicitDecodingConfig. */ com.google.cloud.speech.v2.ExplicitDecodingConfig getExplicitDecodingConfig(); /** + * + * *
    * Explicitly specified decoding parameters.
    * Required if using headerless PCM audio (linear16, mulaw, alaw).
@@ -68,24 +100,32 @@ public interface RecognitionConfigOrBuilder extends
   com.google.cloud.speech.v2.ExplicitDecodingConfigOrBuilder getExplicitDecodingConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Speech recognition features to enable.
    * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; + * * @return Whether the features field is set. */ boolean hasFeatures(); /** + * + * *
    * Speech recognition features to enable.
    * 
* * .google.cloud.speech.v2.RecognitionFeatures features = 2; + * * @return The features. */ com.google.cloud.speech.v2.RecognitionFeatures getFeatures(); /** + * + * *
    * Speech recognition features to enable.
    * 
@@ -95,26 +135,34 @@ public interface RecognitionConfigOrBuilder extends com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder getFeaturesOrBuilder(); /** + * + * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
    * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; + * * @return Whether the adaptation field is set. */ boolean hasAdaptation(); /** + * + * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
    * 
* * .google.cloud.speech.v2.SpeechAdaptation adaptation = 6; + * * @return The adaptation. */ com.google.cloud.speech.v2.SpeechAdaptation getAdaptation(); /** + * + * *
    * Speech adaptation context that weights recognizer predictions for specific
    * words and phrases.
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java
similarity index 76%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java
index 5cb5f781c74c..dc73e69ce7be 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeatures.java
@@ -1,63 +1,85 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
+ *
+ *
  * 
  * Available recognition features.
  * 
* * Protobuf type {@code google.cloud.speech.v2.RecognitionFeatures} */ -public final class RecognitionFeatures extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RecognitionFeatures extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.RecognitionFeatures) RecognitionFeaturesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RecognitionFeatures.newBuilder() to construct. private RecognitionFeatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RecognitionFeatures() { multiChannelMode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RecognitionFeatures(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.RecognitionFeatures.class, com.google.cloud.speech.v2.RecognitionFeatures.Builder.class); + com.google.cloud.speech.v2.RecognitionFeatures.class, + com.google.cloud.speech.v2.RecognitionFeatures.Builder.class); } /** + * + * *
    * Options for how to recognize multi-channel audio.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode} */ - public enum MultiChannelMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum MultiChannelMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value for the multi-channel mode. If the audio contains
      * multiple channels, only the first channel will be transcribed; other
@@ -68,6 +90,8 @@ public enum MultiChannelMode
      */
     MULTI_CHANNEL_MODE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * If selected, each channel in the provided audio is transcribed
      * independently. This cannot be selected if the selected
@@ -81,6 +105,8 @@ public enum MultiChannelMode
     ;
 
     /**
+     *
+     *
      * 
      * Default value for the multi-channel mode. If the audio contains
      * multiple channels, only the first channel will be transcribed; other
@@ -91,6 +117,8 @@ public enum MultiChannelMode
      */
     public static final int MULTI_CHANNEL_MODE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * If selected, each channel in the provided audio is transcribed
      * independently. This cannot be selected if the selected
@@ -101,7 +129,6 @@ public enum MultiChannelMode
      */
     public static final int SEPARATE_RECOGNITION_PER_CHANNEL_VALUE = 1;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -126,38 +153,40 @@ public static MultiChannelMode valueOf(int value) {
      */
     public static MultiChannelMode forNumber(int value) {
       switch (value) {
-        case 0: return MULTI_CHANNEL_MODE_UNSPECIFIED;
-        case 1: return SEPARATE_RECOGNITION_PER_CHANNEL;
-        default: return null;
+        case 0:
+          return MULTI_CHANNEL_MODE_UNSPECIFIED;
+        case 1:
+          return SEPARATE_RECOGNITION_PER_CHANNEL;
+        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<
-        MultiChannelMode> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public MultiChannelMode findValueByNumber(int number) {
-              return MultiChannelMode.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 MultiChannelMode findValueByNumber(int number) {
+                return MultiChannelMode.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.v2.RecognitionFeatures.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -166,8 +195,7 @@ public MultiChannelMode findValueByNumber(int number) {
     public static MultiChannelMode 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;
@@ -187,6 +215,8 @@ private MultiChannelMode(int value) {
   public static final int PROFANITY_FILTER_FIELD_NUMBER = 1;
   private boolean profanityFilter_ = false;
   /**
+   *
+   *
    * 
    * If set to `true`, the server will attempt to filter out profanities,
    * replacing all but the initial character in each filtered word with
@@ -195,6 +225,7 @@ private MultiChannelMode(int value) {
    * 
* * bool profanity_filter = 1; + * * @return The profanityFilter. */ @java.lang.Override @@ -205,6 +236,8 @@ public boolean getProfanityFilter() { public static final int ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER = 2; private boolean enableWordTimeOffsets_ = false; /** + * + * *
    * If `true`, the top result includes a list of words and the start and end
    * time offsets (timestamps) for those words. If `false`, no word-level time
@@ -212,6 +245,7 @@ public boolean getProfanityFilter() {
    * 
* * bool enable_word_time_offsets = 2; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -222,6 +256,8 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 3; private boolean enableWordConfidence_ = false; /** + * + * *
    * If `true`, the top result includes a list of words and the confidence for
    * those words. If `false`, no word-level confidence information is returned.
@@ -229,6 +265,7 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 3; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -239,6 +276,8 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 4; private boolean enableAutomaticPunctuation_ = false; /** + * + * *
    * If `true`, adds punctuation to recognition result hypotheses. This feature
    * is only available in select languages. The default `false` value does not
@@ -246,6 +285,7 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 4; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -256,6 +296,8 @@ public boolean getEnableAutomaticPunctuation() { public static final int ENABLE_SPOKEN_PUNCTUATION_FIELD_NUMBER = 14; private boolean enableSpokenPunctuation_ = false; /** + * + * *
    * The spoken punctuation behavior for the call. If `true`, replaces spoken
    * punctuation with the corresponding symbols in the request. For example,
@@ -265,6 +307,7 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * bool enable_spoken_punctuation = 14; + * * @return The enableSpokenPunctuation. */ @java.lang.Override @@ -275,6 +318,8 @@ public boolean getEnableSpokenPunctuation() { public static final int ENABLE_SPOKEN_EMOJIS_FIELD_NUMBER = 15; private boolean enableSpokenEmojis_ = false; /** + * + * *
    * The spoken emoji behavior for the call. If `true`, adds spoken emoji
    * formatting for the request. This will replace spoken emojis with the
@@ -283,6 +328,7 @@ public boolean getEnableSpokenPunctuation() {
    * 
* * bool enable_spoken_emojis = 15; + * * @return The enableSpokenEmojis. */ @java.lang.Override @@ -293,32 +339,48 @@ public boolean getEnableSpokenEmojis() { public static final int MULTI_CHANNEL_MODE_FIELD_NUMBER = 17; private int multiChannelMode_ = 0; /** + * + * *
    * Mode for recognizing multi-channel audio.
    * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * + * * @return The enum numeric value on the wire for multiChannelMode. */ - @java.lang.Override public int getMultiChannelModeValue() { + @java.lang.Override + public int getMultiChannelModeValue() { return multiChannelMode_; } /** + * + * *
    * Mode for recognizing multi-channel audio.
    * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * + * * @return The multiChannelMode. */ - @java.lang.Override public com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode getMultiChannelMode() { - com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode result = com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.forNumber(multiChannelMode_); - return result == null ? com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode getMultiChannelMode() { + com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode result = + com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.forNumber( + multiChannelMode_); + return result == null + ? com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.UNRECOGNIZED + : result; } public static final int DIARIZATION_CONFIG_FIELD_NUMBER = 9; private com.google.cloud.speech.v2.SpeakerDiarizationConfig diarizationConfig_; /** + * + * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -331,6 +393,7 @@ public boolean getEnableSpokenEmojis() {
    * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; + * * @return Whether the diarizationConfig field is set. */ @java.lang.Override @@ -338,6 +401,8 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** + * + * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -350,13 +415,18 @@ public boolean hasDiarizationConfig() {
    * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; + * * @return The diarizationConfig. */ @java.lang.Override public com.google.cloud.speech.v2.SpeakerDiarizationConfig getDiarizationConfig() { - return diarizationConfig_ == null ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_; + return diarizationConfig_ == null + ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() + : diarizationConfig_; } /** + * + * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -371,13 +441,18 @@ public com.google.cloud.speech.v2.SpeakerDiarizationConfig getDiarizationConfig(
    * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
-    return diarizationConfig_ == null ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_;
+  public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder
+      getDiarizationConfigOrBuilder() {
+    return diarizationConfig_ == null
+        ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()
+        : diarizationConfig_;
   }
 
   public static final int MAX_ALTERNATIVES_FIELD_NUMBER = 16;
   private int maxAlternatives_ = 0;
   /**
+   *
+   *
    * 
    * Maximum number of recognition hypotheses to be returned.
    * The server may return fewer than `max_alternatives`.
@@ -386,6 +461,7 @@ public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder getDiarizati
    * 
* * int32 max_alternatives = 16; + * * @return The maxAlternatives. */ @java.lang.Override @@ -394,6 +470,7 @@ public int getMaxAlternatives() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -405,8 +482,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 (profanityFilter_ != false) { output.writeBool(1, profanityFilter_); } @@ -431,7 +507,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (maxAlternatives_ != 0) { output.writeInt32(16, maxAlternatives_); } - if (multiChannelMode_ != com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.MULTI_CHANNEL_MODE_UNSPECIFIED.getNumber()) { + if (multiChannelMode_ + != com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode + .MULTI_CHANNEL_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(17, multiChannelMode_); } getUnknownFields().writeTo(output); @@ -444,40 +523,34 @@ public int getSerializedSize() { size = 0; if (profanityFilter_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, profanityFilter_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, profanityFilter_); } if (enableWordTimeOffsets_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enableWordTimeOffsets_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableWordTimeOffsets_); } if (enableWordConfidence_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, enableWordConfidence_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableWordConfidence_); } if (enableAutomaticPunctuation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, enableAutomaticPunctuation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, enableAutomaticPunctuation_); } if (diarizationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getDiarizationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getDiarizationConfig()); } if (enableSpokenPunctuation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(14, enableSpokenPunctuation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, enableSpokenPunctuation_); } if (enableSpokenEmojis_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, enableSpokenEmojis_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, enableSpokenEmojis_); } if (maxAlternatives_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(16, maxAlternatives_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(16, maxAlternatives_); } - if (multiChannelMode_ != com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.MULTI_CHANNEL_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(17, multiChannelMode_); + if (multiChannelMode_ + != com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode + .MULTI_CHANNEL_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, multiChannelMode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -487,33 +560,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.v2.RecognitionFeatures)) { return super.equals(obj); } - com.google.cloud.speech.v2.RecognitionFeatures other = (com.google.cloud.speech.v2.RecognitionFeatures) obj; - - if (getProfanityFilter() - != other.getProfanityFilter()) return false; - if (getEnableWordTimeOffsets() - != other.getEnableWordTimeOffsets()) return false; - if (getEnableWordConfidence() - != other.getEnableWordConfidence()) return false; - if (getEnableAutomaticPunctuation() - != other.getEnableAutomaticPunctuation()) return false; - if (getEnableSpokenPunctuation() - != other.getEnableSpokenPunctuation()) return false; - if (getEnableSpokenEmojis() - != other.getEnableSpokenEmojis()) return false; + com.google.cloud.speech.v2.RecognitionFeatures other = + (com.google.cloud.speech.v2.RecognitionFeatures) obj; + + if (getProfanityFilter() != other.getProfanityFilter()) return false; + if (getEnableWordTimeOffsets() != other.getEnableWordTimeOffsets()) return false; + if (getEnableWordConfidence() != other.getEnableWordConfidence()) return false; + if (getEnableAutomaticPunctuation() != other.getEnableAutomaticPunctuation()) return false; + if (getEnableSpokenPunctuation() != other.getEnableSpokenPunctuation()) return false; + if (getEnableSpokenEmojis() != other.getEnableSpokenEmojis()) return false; if (multiChannelMode_ != other.multiChannelMode_) 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 (getMaxAlternatives() - != other.getMaxAlternatives()) return false; + if (getMaxAlternatives() != other.getMaxAlternatives()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -526,23 +592,17 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); 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()); 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()); hash = (37 * hash) + ENABLE_SPOKEN_PUNCTUATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSpokenPunctuation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSpokenPunctuation()); hash = (37 * hash) + ENABLE_SPOKEN_EMOJIS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSpokenEmojis()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSpokenEmojis()); hash = (37 * hash) + MULTI_CHANNEL_MODE_FIELD_NUMBER; hash = (53 * hash) + multiChannelMode_; if (hasDiarizationConfig()) { @@ -556,130 +616,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.RecognitionFeatures parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.RecognitionFeatures parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.RecognitionFeatures 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.v2.RecognitionFeatures parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.RecognitionFeatures 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.v2.RecognitionFeatures parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.RecognitionFeatures 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.v2.RecognitionFeatures 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.v2.RecognitionFeatures 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.v2.RecognitionFeatures parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.RecognitionFeatures parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.RecognitionFeatures 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.v2.RecognitionFeatures 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.v2.RecognitionFeatures 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.v2.RecognitionFeatures 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; } /** + * + * *
    * Available recognition features.
    * 
* * Protobuf type {@code google.cloud.speech.v2.RecognitionFeatures} */ - 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.v2.RecognitionFeatures) com.google.cloud.speech.v2.RecognitionFeaturesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.RecognitionFeatures.class, com.google.cloud.speech.v2.RecognitionFeatures.Builder.class); + com.google.cloud.speech.v2.RecognitionFeatures.class, + com.google.cloud.speech.v2.RecognitionFeatures.Builder.class); } // Construct using com.google.cloud.speech.v2.RecognitionFeatures.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -701,9 +767,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; } @java.lang.Override @@ -722,8 +788,11 @@ public com.google.cloud.speech.v2.RecognitionFeatures build() { @java.lang.Override public com.google.cloud.speech.v2.RecognitionFeatures buildPartial() { - com.google.cloud.speech.v2.RecognitionFeatures result = new com.google.cloud.speech.v2.RecognitionFeatures(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v2.RecognitionFeatures result = + new com.google.cloud.speech.v2.RecognitionFeatures(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -752,9 +821,10 @@ private void buildPartial0(com.google.cloud.speech.v2.RecognitionFeatures result result.multiChannelMode_ = multiChannelMode_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.diarizationConfig_ = diarizationConfigBuilder_ == null - ? diarizationConfig_ - : diarizationConfigBuilder_.build(); + result.diarizationConfig_ = + diarizationConfigBuilder_ == null + ? diarizationConfig_ + : diarizationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.maxAlternatives_ = maxAlternatives_; @@ -765,38 +835,39 @@ private void buildPartial0(com.google.cloud.speech.v2.RecognitionFeatures result 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.v2.RecognitionFeatures) { - return mergeFrom((com.google.cloud.speech.v2.RecognitionFeatures)other); + return mergeFrom((com.google.cloud.speech.v2.RecognitionFeatures) other); } else { super.mergeFrom(other); return this; @@ -858,59 +929,68 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - profanityFilter_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - enableWordTimeOffsets_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - enableWordConfidence_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - enableAutomaticPunctuation_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 74: { - input.readMessage( - getDiarizationConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 74 - case 112: { - enableSpokenPunctuation_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 112 - case 120: { - enableSpokenEmojis_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 120 - case 128: { - maxAlternatives_ = input.readInt32(); - bitField0_ |= 0x00000100; - break; - } // case 128 - case 136: { - multiChannelMode_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 136 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + profanityFilter_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + enableWordTimeOffsets_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + enableWordConfidence_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + enableAutomaticPunctuation_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 74: + { + input.readMessage( + getDiarizationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 112: + { + enableSpokenPunctuation_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 112 + case 120: + { + enableSpokenEmojis_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 120 + case 128: + { + maxAlternatives_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 128 + case 136: + { + multiChannelMode_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 136 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -920,10 +1000,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - 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 with
@@ -932,6 +1015,7 @@ public Builder mergeFrom(
      * 
* * bool profanity_filter = 1; + * * @return The profanityFilter. */ @java.lang.Override @@ -939,6 +1023,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 with
@@ -947,17 +1033,20 @@ public boolean getProfanityFilter() {
      * 
* * bool profanity_filter = 1; + * * @param value The profanityFilter to set. * @return This builder for chaining. */ public Builder setProfanityFilter(boolean value) { - + profanityFilter_ = value; bitField0_ |= 0x00000001; 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 with
@@ -966,6 +1055,7 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 1; + * * @return This builder for chaining. */ public Builder clearProfanityFilter() { @@ -975,8 +1065,10 @@ public Builder clearProfanityFilter() { return this; } - 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 `false`, no word-level time
@@ -984,6 +1076,7 @@ public Builder clearProfanityFilter() {
      * 
* * bool enable_word_time_offsets = 2; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -991,6 +1084,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 `false`, no word-level time
@@ -998,17 +1093,20 @@ public boolean getEnableWordTimeOffsets() {
      * 
* * bool enable_word_time_offsets = 2; + * * @param value The enableWordTimeOffsets to set. * @return This builder for chaining. */ public Builder setEnableWordTimeOffsets(boolean value) { - + enableWordTimeOffsets_ = value; bitField0_ |= 0x00000002; 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 `false`, no word-level time
@@ -1016,6 +1114,7 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 2; + * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { @@ -1025,8 +1124,10 @@ public Builder clearEnableWordTimeOffsets() { 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 information is returned.
@@ -1034,6 +1135,7 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 3; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -1041,6 +1143,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 information is returned.
@@ -1048,17 +1152,20 @@ public boolean getEnableWordConfidence() {
      * 
* * bool enable_word_confidence = 3; + * * @param value The enableWordConfidence to set. * @return This builder for chaining. */ public Builder setEnableWordConfidence(boolean value) { - + enableWordConfidence_ = value; bitField0_ |= 0x00000004; 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 information is returned.
@@ -1066,6 +1173,7 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 3; + * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { @@ -1075,8 +1183,10 @@ public Builder clearEnableWordConfidence() { return this; } - private boolean enableAutomaticPunctuation_ ; + private boolean enableAutomaticPunctuation_; /** + * + * *
      * If `true`, adds punctuation to recognition result hypotheses. This feature
      * is only available in select languages. The default `false` value does not
@@ -1084,6 +1194,7 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 4; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -1091,6 +1202,8 @@ public boolean getEnableAutomaticPunctuation() { return enableAutomaticPunctuation_; } /** + * + * *
      * If `true`, adds punctuation to recognition result hypotheses. This feature
      * is only available in select languages. The default `false` value does not
@@ -1098,17 +1211,20 @@ public boolean getEnableAutomaticPunctuation() {
      * 
* * bool enable_automatic_punctuation = 4; + * * @param value The enableAutomaticPunctuation to set. * @return This builder for chaining. */ public Builder setEnableAutomaticPunctuation(boolean value) { - + enableAutomaticPunctuation_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * If `true`, adds punctuation to recognition result hypotheses. This feature
      * is only available in select languages. The default `false` value does not
@@ -1116,6 +1232,7 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 4; + * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { @@ -1125,8 +1242,10 @@ public Builder clearEnableAutomaticPunctuation() { return this; } - private boolean enableSpokenPunctuation_ ; + private boolean enableSpokenPunctuation_; /** + * + * *
      * The spoken punctuation behavior for the call. If `true`, replaces spoken
      * punctuation with the corresponding symbols in the request. For example,
@@ -1136,6 +1255,7 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * bool enable_spoken_punctuation = 14; + * * @return The enableSpokenPunctuation. */ @java.lang.Override @@ -1143,6 +1263,8 @@ public boolean getEnableSpokenPunctuation() { return enableSpokenPunctuation_; } /** + * + * *
      * The spoken punctuation behavior for the call. If `true`, replaces spoken
      * punctuation with the corresponding symbols in the request. For example,
@@ -1152,17 +1274,20 @@ public boolean getEnableSpokenPunctuation() {
      * 
* * bool enable_spoken_punctuation = 14; + * * @param value The enableSpokenPunctuation to set. * @return This builder for chaining. */ public Builder setEnableSpokenPunctuation(boolean value) { - + enableSpokenPunctuation_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * The spoken punctuation behavior for the call. If `true`, replaces spoken
      * punctuation with the corresponding symbols in the request. For example,
@@ -1172,6 +1297,7 @@ public Builder setEnableSpokenPunctuation(boolean value) {
      * 
* * bool enable_spoken_punctuation = 14; + * * @return This builder for chaining. */ public Builder clearEnableSpokenPunctuation() { @@ -1181,8 +1307,10 @@ public Builder clearEnableSpokenPunctuation() { return this; } - private boolean enableSpokenEmojis_ ; + private boolean enableSpokenEmojis_; /** + * + * *
      * The spoken emoji behavior for the call. If `true`, adds spoken emoji
      * formatting for the request. This will replace spoken emojis with the
@@ -1191,6 +1319,7 @@ public Builder clearEnableSpokenPunctuation() {
      * 
* * bool enable_spoken_emojis = 15; + * * @return The enableSpokenEmojis. */ @java.lang.Override @@ -1198,6 +1327,8 @@ public boolean getEnableSpokenEmojis() { return enableSpokenEmojis_; } /** + * + * *
      * The spoken emoji behavior for the call. If `true`, adds spoken emoji
      * formatting for the request. This will replace spoken emojis with the
@@ -1206,17 +1337,20 @@ public boolean getEnableSpokenEmojis() {
      * 
* * bool enable_spoken_emojis = 15; + * * @param value The enableSpokenEmojis to set. * @return This builder for chaining. */ public Builder setEnableSpokenEmojis(boolean value) { - + enableSpokenEmojis_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The spoken emoji behavior for the call. If `true`, adds spoken emoji
      * formatting for the request. This will replace spoken emojis with the
@@ -1225,6 +1359,7 @@ public Builder setEnableSpokenEmojis(boolean value) {
      * 
* * bool enable_spoken_emojis = 15; + * * @return This builder for chaining. */ public Builder clearEnableSpokenEmojis() { @@ -1236,22 +1371,31 @@ public Builder clearEnableSpokenEmojis() { private int multiChannelMode_ = 0; /** + * + * *
      * Mode for recognizing multi-channel audio.
      * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * + * * @return The enum numeric value on the wire for multiChannelMode. */ - @java.lang.Override public int getMultiChannelModeValue() { + @java.lang.Override + public int getMultiChannelModeValue() { return multiChannelMode_; } /** + * + * *
      * Mode for recognizing multi-channel audio.
      * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * + * * @param value The enum numeric value on the wire for multiChannelMode to set. * @return This builder for chaining. */ @@ -1262,28 +1406,41 @@ public Builder setMultiChannelModeValue(int value) { return this; } /** + * + * *
      * Mode for recognizing multi-channel audio.
      * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * + * * @return The multiChannelMode. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode getMultiChannelMode() { - com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode result = com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.forNumber(multiChannelMode_); - return result == null ? com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.UNRECOGNIZED : result; + com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode result = + com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.forNumber( + multiChannelMode_); + return result == null + ? com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode.UNRECOGNIZED + : result; } /** + * + * *
      * Mode for recognizing multi-channel audio.
      * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * + * * @param value The multiChannelMode to set. * @return This builder for chaining. */ - public Builder setMultiChannelMode(com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode value) { + public Builder setMultiChannelMode( + com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode value) { if (value == null) { throw new NullPointerException(); } @@ -1293,11 +1450,15 @@ public Builder setMultiChannelMode(com.google.cloud.speech.v2.RecognitionFeature return this; } /** + * + * *
      * Mode for recognizing multi-channel audio.
      * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * + * * @return This builder for chaining. */ public Builder clearMultiChannelMode() { @@ -1309,8 +1470,13 @@ public Builder clearMultiChannelMode() { private com.google.cloud.speech.v2.SpeakerDiarizationConfig diarizationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.SpeakerDiarizationConfig, com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder> diarizationConfigBuilder_; + com.google.cloud.speech.v2.SpeakerDiarizationConfig, + com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder, + com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder> + diarizationConfigBuilder_; /** + * + * *
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1323,12 +1489,15 @@ public Builder clearMultiChannelMode() {
      * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; + * * @return Whether the diarizationConfig field is set. */ public boolean hasDiarizationConfig() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1341,16 +1510,21 @@ public boolean hasDiarizationConfig() {
      * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; + * * @return The diarizationConfig. */ public com.google.cloud.speech.v2.SpeakerDiarizationConfig getDiarizationConfig() { if (diarizationConfigBuilder_ == null) { - return diarizationConfig_ == null ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_; + return diarizationConfig_ == null + ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() + : diarizationConfig_; } else { return diarizationConfigBuilder_.getMessage(); } } /** + * + * *
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1378,6 +1552,8 @@ public Builder setDiarizationConfig(com.google.cloud.speech.v2.SpeakerDiarizatio
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1403,6 +1579,8 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1416,11 +1594,13 @@ public Builder setDiarizationConfig(
      *
      * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9;
      */
-    public Builder mergeDiarizationConfig(com.google.cloud.speech.v2.SpeakerDiarizationConfig value) {
+    public Builder mergeDiarizationConfig(
+        com.google.cloud.speech.v2.SpeakerDiarizationConfig value) {
       if (diarizationConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000080) != 0) &&
-          diarizationConfig_ != null &&
-          diarizationConfig_ != com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000080) != 0)
+            && diarizationConfig_ != null
+            && diarizationConfig_
+                != com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()) {
           getDiarizationConfigBuilder().mergeFrom(value);
         } else {
           diarizationConfig_ = value;
@@ -1433,6 +1613,8 @@ public Builder mergeDiarizationConfig(com.google.cloud.speech.v2.SpeakerDiarizat
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1457,6 +1639,8 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1470,12 +1654,15 @@ public Builder clearDiarizationConfig() {
      *
      * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9;
      */
-    public com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder getDiarizationConfigBuilder() {
+    public com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder
+        getDiarizationConfigBuilder() {
       bitField0_ |= 0x00000080;
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1489,15 +1676,19 @@ public com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder getDiarizatio
      *
      * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9;
      */
-    public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
+    public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder
+        getDiarizationConfigOrBuilder() {
       if (diarizationConfigBuilder_ != null) {
         return diarizationConfigBuilder_.getMessageOrBuilder();
       } else {
-        return diarizationConfig_ == null ?
-            com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_;
+        return diarizationConfig_ == null
+            ? com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()
+            : diarizationConfig_;
       }
     }
     /**
+     *
+     *
      * 
      * Configuration to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -1512,21 +1703,26 @@ public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder getDiarizati
      * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.SpeakerDiarizationConfig, com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder> 
+            com.google.cloud.speech.v2.SpeakerDiarizationConfig,
+            com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder,
+            com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder>
         getDiarizationConfigFieldBuilder() {
       if (diarizationConfigBuilder_ == null) {
-        diarizationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.SpeakerDiarizationConfig, com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder>(
-                getDiarizationConfig(),
-                getParentForChildren(),
-                isClean());
+        diarizationConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v2.SpeakerDiarizationConfig,
+                com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder,
+                com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder>(
+                getDiarizationConfig(), getParentForChildren(), isClean());
         diarizationConfig_ = null;
       }
       return diarizationConfigBuilder_;
     }
 
-    private int maxAlternatives_ ;
+    private int maxAlternatives_;
     /**
+     *
+     *
      * 
      * Maximum number of recognition hypotheses to be returned.
      * The server may return fewer than `max_alternatives`.
@@ -1535,6 +1731,7 @@ public com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder getDiarizati
      * 
* * int32 max_alternatives = 16; + * * @return The maxAlternatives. */ @java.lang.Override @@ -1542,6 +1739,8 @@ public int getMaxAlternatives() { return maxAlternatives_; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * The server may return fewer than `max_alternatives`.
@@ -1550,17 +1749,20 @@ public int getMaxAlternatives() {
      * 
* * int32 max_alternatives = 16; + * * @param value The maxAlternatives to set. * @return This builder for chaining. */ public Builder setMaxAlternatives(int value) { - + maxAlternatives_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * The server may return fewer than `max_alternatives`.
@@ -1569,6 +1771,7 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 16; + * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { @@ -1577,9 +1780,9 @@ public Builder clearMaxAlternatives() { 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); } @@ -1589,12 +1792,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.RecognitionFeatures) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.RecognitionFeatures) private static final com.google.cloud.speech.v2.RecognitionFeatures DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.RecognitionFeatures(); } @@ -1603,27 +1806,27 @@ public static com.google.cloud.speech.v2.RecognitionFeatures getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionFeatures parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionFeatures parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1638,6 +1841,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.RecognitionFeatures getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java similarity index 86% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java index 8ec8d38ddcb2..30c39ecf7014 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionFeaturesOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface RecognitionFeaturesOrBuilder extends +public interface RecognitionFeaturesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.RecognitionFeatures) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If set to `true`, the server will attempt to filter out profanities,
    * replacing all but the initial character in each filtered word with
@@ -16,11 +34,14 @@ public interface RecognitionFeaturesOrBuilder extends
    * 
* * bool profanity_filter = 1; + * * @return The profanityFilter. */ boolean getProfanityFilter(); /** + * + * *
    * If `true`, the top result includes a list of words and the start and end
    * time offsets (timestamps) for those words. If `false`, no word-level time
@@ -28,11 +49,14 @@ public interface RecognitionFeaturesOrBuilder extends
    * 
* * bool enable_word_time_offsets = 2; + * * @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 information is returned.
@@ -40,11 +64,14 @@ public interface RecognitionFeaturesOrBuilder extends
    * 
* * bool enable_word_confidence = 3; + * * @return The enableWordConfidence. */ boolean getEnableWordConfidence(); /** + * + * *
    * If `true`, adds punctuation to recognition result hypotheses. This feature
    * is only available in select languages. The default `false` value does not
@@ -52,11 +79,14 @@ public interface RecognitionFeaturesOrBuilder extends
    * 
* * bool enable_automatic_punctuation = 4; + * * @return The enableAutomaticPunctuation. */ boolean getEnableAutomaticPunctuation(); /** + * + * *
    * The spoken punctuation behavior for the call. If `true`, replaces spoken
    * punctuation with the corresponding symbols in the request. For example,
@@ -66,11 +96,14 @@ public interface RecognitionFeaturesOrBuilder extends
    * 
* * bool enable_spoken_punctuation = 14; + * * @return The enableSpokenPunctuation. */ boolean getEnableSpokenPunctuation(); /** + * + * *
    * The spoken emoji behavior for the call. If `true`, adds spoken emoji
    * formatting for the request. This will replace spoken emojis with the
@@ -79,30 +112,41 @@ public interface RecognitionFeaturesOrBuilder extends
    * 
* * bool enable_spoken_emojis = 15; + * * @return The enableSpokenEmojis. */ boolean getEnableSpokenEmojis(); /** + * + * *
    * Mode for recognizing multi-channel audio.
    * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * + * * @return The enum numeric value on the wire for multiChannelMode. */ int getMultiChannelModeValue(); /** + * + * *
    * Mode for recognizing multi-channel audio.
    * 
* - * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * .google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode multi_channel_mode = 17; + * + * * @return The multiChannelMode. */ com.google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode getMultiChannelMode(); /** + * + * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -115,10 +159,13 @@ public interface RecognitionFeaturesOrBuilder extends
    * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; + * * @return Whether the diarizationConfig field is set. */ boolean hasDiarizationConfig(); /** + * + * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -131,10 +178,13 @@ public interface RecognitionFeaturesOrBuilder extends
    * 
* * .google.cloud.speech.v2.SpeakerDiarizationConfig diarization_config = 9; + * * @return The diarizationConfig. */ com.google.cloud.speech.v2.SpeakerDiarizationConfig getDiarizationConfig(); /** + * + * *
    * Configuration to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -151,6 +201,8 @@ public interface RecognitionFeaturesOrBuilder extends
   com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Maximum number of recognition hypotheses to be returned.
    * The server may return fewer than `max_alternatives`.
@@ -159,6 +211,7 @@ public interface RecognitionFeaturesOrBuilder extends
    * 
* * int32 max_alternatives = 16; + * * @return The maxAlternatives. */ int getMaxAlternatives(); diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java similarity index 65% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java index 31df72758f44..68ee8f710800 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadata.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Metadata about the recognition request and response.
  * 
* * Protobuf type {@code google.cloud.speech.v2.RecognitionResponseMetadata} */ -public final class RecognitionResponseMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RecognitionResponseMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.RecognitionResponseMetadata) RecognitionResponseMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RecognitionResponseMetadata.newBuilder() to construct. private RecognitionResponseMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RecognitionResponseMetadata() { - } + + private RecognitionResponseMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RecognitionResponseMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.RecognitionResponseMetadata.class, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder.class); + com.google.cloud.speech.v2.RecognitionResponseMetadata.class, + com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder.class); } public static final int TOTAL_BILLED_DURATION_FIELD_NUMBER = 6; private com.google.protobuf.Duration totalBilledDuration_; /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_duration = 6; + * * @return Whether the totalBilledDuration field is set. */ @java.lang.Override @@ -62,18 +83,25 @@ public boolean hasTotalBilledDuration() { return totalBilledDuration_ != null; } /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_duration = 6; + * * @return The totalBilledDuration. */ @java.lang.Override public com.google.protobuf.Duration getTotalBilledDuration() { - return totalBilledDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledDuration_; + return totalBilledDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledDuration_; } /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -82,10 +110,13 @@ public com.google.protobuf.Duration getTotalBilledDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalBilledDurationOrBuilder() { - return totalBilledDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledDuration_; + return totalBilledDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledDuration_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,8 +128,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 (totalBilledDuration_ != null) { output.writeMessage(6, getTotalBilledDuration()); } @@ -112,8 +142,7 @@ public int getSerializedSize() { size = 0; if (totalBilledDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getTotalBilledDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTotalBilledDuration()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -123,17 +152,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.v2.RecognitionResponseMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v2.RecognitionResponseMetadata other = (com.google.cloud.speech.v2.RecognitionResponseMetadata) obj; + com.google.cloud.speech.v2.RecognitionResponseMetadata other = + (com.google.cloud.speech.v2.RecognitionResponseMetadata) obj; if (hasTotalBilledDuration() != other.hasTotalBilledDuration()) return false; if (hasTotalBilledDuration()) { - if (!getTotalBilledDuration() - .equals(other.getTotalBilledDuration())) return false; + if (!getTotalBilledDuration().equals(other.getTotalBilledDuration())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -156,129 +185,136 @@ public int hashCode() { } public static com.google.cloud.speech.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.RecognitionResponseMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.RecognitionResponseMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata 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.v2.RecognitionResponseMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v2.RecognitionResponseMetadata 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; } /** + * + * *
    * Metadata about the recognition request and response.
    * 
* * Protobuf type {@code google.cloud.speech.v2.RecognitionResponseMetadata} */ - 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.v2.RecognitionResponseMetadata) com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.RecognitionResponseMetadata.class, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder.class); + com.google.cloud.speech.v2.RecognitionResponseMetadata.class, + com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder.class); } // Construct using com.google.cloud.speech.v2.RecognitionResponseMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +328,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; } @java.lang.Override @@ -313,8 +349,11 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata build() { @java.lang.Override public com.google.cloud.speech.v2.RecognitionResponseMetadata buildPartial() { - com.google.cloud.speech.v2.RecognitionResponseMetadata result = new com.google.cloud.speech.v2.RecognitionResponseMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v2.RecognitionResponseMetadata result = + new com.google.cloud.speech.v2.RecognitionResponseMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -322,9 +361,10 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata buildPartial() { private void buildPartial0(com.google.cloud.speech.v2.RecognitionResponseMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.totalBilledDuration_ = totalBilledDurationBuilder_ == null - ? totalBilledDuration_ - : totalBilledDurationBuilder_.build(); + result.totalBilledDuration_ = + totalBilledDurationBuilder_ == null + ? totalBilledDuration_ + : totalBilledDurationBuilder_.build(); } } @@ -332,38 +372,39 @@ private void buildPartial0(com.google.cloud.speech.v2.RecognitionResponseMetadat 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.v2.RecognitionResponseMetadata) { - return mergeFrom((com.google.cloud.speech.v2.RecognitionResponseMetadata)other); + return mergeFrom((com.google.cloud.speech.v2.RecognitionResponseMetadata) other); } else { super.mergeFrom(other); return this; @@ -371,7 +412,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.RecognitionResponseMetadata other) { - if (other == com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) + return this; if (other.hasTotalBilledDuration()) { mergeTotalBilledDuration(other.getTotalBilledDuration()); } @@ -401,19 +443,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 50: { - input.readMessage( - getTotalBilledDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 50: + { + input.readMessage( + getTotalBilledDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,38 +466,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Duration totalBilledDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + totalBilledDurationBuilder_; /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_duration = 6; + * * @return Whether the totalBilledDuration field is set. */ public boolean hasTotalBilledDuration() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_duration = 6; + * * @return The totalBilledDuration. */ public com.google.protobuf.Duration getTotalBilledDuration() { if (totalBilledDurationBuilder_ == null) { - return totalBilledDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledDuration_; + return totalBilledDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledDuration_; } else { return totalBilledDurationBuilder_.getMessage(); } } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -475,14 +532,15 @@ public Builder setTotalBilledDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_duration = 6; */ - public Builder setTotalBilledDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledDuration(com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledDurationBuilder_ == null) { totalBilledDuration_ = builderForValue.build(); } else { @@ -493,6 +551,8 @@ public Builder setTotalBilledDuration( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -501,9 +561,9 @@ public Builder setTotalBilledDuration( */ public Builder mergeTotalBilledDuration(com.google.protobuf.Duration value) { if (totalBilledDurationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - totalBilledDuration_ != null && - totalBilledDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && totalBilledDuration_ != null + && totalBilledDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getTotalBilledDurationBuilder().mergeFrom(value); } else { totalBilledDuration_ = value; @@ -516,6 +576,8 @@ public Builder mergeTotalBilledDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -533,6 +595,8 @@ public Builder clearTotalBilledDuration() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -545,6 +609,8 @@ public com.google.protobuf.Duration.Builder getTotalBilledDurationBuilder() { return getTotalBilledDurationFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -555,11 +621,14 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledDurationOrBuilder() { if (totalBilledDurationBuilder_ != null) { return totalBilledDurationBuilder_.getMessageOrBuilder(); } else { - return totalBilledDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : totalBilledDuration_; + return totalBilledDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledDuration_; } } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -567,21 +636,24 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledDurationOrBuilder() { * .google.protobuf.Duration total_billed_duration = 6; */ 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> getTotalBilledDurationFieldBuilder() { if (totalBilledDurationBuilder_ == null) { - totalBilledDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTotalBilledDuration(), - getParentForChildren(), - isClean()); + totalBilledDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTotalBilledDuration(), getParentForChildren(), isClean()); totalBilledDuration_ = null; } return totalBilledDurationBuilder_; } + @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); } @@ -591,12 +663,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.RecognitionResponseMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.RecognitionResponseMetadata) private static final com.google.cloud.speech.v2.RecognitionResponseMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.RecognitionResponseMetadata(); } @@ -605,27 +677,27 @@ public static com.google.cloud.speech.v2.RecognitionResponseMetadata getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionResponseMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionResponseMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,6 +712,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v2.RecognitionResponseMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java similarity index 61% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java index 57a50491e2fe..255a0a27c77f 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionResponseMetadataOrBuilder.java @@ -1,31 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface RecognitionResponseMetadataOrBuilder extends +public interface RecognitionResponseMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.RecognitionResponseMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_duration = 6; + * * @return Whether the totalBilledDuration field is set. */ boolean hasTotalBilledDuration(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_duration = 6; + * * @return The totalBilledDuration. */ com.google.protobuf.Duration getTotalBilledDuration(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java similarity index 78% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java index b2f131321dcc..bde61a78d3dd 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [Recognize][google.cloud.speech.v2.Speech.Recognize] method. Either
@@ -14,53 +31,58 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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() {
     recognizer_ = "";
   }
 
   @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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.RecognizeRequest.class, com.google.cloud.speech.v2.RecognizeRequest.Builder.class);
+            com.google.cloud.speech.v2.RecognizeRequest.class,
+            com.google.cloud.speech.v2.RecognizeRequest.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(5),
     URI(6),
     AUDIOSOURCE_NOT_SET(0);
     private final int value;
+
     private AudioSourceCase(int value) {
       this.value = value;
     }
@@ -76,34 +98,43 @@ public static AudioSourceCase valueOf(int value) {
 
     public static AudioSourceCase forNumber(int value) {
       switch (value) {
-        case 5: return CONTENT;
-        case 6: return URI;
-        case 0: return AUDIOSOURCE_NOT_SET;
-        default: return null;
+        case 5:
+          return CONTENT;
+        case 6:
+          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 RECOGNIZER_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object recognizer_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the Recognizer to use during recognition. The
    * expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The recognizer. */ @java.lang.Override @@ -112,31 +143,33 @@ public java.lang.String getRecognizer() { 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(); recognizer_ = s; return s; } } /** + * + * *
    * Required. The name of the Recognizer to use during recognition. The
    * expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for recognizer. */ @java.lang.Override - public com.google.protobuf.ByteString - getRecognizerBytes() { + public com.google.protobuf.ByteString getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -147,6 +180,8 @@ public java.lang.String getRecognizer() { public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v2.RecognitionConfig config_; /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -157,6 +192,7 @@ public java.lang.String getRecognizer() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; + * * @return Whether the config field is set. */ @java.lang.Override @@ -164,6 +200,8 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -174,13 +212,18 @@ public boolean hasConfig() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -194,12 +237,16 @@ public com.google.cloud.speech.v2.RecognitionConfig getConfig() {
    */
   @java.lang.Override
   public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder() {
-    return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
+    return config_ == null
+        ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
+        : config_;
   }
 
   public static final int CONFIG_MASK_FIELD_NUMBER = 8;
   private com.google.protobuf.FieldMask configMask_;
   /**
+   *
+   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -217,6 +264,7 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * .google.protobuf.FieldMask config_mask = 8; + * * @return Whether the configMask field is set. */ @java.lang.Override @@ -224,6 +272,8 @@ public boolean hasConfigMask() { return configMask_ != null; } /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -241,6 +291,7 @@ public boolean hasConfigMask() {
    * 
* * .google.protobuf.FieldMask config_mask = 8; + * * @return The configMask. */ @java.lang.Override @@ -248,6 +299,8 @@ public com.google.protobuf.FieldMask getConfigMask() { return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -273,6 +326,8 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
 
   public static final int CONTENT_FIELD_NUMBER = 5;
   /**
+   *
+   *
    * 
    * The audio data bytes encoded as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -281,6 +336,7 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
    * 
* * bytes content = 5; + * * @return Whether the content field is set. */ @java.lang.Override @@ -288,6 +344,8 @@ public boolean hasContent() { return audioSourceCase_ == 5; } /** + * + * *
    * The audio data bytes encoded as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -296,6 +354,7 @@ public boolean hasContent() {
    * 
* * bytes content = 5; + * * @return The content. */ @java.lang.Override @@ -308,6 +367,8 @@ public com.google.protobuf.ByteString getContent() { public static final int URI_FIELD_NUMBER = 6; /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -320,12 +381,15 @@ public com.google.protobuf.ByteString getContent() {
    * 
* * string uri = 6; + * * @return Whether the uri field is set. */ public boolean hasUri() { return audioSourceCase_ == 6; } /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -338,6 +402,7 @@ public boolean hasUri() {
    * 
* * string uri = 6; + * * @return The uri. */ public java.lang.String getUri() { @@ -348,8 +413,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_ == 6) { audioSource_ = s; @@ -358,6 +422,8 @@ public java.lang.String getUri() { } } /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -370,18 +436,17 @@ public java.lang.String getUri() {
    * 
* * string uri = 6; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; if (audioSourceCase_ == 6) { 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_ == 6) { audioSource_ = b; } @@ -392,6 +457,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -403,8 +469,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()); } @@ -412,8 +477,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 3, recognizer_); } if (audioSourceCase_ == 5) { - output.writeBytes( - 5, (com.google.protobuf.ByteString) audioSource_); + output.writeBytes(5, (com.google.protobuf.ByteString) audioSource_); } if (audioSourceCase_ == 6) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, audioSource_); @@ -431,23 +495,21 @@ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recognizer_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, recognizer_); } if (audioSourceCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 5, (com.google.protobuf.ByteString) audioSource_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 5, (com.google.protobuf.ByteString) audioSource_); } if (audioSourceCase_ == 6) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, audioSource_); } if (configMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getConfigMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getConfigMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -457,34 +519,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.v2.RecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.RecognizeRequest other = (com.google.cloud.speech.v2.RecognizeRequest) obj; + com.google.cloud.speech.v2.RecognizeRequest other = + (com.google.cloud.speech.v2.RecognizeRequest) obj; - if (!getRecognizer() - .equals(other.getRecognizer())) return false; + if (!getRecognizer().equals(other.getRecognizer())) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (hasConfigMask() != other.hasConfigMask()) return false; if (hasConfigMask()) { - if (!getConfigMask() - .equals(other.getConfigMask())) return false; + if (!getConfigMask().equals(other.getConfigMask())) return false; } if (!getAudioSourceCase().equals(other.getAudioSourceCase())) return false; switch (audioSourceCase_) { case 5: - if (!getContent() - .equals(other.getContent())) return false; + if (!getContent().equals(other.getContent())) return false; break; case 6: - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; break; case 0: default: @@ -527,97 +585,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.RecognizeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.RecognizeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.RecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.RecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.RecognizeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.RecognizeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [Recognize][google.cloud.speech.v2.Speech.Recognize] method. Either
@@ -628,33 +693,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.RecognizeRequest)
       com.google.cloud.speech.v2.RecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.RecognizeRequest.class, com.google.cloud.speech.v2.RecognizeRequest.Builder.class);
+              com.google.cloud.speech.v2.RecognizeRequest.class,
+              com.google.cloud.speech.v2.RecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.RecognizeRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -676,9 +740,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -697,8 +761,11 @@ public com.google.cloud.speech.v2.RecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.RecognizeRequest buildPartial() {
-      com.google.cloud.speech.v2.RecognizeRequest result = new com.google.cloud.speech.v2.RecognizeRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.RecognizeRequest result =
+          new com.google.cloud.speech.v2.RecognizeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -710,14 +777,10 @@ private void buildPartial0(com.google.cloud.speech.v2.RecognizeRequest result) {
         result.recognizer_ = recognizer_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.config_ = configBuilder_ == null
-            ? config_
-            : configBuilder_.build();
+        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.configMask_ = configMaskBuilder_ == null
-            ? configMask_
-            : configMaskBuilder_.build();
+        result.configMask_ = configMaskBuilder_ == null ? configMask_ : configMaskBuilder_.build();
       }
     }
 
@@ -730,38 +793,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.RecognizeRequest resu
     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.v2.RecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.RecognizeRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.RecognizeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -782,19 +846,22 @@ public Builder mergeFrom(com.google.cloud.speech.v2.RecognizeRequest other) {
         mergeConfigMask(other.getConfigMask());
       }
       switch (other.getAudioSourceCase()) {
-        case CONTENT: {
-          setContent(other.getContent());
-          break;
-        }
-        case URI: {
-          audioSourceCase_ = 6;
-          audioSource_ = other.audioSource_;
-          onChanged();
-          break;
-        }
-        case AUDIOSOURCE_NOT_SET: {
-          break;
-        }
+        case CONTENT:
+          {
+            setContent(other.getContent());
+            break;
+          }
+        case URI:
+          {
+            audioSourceCase_ = 6;
+            audioSource_ = other.audioSource_;
+            onChanged();
+            break;
+          }
+        case AUDIOSOURCE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -822,42 +889,44 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 10
-            case 26: {
-              recognizer_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 26
-            case 42: {
-              audioSource_ = input.readBytes();
-              audioSourceCase_ = 5;
-              break;
-            } // case 42
-            case 50: {
-              java.lang.String s = input.readStringRequireUtf8();
-              audioSourceCase_ = 6;
-              audioSource_ = s;
-              break;
-            } // case 50
-            case 66: {
-              input.readMessage(
-                  getConfigMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 66
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 10
+            case 26:
+              {
+                recognizer_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 26
+            case 42:
+              {
+                audioSource_ = input.readBytes();
+                audioSourceCase_ = 5;
+                break;
+              } // case 42
+            case 50:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                audioSourceCase_ = 6;
+                audioSource_ = s;
+                break;
+              } // case 50
+            case 66:
+              {
+                input.readMessage(getConfigMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 66
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -867,12 +936,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -886,20 +955,24 @@ public Builder clearAudioSource() {
 
     private java.lang.Object recognizer_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the Recognizer to use during recognition. The
      * expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The recognizer. */ public java.lang.String getRecognizer() { java.lang.Object ref = recognizer_; 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(); recognizer_ = s; return s; @@ -908,22 +981,25 @@ public java.lang.String getRecognizer() { } } /** + * + * *
      * Required. The name of the Recognizer to use during recognition. The
      * expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for recognizer. */ - public com.google.protobuf.ByteString - getRecognizerBytes() { + public com.google.protobuf.ByteString getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -931,32 +1007,43 @@ public java.lang.String getRecognizer() { } } /** + * + * *
      * Required. The name of the Recognizer to use during recognition. The
      * expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizer( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecognizer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } recognizer_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the Recognizer to use during recognition. The
      * expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearRecognizer() { @@ -966,19 +1053,25 @@ public Builder clearRecognizer() { return this; } /** + * + * *
      * Required. The name of the Recognizer to use during recognition. The
      * expected format is
      * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecognizerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); recognizer_ = value; bitField0_ |= 0x00000001; @@ -988,8 +1081,13 @@ public Builder setRecognizerBytes( private com.google.cloud.speech.v2.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> configBuilder_; + com.google.cloud.speech.v2.RecognitionConfig, + com.google.cloud.speech.v2.RecognitionConfig.Builder, + com.google.cloud.speech.v2.RecognitionConfigOrBuilder> + configBuilder_; /** + * + * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1000,12 +1098,15 @@ public Builder setRecognizerBytes(
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; + * * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1016,16 +1117,21 @@ public boolean hasConfig() {
      * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; + * * @return The config. */ public com.google.cloud.speech.v2.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1051,6 +1157,8 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1062,8 +1170,7 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
      *
      * .google.cloud.speech.v2.RecognitionConfig config = 1;
      */
-    public Builder setConfig(
-        com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
+    public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) {
       if (configBuilder_ == null) {
         config_ = builderForValue.build();
       } else {
@@ -1074,6 +1181,8 @@ public Builder setConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1087,9 +1196,9 @@ public Builder setConfig(
      */
     public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       if (configBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          config_ != null &&
-          config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && config_ != null
+            && config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
           getConfigBuilder().mergeFrom(value);
         } else {
           config_ = value;
@@ -1102,6 +1211,8 @@ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1124,6 +1235,8 @@ public Builder clearConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1141,6 +1254,8 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() {
       return getConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1156,11 +1271,14 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
       if (configBuilder_ != null) {
         return configBuilder_.getMessageOrBuilder();
       } else {
-        return config_ == null ?
-            com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_;
+        return config_ == null
+            ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
+            : config_;
       }
     }
     /**
+     *
+     *
      * 
      * Features and audio metadata to use for the Automatic Speech Recognition.
      * This field in combination with the
@@ -1173,14 +1291,17 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * .google.cloud.speech.v2.RecognitionConfig config = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> 
+            com.google.cloud.speech.v2.RecognitionConfig,
+            com.google.cloud.speech.v2.RecognitionConfig.Builder,
+            com.google.cloud.speech.v2.RecognitionConfigOrBuilder>
         getConfigFieldBuilder() {
       if (configBuilder_ == null) {
-        configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
-                getConfig(),
-                getParentForChildren(),
-                isClean());
+        configBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v2.RecognitionConfig,
+                com.google.cloud.speech.v2.RecognitionConfig.Builder,
+                com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
+                getConfig(), getParentForChildren(), isClean());
         config_ = null;
       }
       return configBuilder_;
@@ -1188,8 +1309,13 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
 
     private com.google.protobuf.FieldMask configMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> configMaskBuilder_;
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
+        configMaskBuilder_;
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1207,12 +1333,15 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * .google.protobuf.FieldMask config_mask = 8; + * * @return Whether the configMask field is set. */ public boolean hasConfigMask() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1230,16 +1359,21 @@ public boolean hasConfigMask() {
      * 
* * .google.protobuf.FieldMask config_mask = 8; + * * @return The configMask. */ public com.google.protobuf.FieldMask getConfigMask() { if (configMaskBuilder_ == null) { - return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; + return configMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : configMask_; } else { return configMaskBuilder_.getMessage(); } } /** + * + * *
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1272,6 +1406,8 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1290,8 +1426,7 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask config_mask = 8;
      */
-    public Builder setConfigMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (configMaskBuilder_ == null) {
         configMask_ = builderForValue.build();
       } else {
@@ -1302,6 +1437,8 @@ public Builder setConfigMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1322,9 +1459,9 @@ public Builder setConfigMask(
      */
     public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       if (configMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          configMask_ != null &&
-          configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && configMask_ != null
+            && configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getConfigMaskBuilder().mergeFrom(value);
         } else {
           configMask_ = value;
@@ -1337,6 +1474,8 @@ public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1366,6 +1505,8 @@ public Builder clearConfigMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1390,6 +1531,8 @@ public com.google.protobuf.FieldMask.Builder getConfigMaskBuilder() {
       return getConfigMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1412,11 +1555,14 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
       if (configMaskBuilder_ != null) {
         return configMaskBuilder_.getMessageOrBuilder();
       } else {
-        return configMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : configMask_;
+        return configMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : configMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -1436,20 +1582,25 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
      * .google.protobuf.FieldMask config_mask = 8;
      */
     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>
         getConfigMaskFieldBuilder() {
       if (configMaskBuilder_ == null) {
-        configMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getConfigMask(),
-                getParentForChildren(),
-                isClean());
+        configMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getConfigMask(), getParentForChildren(), isClean());
         configMask_ = null;
       }
       return configMaskBuilder_;
     }
 
     /**
+     *
+     *
      * 
      * The audio data bytes encoded as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -1458,12 +1609,15 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
      * 
* * bytes content = 5; + * * @return Whether the content field is set. */ public boolean hasContent() { return audioSourceCase_ == 5; } /** + * + * *
      * The audio data bytes encoded as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -1472,6 +1626,7 @@ public boolean hasContent() {
      * 
* * bytes content = 5; + * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -1481,6 +1636,8 @@ public com.google.protobuf.ByteString getContent() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * The audio data bytes encoded as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -1489,17 +1646,22 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 5; + * * @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(); } + if (value == null) { + throw new NullPointerException(); + } audioSourceCase_ = 5; audioSource_ = value; onChanged(); return this; } /** + * + * *
      * The audio data bytes encoded as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -1508,6 +1670,7 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 5; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -1520,6 +1683,8 @@ public Builder clearContent() { } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1532,6 +1697,7 @@ public Builder clearContent() {
      * 
* * string uri = 6; + * * @return Whether the uri field is set. */ @java.lang.Override @@ -1539,6 +1705,8 @@ public boolean hasUri() { return audioSourceCase_ == 6; } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1551,6 +1719,7 @@ public boolean hasUri() {
      * 
* * string uri = 6; + * * @return The uri. */ @java.lang.Override @@ -1560,8 +1729,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_ == 6) { audioSource_ = s; @@ -1572,6 +1740,8 @@ public java.lang.String getUri() { } } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1584,19 +1754,18 @@ public java.lang.String getUri() {
      * 
* * string uri = 6; + * * @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_ == 6) { 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_ == 6) { audioSource_ = b; } @@ -1606,6 +1775,8 @@ public java.lang.String getUri() { } } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1618,18 +1789,22 @@ public java.lang.String getUri() {
      * 
* * string uri = 6; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } audioSourceCase_ = 6; audioSource_ = value; onChanged(); return this; } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1642,6 +1817,7 @@ public Builder setUri(
      * 
* * string uri = 6; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -1653,6 +1829,8 @@ public Builder clearUri() { return this; } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -1665,21 +1843,23 @@ public Builder clearUri() {
      * 
* * string uri = 6; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); audioSourceCase_ = 6; 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); } @@ -1689,12 +1869,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.RecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.RecognizeRequest) private static final com.google.cloud.speech.v2.RecognizeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.RecognizeRequest(); } @@ -1703,27 +1883,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1738,6 +1918,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java similarity index 87% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java index 95e18c535b8d..9ee6e525fe6f 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeRequestOrBuilder.java @@ -1,37 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface RecognizeRequestOrBuilder extends +public interface RecognizeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.RecognizeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Recognizer to use during recognition. The
    * expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The recognizer. */ java.lang.String getRecognizer(); /** + * + * *
    * Required. The name of the Recognizer to use during recognition. The
    * expected format is
    * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for recognizer. */ - com.google.protobuf.ByteString - getRecognizerBytes(); + com.google.protobuf.ByteString getRecognizerBytes(); /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -42,10 +69,13 @@ public interface RecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -56,10 +86,13 @@ public interface RecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v2.RecognitionConfig config = 1; + * * @return The config. */ com.google.cloud.speech.v2.RecognitionConfig getConfig(); /** + * + * *
    * Features and audio metadata to use for the Automatic Speech Recognition.
    * This field in combination with the
@@ -74,6 +107,8 @@ public interface RecognizeRequestOrBuilder extends
   com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -91,10 +126,13 @@ public interface RecognizeRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask config_mask = 8; + * * @return Whether the configMask field is set. */ boolean hasConfigMask(); /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -112,10 +150,13 @@ public interface RecognizeRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask config_mask = 8; + * * @return The configMask. */ com.google.protobuf.FieldMask getConfigMask(); /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.RecognizeRequest.config] that override the
@@ -137,6 +178,8 @@ public interface RecognizeRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * The audio data bytes encoded as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -145,10 +188,13 @@ public interface RecognizeRequestOrBuilder extends
    * 
* * bytes content = 5; + * * @return Whether the content field is set. */ boolean hasContent(); /** + * + * *
    * The audio data bytes encoded as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. As
@@ -157,11 +203,14 @@ public interface RecognizeRequestOrBuilder extends
    * 
* * bytes content = 5; + * * @return The content. */ com.google.protobuf.ByteString getContent(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -174,10 +223,13 @@ public interface RecognizeRequestOrBuilder extends
    * 
* * string uri = 6; + * * @return Whether the uri field is set. */ boolean hasUri(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -190,10 +242,13 @@ public interface RecognizeRequestOrBuilder extends
    * 
* * string uri = 6; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * [RecognitionConfig][google.cloud.speech.v2.RecognitionConfig]. The file
@@ -206,10 +261,10 @@ public interface RecognizeRequestOrBuilder extends
    * 
* * string uri = 6; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); public com.google.cloud.speech.v2.RecognizeRequest.AudioSourceCase getAudioSourceCase(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java similarity index 72% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java index 6c4951c641b0..98d3c7db0997 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponse.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Response message for the
  * [Recognize][google.cloud.speech.v2.Speech.Recognize] method.
@@ -11,48 +28,53 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.RecognizeResponse.class, com.google.cloud.speech.v2.RecognizeResponse.Builder.class);
+            com.google.cloud.speech.v2.RecognizeResponse.class,
+            com.google.cloud.speech.v2.RecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to sequential
    * portions of audio.
@@ -65,6 +87,8 @@ public java.util.List getRes
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to sequential
    * portions of audio.
@@ -73,11 +97,13 @@ public java.util.List getRes
    * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
    */
   @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.
@@ -90,6 +116,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to sequential
    * portions of audio.
@@ -102,6 +130,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult getResults(int index)
     return results_.get(index);
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to sequential
    * portions of audio.
@@ -118,11 +148,14 @@ public com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrB
   public static final int METADATA_FIELD_NUMBER = 2;
   private com.google.cloud.speech.v2.RecognitionResponseMetadata metadata_;
   /**
+   *
+   *
    * 
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; + * * @return Whether the metadata field is set. */ @java.lang.Override @@ -130,18 +163,25 @@ public boolean hasMetadata() { return metadata_ != null; } /** + * + * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; + * * @return The metadata. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { - return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() + : metadata_; } /** + * + * *
    * Metadata about the recognition.
    * 
@@ -150,10 +190,13 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() + : metadata_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -165,8 +208,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 (metadata_ != null) { output.writeMessage(2, getMetadata()); } @@ -183,12 +225,10 @@ public int getSerializedSize() { size = 0; if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetadata()); } for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, results_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -198,19 +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.v2.RecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.RecognizeResponse other = (com.google.cloud.speech.v2.RecognizeResponse) obj; + com.google.cloud.speech.v2.RecognizeResponse other = + (com.google.cloud.speech.v2.RecognizeResponse) obj; - if (!getResultsList() - .equals(other.getResultsList())) return false; + if (!getResultsList().equals(other.getResultsList())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -236,97 +275,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.RecognizeResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.RecognizeResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.RecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.RecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.RecognizeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.RecognizeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Response message for the
    * [Recognize][google.cloud.speech.v2.Speech.Recognize] method.
@@ -334,33 +380,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.RecognizeResponse)
       com.google.cloud.speech.v2.RecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.RecognizeResponse.class, com.google.cloud.speech.v2.RecognizeResponse.Builder.class);
+              com.google.cloud.speech.v2.RecognizeResponse.class,
+              com.google.cloud.speech.v2.RecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.RecognizeResponse.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -381,9 +426,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
@@ -402,9 +447,12 @@ public com.google.cloud.speech.v2.RecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.RecognizeResponse buildPartial() {
-      com.google.cloud.speech.v2.RecognizeResponse result = new com.google.cloud.speech.v2.RecognizeResponse(this);
+      com.google.cloud.speech.v2.RecognizeResponse result =
+          new com.google.cloud.speech.v2.RecognizeResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -424,9 +472,7 @@ private void buildPartialRepeatedFields(com.google.cloud.speech.v2.RecognizeResp
     private void buildPartial0(com.google.cloud.speech.v2.RecognizeResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.metadata_ = metadataBuilder_ == null
-            ? metadata_
-            : metadataBuilder_.build();
+        result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
       }
     }
 
@@ -434,38 +480,39 @@ private void buildPartial0(com.google.cloud.speech.v2.RecognizeResponse result)
     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.v2.RecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.RecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v2.RecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -492,9 +539,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_);
           }
@@ -529,32 +577,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18: {
-              input.readMessage(
-                  getMetadataFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              com.google.cloud.speech.v2.SpeechRecognitionResult m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.SpeechRecognitionResult.parser(),
-                      extensionRegistry);
-              if (resultsBuilder_ == null) {
-                ensureResultsIsMutable();
-                results_.add(m);
-              } else {
-                resultsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 18:
+              {
+                input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                com.google.cloud.speech.v2.SpeechRecognitionResult m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.SpeechRecognitionResult.parser(),
+                        extensionRegistry);
+                if (resultsBuilder_ == null) {
+                  ensureResultsIsMutable();
+                  results_.add(m);
+                } else {
+                  resultsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -564,21 +613,29 @@ public Builder mergeFrom(
       } // finally
       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.v2.SpeechRecognitionResult, com.google.cloud.speech.v2.SpeechRecognitionResult.Builder, com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v2.SpeechRecognitionResult,
+            com.google.cloud.speech.v2.SpeechRecognitionResult.Builder,
+            com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -594,6 +651,8 @@ public java.util.List getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -609,6 +668,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -624,6 +685,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -631,8 +694,7 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult getResults(int index)
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public Builder setResults(
-        int index, com.google.cloud.speech.v2.SpeechRecognitionResult value) {
+    public Builder setResults(int index, com.google.cloud.speech.v2.SpeechRecognitionResult value) {
       if (resultsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -646,6 +708,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -665,6 +729,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -686,6 +752,8 @@ public Builder addResults(com.google.cloud.speech.v2.SpeechRecognitionResult val
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -693,8 +761,7 @@ public Builder addResults(com.google.cloud.speech.v2.SpeechRecognitionResult val
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public Builder addResults(
-        int index, com.google.cloud.speech.v2.SpeechRecognitionResult value) {
+    public Builder addResults(int index, com.google.cloud.speech.v2.SpeechRecognitionResult value) {
       if (resultsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -708,6 +775,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -727,6 +796,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -746,6 +817,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -757,8 +830,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);
@@ -766,6 +838,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -784,6 +858,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -802,6 +878,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -809,11 +887,12 @@ public Builder removeResults(int index) {
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder getResultsBuilder(
-        int index) {
+    public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder getResultsBuilder(int index) {
       return getResultsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -824,11 +903,14 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder getResultsBuil
     public com.google.cloud.speech.v2.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.
@@ -836,8 +918,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrB
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public java.util.List 
-         getResultsOrBuilderList() {
+    public java.util.List
+        getResultsOrBuilderList() {
       if (resultsBuilder_ != null) {
         return resultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -845,6 +927,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -853,10 +937,12 @@ public com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrB
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
     public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuilder() {
-      return getResultsFieldBuilder().addBuilder(
-          com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -864,12 +950,14 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuil
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuilder(
-        int index) {
-      return getResultsFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance());
+    public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuilder(int index) {
+      return getResultsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to sequential
      * portions of audio.
@@ -877,20 +965,23 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuil
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
      */
-    public java.util.List 
-         getResultsBuilderList() {
+    public java.util.List
+        getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v2.SpeechRecognitionResult, com.google.cloud.speech.v2.SpeechRecognitionResult.Builder, com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder> 
+            com.google.cloud.speech.v2.SpeechRecognitionResult,
+            com.google.cloud.speech.v2.SpeechRecognitionResult.Builder,
+            com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder>
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.SpeechRecognitionResult, com.google.cloud.speech.v2.SpeechRecognitionResult.Builder, com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder>(
-                results_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        resultsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v2.SpeechRecognitionResult,
+                com.google.cloud.speech.v2.SpeechRecognitionResult.Builder,
+                com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder>(
+                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -898,34 +989,47 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult.Builder addResultsBuil
 
     private com.google.cloud.speech.v2.RecognitionResponseMetadata metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> metadataBuilder_;
+            com.google.cloud.speech.v2.RecognitionResponseMetadata,
+            com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder,
+            com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder>
+        metadataBuilder_;
     /**
+     *
+     *
      * 
      * Metadata about the recognition.
      * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; + * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Metadata about the recognition.
      * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; + * * @return The metadata. */ public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() + : metadata_; } else { return metadataBuilder_.getMessage(); } } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -946,6 +1050,8 @@ public Builder setMetadata(com.google.cloud.speech.v2.RecognitionResponseMetadat return this; } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -964,6 +1070,8 @@ public Builder setMetadata( return this; } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -972,9 +1080,10 @@ public Builder setMetadata( */ public Builder mergeMetadata(com.google.cloud.speech.v2.RecognitionResponseMetadata value) { if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - metadata_ != null && - metadata_ != com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; @@ -987,6 +1096,8 @@ public Builder mergeMetadata(com.google.cloud.speech.v2.RecognitionResponseMetad return this; } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1004,6 +1115,8 @@ public Builder clearMetadata() { return this; } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1016,6 +1129,8 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder getMetadat return getMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1026,11 +1141,14 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetada if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { - return metadata_ == null ? - com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() + : metadata_; } } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1038,21 +1156,24 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetada * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> + com.google.cloud.speech.v2.RecognitionResponseMetadata, + com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, + com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.RecognitionResponseMetadata, + com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, + com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } + @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); } @@ -1062,12 +1183,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.RecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.RecognizeResponse) private static final com.google.cloud.speech.v2.RecognizeResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.RecognizeResponse(); } @@ -1076,27 +1197,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1111,6 +1232,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java index 494d96c78e8b..8d6bea8f3a5d 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizeResponseOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface RecognizeResponseOrBuilder extends +public interface RecognizeResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.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.v2.SpeechRecognitionResult results = 3;
    */
-  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.v2.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.v2.SpeechRecognitionResult results = 3;
    */
-  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.v2.SpeechRecognitionResult results = 3;
    */
-  com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
-      int index);
+  com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; + * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** + * + * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2; + * * @return The metadata. */ com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata(); /** + * + * *
    * Metadata about the recognition.
    * 
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java similarity index 71% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java index f370142d2ee0..070ca69b04ab 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/Recognizer.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * A Recognizer message. Stores recognition configuration and metadata.
  * 
* * Protobuf type {@code google.cloud.speech.v2.Recognizer} */ -public final class Recognizer extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Recognizer extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.Recognizer) RecognizerOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Recognizer.newBuilder() to construct. private Recognizer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Recognizer() { name_ = ""; uid_ = ""; @@ -33,51 +51,54 @@ private Recognizer() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Recognizer(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_Recognizer_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 7: return internalGetAnnotations(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.Recognizer.class, com.google.cloud.speech.v2.Recognizer.Builder.class); + com.google.cloud.speech.v2.Recognizer.class, + com.google.cloud.speech.v2.Recognizer.Builder.class); } /** + * + * *
    * Set of states that define the lifecycle of a Recognizer.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.Recognizer.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -86,6 +107,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The Recognizer is active and ready for use.
      * 
@@ -94,6 +117,8 @@ public enum State */ ACTIVE(2), /** + * + * *
      * This Recognizer has been deleted.
      * 
@@ -105,6 +130,8 @@ public enum State ; /** + * + * *
      * The default value. This value is used if the state is omitted.
      * 
@@ -113,6 +140,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The Recognizer is active and ready for use.
      * 
@@ -121,6 +150,8 @@ public enum State */ public static final int ACTIVE_VALUE = 2; /** + * + * *
      * This Recognizer has been deleted.
      * 
@@ -129,7 +160,6 @@ public enum State */ public static final int DELETED_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -154,49 +184,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 2: return ACTIVE; - case 4: return DELETED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 2: + return ACTIVE; + case 4: + return DELETED; + 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< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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 State findValueByNumber(int number) { + return State.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.v2.Recognizer.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -214,15 +244,19 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. The resource name of the Recognizer.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -231,30 +265,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; } } /** + * + * *
    * Output only. The resource name of the Recognizer.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -263,14 +297,18 @@ public java.lang.String getName() { } public static final int UID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** + * + * *
    * Output only. System-assigned unique identifier for the Recognizer.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -279,29 +317,29 @@ public java.lang.String getUid() { 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(); uid_ = s; return s; } } /** + * + * *
    * Output only. System-assigned unique identifier for the Recognizer.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -310,15 +348,19 @@ public java.lang.String getUid() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * User-settable, human-readable name for the Recognizer. Must be 63
    * characters or less.
    * 
* * string display_name = 3; + * * @return The displayName. */ @java.lang.Override @@ -327,30 +369,30 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** + * + * *
    * User-settable, human-readable name for the Recognizer. Must be 63
    * characters or less.
    * 
* * string display_name = 3; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -359,9 +401,12 @@ public java.lang.String getDisplayName() { } public static final int MODEL_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object model_ = ""; /** + * + * *
    * Required. Which model to use for recognition requests. Select the model
    * best suited to your domain to get best results.
@@ -379,6 +424,7 @@ public java.lang.String getDisplayName() {
    * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The model. */ @java.lang.Override @@ -387,14 +433,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; } } /** + * + * *
    * Required. Which model to use for recognition requests. Select the model
    * best suited to your domain to get best results.
@@ -412,16 +459,15 @@ public java.lang.String getModel() {
    * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -430,9 +476,12 @@ public java.lang.String getModel() { } public static final int LANGUAGE_CODES_FIELD_NUMBER = 17; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList languageCodes_; /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -449,13 +498,15 @@ public java.lang.String getModel() {
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList - getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { return languageCodes_; } /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -472,12 +523,15 @@ public java.lang.String getModel() {
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -494,6 +548,7 @@ public int getLanguageCodesCount() {
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -501,6 +556,8 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -517,17 +574,19 @@ public java.lang.String getLanguageCodes(int index) {
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString - getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } public static final int DEFAULT_RECOGNITION_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.speech.v2.RecognitionConfig defaultRecognitionConfig_; /** + * + * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -536,6 +595,7 @@ public java.lang.String getLanguageCodes(int index) {
    * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; + * * @return Whether the defaultRecognitionConfig field is set. */ @java.lang.Override @@ -543,6 +603,8 @@ public boolean hasDefaultRecognitionConfig() { return defaultRecognitionConfig_ != null; } /** + * + * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -551,13 +613,18 @@ public boolean hasDefaultRecognitionConfig() {
    * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; + * * @return The defaultRecognitionConfig. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfig getDefaultRecognitionConfig() { - return defaultRecognitionConfig_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : defaultRecognitionConfig_; + return defaultRecognitionConfig_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : defaultRecognitionConfig_; } /** + * + * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -568,37 +635,43 @@ public com.google.cloud.speech.v2.RecognitionConfig getDefaultRecognitionConfig(
    * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getDefaultRecognitionConfigOrBuilder() {
-    return defaultRecognitionConfig_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : defaultRecognitionConfig_;
+  public com.google.cloud.speech.v2.RecognitionConfigOrBuilder
+      getDefaultRecognitionConfigOrBuilder() {
+    return defaultRecognitionConfig_ == null
+        ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
+        : defaultRecognitionConfig_;
   }
 
   public static final int ANNOTATIONS_FIELD_NUMBER = 7;
+
   private static final class AnnotationsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, java.lang.String> defaultEntry =
-            com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "");
+    static final com.google.protobuf.MapEntry defaultEntry =
+        com.google.protobuf.MapEntry.newDefaultInstance(
+            com.google.cloud.speech.v2.CloudSpeechProto
+                .internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_descriptor,
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "",
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "");
   }
+
   @SuppressWarnings("serial")
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.String> annotations_;
+  private com.google.protobuf.MapField annotations_;
+
   private com.google.protobuf.MapField
-  internalGetAnnotations() {
+      internalGetAnnotations() {
     if (annotations_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          AnnotationsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry);
     }
     return annotations_;
   }
+
   public int getAnnotationsCount() {
     return internalGetAnnotations().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -608,20 +681,21 @@ public int getAnnotationsCount() {
    * map<string, string> annotations = 7;
    */
   @java.lang.Override
-  public boolean containsAnnotations(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsAnnotations(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetAnnotations().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getAnnotationsMap()} instead.
-   */
+  /** Use {@link #getAnnotationsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getAnnotations() {
     return getAnnotationsMap();
   }
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -635,6 +709,8 @@ public java.util.Map getAnnotationsMap() {
     return internalGetAnnotations().getMap();
   }
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -644,17 +720,19 @@ public java.util.Map getAnnotationsMap() {
    * map<string, string> annotations = 7;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getAnnotationsOrDefault(
+  public /* nullable */ java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -664,11 +742,11 @@ java.lang.String getAnnotationsOrDefault(
    * map<string, string> annotations = 7;
    */
   @java.lang.Override
-  public java.lang.String getAnnotationsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetAnnotations().getMap();
+  public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetAnnotations().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -678,37 +756,54 @@ public java.lang.String getAnnotationsOrThrow(
   public static final int STATE_FIELD_NUMBER = 8;
   private int state_ = 0;
   /**
+   *
+   *
    * 
    * Output only. The Recognizer lifecycle state.
    * 
* - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The Recognizer lifecycle state.
    * 
* - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.speech.v2.Recognizer.State getState() { - com.google.cloud.speech.v2.Recognizer.State result = com.google.cloud.speech.v2.Recognizer.State.forNumber(state_); + @java.lang.Override + public com.google.cloud.speech.v2.Recognizer.State getState() { + com.google.cloud.speech.v2.Recognizer.State result = + com.google.cloud.speech.v2.Recognizer.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.Recognizer.State.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -716,11 +811,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -728,11 +827,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -742,11 +844,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -754,11 +860,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -766,11 +876,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -780,11 +893,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -792,11 +909,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -804,11 +925,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -818,11 +942,15 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXPIRE_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -830,11 +958,15 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ @java.lang.Override @@ -842,11 +974,14 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -854,9 +989,12 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 12; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -864,6 +1002,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ @java.lang.Override @@ -872,14 +1011,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -887,16 +1027,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -907,12 +1046,15 @@ public java.lang.String getEtag() { public static final int RECONCILING_FIELD_NUMBER = 13; private boolean reconciling_ = false; /** + * + * *
    * Output only. Whether or not this Recognizer is in the process of being
    * updated.
    * 
* * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -921,9 +1063,12 @@ public boolean getReconciling() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 15; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -931,7 +1076,10 @@ public boolean getReconciling() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ @java.lang.Override @@ -940,14 +1088,15 @@ public java.lang.String getKmsKeyName() { 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(); kmsKeyName_ = s; return s; } } /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -955,17 +1104,18 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -974,9 +1124,12 @@ public java.lang.String getKmsKeyName() { } public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER = 16; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyVersionName_ = ""; /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -984,7 +1137,10 @@ public java.lang.String getKmsKeyName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyVersionName. */ @java.lang.Override @@ -993,14 +1149,15 @@ public java.lang.String getKmsKeyVersionName() { 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(); kmsKeyVersionName_ = s; return s; } } /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -1008,17 +1165,18 @@ public java.lang.String getKmsKeyVersionName() {
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyVersionName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -1027,6 +1185,7 @@ public java.lang.String getKmsKeyVersionName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1038,8 +1197,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_); } @@ -1055,12 +1213,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (defaultRecognitionConfig_ != null) { output.writeMessage(6, getDefaultRecognitionConfig()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 7); if (state_ != com.google.cloud.speech.v2.Recognizer.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(8, state_); } @@ -1113,45 +1267,40 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, model_); } if (defaultRecognitionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getDefaultRecognitionConfig()); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, annotations__); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getDefaultRecognitionConfig()); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, annotations__); } if (state_ != com.google.cloud.speech.v2.Recognizer.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, etag_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, reconciling_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, reconciling_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getExpireTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getExpireTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, kmsKeyName_); @@ -1175,59 +1324,44 @@ 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.v2.Recognizer)) { return super.equals(obj); } com.google.cloud.speech.v2.Recognizer other = (com.google.cloud.speech.v2.Recognizer) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getModel() - .equals(other.getModel())) return false; - if (!getLanguageCodesList() - .equals(other.getLanguageCodesList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getModel().equals(other.getModel())) return false; + if (!getLanguageCodesList().equals(other.getLanguageCodesList())) return false; if (hasDefaultRecognitionConfig() != other.hasDefaultRecognitionConfig()) return false; if (hasDefaultRecognitionConfig()) { - if (!getDefaultRecognitionConfig() - .equals(other.getDefaultRecognitionConfig())) return false; + if (!getDefaultRecognitionConfig().equals(other.getDefaultRecognitionConfig())) return false; } - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; if (state_ != other.state_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; - } - if (!getEtag() - .equals(other.getEtag())) return false; - if (getReconciling() - != other.getReconciling()) return false; - if (!getKmsKeyName() - .equals(other.getKmsKeyName())) return false; - if (!getKmsKeyVersionName() - .equals(other.getKmsKeyVersionName())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1280,8 +1414,7 @@ public int hashCode() { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getKmsKeyName().hashCode(); hash = (37 * hash) + KMS_KEY_VERSION_NAME_FIELD_NUMBER; @@ -1291,152 +1424,155 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.Recognizer parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.Recognizer parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.Recognizer 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.v2.Recognizer parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.speech.v2.Recognizer parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.Recognizer 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.v2.Recognizer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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.v2.Recognizer 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 Recognizer message. Stores recognition configuration and metadata.
    * 
* * Protobuf type {@code google.cloud.speech.v2.Recognizer} */ - 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.v2.Recognizer) com.google.cloud.speech.v2.RecognizerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_Recognizer_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 7: return internalGetAnnotations(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 7: return internalGetMutableAnnotations(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.Recognizer.class, com.google.cloud.speech.v2.Recognizer.Builder.class); + com.google.cloud.speech.v2.Recognizer.class, + com.google.cloud.speech.v2.Recognizer.Builder.class); } // Construct using com.google.cloud.speech.v2.Recognizer.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1482,9 +1618,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_Recognizer_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_Recognizer_descriptor; } @java.lang.Override @@ -1503,9 +1639,12 @@ public com.google.cloud.speech.v2.Recognizer build() { @java.lang.Override public com.google.cloud.speech.v2.Recognizer buildPartial() { - com.google.cloud.speech.v2.Recognizer result = new com.google.cloud.speech.v2.Recognizer(this); + com.google.cloud.speech.v2.Recognizer result = + new com.google.cloud.speech.v2.Recognizer(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1533,9 +1672,10 @@ private void buildPartial0(com.google.cloud.speech.v2.Recognizer result) { result.model_ = model_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.defaultRecognitionConfig_ = defaultRecognitionConfigBuilder_ == null - ? defaultRecognitionConfig_ - : defaultRecognitionConfigBuilder_.build(); + result.defaultRecognitionConfig_ = + defaultRecognitionConfigBuilder_ == null + ? defaultRecognitionConfig_ + : defaultRecognitionConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.annotations_ = internalGetAnnotations(); @@ -1545,24 +1685,16 @@ private void buildPartial0(com.google.cloud.speech.v2.Recognizer result) { result.state_ = state_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000400) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null - ? deleteTime_ - : deleteTimeBuilder_.build(); + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000800) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null - ? expireTime_ - : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); } if (((from_bitField0_ & 0x00001000) != 0)) { result.etag_ = etag_; @@ -1582,38 +1714,39 @@ private void buildPartial0(com.google.cloud.speech.v2.Recognizer result) { 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.v2.Recognizer) { - return mergeFrom((com.google.cloud.speech.v2.Recognizer)other); + return mergeFrom((com.google.cloud.speech.v2.Recognizer) other); } else { super.mergeFrom(other); return this; @@ -1655,8 +1788,7 @@ public Builder mergeFrom(com.google.cloud.speech.v2.Recognizer other) { if (other.hasDefaultRecognitionConfig()) { mergeDefaultRecognitionConfig(other.getDefaultRecognitionConfig()); } - internalGetMutableAnnotations().mergeFrom( - other.internalGetAnnotations()); + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); bitField0_ |= 0x00000040; if (other.state_ != 0) { setStateValue(other.getStateValue()); @@ -1717,107 +1849,117 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: { - input.readMessage( - getDefaultRecognitionConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - com.google.protobuf.MapEntry - annotations__ = input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableAnnotations().getMutableMap().put( - annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 64: { - state_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 74: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: { - input.readMessage( - getDeleteTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 98: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 98 - case 104: { - reconciling_ = input.readBool(); - bitField0_ |= 0x00002000; - break; - } // case 104 - case 114: { - input.readMessage( - getExpireTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 114 - case 122: { - kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; - break; - } // case 122 - case 130: { - kmsKeyVersionName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; - break; - } // case 130 - case 138: { - java.lang.String s = input.readStringRequireUtf8(); - ensureLanguageCodesIsMutable(); - languageCodes_.add(s); - break; - } // case 138 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + model_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: + { + input.readMessage( + getDefaultRecognitionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 98 + case 104: + { + reconciling_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 104 + case 114: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 114 + case 122: + { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: + { + kmsKeyVersionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 138: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLanguageCodesIsMutable(); + languageCodes_.add(s); + break; + } // case 138 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1827,23 +1969,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of the Recognizer.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1852,21 +1997,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the Recognizer.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1874,30 +2020,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the Recognizer.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the Recognizer.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1907,18 +2060,22 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource name of the Recognizer.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1928,18 +2085,20 @@ public Builder setNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. System-assigned unique identifier for the Recognizer.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; 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(); uid_ = s; return s; @@ -1948,20 +2107,21 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. System-assigned unique identifier for the Recognizer.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; 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); uid_ = b; return b; } else { @@ -1969,28 +2129,35 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. System-assigned unique identifier for the Recognizer.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. System-assigned unique identifier for the Recognizer.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -2000,17 +2167,21 @@ public Builder clearUid() { return this; } /** + * + * *
      * Output only. System-assigned unique identifier for the Recognizer.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000002; @@ -2020,19 +2191,21 @@ public Builder setUidBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * User-settable, human-readable name for the Recognizer. Must be 63
      * characters or less.
      * 
* * string display_name = 3; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -2041,21 +2214,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User-settable, human-readable name for the Recognizer. Must be 63
      * characters or less.
      * 
* * string display_name = 3; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -2063,30 +2237,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * User-settable, human-readable name for the Recognizer. Must be 63
      * characters or less.
      * 
* * string display_name = 3; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * User-settable, human-readable name for the Recognizer. Must be 63
      * characters or less.
      * 
* * string display_name = 3; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2096,18 +2277,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * User-settable, human-readable name for the Recognizer. Must be 63
      * characters or less.
      * 
* * string display_name = 3; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000004; @@ -2117,6 +2302,8 @@ public Builder setDisplayNameBytes( private java.lang.Object model_ = ""; /** + * + * *
      * Required. Which model to use for recognition requests. Select the model
      * best suited to your domain to get best results.
@@ -2134,13 +2321,13 @@ public Builder setDisplayNameBytes(
      * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -2149,6 +2336,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Required. Which model to use for recognition requests. Select the model
      * best suited to your domain to get best results.
@@ -2166,15 +2355,14 @@ public java.lang.String getModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -2182,6 +2370,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Required. Which model to use for recognition requests. Select the model
      * best suited to your domain to get best results.
@@ -2199,18 +2389,22 @@ public java.lang.String getModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } model_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Required. Which model to use for recognition requests. Select the model
      * best suited to your domain to get best results.
@@ -2228,6 +2422,7 @@ public Builder setModel(
      * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearModel() { @@ -2237,6 +2432,8 @@ public Builder clearModel() { return this; } /** + * + * *
      * Required. Which model to use for recognition requests. Select the model
      * best suited to your domain to get best results.
@@ -2254,12 +2451,14 @@ public Builder clearModel() {
      * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); model_ = value; bitField0_ |= 0x00000008; @@ -2267,14 +2466,18 @@ public Builder setModelBytes( return this; } - private com.google.protobuf.LazyStringList languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList languageCodes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_); bitField0_ |= 0x00000010; - } + } } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2291,13 +2494,15 @@ private void ensureLanguageCodesIsMutable() {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the languageCodes. */ - public com.google.protobuf.ProtocolStringList - getLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getLanguageCodesList() { return languageCodes_.getUnmodifiableView(); } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2314,12 +2519,15 @@ private void ensureLanguageCodesIsMutable() {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of languageCodes. */ public int getLanguageCodesCount() { return languageCodes_.size(); } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2336,6 +2544,7 @@ public int getLanguageCodesCount() {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The languageCodes at the given index. */ @@ -2343,6 +2552,8 @@ public java.lang.String getLanguageCodes(int index) { return languageCodes_.get(index); } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2359,14 +2570,16 @@ public java.lang.String getLanguageCodes(int index) {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - public com.google.protobuf.ByteString - getLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getLanguageCodesBytes(int index) { return languageCodes_.getByteString(index); } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2383,19 +2596,23 @@ public java.lang.String getLanguageCodes(int index) {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The languageCodes to set. * @return This builder for chaining. */ - public Builder setLanguageCodes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLanguageCodesIsMutable(); languageCodes_.set(index, 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.
@@ -2412,18 +2629,22 @@ public Builder setLanguageCodes(
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLanguageCodes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLanguageCodesIsMutable(); languageCodes_.add(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.
@@ -2440,18 +2661,19 @@ public Builder addLanguageCodes(
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The languageCodes to add. * @return This builder for chaining. */ - public Builder addAllLanguageCodes( - java.lang.Iterable values) { + public Builder addAllLanguageCodes(java.lang.Iterable values) { ensureLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, languageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_); 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.
@@ -2468,6 +2690,7 @@ public Builder addAllLanguageCodes(
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLanguageCodes() { @@ -2477,6 +2700,8 @@ public Builder clearLanguageCodes() { return this; } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2493,12 +2718,14 @@ public Builder clearLanguageCodes() {
      * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the languageCodes to add. * @return This builder for chaining. */ - public Builder addLanguageCodesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureLanguageCodesIsMutable(); languageCodes_.add(value); @@ -2508,8 +2735,13 @@ public Builder addLanguageCodesBytes( private com.google.cloud.speech.v2.RecognitionConfig defaultRecognitionConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> defaultRecognitionConfigBuilder_; + com.google.cloud.speech.v2.RecognitionConfig, + com.google.cloud.speech.v2.RecognitionConfig.Builder, + com.google.cloud.speech.v2.RecognitionConfigOrBuilder> + defaultRecognitionConfigBuilder_; /** + * + * *
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2518,12 +2750,15 @@ public Builder addLanguageCodesBytes(
      * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; + * * @return Whether the defaultRecognitionConfig field is set. */ public boolean hasDefaultRecognitionConfig() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2532,16 +2767,21 @@ public boolean hasDefaultRecognitionConfig() {
      * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; + * * @return The defaultRecognitionConfig. */ public com.google.cloud.speech.v2.RecognitionConfig getDefaultRecognitionConfig() { if (defaultRecognitionConfigBuilder_ == null) { - return defaultRecognitionConfig_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : defaultRecognitionConfig_; + return defaultRecognitionConfig_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : defaultRecognitionConfig_; } else { return defaultRecognitionConfigBuilder_.getMessage(); } } /** + * + * *
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2565,6 +2805,8 @@ public Builder setDefaultRecognitionConfig(com.google.cloud.speech.v2.Recognitio
       return this;
     }
     /**
+     *
+     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2586,6 +2828,8 @@ public Builder setDefaultRecognitionConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2595,11 +2839,13 @@ public Builder setDefaultRecognitionConfig(
      *
      * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6;
      */
-    public Builder mergeDefaultRecognitionConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
+    public Builder mergeDefaultRecognitionConfig(
+        com.google.cloud.speech.v2.RecognitionConfig value) {
       if (defaultRecognitionConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000020) != 0) &&
-          defaultRecognitionConfig_ != null &&
-          defaultRecognitionConfig_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000020) != 0)
+            && defaultRecognitionConfig_ != null
+            && defaultRecognitionConfig_
+                != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) {
           getDefaultRecognitionConfigBuilder().mergeFrom(value);
         } else {
           defaultRecognitionConfig_ = value;
@@ -2612,6 +2858,8 @@ public Builder mergeDefaultRecognitionConfig(com.google.cloud.speech.v2.Recognit
       return this;
     }
     /**
+     *
+     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2632,6 +2880,8 @@ public Builder clearDefaultRecognitionConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2641,12 +2891,15 @@ public Builder clearDefaultRecognitionConfig() {
      *
      * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6;
      */
-    public com.google.cloud.speech.v2.RecognitionConfig.Builder getDefaultRecognitionConfigBuilder() {
+    public com.google.cloud.speech.v2.RecognitionConfig.Builder
+        getDefaultRecognitionConfigBuilder() {
       bitField0_ |= 0x00000020;
       onChanged();
       return getDefaultRecognitionConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2656,15 +2909,19 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getDefaultRecognitio
      *
      * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6;
      */
-    public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getDefaultRecognitionConfigOrBuilder() {
+    public com.google.cloud.speech.v2.RecognitionConfigOrBuilder
+        getDefaultRecognitionConfigOrBuilder() {
       if (defaultRecognitionConfigBuilder_ != null) {
         return defaultRecognitionConfigBuilder_.getMessageOrBuilder();
       } else {
-        return defaultRecognitionConfig_ == null ?
-            com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : defaultRecognitionConfig_;
+        return defaultRecognitionConfig_ == null
+            ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()
+            : defaultRecognitionConfig_;
       }
     }
     /**
+     *
+     *
      * 
      * Default configuration to use for requests with this Recognizer.
      * This can be overwritten by inline configuration in the
@@ -2675,21 +2932,24 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getDefaultRecogniti
      * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> 
+            com.google.cloud.speech.v2.RecognitionConfig,
+            com.google.cloud.speech.v2.RecognitionConfig.Builder,
+            com.google.cloud.speech.v2.RecognitionConfigOrBuilder>
         getDefaultRecognitionConfigFieldBuilder() {
       if (defaultRecognitionConfigBuilder_ == null) {
-        defaultRecognitionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
-                getDefaultRecognitionConfig(),
-                getParentForChildren(),
-                isClean());
+        defaultRecognitionConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v2.RecognitionConfig,
+                com.google.cloud.speech.v2.RecognitionConfig.Builder,
+                com.google.cloud.speech.v2.RecognitionConfigOrBuilder>(
+                getDefaultRecognitionConfig(), getParentForChildren(), isClean());
         defaultRecognitionConfig_ = null;
       }
       return defaultRecognitionConfigBuilder_;
     }
 
-    private com.google.protobuf.MapField<
-        java.lang.String, java.lang.String> annotations_;
+    private com.google.protobuf.MapField annotations_;
+
     private com.google.protobuf.MapField
         internalGetAnnotations() {
       if (annotations_ == null) {
@@ -2698,11 +2958,12 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getDefaultRecogniti
       }
       return annotations_;
     }
+
     private com.google.protobuf.MapField
         internalGetMutableAnnotations() {
       if (annotations_ == null) {
-        annotations_ = com.google.protobuf.MapField.newMapField(
-            AnnotationsDefaultEntryHolder.defaultEntry);
+        annotations_ =
+            com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry);
       }
       if (!annotations_.isMutable()) {
         annotations_ = annotations_.copy();
@@ -2711,10 +2972,13 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getDefaultRecogniti
       onChanged();
       return annotations_;
     }
+
     public int getAnnotationsCount() {
       return internalGetAnnotations().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -2724,20 +2988,21 @@ public int getAnnotationsCount() {
      * map<string, string> annotations = 7;
      */
     @java.lang.Override
-    public boolean containsAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetAnnotations().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getAnnotationsMap()} instead.
-     */
+    /** Use {@link #getAnnotationsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getAnnotations() {
       return getAnnotationsMap();
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -2751,6 +3016,8 @@ public java.util.Map getAnnotationsMap() {
       return internalGetAnnotations().getMap();
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -2760,17 +3027,19 @@ public java.util.Map getAnnotationsMap() {
      * map<string, string> annotations = 7;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getAnnotationsOrDefault(
+    public /* nullable */ java.lang.String getAnnotationsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -2780,23 +3049,25 @@ java.lang.String getAnnotationsOrDefault(
      * map<string, string> annotations = 7;
      */
     @java.lang.Override
-    public java.lang.String getAnnotationsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetAnnotations().getMap();
+    public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetAnnotations().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearAnnotations() {
       bitField0_ = (bitField0_ & ~0x00000040);
-      internalGetMutableAnnotations().getMutableMap()
-          .clear();
+      internalGetMutableAnnotations().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -2805,23 +3076,22 @@ public Builder clearAnnotations() {
      *
      * map<string, string> annotations = 7;
      */
-    public Builder removeAnnotations(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableAnnotations().getMutableMap()
-          .remove(key);
+    public Builder removeAnnotations(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableAnnotations().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableAnnotations() {
+    public java.util.Map getMutableAnnotations() {
       bitField0_ |= 0x00000040;
       return internalGetMutableAnnotations().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -2830,17 +3100,20 @@ public Builder removeAnnotations(
      *
      * map<string, string> annotations = 7;
      */
-    public Builder putAnnotations(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableAnnotations().getMutableMap()
-          .put(key, value);
+    public Builder putAnnotations(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableAnnotations().getMutableMap().put(key, value);
       bitField0_ |= 0x00000040;
       return this;
     }
     /**
+     *
+     *
      * 
      * Allows users to store small amounts of arbitrary data.
      * Both the key and the value must be 63 characters or less each.
@@ -2849,32 +3122,41 @@ public Builder putAnnotations(
      *
      * map<string, string> annotations = 7;
      */
-    public Builder putAllAnnotations(
-        java.util.Map values) {
-      internalGetMutableAnnotations().getMutableMap()
-          .putAll(values);
+    public Builder putAllAnnotations(java.util.Map values) {
+      internalGetMutableAnnotations().getMutableMap().putAll(values);
       bitField0_ |= 0x00000040;
       return this;
     }
 
     private int state_ = 0;
     /**
+     *
+     *
      * 
      * Output only. The Recognizer lifecycle state.
      * 
* - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The Recognizer lifecycle state.
      * 
* - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2885,24 +3167,35 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The Recognizer lifecycle state.
      * 
* - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.speech.v2.Recognizer.State getState() { - com.google.cloud.speech.v2.Recognizer.State result = com.google.cloud.speech.v2.Recognizer.State.forNumber(state_); + com.google.cloud.speech.v2.Recognizer.State result = + com.google.cloud.speech.v2.Recognizer.State.forNumber(state_); return result == null ? com.google.cloud.speech.v2.Recognizer.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The Recognizer lifecycle state.
      * 
* - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2916,11 +3209,16 @@ public Builder setState(com.google.cloud.speech.v2.Recognizer.State value) { return this; } /** + * + * *
      * Output only. The Recognizer lifecycle state.
      * 
* - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -2932,39 +3230,58 @@ public Builder clearState() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2980,14 +3297,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2998,17 +3318,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3021,11 +3345,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -3038,11 +3366,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000100; @@ -3050,36 +3382,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3087,39 +3431,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3135,14 +3498,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3153,17 +3519,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3176,11 +3546,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000200); @@ -3193,11 +3567,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000200; @@ -3205,36 +3583,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The most recent time this Recognizer was modified.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3242,39 +3632,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000400) != 0); } /** + * + * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3290,14 +3699,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -3308,17 +3720,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -3331,11 +3747,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000400); @@ -3348,11 +3768,15 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000400; @@ -3360,36 +3784,48 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. The time at which this Recognizer was requested for deletion.
      * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -3397,39 +3833,58 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000800) != 0); } /** + * + * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -3445,14 +3900,17 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -3463,17 +3921,21 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) && - expireTime_ != null && - expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -3486,11 +3948,15 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000800); @@ -3503,11 +3969,15 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000800; @@ -3515,36 +3985,48 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } } /** + * + * *
      * Output only. The time at which this Recognizer will be purged.
      * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); expireTime_ = null; } return expireTimeBuilder_; @@ -3552,6 +4034,8 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private java.lang.Object etag_ = ""; /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3559,13 +4043,13 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -3574,6 +4058,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3581,15 +4067,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -3597,6 +4082,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3604,18 +4091,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3623,6 +4114,7 @@ public Builder setEtag(
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -3632,6 +4124,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of
      * other fields. This may be sent on update, undelete, and delete requests to
@@ -3639,12 +4133,14 @@ public Builder clearEtag() {
      * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00001000; @@ -3652,14 +4148,17 @@ public Builder setEtagBytes( return this; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Whether or not this Recognizer is in the process of being
      * updated.
      * 
* * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -3667,29 +4166,35 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Whether or not this Recognizer is in the process of being
      * updated.
      * 
* * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The reconciling to set. * @return This builder for chaining. */ public Builder setReconciling(boolean value) { - + reconciling_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** + * + * *
      * Output only. Whether or not this Recognizer is in the process of being
      * updated.
      * 
* * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -3701,6 +4206,8 @@ public Builder clearReconciling() { private java.lang.Object kmsKeyName_ = ""; /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3708,14 +4215,16 @@ public Builder clearReconciling() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; 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(); kmsKeyName_ = s; return s; @@ -3724,6 +4233,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3731,16 +4242,17 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; 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); kmsKeyName_ = b; return b; } else { @@ -3748,6 +4260,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3755,19 +4269,25 @@ public java.lang.String getKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyName_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3775,7 +4295,10 @@ public Builder setKmsKeyName(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -3785,6 +4308,8 @@ public Builder clearKmsKeyName() { return this; } /** + * + * *
      * Output only. The [KMS key
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -3792,13 +4317,17 @@ public Builder clearKmsKeyName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
      * 
* - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00004000; @@ -3808,6 +4337,8 @@ public Builder setKmsKeyNameBytes( private java.lang.Object kmsKeyVersionName_ = ""; /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3815,14 +4346,16 @@ public Builder setKmsKeyNameBytes(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyVersionName. */ public java.lang.String getKmsKeyVersionName() { java.lang.Object ref = kmsKeyVersionName_; 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(); kmsKeyVersionName_ = s; return s; @@ -3831,6 +4364,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3838,16 +4373,17 @@ public java.lang.String getKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyVersionName. */ - public com.google.protobuf.ByteString - getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; 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); kmsKeyVersionName_ = b; return b; } else { @@ -3855,6 +4391,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3862,19 +4400,25 @@ public java.lang.String getKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyVersionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyVersionName_ = value; bitField0_ |= 0x00008000; onChanged(); return this; } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3882,7 +4426,10 @@ public Builder setKmsKeyVersionName(
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { @@ -3892,6 +4439,8 @@ public Builder clearKmsKeyVersionName() { return this; } /** + * + * *
      * Output only. The [KMS key version
      * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -3899,22 +4448,26 @@ public Builder clearKmsKeyVersionName() {
      * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
      * 
* - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyVersionName_ = value; bitField0_ |= 0x00008000; 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); } @@ -3924,12 +4477,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.Recognizer) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.Recognizer) private static final com.google.cloud.speech.v2.Recognizer DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.Recognizer(); } @@ -3938,27 +4491,27 @@ public static com.google.cloud.speech.v2.Recognizer getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Recognizer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Recognizer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3973,6 +4526,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.Recognizer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java similarity index 100% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerName.java diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java similarity index 81% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java index 4e9732a7e29a..37ab04a4a79e 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognizerOrBuilder.java @@ -1,77 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface RecognizerOrBuilder extends +public interface RecognizerOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.Recognizer) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the Recognizer.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the Recognizer.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. System-assigned unique identifier for the Recognizer.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. System-assigned unique identifier for the Recognizer.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * User-settable, human-readable name for the Recognizer. Must be 63
    * characters or less.
    * 
* * string display_name = 3; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * User-settable, human-readable name for the Recognizer. Must be 63
    * characters or less.
    * 
* * string display_name = 3; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Required. Which model to use for recognition requests. Select the model
    * best suited to your domain to get best results.
@@ -89,10 +122,13 @@ public interface RecognizerOrBuilder extends
    * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Required. Which model to use for recognition requests. Select the model
    * best suited to your domain to get best results.
@@ -110,12 +146,14 @@ public interface RecognizerOrBuilder extends
    * 
* * string model = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -132,11 +170,13 @@ public interface RecognizerOrBuilder extends
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the languageCodes. */ - java.util.List - getLanguageCodesList(); + java.util.List getLanguageCodesList(); /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -153,10 +193,13 @@ public interface RecognizerOrBuilder extends
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of languageCodes. */ int getLanguageCodesCount(); /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -173,11 +216,14 @@ public interface RecognizerOrBuilder extends
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The languageCodes at the given index. */ java.lang.String getLanguageCodes(int index); /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -194,13 +240,15 @@ public interface RecognizerOrBuilder extends
    * 
* * repeated string language_codes = 17 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the languageCodes at the given index. */ - com.google.protobuf.ByteString - getLanguageCodesBytes(int index); + com.google.protobuf.ByteString getLanguageCodesBytes(int index); /** + * + * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -209,10 +257,13 @@ public interface RecognizerOrBuilder extends
    * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; + * * @return Whether the defaultRecognitionConfig field is set. */ boolean hasDefaultRecognitionConfig(); /** + * + * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -221,10 +272,13 @@ public interface RecognizerOrBuilder extends
    * 
* * .google.cloud.speech.v2.RecognitionConfig default_recognition_config = 6; + * * @return The defaultRecognitionConfig. */ com.google.cloud.speech.v2.RecognitionConfig getDefaultRecognitionConfig(); /** + * + * *
    * Default configuration to use for requests with this Recognizer.
    * This can be overwritten by inline configuration in the
@@ -237,6 +291,8 @@ public interface RecognizerOrBuilder extends
   com.google.cloud.speech.v2.RecognitionConfigOrBuilder getDefaultRecognitionConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -247,6 +303,8 @@ public interface RecognizerOrBuilder extends
    */
   int getAnnotationsCount();
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -255,15 +313,13 @@ public interface RecognizerOrBuilder extends
    *
    * map<string, string> annotations = 7;
    */
-  boolean containsAnnotations(
-      java.lang.String key);
-  /**
-   * Use {@link #getAnnotationsMap()} instead.
-   */
+  boolean containsAnnotations(java.lang.String key);
+  /** Use {@link #getAnnotationsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getAnnotations();
+  java.util.Map getAnnotations();
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -272,9 +328,10 @@ boolean containsAnnotations(
    *
    * map<string, string> annotations = 7;
    */
-  java.util.Map
-  getAnnotationsMap();
+  java.util.Map getAnnotationsMap();
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -284,11 +341,13 @@ boolean containsAnnotations(
    * map<string, string> annotations = 7;
    */
   /* nullable */
-java.lang.String getAnnotationsOrDefault(
+  java.lang.String getAnnotationsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Allows users to store small amounts of arbitrary data.
    * Both the key and the value must be 63 characters or less each.
@@ -297,137 +356,192 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> annotations = 7;
    */
-  java.lang.String getAnnotationsOrThrow(
-      java.lang.String key);
+  java.lang.String getAnnotationsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. The Recognizer lifecycle state.
    * 
* - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The Recognizer lifecycle state.
    * 
* - * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v2.Recognizer.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.speech.v2.Recognizer.State getState(); /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The most recent time this Recognizer was modified.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. The time at which this Recognizer was requested for deletion.
    * 
* - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Output only. The time at which this Recognizer will be purged.
    * 
* - * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** + * + * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -435,10 +549,13 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Output only. This checksum is computed by the server based on the value of
    * other fields. This may be sent on update, undelete, and delete requests to
@@ -446,23 +563,28 @@ java.lang.String getAnnotationsOrThrow(
    * 
* * string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Output only. Whether or not this Recognizer is in the process of being
    * updated.
    * 
* * bool reconciling = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -470,11 +592,16 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** + * + * *
    * Output only. The [KMS key
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
@@ -482,13 +609,17 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
    * 
* - * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_name = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString - getKmsKeyNameBytes(); + com.google.protobuf.ByteString getKmsKeyNameBytes(); /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -496,11 +627,16 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The kmsKeyVersionName. */ java.lang.String getKmsKeyVersionName(); /** + * + * *
    * Output only. The [KMS key version
    * name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
@@ -508,9 +644,11 @@ java.lang.String getAnnotationsOrThrow(
    * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
    * 
* - * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string kms_key_version_name = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for kmsKeyVersionName. */ - com.google.protobuf.ByteString - getKmsKeyVersionNameBytes(); + com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java similarity index 69% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java index b318b60c5519..14b27c2a4f19 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java @@ -1,55 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Configuration to enable speaker diarization.
  * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeakerDiarizationConfig.class, com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v2.SpeakerDiarizationConfig.class, + com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder.class); } public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_ = 0; /** + * + * *
    * Required. Minimum number of speakers in the conversation. This range gives
    * you more flexibility by allowing the system to automatically determine the
@@ -59,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -69,6 +90,8 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_ = 0; /** + * + * *
    * Required. Maximum number of speakers in the conversation. Valid values are:
    * 1-6. Must be >= `min_speaker_count`. This range gives you more flexibility
@@ -77,6 +100,7 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -85,6 +109,7 @@ public int getMaxSpeakerCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,8 +121,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 (minSpeakerCount_ != 0) { output.writeInt32(2, minSpeakerCount_); } @@ -114,12 +138,10 @@ public int getSerializedSize() { size = 0; 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_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -129,17 +151,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.v2.SpeakerDiarizationConfig)) { return super.equals(obj); } - com.google.cloud.speech.v2.SpeakerDiarizationConfig other = (com.google.cloud.speech.v2.SpeakerDiarizationConfig) obj; + com.google.cloud.speech.v2.SpeakerDiarizationConfig other = + (com.google.cloud.speech.v2.SpeakerDiarizationConfig) obj; - if (getMinSpeakerCount() - != other.getMinSpeakerCount()) return false; - if (getMaxSpeakerCount() - != other.getMaxSpeakerCount()) return false; + if (getMinSpeakerCount() != other.getMinSpeakerCount()) return false; + if (getMaxSpeakerCount() != other.getMaxSpeakerCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +182,135 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.SpeakerDiarizationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.SpeakerDiarizationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.SpeakerDiarizationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.SpeakerDiarizationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.SpeakerDiarizationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Configuration to enable speaker diarization.
    * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.SpeakerDiarizationConfig) com.google.cloud.speech.v2.SpeakerDiarizationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeakerDiarizationConfig.class, com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v2.SpeakerDiarizationConfig.class, + com.google.cloud.speech.v2.SpeakerDiarizationConfig.Builder.class); } // Construct using com.google.cloud.speech.v2.SpeakerDiarizationConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,9 +321,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; } @java.lang.Override @@ -315,8 +342,11 @@ public com.google.cloud.speech.v2.SpeakerDiarizationConfig build() { @java.lang.Override public com.google.cloud.speech.v2.SpeakerDiarizationConfig buildPartial() { - com.google.cloud.speech.v2.SpeakerDiarizationConfig result = new com.google.cloud.speech.v2.SpeakerDiarizationConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v2.SpeakerDiarizationConfig result = + new com.google.cloud.speech.v2.SpeakerDiarizationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -335,38 +365,39 @@ private void buildPartial0(com.google.cloud.speech.v2.SpeakerDiarizationConfig r 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.v2.SpeakerDiarizationConfig) { - return mergeFrom((com.google.cloud.speech.v2.SpeakerDiarizationConfig)other); + return mergeFrom((com.google.cloud.speech.v2.SpeakerDiarizationConfig) other); } else { super.mergeFrom(other); return this; @@ -374,7 +405,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.SpeakerDiarizationConfig other) { - if (other == com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v2.SpeakerDiarizationConfig.getDefaultInstance()) + return this; if (other.getMinSpeakerCount() != 0) { setMinSpeakerCount(other.getMinSpeakerCount()); } @@ -407,22 +439,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 16: { - minSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 16 - case 24: { - maxSpeakerCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 16: + { + minSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 16 + case 24: + { + maxSpeakerCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -432,10 +467,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int minSpeakerCount_ ; + private int minSpeakerCount_; /** + * + * *
      * Required. Minimum number of speakers in the conversation. This range gives
      * you more flexibility by allowing the system to automatically determine the
@@ -445,6 +483,7 @@ public Builder mergeFrom(
      * 
* * int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -452,6 +491,8 @@ public int getMinSpeakerCount() { return minSpeakerCount_; } /** + * + * *
      * Required. Minimum number of speakers in the conversation. This range gives
      * you more flexibility by allowing the system to automatically determine the
@@ -461,17 +502,20 @@ public int getMinSpeakerCount() {
      * 
* * int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The minSpeakerCount to set. * @return This builder for chaining. */ public Builder setMinSpeakerCount(int value) { - + minSpeakerCount_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Minimum number of speakers in the conversation. This range gives
      * you more flexibility by allowing the system to automatically determine the
@@ -481,6 +525,7 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { @@ -490,8 +535,10 @@ public Builder clearMinSpeakerCount() { return this; } - private int maxSpeakerCount_ ; + private int maxSpeakerCount_; /** + * + * *
      * Required. Maximum number of speakers in the conversation. Valid values are:
      * 1-6. Must be >= `min_speaker_count`. This range gives you more flexibility
@@ -500,6 +547,7 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -507,6 +555,8 @@ public int getMaxSpeakerCount() { return maxSpeakerCount_; } /** + * + * *
      * Required. Maximum number of speakers in the conversation. Valid values are:
      * 1-6. Must be >= `min_speaker_count`. This range gives you more flexibility
@@ -515,17 +565,20 @@ public int getMaxSpeakerCount() {
      * 
* * int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The maxSpeakerCount to set. * @return This builder for chaining. */ public Builder setMaxSpeakerCount(int value) { - + maxSpeakerCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. Maximum number of speakers in the conversation. Valid values are:
      * 1-6. Must be >= `min_speaker_count`. This range gives you more flexibility
@@ -534,6 +587,7 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { @@ -542,9 +596,9 @@ public Builder clearMaxSpeakerCount() { 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); } @@ -554,12 +608,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.SpeakerDiarizationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.SpeakerDiarizationConfig) private static final com.google.cloud.speech.v2.SpeakerDiarizationConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.SpeakerDiarizationConfig(); } @@ -568,27 +622,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -603,6 +657,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.SpeakerDiarizationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java similarity index 64% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java index 36dd1f392509..8b55c737a86b 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfigOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface SpeakerDiarizationConfigOrBuilder extends +public interface SpeakerDiarizationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.SpeakerDiarizationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Minimum number of speakers in the conversation. This range gives
    * you more flexibility by allowing the system to automatically determine the
@@ -17,11 +35,14 @@ public interface SpeakerDiarizationConfigOrBuilder extends
    * 
* * int32 min_speaker_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The minSpeakerCount. */ int getMinSpeakerCount(); /** + * + * *
    * Required. Maximum number of speakers in the conversation. Valid values are:
    * 1-6. Must be >= `min_speaker_count`. This range gives you more flexibility
@@ -30,6 +51,7 @@ public interface SpeakerDiarizationConfigOrBuilder extends
    * 
* * int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The maxSpeakerCount. */ int getMaxSpeakerCount(); diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java similarity index 72% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java index 82f8bc88e348..17506874e78a 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results. Phrase sets can be specified as an inline resource, or a
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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();
     customClasses_ = java.util.Collections.emptyList();
@@ -28,84 +46,102 @@ 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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.SpeechAdaptation.class, com.google.cloud.speech.v2.SpeechAdaptation.Builder.class);
+            com.google.cloud.speech.v2.SpeechAdaptation.class,
+            com.google.cloud.speech.v2.SpeechAdaptation.Builder.class);
   }
 
-  public interface AdaptationPhraseSetOrBuilder extends
+  public interface AdaptationPhraseSetOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** + * + * *
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @return The phraseSet. */ java.lang.String getPhraseSet(); /** + * + * *
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for phraseSet. */ - com.google.protobuf.ByteString - getPhraseSetBytes(); + com.google.protobuf.ByteString getPhraseSetBytes(); /** + * + * *
      * An inline defined phrase set.
      * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; + * * @return Whether the inlinePhraseSet field is set. */ boolean hasInlinePhraseSet(); /** + * + * *
      * An inline defined phrase set.
      * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; + * * @return The inlinePhraseSet. */ com.google.cloud.speech.v2.PhraseSet getInlinePhraseSet(); /** + * + * *
      * An inline defined phrase set.
      * 
@@ -117,6 +153,8 @@ public interface AdaptationPhraseSetOrBuilder extends public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.ValueCase getValueCase(); } /** + * + * *
    * A biasing phrase set, which can be either a string referencing the name of
    * an existing phrase set resource, or an inline definition of a phrase set.
@@ -124,52 +162,56 @@ public interface AdaptationPhraseSetOrBuilder extends
    *
    * Protobuf type {@code google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet}
    */
-  public static final class AdaptationPhraseSet extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class AdaptationPhraseSet extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet)
       AdaptationPhraseSetOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use AdaptationPhraseSet.newBuilder() to construct.
     private AdaptationPhraseSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private AdaptationPhraseSet() {
-    }
+
+    private AdaptationPhraseSet() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new AdaptationPhraseSet();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.class, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder.class);
+              com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.class,
+              com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder.class);
     }
 
     private int valueCase_ = 0;
     private java.lang.Object value_;
+
     public enum ValueCase
-        implements com.google.protobuf.Internal.EnumLite,
+        implements
+            com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       PHRASE_SET(1),
       INLINE_PHRASE_SET(2),
       VALUE_NOT_SET(0);
       private final int value;
+
       private ValueCase(int value) {
         this.value = value;
       }
@@ -185,43 +227,52 @@ public static ValueCase valueOf(int value) {
 
       public static ValueCase forNumber(int value) {
         switch (value) {
-          case 1: return PHRASE_SET;
-          case 2: return INLINE_PHRASE_SET;
-          case 0: return VALUE_NOT_SET;
-          default: return null;
+          case 1:
+            return PHRASE_SET;
+          case 2:
+            return INLINE_PHRASE_SET;
+          case 0:
+            return VALUE_NOT_SET;
+          default:
+            return null;
         }
       }
+
       public int getNumber() {
         return this.value;
       }
     };
 
-    public ValueCase
-    getValueCase() {
-      return ValueCase.forNumber(
-          valueCase_);
+    public ValueCase getValueCase() {
+      return ValueCase.forNumber(valueCase_);
     }
 
     public static final int PHRASE_SET_FIELD_NUMBER = 1;
     /**
+     *
+     *
      * 
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return valueCase_ == 1; } /** + * + * *
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @return The phraseSet. */ public java.lang.String getPhraseSet() { @@ -232,8 +283,7 @@ public java.lang.String getPhraseSet() { 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 (valueCase_ == 1) { value_ = s; @@ -242,24 +292,25 @@ public java.lang.String getPhraseSet() { } } /** + * + * *
      * The name of an existing phrase set resource. The user must have read
      * access to the resource and it must not be deleted.
      * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for phraseSet. */ - public com.google.protobuf.ByteString - getPhraseSetBytes() { + public com.google.protobuf.ByteString getPhraseSetBytes() { java.lang.Object ref = ""; if (valueCase_ == 1) { 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); if (valueCase_ == 1) { value_ = b; } @@ -271,11 +322,14 @@ public java.lang.String getPhraseSet() { public static final int INLINE_PHRASE_SET_FIELD_NUMBER = 2; /** + * + * *
      * An inline defined phrase set.
      * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; + * * @return Whether the inlinePhraseSet field is set. */ @java.lang.Override @@ -283,21 +337,26 @@ public boolean hasInlinePhraseSet() { return valueCase_ == 2; } /** + * + * *
      * An inline defined phrase set.
      * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; + * * @return The inlinePhraseSet. */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSet getInlinePhraseSet() { if (valueCase_ == 2) { - return (com.google.cloud.speech.v2.PhraseSet) value_; + return (com.google.cloud.speech.v2.PhraseSet) value_; } return com.google.cloud.speech.v2.PhraseSet.getDefaultInstance(); } /** + * + * *
      * An inline defined phrase set.
      * 
@@ -307,12 +366,13 @@ public com.google.cloud.speech.v2.PhraseSet getInlinePhraseSet() { @java.lang.Override public com.google.cloud.speech.v2.PhraseSetOrBuilder getInlinePhraseSetOrBuilder() { if (valueCase_ == 2) { - return (com.google.cloud.speech.v2.PhraseSet) value_; + return (com.google.cloud.speech.v2.PhraseSet) value_; } return com.google.cloud.speech.v2.PhraseSet.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,8 +384,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 (valueCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -345,8 +404,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.speech.v2.PhraseSet) value_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.speech.v2.PhraseSet) value_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -356,22 +416,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.v2.SpeechAdaptation.AdaptationPhraseSet)) { return super.equals(obj); } - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet other = (com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet) obj; + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet other = + (com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet) obj; if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 1: - if (!getPhraseSet() - .equals(other.getPhraseSet())) return false; + if (!getPhraseSet().equals(other.getPhraseSet())) return false; break; case 2: - if (!getInlinePhraseSet() - .equals(other.getInlinePhraseSet())) return false; + if (!getInlinePhraseSet().equals(other.getInlinePhraseSet())) return false; break; case 0: default: @@ -405,87 +464,95 @@ public int hashCode() { } public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet + 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.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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 @@ -495,6 +562,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A biasing phrase set, which can be either a string referencing the name of
      * an existing phrase set resource, or an inline definition of a phrase set.
@@ -502,33 +571,34 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet}
      */
-    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.v2.SpeechAdaptation.AdaptationPhraseSet)
         com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.speech.v2.CloudSpeechProto
+            .internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable
+        return com.google.cloud.speech.v2.CloudSpeechProto
+            .internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.class, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder.class);
+                com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.class,
+                com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder.class);
       }
 
-      // Construct using com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.newBuilder()
-      private Builder() {
-
-      }
+      // Construct using
+      // com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.newBuilder()
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -542,13 +612,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.speech.v2.CloudSpeechProto
+            .internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getDefaultInstanceForType() {
+      public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet
+          getDefaultInstanceForType() {
         return com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance();
       }
 
@@ -563,22 +634,26 @@ public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet build() {
 
       @java.lang.Override
       public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet buildPartial() {
-        com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result = new com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result =
+            new com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         buildPartialOneofs(result);
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result) {
+      private void buildPartial0(
+          com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result) {
         int from_bitField0_ = bitField0_;
       }
 
-      private void buildPartialOneofs(com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result) {
+      private void buildPartialOneofs(
+          com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet result) {
         result.valueCase_ = valueCase_;
         result.value_ = this.value_;
-        if (valueCase_ == 2 &&
-            inlinePhraseSetBuilder_ != null) {
+        if (valueCase_ == 2 && inlinePhraseSetBuilder_ != null) {
           result.value_ = inlinePhraseSetBuilder_.build();
         }
       }
@@ -587,60 +662,69 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.SpeechAdaptation.Adap
       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.v2.SpeechAdaptation.AdaptationPhraseSet) {
-          return mergeFrom((com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet)other);
+          return mergeFrom((com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet other) {
-        if (other == com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet other) {
+        if (other
+            == com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance())
+          return this;
         switch (other.getValueCase()) {
-          case PHRASE_SET: {
-            valueCase_ = 1;
-            value_ = other.value_;
-            onChanged();
-            break;
-          }
-          case INLINE_PHRASE_SET: {
-            mergeInlinePhraseSet(other.getInlinePhraseSet());
-            break;
-          }
-          case VALUE_NOT_SET: {
-            break;
-          }
+          case PHRASE_SET:
+            {
+              valueCase_ = 1;
+              value_ = other.value_;
+              onChanged();
+              break;
+            }
+          case INLINE_PHRASE_SET:
+            {
+              mergeInlinePhraseSet(other.getInlinePhraseSet());
+              break;
+            }
+          case VALUE_NOT_SET:
+            {
+              break;
+            }
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -668,25 +752,27 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                java.lang.String s = input.readStringRequireUtf8();
-                valueCase_ = 1;
-                value_ = s;
-                break;
-              } // case 10
-              case 18: {
-                input.readMessage(
-                    getInlinePhraseSetFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                valueCase_ = 2;
-                break;
-              } // case 18
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  java.lang.String s = input.readStringRequireUtf8();
+                  valueCase_ = 1;
+                  value_ = s;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  input.readMessage(
+                      getInlinePhraseSetFieldBuilder().getBuilder(), extensionRegistry);
+                  valueCase_ = 2;
+                  break;
+                } // case 18
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -696,12 +782,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int valueCase_ = 0;
       private java.lang.Object value_;
-      public ValueCase
-          getValueCase() {
-        return ValueCase.forNumber(
-            valueCase_);
+
+      public ValueCase getValueCase() {
+        return ValueCase.forNumber(valueCase_);
       }
 
       public Builder clearValue() {
@@ -714,12 +800,15 @@ public Builder clearValue() {
       private int bitField0_;
 
       /**
+       *
+       *
        * 
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -727,12 +816,15 @@ public boolean hasPhraseSet() { return valueCase_ == 1; } /** + * + * *
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @return The phraseSet. */ @java.lang.Override @@ -742,8 +834,7 @@ public java.lang.String getPhraseSet() { 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(); if (valueCase_ == 1) { value_ = s; @@ -754,25 +845,26 @@ public java.lang.String getPhraseSet() { } } /** + * + * *
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for phraseSet. */ @java.lang.Override - public com.google.protobuf.ByteString - getPhraseSetBytes() { + public com.google.protobuf.ByteString getPhraseSetBytes() { java.lang.Object ref = ""; if (valueCase_ == 1) { 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); if (valueCase_ == 1) { value_ = b; } @@ -782,30 +874,37 @@ public java.lang.String getPhraseSet() { } } /** + * + * *
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @param value The phraseSet to set. * @return This builder for chaining. */ - public Builder setPhraseSet( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhraseSet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } valueCase_ = 1; value_ = value; onChanged(); return this; } /** + * + * *
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearPhraseSet() { @@ -817,18 +916,22 @@ public Builder clearPhraseSet() { return this; } /** + * + * *
        * The name of an existing phrase set resource. The user must have read
        * access to the resource and it must not be deleted.
        * 
* * string phrase_set = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for phraseSet to set. * @return This builder for chaining. */ - public Builder setPhraseSetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhraseSetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); valueCase_ = 1; value_ = value; @@ -837,13 +940,19 @@ public Builder setPhraseSetBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> inlinePhraseSetBuilder_; + com.google.cloud.speech.v2.PhraseSet, + com.google.cloud.speech.v2.PhraseSet.Builder, + com.google.cloud.speech.v2.PhraseSetOrBuilder> + inlinePhraseSetBuilder_; /** + * + * *
        * An inline defined phrase set.
        * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; + * * @return Whether the inlinePhraseSet field is set. */ @java.lang.Override @@ -851,11 +960,14 @@ public boolean hasInlinePhraseSet() { return valueCase_ == 2; } /** + * + * *
        * An inline defined phrase set.
        * 
* * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; + * * @return The inlinePhraseSet. */ @java.lang.Override @@ -873,6 +985,8 @@ public com.google.cloud.speech.v2.PhraseSet getInlinePhraseSet() { } } /** + * + * *
        * An inline defined phrase set.
        * 
@@ -893,6 +1007,8 @@ public Builder setInlinePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** + * + * *
        * An inline defined phrase set.
        * 
@@ -911,6 +1027,8 @@ public Builder setInlinePhraseSet( return this; } /** + * + * *
        * An inline defined phrase set.
        * 
@@ -919,10 +1037,13 @@ public Builder setInlinePhraseSet( */ public Builder mergeInlinePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { if (inlinePhraseSetBuilder_ == null) { - if (valueCase_ == 2 && - value_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { - value_ = com.google.cloud.speech.v2.PhraseSet.newBuilder((com.google.cloud.speech.v2.PhraseSet) value_) - .mergeFrom(value).buildPartial(); + if (valueCase_ == 2 + && value_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { + value_ = + com.google.cloud.speech.v2.PhraseSet.newBuilder( + (com.google.cloud.speech.v2.PhraseSet) value_) + .mergeFrom(value) + .buildPartial(); } else { value_ = value; } @@ -938,6 +1059,8 @@ public Builder mergeInlinePhraseSet(com.google.cloud.speech.v2.PhraseSet value) return this; } /** + * + * *
        * An inline defined phrase set.
        * 
@@ -961,6 +1084,8 @@ public Builder clearInlinePhraseSet() { return this; } /** + * + * *
        * An inline defined phrase set.
        * 
@@ -971,6 +1096,8 @@ public com.google.cloud.speech.v2.PhraseSet.Builder getInlinePhraseSetBuilder() return getInlinePhraseSetFieldBuilder().getBuilder(); } /** + * + * *
        * An inline defined phrase set.
        * 
@@ -989,6 +1116,8 @@ public com.google.cloud.speech.v2.PhraseSetOrBuilder getInlinePhraseSetOrBuilder } } /** + * + * *
        * An inline defined phrase set.
        * 
@@ -996,23 +1125,27 @@ public com.google.cloud.speech.v2.PhraseSetOrBuilder getInlinePhraseSetOrBuilder * .google.cloud.speech.v2.PhraseSet inline_phrase_set = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> + com.google.cloud.speech.v2.PhraseSet, + com.google.cloud.speech.v2.PhraseSet.Builder, + com.google.cloud.speech.v2.PhraseSetOrBuilder> getInlinePhraseSetFieldBuilder() { if (inlinePhraseSetBuilder_ == null) { if (!(valueCase_ == 2)) { value_ = com.google.cloud.speech.v2.PhraseSet.getDefaultInstance(); } - inlinePhraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder>( - (com.google.cloud.speech.v2.PhraseSet) value_, - getParentForChildren(), - isClean()); + inlinePhraseSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.PhraseSet, + com.google.cloud.speech.v2.PhraseSet.Builder, + com.google.cloud.speech.v2.PhraseSetOrBuilder>( + (com.google.cloud.speech.v2.PhraseSet) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 2; onChanged(); return inlinePhraseSetBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1025,41 +1158,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet) - private static final com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet DEFAULT_INSTANCE; + private static final com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet(); } - public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getDefaultInstance() { + public static com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdaptationPhraseSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdaptationPhraseSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1071,77 +1207,99 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getDefaultInstanceForType() { + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int PHRASE_SETS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List phraseSets_; + private java.util.List + phraseSets_; /** + * + * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ @java.lang.Override - public java.util.List getPhraseSetsList() { + public java.util.List + getPhraseSetsList() { return phraseSets_; } /** + * + * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder> getPhraseSetsOrBuilderList() { return phraseSets_; } /** + * + * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ @java.lang.Override public int getPhraseSetsCount() { return phraseSets_.size(); } /** + * + * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ @java.lang.Override public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** + * + * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ @java.lang.Override - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhraseSetsOrBuilder( - int index) { + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder + getPhraseSetsOrBuilder(int index) { return phraseSets_.get(index); } public static final int CUSTOM_CLASSES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List customClasses_; /** + * + * *
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -1154,6 +1312,8 @@ public java.util.List getCustomClassesLi
     return customClasses_;
   }
   /**
+   *
+   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -1162,11 +1322,13 @@ public java.util.List getCustomClassesLi
    * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getCustomClassesOrBuilderList() {
     return customClasses_;
   }
   /**
+   *
+   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -1179,6 +1341,8 @@ public int getCustomClassesCount() {
     return customClasses_.size();
   }
   /**
+   *
+   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -1191,6 +1355,8 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) {
     return customClasses_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -1199,12 +1365,12 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) {
    * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(
-      int index) {
+  public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index) {
     return customClasses_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1216,8 +1382,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));
     }
@@ -1234,12 +1399,10 @@ 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));
     }
     for (int i = 0; i < customClasses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, customClasses_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, customClasses_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1249,17 +1412,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.v2.SpeechAdaptation)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.SpeechAdaptation other = (com.google.cloud.speech.v2.SpeechAdaptation) obj;
+    com.google.cloud.speech.v2.SpeechAdaptation other =
+        (com.google.cloud.speech.v2.SpeechAdaptation) obj;
 
-    if (!getPhraseSetsList()
-        .equals(other.getPhraseSetsList())) return false;
-    if (!getCustomClassesList()
-        .equals(other.getCustomClassesList())) return false;
+    if (!getPhraseSetsList().equals(other.getPhraseSetsList())) return false;
+    if (!getCustomClassesList().equals(other.getCustomClassesList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -1284,97 +1446,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.speech.v2.SpeechAdaptation parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.speech.v2.SpeechAdaptation parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.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.v2.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.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.v2.SpeechAdaptation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.SpeechAdaptation parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v2.SpeechAdaptation parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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;
   }
   /**
+   *
+   *
    * 
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results. Phrase sets can be specified as an inline resource, or a
@@ -1383,33 +1552,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.SpeechAdaptation)
       com.google.cloud.speech.v2.SpeechAdaptationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.SpeechAdaptation.class, com.google.cloud.speech.v2.SpeechAdaptation.Builder.class);
+              com.google.cloud.speech.v2.SpeechAdaptation.class,
+              com.google.cloud.speech.v2.SpeechAdaptation.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.SpeechAdaptation.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1432,9 +1600,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor;
     }
 
     @java.lang.Override
@@ -1453,9 +1621,12 @@ public com.google.cloud.speech.v2.SpeechAdaptation build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.SpeechAdaptation buildPartial() {
-      com.google.cloud.speech.v2.SpeechAdaptation result = new com.google.cloud.speech.v2.SpeechAdaptation(this);
+      com.google.cloud.speech.v2.SpeechAdaptation result =
+          new com.google.cloud.speech.v2.SpeechAdaptation(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1489,38 +1660,39 @@ private void buildPartial0(com.google.cloud.speech.v2.SpeechAdaptation result) {
     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.v2.SpeechAdaptation) {
-        return mergeFrom((com.google.cloud.speech.v2.SpeechAdaptation)other);
+        return mergeFrom((com.google.cloud.speech.v2.SpeechAdaptation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1547,9 +1719,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_);
           }
@@ -1573,9 +1746,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.SpeechAdaptation other) {
             customClassesBuilder_ = null;
             customClasses_ = other.customClasses_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            customClassesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getCustomClassesFieldBuilder() : null;
+            customClassesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getCustomClassesFieldBuilder()
+                    : null;
           } else {
             customClassesBuilder_.addAllMessages(other.customClasses_);
           }
@@ -1607,38 +1781,40 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.parser(),
-                      extensionRegistry);
-              if (phraseSetsBuilder_ == null) {
-                ensurePhraseSetsIsMutable();
-                phraseSets_.add(m);
-              } else {
-                phraseSetsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              com.google.cloud.speech.v2.CustomClass m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.CustomClass.parser(),
-                      extensionRegistry);
-              if (customClassesBuilder_ == null) {
-                ensureCustomClassesIsMutable();
-                customClasses_.add(m);
-              } else {
-                customClassesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.parser(),
+                        extensionRegistry);
+                if (phraseSetsBuilder_ == null) {
+                  ensurePhraseSetsIsMutable();
+                  phraseSets_.add(m);
+                } else {
+                  phraseSetsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.cloud.speech.v2.CustomClass m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.CustomClass.parser(), extensionRegistry);
+                if (customClassesBuilder_ == null) {
+                  ensureCustomClassesIsMutable();
+                  customClasses_.add(m);
+                } else {
+                  customClassesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1648,28 +1824,39 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List phraseSets_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        phraseSets_ = java.util.Collections.emptyList();
+
     private void ensurePhraseSetsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        phraseSets_ = new java.util.ArrayList(phraseSets_);
+        phraseSets_ =
+            new java.util.ArrayList<
+                com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet>(phraseSets_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder> phraseSetsBuilder_;
+            com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet,
+            com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder,
+            com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder>
+        phraseSetsBuilder_;
 
     /**
+     *
+     *
      * 
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ - public java.util.List getPhraseSetsList() { + public java.util.List + getPhraseSetsList() { if (phraseSetsBuilder_ == null) { return java.util.Collections.unmodifiableList(phraseSets_); } else { @@ -1677,11 +1864,14 @@ public java.util.List * A list of inline or referenced phrase sets. *
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ public int getPhraseSetsCount() { if (phraseSetsBuilder_ == null) { @@ -1691,13 +1881,17 @@ public int getPhraseSetsCount() { } } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getPhraseSets(int index) { + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getPhraseSets( + int index) { if (phraseSetsBuilder_ == null) { return phraseSets_.get(index); } else { @@ -1705,11 +1899,14 @@ public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getPhrase } } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ public Builder setPhraseSets( int index, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet value) { @@ -1726,14 +1923,18 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ public Builder setPhraseSets( - int index, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue) { + int index, + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue) { if (phraseSetsBuilder_ == null) { ensurePhraseSetsIsMutable(); phraseSets_.set(index, builderForValue.build()); @@ -1744,13 +1945,17 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ - public Builder addPhraseSets(com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet value) { + public Builder addPhraseSets( + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet value) { if (phraseSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1764,11 +1969,14 @@ public Builder addPhraseSets(com.google.cloud.speech.v2.SpeechAdaptation.Adaptat return this; } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ public Builder addPhraseSets( int index, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet value) { @@ -1785,11 +1993,14 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ public Builder addPhraseSets( com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue) { @@ -1803,14 +2014,18 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ public Builder addPhraseSets( - int index, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue) { + int index, + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue) { if (phraseSetsBuilder_ == null) { ensurePhraseSetsIsMutable(); phraseSets_.add(index, builderForValue.build()); @@ -1821,18 +2036,22 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ public Builder addAllPhraseSets( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet> + 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); @@ -1840,11 +2059,14 @@ public Builder addAllPhraseSets( return this; } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ public Builder clearPhraseSets() { if (phraseSetsBuilder_ == null) { @@ -1857,11 +2079,14 @@ public Builder clearPhraseSets() { return this; } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ public Builder removePhraseSets(int index) { if (phraseSetsBuilder_ == null) { @@ -1874,39 +2099,50 @@ public Builder removePhraseSets(int index) { return this; } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder getPhraseSetsBuilder( - int index) { + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder + getPhraseSetsBuilder(int index) { return getPhraseSetsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhraseSetsOrBuilder( - int index) { + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder + getPhraseSetsOrBuilder(int index) { if (phraseSetsBuilder_ == null) { - return phraseSets_.get(index); } else { + return phraseSets_.get(index); + } else { return phraseSetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ - public java.util.List - getPhraseSetsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder> + getPhraseSetsOrBuilderList() { if (phraseSetsBuilder_ != null) { return phraseSetsBuilder_.getMessageOrBuilderList(); } else { @@ -1914,67 +2150,90 @@ public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder } } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder addPhraseSetsBuilder() { - return getPhraseSetsFieldBuilder().addBuilder( - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance()); + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder + addPhraseSetsBuilder() { + return getPhraseSetsFieldBuilder() + .addBuilder( + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance()); } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ - public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder addPhraseSetsBuilder( - int index) { - return getPhraseSetsFieldBuilder().addBuilder( - index, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance()); + public com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder + addPhraseSetsBuilder(int index) { + return getPhraseSetsFieldBuilder() + .addBuilder( + index, + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.getDefaultInstance()); } /** + * + * *
      * A list of inline or referenced phrase sets.
      * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet 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.v2.SpeechAdaptation.AdaptationPhraseSet, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder> + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet, + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder, + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder> getPhraseSetsFieldBuilder() { if (phraseSetsBuilder_ == null) { - phraseSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder, com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder>( - phraseSets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + phraseSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet, + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet.Builder, + com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder>( + phraseSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); phraseSets_ = null; } return phraseSetsBuilder_; } private java.util.List customClasses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCustomClassesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - customClasses_ = new java.util.ArrayList(customClasses_); + customClasses_ = + new java.util.ArrayList(customClasses_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> customClassesBuilder_; + com.google.cloud.speech.v2.CustomClass, + com.google.cloud.speech.v2.CustomClass.Builder, + com.google.cloud.speech.v2.CustomClassOrBuilder> + customClassesBuilder_; /** + * + * *
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -1990,6 +2249,8 @@ public java.util.List getCustomClassesLi
       }
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2005,6 +2266,8 @@ public int getCustomClassesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2020,6 +2283,8 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2027,8 +2292,7 @@ public com.google.cloud.speech.v2.CustomClass getCustomClasses(int index) {
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public Builder setCustomClasses(
-        int index, com.google.cloud.speech.v2.CustomClass value) {
+    public Builder setCustomClasses(int index, com.google.cloud.speech.v2.CustomClass value) {
       if (customClassesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2042,6 +2306,8 @@ public Builder setCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2061,6 +2327,8 @@ public Builder setCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2082,6 +2350,8 @@ public Builder addCustomClasses(com.google.cloud.speech.v2.CustomClass value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2089,8 +2359,7 @@ public Builder addCustomClasses(com.google.cloud.speech.v2.CustomClass value) {
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public Builder addCustomClasses(
-        int index, com.google.cloud.speech.v2.CustomClass value) {
+    public Builder addCustomClasses(int index, com.google.cloud.speech.v2.CustomClass value) {
       if (customClassesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2104,6 +2373,8 @@ public Builder addCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2123,6 +2394,8 @@ public Builder addCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2142,6 +2415,8 @@ public Builder addCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2153,8 +2428,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);
@@ -2162,6 +2436,8 @@ public Builder addAllCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2180,6 +2456,8 @@ public Builder clearCustomClasses() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2198,6 +2476,8 @@ public Builder removeCustomClasses(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2205,11 +2485,12 @@ public Builder removeCustomClasses(int index) {
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassesBuilder(
-        int index) {
+    public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassesBuilder(int index) {
       return getCustomClassesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2217,14 +2498,16 @@ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassesBuilder(
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(
-        int index) {
+    public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index) {
       if (customClassesBuilder_ == null) {
-        return customClasses_.get(index);  } else {
+        return customClasses_.get(index);
+      } else {
         return customClassesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2232,8 +2515,8 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public java.util.List 
-         getCustomClassesOrBuilderList() {
+    public java.util.List
+        getCustomClassesOrBuilderList() {
       if (customClassesBuilder_ != null) {
         return customClassesBuilder_.getMessageOrBuilderList();
       } else {
@@ -2241,6 +2524,8 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder
       }
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2249,10 +2534,12 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
     public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder() {
-      return getCustomClassesFieldBuilder().addBuilder(
-          com.google.cloud.speech.v2.CustomClass.getDefaultInstance());
+      return getCustomClassesFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v2.CustomClass.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2260,12 +2547,13 @@ public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder()
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(
-        int index) {
-      return getCustomClassesFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v2.CustomClass.getDefaultInstance());
+    public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(int index) {
+      return getCustomClassesFieldBuilder()
+          .addBuilder(index, com.google.cloud.speech.v2.CustomClass.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of inline custom classes. Existing custom class resources can be
      * referenced directly in a phrase set.
@@ -2273,16 +2561,22 @@ public com.google.cloud.speech.v2.CustomClass.Builder addCustomClassesBuilder(
      *
      * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
      */
-    public java.util.List 
-         getCustomClassesBuilderList() {
+    public java.util.List
+        getCustomClassesBuilderList() {
       return getCustomClassesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> 
+            com.google.cloud.speech.v2.CustomClass,
+            com.google.cloud.speech.v2.CustomClass.Builder,
+            com.google.cloud.speech.v2.CustomClassOrBuilder>
         getCustomClassesFieldBuilder() {
       if (customClassesBuilder_ == null) {
-        customClassesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder>(
+        customClassesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v2.CustomClass,
+                com.google.cloud.speech.v2.CustomClass.Builder,
+                com.google.cloud.speech.v2.CustomClassOrBuilder>(
                 customClasses_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -2291,9 +2585,9 @@ public com.google.cloud.speech.v2.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);
     }
 
@@ -2303,12 +2597,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.SpeechAdaptation)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.SpeechAdaptation)
   private static final com.google.cloud.speech.v2.SpeechAdaptation DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.SpeechAdaptation();
   }
@@ -2317,27 +2611,27 @@ public static com.google.cloud.speech.v2.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 {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  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 {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2352,6 +2646,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v2.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java
similarity index 71%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java
index 5a8fc16f2c29..2c1d3322d7af 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptationOrBuilder.java
@@ -1,57 +1,90 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
-public interface SpeechAdaptationOrBuilder extends
+public interface SpeechAdaptationOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.SpeechAdaptation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ - java.util.List + java.util.List getPhraseSetsList(); /** + * + * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet getPhraseSets(int index); /** + * + * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ int getPhraseSetsCount(); /** + * + * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ - java.util.List + java.util.List getPhraseSetsOrBuilderList(); /** + * + * *
    * A list of inline or referenced phrase sets.
    * 
* - * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1; + * */ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhraseSetsOrBuilder( int index); /** + * + * *
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -59,9 +92,10 @@ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhra
    *
    * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
    */
-  java.util.List 
-      getCustomClassesList();
+  java.util.List getCustomClassesList();
   /**
+   *
+   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -71,6 +105,8 @@ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhra
    */
   com.google.cloud.speech.v2.CustomClass getCustomClasses(int index);
   /**
+   *
+   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -80,6 +116,8 @@ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhra
    */
   int getCustomClassesCount();
   /**
+   *
+   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -87,9 +125,11 @@ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhra
    *
    * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
    */
-  java.util.List 
+  java.util.List
       getCustomClassesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of inline custom classes. Existing custom class resources can be
    * referenced directly in a phrase set.
@@ -97,6 +137,5 @@ com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhra
    *
    * repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
    */
-  com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(
-      int index);
+  com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassesOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java
similarity index 75%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java
index cbb909e06162..342473af6b42 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternative.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
+ *
+ *
  * 
  * Alternative hypotheses (a.k.a. n-best list).
  * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.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,38 +44,43 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeechRecognitionAlternative.class, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v2.SpeechRecognitionAlternative.class, + com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder.class); } public static final int TRANSCRIPT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object transcript_ = ""; /** + * + * *
    * Transcript text representing the words that the user spoke.
    * 
* * string transcript = 1; + * * @return The transcript. */ @java.lang.Override @@ -66,29 +89,29 @@ 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.
    * 
* * 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 { @@ -99,6 +122,8 @@ public java.lang.String getTranscript() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_ = 0F; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -111,6 +136,7 @@ public java.lang.String getTranscript() {
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -119,9 +145,12 @@ public float getConfidence() { } public static final int WORDS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List words_; /** + * + * *
    * A list of word-specific information for each recognized word.
    * When
@@ -136,6 +165,8 @@ public java.util.List getWordsList() {
     return words_;
   }
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -146,11 +177,13 @@ public java.util.List getWordsList() {
    * repeated .google.cloud.speech.v2.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.
    * When
@@ -165,6 +198,8 @@ public int getWordsCount() {
     return words_.size();
   }
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -179,6 +214,8 @@ public com.google.cloud.speech.v2.WordInfo getWords(int index) {
     return words_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -189,12 +226,12 @@ public com.google.cloud.speech.v2.WordInfo getWords(int index) {
    * repeated .google.cloud.speech.v2.WordInfo words = 3;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(
-      int index) {
+  public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(int index) {
     return words_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -206,8 +243,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_);
     }
@@ -230,12 +266,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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -245,20 +279,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.v2.SpeechRecognitionAlternative)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.SpeechRecognitionAlternative other = (com.google.cloud.speech.v2.SpeechRecognitionAlternative) obj;
+    com.google.cloud.speech.v2.SpeechRecognitionAlternative other =
+        (com.google.cloud.speech.v2.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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -273,8 +305,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();
@@ -285,129 +316,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v2.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.v2.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.v2.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionAlternative parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionAlternative parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v2.SpeechRecognitionAlternative parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionAlternative parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v2.SpeechRecognitionAlternative parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.SpeechRecognitionAlternative prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.speech.v2.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.v2.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.v2.SpeechRecognitionAlternative) com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeechRecognitionAlternative.class, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v2.SpeechRecognitionAlternative.class, + com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder.class); } // Construct using com.google.cloud.speech.v2.SpeechRecognitionAlternative.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,9 +463,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; } @java.lang.Override @@ -446,14 +484,18 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative build() { @java.lang.Override public com.google.cloud.speech.v2.SpeechRecognitionAlternative buildPartial() { - com.google.cloud.speech.v2.SpeechRecognitionAlternative result = new com.google.cloud.speech.v2.SpeechRecognitionAlternative(this); + com.google.cloud.speech.v2.SpeechRecognitionAlternative result = + new com.google.cloud.speech.v2.SpeechRecognitionAlternative(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v2.SpeechRecognitionAlternative result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v2.SpeechRecognitionAlternative result) { if (wordsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -479,38 +521,39 @@ private void buildPartial0(com.google.cloud.speech.v2.SpeechRecognitionAlternati 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.v2.SpeechRecognitionAlternative) { - return mergeFrom((com.google.cloud.speech.v2.SpeechRecognitionAlternative)other); + return mergeFrom((com.google.cloud.speech.v2.SpeechRecognitionAlternative) other); } else { super.mergeFrom(other); return this; @@ -518,7 +561,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.SpeechRecognitionAlternative other) { - if (other == com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance()) + return this; if (!other.getTranscript().isEmpty()) { transcript_ = other.transcript_; bitField0_ |= 0x00000001; @@ -545,9 +589,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.SpeechRecognitionAlternative wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000004); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWordsFieldBuilder() : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWordsFieldBuilder() + : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -579,35 +624,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - transcript_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - case 26: { - com.google.cloud.speech.v2.WordInfo m = - input.readMessage( - com.google.cloud.speech.v2.WordInfo.parser(), - extensionRegistry); - if (wordsBuilder_ == null) { - ensureWordsIsMutable(); - words_.add(m); - } else { - wordsBuilder_.addMessage(m); - } - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + transcript_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 26: + { + com.google.cloud.speech.v2.WordInfo m = + input.readMessage( + com.google.cloud.speech.v2.WordInfo.parser(), extensionRegistry); + if (wordsBuilder_ == null) { + ensureWordsIsMutable(); + words_.add(m); + } else { + wordsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -617,22 +665,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object transcript_ = ""; /** + * + * *
      * Transcript text representing the words that the user spoke.
      * 
* * 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; @@ -641,20 +692,21 @@ public java.lang.String getTranscript() { } } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * 
* * 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 { @@ -662,28 +714,35 @@ public java.lang.String getTranscript() { } } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; + * * @param value The transcript to set. * @return This builder for chaining. */ - public Builder setTranscript( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranscript(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } transcript_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; + * * @return This builder for chaining. */ public Builder clearTranscript() { @@ -693,17 +752,21 @@ public Builder clearTranscript() { return this; } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * 
* * string transcript = 1; + * * @param value The bytes for transcript to set. * @return This builder for chaining. */ - public Builder setTranscriptBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); transcript_ = value; bitField0_ |= 0x00000001; @@ -711,8 +774,10 @@ public Builder setTranscriptBytes( 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
@@ -725,6 +790,7 @@ public Builder setTranscriptBytes(
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -732,6 +798,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
@@ -744,17 +812,20 @@ public float getConfidence() {
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000002; 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
@@ -767,6 +838,7 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -777,18 +849,24 @@ public Builder clearConfidence() { } private java.util.List words_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v2.WordInfo, com.google.cloud.speech.v2.WordInfo.Builder, com.google.cloud.speech.v2.WordInfoOrBuilder> wordsBuilder_; + com.google.cloud.speech.v2.WordInfo, + com.google.cloud.speech.v2.WordInfo.Builder, + com.google.cloud.speech.v2.WordInfoOrBuilder> + wordsBuilder_; /** + * + * *
      * A list of word-specific information for each recognized word.
      * When
@@ -806,6 +884,8 @@ public java.util.List getWordsList() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -823,6 +903,8 @@ public int getWordsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -840,6 +922,8 @@ public com.google.cloud.speech.v2.WordInfo getWords(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -849,8 +933,7 @@ public com.google.cloud.speech.v2.WordInfo getWords(int index) {
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public Builder setWords(
-        int index, com.google.cloud.speech.v2.WordInfo value) {
+    public Builder setWords(int index, com.google.cloud.speech.v2.WordInfo value) {
       if (wordsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -864,6 +947,8 @@ public Builder setWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -885,6 +970,8 @@ public Builder setWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -908,6 +995,8 @@ public Builder addWords(com.google.cloud.speech.v2.WordInfo value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -917,8 +1006,7 @@ public Builder addWords(com.google.cloud.speech.v2.WordInfo value) {
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public Builder addWords(
-        int index, com.google.cloud.speech.v2.WordInfo value) {
+    public Builder addWords(int index, com.google.cloud.speech.v2.WordInfo value) {
       if (wordsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -932,6 +1020,8 @@ public Builder addWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -941,8 +1031,7 @@ public Builder addWords(
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public Builder addWords(
-        com.google.cloud.speech.v2.WordInfo.Builder builderForValue) {
+    public Builder addWords(com.google.cloud.speech.v2.WordInfo.Builder builderForValue) {
       if (wordsBuilder_ == null) {
         ensureWordsIsMutable();
         words_.add(builderForValue.build());
@@ -953,6 +1042,8 @@ public Builder addWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -974,6 +1065,8 @@ public Builder addWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -987,8 +1080,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);
@@ -996,6 +1088,8 @@ public Builder addAllWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1016,6 +1110,8 @@ public Builder clearWords() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1036,6 +1132,8 @@ public Builder removeWords(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1045,11 +1143,12 @@ public Builder removeWords(int index) {
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v2.WordInfo.Builder getWordsBuilder(
-        int index) {
+    public com.google.cloud.speech.v2.WordInfo.Builder getWordsBuilder(int index) {
       return getWordsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1059,14 +1158,16 @@ public com.google.cloud.speech.v2.WordInfo.Builder getWordsBuilder(
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(
-        int index) {
+    public com.google.cloud.speech.v2.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.
      * When
@@ -1076,8 +1177,8 @@ public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public java.util.List 
-         getWordsOrBuilderList() {
+    public java.util.List
+        getWordsOrBuilderList() {
       if (wordsBuilder_ != null) {
         return wordsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1085,6 +1186,8 @@ public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1095,10 +1198,12 @@ public com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
     public com.google.cloud.speech.v2.WordInfo.Builder addWordsBuilder() {
-      return getWordsFieldBuilder().addBuilder(
-          com.google.cloud.speech.v2.WordInfo.getDefaultInstance());
+      return getWordsFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v2.WordInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1108,12 +1213,13 @@ public com.google.cloud.speech.v2.WordInfo.Builder addWordsBuilder() {
      *
      * repeated .google.cloud.speech.v2.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v2.WordInfo.Builder addWordsBuilder(
-        int index) {
-      return getWordsFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v2.WordInfo.getDefaultInstance());
+    public com.google.cloud.speech.v2.WordInfo.Builder addWordsBuilder(int index) {
+      return getWordsFieldBuilder()
+          .addBuilder(index, com.google.cloud.speech.v2.WordInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * When
@@ -1123,27 +1229,29 @@ public com.google.cloud.speech.v2.WordInfo.Builder addWordsBuilder(
      *
      * repeated .google.cloud.speech.v2.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.v2.WordInfo, com.google.cloud.speech.v2.WordInfo.Builder, com.google.cloud.speech.v2.WordInfoOrBuilder> 
+            com.google.cloud.speech.v2.WordInfo,
+            com.google.cloud.speech.v2.WordInfo.Builder,
+            com.google.cloud.speech.v2.WordInfoOrBuilder>
         getWordsFieldBuilder() {
       if (wordsBuilder_ == null) {
-        wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.WordInfo, com.google.cloud.speech.v2.WordInfo.Builder, com.google.cloud.speech.v2.WordInfoOrBuilder>(
-                words_,
-                ((bitField0_ & 0x00000004) != 0),
-                getParentForChildren(),
-                isClean());
+        wordsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v2.WordInfo,
+                com.google.cloud.speech.v2.WordInfo.Builder,
+                com.google.cloud.speech.v2.WordInfoOrBuilder>(
+                words_, ((bitField0_ & 0x00000004) != 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);
     }
 
@@ -1153,12 +1261,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.SpeechRecognitionAlternative)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.SpeechRecognitionAlternative)
   private static final com.google.cloud.speech.v2.SpeechRecognitionAlternative DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.SpeechRecognitionAlternative();
   }
@@ -1167,27 +1275,27 @@ public static com.google.cloud.speech.v2.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 {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  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 {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1202,6 +1310,4 @@ public com.google.protobuf.Parser getParserForType
   public com.google.cloud.speech.v2.SpeechRecognitionAlternative getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java
similarity index 78%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java
index e9317373e2e7..74d278312ad9 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionAlternativeOrBuilder.java
@@ -1,33 +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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
-public interface SpeechRecognitionAlternativeOrBuilder extends
+public interface SpeechRecognitionAlternativeOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.SpeechRecognitionAlternative)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Transcript text representing the words that the user spoke.
    * 
* * string transcript = 1; + * * @return The transcript. */ java.lang.String getTranscript(); /** + * + * *
    * Transcript text representing the words that the user spoke.
    * 
* * 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
@@ -40,11 +63,14 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    * 
* * float confidence = 2; + * * @return The confidence. */ float getConfidence(); /** + * + * *
    * A list of word-specific information for each recognized word.
    * When
@@ -54,9 +80,10 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    *
    * repeated .google.cloud.speech.v2.WordInfo words = 3;
    */
-  java.util.List 
-      getWordsList();
+  java.util.List getWordsList();
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -68,6 +95,8 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    */
   com.google.cloud.speech.v2.WordInfo getWords(int index);
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -79,6 +108,8 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    */
   int getWordsCount();
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -88,9 +119,10 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    *
    * repeated .google.cloud.speech.v2.WordInfo words = 3;
    */
-  java.util.List 
-      getWordsOrBuilderList();
+  java.util.List getWordsOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * When
@@ -100,6 +132,5 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    *
    * repeated .google.cloud.speech.v2.WordInfo words = 3;
    */
-  com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(
-      int index);
+  com.google.cloud.speech.v2.WordInfoOrBuilder getWordsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java
similarity index 75%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java
index 5889b6527e92..b5e0aa007fb5 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResult.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
+ *
+ *
  * 
  * A speech recognition result corresponding to a portion of the audio.
  * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.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,33 +44,37 @@ 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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeechRecognitionResult.class, com.google.cloud.speech.v2.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v2.SpeechRecognitionResult.class, + com.google.cloud.speech.v2.SpeechRecognitionResult.Builder.class); } public static final int ALTERNATIVES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List alternatives_; /** + * + * *
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -62,10 +84,13 @@ protected java.lang.Object newInstance(
    * repeated .google.cloud.speech.v2.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. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -75,11 +100,13 @@ public java.util.List g
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getAlternativesOrBuilderList() {
     return alternatives_;
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -93,6 +120,8 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -106,6 +135,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(i
     return alternatives_.get(index);
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -123,6 +154,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int CHANNEL_TAG_FIELD_NUMBER = 2;
   private int channelTag_ = 0;
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -131,6 +164,7 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -141,12 +175,15 @@ public int getChannelTag() { public static final int RESULT_END_OFFSET_FIELD_NUMBER = 4; private com.google.protobuf.Duration resultEndOffset_; /** + * + * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; + * * @return Whether the resultEndOffset field is set. */ @java.lang.Override @@ -154,19 +191,26 @@ public boolean hasResultEndOffset() { return resultEndOffset_ != null; } /** + * + * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; + * * @return The resultEndOffset. */ @java.lang.Override public com.google.protobuf.Duration getResultEndOffset() { - return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_; + return resultEndOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndOffset_; } /** + * + * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
@@ -176,13 +220,18 @@ public com.google.protobuf.Duration getResultEndOffset() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
-    return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_;
+    return resultEndOffset_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : resultEndOffset_;
   }
 
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
+
   @SuppressWarnings("serial")
   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
@@ -190,6 +239,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -198,14 +248,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
@@ -213,16 +264,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 { @@ -231,6 +281,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,8 +293,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)); } @@ -266,16 +316,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 (resultEndOffset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getResultEndOffset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResultEndOffset()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, languageCode_); @@ -288,24 +335,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.v2.SpeechRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v2.SpeechRecognitionResult other = (com.google.cloud.speech.v2.SpeechRecognitionResult) obj; + com.google.cloud.speech.v2.SpeechRecognitionResult other = + (com.google.cloud.speech.v2.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 (hasResultEndOffset() != other.hasResultEndOffset()) return false; if (hasResultEndOffset()) { - if (!getResultEndOffset() - .equals(other.getResultEndOffset())) return false; + if (!getResultEndOffset().equals(other.getResultEndOffset())) return false; } - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -335,129 +379,135 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.SpeechRecognitionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.SpeechRecognitionResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.SpeechRecognitionResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.SpeechRecognitionResult) com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.SpeechRecognitionResult.class, com.google.cloud.speech.v2.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v2.SpeechRecognitionResult.class, + com.google.cloud.speech.v2.SpeechRecognitionResult.Builder.class); } // Construct using com.google.cloud.speech.v2.SpeechRecognitionResult.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +530,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; } @java.lang.Override @@ -501,14 +551,18 @@ public com.google.cloud.speech.v2.SpeechRecognitionResult build() { @java.lang.Override public com.google.cloud.speech.v2.SpeechRecognitionResult buildPartial() { - com.google.cloud.speech.v2.SpeechRecognitionResult result = new com.google.cloud.speech.v2.SpeechRecognitionResult(this); + com.google.cloud.speech.v2.SpeechRecognitionResult result = + new com.google.cloud.speech.v2.SpeechRecognitionResult(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.speech.v2.SpeechRecognitionResult result) { + private void buildPartialRepeatedFields( + com.google.cloud.speech.v2.SpeechRecognitionResult result) { if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -526,9 +580,8 @@ private void buildPartial0(com.google.cloud.speech.v2.SpeechRecognitionResult re result.channelTag_ = channelTag_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.resultEndOffset_ = resultEndOffsetBuilder_ == null - ? resultEndOffset_ - : resultEndOffsetBuilder_.build(); + result.resultEndOffset_ = + resultEndOffsetBuilder_ == null ? resultEndOffset_ : resultEndOffsetBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.languageCode_ = languageCode_; @@ -539,38 +592,39 @@ private void buildPartial0(com.google.cloud.speech.v2.SpeechRecognitionResult re 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.v2.SpeechRecognitionResult) { - return mergeFrom((com.google.cloud.speech.v2.SpeechRecognitionResult)other); + return mergeFrom((com.google.cloud.speech.v2.SpeechRecognitionResult) other); } else { super.mergeFrom(other); return this; @@ -578,7 +632,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.SpeechRecognitionResult other) { - if (other == com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v2.SpeechRecognitionResult.getDefaultInstance()) + return this; if (alternativesBuilder_ == null) { if (!other.alternatives_.isEmpty()) { if (alternatives_.isEmpty()) { @@ -597,9 +652,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_); } @@ -642,42 +698,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v2.SpeechRecognitionAlternative m = - input.readMessage( - com.google.cloud.speech.v2.SpeechRecognitionAlternative.parser(), - extensionRegistry); - if (alternativesBuilder_ == null) { - ensureAlternativesIsMutable(); - alternatives_.add(m); - } else { - alternativesBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: { - channelTag_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 34: { - input.readMessage( - getResultEndOffsetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.speech.v2.SpeechRecognitionAlternative m = + input.readMessage( + com.google.cloud.speech.v2.SpeechRecognitionAlternative.parser(), + extensionRegistry); + if (alternativesBuilder_ == null) { + ensureAlternativesIsMutable(); + alternatives_.add(m); + } else { + alternativesBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + channelTag_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 34: + { + input.readMessage(getResultEndOffsetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -687,21 +746,30 @@ public Builder mergeFrom( } // finally 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.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_; + com.google.cloud.speech.v2.SpeechRecognitionAlternative, + com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, + com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder> + alternativesBuilder_; /** + * + * *
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -710,7 +778,8 @@ private void ensureAlternativesIsMutable() {
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List getAlternativesList() {
+    public java.util.List
+        getAlternativesList() {
       if (alternativesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(alternatives_);
       } else {
@@ -718,6 +787,8 @@ public java.util.List g
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -734,6 +805,8 @@ public int getAlternativesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -750,6 +823,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(i
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -773,6 +848,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -782,7 +859,8 @@ public Builder setAlternatives(
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder setAlternatives(
-        int index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index,
+        com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.set(index, builderForValue.build());
@@ -793,6 +871,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -815,6 +895,8 @@ public Builder addAlternatives(com.google.cloud.speech.v2.SpeechRecognitionAlter
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -838,6 +920,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -858,6 +942,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -867,7 +953,8 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder addAlternatives(
-        int index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index,
+        com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.add(index, builderForValue.build());
@@ -878,6 +965,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -887,11 +976,11 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v2.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);
@@ -899,6 +988,8 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -918,6 +1009,8 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -937,6 +1030,8 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -950,6 +1045,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
       return getAlternativesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -958,14 +1055,17 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder(
-        int index) {
+    public com.google.cloud.speech.v2.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. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -974,8 +1074,9 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List 
-         getAlternativesOrBuilderList() {
+    public java.util.List<
+            ? extends com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>
+        getAlternativesOrBuilderList() {
       if (alternativesBuilder_ != null) {
         return alternativesBuilder_.getMessageOrBuilderList();
       } else {
@@ -983,6 +1084,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -991,11 +1094,14 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAlternativesBuilder() {
-      return getAlternativesFieldBuilder().addBuilder(
-          com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
+    public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder
+        addAlternativesBuilder() {
+      return getAlternativesFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1006,10 +1112,13 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAltern
      */
     public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAlternativesBuilder(
         int index) {
-      return getAlternativesFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
+      return getAlternativesFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1018,27 +1127,32 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAltern
      *
      * repeated .google.cloud.speech.v2.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.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder> 
+            com.google.cloud.speech.v2.SpeechRecognitionAlternative,
+            com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder,
+            com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>
         getAlternativesFieldBuilder() {
       if (alternativesBuilder_ == null) {
-        alternativesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>(
-                alternatives_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        alternativesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v2.SpeechRecognitionAlternative,
+                com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder,
+                com.google.cloud.speech.v2.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.
@@ -1047,6 +1161,7 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAltern
      * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -1054,6 +1169,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.
@@ -1062,17 +1179,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1081,6 +1201,7 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; + * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1092,36 +1213,49 @@ public Builder clearChannelTag() { private com.google.protobuf.Duration resultEndOffset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndOffsetBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + resultEndOffsetBuilder_; /** + * + * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
      * 
* * .google.protobuf.Duration result_end_offset = 4; + * * @return Whether the resultEndOffset field is set. */ public boolean hasResultEndOffset() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
      * 
* * .google.protobuf.Duration result_end_offset = 4; + * * @return The resultEndOffset. */ public com.google.protobuf.Duration getResultEndOffset() { if (resultEndOffsetBuilder_ == null) { - return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_; + return resultEndOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndOffset_; } else { return resultEndOffsetBuilder_.getMessage(); } } /** + * + * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1143,6 +1277,8 @@ public Builder setResultEndOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1150,8 +1286,7 @@ public Builder setResultEndOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_offset = 4;
      */
-    public Builder setResultEndOffset(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndOffset(com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndOffsetBuilder_ == null) {
         resultEndOffset_ = builderForValue.build();
       } else {
@@ -1162,6 +1297,8 @@ public Builder setResultEndOffset(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1171,9 +1308,9 @@ public Builder setResultEndOffset(
      */
     public Builder mergeResultEndOffset(com.google.protobuf.Duration value) {
       if (resultEndOffsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          resultEndOffset_ != null &&
-          resultEndOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && resultEndOffset_ != null
+            && resultEndOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndOffsetBuilder().mergeFrom(value);
         } else {
           resultEndOffset_ = value;
@@ -1186,6 +1323,8 @@ public Builder mergeResultEndOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1204,6 +1343,8 @@ public Builder clearResultEndOffset() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1217,6 +1358,8 @@ public com.google.protobuf.Duration.Builder getResultEndOffsetBuilder() {
       return getResultEndOffsetFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1228,11 +1371,14 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
       if (resultEndOffsetBuilder_ != null) {
         return resultEndOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return resultEndOffset_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_;
+        return resultEndOffset_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : resultEndOffset_;
       }
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1241,14 +1387,17 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
      * .google.protobuf.Duration result_end_offset = 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>
         getResultEndOffsetFieldBuilder() {
       if (resultEndOffsetBuilder_ == null) {
-        resultEndOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getResultEndOffset(),
-                getParentForChildren(),
-                isClean());
+        resultEndOffsetBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getResultEndOffset(), getParentForChildren(), isClean());
         resultEndOffset_ = null;
       }
       return resultEndOffsetBuilder_;
@@ -1256,6 +1405,8 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
 
     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
@@ -1263,13 +1414,13 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
      * 
* * 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; @@ -1278,6 +1429,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
@@ -1285,15 +1438,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 { @@ -1301,6 +1453,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
@@ -1308,18 +1462,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000008; 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
@@ -1327,6 +1485,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1336,6 +1495,8 @@ public Builder clearLanguageCode() { 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
@@ -1343,21 +1504,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000008; 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); } @@ -1367,12 +1530,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.SpeechRecognitionResult) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.SpeechRecognitionResult) private static final com.google.cloud.speech.v2.SpeechRecognitionResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.SpeechRecognitionResult(); } @@ -1381,27 +1544,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1416,6 +1579,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java similarity index 82% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java index 387b637fa897..e582591940dc 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechRecognitionResultOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface SpeechRecognitionResultOrBuilder extends +public interface SpeechRecognitionResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.SpeechRecognitionResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -16,9 +34,10 @@ public interface SpeechRecognitionResultOrBuilder extends
    *
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List 
-      getAlternativesList();
+  java.util.List getAlternativesList();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -29,6 +48,8 @@ public interface SpeechRecognitionResultOrBuilder extends
    */
   com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(int index);
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -39,6 +60,8 @@ public interface SpeechRecognitionResultOrBuilder extends
    */
   int getAlternativesCount();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -47,9 +70,11 @@ public interface SpeechRecognitionResultOrBuilder extends
    *
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List 
+  java.util.List
       getAlternativesOrBuilderList();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -62,6 +87,8 @@ com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlternatives
       int index);
 
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -70,31 +97,40 @@ com.google.cloud.speech.v2.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_offset = 4; + * * @return Whether the resultEndOffset field is set. */ boolean hasResultEndOffset(); /** + * + * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; + * * @return The resultEndOffset. */ com.google.protobuf.Duration getResultEndOffset(); /** + * + * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
@@ -105,6 +141,8 @@ com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlternatives
   com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder();
 
   /**
+   *
+   *
    * 
    * 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
@@ -112,10 +150,13 @@ com.google.cloud.speech.v2.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
@@ -123,8 +164,8 @@ com.google.cloud.speech.v2.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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java similarity index 73% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java index 87e64f6a743c..d12ec537ca84 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfig.java @@ -1,55 +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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Provides configuration information for the StreamingRecognize request.
  * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionConfig.class, com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder.class); + com.google.cloud.speech.v2.StreamingRecognitionConfig.class, + com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v2.RecognitionConfig config_; /** + * + * *
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -59,7 +79,10 @@ protected java.lang.Object newInstance(
    * of the Recognizer resource.
    * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -67,6 +90,8 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -76,14 +101,21 @@ public boolean hasConfig() {
    * of the Recognizer resource.
    * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -93,16 +125,22 @@ public com.google.cloud.speech.v2.RecognitionConfig getConfig() {
    * of the Recognizer resource.
    * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder() { - return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : config_; } public static final int CONFIG_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask configMask_; /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -120,6 +158,7 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * .google.protobuf.FieldMask config_mask = 3; + * * @return Whether the configMask field is set. */ @java.lang.Override @@ -127,6 +166,8 @@ public boolean hasConfigMask() { return configMask_ != null; } /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -144,6 +185,7 @@ public boolean hasConfigMask() {
    * 
* * .google.protobuf.FieldMask config_mask = 3; + * * @return The configMask. */ @java.lang.Override @@ -151,6 +193,8 @@ public com.google.protobuf.FieldMask getConfigMask() { return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; } /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -177,12 +221,15 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
   public static final int STREAMING_FEATURES_FIELD_NUMBER = 2;
   private com.google.cloud.speech.v2.StreamingRecognitionFeatures streamingFeatures_;
   /**
+   *
+   *
    * 
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
    * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; + * * @return Whether the streamingFeatures field is set. */ @java.lang.Override @@ -190,19 +237,26 @@ public boolean hasStreamingFeatures() { return streamingFeatures_ != null; } /** + * + * *
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
    * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; + * * @return The streamingFeatures. */ @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognitionFeatures getStreamingFeatures() { - return streamingFeatures_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() : streamingFeatures_; + return streamingFeatures_ == null + ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() + : streamingFeatures_; } /** + * + * *
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
@@ -211,11 +265,15 @@ public com.google.cloud.speech.v2.StreamingRecognitionFeatures getStreamingFeatu
    * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder getStreamingFeaturesOrBuilder() {
-    return streamingFeatures_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() : streamingFeatures_;
+  public com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder
+      getStreamingFeaturesOrBuilder() {
+    return streamingFeatures_ == null
+        ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()
+        : streamingFeatures_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -227,8 +285,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());
     }
@@ -248,16 +305,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 (streamingFeatures_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getStreamingFeatures());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStreamingFeatures());
     }
     if (configMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getConfigMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConfigMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -267,27 +321,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.v2.StreamingRecognitionConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v2.StreamingRecognitionConfig other = (com.google.cloud.speech.v2.StreamingRecognitionConfig) obj;
+    com.google.cloud.speech.v2.StreamingRecognitionConfig other =
+        (com.google.cloud.speech.v2.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 (hasConfigMask() != other.hasConfigMask()) return false;
     if (hasConfigMask()) {
-      if (!getConfigMask()
-          .equals(other.getConfigMask())) return false;
+      if (!getConfigMask().equals(other.getConfigMask())) return false;
     }
     if (hasStreamingFeatures() != other.hasStreamingFeatures()) return false;
     if (hasStreamingFeatures()) {
-      if (!getStreamingFeatures()
-          .equals(other.getStreamingFeatures())) return false;
+      if (!getStreamingFeatures().equals(other.getStreamingFeatures())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -318,129 +370,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v2.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.v2.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.v2.StreamingRecognitionConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v2.StreamingRecognitionConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v2.StreamingRecognitionConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.StreamingRecognitionConfig prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.speech.v2.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 configuration information for the StreamingRecognize request.
    * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.StreamingRecognitionConfig) com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionConfig.class, com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder.class); + com.google.cloud.speech.v2.StreamingRecognitionConfig.class, + com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder.class); } // Construct using com.google.cloud.speech.v2.StreamingRecognitionConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -464,9 +523,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; } @java.lang.Override @@ -485,8 +544,11 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfig build() { @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognitionConfig buildPartial() { - com.google.cloud.speech.v2.StreamingRecognitionConfig result = new com.google.cloud.speech.v2.StreamingRecognitionConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v2.StreamingRecognitionConfig result = + new com.google.cloud.speech.v2.StreamingRecognitionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -494,19 +556,16 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfig buildPartial() { private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.config_ = configBuilder_ == null - ? config_ - : configBuilder_.build(); + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.configMask_ = configMaskBuilder_ == null - ? configMask_ - : configMaskBuilder_.build(); + result.configMask_ = configMaskBuilder_ == null ? configMask_ : configMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.streamingFeatures_ = streamingFeaturesBuilder_ == null - ? streamingFeatures_ - : streamingFeaturesBuilder_.build(); + result.streamingFeatures_ = + streamingFeaturesBuilder_ == null + ? streamingFeatures_ + : streamingFeaturesBuilder_.build(); } } @@ -514,38 +573,39 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionConfig 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.v2.StreamingRecognitionConfig) { - return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionConfig)other); + return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionConfig) other); } else { super.mergeFrom(other); return this; @@ -553,7 +613,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognitionConfig other) { - if (other == com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance()) + return this; if (other.hasConfig()) { mergeConfig(other.getConfig()); } @@ -589,33 +650,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getStreamingFeaturesFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: { - input.readMessage( - getConfigMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getStreamingFeaturesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + input.readMessage(getConfigMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -625,12 +685,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.speech.v2.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> configBuilder_; + com.google.cloud.speech.v2.RecognitionConfig, + com.google.cloud.speech.v2.RecognitionConfig.Builder, + com.google.cloud.speech.v2.RecognitionConfigOrBuilder> + configBuilder_; /** + * + * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -640,13 +706,18 @@ public Builder mergeFrom(
      * of the Recognizer resource.
      * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -656,17 +727,24 @@ public boolean hasConfig() {
      * of the Recognizer resource.
      * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v2.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -676,7 +754,9 @@ public com.google.cloud.speech.v2.RecognitionConfig getConfig() {
      * of the Recognizer resource.
      * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) { if (configBuilder_ == null) { @@ -692,6 +772,8 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -701,10 +783,11 @@ public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
      * of the Recognizer resource.
      * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setConfig( - com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) { + public Builder setConfig(com.google.cloud.speech.v2.RecognitionConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); } else { @@ -715,6 +798,8 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -724,13 +809,15 @@ public Builder setConfig(
      * of the Recognizer resource.
      * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) { if (configBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - config_ != null && - config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && config_ != null + && config_ != com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -743,6 +830,8 @@ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -752,7 +841,9 @@ public Builder mergeConfig(com.google.cloud.speech.v2.RecognitionConfig value) {
      * of the Recognizer resource.
      * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { bitField0_ = (bitField0_ & ~0x00000001); @@ -765,6 +856,8 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -774,7 +867,9 @@ public Builder clearConfig() {
      * of the Recognizer resource.
      * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() { bitField0_ |= 0x00000001; @@ -782,6 +877,8 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() { return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -791,17 +888,22 @@ public com.google.cloud.speech.v2.RecognitionConfig.Builder getConfigBuilder() {
      * of the Recognizer resource.
      * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v2.RecognitionConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Features and audio metadata to use for the Automatic Speech
      * Recognition. This field in combination with the
@@ -811,17 +913,22 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * of the Recognizer resource.
      * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder> + com.google.cloud.speech.v2.RecognitionConfig, + com.google.cloud.speech.v2.RecognitionConfig.Builder, + com.google.cloud.speech.v2.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionConfig, com.google.cloud.speech.v2.RecognitionConfig.Builder, com.google.cloud.speech.v2.RecognitionConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.RecognitionConfig, + com.google.cloud.speech.v2.RecognitionConfig.Builder, + com.google.cloud.speech.v2.RecognitionConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; @@ -829,8 +936,13 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder( private com.google.protobuf.FieldMask configMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> configMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + configMaskBuilder_; /** + * + * *
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -848,12 +960,15 @@ public com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * .google.protobuf.FieldMask config_mask = 3; + * * @return Whether the configMask field is set. */ public boolean hasConfigMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -871,16 +986,21 @@ public boolean hasConfigMask() {
      * 
* * .google.protobuf.FieldMask config_mask = 3; + * * @return The configMask. */ public com.google.protobuf.FieldMask getConfigMask() { if (configMaskBuilder_ == null) { - return configMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : configMask_; + return configMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : configMask_; } else { return configMaskBuilder_.getMessage(); } } /** + * + * *
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -913,6 +1033,8 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -931,8 +1053,7 @@ public Builder setConfigMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask config_mask = 3;
      */
-    public Builder setConfigMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setConfigMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (configMaskBuilder_ == null) {
         configMask_ = builderForValue.build();
       } else {
@@ -943,6 +1064,8 @@ public Builder setConfigMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -963,9 +1086,9 @@ public Builder setConfigMask(
      */
     public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       if (configMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          configMask_ != null &&
-          configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && configMask_ != null
+            && configMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getConfigMaskBuilder().mergeFrom(value);
         } else {
           configMask_ = value;
@@ -978,6 +1101,8 @@ public Builder mergeConfigMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1007,6 +1132,8 @@ public Builder clearConfigMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1031,6 +1158,8 @@ public com.google.protobuf.FieldMask.Builder getConfigMaskBuilder() {
       return getConfigMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1053,11 +1182,14 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
       if (configMaskBuilder_ != null) {
         return configMaskBuilder_.getMessageOrBuilder();
       } else {
-        return configMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : configMask_;
+        return configMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : configMask_;
       }
     }
     /**
+     *
+     *
      * 
      * The list of fields in
      * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -1077,14 +1209,17 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
      * .google.protobuf.FieldMask config_mask = 3;
      */
     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>
         getConfigMaskFieldBuilder() {
       if (configMaskBuilder_ == null) {
-        configMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getConfigMask(),
-                getParentForChildren(),
-                isClean());
+        configMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getConfigMask(), getParentForChildren(), isClean());
         configMask_ = null;
       }
       return configMaskBuilder_;
@@ -1092,36 +1227,49 @@ public com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder() {
 
     private com.google.cloud.speech.v2.StreamingRecognitionFeatures streamingFeatures_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.StreamingRecognitionFeatures, com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder> streamingFeaturesBuilder_;
+            com.google.cloud.speech.v2.StreamingRecognitionFeatures,
+            com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder,
+            com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder>
+        streamingFeaturesBuilder_;
     /**
+     *
+     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
      * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; + * * @return Whether the streamingFeatures field is set. */ public boolean hasStreamingFeatures() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
      * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; + * * @return The streamingFeatures. */ public com.google.cloud.speech.v2.StreamingRecognitionFeatures getStreamingFeatures() { if (streamingFeaturesBuilder_ == null) { - return streamingFeatures_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() : streamingFeatures_; + return streamingFeatures_ == null + ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() + : streamingFeatures_; } else { return streamingFeaturesBuilder_.getMessage(); } } /** + * + * *
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1129,7 +1277,8 @@ public com.google.cloud.speech.v2.StreamingRecognitionFeatures getStreamingFeatu
      *
      * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
      */
-    public Builder setStreamingFeatures(com.google.cloud.speech.v2.StreamingRecognitionFeatures value) {
+    public Builder setStreamingFeatures(
+        com.google.cloud.speech.v2.StreamingRecognitionFeatures value) {
       if (streamingFeaturesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1143,6 +1292,8 @@ public Builder setStreamingFeatures(com.google.cloud.speech.v2.StreamingRecognit
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1162,6 +1313,8 @@ public Builder setStreamingFeatures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1169,11 +1322,13 @@ public Builder setStreamingFeatures(
      *
      * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
      */
-    public Builder mergeStreamingFeatures(com.google.cloud.speech.v2.StreamingRecognitionFeatures value) {
+    public Builder mergeStreamingFeatures(
+        com.google.cloud.speech.v2.StreamingRecognitionFeatures value) {
       if (streamingFeaturesBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          streamingFeatures_ != null &&
-          streamingFeatures_ != com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && streamingFeatures_ != null
+            && streamingFeatures_
+                != com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()) {
           getStreamingFeaturesBuilder().mergeFrom(value);
         } else {
           streamingFeatures_ = value;
@@ -1186,6 +1341,8 @@ public Builder mergeStreamingFeatures(com.google.cloud.speech.v2.StreamingRecogn
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1204,6 +1361,8 @@ public Builder clearStreamingFeatures() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1211,12 +1370,15 @@ public Builder clearStreamingFeatures() {
      *
      * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
      */
-    public com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder getStreamingFeaturesBuilder() {
+    public com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder
+        getStreamingFeaturesBuilder() {
       bitField0_ |= 0x00000004;
       onChanged();
       return getStreamingFeaturesFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1224,15 +1386,19 @@ public com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder getStream
      *
      * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
      */
-    public com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder getStreamingFeaturesOrBuilder() {
+    public com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder
+        getStreamingFeaturesOrBuilder() {
       if (streamingFeaturesBuilder_ != null) {
         return streamingFeaturesBuilder_.getMessageOrBuilder();
       } else {
-        return streamingFeatures_ == null ?
-            com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance() : streamingFeatures_;
+        return streamingFeatures_ == null
+            ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()
+            : streamingFeatures_;
       }
     }
     /**
+     *
+     *
      * 
      * Speech recognition features to enable specific to streaming audio
      * recognition requests.
@@ -1241,21 +1407,24 @@ public com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder getStrea
      * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.StreamingRecognitionFeatures, com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder> 
+            com.google.cloud.speech.v2.StreamingRecognitionFeatures,
+            com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder,
+            com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder>
         getStreamingFeaturesFieldBuilder() {
       if (streamingFeaturesBuilder_ == null) {
-        streamingFeaturesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.StreamingRecognitionFeatures, com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder>(
-                getStreamingFeatures(),
-                getParentForChildren(),
-                isClean());
+        streamingFeaturesBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v2.StreamingRecognitionFeatures,
+                com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder,
+                com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder>(
+                getStreamingFeatures(), getParentForChildren(), isClean());
         streamingFeatures_ = null;
       }
       return streamingFeaturesBuilder_;
     }
+
     @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);
     }
 
@@ -1265,12 +1434,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognitionConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognitionConfig)
   private static final com.google.cloud.speech.v2.StreamingRecognitionConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognitionConfig();
   }
@@ -1279,27 +1448,27 @@ public static com.google.cloud.speech.v2.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 {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  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 {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1314,6 +1483,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.speech.v2.StreamingRecognitionConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java
similarity index 83%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java
index 0db3e5ea8b02..8bdb2d81b5fe 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionConfigOrBuilder.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/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
-public interface StreamingRecognitionConfigOrBuilder extends
+public interface StreamingRecognitionConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognitionConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -17,11 +35,16 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * of the Recognizer resource.
    * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -31,11 +54,16 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * of the Recognizer resource.
    * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ com.google.cloud.speech.v2.RecognitionConfig getConfig(); /** + * + * *
    * Required. Features and audio metadata to use for the Automatic Speech
    * Recognition. This field in combination with the
@@ -45,11 +73,15 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * of the Recognizer resource.
    * 
* - * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v2.RecognitionConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -67,10 +99,13 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * 
* * .google.protobuf.FieldMask config_mask = 3; + * * @return Whether the configMask field is set. */ boolean hasConfigMask(); /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -88,10 +123,13 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * 
* * .google.protobuf.FieldMask config_mask = 3; + * * @return The configMask. */ com.google.protobuf.FieldMask getConfigMask(); /** + * + * *
    * The list of fields in
    * [config][google.cloud.speech.v2.StreamingRecognitionConfig.config] that
@@ -113,26 +151,34 @@ public interface StreamingRecognitionConfigOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getConfigMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
    * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; + * * @return Whether the streamingFeatures field is set. */ boolean hasStreamingFeatures(); /** + * + * *
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
    * 
* * .google.cloud.speech.v2.StreamingRecognitionFeatures streaming_features = 2; + * * @return The streamingFeatures. */ com.google.cloud.speech.v2.StreamingRecognitionFeatures getStreamingFeatures(); /** + * + * *
    * Speech recognition features to enable specific to streaming audio
    * recognition requests.
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java
similarity index 66%
rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java
rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java
index 179ccc742060..dd8338d0ef11 100644
--- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java
+++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeatures.java
@@ -1,57 +1,78 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v2/cloud_speech.proto
 
 package com.google.cloud.speech.v2;
 
 /**
+ *
+ *
  * 
  * Available recognition features specific to streaming recognition requests.
  * 
* * Protobuf type {@code google.cloud.speech.v2.StreamingRecognitionFeatures} */ -public final class StreamingRecognitionFeatures extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StreamingRecognitionFeatures extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.StreamingRecognitionFeatures) StreamingRecognitionFeaturesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StreamingRecognitionFeatures.newBuilder() to construct. private StreamingRecognitionFeatures(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StreamingRecognitionFeatures() { - } + + private StreamingRecognitionFeatures() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StreamingRecognitionFeatures(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.class, com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder.class); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.class, + com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder.class); } - public interface VoiceActivityTimeoutOrBuilder extends + public interface VoiceActivityTimeoutOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -59,10 +80,13 @@ public interface VoiceActivityTimeoutOrBuilder extends
      * 
* * .google.protobuf.Duration speech_start_timeout = 1; + * * @return Whether the speechStartTimeout field is set. */ boolean hasSpeechStartTimeout(); /** + * + * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -70,10 +94,13 @@ public interface VoiceActivityTimeoutOrBuilder extends
      * 
* * .google.protobuf.Duration speech_start_timeout = 1; + * * @return The speechStartTimeout. */ com.google.protobuf.Duration getSpeechStartTimeout(); /** + * + * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -85,6 +112,8 @@ public interface VoiceActivityTimeoutOrBuilder extends
     com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder();
 
     /**
+     *
+     *
      * 
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -92,10 +121,13 @@ public interface VoiceActivityTimeoutOrBuilder extends
      * 
* * .google.protobuf.Duration speech_end_timeout = 2; + * * @return Whether the speechEndTimeout field is set. */ boolean hasSpeechEndTimeout(); /** + * + * *
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -103,10 +135,13 @@ public interface VoiceActivityTimeoutOrBuilder extends
      * 
* * .google.protobuf.Duration speech_end_timeout = 2; + * * @return The speechEndTimeout. */ com.google.protobuf.Duration getSpeechEndTimeout(); /** + * + * *
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -118,52 +153,58 @@ public interface VoiceActivityTimeoutOrBuilder extends
     com.google.protobuf.DurationOrBuilder getSpeechEndTimeoutOrBuilder();
   }
   /**
+   *
+   *
    * 
    * Events that a timeout can be set on for voice activity.
    * 
* * Protobuf type {@code google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout} */ - public static final class VoiceActivityTimeout extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class VoiceActivityTimeout extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) VoiceActivityTimeoutOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VoiceActivityTimeout.newBuilder() to construct. private VoiceActivityTimeout(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VoiceActivityTimeout() { - } + + private VoiceActivityTimeout() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VoiceActivityTimeout(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.class, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder.class); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.class, + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder + .class); } public static final int SPEECH_START_TIMEOUT_FIELD_NUMBER = 1; private com.google.protobuf.Duration speechStartTimeout_; /** + * + * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -171,6 +212,7 @@ protected java.lang.Object newInstance(
      * 
* * .google.protobuf.Duration speech_start_timeout = 1; + * * @return Whether the speechStartTimeout field is set. */ @java.lang.Override @@ -178,6 +220,8 @@ public boolean hasSpeechStartTimeout() { return speechStartTimeout_ != null; } /** + * + * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -185,13 +229,18 @@ public boolean hasSpeechStartTimeout() {
      * 
* * .google.protobuf.Duration speech_start_timeout = 1; + * * @return The speechStartTimeout. */ @java.lang.Override public com.google.protobuf.Duration getSpeechStartTimeout() { - return speechStartTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechStartTimeout_; + return speechStartTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : speechStartTimeout_; } /** + * + * *
      * Duration to timeout the stream if no speech begins. If this is set and
      * no speech is detected in this duration at the start of the stream, the
@@ -202,12 +251,16 @@ public com.google.protobuf.Duration getSpeechStartTimeout() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
-      return speechStartTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechStartTimeout_;
+      return speechStartTimeout_ == null
+          ? com.google.protobuf.Duration.getDefaultInstance()
+          : speechStartTimeout_;
     }
 
     public static final int SPEECH_END_TIMEOUT_FIELD_NUMBER = 2;
     private com.google.protobuf.Duration speechEndTimeout_;
     /**
+     *
+     *
      * 
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -215,6 +268,7 @@ public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
      * 
* * .google.protobuf.Duration speech_end_timeout = 2; + * * @return Whether the speechEndTimeout field is set. */ @java.lang.Override @@ -222,6 +276,8 @@ public boolean hasSpeechEndTimeout() { return speechEndTimeout_ != null; } /** + * + * *
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -229,13 +285,18 @@ public boolean hasSpeechEndTimeout() {
      * 
* * .google.protobuf.Duration speech_end_timeout = 2; + * * @return The speechEndTimeout. */ @java.lang.Override public com.google.protobuf.Duration getSpeechEndTimeout() { - return speechEndTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEndTimeout_; + return speechEndTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : speechEndTimeout_; } /** + * + * *
      * Duration to timeout the stream after speech ends. If this is set and no
      * speech is detected in this duration after speech was detected, the server
@@ -246,10 +307,13 @@ public com.google.protobuf.Duration getSpeechEndTimeout() {
      */
     @java.lang.Override
     public com.google.protobuf.DurationOrBuilder getSpeechEndTimeoutOrBuilder() {
-      return speechEndTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEndTimeout_;
+      return speechEndTimeout_ == null
+          ? com.google.protobuf.Duration.getDefaultInstance()
+          : speechEndTimeout_;
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -261,8 +325,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 (speechStartTimeout_ != null) {
         output.writeMessage(1, getSpeechStartTimeout());
       }
@@ -279,12 +342,11 @@ public int getSerializedSize() {
 
       size = 0;
       if (speechStartTimeout_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, getSpeechStartTimeout());
+        size +=
+            com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSpeechStartTimeout());
       }
       if (speechEndTimeout_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, getSpeechEndTimeout());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpeechEndTimeout());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -294,22 +356,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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout)) {
+      if (!(obj
+          instanceof
+          com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout)) {
         return super.equals(obj);
       }
-      com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout other = (com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) obj;
+      com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout other =
+          (com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) obj;
 
       if (hasSpeechStartTimeout() != other.hasSpeechStartTimeout()) return false;
       if (hasSpeechStartTimeout()) {
-        if (!getSpeechStartTimeout()
-            .equals(other.getSpeechStartTimeout())) return false;
+        if (!getSpeechStartTimeout().equals(other.getSpeechStartTimeout())) return false;
       }
       if (hasSpeechEndTimeout() != other.hasSpeechEndTimeout()) return false;
       if (hasSpeechEndTimeout()) {
-        if (!getSpeechEndTimeout()
-            .equals(other.getSpeechEndTimeout())) return false;
+        if (!getSpeechEndTimeout().equals(other.getSpeechEndTimeout())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -335,88 +398,101 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        parseFrom(java.nio.ByteBuffer data)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        parseFrom(
+            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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
-        com.google.protobuf.ByteString data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        parseFrom(com.google.protobuf.ByteString data)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
-        com.google.protobuf.ByteString data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        parseFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        parseFrom(
+            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout 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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout parseFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        parseFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout prototype) {
+
+    public static Builder newBuilder(
+        com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout 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
@@ -426,39 +502,44 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * Events that a timeout can be set on for voice activity.
      * 
* - * Protobuf type {@code google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout} + * Protobuf type {@code + * google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout} */ - 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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.class, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder.class); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.class, + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder + .class); } - // Construct using com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -477,19 +558,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; } @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getDefaultInstanceForType() { - return com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance(); + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + getDefaultInstanceForType() { + return com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout build() { - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result = buildPartial(); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -497,24 +581,31 @@ public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTime } @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout buildPartial() { - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result = new com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + buildPartial() { + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result = + new com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result) { + private void buildPartial0( + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.speechStartTimeout_ = speechStartTimeoutBuilder_ == null - ? speechStartTimeout_ - : speechStartTimeoutBuilder_.build(); + result.speechStartTimeout_ = + speechStartTimeoutBuilder_ == null + ? speechStartTimeout_ + : speechStartTimeoutBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.speechEndTimeout_ = speechEndTimeoutBuilder_ == null - ? speechEndTimeout_ - : speechEndTimeoutBuilder_.build(); + result.speechEndTimeout_ = + speechEndTimeoutBuilder_ == null + ? speechEndTimeout_ + : speechEndTimeoutBuilder_.build(); } } @@ -522,46 +613,55 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionFeatur 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.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) { - return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout)other); + if (other + instanceof + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) { + return mergeFrom( + (com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout other) { - if (other == com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout other) { + if (other + == com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + .getDefaultInstance()) return this; if (other.hasSpeechStartTimeout()) { mergeSpeechStartTimeout(other.getSpeechStartTimeout()); } @@ -594,26 +694,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getSpeechStartTimeoutFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getSpeechEndTimeoutFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getSpeechStartTimeoutFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getSpeechEndTimeoutFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -623,12 +724,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Duration speechStartTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> speechStartTimeoutBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + speechStartTimeoutBuilder_; /** + * + * *
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -636,12 +743,15 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Duration speech_start_timeout = 1; + * * @return Whether the speechStartTimeout field is set. */ public boolean hasSpeechStartTimeout() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -649,16 +759,21 @@ public boolean hasSpeechStartTimeout() {
        * 
* * .google.protobuf.Duration speech_start_timeout = 1; + * * @return The speechStartTimeout. */ public com.google.protobuf.Duration getSpeechStartTimeout() { if (speechStartTimeoutBuilder_ == null) { - return speechStartTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechStartTimeout_; + return speechStartTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : speechStartTimeout_; } else { return speechStartTimeoutBuilder_.getMessage(); } } /** + * + * *
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -681,6 +796,8 @@ public Builder setSpeechStartTimeout(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -689,8 +806,7 @@ public Builder setSpeechStartTimeout(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration speech_start_timeout = 1;
        */
-      public Builder setSpeechStartTimeout(
-          com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setSpeechStartTimeout(com.google.protobuf.Duration.Builder builderForValue) {
         if (speechStartTimeoutBuilder_ == null) {
           speechStartTimeout_ = builderForValue.build();
         } else {
@@ -701,6 +817,8 @@ public Builder setSpeechStartTimeout(
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -711,9 +829,9 @@ public Builder setSpeechStartTimeout(
        */
       public Builder mergeSpeechStartTimeout(com.google.protobuf.Duration value) {
         if (speechStartTimeoutBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0) &&
-            speechStartTimeout_ != null &&
-            speechStartTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0)
+              && speechStartTimeout_ != null
+              && speechStartTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getSpeechStartTimeoutBuilder().mergeFrom(value);
           } else {
             speechStartTimeout_ = value;
@@ -726,6 +844,8 @@ public Builder mergeSpeechStartTimeout(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -745,6 +865,8 @@ public Builder clearSpeechStartTimeout() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -759,6 +881,8 @@ public com.google.protobuf.Duration.Builder getSpeechStartTimeoutBuilder() {
         return getSpeechStartTimeoutFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -771,11 +895,14 @@ public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
         if (speechStartTimeoutBuilder_ != null) {
           return speechStartTimeoutBuilder_.getMessageOrBuilder();
         } else {
-          return speechStartTimeout_ == null ?
-              com.google.protobuf.Duration.getDefaultInstance() : speechStartTimeout_;
+          return speechStartTimeout_ == null
+              ? com.google.protobuf.Duration.getDefaultInstance()
+              : speechStartTimeout_;
         }
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream if no speech begins. If this is set and
        * no speech is detected in this duration at the start of the stream, the
@@ -785,14 +912,17 @@ public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
        * .google.protobuf.Duration speech_start_timeout = 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>
           getSpeechStartTimeoutFieldBuilder() {
         if (speechStartTimeoutBuilder_ == null) {
-          speechStartTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                  getSpeechStartTimeout(),
-                  getParentForChildren(),
-                  isClean());
+          speechStartTimeoutBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Duration,
+                  com.google.protobuf.Duration.Builder,
+                  com.google.protobuf.DurationOrBuilder>(
+                  getSpeechStartTimeout(), getParentForChildren(), isClean());
           speechStartTimeout_ = null;
         }
         return speechStartTimeoutBuilder_;
@@ -800,8 +930,13 @@ public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
 
       private com.google.protobuf.Duration speechEndTimeout_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> speechEndTimeoutBuilder_;
+              com.google.protobuf.Duration,
+              com.google.protobuf.Duration.Builder,
+              com.google.protobuf.DurationOrBuilder>
+          speechEndTimeoutBuilder_;
       /**
+       *
+       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -809,12 +944,15 @@ public com.google.protobuf.DurationOrBuilder getSpeechStartTimeoutOrBuilder() {
        * 
* * .google.protobuf.Duration speech_end_timeout = 2; + * * @return Whether the speechEndTimeout field is set. */ public boolean hasSpeechEndTimeout() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -822,16 +960,21 @@ public boolean hasSpeechEndTimeout() {
        * 
* * .google.protobuf.Duration speech_end_timeout = 2; + * * @return The speechEndTimeout. */ public com.google.protobuf.Duration getSpeechEndTimeout() { if (speechEndTimeoutBuilder_ == null) { - return speechEndTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEndTimeout_; + return speechEndTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : speechEndTimeout_; } else { return speechEndTimeoutBuilder_.getMessage(); } } /** + * + * *
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -854,6 +997,8 @@ public Builder setSpeechEndTimeout(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -862,8 +1007,7 @@ public Builder setSpeechEndTimeout(com.google.protobuf.Duration value) {
        *
        * .google.protobuf.Duration speech_end_timeout = 2;
        */
-      public Builder setSpeechEndTimeout(
-          com.google.protobuf.Duration.Builder builderForValue) {
+      public Builder setSpeechEndTimeout(com.google.protobuf.Duration.Builder builderForValue) {
         if (speechEndTimeoutBuilder_ == null) {
           speechEndTimeout_ = builderForValue.build();
         } else {
@@ -874,6 +1018,8 @@ public Builder setSpeechEndTimeout(
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -884,9 +1030,9 @@ public Builder setSpeechEndTimeout(
        */
       public Builder mergeSpeechEndTimeout(com.google.protobuf.Duration value) {
         if (speechEndTimeoutBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0) &&
-            speechEndTimeout_ != null &&
-            speechEndTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0)
+              && speechEndTimeout_ != null
+              && speechEndTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
             getSpeechEndTimeoutBuilder().mergeFrom(value);
           } else {
             speechEndTimeout_ = value;
@@ -899,6 +1045,8 @@ public Builder mergeSpeechEndTimeout(com.google.protobuf.Duration value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -918,6 +1066,8 @@ public Builder clearSpeechEndTimeout() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -932,6 +1082,8 @@ public com.google.protobuf.Duration.Builder getSpeechEndTimeoutBuilder() {
         return getSpeechEndTimeoutFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -944,11 +1096,14 @@ public com.google.protobuf.DurationOrBuilder getSpeechEndTimeoutOrBuilder() {
         if (speechEndTimeoutBuilder_ != null) {
           return speechEndTimeoutBuilder_.getMessageOrBuilder();
         } else {
-          return speechEndTimeout_ == null ?
-              com.google.protobuf.Duration.getDefaultInstance() : speechEndTimeout_;
+          return speechEndTimeout_ == null
+              ? com.google.protobuf.Duration.getDefaultInstance()
+              : speechEndTimeout_;
         }
       }
       /**
+       *
+       *
        * 
        * Duration to timeout the stream after speech ends. If this is set and no
        * speech is detected in this duration after speech was detected, the server
@@ -958,18 +1113,22 @@ public com.google.protobuf.DurationOrBuilder getSpeechEndTimeoutOrBuilder() {
        * .google.protobuf.Duration speech_end_timeout = 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>
           getSpeechEndTimeoutFieldBuilder() {
         if (speechEndTimeoutBuilder_ == null) {
-          speechEndTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                  getSpeechEndTimeout(),
-                  getParentForChildren(),
-                  isClean());
+          speechEndTimeoutBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Duration,
+                  com.google.protobuf.Duration.Builder,
+                  com.google.protobuf.DurationOrBuilder>(
+                  getSpeechEndTimeout(), getParentForChildren(), isClean());
           speechEndTimeout_ = null;
         }
         return speechEndTimeoutBuilder_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -982,41 +1141,46 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout)
-    private static final com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout DEFAULT_INSTANCE;
+    private static final com.google.cloud.speech.v2.StreamingRecognitionFeatures
+            .VoiceActivityTimeout
+        DEFAULT_INSTANCE;
+
     static {
-      DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout();
+      DEFAULT_INSTANCE =
+          new com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout();
     }
 
-    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getDefaultInstance() {
+    public static com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public VoiceActivityTimeout parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        Builder builder = newBuilder();
-        try {
-          builder.mergeFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          throw e.setUnfinishedMessage(builder.buildPartial());
-        } catch (com.google.protobuf.UninitializedMessageException e) {
-          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-        } catch (java.io.IOException e) {
-          throw new com.google.protobuf.InvalidProtocolBufferException(e)
-              .setUnfinishedMessage(builder.buildPartial());
-        }
-        return builder.buildPartial();
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public VoiceActivityTimeout parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            Builder builder = newBuilder();
+            try {
+              builder.mergeFrom(input, extensionRegistry);
+            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+              throw e.setUnfinishedMessage(builder.buildPartial());
+            } catch (com.google.protobuf.UninitializedMessageException e) {
+              throw e.asInvalidProtocolBufferException()
+                  .setUnfinishedMessage(builder.buildPartial());
+            } catch (java.io.IOException e) {
+              throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                  .setUnfinishedMessage(builder.buildPartial());
+            }
+            return builder.buildPartial();
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -1028,21 +1192,24 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getDefaultInstanceForType() {
+    public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout
+        getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
   public static final int ENABLE_VOICE_ACTIVITY_EVENTS_FIELD_NUMBER = 1;
   private boolean enableVoiceActivityEvents_ = false;
   /**
+   *
+   *
    * 
    * If `true`, responses with voice activity speech events will be returned as
    * they are detected.
    * 
* * bool enable_voice_activity_events = 1; + * * @return The enableVoiceActivityEvents. */ @java.lang.Override @@ -1053,6 +1220,8 @@ public boolean getEnableVoiceActivityEvents() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 2; private boolean interimResults_ = false; /** + * + * *
    * Whether or not to stream interim results to the client. If set to true,
    * interim results will be streamed to the client. Otherwise, only the final
@@ -1060,6 +1229,7 @@ public boolean getEnableVoiceActivityEvents() {
    * 
* * bool interim_results = 2; + * * @return The interimResults. */ @java.lang.Override @@ -1068,15 +1238,21 @@ public boolean getInterimResults() { } public static final int VOICE_ACTIVITY_TIMEOUT_FIELD_NUMBER = 3; - private com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voiceActivityTimeout_; + private com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + voiceActivityTimeout_; /** + * + * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * * @return Whether the voiceActivityTimeout field is set. */ @java.lang.Override @@ -1084,34 +1260,52 @@ public boolean hasVoiceActivityTimeout() { return voiceActivityTimeout_ != null; } /** + * + * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * * @return The voiceActivityTimeout. */ @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getVoiceActivityTimeout() { - return voiceActivityTimeout_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance() : voiceActivityTimeout_; + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + getVoiceActivityTimeout() { + return voiceActivityTimeout_ == null + ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + .getDefaultInstance() + : voiceActivityTimeout_; } /** + * + * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * */ @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder getVoiceActivityTimeoutOrBuilder() { - return voiceActivityTimeout_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance() : voiceActivityTimeout_; + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder + getVoiceActivityTimeoutOrBuilder() { + return voiceActivityTimeout_ == null + ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + .getDefaultInstance() + : voiceActivityTimeout_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1123,8 +1317,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 (enableVoiceActivityEvents_ != false) { output.writeBool(1, enableVoiceActivityEvents_); } @@ -1144,16 +1337,14 @@ public int getSerializedSize() { size = 0; if (enableVoiceActivityEvents_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableVoiceActivityEvents_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableVoiceActivityEvents_); } if (interimResults_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, interimResults_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, interimResults_); } if (voiceActivityTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getVoiceActivityTimeout()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getVoiceActivityTimeout()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1163,21 +1354,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.v2.StreamingRecognitionFeatures)) { return super.equals(obj); } - com.google.cloud.speech.v2.StreamingRecognitionFeatures other = (com.google.cloud.speech.v2.StreamingRecognitionFeatures) obj; + com.google.cloud.speech.v2.StreamingRecognitionFeatures other = + (com.google.cloud.speech.v2.StreamingRecognitionFeatures) obj; - if (getEnableVoiceActivityEvents() - != other.getEnableVoiceActivityEvents()) return false; - if (getInterimResults() - != other.getInterimResults()) return false; + if (getEnableVoiceActivityEvents() != other.getEnableVoiceActivityEvents()) return false; + if (getInterimResults() != other.getInterimResults()) return false; if (hasVoiceActivityTimeout() != other.hasVoiceActivityTimeout()) return false; if (hasVoiceActivityTimeout()) { - if (!getVoiceActivityTimeout() - .equals(other.getVoiceActivityTimeout())) return false; + if (!getVoiceActivityTimeout().equals(other.getVoiceActivityTimeout())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1191,11 +1380,9 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_VOICE_ACTIVITY_EVENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableVoiceActivityEvents()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVoiceActivityEvents()); 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()); if (hasVoiceActivityTimeout()) { hash = (37 * hash) + VOICE_ACTIVITY_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getVoiceActivityTimeout().hashCode(); @@ -1206,129 +1393,136 @@ public int hashCode() { } public static com.google.cloud.speech.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.StreamingRecognitionFeatures parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.StreamingRecognitionFeatures parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures 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.v2.StreamingRecognitionFeatures prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v2.StreamingRecognitionFeatures 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; } /** + * + * *
    * Available recognition features specific to streaming recognition requests.
    * 
* * Protobuf type {@code google.cloud.speech.v2.StreamingRecognitionFeatures} */ - 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.v2.StreamingRecognitionFeatures) com.google.cloud.speech.v2.StreamingRecognitionFeaturesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.class, com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder.class); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.class, + com.google.cloud.speech.v2.StreamingRecognitionFeatures.Builder.class); } // Construct using com.google.cloud.speech.v2.StreamingRecognitionFeatures.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1344,9 +1538,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; } @java.lang.Override @@ -1365,8 +1559,11 @@ public com.google.cloud.speech.v2.StreamingRecognitionFeatures build() { @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognitionFeatures buildPartial() { - com.google.cloud.speech.v2.StreamingRecognitionFeatures result = new com.google.cloud.speech.v2.StreamingRecognitionFeatures(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.speech.v2.StreamingRecognitionFeatures result = + new com.google.cloud.speech.v2.StreamingRecognitionFeatures(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1380,9 +1577,10 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionFeatur result.interimResults_ = interimResults_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.voiceActivityTimeout_ = voiceActivityTimeoutBuilder_ == null - ? voiceActivityTimeout_ - : voiceActivityTimeoutBuilder_.build(); + result.voiceActivityTimeout_ = + voiceActivityTimeoutBuilder_ == null + ? voiceActivityTimeout_ + : voiceActivityTimeoutBuilder_.build(); } } @@ -1390,38 +1588,39 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionFeatur 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.v2.StreamingRecognitionFeatures) { - return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionFeatures)other); + return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionFeatures) other); } else { super.mergeFrom(other); return this; @@ -1429,7 +1628,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognitionFeatures other) { - if (other == com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v2.StreamingRecognitionFeatures.getDefaultInstance()) + return this; if (other.getEnableVoiceActivityEvents() != false) { setEnableVoiceActivityEvents(other.getEnableVoiceActivityEvents()); } @@ -1465,29 +1665,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableVoiceActivityEvents_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - interimResults_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getVoiceActivityTimeoutFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableVoiceActivityEvents_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + interimResults_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + getVoiceActivityTimeoutFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1497,16 +1700,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean enableVoiceActivityEvents_ ; + private boolean enableVoiceActivityEvents_; /** + * + * *
      * If `true`, responses with voice activity speech events will be returned as
      * they are detected.
      * 
* * bool enable_voice_activity_events = 1; + * * @return The enableVoiceActivityEvents. */ @java.lang.Override @@ -1514,29 +1721,35 @@ public boolean getEnableVoiceActivityEvents() { return enableVoiceActivityEvents_; } /** + * + * *
      * If `true`, responses with voice activity speech events will be returned as
      * they are detected.
      * 
* * bool enable_voice_activity_events = 1; + * * @param value The enableVoiceActivityEvents to set. * @return This builder for chaining. */ public Builder setEnableVoiceActivityEvents(boolean value) { - + enableVoiceActivityEvents_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * If `true`, responses with voice activity speech events will be returned as
      * they are detected.
      * 
* * bool enable_voice_activity_events = 1; + * * @return This builder for chaining. */ public Builder clearEnableVoiceActivityEvents() { @@ -1546,8 +1759,10 @@ public Builder clearEnableVoiceActivityEvents() { return this; } - private boolean interimResults_ ; + private boolean interimResults_; /** + * + * *
      * Whether or not to stream interim results to the client. If set to true,
      * interim results will be streamed to the client. Otherwise, only the final
@@ -1555,6 +1770,7 @@ public Builder clearEnableVoiceActivityEvents() {
      * 
* * bool interim_results = 2; + * * @return The interimResults. */ @java.lang.Override @@ -1562,6 +1778,8 @@ public boolean getInterimResults() { return interimResults_; } /** + * + * *
      * Whether or not to stream interim results to the client. If set to true,
      * interim results will be streamed to the client. Otherwise, only the final
@@ -1569,17 +1787,20 @@ public boolean getInterimResults() {
      * 
* * bool interim_results = 2; + * * @param value The interimResults to set. * @return This builder for chaining. */ public Builder setInterimResults(boolean value) { - + interimResults_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Whether or not to stream interim results to the client. If set to true,
      * interim results will be streamed to the client. Otherwise, only the final
@@ -1587,6 +1808,7 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 2; + * * @return This builder for chaining. */ public Builder clearInterimResults() { @@ -1596,49 +1818,72 @@ public Builder clearInterimResults() { return this; } - private com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voiceActivityTimeout_; + private com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + voiceActivityTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder> voiceActivityTimeoutBuilder_; + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder, + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder> + voiceActivityTimeoutBuilder_; /** + * + * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * * @return Whether the voiceActivityTimeout field is set. */ public boolean hasVoiceActivityTimeout() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * * @return The voiceActivityTimeout. */ - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getVoiceActivityTimeout() { + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + getVoiceActivityTimeout() { if (voiceActivityTimeoutBuilder_ == null) { - return voiceActivityTimeout_ == null ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance() : voiceActivityTimeout_; + return voiceActivityTimeout_ == null + ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + .getDefaultInstance() + : voiceActivityTimeout_; } else { return voiceActivityTimeoutBuilder_.getMessage(); } } /** + * + * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * */ - public Builder setVoiceActivityTimeout(com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout value) { + public Builder setVoiceActivityTimeout( + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout value) { if (voiceActivityTimeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1652,16 +1897,21 @@ public Builder setVoiceActivityTimeout(com.google.cloud.speech.v2.StreamingRecog return this; } /** + * + * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * */ public Builder setVoiceActivityTimeout( - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder builderForValue) { + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder + builderForValue) { if (voiceActivityTimeoutBuilder_ == null) { voiceActivityTimeout_ = builderForValue.build(); } else { @@ -1672,19 +1922,26 @@ public Builder setVoiceActivityTimeout( return this; } /** + * + * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * */ - public Builder mergeVoiceActivityTimeout(com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout value) { + public Builder mergeVoiceActivityTimeout( + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout value) { if (voiceActivityTimeoutBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - voiceActivityTimeout_ != null && - voiceActivityTimeout_ != com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && voiceActivityTimeout_ != null + && voiceActivityTimeout_ + != com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + .getDefaultInstance()) { getVoiceActivityTimeoutBuilder().mergeFrom(value); } else { voiceActivityTimeout_ = value; @@ -1697,13 +1954,17 @@ public Builder mergeVoiceActivityTimeout(com.google.cloud.speech.v2.StreamingRec return this; } /** + * + * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * */ public Builder clearVoiceActivityTimeout() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1716,61 +1977,82 @@ public Builder clearVoiceActivityTimeout() { return this; } /** + * + * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * */ - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder getVoiceActivityTimeoutBuilder() { + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder + getVoiceActivityTimeoutBuilder() { bitField0_ |= 0x00000004; onChanged(); return getVoiceActivityTimeoutFieldBuilder().getBuilder(); } /** + * + * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * */ - public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder getVoiceActivityTimeoutOrBuilder() { + public com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder + getVoiceActivityTimeoutOrBuilder() { if (voiceActivityTimeoutBuilder_ != null) { return voiceActivityTimeoutBuilder_.getMessageOrBuilder(); } else { - return voiceActivityTimeout_ == null ? - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.getDefaultInstance() : voiceActivityTimeout_; + return voiceActivityTimeout_ == null + ? com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + .getDefaultInstance() + : voiceActivityTimeout_; } } /** + * + * *
      * If set, the server will automatically close the stream after the specified
      * duration has elapsed after the last VOICE_ACTIVITY speech event has been
      * sent. The field `voice_activity_events` must also be set to true.
      * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder> + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder, + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder> getVoiceActivityTimeoutFieldBuilder() { if (voiceActivityTimeoutBuilder_ == null) { - voiceActivityTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout.Builder, com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder>( - getVoiceActivityTimeout(), - getParentForChildren(), - isClean()); + voiceActivityTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout, + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + .Builder, + com.google.cloud.speech.v2.StreamingRecognitionFeatures + .VoiceActivityTimeoutOrBuilder>( + getVoiceActivityTimeout(), getParentForChildren(), isClean()); voiceActivityTimeout_ = null; } return voiceActivityTimeoutBuilder_; } + @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); } @@ -1780,12 +2062,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognitionFeatures) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognitionFeatures) private static final com.google.cloud.speech.v2.StreamingRecognitionFeatures DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognitionFeatures(); } @@ -1794,27 +2076,27 @@ public static com.google.cloud.speech.v2.StreamingRecognitionFeatures getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionFeatures parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionFeatures parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1829,6 +2111,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.speech.v2.StreamingRecognitionFeatures getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java similarity index 61% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java index 661cdb647156..9774eb7bf4b7 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionFeaturesOrBuilder.java @@ -1,24 +1,45 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface StreamingRecognitionFeaturesOrBuilder extends +public interface StreamingRecognitionFeaturesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognitionFeatures) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If `true`, responses with voice activity speech events will be returned as
    * they are detected.
    * 
* * bool enable_voice_activity_events = 1; + * * @return The enableVoiceActivityEvents. */ boolean getEnableVoiceActivityEvents(); /** + * + * *
    * Whether or not to stream interim results to the client. If set to true,
    * interim results will be streamed to the client. Otherwise, only the final
@@ -26,40 +47,57 @@ public interface StreamingRecognitionFeaturesOrBuilder extends
    * 
* * bool interim_results = 2; + * * @return The interimResults. */ boolean getInterimResults(); /** + * + * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * * @return Whether the voiceActivityTimeout field is set. */ boolean hasVoiceActivityTimeout(); /** + * + * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * * @return The voiceActivityTimeout. */ - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout getVoiceActivityTimeout(); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout + getVoiceActivityTimeout(); /** + * + * *
    * If set, the server will automatically close the stream after the specified
    * duration has elapsed after the last VOICE_ACTIVITY speech event has been
    * sent. The field `voice_activity_events` must also be set to true.
    * 
* - * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * + * .google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout voice_activity_timeout = 3; + * */ - com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder getVoiceActivityTimeoutOrBuilder(); + com.google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeoutOrBuilder + getVoiceActivityTimeoutOrBuilder(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java similarity index 76% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java index 6c95858ea1e5..16ff53852eb0 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResult.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * 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.v2.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.v2.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,33 +45,37 @@ 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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.StreamingRecognitionResult.class, com.google.cloud.speech.v2.StreamingRecognitionResult.Builder.class);
+            com.google.cloud.speech.v2.StreamingRecognitionResult.class,
+            com.google.cloud.speech.v2.StreamingRecognitionResult.Builder.class);
   }
 
   public static final int ALTERNATIVES_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List alternatives_;
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -63,10 +85,13 @@ protected java.lang.Object newInstance(
    * repeated .google.cloud.speech.v2.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. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -76,11 +101,13 @@ public java.util.List g
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getAlternativesOrBuilderList() {
     return alternatives_;
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -94,6 +121,8 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -107,6 +136,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(i
     return alternatives_.get(index);
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -124,6 +155,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int IS_FINAL_FIELD_NUMBER = 2;
   private boolean isFinal_ = false;
   /**
+   *
+   *
    * 
    * If `false`, this
    * [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
@@ -135,6 +168,7 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -145,6 +179,8 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_ = 0F; /** + * + * *
    * An estimate of the likelihood that the recognizer will not change its guess
    * about this interim result. Values range from 0.0 (completely unstable)
@@ -154,6 +190,7 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -164,12 +201,15 @@ public float getStability() { public static final int RESULT_END_OFFSET_FIELD_NUMBER = 4; private com.google.protobuf.Duration resultEndOffset_; /** + * + * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; + * * @return Whether the resultEndOffset field is set. */ @java.lang.Override @@ -177,19 +217,26 @@ public boolean hasResultEndOffset() { return resultEndOffset_ != null; } /** + * + * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; + * * @return The resultEndOffset. */ @java.lang.Override public com.google.protobuf.Duration getResultEndOffset() { - return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_; + return resultEndOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndOffset_; } /** + * + * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
@@ -199,12 +246,16 @@ public com.google.protobuf.Duration getResultEndOffset() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
-    return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_;
+    return resultEndOffset_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : resultEndOffset_;
   }
 
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_ = 0;
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -213,6 +264,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
    * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -221,9 +273,12 @@ public int getChannelTag() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") 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
@@ -231,6 +286,7 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -239,14 +295,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
@@ -254,16 +311,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 { @@ -272,6 +328,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -283,8 +340,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)); } @@ -313,24 +369,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 (resultEndOffset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getResultEndOffset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResultEndOffset()); } 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_); @@ -343,29 +394,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.v2.StreamingRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v2.StreamingRecognitionResult other = (com.google.cloud.speech.v2.StreamingRecognitionResult) obj; + com.google.cloud.speech.v2.StreamingRecognitionResult other = + (com.google.cloud.speech.v2.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 (hasResultEndOffset() != other.hasResultEndOffset()) return false; if (hasResultEndOffset()) { - if (!getResultEndOffset() - .equals(other.getResultEndOffset())) return false; + if (!getResultEndOffset().equals(other.getResultEndOffset())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -382,11 +428,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 (hasResultEndOffset()) { hash = (37 * hash) + RESULT_END_OFFSET_FIELD_NUMBER; hash = (53 * hash) + getResultEndOffset().hashCode(); @@ -401,96 +445,104 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.StreamingRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.StreamingRecognitionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.StreamingRecognitionResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.StreamingRecognitionResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.StreamingRecognitionResult prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v2.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.
@@ -498,33 +550,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.StreamingRecognitionResult)
       com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.StreamingRecognitionResult.class, com.google.cloud.speech.v2.StreamingRecognitionResult.Builder.class);
+              com.google.cloud.speech.v2.StreamingRecognitionResult.class,
+              com.google.cloud.speech.v2.StreamingRecognitionResult.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.StreamingRecognitionResult.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -549,9 +600,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
@@ -570,14 +621,18 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.StreamingRecognitionResult buildPartial() {
-      com.google.cloud.speech.v2.StreamingRecognitionResult result = new com.google.cloud.speech.v2.StreamingRecognitionResult(this);
+      com.google.cloud.speech.v2.StreamingRecognitionResult result =
+          new com.google.cloud.speech.v2.StreamingRecognitionResult(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.StreamingRecognitionResult result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v2.StreamingRecognitionResult result) {
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -598,9 +653,8 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionResult
         result.stability_ = stability_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.resultEndOffset_ = resultEndOffsetBuilder_ == null
-            ? resultEndOffset_
-            : resultEndOffsetBuilder_.build();
+        result.resultEndOffset_ =
+            resultEndOffsetBuilder_ == null ? resultEndOffset_ : resultEndOffsetBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.channelTag_ = channelTag_;
@@ -614,38 +668,39 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognitionResult
     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.v2.StreamingRecognitionResult) {
-        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionResult)other);
+        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognitionResult) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -653,7 +708,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognitionResult other) {
-      if (other == com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance())
+        return this;
       if (alternativesBuilder_ == null) {
         if (!other.alternatives_.isEmpty()) {
           if (alternatives_.isEmpty()) {
@@ -672,9 +728,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_);
           }
@@ -723,52 +780,57 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.speech.v2.SpeechRecognitionAlternative m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.SpeechRecognitionAlternative.parser(),
-                      extensionRegistry);
-              if (alternativesBuilder_ == null) {
-                ensureAlternativesIsMutable();
-                alternatives_.add(m);
-              } else {
-                alternativesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 16: {
-              isFinal_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 29: {
-              stability_ = input.readFloat();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 29
-            case 34: {
-              input.readMessage(
-                  getResultEndOffsetFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 40: {
-              channelTag_ = input.readInt32();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 40
-            case 50: {
-              languageCode_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.speech.v2.SpeechRecognitionAlternative m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.SpeechRecognitionAlternative.parser(),
+                        extensionRegistry);
+                if (alternativesBuilder_ == null) {
+                  ensureAlternativesIsMutable();
+                  alternatives_.add(m);
+                } else {
+                  alternativesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 16:
+              {
+                isFinal_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 29:
+              {
+                stability_ = input.readFloat();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 29
+            case 34:
+              {
+                input.readMessage(getResultEndOffsetFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 40:
+              {
+                channelTag_ = input.readInt32();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+            case 50:
+              {
+                languageCode_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -778,21 +840,30 @@ public Builder mergeFrom(
       } // finally
       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.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_;
+            com.google.cloud.speech.v2.SpeechRecognitionAlternative,
+            com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder,
+            com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>
+        alternativesBuilder_;
 
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -801,7 +872,8 @@ private void ensureAlternativesIsMutable() {
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List getAlternativesList() {
+    public java.util.List
+        getAlternativesList() {
       if (alternativesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(alternatives_);
       } else {
@@ -809,6 +881,8 @@ public java.util.List g
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -825,6 +899,8 @@ public int getAlternativesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -841,6 +917,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(i
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -864,6 +942,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -873,7 +953,8 @@ public Builder setAlternatives(
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder setAlternatives(
-        int index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index,
+        com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.set(index, builderForValue.build());
@@ -884,6 +965,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -906,6 +989,8 @@ public Builder addAlternatives(com.google.cloud.speech.v2.SpeechRecognitionAlter
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -929,6 +1014,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -949,6 +1036,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -958,7 +1047,8 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder addAlternatives(
-        int index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index,
+        com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.add(index, builderForValue.build());
@@ -969,6 +1059,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -978,11 +1070,11 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v2.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);
@@ -990,6 +1082,8 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1009,6 +1103,8 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1028,6 +1124,8 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1041,6 +1139,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
       return getAlternativesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1049,14 +1149,17 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder(
-        int index) {
+    public com.google.cloud.speech.v2.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. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1065,8 +1168,9 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List 
-         getAlternativesOrBuilderList() {
+    public java.util.List<
+            ? extends com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>
+        getAlternativesOrBuilderList() {
       if (alternativesBuilder_ != null) {
         return alternativesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1074,6 +1178,8 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1082,11 +1188,14 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlter
      *
      * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAlternativesBuilder() {
-      return getAlternativesFieldBuilder().addBuilder(
-          com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
+    public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder
+        addAlternativesBuilder() {
+      return getAlternativesFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1097,10 +1206,13 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAltern
      */
     public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAlternativesBuilder(
         int index) {
-      return getAlternativesFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
+      return getAlternativesFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.speech.v2.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses. These alternatives are
      * ordered in terms of accuracy, with the top (first) alternative being the
@@ -1109,27 +1221,32 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAltern
      *
      * repeated .google.cloud.speech.v2.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.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder> 
+            com.google.cloud.speech.v2.SpeechRecognitionAlternative,
+            com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder,
+            com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>
         getAlternativesFieldBuilder() {
       if (alternativesBuilder_ == null) {
-        alternativesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.SpeechRecognitionAlternative, com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>(
-                alternatives_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        alternativesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v2.SpeechRecognitionAlternative,
+                com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder,
+                com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder>(
+                alternatives_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         alternatives_ = null;
       }
       return alternativesBuilder_;
     }
 
-    private boolean isFinal_ ;
+    private boolean isFinal_;
     /**
+     *
+     *
      * 
      * If `false`, this
      * [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
@@ -1141,6 +1258,7 @@ public com.google.cloud.speech.v2.SpeechRecognitionAlternative.Builder addAltern
      * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -1148,6 +1266,8 @@ public boolean getIsFinal() { return isFinal_; } /** + * + * *
      * If `false`, this
      * [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
@@ -1159,17 +1279,20 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If `false`, this
      * [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
@@ -1181,6 +1304,7 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; + * * @return This builder for chaining. */ public Builder clearIsFinal() { @@ -1190,8 +1314,10 @@ public Builder clearIsFinal() { 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 (completely unstable)
@@ -1201,6 +1327,7 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -1208,6 +1335,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 (completely unstable)
@@ -1217,17 +1346,20 @@ public float getStability() {
      * 
* * float stability = 3; + * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; bitField0_ |= 0x00000004; 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 (completely unstable)
@@ -1237,6 +1369,7 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; + * * @return This builder for chaining. */ public Builder clearStability() { @@ -1248,36 +1381,49 @@ public Builder clearStability() { private com.google.protobuf.Duration resultEndOffset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndOffsetBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + resultEndOffsetBuilder_; /** + * + * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
      * 
* * .google.protobuf.Duration result_end_offset = 4; + * * @return Whether the resultEndOffset field is set. */ public boolean hasResultEndOffset() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
      * 
* * .google.protobuf.Duration result_end_offset = 4; + * * @return The resultEndOffset. */ public com.google.protobuf.Duration getResultEndOffset() { if (resultEndOffsetBuilder_ == null) { - return resultEndOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_; + return resultEndOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndOffset_; } else { return resultEndOffsetBuilder_.getMessage(); } } /** + * + * *
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1299,6 +1445,8 @@ public Builder setResultEndOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1306,8 +1454,7 @@ public Builder setResultEndOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_offset = 4;
      */
-    public Builder setResultEndOffset(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndOffset(com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndOffsetBuilder_ == null) {
         resultEndOffset_ = builderForValue.build();
       } else {
@@ -1318,6 +1465,8 @@ public Builder setResultEndOffset(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1327,9 +1476,9 @@ public Builder setResultEndOffset(
      */
     public Builder mergeResultEndOffset(com.google.protobuf.Duration value) {
       if (resultEndOffsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          resultEndOffset_ != null &&
-          resultEndOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && resultEndOffset_ != null
+            && resultEndOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getResultEndOffsetBuilder().mergeFrom(value);
         } else {
           resultEndOffset_ = value;
@@ -1342,6 +1491,8 @@ public Builder mergeResultEndOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1360,6 +1511,8 @@ public Builder clearResultEndOffset() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1373,6 +1526,8 @@ public com.google.protobuf.Duration.Builder getResultEndOffsetBuilder() {
       return getResultEndOffsetFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1384,11 +1539,14 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
       if (resultEndOffsetBuilder_ != null) {
         return resultEndOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return resultEndOffset_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : resultEndOffset_;
+        return resultEndOffset_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : resultEndOffset_;
       }
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the beginning of the
      * audio.
@@ -1397,21 +1555,26 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
      * .google.protobuf.Duration result_end_offset = 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>
         getResultEndOffsetFieldBuilder() {
       if (resultEndOffsetBuilder_ == null) {
-        resultEndOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getResultEndOffset(),
-                getParentForChildren(),
-                isClean());
+        resultEndOffsetBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getResultEndOffset(), getParentForChildren(), isClean());
         resultEndOffset_ = null;
       }
       return resultEndOffsetBuilder_;
     }
 
-    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.
@@ -1420,6 +1583,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder() {
      * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -1427,6 +1591,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.
@@ -1435,17 +1601,20 @@ 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; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1454,6 +1623,7 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; + * * @return This builder for chaining. */ public Builder clearChannelTag() { @@ -1465,6 +1635,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
@@ -1472,13 +1644,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; @@ -1487,6 +1659,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
@@ -1494,15 +1668,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 { @@ -1510,6 +1683,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
@@ -1517,18 +1692,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000020; 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
@@ -1536,6 +1715,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1545,6 +1725,8 @@ public Builder clearLanguageCode() { 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
@@ -1552,21 +1734,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000020; 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); } @@ -1576,12 +1760,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognitionResult) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognitionResult) private static final com.google.cloud.speech.v2.StreamingRecognitionResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognitionResult(); } @@ -1590,27 +1774,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1625,6 +1809,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java similarity index 85% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java index f50e53c3c1bf..35f98cc5a427 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognitionResultOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface StreamingRecognitionResultOrBuilder extends +public interface StreamingRecognitionResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognitionResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -16,9 +34,10 @@ public interface StreamingRecognitionResultOrBuilder extends
    *
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List 
-      getAlternativesList();
+  java.util.List getAlternativesList();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -29,6 +48,8 @@ public interface StreamingRecognitionResultOrBuilder extends
    */
   com.google.cloud.speech.v2.SpeechRecognitionAlternative getAlternatives(int index);
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -39,6 +60,8 @@ public interface StreamingRecognitionResultOrBuilder extends
    */
   int getAlternativesCount();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -47,9 +70,11 @@ public interface StreamingRecognitionResultOrBuilder extends
    *
    * repeated .google.cloud.speech.v2.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List 
+  java.util.List
       getAlternativesOrBuilderList();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses. These alternatives are
    * ordered in terms of accuracy, with the top (first) alternative being the
@@ -62,6 +87,8 @@ com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlternatives
       int index);
 
   /**
+   *
+   *
    * 
    * If `false`, this
    * [StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
@@ -73,11 +100,14 @@ com.google.cloud.speech.v2.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 (completely unstable)
@@ -87,31 +117,40 @@ com.google.cloud.speech.v2.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_offset = 4; + * * @return Whether the resultEndOffset field is set. */ boolean hasResultEndOffset(); /** + * + * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
    * 
* * .google.protobuf.Duration result_end_offset = 4; + * * @return The resultEndOffset. */ com.google.protobuf.Duration getResultEndOffset(); /** + * + * *
    * Time offset of the end of this result relative to the beginning of the
    * audio.
@@ -122,6 +161,8 @@ com.google.cloud.speech.v2.SpeechRecognitionAlternativeOrBuilder getAlternatives
   com.google.protobuf.DurationOrBuilder getResultEndOffsetOrBuilder();
 
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -130,11 +171,14 @@ com.google.cloud.speech.v2.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
@@ -142,10 +186,13 @@ com.google.cloud.speech.v2.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
@@ -153,8 +200,8 @@ com.google.cloud.speech.v2.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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java similarity index 70% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java index 23fc00c1963d..8048e10c7fee 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [StreamingRecognize][google.cloud.speech.v2.Speech.StreamingRecognize]
@@ -24,53 +41,58 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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() {
     recognizer_ = "";
   }
 
   @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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.StreamingRecognizeRequest.class, com.google.cloud.speech.v2.StreamingRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v2.StreamingRecognizeRequest.class,
+            com.google.cloud.speech.v2.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(6),
     AUDIO(5),
     STREAMINGREQUEST_NOT_SET(0);
     private final int value;
+
     private StreamingRequestCase(int value) {
       this.value = value;
     }
@@ -86,27 +108,33 @@ public static StreamingRequestCase valueOf(int value) {
 
     public static StreamingRequestCase forNumber(int value) {
       switch (value) {
-        case 6: return STREAMING_CONFIG;
-        case 5: return AUDIO;
-        case 0: return STREAMINGREQUEST_NOT_SET;
-        default: return null;
+        case 6:
+          return STREAMING_CONFIG;
+        case 5:
+          return AUDIO;
+        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 RECOGNIZER_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object recognizer_ = "";
   /**
+   *
+   *
    * 
    * Required. Streaming recognition should start with an initial request having
    * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -115,7 +143,10 @@ public int getNumber() {
    * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
    * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The recognizer. */ @java.lang.Override @@ -124,14 +155,15 @@ public java.lang.String getRecognizer() { 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(); recognizer_ = s; return s; } } /** + * + * *
    * Required. Streaming recognition should start with an initial request having
    * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -140,17 +172,18 @@ public java.lang.String getRecognizer() {
    * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
    * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for recognizer. */ @java.lang.Override - public com.google.protobuf.ByteString - getRecognizerBytes() { + public com.google.protobuf.ByteString getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -160,6 +193,8 @@ public java.lang.String getRecognizer() { public static final int STREAMING_CONFIG_FIELD_NUMBER = 6; /** + * + * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -167,6 +202,7 @@ public java.lang.String getRecognizer() {
    * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -174,6 +210,8 @@ public boolean hasStreamingConfig() { return streamingRequestCase_ == 6; } /** + * + * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -181,16 +219,19 @@ public boolean hasStreamingConfig() {
    * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; + * * @return The streamingConfig. */ @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognitionConfig getStreamingConfig() { if (streamingRequestCase_ == 6) { - return (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_; + return (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_; } return com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance(); } /** + * + * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -200,20 +241,24 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfig getStreamingConfig(
    * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder() {
+  public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder
+      getStreamingConfigOrBuilder() {
     if (streamingRequestCase_ == 6) {
-       return (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_;
+      return (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_;
     }
     return com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance();
   }
 
   public static final int AUDIO_FIELD_NUMBER = 5;
   /**
+   *
+   *
    * 
    * Inline audio bytes to be Recognized.
    * 
* * bytes audio = 5; + * * @return Whether the audio field is set. */ @java.lang.Override @@ -221,11 +266,14 @@ public boolean hasAudio() { return streamingRequestCase_ == 5; } /** + * + * *
    * Inline audio bytes to be Recognized.
    * 
* * bytes audio = 5; + * * @return The audio. */ @java.lang.Override @@ -237,6 +285,7 @@ public com.google.protobuf.ByteString getAudio() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -248,17 +297,16 @@ 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(recognizer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, recognizer_); } if (streamingRequestCase_ == 5) { - output.writeBytes( - 5, (com.google.protobuf.ByteString) streamingRequest_); + output.writeBytes(5, (com.google.protobuf.ByteString) streamingRequest_); } if (streamingRequestCase_ == 6) { - output.writeMessage(6, (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_); + output.writeMessage( + 6, (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_); } getUnknownFields().writeTo(output); } @@ -273,13 +321,14 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, recognizer_); } if (streamingRequestCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 5, (com.google.protobuf.ByteString) streamingRequest_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 5, (com.google.protobuf.ByteString) streamingRequest_); } if (streamingRequestCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -289,24 +338,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.v2.StreamingRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.StreamingRecognizeRequest other = (com.google.cloud.speech.v2.StreamingRecognizeRequest) obj; + com.google.cloud.speech.v2.StreamingRecognizeRequest other = + (com.google.cloud.speech.v2.StreamingRecognizeRequest) obj; - if (!getRecognizer() - .equals(other.getRecognizer())) return false; + if (!getRecognizer().equals(other.getRecognizer())) return false; if (!getStreamingRequestCase().equals(other.getStreamingRequestCase())) return false; switch (streamingRequestCase_) { case 6: - if (!getStreamingConfig() - .equals(other.getStreamingConfig())) return false; + if (!getStreamingConfig().equals(other.getStreamingConfig())) return false; break; case 5: - if (!getAudio() - .equals(other.getAudio())) return false; + if (!getAudio().equals(other.getAudio())) return false; break; case 0: default: @@ -342,96 +389,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.StreamingRecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.StreamingRecognizeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.StreamingRecognizeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [StreamingRecognize][google.cloud.speech.v2.Speech.StreamingRecognize]
@@ -452,33 +506,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.StreamingRecognizeRequest)
       com.google.cloud.speech.v2.StreamingRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.StreamingRecognizeRequest.class, com.google.cloud.speech.v2.StreamingRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v2.StreamingRecognizeRequest.class,
+              com.google.cloud.speech.v2.StreamingRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.StreamingRecognizeRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -493,9 +546,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -514,8 +567,11 @@ public com.google.cloud.speech.v2.StreamingRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.StreamingRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v2.StreamingRecognizeRequest result = new com.google.cloud.speech.v2.StreamingRecognizeRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.StreamingRecognizeRequest result =
+          new com.google.cloud.speech.v2.StreamingRecognizeRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -531,8 +587,7 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognizeRequest
     private void buildPartialOneofs(com.google.cloud.speech.v2.StreamingRecognizeRequest result) {
       result.streamingRequestCase_ = streamingRequestCase_;
       result.streamingRequest_ = this.streamingRequest_;
-      if (streamingRequestCase_ == 6 &&
-          streamingConfigBuilder_ != null) {
+      if (streamingRequestCase_ == 6 && streamingConfigBuilder_ != null) {
         result.streamingRequest_ = streamingConfigBuilder_.build();
       }
     }
@@ -541,38 +596,39 @@ private void buildPartialOneofs(com.google.cloud.speech.v2.StreamingRecognizeReq
     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.v2.StreamingRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognizeRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognizeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -580,24 +636,28 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognizeRequest other) {
-      if (other == com.google.cloud.speech.v2.StreamingRecognizeRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.StreamingRecognizeRequest.getDefaultInstance())
+        return this;
       if (!other.getRecognizer().isEmpty()) {
         recognizer_ = other.recognizer_;
         bitField0_ |= 0x00000001;
         onChanged();
       }
       switch (other.getStreamingRequestCase()) {
-        case STREAMING_CONFIG: {
-          mergeStreamingConfig(other.getStreamingConfig());
-          break;
-        }
-        case AUDIO: {
-          setAudio(other.getAudio());
-          break;
-        }
-        case STREAMINGREQUEST_NOT_SET: {
-          break;
-        }
+        case STREAMING_CONFIG:
+          {
+            mergeStreamingConfig(other.getStreamingConfig());
+            break;
+          }
+        case AUDIO:
+          {
+            setAudio(other.getAudio());
+            break;
+          }
+        case STREAMINGREQUEST_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -625,29 +685,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 26: {
-              recognizer_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 26
-            case 42: {
-              streamingRequest_ = input.readBytes();
-              streamingRequestCase_ = 5;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getStreamingConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              streamingRequestCase_ = 6;
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 26:
+              {
+                recognizer_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 26
+            case 42:
+              {
+                streamingRequest_ = input.readBytes();
+                streamingRequestCase_ = 5;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getStreamingConfigFieldBuilder().getBuilder(), extensionRegistry);
+                streamingRequestCase_ = 6;
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -657,12 +719,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -676,6 +738,8 @@ public Builder clearStreamingRequest() {
 
     private java.lang.Object recognizer_ = "";
     /**
+     *
+     *
      * 
      * Required. Streaming recognition should start with an initial request having
      * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -684,14 +748,16 @@ public Builder clearStreamingRequest() {
      * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
      * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The recognizer. */ public java.lang.String getRecognizer() { java.lang.Object ref = recognizer_; 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(); recognizer_ = s; return s; @@ -700,6 +766,8 @@ public java.lang.String getRecognizer() { } } /** + * + * *
      * Required. Streaming recognition should start with an initial request having
      * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -708,16 +776,17 @@ public java.lang.String getRecognizer() {
      * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
      * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for recognizer. */ - public com.google.protobuf.ByteString - getRecognizerBytes() { + public com.google.protobuf.ByteString getRecognizerBytes() { java.lang.Object ref = recognizer_; 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); recognizer_ = b; return b; } else { @@ -725,6 +794,8 @@ public java.lang.String getRecognizer() { } } /** + * + * *
      * Required. Streaming recognition should start with an initial request having
      * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -733,19 +804,25 @@ public java.lang.String getRecognizer() {
      * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
      * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizer( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecognizer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } recognizer_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Streaming recognition should start with an initial request having
      * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -754,7 +831,10 @@ public Builder setRecognizer(
      * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
      * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearRecognizer() { @@ -764,6 +844,8 @@ public Builder clearRecognizer() { return this; } /** + * + * *
      * Required. Streaming recognition should start with an initial request having
      * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -772,13 +854,17 @@ public Builder clearRecognizer() {
      * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
      * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for recognizer to set. * @return This builder for chaining. */ - public Builder setRecognizerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRecognizerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); recognizer_ = value; bitField0_ |= 0x00000001; @@ -787,8 +873,13 @@ public Builder setRecognizerBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.StreamingRecognitionConfig, com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder> streamingConfigBuilder_; + com.google.cloud.speech.v2.StreamingRecognitionConfig, + com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder, + com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder> + streamingConfigBuilder_; /** + * + * *
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -796,6 +887,7 @@ public Builder setRecognizerBytes(
      * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -803,6 +895,8 @@ public boolean hasStreamingConfig() { return streamingRequestCase_ == 6; } /** + * + * *
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -810,6 +904,7 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; + * * @return The streamingConfig. */ @java.lang.Override @@ -827,6 +922,8 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfig getStreamingConfig( } } /** + * + * *
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -849,6 +946,8 @@ public Builder setStreamingConfig(com.google.cloud.speech.v2.StreamingRecognitio
       return this;
     }
     /**
+     *
+     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -869,6 +968,8 @@ public Builder setStreamingConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -877,12 +978,17 @@ public Builder setStreamingConfig(
      *
      * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6;
      */
-    public Builder mergeStreamingConfig(com.google.cloud.speech.v2.StreamingRecognitionConfig value) {
+    public Builder mergeStreamingConfig(
+        com.google.cloud.speech.v2.StreamingRecognitionConfig value) {
       if (streamingConfigBuilder_ == null) {
-        if (streamingRequestCase_ == 6 &&
-            streamingRequest_ != com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance()) {
-          streamingRequest_ = com.google.cloud.speech.v2.StreamingRecognitionConfig.newBuilder((com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_)
-              .mergeFrom(value).buildPartial();
+        if (streamingRequestCase_ == 6
+            && streamingRequest_
+                != com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance()) {
+          streamingRequest_ =
+              com.google.cloud.speech.v2.StreamingRecognitionConfig.newBuilder(
+                      (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           streamingRequest_ = value;
         }
@@ -898,6 +1004,8 @@ public Builder mergeStreamingConfig(com.google.cloud.speech.v2.StreamingRecognit
       return this;
     }
     /**
+     *
+     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -923,6 +1031,8 @@ public Builder clearStreamingConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -931,10 +1041,13 @@ public Builder clearStreamingConfig() {
      *
      * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6;
      */
-    public com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder getStreamingConfigBuilder() {
+    public com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder
+        getStreamingConfigBuilder() {
       return getStreamingConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -944,7 +1057,8 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder getStreamin
      * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6;
      */
     @java.lang.Override
-    public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder() {
+    public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder
+        getStreamingConfigOrBuilder() {
       if ((streamingRequestCase_ == 6) && (streamingConfigBuilder_ != null)) {
         return streamingConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -955,6 +1069,8 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder getStreami
       }
     }
     /**
+     *
+     *
      * 
      * StreamingRecognitionConfig to be used in this recognition attempt.
      * If provided, it will override the default RecognitionConfig stored in the
@@ -964,14 +1080,20 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder getStreami
      * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.StreamingRecognitionConfig, com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder> 
+            com.google.cloud.speech.v2.StreamingRecognitionConfig,
+            com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder,
+            com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder>
         getStreamingConfigFieldBuilder() {
       if (streamingConfigBuilder_ == null) {
         if (!(streamingRequestCase_ == 6)) {
-          streamingRequest_ = com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance();
+          streamingRequest_ =
+              com.google.cloud.speech.v2.StreamingRecognitionConfig.getDefaultInstance();
         }
-        streamingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v2.StreamingRecognitionConfig, com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder>(
+        streamingConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v2.StreamingRecognitionConfig,
+                com.google.cloud.speech.v2.StreamingRecognitionConfig.Builder,
+                com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder>(
                 (com.google.cloud.speech.v2.StreamingRecognitionConfig) streamingRequest_,
                 getParentForChildren(),
                 isClean());
@@ -983,22 +1105,28 @@ public com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder getStreami
     }
 
     /**
+     *
+     *
      * 
      * Inline audio bytes to be Recognized.
      * 
* * bytes audio = 5; + * * @return Whether the audio field is set. */ public boolean hasAudio() { return streamingRequestCase_ == 5; } /** + * + * *
      * Inline audio bytes to be Recognized.
      * 
* * bytes audio = 5; + * * @return The audio. */ public com.google.protobuf.ByteString getAudio() { @@ -1008,27 +1136,35 @@ public com.google.protobuf.ByteString getAudio() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * Inline audio bytes to be Recognized.
      * 
* * bytes audio = 5; + * * @param value The audio to set. * @return This builder for chaining. */ public Builder setAudio(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } streamingRequestCase_ = 5; streamingRequest_ = value; onChanged(); return this; } /** + * + * *
      * Inline audio bytes to be Recognized.
      * 
* * bytes audio = 5; + * * @return This builder for chaining. */ public Builder clearAudio() { @@ -1039,9 +1175,9 @@ public Builder clearAudio() { } 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); } @@ -1051,12 +1187,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognizeRequest) private static final com.google.cloud.speech.v2.StreamingRecognizeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognizeRequest(); } @@ -1065,27 +1201,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1100,6 +1236,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java index a59c3c0ccd2c..c3de2722e8fe 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface StreamingRecognizeRequestOrBuilder extends +public interface StreamingRecognizeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Streaming recognition should start with an initial request having
    * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -16,11 +34,16 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
    * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The recognizer. */ java.lang.String getRecognizer(); /** + * + * *
    * Required. Streaming recognition should start with an initial request having
    * a `recognizer`. Subsequent requests carry the audio data to be recognized.
@@ -29,13 +52,17 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * [default_recognition_config][google.cloud.speech.v2.Recognizer.default_recognition_config].
    * 
* - * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string recognizer = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for recognizer. */ - com.google.protobuf.ByteString - getRecognizerBytes(); + com.google.protobuf.ByteString getRecognizerBytes(); /** + * + * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -43,10 +70,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; + * * @return Whether the streamingConfig field is set. */ boolean hasStreamingConfig(); /** + * + * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -54,10 +84,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v2.StreamingRecognitionConfig streaming_config = 6; + * * @return The streamingConfig. */ com.google.cloud.speech.v2.StreamingRecognitionConfig getStreamingConfig(); /** + * + * *
    * StreamingRecognitionConfig to be used in this recognition attempt.
    * If provided, it will override the default RecognitionConfig stored in the
@@ -69,23 +102,30 @@ public interface StreamingRecognizeRequestOrBuilder extends
   com.google.cloud.speech.v2.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Inline audio bytes to be Recognized.
    * 
* * bytes audio = 5; + * * @return Whether the audio field is set. */ boolean hasAudio(); /** + * + * *
    * Inline audio bytes to be Recognized.
    * 
* * bytes audio = 5; + * * @return The audio. */ com.google.protobuf.ByteString getAudio(); - public com.google.cloud.speech.v2.StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase(); + public com.google.cloud.speech.v2.StreamingRecognizeRequest.StreamingRequestCase + getStreamingRequestCase(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java similarity index 76% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java index 5727dcf83280..92f2afa89c93 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponse.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * `StreamingRecognizeResponse` is the only message returned to the client by
  * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -44,15 +61,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
@@ -60,39 +78,43 @@ 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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.StreamingRecognizeResponse.class, com.google.cloud.speech.v2.StreamingRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v2.StreamingRecognizeResponse.class,
+            com.google.cloud.speech.v2.StreamingRecognizeResponse.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* * Protobuf enum {@code google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType} */ - public enum SpeechEventType - implements com.google.protobuf.ProtocolMessageEnum { + public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * No speech event specified.
      * 
@@ -101,6 +123,8 @@ public enum SpeechEventType */ SPEECH_EVENT_TYPE_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
@@ -114,6 +138,8 @@ public enum SpeechEventType
      */
     END_OF_SINGLE_UTTERANCE(1),
     /**
+     *
+     *
      * 
      * This event indicates that the server has detected the beginning of human
      * voice activity in the stream. This event can be returned multiple times
@@ -125,6 +151,8 @@ public enum SpeechEventType
      */
     SPEECH_ACTIVITY_BEGIN(2),
     /**
+     *
+     *
      * 
      * This event indicates that the server has detected the end of human voice
      * activity in the stream. This event can be returned multiple times if
@@ -139,6 +167,8 @@ public enum SpeechEventType
     ;
 
     /**
+     *
+     *
      * 
      * No speech event specified.
      * 
@@ -147,6 +177,8 @@ public enum SpeechEventType */ public static final int SPEECH_EVENT_TYPE_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
@@ -160,6 +192,8 @@ public enum SpeechEventType
      */
     public static final int END_OF_SINGLE_UTTERANCE_VALUE = 1;
     /**
+     *
+     *
      * 
      * This event indicates that the server has detected the beginning of human
      * voice activity in the stream. This event can be returned multiple times
@@ -171,6 +205,8 @@ public enum SpeechEventType
      */
     public static final int SPEECH_ACTIVITY_BEGIN_VALUE = 2;
     /**
+     *
+     *
      * 
      * This event indicates that the server has detected the end of human voice
      * activity in the stream. This event can be returned multiple times if
@@ -182,7 +218,6 @@ public enum SpeechEventType
      */
     public static final int SPEECH_ACTIVITY_END_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -207,41 +242,47 @@ public static SpeechEventType valueOf(int value) {
      */
     public static SpeechEventType forNumber(int value) {
       switch (value) {
-        case 0: return SPEECH_EVENT_TYPE_UNSPECIFIED;
-        case 1: return END_OF_SINGLE_UTTERANCE;
-        case 2: return SPEECH_ACTIVITY_BEGIN;
-        case 3: return SPEECH_ACTIVITY_END;
-        default: return null;
+        case 0:
+          return SPEECH_EVENT_TYPE_UNSPECIFIED;
+        case 1:
+          return END_OF_SINGLE_UTTERANCE;
+        case 2:
+          return SPEECH_ACTIVITY_BEGIN;
+        case 3:
+          return SPEECH_ACTIVITY_END;
+        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.v2.StreamingRecognizeResponse.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.speech.v2.StreamingRecognizeResponse.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final SpeechEventType[] VALUES = values();
@@ -249,8 +290,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;
@@ -268,9 +308,12 @@ private SpeechEventType(int value) {
   }
 
   public static final int RESULTS_FIELD_NUMBER = 6;
+
   @SuppressWarnings("serial")
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -288,6 +331,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.
@@ -301,11 +346,13 @@ public java.util.List get
    * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
    */
   @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.
@@ -323,6 +370,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.
@@ -340,6 +389,8 @@ public com.google.cloud.speech.v2.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.
@@ -361,37 +412,55 @@ public com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResults
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 3;
   private int speechEventType_ = 0;
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * * @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.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * * @return The speechEventType. */ - @java.lang.Override public com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { - com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.forNumber(speechEventType_); - return result == null ? com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { + com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.forNumber( + speechEventType_); + return result == null + ? com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED + : result; } public static final int SPEECH_EVENT_OFFSET_FIELD_NUMBER = 7; private com.google.protobuf.Duration speechEventOffset_; /** + * + * *
    * Time offset between the beginning of the audio and event emission.
    * 
* * .google.protobuf.Duration speech_event_offset = 7; + * * @return Whether the speechEventOffset field is set. */ @java.lang.Override @@ -399,18 +468,25 @@ public boolean hasSpeechEventOffset() { return speechEventOffset_ != null; } /** + * + * *
    * Time offset between the beginning of the audio and event emission.
    * 
* * .google.protobuf.Duration speech_event_offset = 7; + * * @return The speechEventOffset. */ @java.lang.Override public com.google.protobuf.Duration getSpeechEventOffset() { - return speechEventOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEventOffset_; + return speechEventOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : speechEventOffset_; } /** + * + * *
    * Time offset between the beginning of the audio and event emission.
    * 
@@ -419,17 +495,22 @@ public com.google.protobuf.Duration getSpeechEventOffset() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder() { - return speechEventOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEventOffset_; + return speechEventOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : speechEventOffset_; } public static final int METADATA_FIELD_NUMBER = 5; private com.google.cloud.speech.v2.RecognitionResponseMetadata metadata_; /** + * + * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; + * * @return Whether the metadata field is set. */ @java.lang.Override @@ -437,18 +518,25 @@ public boolean hasMetadata() { return metadata_ != null; } /** + * + * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; + * * @return The metadata. */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { - return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() + : metadata_; } /** + * + * *
    * Metadata about the recognition.
    * 
@@ -457,10 +545,13 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { */ @java.lang.Override public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() + : metadata_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -472,9 +563,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (speechEventType_ != com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (speechEventType_ + != com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType + .SPEECH_EVENT_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, speechEventType_); } if (metadata_ != null) { @@ -495,21 +588,20 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (speechEventType_ != com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, speechEventType_); + if (speechEventType_ + != com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType + .SPEECH_EVENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, speechEventType_); } if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMetadata()); } for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, results_.get(i)); } if (speechEventOffset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getSpeechEventOffset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSpeechEventOffset()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -519,25 +611,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.v2.StreamingRecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v2.StreamingRecognizeResponse other = (com.google.cloud.speech.v2.StreamingRecognizeResponse) obj; + com.google.cloud.speech.v2.StreamingRecognizeResponse other = + (com.google.cloud.speech.v2.StreamingRecognizeResponse) obj; - if (!getResultsList() - .equals(other.getResultsList())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; if (speechEventType_ != other.speechEventType_) return false; if (hasSpeechEventOffset() != other.hasSpeechEventOffset()) return false; if (hasSpeechEventOffset()) { - if (!getSpeechEventOffset() - .equals(other.getSpeechEventOffset())) return false; + if (!getSpeechEventOffset().equals(other.getSpeechEventOffset())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -570,96 +660,104 @@ public int hashCode() { } public static com.google.cloud.speech.v2.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.v2.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.v2.StreamingRecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.StreamingRecognizeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.StreamingRecognizeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.StreamingRecognizeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.StreamingRecognizeResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v2.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`
@@ -700,33 +798,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.StreamingRecognizeResponse)
       com.google.cloud.speech.v2.StreamingRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.StreamingRecognizeResponse.class, com.google.cloud.speech.v2.StreamingRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v2.StreamingRecognizeResponse.class,
+              com.google.cloud.speech.v2.StreamingRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.StreamingRecognizeResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -753,9 +850,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
@@ -774,14 +871,18 @@ public com.google.cloud.speech.v2.StreamingRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.StreamingRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v2.StreamingRecognizeResponse result = new com.google.cloud.speech.v2.StreamingRecognizeResponse(this);
+      com.google.cloud.speech.v2.StreamingRecognizeResponse result =
+          new com.google.cloud.speech.v2.StreamingRecognizeResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.speech.v2.StreamingRecognizeResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.speech.v2.StreamingRecognizeResponse result) {
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           results_ = java.util.Collections.unmodifiableList(results_);
@@ -799,14 +900,13 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognizeResponse
         result.speechEventType_ = speechEventType_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.speechEventOffset_ = speechEventOffsetBuilder_ == null
-            ? speechEventOffset_
-            : speechEventOffsetBuilder_.build();
+        result.speechEventOffset_ =
+            speechEventOffsetBuilder_ == null
+                ? speechEventOffset_
+                : speechEventOffsetBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.metadata_ = metadataBuilder_ == null
-            ? metadata_
-            : metadataBuilder_.build();
+        result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
       }
     }
 
@@ -814,38 +914,39 @@ private void buildPartial0(com.google.cloud.speech.v2.StreamingRecognizeResponse
     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.v2.StreamingRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v2.StreamingRecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -853,7 +954,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.StreamingRecognizeResponse other) {
-      if (other == com.google.cloud.speech.v2.StreamingRecognizeResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.StreamingRecognizeResponse.getDefaultInstance())
+        return this;
       if (resultsBuilder_ == null) {
         if (!other.results_.isEmpty()) {
           if (results_.isEmpty()) {
@@ -872,9 +974,10 @@ public Builder mergeFrom(com.google.cloud.speech.v2.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_);
           }
@@ -915,44 +1018,46 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 24: {
-              speechEventType_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 24
-            case 42: {
-              input.readMessage(
-                  getMetadataFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 42
-            case 50: {
-              com.google.cloud.speech.v2.StreamingRecognitionResult m =
-                  input.readMessage(
-                      com.google.cloud.speech.v2.StreamingRecognitionResult.parser(),
-                      extensionRegistry);
-              if (resultsBuilder_ == null) {
-                ensureResultsIsMutable();
-                results_.add(m);
-              } else {
-                resultsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getSpeechEventOffsetFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 58
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 24:
+              {
+                speechEventType_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 24
+            case 42:
+              {
+                input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 42
+            case 50:
+              {
+                com.google.cloud.speech.v2.StreamingRecognitionResult m =
+                    input.readMessage(
+                        com.google.cloud.speech.v2.StreamingRecognitionResult.parser(),
+                        extensionRegistry);
+                if (resultsBuilder_ == null) {
+                  ensureResultsIsMutable();
+                  results_.add(m);
+                } else {
+                  resultsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(
+                    getSpeechEventOffsetFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 58
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -962,21 +1067,30 @@ public Builder mergeFrom(
       } // finally
       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.v2.StreamingRecognitionResult, com.google.cloud.speech.v2.StreamingRecognitionResult.Builder, com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v2.StreamingRecognitionResult,
+            com.google.cloud.speech.v2.StreamingRecognitionResult.Builder,
+            com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -997,6 +1111,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.
@@ -1017,6 +1133,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1037,6 +1155,8 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult getResults(int inde
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1064,6 +1184,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.
@@ -1088,6 +1210,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.
@@ -1114,6 +1238,8 @@ public Builder addResults(com.google.cloud.speech.v2.StreamingRecognitionResult
       return this;
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1141,6 +1267,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.
@@ -1165,6 +1293,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.
@@ -1189,6 +1319,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.
@@ -1202,11 +1334,11 @@ public Builder addResults(
      * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
      */
     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);
@@ -1214,6 +1346,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.
@@ -1237,6 +1371,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.
@@ -1260,6 +1396,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.
@@ -1277,6 +1415,8 @@ public com.google.cloud.speech.v2.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.
@@ -1292,11 +1432,14 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder getResultsB
     public com.google.cloud.speech.v2.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.
@@ -1309,8 +1452,8 @@ public com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResults
      *
      * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
      */
-    public java.util.List 
-         getResultsOrBuilderList() {
+    public java.util.List
+        getResultsOrBuilderList() {
       if (resultsBuilder_ != null) {
         return resultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1318,6 +1461,8 @@ public com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResults
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1331,10 +1476,12 @@ public com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResults
      * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
      */
     public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsBuilder() {
-      return getResultsFieldBuilder().addBuilder(
-          com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1349,10 +1496,13 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsB
      */
     public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsBuilder(
         int index) {
-      return getResultsFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1365,20 +1515,23 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsB
      *
      * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
      */
-    public java.util.List 
-         getResultsBuilderList() {
+    public java.util.List
+        getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v2.StreamingRecognitionResult, com.google.cloud.speech.v2.StreamingRecognitionResult.Builder, com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder> 
+            com.google.cloud.speech.v2.StreamingRecognitionResult,
+            com.google.cloud.speech.v2.StreamingRecognitionResult.Builder,
+            com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder>
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v2.StreamingRecognitionResult, com.google.cloud.speech.v2.StreamingRecognitionResult.Builder, com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder>(
-                results_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        resultsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v2.StreamingRecognitionResult,
+                com.google.cloud.speech.v2.StreamingRecognitionResult.Builder,
+                com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder>(
+                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1386,22 +1539,33 @@ public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsB
 
     private int speechEventType_ = 0;
     /**
+     *
+     *
      * 
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * * @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.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * * @param value The enum numeric value on the wire for speechEventType to set. * @return This builder for chaining. */ @@ -1412,28 +1576,44 @@ public Builder setSpeechEventTypeValue(int value) { return this; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * * @return The speechEventType. */ @java.lang.Override - public com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { - com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.forNumber(speechEventType_); - return result == null ? com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + public com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { + com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.forNumber( + speechEventType_); + return result == null + ? com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED + : result; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * * @param value The speechEventType to set. * @return This builder for chaining. */ - public Builder setSpeechEventType(com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType value) { + public Builder setSpeechEventType( + com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType value) { if (value == null) { throw new NullPointerException(); } @@ -1443,11 +1623,16 @@ public Builder setSpeechEventType(com.google.cloud.speech.v2.StreamingRecognizeR return this; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * * @return This builder for chaining. */ public Builder clearSpeechEventType() { @@ -1459,34 +1644,47 @@ public Builder clearSpeechEventType() { private com.google.protobuf.Duration speechEventOffset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> speechEventOffsetBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + speechEventOffsetBuilder_; /** + * + * *
      * Time offset between the beginning of the audio and event emission.
      * 
* * .google.protobuf.Duration speech_event_offset = 7; + * * @return Whether the speechEventOffset field is set. */ public boolean hasSpeechEventOffset() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Time offset between the beginning of the audio and event emission.
      * 
* * .google.protobuf.Duration speech_event_offset = 7; + * * @return The speechEventOffset. */ public com.google.protobuf.Duration getSpeechEventOffset() { if (speechEventOffsetBuilder_ == null) { - return speechEventOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : speechEventOffset_; + return speechEventOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : speechEventOffset_; } else { return speechEventOffsetBuilder_.getMessage(); } } /** + * + * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1507,14 +1705,15 @@ public Builder setSpeechEventOffset(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Time offset between the beginning of the audio and event emission.
      * 
* * .google.protobuf.Duration speech_event_offset = 7; */ - public Builder setSpeechEventOffset( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setSpeechEventOffset(com.google.protobuf.Duration.Builder builderForValue) { if (speechEventOffsetBuilder_ == null) { speechEventOffset_ = builderForValue.build(); } else { @@ -1525,6 +1724,8 @@ public Builder setSpeechEventOffset( return this; } /** + * + * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1533,9 +1734,9 @@ public Builder setSpeechEventOffset( */ public Builder mergeSpeechEventOffset(com.google.protobuf.Duration value) { if (speechEventOffsetBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - speechEventOffset_ != null && - speechEventOffset_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && speechEventOffset_ != null + && speechEventOffset_ != com.google.protobuf.Duration.getDefaultInstance()) { getSpeechEventOffsetBuilder().mergeFrom(value); } else { speechEventOffset_ = value; @@ -1548,6 +1749,8 @@ public Builder mergeSpeechEventOffset(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1565,6 +1768,8 @@ public Builder clearSpeechEventOffset() { return this; } /** + * + * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1577,6 +1782,8 @@ public com.google.protobuf.Duration.Builder getSpeechEventOffsetBuilder() { return getSpeechEventOffsetFieldBuilder().getBuilder(); } /** + * + * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1587,11 +1794,14 @@ public com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder() { if (speechEventOffsetBuilder_ != null) { return speechEventOffsetBuilder_.getMessageOrBuilder(); } else { - return speechEventOffset_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : speechEventOffset_; + return speechEventOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : speechEventOffset_; } } /** + * + * *
      * Time offset between the beginning of the audio and event emission.
      * 
@@ -1599,14 +1809,17 @@ public com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder() { * .google.protobuf.Duration speech_event_offset = 7; */ 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> getSpeechEventOffsetFieldBuilder() { if (speechEventOffsetBuilder_ == null) { - speechEventOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getSpeechEventOffset(), - getParentForChildren(), - isClean()); + speechEventOffsetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getSpeechEventOffset(), getParentForChildren(), isClean()); speechEventOffset_ = null; } return speechEventOffsetBuilder_; @@ -1614,34 +1827,47 @@ public com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder() { private com.google.cloud.speech.v2.RecognitionResponseMetadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> metadataBuilder_; + com.google.cloud.speech.v2.RecognitionResponseMetadata, + com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, + com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> + metadataBuilder_; /** + * + * *
      * Metadata about the recognition.
      * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; + * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Metadata about the recognition.
      * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; + * * @return The metadata. */ public com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() + : metadata_; } else { return metadataBuilder_.getMessage(); } } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1662,6 +1888,8 @@ public Builder setMetadata(com.google.cloud.speech.v2.RecognitionResponseMetadat return this; } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1680,6 +1908,8 @@ public Builder setMetadata( return this; } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1688,9 +1918,10 @@ public Builder setMetadata( */ public Builder mergeMetadata(com.google.cloud.speech.v2.RecognitionResponseMetadata value) { if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - metadata_ != null && - metadata_ != com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; @@ -1703,6 +1934,8 @@ public Builder mergeMetadata(com.google.cloud.speech.v2.RecognitionResponseMetad return this; } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1720,6 +1953,8 @@ public Builder clearMetadata() { return this; } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1732,6 +1967,8 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder getMetadat return getMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1742,11 +1979,14 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetada if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { - return metadata_ == null ? - com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v2.RecognitionResponseMetadata.getDefaultInstance() + : metadata_; } } /** + * + * *
      * Metadata about the recognition.
      * 
@@ -1754,21 +1994,24 @@ public com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder getMetada * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> + com.google.cloud.speech.v2.RecognitionResponseMetadata, + com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, + com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.RecognitionResponseMetadata, com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.RecognitionResponseMetadata, + com.google.cloud.speech.v2.RecognitionResponseMetadata.Builder, + com.google.cloud.speech.v2.RecognitionResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } + @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); } @@ -1778,12 +2021,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.StreamingRecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.StreamingRecognizeResponse) private static final com.google.cloud.speech.v2.StreamingRecognizeResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.StreamingRecognizeResponse(); } @@ -1792,27 +2035,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1827,6 +2070,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.StreamingRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java similarity index 84% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java index adfef06e80a3..5ebe124a6264 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/StreamingRecognizeResponseOrBuilder.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface StreamingRecognizeResponseOrBuilder extends +public interface StreamingRecognizeResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.StreamingRecognizeResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -20,9 +38,10 @@ public interface StreamingRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
    */
-  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.
@@ -37,6 +56,8 @@ public interface StreamingRecognizeResponseOrBuilder extends
    */
   com.google.cloud.speech.v2.StreamingRecognitionResult getResults(int index);
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -51,6 +72,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.
@@ -63,9 +86,11 @@ public interface StreamingRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
    */
-  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.
@@ -78,47 +103,62 @@ public interface StreamingRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
    */
-  com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResultsOrBuilder(
-      int index);
+  com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * * @return The enum numeric value on the wire for speechEventType. */ int getSpeechEventTypeValue(); /** + * + * *
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * .google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3; + * + * * @return The speechEventType. */ com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType getSpeechEventType(); /** + * + * *
    * Time offset between the beginning of the audio and event emission.
    * 
* * .google.protobuf.Duration speech_event_offset = 7; + * * @return Whether the speechEventOffset field is set. */ boolean hasSpeechEventOffset(); /** + * + * *
    * Time offset between the beginning of the audio and event emission.
    * 
* * .google.protobuf.Duration speech_event_offset = 7; + * * @return The speechEventOffset. */ com.google.protobuf.Duration getSpeechEventOffset(); /** + * + * *
    * Time offset between the beginning of the audio and event emission.
    * 
@@ -128,24 +168,32 @@ com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder getResultsOrBuild com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder(); /** + * + * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; + * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** + * + * *
    * Metadata about the recognition.
    * 
* * .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5; + * * @return The metadata. */ com.google.cloud.speech.v2.RecognitionResponseMetadata getMetadata(); /** + * + * *
    * Metadata about the recognition.
    * 
diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java index b719cb328c62..9c3e52e2e108 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [UndeleteCustomClass][google.cloud.speech.v2.Speech.UndeleteCustomClass]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.UndeleteCustomClassRequest}
  */
-public final class UndeleteCustomClassRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UndeleteCustomClassRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.UndeleteCustomClassRequest)
     UndeleteCustomClassRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UndeleteCustomClassRequest.newBuilder() to construct.
   private UndeleteCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UndeleteCustomClassRequest() {
     name_ = "";
     etag_ = "";
@@ -28,40 +46,47 @@ private UndeleteCustomClassRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UndeleteCustomClassRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UndeleteCustomClassRequest.class, com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder.class);
+            com.google.cloud.speech.v2.UndeleteCustomClassRequest.class,
+            com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the CustomClass to undelete.
    * 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 @@ -70,31 +95,33 @@ 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 CustomClass to undelete.
    * 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 { @@ -105,12 +132,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the undeleted CustomClass, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -119,9 +149,12 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -129,6 +162,7 @@ public boolean getValidateOnly() {
    * 
* * string etag = 4; + * * @return The etag. */ @java.lang.Override @@ -137,14 +171,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -152,16 +187,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 4; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -170,6 +204,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,8 +216,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_); } @@ -205,8 +239,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, etag_); @@ -219,19 +252,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.v2.UndeleteCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UndeleteCustomClassRequest other = (com.google.cloud.speech.v2.UndeleteCustomClassRequest) obj; + com.google.cloud.speech.v2.UndeleteCustomClassRequest other = + (com.google.cloud.speech.v2.UndeleteCustomClassRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -246,8 +277,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -256,96 +286,104 @@ public int hashCode() { } public static com.google.cloud.speech.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UndeleteCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UndeleteCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest 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.v2.UndeleteCustomClassRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v2.UndeleteCustomClassRequest 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; } /** + * + * *
    * Request message for the
    * [UndeleteCustomClass][google.cloud.speech.v2.Speech.UndeleteCustomClass]
@@ -354,33 +392,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.UndeleteCustomClassRequest}
    */
-  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.v2.UndeleteCustomClassRequest)
       com.google.cloud.speech.v2.UndeleteCustomClassRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UndeleteCustomClassRequest.class, com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder.class);
+              com.google.cloud.speech.v2.UndeleteCustomClassRequest.class,
+              com.google.cloud.speech.v2.UndeleteCustomClassRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UndeleteCustomClassRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -392,9 +429,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
@@ -413,8 +450,11 @@ public com.google.cloud.speech.v2.UndeleteCustomClassRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UndeleteCustomClassRequest buildPartial() {
-      com.google.cloud.speech.v2.UndeleteCustomClassRequest result = new com.google.cloud.speech.v2.UndeleteCustomClassRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.UndeleteCustomClassRequest result =
+          new com.google.cloud.speech.v2.UndeleteCustomClassRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -436,38 +476,39 @@ private void buildPartial0(com.google.cloud.speech.v2.UndeleteCustomClassRequest
     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.v2.UndeleteCustomClassRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UndeleteCustomClassRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.UndeleteCustomClassRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -475,7 +516,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UndeleteCustomClassRequest other) {
-      if (other == com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -515,27 +557,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 24: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 24
-            case 34: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 24:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 24
+            case 34:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -545,24 +591,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the CustomClass to undelete.
      * 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; @@ -571,22 +622,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the CustomClass to undelete.
      * 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 { @@ -594,32 +648,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the CustomClass to undelete.
      * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the CustomClass to undelete.
      * 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() { @@ -629,19 +694,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the CustomClass to undelete.
      * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -649,14 +720,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the undeleted CustomClass, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -664,29 +738,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the undeleted CustomClass, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the undeleted CustomClass, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -698,6 +778,8 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -705,13 +787,13 @@ public Builder clearValidateOnly() {
      * 
* * string etag = 4; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -720,6 +802,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -727,15 +811,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 4; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -743,6 +826,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -750,18 +835,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 4; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -769,6 +858,7 @@ public Builder setEtag(
      * 
* * string etag = 4; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -778,6 +868,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -785,21 +877,23 @@ public Builder clearEtag() {
      * 
* * string etag = 4; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -809,12 +903,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UndeleteCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UndeleteCustomClassRequest) private static final com.google.cloud.speech.v2.UndeleteCustomClassRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UndeleteCustomClassRequest(); } @@ -823,27 +917,27 @@ public static com.google.cloud.speech.v2.UndeleteCustomClassRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeleteCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeleteCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -858,6 +952,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.UndeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java index 5cb508666745..3f2932465fef 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteCustomClassRequestOrBuilder.java @@ -1,48 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UndeleteCustomClassRequestOrBuilder extends +public interface UndeleteCustomClassRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UndeleteCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the CustomClass to undelete.
    * 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.String getName(); /** + * + * *
    * Required. The name of the CustomClass to undelete.
    * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set, validate the request and preview the undeleted CustomClass, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -50,10 +80,13 @@ public interface UndeleteCustomClassRequestOrBuilder extends
    * 
* * string etag = 4; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -61,8 +94,8 @@ public interface UndeleteCustomClassRequestOrBuilder extends
    * 
* * string etag = 4; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java index abf4b2329690..76616b3d3e23 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [UndeletePhraseSet][google.cloud.speech.v2.Speech.UndeletePhraseSet]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.UndeletePhraseSetRequest}
  */
-public final class UndeletePhraseSetRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UndeletePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.UndeletePhraseSetRequest)
     UndeletePhraseSetRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UndeletePhraseSetRequest.newBuilder() to construct.
   private UndeletePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UndeletePhraseSetRequest() {
     name_ = "";
     etag_ = "";
@@ -28,39 +46,46 @@ private UndeletePhraseSetRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UndeletePhraseSetRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UndeletePhraseSetRequest.class, com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder.class);
+            com.google.cloud.speech.v2.UndeletePhraseSetRequest.class,
+            com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the PhraseSet to undelete.
    * 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 @@ -69,30 +94,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 PhraseSet to undelete.
    * 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 { @@ -103,12 +130,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the undeleted PhraseSet, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -117,9 +147,12 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -127,6 +160,7 @@ public boolean getValidateOnly() {
    * 
* * string etag = 4; + * * @return The etag. */ @java.lang.Override @@ -135,14 +169,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -150,16 +185,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 4; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -168,6 +202,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +214,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_); } @@ -203,8 +237,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, etag_); @@ -217,19 +250,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.v2.UndeletePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UndeletePhraseSetRequest other = (com.google.cloud.speech.v2.UndeletePhraseSetRequest) obj; + com.google.cloud.speech.v2.UndeletePhraseSetRequest other = + (com.google.cloud.speech.v2.UndeletePhraseSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,8 +275,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -254,96 +284,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UndeletePhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UndeletePhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest 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.v2.UndeletePhraseSetRequest 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; } /** + * + * *
    * Request message for the
    * [UndeletePhraseSet][google.cloud.speech.v2.Speech.UndeletePhraseSet]
@@ -352,33 +389,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.UndeletePhraseSetRequest}
    */
-  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.v2.UndeletePhraseSetRequest)
       com.google.cloud.speech.v2.UndeletePhraseSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UndeletePhraseSetRequest.class, com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder.class);
+              com.google.cloud.speech.v2.UndeletePhraseSetRequest.class,
+              com.google.cloud.speech.v2.UndeletePhraseSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UndeletePhraseSetRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -390,9 +426,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -411,8 +447,11 @@ public com.google.cloud.speech.v2.UndeletePhraseSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UndeletePhraseSetRequest buildPartial() {
-      com.google.cloud.speech.v2.UndeletePhraseSetRequest result = new com.google.cloud.speech.v2.UndeletePhraseSetRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.UndeletePhraseSetRequest result =
+          new com.google.cloud.speech.v2.UndeletePhraseSetRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -434,38 +473,39 @@ private void buildPartial0(com.google.cloud.speech.v2.UndeletePhraseSetRequest r
     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.v2.UndeletePhraseSetRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UndeletePhraseSetRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.UndeletePhraseSetRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -473,7 +513,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UndeletePhraseSetRequest other) {
-      if (other == com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -513,27 +554,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 24: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 24
-            case 34: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 24:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 24
+            case 34:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -543,23 +588,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the PhraseSet to undelete.
      * 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; @@ -568,21 +618,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the PhraseSet to undelete.
      * 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 { @@ -590,30 +643,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the PhraseSet to undelete.
      * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the PhraseSet to undelete.
      * 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() { @@ -623,18 +687,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the PhraseSet to undelete.
      * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -642,14 +712,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the undeleted PhraseSet, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -657,29 +730,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the undeleted PhraseSet, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the undeleted PhraseSet, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -691,6 +770,8 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -698,13 +779,13 @@ public Builder clearValidateOnly() {
      * 
* * string etag = 4; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -713,6 +794,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -720,15 +803,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 4; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -736,6 +818,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -743,18 +827,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 4; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -762,6 +850,7 @@ public Builder setEtag(
      * 
* * string etag = 4; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -771,6 +860,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -778,21 +869,23 @@ public Builder clearEtag() {
      * 
* * string etag = 4; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -802,12 +895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UndeletePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UndeletePhraseSetRequest) private static final com.google.cloud.speech.v2.UndeletePhraseSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UndeletePhraseSetRequest(); } @@ -816,27 +909,27 @@ public static com.google.cloud.speech.v2.UndeletePhraseSetRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeletePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeletePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -851,6 +944,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.UndeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java index 2e93ee02b6f0..57ddba361792 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeletePhraseSetRequestOrBuilder.java @@ -1,46 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UndeletePhraseSetRequestOrBuilder extends +public interface UndeletePhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UndeletePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the PhraseSet to undelete.
    * 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.String getName(); /** + * + * *
    * Required. The name of the PhraseSet to undelete.
    * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set, validate the request and preview the undeleted PhraseSet, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -48,10 +78,13 @@ public interface UndeletePhraseSetRequestOrBuilder extends
    * 
* * string etag = 4; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -59,8 +92,8 @@ public interface UndeletePhraseSetRequestOrBuilder extends
    * 
* * string etag = 4; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java index 0f4d5175bc86..bda5cf7ddc37 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [UndeleteRecognizer][google.cloud.speech.v2.Speech.UndeleteRecognizer]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.UndeleteRecognizerRequest}
  */
-public final class UndeleteRecognizerRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UndeleteRecognizerRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.UndeleteRecognizerRequest)
     UndeleteRecognizerRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UndeleteRecognizerRequest.newBuilder() to construct.
   private UndeleteRecognizerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UndeleteRecognizerRequest() {
     name_ = "";
     etag_ = "";
@@ -28,39 +46,46 @@ private UndeleteRecognizerRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UndeleteRecognizerRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UndeleteRecognizerRequest.class, com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder.class);
+            com.google.cloud.speech.v2.UndeleteRecognizerRequest.class,
+            com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the Recognizer to undelete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * 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 @@ -69,30 +94,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 Recognizer to undelete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * 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 { @@ -103,12 +130,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
    * If set, validate the request and preview the undeleted Recognizer, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -117,9 +147,12 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -127,6 +160,7 @@ public boolean getValidateOnly() {
    * 
* * string etag = 4; + * * @return The etag. */ @java.lang.Override @@ -135,14 +169,15 @@ public java.lang.String getEtag() { 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(); etag_ = s; return s; } } /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -150,16 +185,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 4; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -168,6 +202,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +214,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_); } @@ -203,8 +237,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, etag_); @@ -217,19 +250,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.v2.UndeleteRecognizerRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UndeleteRecognizerRequest other = (com.google.cloud.speech.v2.UndeleteRecognizerRequest) obj; + com.google.cloud.speech.v2.UndeleteRecognizerRequest other = + (com.google.cloud.speech.v2.UndeleteRecognizerRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,8 +275,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -254,96 +284,103 @@ public int hashCode() { } public static com.google.cloud.speech.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UndeleteRecognizerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UndeleteRecognizerRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest 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.v2.UndeleteRecognizerRequest 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; } /** + * + * *
    * Request message for the
    * [UndeleteRecognizer][google.cloud.speech.v2.Speech.UndeleteRecognizer]
@@ -352,33 +389,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.UndeleteRecognizerRequest}
    */
-  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.v2.UndeleteRecognizerRequest)
       com.google.cloud.speech.v2.UndeleteRecognizerRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UndeleteRecognizerRequest.class, com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder.class);
+              com.google.cloud.speech.v2.UndeleteRecognizerRequest.class,
+              com.google.cloud.speech.v2.UndeleteRecognizerRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UndeleteRecognizerRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -390,9 +426,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
@@ -411,8 +447,11 @@ public com.google.cloud.speech.v2.UndeleteRecognizerRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UndeleteRecognizerRequest buildPartial() {
-      com.google.cloud.speech.v2.UndeleteRecognizerRequest result = new com.google.cloud.speech.v2.UndeleteRecognizerRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.UndeleteRecognizerRequest result =
+          new com.google.cloud.speech.v2.UndeleteRecognizerRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -434,38 +473,39 @@ private void buildPartial0(com.google.cloud.speech.v2.UndeleteRecognizerRequest
     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.v2.UndeleteRecognizerRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UndeleteRecognizerRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.UndeleteRecognizerRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -473,7 +513,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UndeleteRecognizerRequest other) {
-      if (other == com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -513,27 +554,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 24: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 24
-            case 34: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 24:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 24
+            case 34:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -543,23 +588,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the Recognizer to undelete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * 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; @@ -568,21 +618,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Recognizer to undelete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * 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 { @@ -590,30 +643,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Recognizer to undelete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the Recognizer to undelete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * 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() { @@ -623,18 +687,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the Recognizer to undelete.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -642,14 +712,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * If set, validate the request and preview the undeleted Recognizer, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; + * * @return The validateOnly. */ @java.lang.Override @@ -657,29 +730,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the undeleted Recognizer, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the undeleted Recognizer, but do
      * not actually undelete it.
      * 
* * bool validate_only = 3; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -691,6 +770,8 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -698,13 +779,13 @@ public Builder clearValidateOnly() {
      * 
* * string etag = 4; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; 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(); etag_ = s; return s; @@ -713,6 +794,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -720,15 +803,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 4; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; 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); etag_ = b; return b; } else { @@ -736,6 +818,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -743,18 +827,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 4; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -762,6 +850,7 @@ public Builder setEtag(
      * 
* * string etag = 4; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -771,6 +860,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * This checksum is computed by the server based on the value of other
      * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -778,21 +869,23 @@ public Builder clearEtag() {
      * 
* * string etag = 4; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -802,12 +895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UndeleteRecognizerRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UndeleteRecognizerRequest) private static final com.google.cloud.speech.v2.UndeleteRecognizerRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UndeleteRecognizerRequest(); } @@ -816,27 +909,27 @@ public static com.google.cloud.speech.v2.UndeleteRecognizerRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeleteRecognizerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeleteRecognizerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -851,6 +944,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v2.UndeleteRecognizerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java index cb43fb97d00d..a1a11469b1d1 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UndeleteRecognizerRequestOrBuilder.java @@ -1,46 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UndeleteRecognizerRequestOrBuilder extends +public interface UndeleteRecognizerRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UndeleteRecognizerRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Recognizer to undelete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * 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 Recognizer to undelete.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`
    * 
* - * 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(); /** + * + * *
    * If set, validate the request and preview the undeleted Recognizer, but do
    * not actually undelete it.
    * 
* * bool validate_only = 3; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -48,10 +78,13 @@ public interface UndeleteRecognizerRequestOrBuilder extends
    * 
* * string etag = 4; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * This checksum is computed by the server based on the value of other
    * fields. This may be sent on update, undelete, and delete requests to ensure
@@ -59,8 +92,8 @@ public interface UndeleteRecognizerRequestOrBuilder extends
    * 
* * string etag = 4; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java similarity index 69% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java index 1d449cc5fca2..fcf2dc0642c1 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [UpdateConfig][google.cloud.speech.v2.Speech.UpdateConfig] method.
@@ -11,53 +28,58 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.UpdateConfigRequest}
  */
-public final class UpdateConfigRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateConfigRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.UpdateConfigRequest)
     UpdateConfigRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateConfigRequest.newBuilder() to construct.
   private UpdateConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private UpdateConfigRequest() {
-  }
+
+  private UpdateConfigRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateConfigRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UpdateConfigRequest.class, com.google.cloud.speech.v2.UpdateConfigRequest.Builder.class);
+            com.google.cloud.speech.v2.UpdateConfigRequest.class,
+            com.google.cloud.speech.v2.UpdateConfigRequest.Builder.class);
   }
 
   public static final int CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.Config config_;
   /**
+   *
+   *
    * 
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -65,13 +87,17 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ @java.lang.Override @@ -79,13 +105,16 @@ public com.google.cloud.speech.v2.Config getConfig() { return config_ == null ? com.google.cloud.speech.v2.Config.getDefaultInstance() : config_; } /** + * + * *
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v2.ConfigOrBuilder getConfigOrBuilder() { @@ -95,11 +124,14 @@ public com.google.cloud.speech.v2.ConfigOrBuilder getConfigOrBuilder() { 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 @@ -107,11 +139,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 @@ -119,6 +154,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * 
@@ -131,6 +168,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,8 +180,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()); } @@ -160,12 +197,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 (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -175,22 +210,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.v2.UpdateConfigRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UpdateConfigRequest other = (com.google.cloud.speech.v2.UpdateConfigRequest) obj; + com.google.cloud.speech.v2.UpdateConfigRequest other = + (com.google.cloud.speech.v2.UpdateConfigRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -216,97 +250,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.UpdateConfigRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.UpdateConfigRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UpdateConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest 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.v2.UpdateConfigRequest 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; } /** + * + * *
    * Request message for the
    * [UpdateConfig][google.cloud.speech.v2.Speech.UpdateConfig] method.
@@ -314,33 +355,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.UpdateConfigRequest}
    */
-  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.v2.UpdateConfigRequest)
       com.google.cloud.speech.v2.UpdateConfigRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UpdateConfigRequest.class, com.google.cloud.speech.v2.UpdateConfigRequest.Builder.class);
+              com.google.cloud.speech.v2.UpdateConfigRequest.class,
+              com.google.cloud.speech.v2.UpdateConfigRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UpdateConfigRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -359,9 +399,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor;
     }
 
     @java.lang.Override
@@ -380,8 +420,11 @@ public com.google.cloud.speech.v2.UpdateConfigRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UpdateConfigRequest buildPartial() {
-      com.google.cloud.speech.v2.UpdateConfigRequest result = new com.google.cloud.speech.v2.UpdateConfigRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.UpdateConfigRequest result =
+          new com.google.cloud.speech.v2.UpdateConfigRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -389,14 +432,10 @@ public com.google.cloud.speech.v2.UpdateConfigRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.UpdateConfigRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.config_ = configBuilder_ == null
-            ? config_
-            : configBuilder_.build();
+        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
       }
     }
 
@@ -404,38 +443,39 @@ private void buildPartial0(com.google.cloud.speech.v2.UpdateConfigRequest result
     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.v2.UpdateConfigRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UpdateConfigRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.UpdateConfigRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -476,26 +516,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -505,32 +544,44 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.speech.v2.Config config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.Config, com.google.cloud.speech.v2.Config.Builder, com.google.cloud.speech.v2.ConfigOrBuilder> configBuilder_;
+            com.google.cloud.speech.v2.Config,
+            com.google.cloud.speech.v2.Config.Builder,
+            com.google.cloud.speech.v2.ConfigOrBuilder>
+        configBuilder_;
     /**
+     *
+     *
      * 
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v2.Config getConfig() { @@ -541,13 +592,16 @@ public com.google.cloud.speech.v2.Config getConfig() { } } /** + * + * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v2.Config value) { if (configBuilder_ == null) { @@ -563,16 +617,18 @@ public Builder setConfig(com.google.cloud.speech.v2.Config value) { return this; } /** + * + * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setConfig( - com.google.cloud.speech.v2.Config.Builder builderForValue) { + public Builder setConfig(com.google.cloud.speech.v2.Config.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); } else { @@ -583,19 +639,22 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v2.Config value) { if (configBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - config_ != null && - config_ != com.google.cloud.speech.v2.Config.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && config_ != null + && config_ != com.google.cloud.speech.v2.Config.getDefaultInstance()) { getConfigBuilder().mergeFrom(value); } else { config_ = value; @@ -608,13 +667,16 @@ public Builder mergeConfig(com.google.cloud.speech.v2.Config value) { return this; } /** + * + * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { bitField0_ = (bitField0_ & ~0x00000001); @@ -627,13 +689,16 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.Config.Builder getConfigBuilder() { bitField0_ |= 0x00000001; @@ -641,40 +706,48 @@ public com.google.cloud.speech.v2.Config.Builder getConfigBuilder() { return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.ConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v2.Config.getDefaultInstance() : config_; + return config_ == null ? com.google.cloud.speech.v2.Config.getDefaultInstance() : config_; } } /** + * + * *
      * Required. The config to update.
      * The config's `name` field is used to identify the config to be updated.
      * The expected format is `projects/{project}/locations/{location}/config`.
      * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Config, com.google.cloud.speech.v2.Config.Builder, com.google.cloud.speech.v2.ConfigOrBuilder> + com.google.cloud.speech.v2.Config, + com.google.cloud.speech.v2.Config.Builder, + com.google.cloud.speech.v2.ConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Config, com.google.cloud.speech.v2.Config.Builder, com.google.cloud.speech.v2.ConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.Config, + com.google.cloud.speech.v2.Config.Builder, + com.google.cloud.speech.v2.ConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; @@ -682,34 +755,47 @@ public com.google.cloud.speech.v2.ConfigOrBuilder getConfigOrBuilder() { 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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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.
      * 
@@ -730,14 +816,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(); } else { @@ -748,6 +835,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -756,9 +845,9 @@ public Builder setUpdateMask( */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -771,6 +860,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -788,6 +879,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -800,6 +893,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -810,11 +905,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.
      * 
@@ -822,21 +920,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); } @@ -846,12 +947,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UpdateConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UpdateConfigRequest) private static final com.google.cloud.speech.v2.UpdateConfigRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UpdateConfigRequest(); } @@ -860,27 +961,27 @@ public static com.google.cloud.speech.v2.UpdateConfigRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -895,6 +996,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.UpdateConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java index 336b01b5753f..934ae4f143d3 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateConfigRequestOrBuilder.java @@ -1,64 +1,99 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UpdateConfigRequestOrBuilder extends +public interface UpdateConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UpdateConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ com.google.cloud.speech.v2.Config getConfig(); /** + * + * *
    * Required. The config to update.
    * The config's `name` field is used to identify the config to be updated.
    * The expected format is `projects/{project}/locations/{location}/config`.
    * 
* - * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.speech.v2.Config config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v2.ConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * 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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java index 8634ee573ae2..15ac97450832 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [UpdateCustomClass][google.cloud.speech.v2.Speech.UpdateCustomClass] method.
@@ -11,46 +28,49 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UpdateCustomClassRequest.class, com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder.class);
+            com.google.cloud.speech.v2.UpdateCustomClassRequest.class,
+            com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder.class);
   }
 
   public static final int CUSTOM_CLASS_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.CustomClass customClass_;
   /**
+   *
+   *
    * 
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -58,7 +78,10 @@ protected java.lang.Object newInstance(
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ @java.lang.Override @@ -66,6 +89,8 @@ public boolean hasCustomClass() { return customClass_ != null; } /** + * + * *
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -73,14 +98,21 @@ public boolean hasCustomClass() {
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ @java.lang.Override public com.google.cloud.speech.v2.CustomClass getCustomClass() { - return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() + : customClass_; } /** + * + * *
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -88,22 +120,29 @@ public com.google.cloud.speech.v2.CustomClass getCustomClass() {
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder() { - return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() + : customClass_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -111,12 +150,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -124,6 +166,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
@@ -139,12 +183,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int VALIDATE_ONLY_FIELD_NUMBER = 4;
   private boolean validateOnly_ = false;
   /**
+   *
+   *
    * 
    * If set, validate the request and preview the updated CustomClass, but do
    * not actually update it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -153,6 +200,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,8 +212,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()); } @@ -185,16 +232,13 @@ 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()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -204,25 +248,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.v2.UpdateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UpdateCustomClassRequest other = (com.google.cloud.speech.v2.UpdateCustomClassRequest) obj; + com.google.cloud.speech.v2.UpdateCustomClassRequest other = + (com.google.cloud.speech.v2.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 (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -243,104 +285,110 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v2.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.v2.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.v2.UpdateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.UpdateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.UpdateCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UpdateCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.UpdateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UpdateCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [UpdateCustomClass][google.cloud.speech.v2.Speech.UpdateCustomClass] method.
@@ -348,33 +396,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.UpdateCustomClassRequest)
       com.google.cloud.speech.v2.UpdateCustomClassRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UpdateCustomClassRequest.class, com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder.class);
+              com.google.cloud.speech.v2.UpdateCustomClassRequest.class,
+              com.google.cloud.speech.v2.UpdateCustomClassRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UpdateCustomClassRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -394,9 +441,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor;
     }
 
     @java.lang.Override
@@ -415,8 +462,11 @@ public com.google.cloud.speech.v2.UpdateCustomClassRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UpdateCustomClassRequest buildPartial() {
-      com.google.cloud.speech.v2.UpdateCustomClassRequest result = new com.google.cloud.speech.v2.UpdateCustomClassRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.UpdateCustomClassRequest result =
+          new com.google.cloud.speech.v2.UpdateCustomClassRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -424,14 +474,11 @@ public com.google.cloud.speech.v2.UpdateCustomClassRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.UpdateCustomClassRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.customClass_ = customClassBuilder_ == null
-            ? customClass_
-            : customClassBuilder_.build();
+        result.customClass_ =
+            customClassBuilder_ == null ? customClass_ : customClassBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -442,38 +489,39 @@ private void buildPartial0(com.google.cloud.speech.v2.UpdateCustomClassRequest r
     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.v2.UpdateCustomClassRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UpdateCustomClassRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.UpdateCustomClassRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -481,7 +529,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UpdateCustomClassRequest other) {
-      if (other == com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.UpdateCustomClassRequest.getDefaultInstance())
+        return this;
       if (other.hasCustomClass()) {
         mergeCustomClass(other.getCustomClass());
       }
@@ -517,31 +566,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getCustomClassFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 32: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getCustomClassFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 32:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -551,12 +600,18 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.speech.v2.CustomClass customClass_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> customClassBuilder_;
+            com.google.cloud.speech.v2.CustomClass,
+            com.google.cloud.speech.v2.CustomClass.Builder,
+            com.google.cloud.speech.v2.CustomClassOrBuilder>
+        customClassBuilder_;
     /**
+     *
+     *
      * 
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -564,13 +619,18 @@ public Builder mergeFrom(
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -578,17 +638,24 @@ public boolean hasCustomClass() {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ public com.google.cloud.speech.v2.CustomClass getCustomClass() { if (customClassBuilder_ == null) { - return customClass_ == null ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() + : customClass_; } else { return customClassBuilder_.getMessage(); } } /** + * + * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -596,7 +663,9 @@ public com.google.cloud.speech.v2.CustomClass getCustomClass() {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass value) { if (customClassBuilder_ == null) { @@ -612,6 +681,8 @@ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass value) { return this; } /** + * + * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -619,10 +690,11 @@ public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass value) {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCustomClass( - com.google.cloud.speech.v2.CustomClass.Builder builderForValue) { + public Builder setCustomClass(com.google.cloud.speech.v2.CustomClass.Builder builderForValue) { if (customClassBuilder_ == null) { customClass_ = builderForValue.build(); } else { @@ -633,6 +705,8 @@ public Builder setCustomClass( return this; } /** + * + * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -640,13 +714,15 @@ public Builder setCustomClass(
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCustomClass(com.google.cloud.speech.v2.CustomClass value) { if (customClassBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - customClass_ != null && - customClass_ != com.google.cloud.speech.v2.CustomClass.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && customClass_ != null + && customClass_ != com.google.cloud.speech.v2.CustomClass.getDefaultInstance()) { getCustomClassBuilder().mergeFrom(value); } else { customClass_ = value; @@ -659,6 +735,8 @@ public Builder mergeCustomClass(com.google.cloud.speech.v2.CustomClass value) { return this; } /** + * + * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -666,7 +744,9 @@ public Builder mergeCustomClass(com.google.cloud.speech.v2.CustomClass value) {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCustomClass() { bitField0_ = (bitField0_ & ~0x00000001); @@ -679,6 +759,8 @@ public Builder clearCustomClass() { return this; } /** + * + * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -686,7 +768,9 @@ public Builder clearCustomClass() {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassBuilder() { bitField0_ |= 0x00000001; @@ -694,6 +778,8 @@ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassBuilder() { return getCustomClassFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -701,17 +787,22 @@ public com.google.cloud.speech.v2.CustomClass.Builder getCustomClassBuilder() {
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder() { if (customClassBuilder_ != null) { return customClassBuilder_.getMessageOrBuilder(); } else { - return customClass_ == null ? - com.google.cloud.speech.v2.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v2.CustomClass.getDefaultInstance() + : customClass_; } } /** + * + * *
      * Required. The CustomClass to update.
      * The CustomClass's `name` field is used to identify the CustomClass to
@@ -719,17 +810,22 @@ public com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder()
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
      * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder> + com.google.cloud.speech.v2.CustomClass, + com.google.cloud.speech.v2.CustomClass.Builder, + com.google.cloud.speech.v2.CustomClassOrBuilder> getCustomClassFieldBuilder() { if (customClassBuilder_ == null) { - customClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.CustomClass, com.google.cloud.speech.v2.CustomClass.Builder, com.google.cloud.speech.v2.CustomClassOrBuilder>( - getCustomClass(), - getParentForChildren(), - isClean()); + customClassBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.CustomClass, + com.google.cloud.speech.v2.CustomClass.Builder, + com.google.cloud.speech.v2.CustomClassOrBuilder>( + getCustomClass(), getParentForChildren(), isClean()); customClass_ = null; } return customClassBuilder_; @@ -737,36 +833,49 @@ public com.google.cloud.speech.v2.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. If empty, all fields are considered for
      * update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
      * 
* * .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. If empty, all fields are considered for
      * update.
@@ -788,6 +897,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
@@ -795,8 +906,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .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();
       } else {
@@ -807,6 +917,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
@@ -816,9 +928,9 @@ public Builder setUpdateMask(
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          updateMask_ != null &&
-          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && updateMask_ != null
+            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -831,6 +943,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
@@ -849,6 +963,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
@@ -862,6 +978,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields to be updated. If empty, all fields are considered for
      * update.
@@ -873,11 +991,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. If empty, all fields are considered for
      * update.
@@ -886,27 +1007,33 @@ 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_;
     }
 
-    private boolean validateOnly_ ;
+    private boolean validateOnly_;
     /**
+     *
+     *
      * 
      * If set, validate the request and preview the updated CustomClass, but do
      * not actually update it.
      * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -914,29 +1041,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the updated CustomClass, but do
      * not actually update it.
      * 
* * bool validate_only = 4; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the updated CustomClass, but do
      * not actually update it.
      * 
* * bool validate_only = 4; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -945,9 +1078,9 @@ public Builder clearValidateOnly() { 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); } @@ -957,12 +1090,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UpdateCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UpdateCustomClassRequest) private static final com.google.cloud.speech.v2.UpdateCustomClassRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UpdateCustomClassRequest(); } @@ -971,27 +1104,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,6 +1139,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.UpdateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java index 38d67c91c3d4..fcd686776acc 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateCustomClassRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UpdateCustomClassRequestOrBuilder extends +public interface UpdateCustomClassRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UpdateCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -15,11 +33,16 @@ public interface UpdateCustomClassRequestOrBuilder extends
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ boolean hasCustomClass(); /** + * + * *
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -27,11 +50,16 @@ public interface UpdateCustomClassRequestOrBuilder extends
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ com.google.cloud.speech.v2.CustomClass getCustomClass(); /** + * + * *
    * Required. The CustomClass to update.
    * The CustomClass's `name` field is used to identify the CustomClass to
@@ -39,31 +67,41 @@ public interface UpdateCustomClassRequestOrBuilder extends
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`.
    * 
* - * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v2.CustomClassOrBuilder getCustomClassOrBuilder(); /** + * + * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to be updated. If empty, all fields are considered for
    * update.
@@ -74,12 +112,15 @@ public interface UpdateCustomClassRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * If set, validate the request and preview the updated CustomClass, but do
    * not actually update it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java similarity index 68% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java index 0308a920ff72..34f1dea70e2f 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [UpdatePhraseSet][google.cloud.speech.v2.Speech.UpdatePhraseSet] method.
@@ -11,53 +28,59 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.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.v2.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;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UpdatePhraseSetRequest.class, com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder.class);
+            com.google.cloud.speech.v2.UpdatePhraseSetRequest.class,
+            com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder.class);
   }
 
   public static final int PHRASE_SET_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.PhraseSet phraseSet_;
   /**
+   *
+   *
    * 
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -65,42 +88,58 @@ public boolean hasPhraseSet() { return phraseSet_ != null; } /** + * + * *
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSet getPhraseSet() { - return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() + : phraseSet_; } /** + * + * *
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder() { - return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() + : phraseSet_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -108,12 +147,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -121,6 +163,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -136,12 +180,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int VALIDATE_ONLY_FIELD_NUMBER = 4;
   private boolean validateOnly_ = false;
   /**
+   *
+   *
    * 
    * If set, validate the request and preview the updated PhraseSet, but do not
    * actually update it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -150,6 +197,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +209,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()); } @@ -182,16 +229,13 @@ 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()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -201,25 +245,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.v2.UpdatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UpdatePhraseSetRequest other = (com.google.cloud.speech.v2.UpdatePhraseSetRequest) obj; + com.google.cloud.speech.v2.UpdatePhraseSetRequest other = + (com.google.cloud.speech.v2.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 (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -240,104 +282,110 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v2.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.v2.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.v2.UpdatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.UpdatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.UpdatePhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UpdatePhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.UpdatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UpdatePhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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; } /** + * + * *
    * Request message for the
    * [UpdatePhraseSet][google.cloud.speech.v2.Speech.UpdatePhraseSet] method.
@@ -345,33 +393,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.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.v2.UpdatePhraseSetRequest)
       com.google.cloud.speech.v2.UpdatePhraseSetRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UpdatePhraseSetRequest.class, com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder.class);
+              com.google.cloud.speech.v2.UpdatePhraseSetRequest.class,
+              com.google.cloud.speech.v2.UpdatePhraseSetRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UpdatePhraseSetRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -391,9 +438,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor;
     }
 
     @java.lang.Override
@@ -412,8 +459,11 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UpdatePhraseSetRequest buildPartial() {
-      com.google.cloud.speech.v2.UpdatePhraseSetRequest result = new com.google.cloud.speech.v2.UpdatePhraseSetRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.UpdatePhraseSetRequest result =
+          new com.google.cloud.speech.v2.UpdatePhraseSetRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -421,14 +471,10 @@ public com.google.cloud.speech.v2.UpdatePhraseSetRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.UpdatePhraseSetRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.phraseSet_ = phraseSetBuilder_ == null
-            ? phraseSet_
-            : phraseSetBuilder_.build();
+        result.phraseSet_ = phraseSetBuilder_ == null ? phraseSet_ : phraseSetBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -439,38 +485,39 @@ private void buildPartial0(com.google.cloud.speech.v2.UpdatePhraseSetRequest res
     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.v2.UpdatePhraseSetRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UpdatePhraseSetRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.UpdatePhraseSetRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -478,7 +525,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UpdatePhraseSetRequest other) {
-      if (other == com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.UpdatePhraseSetRequest.getDefaultInstance())
+        return this;
       if (other.hasPhraseSet()) {
         mergePhraseSet(other.getPhraseSet());
       }
@@ -514,31 +562,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getPhraseSetFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 32: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getPhraseSetFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 32:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -548,49 +596,69 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.speech.v2.PhraseSet phraseSet_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> phraseSetBuilder_;
+            com.google.cloud.speech.v2.PhraseSet,
+            com.google.cloud.speech.v2.PhraseSet.Builder,
+            com.google.cloud.speech.v2.PhraseSetOrBuilder>
+        phraseSetBuilder_;
     /**
+     *
+     *
      * 
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ public com.google.cloud.speech.v2.PhraseSet getPhraseSet() { if (phraseSetBuilder_ == null) { - return phraseSet_ == null ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() + : phraseSet_; } else { return phraseSetBuilder_.getMessage(); } } /** + * + * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetBuilder_ == null) { @@ -606,16 +674,19 @@ public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** + * + * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setPhraseSet( - com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { + public Builder setPhraseSet(com.google.cloud.speech.v2.PhraseSet.Builder builderForValue) { if (phraseSetBuilder_ == null) { phraseSet_ = builderForValue.build(); } else { @@ -626,19 +697,23 @@ public Builder setPhraseSet( return this; } /** + * + * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { if (phraseSetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - phraseSet_ != null && - phraseSet_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && phraseSet_ != null + && phraseSet_ != com.google.cloud.speech.v2.PhraseSet.getDefaultInstance()) { getPhraseSetBuilder().mergeFrom(value); } else { phraseSet_ = value; @@ -651,13 +726,17 @@ public Builder mergePhraseSet(com.google.cloud.speech.v2.PhraseSet value) { return this; } /** + * + * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPhraseSet() { bitField0_ = (bitField0_ & ~0x00000001); @@ -670,13 +749,17 @@ public Builder clearPhraseSet() { return this; } /** + * + * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetBuilder() { bitField0_ |= 0x00000001; @@ -684,40 +767,52 @@ public com.google.cloud.speech.v2.PhraseSet.Builder getPhraseSetBuilder() { return getPhraseSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder() { if (phraseSetBuilder_ != null) { return phraseSetBuilder_.getMessageOrBuilder(); } else { - return phraseSet_ == null ? - com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v2.PhraseSet.getDefaultInstance() + : phraseSet_; } } /** + * + * *
      * Required. The PhraseSet to update.
      * The PhraseSet's `name` field is used to identify the PhraseSet to update.
      * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
      * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder> + com.google.cloud.speech.v2.PhraseSet, + com.google.cloud.speech.v2.PhraseSet.Builder, + com.google.cloud.speech.v2.PhraseSetOrBuilder> getPhraseSetFieldBuilder() { if (phraseSetBuilder_ == null) { - phraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.PhraseSet, com.google.cloud.speech.v2.PhraseSet.Builder, com.google.cloud.speech.v2.PhraseSetOrBuilder>( - getPhraseSet(), - getParentForChildren(), - isClean()); + phraseSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.PhraseSet, + com.google.cloud.speech.v2.PhraseSet.Builder, + com.google.cloud.speech.v2.PhraseSetOrBuilder>( + getPhraseSet(), getParentForChildren(), isClean()); phraseSet_ = null; } return phraseSetBuilder_; @@ -725,36 +820,49 @@ public com.google.cloud.speech.v2.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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
      * 
* * .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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -776,6 +884,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -783,8 +893,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .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();
       } else {
@@ -795,6 +904,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -804,9 +915,9 @@ public Builder setUpdateMask(
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          updateMask_ != null &&
-          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && updateMask_ != null
+            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -819,6 +930,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -837,6 +950,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -850,6 +965,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -861,11 +978,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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -874,27 +994,33 @@ 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_;
     }
 
-    private boolean validateOnly_ ;
+    private boolean validateOnly_;
     /**
+     *
+     *
      * 
      * If set, validate the request and preview the updated PhraseSet, but do not
      * actually update it.
      * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -902,29 +1028,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the updated PhraseSet, but do not
      * actually update it.
      * 
* * bool validate_only = 4; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the updated PhraseSet, but do not
      * actually update it.
      * 
* * bool validate_only = 4; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -933,9 +1065,9 @@ public Builder clearValidateOnly() { 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); } @@ -945,12 +1077,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UpdatePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UpdatePhraseSetRequest) private static final com.google.cloud.speech.v2.UpdatePhraseSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UpdatePhraseSetRequest(); } @@ -959,27 +1091,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -994,6 +1126,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.UpdatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java index 216191fec0a8..c45c34e09307 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdatePhraseSetRequestOrBuilder.java @@ -1,66 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UpdatePhraseSetRequestOrBuilder extends +public interface UpdatePhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UpdatePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** + * + * *
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ com.google.cloud.speech.v2.PhraseSet getPhraseSet(); /** + * + * *
    * Required. The PhraseSet to update.
    * The PhraseSet's `name` field is used to identify the PhraseSet to update.
    * Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
    * 
* - * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v2.PhraseSetOrBuilder getPhraseSetOrBuilder(); /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire PhraseSet resource.
@@ -71,12 +109,15 @@ public interface UpdatePhraseSetRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * If set, validate the request and preview the updated PhraseSet, but do not
    * actually update it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java similarity index 67% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java index c8155b5da2ac..cdc3d817982a 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequest.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Request message for the
  * [UpdateRecognizer][google.cloud.speech.v2.Speech.UpdateRecognizer] method.
@@ -11,53 +28,59 @@
  *
  * Protobuf type {@code google.cloud.speech.v2.UpdateRecognizerRequest}
  */
-public final class UpdateRecognizerRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateRecognizerRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v2.UpdateRecognizerRequest)
     UpdateRecognizerRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateRecognizerRequest.newBuilder() to construct.
   private UpdateRecognizerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private UpdateRecognizerRequest() {
-  }
+
+  private UpdateRecognizerRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateRecognizerRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable
+    return com.google.cloud.speech.v2.CloudSpeechProto
+        .internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v2.UpdateRecognizerRequest.class, com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder.class);
+            com.google.cloud.speech.v2.UpdateRecognizerRequest.class,
+            com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder.class);
   }
 
   public static final int RECOGNIZER_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v2.Recognizer recognizer_;
   /**
+   *
+   *
    * 
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the recognizer field is set. */ @java.lang.Override @@ -65,42 +88,58 @@ public boolean hasRecognizer() { return recognizer_ != null; } /** + * + * *
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The recognizer. */ @java.lang.Override public com.google.cloud.speech.v2.Recognizer getRecognizer() { - return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; + return recognizer_ == null + ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() + : recognizer_; } /** + * + * *
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder() { - return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; + return recognizer_ == null + ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() + : recognizer_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -108,12 +147,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -121,6 +163,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
@@ -136,12 +180,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   public static final int VALIDATE_ONLY_FIELD_NUMBER = 4;
   private boolean validateOnly_ = false;
   /**
+   *
+   *
    * 
    * If set, validate the request and preview the updated Recognizer, but do not
    * actually update it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -150,6 +197,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +209,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 (recognizer_ != null) { output.writeMessage(1, getRecognizer()); } @@ -182,16 +229,13 @@ public int getSerializedSize() { size = 0; if (recognizer_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRecognizer()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRecognizer()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -201,25 +245,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.v2.UpdateRecognizerRequest)) { return super.equals(obj); } - com.google.cloud.speech.v2.UpdateRecognizerRequest other = (com.google.cloud.speech.v2.UpdateRecognizerRequest) obj; + com.google.cloud.speech.v2.UpdateRecognizerRequest other = + (com.google.cloud.speech.v2.UpdateRecognizerRequest) obj; if (hasRecognizer() != other.hasRecognizer()) return false; if (hasRecognizer()) { - if (!getRecognizer() - .equals(other.getRecognizer())) return false; + if (!getRecognizer().equals(other.getRecognizer())) 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 (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -240,104 +282,110 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UpdateRecognizerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v2.UpdateRecognizerRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest 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.v2.UpdateRecognizerRequest 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; } /** + * + * *
    * Request message for the
    * [UpdateRecognizer][google.cloud.speech.v2.Speech.UpdateRecognizer] method.
@@ -345,33 +393,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v2.UpdateRecognizerRequest}
    */
-  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.v2.UpdateRecognizerRequest)
       com.google.cloud.speech.v2.UpdateRecognizerRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v2.UpdateRecognizerRequest.class, com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder.class);
+              com.google.cloud.speech.v2.UpdateRecognizerRequest.class,
+              com.google.cloud.speech.v2.UpdateRecognizerRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v2.UpdateRecognizerRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -391,9 +438,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v2.CloudSpeechProto
+          .internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor;
     }
 
     @java.lang.Override
@@ -412,8 +459,11 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v2.UpdateRecognizerRequest buildPartial() {
-      com.google.cloud.speech.v2.UpdateRecognizerRequest result = new com.google.cloud.speech.v2.UpdateRecognizerRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.speech.v2.UpdateRecognizerRequest result =
+          new com.google.cloud.speech.v2.UpdateRecognizerRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -421,14 +471,10 @@ public com.google.cloud.speech.v2.UpdateRecognizerRequest buildPartial() {
     private void buildPartial0(com.google.cloud.speech.v2.UpdateRecognizerRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.recognizer_ = recognizerBuilder_ == null
-            ? recognizer_
-            : recognizerBuilder_.build();
+        result.recognizer_ = recognizerBuilder_ == null ? recognizer_ : recognizerBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.validateOnly_ = validateOnly_;
@@ -439,38 +485,39 @@ private void buildPartial0(com.google.cloud.speech.v2.UpdateRecognizerRequest re
     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.v2.UpdateRecognizerRequest) {
-        return mergeFrom((com.google.cloud.speech.v2.UpdateRecognizerRequest)other);
+        return mergeFrom((com.google.cloud.speech.v2.UpdateRecognizerRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -478,7 +525,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v2.UpdateRecognizerRequest other) {
-      if (other == com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance())
+        return this;
       if (other.hasRecognizer()) {
         mergeRecognizer(other.getRecognizer());
       }
@@ -514,31 +562,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getRecognizerFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 32: {
-              validateOnly_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getRecognizerFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 32:
+              {
+                validateOnly_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -548,49 +596,69 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.speech.v2.Recognizer recognizer_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> recognizerBuilder_;
+            com.google.cloud.speech.v2.Recognizer,
+            com.google.cloud.speech.v2.Recognizer.Builder,
+            com.google.cloud.speech.v2.RecognizerOrBuilder>
+        recognizerBuilder_;
     /**
+     *
+     *
      * 
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the recognizer field is set. */ public boolean hasRecognizer() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The recognizer. */ public com.google.cloud.speech.v2.Recognizer getRecognizer() { if (recognizerBuilder_ == null) { - return recognizer_ == null ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; + return recognizer_ == null + ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() + : recognizer_; } else { return recognizerBuilder_.getMessage(); } } /** + * + * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer value) { if (recognizerBuilder_ == null) { @@ -606,16 +674,19 @@ public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer value) { return this; } /** + * + * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setRecognizer( - com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { + public Builder setRecognizer(com.google.cloud.speech.v2.Recognizer.Builder builderForValue) { if (recognizerBuilder_ == null) { recognizer_ = builderForValue.build(); } else { @@ -626,19 +697,23 @@ public Builder setRecognizer( return this; } /** + * + * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeRecognizer(com.google.cloud.speech.v2.Recognizer value) { if (recognizerBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - recognizer_ != null && - recognizer_ != com.google.cloud.speech.v2.Recognizer.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && recognizer_ != null + && recognizer_ != com.google.cloud.speech.v2.Recognizer.getDefaultInstance()) { getRecognizerBuilder().mergeFrom(value); } else { recognizer_ = value; @@ -651,13 +726,17 @@ public Builder mergeRecognizer(com.google.cloud.speech.v2.Recognizer value) { return this; } /** + * + * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRecognizer() { bitField0_ = (bitField0_ & ~0x00000001); @@ -670,13 +749,17 @@ public Builder clearRecognizer() { return this; } /** + * + * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.Recognizer.Builder getRecognizerBuilder() { bitField0_ |= 0x00000001; @@ -684,40 +767,52 @@ public com.google.cloud.speech.v2.Recognizer.Builder getRecognizerBuilder() { return getRecognizerFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder() { if (recognizerBuilder_ != null) { return recognizerBuilder_.getMessageOrBuilder(); } else { - return recognizer_ == null ? - com.google.cloud.speech.v2.Recognizer.getDefaultInstance() : recognizer_; + return recognizer_ == null + ? com.google.cloud.speech.v2.Recognizer.getDefaultInstance() + : recognizer_; } } /** + * + * *
      * Required. The Recognizer to update.
      * The Recognizer's `name` field is used to identify the Recognizer to update.
      * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
      * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder> + com.google.cloud.speech.v2.Recognizer, + com.google.cloud.speech.v2.Recognizer.Builder, + com.google.cloud.speech.v2.RecognizerOrBuilder> getRecognizerFieldBuilder() { if (recognizerBuilder_ == null) { - recognizerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v2.Recognizer, com.google.cloud.speech.v2.Recognizer.Builder, com.google.cloud.speech.v2.RecognizerOrBuilder>( - getRecognizer(), - getParentForChildren(), - isClean()); + recognizerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v2.Recognizer, + com.google.cloud.speech.v2.Recognizer.Builder, + com.google.cloud.speech.v2.RecognizerOrBuilder>( + getRecognizer(), getParentForChildren(), isClean()); recognizer_ = null; } return recognizerBuilder_; @@ -725,36 +820,49 @@ public com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder() { 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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
      * 
* * .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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -776,6 +884,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -783,8 +893,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .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();
       } else {
@@ -795,6 +904,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -804,9 +915,9 @@ public Builder setUpdateMask(
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          updateMask_ != null &&
-          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && updateMask_ != null
+            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -819,6 +930,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -837,6 +950,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -850,6 +965,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The list of fields to update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -861,11 +978,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 update. If empty, all non-default valued fields are
      * considered for update. Use `*` to update the entire Recognizer resource.
@@ -874,27 +994,33 @@ 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_;
     }
 
-    private boolean validateOnly_ ;
+    private boolean validateOnly_;
     /**
+     *
+     *
      * 
      * If set, validate the request and preview the updated Recognizer, but do not
      * actually update it.
      * 
* * bool validate_only = 4; + * * @return The validateOnly. */ @java.lang.Override @@ -902,29 +1028,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * If set, validate the request and preview the updated Recognizer, but do not
      * actually update it.
      * 
* * bool validate_only = 4; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If set, validate the request and preview the updated Recognizer, but do not
      * actually update it.
      * 
* * bool validate_only = 4; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -933,9 +1065,9 @@ public Builder clearValidateOnly() { 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); } @@ -945,12 +1077,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.UpdateRecognizerRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.UpdateRecognizerRequest) private static final com.google.cloud.speech.v2.UpdateRecognizerRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.UpdateRecognizerRequest(); } @@ -959,27 +1091,27 @@ public static com.google.cloud.speech.v2.UpdateRecognizerRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateRecognizerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateRecognizerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -994,6 +1126,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.UpdateRecognizerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java index 4ee8739be893..b2625dfe5eeb 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/UpdateRecognizerRequestOrBuilder.java @@ -1,66 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface UpdateRecognizerRequestOrBuilder extends +public interface UpdateRecognizerRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.UpdateRecognizerRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the recognizer field is set. */ boolean hasRecognizer(); /** + * + * *
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The recognizer. */ com.google.cloud.speech.v2.Recognizer getRecognizer(); /** + * + * *
    * Required. The Recognizer to update.
    * The Recognizer's `name` field is used to identify the Recognizer to update.
    * Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.
    * 
* - * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v2.RecognizerOrBuilder getRecognizerOrBuilder(); /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to update. If empty, all non-default valued fields are
    * considered for update. Use `*` to update the entire Recognizer resource.
@@ -71,12 +109,15 @@ public interface UpdateRecognizerRequestOrBuilder extends
   com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
 
   /**
+   *
+   *
    * 
    * If set, validate the request and preview the updated Recognizer, but do not
    * actually update it.
    * 
* * bool validate_only = 4; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java similarity index 77% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java index 50feb29138ee..d4d3f21f5b70 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.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/v2/cloud_speech.proto package com.google.cloud.speech.v2; /** + * + * *
  * Word-specific information for recognized words.
  * 
* * Protobuf type {@code google.cloud.speech.v2.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.v2.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_ = ""; speakerLabel_ = ""; @@ -26,32 +44,35 @@ private WordInfo() { @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; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_WordInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.WordInfo.class, com.google.cloud.speech.v2.WordInfo.Builder.class); + com.google.cloud.speech.v2.WordInfo.class, + com.google.cloud.speech.v2.WordInfo.Builder.class); } public static final int START_OFFSET_FIELD_NUMBER = 1; private com.google.protobuf.Duration startOffset_; /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -62,6 +83,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.protobuf.Duration start_offset = 1; + * * @return Whether the startOffset field is set. */ @java.lang.Override @@ -69,6 +91,8 @@ public boolean hasStartOffset() { return startOffset_ != null; } /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -79,6 +103,7 @@ public boolean hasStartOffset() {
    * 
* * .google.protobuf.Duration start_offset = 1; + * * @return The startOffset. */ @java.lang.Override @@ -86,6 +111,8 @@ public com.google.protobuf.Duration getStartOffset() { return startOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startOffset_; } /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -105,6 +132,8 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
   public static final int END_OFFSET_FIELD_NUMBER = 2;
   private com.google.protobuf.Duration endOffset_;
   /**
+   *
+   *
    * 
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -115,6 +144,7 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
    * 
* * .google.protobuf.Duration end_offset = 2; + * * @return Whether the endOffset field is set. */ @java.lang.Override @@ -122,6 +152,8 @@ public boolean hasEndOffset() { return endOffset_ != null; } /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -132,6 +164,7 @@ public boolean hasEndOffset() {
    * 
* * .google.protobuf.Duration end_offset = 2; + * * @return The endOffset. */ @java.lang.Override @@ -139,6 +172,8 @@ public com.google.protobuf.Duration getEndOffset() { return endOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endOffset_; } /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -156,14 +191,18 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
   }
 
   public static final int WORD_FIELD_NUMBER = 3;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object word_ = "";
   /**
+   *
+   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The word. */ @java.lang.Override @@ -172,29 +211,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 { @@ -205,6 +244,8 @@ public java.lang.String getWord() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_ = 0F; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -217,6 +258,7 @@ public java.lang.String getWord() {
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -225,9 +267,12 @@ public float getConfidence() { } public static final int SPEAKER_LABEL_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object speakerLabel_ = ""; /** + * + * *
    * A distinct label is assigned for every speaker within the audio. This field
    * specifies which one of those speakers was detected to have spoken this
@@ -237,6 +282,7 @@ public float getConfidence() {
    * 
* * string speaker_label = 6; + * * @return The speakerLabel. */ @java.lang.Override @@ -245,14 +291,15 @@ public java.lang.String getSpeakerLabel() { 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(); speakerLabel_ = s; return s; } } /** + * + * *
    * A distinct label is assigned for every speaker within the audio. This field
    * specifies which one of those speakers was detected to have spoken this
@@ -262,16 +309,15 @@ public java.lang.String getSpeakerLabel() {
    * 
* * string speaker_label = 6; + * * @return The bytes for speakerLabel. */ @java.lang.Override - public com.google.protobuf.ByteString - getSpeakerLabelBytes() { + public com.google.protobuf.ByteString getSpeakerLabelBytes() { java.lang.Object ref = speakerLabel_; 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); speakerLabel_ = b; return b; } else { @@ -280,6 +326,7 @@ public java.lang.String getSpeakerLabel() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -291,8 +338,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 (startOffset_ != null) { output.writeMessage(1, getStartOffset()); } @@ -318,19 +364,16 @@ public int getSerializedSize() { size = 0; if (startOffset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartOffset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartOffset()); } if (endOffset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndOffset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndOffset()); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(speakerLabel_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, speakerLabel_); @@ -343,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.v2.WordInfo)) { return super.equals(obj); @@ -352,21 +395,16 @@ public boolean equals(final java.lang.Object obj) { if (hasStartOffset() != other.hasStartOffset()) return false; if (hasStartOffset()) { - if (!getStartOffset() - .equals(other.getStartOffset())) return false; + if (!getStartOffset().equals(other.getStartOffset())) return false; } if (hasEndOffset() != other.hasEndOffset()) return false; if (hasEndOffset()) { - if (!getEndOffset() - .equals(other.getEndOffset())) return false; + if (!getEndOffset().equals(other.getEndOffset())) 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 (!getSpeakerLabel() - .equals(other.getSpeakerLabel())) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + if (!getSpeakerLabel().equals(other.getSpeakerLabel())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -389,8 +427,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_LABEL_FIELD_NUMBER; hash = (53 * hash) + getSpeakerLabel().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -398,130 +435,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v2.WordInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v2.WordInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.WordInfo parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.speech.v2.WordInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.WordInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.WordInfo) com.google.cloud.speech.v2.WordInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_WordInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v2.WordInfo.class, com.google.cloud.speech.v2.WordInfo.Builder.class); + com.google.cloud.speech.v2.WordInfo.class, + com.google.cloud.speech.v2.WordInfo.Builder.class); } // Construct using com.google.cloud.speech.v2.WordInfo.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -543,9 +585,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v2.CloudSpeechProto.internal_static_google_cloud_speech_v2_WordInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v2.CloudSpeechProto + .internal_static_google_cloud_speech_v2_WordInfo_descriptor; } @java.lang.Override @@ -565,7 +607,9 @@ public com.google.cloud.speech.v2.WordInfo build() { @java.lang.Override public com.google.cloud.speech.v2.WordInfo buildPartial() { com.google.cloud.speech.v2.WordInfo result = new com.google.cloud.speech.v2.WordInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -573,14 +617,11 @@ public com.google.cloud.speech.v2.WordInfo buildPartial() { private void buildPartial0(com.google.cloud.speech.v2.WordInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startOffset_ = startOffsetBuilder_ == null - ? startOffset_ - : startOffsetBuilder_.build(); + result.startOffset_ = + startOffsetBuilder_ == null ? startOffset_ : startOffsetBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endOffset_ = endOffsetBuilder_ == null - ? endOffset_ - : endOffsetBuilder_.build(); + result.endOffset_ = endOffsetBuilder_ == null ? endOffset_ : endOffsetBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.word_ = word_; @@ -597,38 +638,39 @@ private void buildPartial0(com.google.cloud.speech.v2.WordInfo result) { 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.v2.WordInfo) { - return mergeFrom((com.google.cloud.speech.v2.WordInfo)other); + return mergeFrom((com.google.cloud.speech.v2.WordInfo) other); } else { super.mergeFrom(other); return this; @@ -682,41 +724,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStartOffsetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndOffsetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - word_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 37: { - confidence_ = input.readFloat(); - bitField0_ |= 0x00000008; - break; - } // case 37 - case 50: { - speakerLabel_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStartOffsetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndOffsetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + word_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 37: + { + confidence_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 37 + case 50: + { + speakerLabel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -726,12 +770,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Duration startOffset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> startOffsetBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + startOffsetBuilder_; /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -742,12 +792,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_offset = 1; + * * @return Whether the startOffset field is set. */ public boolean hasStartOffset() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -758,16 +811,21 @@ public boolean hasStartOffset() {
      * 
* * .google.protobuf.Duration start_offset = 1; + * * @return The startOffset. */ public com.google.protobuf.Duration getStartOffset() { if (startOffsetBuilder_ == null) { - return startOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startOffset_; + return startOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : startOffset_; } else { return startOffsetBuilder_.getMessage(); } } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -793,6 +851,8 @@ public Builder setStartOffset(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.
@@ -804,8 +864,7 @@ public Builder setStartOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration start_offset = 1;
      */
-    public Builder setStartOffset(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setStartOffset(com.google.protobuf.Duration.Builder builderForValue) {
       if (startOffsetBuilder_ == null) {
         startOffset_ = builderForValue.build();
       } else {
@@ -816,6 +875,8 @@ public Builder setStartOffset(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -829,9 +890,9 @@ public Builder setStartOffset(
      */
     public Builder mergeStartOffset(com.google.protobuf.Duration value) {
       if (startOffsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          startOffset_ != null &&
-          startOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && startOffset_ != null
+            && startOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getStartOffsetBuilder().mergeFrom(value);
         } else {
           startOffset_ = value;
@@ -844,6 +905,8 @@ public Builder mergeStartOffset(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.
@@ -866,6 +929,8 @@ public Builder clearStartOffset() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -883,6 +948,8 @@ public com.google.protobuf.Duration.Builder getStartOffsetBuilder() {
       return getStartOffsetFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -898,11 +965,14 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
       if (startOffsetBuilder_ != null) {
         return startOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return startOffset_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : startOffset_;
+        return startOffset_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : startOffset_;
       }
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -915,14 +985,17 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
      * .google.protobuf.Duration start_offset = 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>
         getStartOffsetFieldBuilder() {
       if (startOffsetBuilder_ == null) {
-        startOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getStartOffset(),
-                getParentForChildren(),
-                isClean());
+        startOffsetBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getStartOffset(), getParentForChildren(), isClean());
         startOffset_ = null;
       }
       return startOffsetBuilder_;
@@ -930,8 +1003,13 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
 
     private com.google.protobuf.Duration endOffset_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> endOffsetBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        endOffsetBuilder_;
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -942,12 +1020,15 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
      * 
* * .google.protobuf.Duration end_offset = 2; + * * @return Whether the endOffset field is set. */ public boolean hasEndOffset() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -958,6 +1039,7 @@ public boolean hasEndOffset() {
      * 
* * .google.protobuf.Duration end_offset = 2; + * * @return The endOffset. */ public com.google.protobuf.Duration getEndOffset() { @@ -968,6 +1050,8 @@ public com.google.protobuf.Duration getEndOffset() { } } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -993,6 +1077,8 @@ public Builder setEndOffset(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.
@@ -1004,8 +1090,7 @@ public Builder setEndOffset(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration end_offset = 2;
      */
-    public Builder setEndOffset(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setEndOffset(com.google.protobuf.Duration.Builder builderForValue) {
       if (endOffsetBuilder_ == null) {
         endOffset_ = builderForValue.build();
       } else {
@@ -1016,6 +1101,8 @@ public Builder setEndOffset(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1029,9 +1116,9 @@ public Builder setEndOffset(
      */
     public Builder mergeEndOffset(com.google.protobuf.Duration value) {
       if (endOffsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          endOffset_ != null &&
-          endOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && endOffset_ != null
+            && endOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getEndOffsetBuilder().mergeFrom(value);
         } else {
           endOffset_ = value;
@@ -1044,6 +1131,8 @@ public Builder mergeEndOffset(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.
@@ -1066,6 +1155,8 @@ public Builder clearEndOffset() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1083,6 +1174,8 @@ public com.google.protobuf.Duration.Builder getEndOffsetBuilder() {
       return getEndOffsetFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1098,11 +1191,12 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
       if (endOffsetBuilder_ != null) {
         return endOffsetBuilder_.getMessageOrBuilder();
       } else {
-        return endOffset_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : endOffset_;
+        return endOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endOffset_;
       }
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1115,14 +1209,17 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
      * .google.protobuf.Duration end_offset = 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>
         getEndOffsetFieldBuilder() {
       if (endOffsetBuilder_ == null) {
-        endOffsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getEndOffset(),
-                getParentForChildren(),
-                isClean());
+        endOffsetBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getEndOffset(), getParentForChildren(), isClean());
         endOffset_ = null;
       }
       return endOffsetBuilder_;
@@ -1130,18 +1227,20 @@ public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
 
     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; @@ -1150,20 +1249,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 { @@ -1171,28 +1271,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setWord(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } word_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @return This builder for chaining. */ public Builder clearWord() { @@ -1202,17 +1309,21 @@ public Builder clearWord() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setWordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); word_ = value; bitField0_ |= 0x00000004; @@ -1220,8 +1331,10 @@ public Builder setWordBytes( 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
@@ -1234,6 +1347,7 @@ public Builder setWordBytes(
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1241,6 +1355,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
@@ -1253,17 +1369,20 @@ public float getConfidence() {
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; bitField0_ |= 0x00000008; 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
@@ -1276,6 +1395,7 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { @@ -1287,6 +1407,8 @@ public Builder clearConfidence() { private java.lang.Object speakerLabel_ = ""; /** + * + * *
      * A distinct label is assigned for every speaker within the audio. This field
      * specifies which one of those speakers was detected to have spoken this
@@ -1296,13 +1418,13 @@ public Builder clearConfidence() {
      * 
* * string speaker_label = 6; + * * @return The speakerLabel. */ public java.lang.String getSpeakerLabel() { java.lang.Object ref = speakerLabel_; 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(); speakerLabel_ = s; return s; @@ -1311,6 +1433,8 @@ public java.lang.String getSpeakerLabel() { } } /** + * + * *
      * A distinct label is assigned for every speaker within the audio. This field
      * specifies which one of those speakers was detected to have spoken this
@@ -1320,15 +1444,14 @@ public java.lang.String getSpeakerLabel() {
      * 
* * string speaker_label = 6; + * * @return The bytes for speakerLabel. */ - public com.google.protobuf.ByteString - getSpeakerLabelBytes() { + public com.google.protobuf.ByteString getSpeakerLabelBytes() { java.lang.Object ref = speakerLabel_; 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); speakerLabel_ = b; return b; } else { @@ -1336,6 +1459,8 @@ public java.lang.String getSpeakerLabel() { } } /** + * + * *
      * A distinct label is assigned for every speaker within the audio. This field
      * specifies which one of those speakers was detected to have spoken this
@@ -1345,18 +1470,22 @@ public java.lang.String getSpeakerLabel() {
      * 
* * string speaker_label = 6; + * * @param value The speakerLabel to set. * @return This builder for chaining. */ - public Builder setSpeakerLabel( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpeakerLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } speakerLabel_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * A distinct label is assigned for every speaker within the audio. This field
      * specifies which one of those speakers was detected to have spoken this
@@ -1366,6 +1495,7 @@ public Builder setSpeakerLabel(
      * 
* * string speaker_label = 6; + * * @return This builder for chaining. */ public Builder clearSpeakerLabel() { @@ -1375,6 +1505,8 @@ public Builder clearSpeakerLabel() { return this; } /** + * + * *
      * A distinct label is assigned for every speaker within the audio. This field
      * specifies which one of those speakers was detected to have spoken this
@@ -1384,21 +1516,23 @@ public Builder clearSpeakerLabel() {
      * 
* * string speaker_label = 6; + * * @param value The bytes for speakerLabel to set. * @return This builder for chaining. */ - public Builder setSpeakerLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpeakerLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); speakerLabel_ = value; bitField0_ |= 0x00000010; 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); } @@ -1408,12 +1542,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v2.WordInfo) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v2.WordInfo) private static final com.google.cloud.speech.v2.WordInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v2.WordInfo(); } @@ -1422,27 +1556,27 @@ public static com.google.cloud.speech.v2.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1457,6 +1591,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v2.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java similarity index 86% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java rename to java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java index c58cbf30568e..c6c183016e20 100644 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfoOrBuilder.java +++ b/java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/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/v2/cloud_speech.proto package com.google.cloud.speech.v2; -public interface WordInfoOrBuilder extends +public interface WordInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.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_offset = 1; + * * @return Whether the startOffset field is set. */ boolean hasStartOffset(); /** + * + * *
    * 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_offset = 1; + * * @return The startOffset. */ com.google.protobuf.Duration getStartOffset(); /** + * + * *
    * 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 getStartOffsetOrBuilder();
 
   /**
+   *
+   *
    * 
    * 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_offset = 2; + * * @return Whether the endOffset field is set. */ boolean hasEndOffset(); /** + * + * *
    * 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_offset = 2; + * * @return The endOffset. */ com.google.protobuf.Duration getEndOffset(); /** + * + * *
    * 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 getEndOffsetOrBuilder();
 
   /**
+   *
+   *
    * 
    * 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
@@ -124,11 +163,14 @@ public interface WordInfoOrBuilder extends
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); /** + * + * *
    * A distinct label is assigned for every speaker within the audio. This field
    * specifies which one of those speakers was detected to have spoken this
@@ -138,10 +180,13 @@ public interface WordInfoOrBuilder extends
    * 
* * string speaker_label = 6; + * * @return The speakerLabel. */ java.lang.String getSpeakerLabel(); /** + * + * *
    * A distinct label is assigned for every speaker within the audio. This field
    * specifies which one of those speakers was detected to have spoken this
@@ -151,8 +196,8 @@ public interface WordInfoOrBuilder extends
    * 
* * string speaker_label = 6; + * * @return The bytes for speakerLabel. */ - com.google.protobuf.ByteString - getSpeakerLabelBytes(); + com.google.protobuf.ByteString getSpeakerLabelBytes(); } diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto b/java-speech/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto similarity index 100% rename from owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto rename to java-speech/proto-google-cloud-speech-v2/src/main/proto/google/cloud/speech/v2/cloud_speech.proto diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetEndpoint.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetEndpoint.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/AsyncCreateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/AsyncCreateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/AsyncCreateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/AsyncCreateCustomClass.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClass.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/AsyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/AsyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/AsyncCreatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/AsyncCreatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClass.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/AsyncDeletePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/AsyncDeletePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/AsyncDeletePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/AsyncDeletePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetString.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/deletephraseset/SyncDeletePhraseSetString.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/AsyncGetCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/AsyncGetCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/AsyncGetCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/AsyncGetCustomClass.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClass.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassString.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getcustomclass/SyncGetCustomClassString.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/AsyncGetPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/AsyncGetPhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/AsyncGetPhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/AsyncGetPhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetString.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/getphraseset/SyncGetPhraseSetString.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClasses.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClasses.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClasses.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClasses.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClasses.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClasses.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClasses.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClasses.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesString.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listcustomclasses/SyncListCustomClassesString.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSetPaged.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSetPaged.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSetPaged.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/AsyncListPhraseSetPaged.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetLocationname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetLocationname.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetLocationname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetLocationname.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetString.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/listphraseset/SyncListPhraseSetString.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClass.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetEndpoint.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetEndpoint.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognize.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognize.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/AsyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/AsyncRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/AsyncRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/AsyncRecognize.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognize.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/streamingrecognize/AsyncStreamingRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/streamingrecognize/AsyncStreamingRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speech/streamingrecognize/AsyncStreamingRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speech/streamingrecognize/AsyncStreamingRecognize.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetEndpoint.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetEndpoint.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/AsyncCreateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/AsyncCreateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/AsyncCreateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/AsyncCreateCustomClass.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClass.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createcustomclass/SyncCreateCustomClassStringCustomclassString.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/AsyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/AsyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/AsyncCreatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/AsyncCreatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/AsyncDeleteCustomClass.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClass.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassCustomclassname.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletecustomclass/SyncDeleteCustomClassString.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/AsyncDeletePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/AsyncDeletePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/AsyncDeletePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/AsyncDeletePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetPhrasesetname.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetString.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/deletephraseset/SyncDeletePhraseSetString.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/AsyncGetCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/AsyncGetCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/AsyncGetCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/AsyncGetCustomClass.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClass.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassCustomclassname.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassString.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getcustomclass/SyncGetCustomClassString.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/AsyncGetPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/AsyncGetPhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/AsyncGetPhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/AsyncGetPhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetPhrasesetname.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetString.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/getphraseset/SyncGetPhraseSetString.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClasses.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClasses.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClasses.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClasses.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/AsyncListCustomClassesPaged.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClasses.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClasses.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClasses.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClasses.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesLocationname.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesString.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listcustomclasses/SyncListCustomClassesString.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSetPaged.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSetPaged.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSetPaged.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/AsyncListPhraseSetPaged.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetLocationname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetLocationname.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetLocationname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetLocationname.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetString.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/listphraseset/SyncListPhraseSetString.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/AsyncUpdateCustomClass.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClass.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/AsyncUpdatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptation/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetEndpoint.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetEndpoint.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognize.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/AsyncLongRunningRecognizeLRO.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognize.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/AsyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/AsyncRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/AsyncRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/AsyncRecognize.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognize.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/streamingrecognize/AsyncStreamingRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/streamingrecognize/AsyncStreamingRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/streamingrecognize/AsyncStreamingRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speech/streamingrecognize/AsyncStreamingRecognize.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognize.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognizeLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognizeLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognizeLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/AsyncBatchRecognizeLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognize.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeRecognizernameRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeRecognizernameRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeRecognizernameRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeRecognizernameRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeStringRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeStringRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeStringRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/batchrecognize/SyncBatchRecognizeStringRecognitionconfigFieldmaskListbatchrecognizefilemetadata.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetEndpoint.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetEndpoint.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClass.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClassLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClassLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClassLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/AsyncCreateCustomClassLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClass.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassStringCustomclassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassStringCustomclassString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassStringCustomclassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createcustomclass/SyncCreateCustomClassStringCustomclassString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSetLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSetLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSetLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/AsyncCreatePhraseSetLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizerLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizerLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizerLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/AsyncCreateRecognizerLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerLocationnameRecognizerString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerLocationnameRecognizerString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerLocationnameRecognizerString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerLocationnameRecognizerString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerStringRecognizerString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerStringRecognizerString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerStringRecognizerString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/createrecognizer/SyncCreateRecognizerStringRecognizerString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClass.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClassLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClassLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClassLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/AsyncDeleteCustomClassLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClass.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassCustomclassname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassCustomclassname.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassCustomclassname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassCustomclassname.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletecustomclass/SyncDeleteCustomClassString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSet.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSetLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSetLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSetLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/AsyncDeletePhraseSetLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSet.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetPhrasesetname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetPhrasesetname.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetPhrasesetname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetPhrasesetname.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deletephraseset/SyncDeletePhraseSetString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizerLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizerLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizerLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/AsyncDeleteRecognizerLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerRecognizername.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerRecognizername.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerRecognizername.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerRecognizername.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/deleterecognizer/SyncDeleteRecognizerString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/AsyncGetConfig.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/AsyncGetConfig.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/AsyncGetConfig.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/AsyncGetConfig.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfig.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfig.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfig.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfig.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigConfigname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigConfigname.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigConfigname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigConfigname.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getconfig/SyncGetConfigString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/AsyncGetCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/AsyncGetCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/AsyncGetCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/AsyncGetCustomClass.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClass.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassCustomclassname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassCustomclassname.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassCustomclassname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassCustomclassname.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getcustomclass/SyncGetCustomClassString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/AsyncGetPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/AsyncGetPhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/AsyncGetPhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/AsyncGetPhraseSet.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSet.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetPhrasesetname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetPhrasesetname.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetPhrasesetname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetPhrasesetname.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getphraseset/SyncGetPhraseSetString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/AsyncGetRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/AsyncGetRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/AsyncGetRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/AsyncGetRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerRecognizername.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerRecognizername.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerRecognizername.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerRecognizername.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/getrecognizer/SyncGetRecognizerString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClasses.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClasses.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClasses.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClasses.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClassesPaged.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClassesPaged.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClassesPaged.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/AsyncListCustomClassesPaged.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClasses.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClasses.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClasses.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClasses.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesLocationname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesLocationname.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesLocationname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesLocationname.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listcustomclasses/SyncListCustomClassesString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSets.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSets.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSets.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSets.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSetsPaged.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSetsPaged.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSetsPaged.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/AsyncListPhraseSetsPaged.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSets.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSets.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSets.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSets.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsLocationname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsLocationname.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsLocationname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsLocationname.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listphrasesets/SyncListPhraseSetsString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizers.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizers.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizers.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizers.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizersPaged.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizersPaged.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizersPaged.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/AsyncListRecognizersPaged.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizers.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizers.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizers.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizers.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersLocationname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersLocationname.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersLocationname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersLocationname.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/listrecognizers/SyncListRecognizersString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/AsyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/AsyncRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/AsyncRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/AsyncRecognize.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognize.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskBytestring.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskBytestring.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskBytestring.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskBytestring.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeRecognizernameRecognitionconfigFieldmaskString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskBytestring.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskBytestring.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskBytestring.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskBytestring.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/recognize/SyncRecognizeStringRecognitionconfigFieldmaskString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/streamingrecognize/AsyncStreamingRecognize.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/streamingrecognize/AsyncStreamingRecognize.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/streamingrecognize/AsyncStreamingRecognize.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/streamingrecognize/AsyncStreamingRecognize.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClass.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClassLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClassLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClassLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/AsyncUndeleteCustomClassLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClass.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassCustomclassname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassCustomclassname.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassCustomclassname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassCustomclassname.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletecustomclass/SyncUndeleteCustomClassString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSet.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSetLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSetLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSetLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/AsyncUndeletePhraseSetLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSet.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetPhrasesetname.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetPhrasesetname.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetPhrasesetname.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetPhrasesetname.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeletephraseset/SyncUndeletePhraseSetString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizerLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizerLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizerLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/AsyncUndeleteRecognizerLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerRecognizername.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerRecognizername.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerRecognizername.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerRecognizername.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerString.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerString.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerString.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/undeleterecognizer/SyncUndeleteRecognizerString.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/AsyncUpdateConfig.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/AsyncUpdateConfig.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/AsyncUpdateConfig.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/AsyncUpdateConfig.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfig.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfig.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfig.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfig.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfigConfigFieldmask.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfigConfigFieldmask.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfigConfigFieldmask.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updateconfig/SyncUpdateConfigConfigFieldmask.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClass.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClassLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClassLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClassLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/AsyncUpdateCustomClassLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClass.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClass.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClass.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClass.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSetLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSetLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSetLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/AsyncUpdatePhraseSetLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSet.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSet.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSet.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSet.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizerLRO.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizerLRO.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizerLRO.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/AsyncUpdateRecognizerLRO.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizerRecognizerFieldmask.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizerRecognizerFieldmask.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizerRecognizerFieldmask.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speech/updaterecognizer/SyncUpdateRecognizerRecognizerFieldmask.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speechsettings/getrecognizer/SyncGetRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speechsettings/getrecognizer/SyncGetRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/speechsettings/getrecognizer/SyncGetRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/speechsettings/getrecognizer/SyncGetRecognizer.java diff --git a/owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/stub/speechstubsettings/getrecognizer/SyncGetRecognizer.java b/java-speech/samples/snippets/generated/com/google/cloud/speech/v2/stub/speechstubsettings/getrecognizer/SyncGetRecognizer.java similarity index 100% rename from owl-bot-staging/java-speech/v2/samples/snippets/generated/com/google/cloud/speech/v2/stub/speechstubsettings/getrecognizer/SyncGetRecognizer.java rename to java-speech/samples/snippets/generated/com/google/cloud/speech/v2/stub/speechstubsettings/getrecognizer/SyncGetRecognizer.java diff --git a/owl-bot-staging/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java b/owl-bot-staging/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java deleted file mode 100644 index b536dba14db7..000000000000 --- a/owl-bot-staging/java-speech/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/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java b/owl-bot-staging/java-speech/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java deleted file mode 100644 index 46b71822a661..000000000000 --- a/owl-bot-staging/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java deleted file mode 100644 index 6e63a397ad6a..000000000000 --- a/owl-bot-staging/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java deleted file mode 100644 index 61476aadbf58..000000000000 --- a/owl-bot-staging/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java deleted file mode 100644 index 5811af70356e..000000000000 --- a/owl-bot-staging/java-speech/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/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java b/owl-bot-staging/java-speech/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java deleted file mode 100644 index 314543722847..000000000000 --- a/owl-bot-staging/java-speech/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\"\355\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\022L\n\026speech_adaptation_info\030\007 " + - "\001(\0132,.google.cloud.speech.v1.SpeechAdapt" + - "ationInfo\022\022\n\nrequest_id\030\010 \001(\003\"\351\002\n\034LongRu" + - "nningRecognizeResponse\022@\n\007results\030\002 \003(\0132" + - "/.google.cloud.speech.v1.SpeechRecogniti" + - "onResult\0224\n\021total_billed_time\030\003 \001(\0132\031.go" + - "ogle.protobuf.Duration\022E\n\routput_config\030" + - "\006 \001(\0132..google.cloud.speech.v1.Transcrip" + - "tOutputConfig\022(\n\014output_error\030\007 \001(\0132\022.go" + - "ogle.rpc.Status\022L\n\026speech_adaptation_inf" + - "o\030\010 \001(\0132,.google.cloud.speech.v1.SpeechA" + - "daptationInfo\022\022\n\nrequest_id\030\t \001(\003\"\260\001\n\034Lo" + - "ngRunningRecognizeMetadata\022\030\n\020progress_p" + - "ercent\030\001 \001(\005\022.\n\nstart_time\030\002 \001(\0132\032.googl" + - "e.protobuf.Timestamp\0224\n\020last_update_time" + - "\030\003 \001(\0132\032.google.protobuf.Timestamp\022\020\n\003ur" + - "i\030\004 \001(\tB\003\340A\003\"\311\003\n\032StreamingRecognizeRespo" + - "nse\022!\n\005error\030\001 \001(\0132\022.google.rpc.Status\022C" + - "\n\007results\030\002 \003(\01322.google.cloud.speech.v1" + - ".StreamingRecognitionResult\022]\n\021speech_ev" + - "ent_type\030\004 \001(\0162B.google.cloud.speech.v1." + - "StreamingRecognizeResponse.SpeechEventTy" + - "pe\0224\n\021total_billed_time\030\005 \001(\0132\031.google.p" + - "rotobuf.Duration\022L\n\026speech_adaptation_in" + - "fo\030\t \001(\0132,.google.cloud.speech.v1.Speech" + - "AdaptationInfo\022\022\n\nrequest_id\030\n \001(\003\"L\n\017Sp" + - "eechEventType\022\034\n\030SPEECH_EVENT_UNSPECIFIE" + - "D\020\000\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\362\001\n\032Str" + - "eamingRecognitionResult\022J\n\014alternatives\030" + - "\001 \003(\01324.google.cloud.speech.v1.SpeechRec" + - "ognitionAlternative\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\"\312\001" + - "\n\027SpeechRecognitionResult\022J\n\014alternative" + - "s\030\001 \003(\01324.google.cloud.speech.v1.SpeechR" + - "ecognitionAlternative\022\023\n\013channel_tag\030\002 \001" + - "(\005\0222\n\017result_end_time\030\004 \001(\0132\031.google.pro" + - "tobuf.Duration\022\032\n\rlanguage_code\030\005 \001(\tB\003\340" + - "A\003\"w\n\034SpeechRecognitionAlternative\022\022\n\ntr" + - "anscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022/\n\005wo" + - "rds\030\003 \003(\0132 .google.cloud.speech.v1.WordI" + - "nfo\"\242\001\n\010WordInfo\022-\n\nstart_time\030\001 \001(\0132\031.g" + - "oogle.protobuf.Duration\022+\n\010end_time\030\002 \001(" + - "\0132\031.google.protobuf.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\003\"K\n\024SpeechAdaptationInfo\022\032\n\022adap" + - "tation_timeout\030\001 \001(\010\022\027\n\017timeout_message\030" + - "\004 \001(\t2\321\004\n\006Speech\022\220\001\n\tRecognize\022(.google." + - "cloud.speech.v1.RecognizeRequest\032).googl" + - "e.cloud.speech.v1.RecognizeResponse\".\202\323\344" + - "\223\002\031\"\024/v1/speech:recognize:\001*\332A\014config,au" + - "dio\022\344\001\n\024LongRunningRecognize\0223.google.cl" + - "oud.speech.v1.LongRunningRecognizeReques" + - "t\032\035.google.longrunning.Operation\"x\202\323\344\223\002$" + - "\"\037/v1/speech:longrunningrecognize:\001*\332A\014c" + - "onfig,audio\312A<\n\034LongRunningRecognizeResp" + - "onse\022\034LongRunningRecognizeMetadata\022\201\001\n\022S" + - "treamingRecognize\0221.google.cloud.speech." + - "v1.StreamingRecognizeRequest\0322.google.cl" + - "oud.speech.v1.StreamingRecognizeResponse" + - "\"\000(\0010\001\032I\312A\025speech.googleapis.com\322A.https" + - "://www.googleapis.com/auth/cloud-platfor" + - "mBr\n\032com.google.cloud.speech.v1B\013SpeechP" + - "rotoP\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/java-speech/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java b/owl-bot-staging/java-speech/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java deleted file mode 100644 index 5879fdc4465f..000000000000 --- a/owl-bot-staging/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java deleted file mode 100644 index 246c425ca97f..000000000000 --- a/owl-bot-staging/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java deleted file mode 100644 index 721b97fda97f..000000000000 --- a/owl-bot-staging/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java deleted file mode 100644 index 2e594dfddc8f..000000000000 --- a/owl-bot-staging/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java deleted file mode 100644 index 0322b2c20ba1..000000000000 --- a/owl-bot-staging/java-speech/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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java deleted file mode 100644 index e04be912f63d..000000000000 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java +++ /dev/null @@ -1,441 +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; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_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\"\373\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\022S\n\026" + - "speech_adaptation_info\030\007 \001(\01323.google.cl" + - "oud.speech.v1p1beta1.SpeechAdaptationInf" + - "o\022\022\n\nrequest_id\030\010 \001(\003\"\376\002\n\034LongRunningRec" + - "ognizeResponse\022G\n\007results\030\002 \003(\01326.google" + - ".cloud.speech.v1p1beta1.SpeechRecognitio" + - "nResult\0224\n\021total_billed_time\030\003 \001(\0132\031.goo" + - "gle.protobuf.Duration\022L\n\routput_config\030\006" + - " \001(\01325.google.cloud.speech.v1p1beta1.Tra" + - "nscriptOutputConfig\022(\n\014output_error\030\007 \001(" + - "\0132\022.google.rpc.Status\022S\n\026speech_adaptati" + - "on_info\030\010 \001(\01323.google.cloud.speech.v1p1" + - "beta1.SpeechAdaptationInfo\022\022\n\nrequest_id" + - "\030\t \001(\003\"\203\002\n\034LongRunningRecognizeMetadata\022" + - "\030\n\020progress_percent\030\001 \001(\005\022.\n\nstart_time\030" + - "\002 \001(\0132\032.google.protobuf.Timestamp\0224\n\020las" + - "t_update_time\030\003 \001(\0132\032.google.protobuf.Ti" + - "mestamp\022\020\n\003uri\030\004 \001(\tB\003\340A\003\022Q\n\routput_conf" + - "ig\030\005 \001(\01325.google.cloud.speech.v1p1beta1" + - ".TranscriptOutputConfigB\003\340A\003\"\336\003\n\032Streami" + - "ngRecognizeResponse\022!\n\005error\030\001 \001(\0132\022.goo" + - "gle.rpc.Status\022J\n\007results\030\002 \003(\01329.google" + - ".cloud.speech.v1p1beta1.StreamingRecogni" + - "tionResult\022d\n\021speech_event_type\030\004 \001(\0162I." + - "google.cloud.speech.v1p1beta1.StreamingR" + - "ecognizeResponse.SpeechEventType\0224\n\021tota" + - "l_billed_time\030\005 \001(\0132\031.google.protobuf.Du" + - "ration\022S\n\026speech_adaptation_info\030\t \001(\01323" + - ".google.cloud.speech.v1p1beta1.SpeechAda" + - "ptationInfo\022\022\n\nrequest_id\030\n \001(\003\"L\n\017Speec" + - "hEventType\022\034\n\030SPEECH_EVENT_UNSPECIFIED\020\000" + - "\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\371\001\n\032Stream" + - "ingRecognitionResult\022Q\n\014alternatives\030\001 \003" + - "(\0132;.google.cloud.speech.v1p1beta1.Speec" + - "hRecognitionAlternative\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\013chan" + - "nel_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A" + - "\003\"\321\001\n\027SpeechRecognitionResult\022Q\n\014alterna" + - "tives\030\001 \003(\0132;.google.cloud.speech.v1p1be" + - "ta1.SpeechRecognitionAlternative\022\023\n\013chan" + - "nel_tag\030\002 \001(\005\0222\n\017result_end_time\030\004 \001(\0132\031" + - ".google.protobuf.Duration\022\032\n\rlanguage_co" + - "de\030\005 \001(\tB\003\340A\003\"~\n\034SpeechRecognitionAltern" + - "ative\022\022\n\ntranscript\030\001 \001(\t\022\022\n\nconfidence\030" + - "\002 \001(\002\0226\n\005words\030\003 \003(\0132\'.google.cloud.spee" + - "ch.v1p1beta1.WordInfo\"\242\001\n\010WordInfo\022-\n\nst" + - "art_time\030\001 \001(\0132\031.google.protobuf.Duratio" + - "n\022+\n\010end_time\030\002 \001(\0132\031.google.protobuf.Du" + - "ration\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\003\"K\n\024SpeechAdap" + - "tationInfo\022\032\n\022adaptation_timeout\030\001 \001(\010\022\027" + - "\n\017timeout_message\030\004 \001(\t2\202\005\n\006Speech\022\245\001\n\tR" + - "ecognize\022/.google.cloud.speech.v1p1beta1" + - ".RecognizeRequest\0320.google.cloud.speech." + - "v1p1beta1.RecognizeResponse\"5\202\323\344\223\002 \"\033/v1" + - "p1beta1/speech:recognize:\001*\332A\014config,aud" + - "io\022\362\001\n\024LongRunningRecognize\022:.google.clo" + - "ud.speech.v1p1beta1.LongRunningRecognize" + - "Request\032\035.google.longrunning.Operation\"\177" + - "\202\323\344\223\002+\"&/v1p1beta1/speech:longrunningrec" + - "ognize:\001*\332A\014config,audio\312A<\n\034LongRunning" + - "RecognizeResponse\022\034LongRunningRecognizeM" + - "etadata\022\217\001\n\022StreamingRecognize\0228.google." + - "cloud.speech.v1p1beta1.StreamingRecogniz" + - "eRequest\0329.google.cloud.speech.v1p1beta1" + - ".StreamingRecognizeResponse\"\000(\0010\001\032I\312A\025sp" + - "eech.googleapis.com\322A.https://www.google" + - "apis.com/auth/cloud-platformB\200\001\n!com.goo" + - "gle.cloud.speech.v1p1beta1B\013SpeechProtoP" + - "\001ZCgoogle.golang.org/genproto/googleapis" + - "/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", "SpeechAdaptationInfo", "RequestId", }); - 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", "SpeechAdaptationInfo", "RequestId", }); - 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", "SpeechAdaptationInfo", "RequestId", }); - 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", }); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptationInfo_descriptor, - new java.lang.String[] { "AdaptationTimeout", "TimeoutMessage", }); - 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/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java b/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java deleted file mode 100644 index 6e3a93b944e8..000000000000 --- a/owl-bot-staging/java-speech/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java +++ /dev/null @@ -1,162 +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_SpeechAdaptation_ABNFGrammar_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_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}\"\322\002\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\022" + - "Q\n\014abnf_grammar\030\004 \001(\0132;.google.cloud.spe" + - "ech.v1p1beta1.SpeechAdaptation.ABNFGramm" + - "ar\032#\n\013ABNFGrammar\022\024\n\014abnf_strings\030\001 \003(\t\"" + - "\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", "AbnfGrammar", }); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor = - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_ABNFGrammar_descriptor, - new java.lang.String[] { "AbnfStrings", }); - 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/java-speech/v2/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java b/owl-bot-staging/java-speech/v2/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java deleted file mode 100644 index 9d4c9c88b68d..000000000000 --- a/owl-bot-staging/java-speech/v2/grpc-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechGrpc.java +++ /dev/null @@ -1,2207 +0,0 @@ -package com.google.cloud.speech.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Enables speech transcription and resource management.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v2/cloud_speech.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SpeechGrpc { - - private SpeechGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.speech.v2.Speech"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateRecognizerMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRecognizer", - requestType = com.google.cloud.speech.v2.CreateRecognizerRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateRecognizerMethod() { - io.grpc.MethodDescriptor getCreateRecognizerMethod; - if ((getCreateRecognizerMethod = SpeechGrpc.getCreateRecognizerMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getCreateRecognizerMethod = SpeechGrpc.getCreateRecognizerMethod) == null) { - SpeechGrpc.getCreateRecognizerMethod = getCreateRecognizerMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRecognizer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.CreateRecognizerRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreateRecognizer")) - .build(); - } - } - } - return getCreateRecognizerMethod; - } - - private static volatile io.grpc.MethodDescriptor getListRecognizersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRecognizers", - requestType = com.google.cloud.speech.v2.ListRecognizersRequest.class, - responseType = com.google.cloud.speech.v2.ListRecognizersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListRecognizersMethod() { - io.grpc.MethodDescriptor getListRecognizersMethod; - if ((getListRecognizersMethod = SpeechGrpc.getListRecognizersMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getListRecognizersMethod = SpeechGrpc.getListRecognizersMethod) == null) { - SpeechGrpc.getListRecognizersMethod = getListRecognizersMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRecognizers")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.ListRecognizersRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.ListRecognizersResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListRecognizers")) - .build(); - } - } - } - return getListRecognizersMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetRecognizerMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRecognizer", - requestType = com.google.cloud.speech.v2.GetRecognizerRequest.class, - responseType = com.google.cloud.speech.v2.Recognizer.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetRecognizerMethod() { - io.grpc.MethodDescriptor getGetRecognizerMethod; - if ((getGetRecognizerMethod = SpeechGrpc.getGetRecognizerMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getGetRecognizerMethod = SpeechGrpc.getGetRecognizerMethod) == null) { - SpeechGrpc.getGetRecognizerMethod = getGetRecognizerMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRecognizer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.GetRecognizerRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.Recognizer.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetRecognizer")) - .build(); - } - } - } - return getGetRecognizerMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateRecognizerMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateRecognizer", - requestType = com.google.cloud.speech.v2.UpdateRecognizerRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateRecognizerMethod() { - io.grpc.MethodDescriptor getUpdateRecognizerMethod; - if ((getUpdateRecognizerMethod = SpeechGrpc.getUpdateRecognizerMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUpdateRecognizerMethod = SpeechGrpc.getUpdateRecognizerMethod) == null) { - SpeechGrpc.getUpdateRecognizerMethod = getUpdateRecognizerMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRecognizer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.UpdateRecognizerRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdateRecognizer")) - .build(); - } - } - } - return getUpdateRecognizerMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteRecognizerMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRecognizer", - requestType = com.google.cloud.speech.v2.DeleteRecognizerRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteRecognizerMethod() { - io.grpc.MethodDescriptor getDeleteRecognizerMethod; - if ((getDeleteRecognizerMethod = SpeechGrpc.getDeleteRecognizerMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getDeleteRecognizerMethod = SpeechGrpc.getDeleteRecognizerMethod) == null) { - SpeechGrpc.getDeleteRecognizerMethod = getDeleteRecognizerMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRecognizer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.DeleteRecognizerRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeleteRecognizer")) - .build(); - } - } - } - return getDeleteRecognizerMethod; - } - - private static volatile io.grpc.MethodDescriptor getUndeleteRecognizerMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UndeleteRecognizer", - requestType = com.google.cloud.speech.v2.UndeleteRecognizerRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUndeleteRecognizerMethod() { - io.grpc.MethodDescriptor getUndeleteRecognizerMethod; - if ((getUndeleteRecognizerMethod = SpeechGrpc.getUndeleteRecognizerMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUndeleteRecognizerMethod = SpeechGrpc.getUndeleteRecognizerMethod) == null) { - SpeechGrpc.getUndeleteRecognizerMethod = getUndeleteRecognizerMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeleteRecognizer")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.UndeleteRecognizerRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UndeleteRecognizer")) - .build(); - } - } - } - return getUndeleteRecognizerMethod; - } - - private static volatile io.grpc.MethodDescriptor getRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Recognize", - requestType = com.google.cloud.speech.v2.RecognizeRequest.class, - responseType = com.google.cloud.speech.v2.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.v2.RecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.RecognizeResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) - .build(); - } - } - } - return getRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamingRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", - requestType = com.google.cloud.speech.v2.StreamingRecognizeRequest.class, - responseType = com.google.cloud.speech.v2.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.v2.StreamingRecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.StreamingRecognizeResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) - .build(); - } - } - } - return getStreamingRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor getBatchRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchRecognize", - requestType = com.google.cloud.speech.v2.BatchRecognizeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBatchRecognizeMethod() { - io.grpc.MethodDescriptor getBatchRecognizeMethod; - if ((getBatchRecognizeMethod = SpeechGrpc.getBatchRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getBatchRecognizeMethod = SpeechGrpc.getBatchRecognizeMethod) == null) { - SpeechGrpc.getBatchRecognizeMethod = getBatchRecognizeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.BatchRecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("BatchRecognize")) - .build(); - } - } - } - return getBatchRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConfig", - requestType = com.google.cloud.speech.v2.GetConfigRequest.class, - responseType = com.google.cloud.speech.v2.Config.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetConfigMethod() { - io.grpc.MethodDescriptor getGetConfigMethod; - if ((getGetConfigMethod = SpeechGrpc.getGetConfigMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getGetConfigMethod = SpeechGrpc.getGetConfigMethod) == null) { - SpeechGrpc.getGetConfigMethod = getGetConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.GetConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.Config.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetConfig")) - .build(); - } - } - } - return getGetConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConfig", - requestType = com.google.cloud.speech.v2.UpdateConfigRequest.class, - responseType = com.google.cloud.speech.v2.Config.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateConfigMethod() { - io.grpc.MethodDescriptor getUpdateConfigMethod; - if ((getUpdateConfigMethod = SpeechGrpc.getUpdateConfigMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUpdateConfigMethod = SpeechGrpc.getUpdateConfigMethod) == null) { - SpeechGrpc.getUpdateConfigMethod = getUpdateConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.UpdateConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.Config.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UpdateConfig")) - .build(); - } - } - } - return getUpdateConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", - requestType = com.google.cloud.speech.v2.CreateCustomClassRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateCustomClassMethod() { - io.grpc.MethodDescriptor getCreateCustomClassMethod; - if ((getCreateCustomClassMethod = SpeechGrpc.getCreateCustomClassMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getCreateCustomClassMethod = SpeechGrpc.getCreateCustomClassMethod) == null) { - SpeechGrpc.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.v2.CreateCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreateCustomClass")) - .build(); - } - } - } - return getCreateCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCustomClassesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", - requestType = com.google.cloud.speech.v2.ListCustomClassesRequest.class, - responseType = com.google.cloud.speech.v2.ListCustomClassesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCustomClassesMethod() { - io.grpc.MethodDescriptor getListCustomClassesMethod; - if ((getListCustomClassesMethod = SpeechGrpc.getListCustomClassesMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getListCustomClassesMethod = SpeechGrpc.getListCustomClassesMethod) == null) { - SpeechGrpc.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.v2.ListCustomClassesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.ListCustomClassesResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListCustomClasses")) - .build(); - } - } - } - return getListCustomClassesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", - requestType = com.google.cloud.speech.v2.GetCustomClassRequest.class, - responseType = com.google.cloud.speech.v2.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCustomClassMethod() { - io.grpc.MethodDescriptor getGetCustomClassMethod; - if ((getGetCustomClassMethod = SpeechGrpc.getGetCustomClassMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getGetCustomClassMethod = SpeechGrpc.getGetCustomClassMethod) == null) { - SpeechGrpc.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.v2.GetCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.CustomClass.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetCustomClass")) - .build(); - } - } - } - return getGetCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", - requestType = com.google.cloud.speech.v2.UpdateCustomClassRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateCustomClassMethod() { - io.grpc.MethodDescriptor getUpdateCustomClassMethod; - if ((getUpdateCustomClassMethod = SpeechGrpc.getUpdateCustomClassMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUpdateCustomClassMethod = SpeechGrpc.getUpdateCustomClassMethod) == null) { - SpeechGrpc.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.v2.UpdateCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("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.v2.DeleteCustomClassRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteCustomClassMethod() { - io.grpc.MethodDescriptor getDeleteCustomClassMethod; - if ((getDeleteCustomClassMethod = SpeechGrpc.getDeleteCustomClassMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getDeleteCustomClassMethod = SpeechGrpc.getDeleteCustomClassMethod) == null) { - SpeechGrpc.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.v2.DeleteCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeleteCustomClass")) - .build(); - } - } - } - return getDeleteCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor getUndeleteCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UndeleteCustomClass", - requestType = com.google.cloud.speech.v2.UndeleteCustomClassRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUndeleteCustomClassMethod() { - io.grpc.MethodDescriptor getUndeleteCustomClassMethod; - if ((getUndeleteCustomClassMethod = SpeechGrpc.getUndeleteCustomClassMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUndeleteCustomClassMethod = SpeechGrpc.getUndeleteCustomClassMethod) == null) { - SpeechGrpc.getUndeleteCustomClassMethod = getUndeleteCustomClassMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeleteCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.UndeleteCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UndeleteCustomClass")) - .build(); - } - } - } - return getUndeleteCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", - requestType = com.google.cloud.speech.v2.CreatePhraseSetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreatePhraseSetMethod() { - io.grpc.MethodDescriptor getCreatePhraseSetMethod; - if ((getCreatePhraseSetMethod = SpeechGrpc.getCreatePhraseSetMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getCreatePhraseSetMethod = SpeechGrpc.getCreatePhraseSetMethod) == null) { - SpeechGrpc.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.v2.CreatePhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("CreatePhraseSet")) - .build(); - } - } - } - return getCreatePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getListPhraseSetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPhraseSets", - requestType = com.google.cloud.speech.v2.ListPhraseSetsRequest.class, - responseType = com.google.cloud.speech.v2.ListPhraseSetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListPhraseSetsMethod() { - io.grpc.MethodDescriptor getListPhraseSetsMethod; - if ((getListPhraseSetsMethod = SpeechGrpc.getListPhraseSetsMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getListPhraseSetsMethod = SpeechGrpc.getListPhraseSetsMethod) == null) { - SpeechGrpc.getListPhraseSetsMethod = getListPhraseSetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.ListPhraseSetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.ListPhraseSetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("ListPhraseSets")) - .build(); - } - } - } - return getListPhraseSetsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetPhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", - requestType = com.google.cloud.speech.v2.GetPhraseSetRequest.class, - responseType = com.google.cloud.speech.v2.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetPhraseSetMethod() { - io.grpc.MethodDescriptor getGetPhraseSetMethod; - if ((getGetPhraseSetMethod = SpeechGrpc.getGetPhraseSetMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getGetPhraseSetMethod = SpeechGrpc.getGetPhraseSetMethod) == null) { - SpeechGrpc.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.v2.GetPhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("GetPhraseSet")) - .build(); - } - } - } - return getGetPhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", - requestType = com.google.cloud.speech.v2.UpdatePhraseSetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdatePhraseSetMethod() { - io.grpc.MethodDescriptor getUpdatePhraseSetMethod; - if ((getUpdatePhraseSetMethod = SpeechGrpc.getUpdatePhraseSetMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUpdatePhraseSetMethod = SpeechGrpc.getUpdatePhraseSetMethod) == null) { - SpeechGrpc.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.v2.UpdatePhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("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.v2.DeletePhraseSetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeletePhraseSetMethod() { - io.grpc.MethodDescriptor getDeletePhraseSetMethod; - if ((getDeletePhraseSetMethod = SpeechGrpc.getDeletePhraseSetMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getDeletePhraseSetMethod = SpeechGrpc.getDeletePhraseSetMethod) == null) { - SpeechGrpc.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.v2.DeletePhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("DeletePhraseSet")) - .build(); - } - } - } - return getDeletePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getUndeletePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UndeletePhraseSet", - requestType = com.google.cloud.speech.v2.UndeletePhraseSetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUndeletePhraseSetMethod() { - io.grpc.MethodDescriptor getUndeletePhraseSetMethod; - if ((getUndeletePhraseSetMethod = SpeechGrpc.getUndeletePhraseSetMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getUndeletePhraseSetMethod = SpeechGrpc.getUndeletePhraseSetMethod) == null) { - SpeechGrpc.getUndeletePhraseSetMethod = getUndeletePhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeletePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v2.UndeletePhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("UndeletePhraseSet")) - .build(); - } - } - } - return getUndeletePhraseSetMethod; - } - - /** - * 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); - } - - /** - *
-   * Enables speech transcription and resource management.
-   * 
- */ - public static abstract class SpeechImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void createRecognizer(com.google.cloud.speech.v2.CreateRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRecognizerMethod(), responseObserver); - } - - /** - *
-     * Lists Recognizers.
-     * 
- */ - public void listRecognizers(com.google.cloud.speech.v2.ListRecognizersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRecognizersMethod(), responseObserver); - } - - /** - *
-     * Returns the requested
-     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
-     * exist.
-     * 
- */ - public void getRecognizer(com.google.cloud.speech.v2.GetRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRecognizerMethod(), responseObserver); - } - - /** - *
-     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void updateRecognizer(com.google.cloud.speech.v2.UpdateRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateRecognizerMethod(), responseObserver); - } - - /** - *
-     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void deleteRecognizer(com.google.cloud.speech.v2.DeleteRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRecognizerMethod(), responseObserver); - } - - /** - *
-     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void undeleteRecognizer(com.google.cloud.speech.v2.UndeleteRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeleteRecognizerMethod(), responseObserver); - } - - /** - *
-     * Performs synchronous Speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize(com.google.cloud.speech.v2.RecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), 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); - } - - /** - *
-     * Performs batch asynchronous speech recognition: send a request with N
-     * audio files and receive a long running operation that can be polled to see
-     * when the transcriptions are finished.
-     * 
- */ - public void batchRecognize(com.google.cloud.speech.v2.BatchRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchRecognizeMethod(), responseObserver); - } - - /** - *
-     * Returns the requested [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public void getConfig(com.google.cloud.speech.v2.GetConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConfigMethod(), responseObserver); - } - - /** - *
-     * Updates the [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public void updateConfig(com.google.cloud.speech.v2.UpdateConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConfigMethod(), responseObserver); - } - - /** - *
-     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void createCustomClass(com.google.cloud.speech.v2.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCustomClassMethod(), responseObserver); - } - - /** - *
-     * Lists CustomClasses.
-     * 
- */ - public void listCustomClasses(com.google.cloud.speech.v2.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCustomClassesMethod(), responseObserver); - } - - /** - *
-     * Returns the requested
-     * [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void getCustomClass(com.google.cloud.speech.v2.GetCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCustomClassMethod(), responseObserver); - } - - /** - *
-     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void updateCustomClass(com.google.cloud.speech.v2.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCustomClassMethod(), responseObserver); - } - - /** - *
-     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void deleteCustomClass(com.google.cloud.speech.v2.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCustomClassMethod(), responseObserver); - } - - /** - *
-     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void undeleteCustomClass(com.google.cloud.speech.v2.UndeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeleteCustomClassMethod(), responseObserver); - } - - /** - *
-     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void createPhraseSet(com.google.cloud.speech.v2.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePhraseSetMethod(), responseObserver); - } - - /** - *
-     * Lists PhraseSets.
-     * 
- */ - public void listPhraseSets(com.google.cloud.speech.v2.ListPhraseSetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPhraseSetsMethod(), responseObserver); - } - - /** - *
-     * Returns the requested
-     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void getPhraseSet(com.google.cloud.speech.v2.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPhraseSetMethod(), responseObserver); - } - - /** - *
-     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void updatePhraseSet(com.google.cloud.speech.v2.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePhraseSetMethod(), responseObserver); - } - - /** - *
-     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void deletePhraseSet(com.google.cloud.speech.v2.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePhraseSetMethod(), responseObserver); - } - - /** - *
-     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void undeletePhraseSet(com.google.cloud.speech.v2.UndeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeletePhraseSetMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateRecognizerMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.CreateRecognizerRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_RECOGNIZER))) - .addMethod( - getListRecognizersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.ListRecognizersRequest, - com.google.cloud.speech.v2.ListRecognizersResponse>( - this, METHODID_LIST_RECOGNIZERS))) - .addMethod( - getGetRecognizerMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.GetRecognizerRequest, - com.google.cloud.speech.v2.Recognizer>( - this, METHODID_GET_RECOGNIZER))) - .addMethod( - getUpdateRecognizerMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UpdateRecognizerRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_RECOGNIZER))) - .addMethod( - getDeleteRecognizerMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.DeleteRecognizerRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_RECOGNIZER))) - .addMethod( - getUndeleteRecognizerMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UndeleteRecognizerRequest, - com.google.longrunning.Operation>( - this, METHODID_UNDELETE_RECOGNIZER))) - .addMethod( - getRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.RecognizeRequest, - com.google.cloud.speech.v2.RecognizeResponse>( - this, METHODID_RECOGNIZE))) - .addMethod( - getStreamingRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.speech.v2.StreamingRecognizeRequest, - com.google.cloud.speech.v2.StreamingRecognizeResponse>( - this, METHODID_STREAMING_RECOGNIZE))) - .addMethod( - getBatchRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.BatchRecognizeRequest, - com.google.longrunning.Operation>( - this, METHODID_BATCH_RECOGNIZE))) - .addMethod( - getGetConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.GetConfigRequest, - com.google.cloud.speech.v2.Config>( - this, METHODID_GET_CONFIG))) - .addMethod( - getUpdateConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UpdateConfigRequest, - com.google.cloud.speech.v2.Config>( - this, METHODID_UPDATE_CONFIG))) - .addMethod( - getCreateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.CreateCustomClassRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_CUSTOM_CLASS))) - .addMethod( - getListCustomClassesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.ListCustomClassesRequest, - com.google.cloud.speech.v2.ListCustomClassesResponse>( - this, METHODID_LIST_CUSTOM_CLASSES))) - .addMethod( - getGetCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.GetCustomClassRequest, - com.google.cloud.speech.v2.CustomClass>( - this, METHODID_GET_CUSTOM_CLASS))) - .addMethod( - getUpdateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UpdateCustomClassRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_CUSTOM_CLASS))) - .addMethod( - getDeleteCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.DeleteCustomClassRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_CUSTOM_CLASS))) - .addMethod( - getUndeleteCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UndeleteCustomClassRequest, - com.google.longrunning.Operation>( - this, METHODID_UNDELETE_CUSTOM_CLASS))) - .addMethod( - getCreatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.CreatePhraseSetRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_PHRASE_SET))) - .addMethod( - getListPhraseSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.ListPhraseSetsRequest, - com.google.cloud.speech.v2.ListPhraseSetsResponse>( - this, METHODID_LIST_PHRASE_SETS))) - .addMethod( - getGetPhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.GetPhraseSetRequest, - com.google.cloud.speech.v2.PhraseSet>( - this, METHODID_GET_PHRASE_SET))) - .addMethod( - getUpdatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UpdatePhraseSetRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_PHRASE_SET))) - .addMethod( - getDeletePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.DeletePhraseSetRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_PHRASE_SET))) - .addMethod( - getUndeletePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v2.UndeletePhraseSetRequest, - com.google.longrunning.Operation>( - this, METHODID_UNDELETE_PHRASE_SET))) - .build(); - } - } - - /** - *
-   * Enables speech transcription and resource management.
-   * 
- */ - 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); - } - - /** - *
-     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void createRecognizer(com.google.cloud.speech.v2.CreateRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRecognizerMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists Recognizers.
-     * 
- */ - public void listRecognizers(com.google.cloud.speech.v2.ListRecognizersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRecognizersMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the requested
-     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
-     * exist.
-     * 
- */ - public void getRecognizer(com.google.cloud.speech.v2.GetRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRecognizerMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void updateRecognizer(com.google.cloud.speech.v2.UpdateRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateRecognizerMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void deleteRecognizer(com.google.cloud.speech.v2.DeleteRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRecognizerMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public void undeleteRecognizer(com.google.cloud.speech.v2.UndeleteRecognizerRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeleteRecognizerMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Performs synchronous Speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize(com.google.cloud.speech.v2.RecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRecognizeMethod(), 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); - } - - /** - *
-     * Performs batch asynchronous speech recognition: send a request with N
-     * audio files and receive a long running operation that can be polled to see
-     * when the transcriptions are finished.
-     * 
- */ - public void batchRecognize(com.google.cloud.speech.v2.BatchRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchRecognizeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the requested [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public void getConfig(com.google.cloud.speech.v2.GetConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public void updateConfig(com.google.cloud.speech.v2.UpdateConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void createCustomClass(com.google.cloud.speech.v2.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists CustomClasses.
-     * 
- */ - public void listCustomClasses(com.google.cloud.speech.v2.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the requested
-     * [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void getCustomClass(com.google.cloud.speech.v2.GetCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void updateCustomClass(com.google.cloud.speech.v2.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void deleteCustomClass(com.google.cloud.speech.v2.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public void undeleteCustomClass(com.google.cloud.speech.v2.UndeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeleteCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void createPhraseSet(com.google.cloud.speech.v2.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists PhraseSets.
-     * 
- */ - public void listPhraseSets(com.google.cloud.speech.v2.ListPhraseSetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPhraseSetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the requested
-     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void getPhraseSet(com.google.cloud.speech.v2.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void updatePhraseSet(com.google.cloud.speech.v2.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void deletePhraseSet(com.google.cloud.speech.v2.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public void undeletePhraseSet(com.google.cloud.speech.v2.UndeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeletePhraseSetMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Enables speech transcription and resource management.
-   * 
- */ - 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); - } - - /** - *
-     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.longrunning.Operation createRecognizer(com.google.cloud.speech.v2.CreateRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateRecognizerMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists Recognizers.
-     * 
- */ - public com.google.cloud.speech.v2.ListRecognizersResponse listRecognizers(com.google.cloud.speech.v2.ListRecognizersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRecognizersMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the requested
-     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
-     * exist.
-     * 
- */ - public com.google.cloud.speech.v2.Recognizer getRecognizer(com.google.cloud.speech.v2.GetRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRecognizerMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.longrunning.Operation updateRecognizer(com.google.cloud.speech.v2.UpdateRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateRecognizerMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.longrunning.Operation deleteRecognizer(com.google.cloud.speech.v2.DeleteRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRecognizerMethod(), getCallOptions(), request); - } - - /** - *
-     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.longrunning.Operation undeleteRecognizer(com.google.cloud.speech.v2.UndeleteRecognizerRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUndeleteRecognizerMethod(), getCallOptions(), request); - } - - /** - *
-     * Performs synchronous Speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.cloud.speech.v2.RecognizeResponse recognize(com.google.cloud.speech.v2.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRecognizeMethod(), getCallOptions(), request); - } - - /** - *
-     * Performs batch asynchronous speech recognition: send a request with N
-     * audio files and receive a long running operation that can be polled to see
-     * when the transcriptions are finished.
-     * 
- */ - public com.google.longrunning.Operation batchRecognize(com.google.cloud.speech.v2.BatchRecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchRecognizeMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the requested [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public com.google.cloud.speech.v2.Config getConfig(com.google.cloud.speech.v2.GetConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public com.google.cloud.speech.v2.Config updateConfig(com.google.cloud.speech.v2.UpdateConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.longrunning.Operation createCustomClass(com.google.cloud.speech.v2.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists CustomClasses.
-     * 
- */ - public com.google.cloud.speech.v2.ListCustomClassesResponse listCustomClasses(com.google.cloud.speech.v2.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCustomClassesMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the requested
-     * [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.cloud.speech.v2.CustomClass getCustomClass(com.google.cloud.speech.v2.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.longrunning.Operation updateCustomClass(com.google.cloud.speech.v2.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.longrunning.Operation deleteCustomClass(com.google.cloud.speech.v2.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.longrunning.Operation undeleteCustomClass(com.google.cloud.speech.v2.UndeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUndeleteCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.longrunning.Operation createPhraseSet(com.google.cloud.speech.v2.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists PhraseSets.
-     * 
- */ - public com.google.cloud.speech.v2.ListPhraseSetsResponse listPhraseSets(com.google.cloud.speech.v2.ListPhraseSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPhraseSetsMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the requested
-     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.cloud.speech.v2.PhraseSet getPhraseSet(com.google.cloud.speech.v2.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.longrunning.Operation updatePhraseSet(com.google.cloud.speech.v2.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.longrunning.Operation deletePhraseSet(com.google.cloud.speech.v2.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.longrunning.Operation undeletePhraseSet(com.google.cloud.speech.v2.UndeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUndeletePhraseSetMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Enables speech transcription and resource management.
-   * 
- */ - 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); - } - - /** - *
-     * Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createRecognizer( - com.google.cloud.speech.v2.CreateRecognizerRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateRecognizerMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists Recognizers.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listRecognizers( - com.google.cloud.speech.v2.ListRecognizersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRecognizersMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the requested
-     * [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
-     * exist.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getRecognizer( - com.google.cloud.speech.v2.GetRecognizerRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRecognizerMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateRecognizer( - com.google.cloud.speech.v2.UpdateRecognizerRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateRecognizerMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteRecognizer( - com.google.cloud.speech.v2.DeleteRecognizerRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRecognizerMethod(), getCallOptions()), request); - } - - /** - *
-     * Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture undeleteRecognizer( - com.google.cloud.speech.v2.UndeleteRecognizerRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUndeleteRecognizerMethod(), getCallOptions()), request); - } - - /** - *
-     * 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.v2.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); - } - - /** - *
-     * Performs batch asynchronous speech recognition: send a request with N
-     * audio files and receive a long running operation that can be polled to see
-     * when the transcriptions are finished.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture batchRecognize( - com.google.cloud.speech.v2.BatchRecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchRecognizeMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the requested [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getConfig( - com.google.cloud.speech.v2.GetConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the [Config][google.cloud.speech.v2.Config].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateConfig( - com.google.cloud.speech.v2.UpdateConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createCustomClass( - com.google.cloud.speech.v2.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists CustomClasses.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCustomClasses( - com.google.cloud.speech.v2.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the requested
-     * [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getCustomClass( - com.google.cloud.speech.v2.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateCustomClass( - com.google.cloud.speech.v2.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteCustomClass( - com.google.cloud.speech.v2.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture undeleteCustomClass( - com.google.cloud.speech.v2.UndeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUndeleteCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createPhraseSet( - com.google.cloud.speech.v2.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists PhraseSets.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listPhraseSets( - com.google.cloud.speech.v2.ListPhraseSetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPhraseSetsMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the requested
-     * [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getPhraseSet( - com.google.cloud.speech.v2.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updatePhraseSet( - com.google.cloud.speech.v2.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deletePhraseSet( - com.google.cloud.speech.v2.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture undeletePhraseSet( - com.google.cloud.speech.v2.UndeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUndeletePhraseSetMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_RECOGNIZER = 0; - private static final int METHODID_LIST_RECOGNIZERS = 1; - private static final int METHODID_GET_RECOGNIZER = 2; - private static final int METHODID_UPDATE_RECOGNIZER = 3; - private static final int METHODID_DELETE_RECOGNIZER = 4; - private static final int METHODID_UNDELETE_RECOGNIZER = 5; - private static final int METHODID_RECOGNIZE = 6; - private static final int METHODID_BATCH_RECOGNIZE = 7; - private static final int METHODID_GET_CONFIG = 8; - private static final int METHODID_UPDATE_CONFIG = 9; - private static final int METHODID_CREATE_CUSTOM_CLASS = 10; - private static final int METHODID_LIST_CUSTOM_CLASSES = 11; - private static final int METHODID_GET_CUSTOM_CLASS = 12; - private static final int METHODID_UPDATE_CUSTOM_CLASS = 13; - private static final int METHODID_DELETE_CUSTOM_CLASS = 14; - private static final int METHODID_UNDELETE_CUSTOM_CLASS = 15; - private static final int METHODID_CREATE_PHRASE_SET = 16; - private static final int METHODID_LIST_PHRASE_SETS = 17; - private static final int METHODID_GET_PHRASE_SET = 18; - private static final int METHODID_UPDATE_PHRASE_SET = 19; - private static final int METHODID_DELETE_PHRASE_SET = 20; - private static final int METHODID_UNDELETE_PHRASE_SET = 21; - private static final int METHODID_STREAMING_RECOGNIZE = 22; - - 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_CREATE_RECOGNIZER: - serviceImpl.createRecognizer((com.google.cloud.speech.v2.CreateRecognizerRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_RECOGNIZERS: - serviceImpl.listRecognizers((com.google.cloud.speech.v2.ListRecognizersRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_RECOGNIZER: - serviceImpl.getRecognizer((com.google.cloud.speech.v2.GetRecognizerRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_RECOGNIZER: - serviceImpl.updateRecognizer((com.google.cloud.speech.v2.UpdateRecognizerRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_RECOGNIZER: - serviceImpl.deleteRecognizer((com.google.cloud.speech.v2.DeleteRecognizerRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNDELETE_RECOGNIZER: - serviceImpl.undeleteRecognizer((com.google.cloud.speech.v2.UndeleteRecognizerRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RECOGNIZE: - serviceImpl.recognize((com.google.cloud.speech.v2.RecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_RECOGNIZE: - serviceImpl.batchRecognize((com.google.cloud.speech.v2.BatchRecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CONFIG: - serviceImpl.getConfig((com.google.cloud.speech.v2.GetConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CONFIG: - serviceImpl.updateConfig((com.google.cloud.speech.v2.UpdateConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CUSTOM_CLASS: - serviceImpl.createCustomClass((com.google.cloud.speech.v2.CreateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CUSTOM_CLASSES: - serviceImpl.listCustomClasses((com.google.cloud.speech.v2.ListCustomClassesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CUSTOM_CLASS: - serviceImpl.getCustomClass((com.google.cloud.speech.v2.GetCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CUSTOM_CLASS: - serviceImpl.updateCustomClass((com.google.cloud.speech.v2.UpdateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CUSTOM_CLASS: - serviceImpl.deleteCustomClass((com.google.cloud.speech.v2.DeleteCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNDELETE_CUSTOM_CLASS: - serviceImpl.undeleteCustomClass((com.google.cloud.speech.v2.UndeleteCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_PHRASE_SET: - serviceImpl.createPhraseSet((com.google.cloud.speech.v2.CreatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_PHRASE_SETS: - serviceImpl.listPhraseSets((com.google.cloud.speech.v2.ListPhraseSetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PHRASE_SET: - serviceImpl.getPhraseSet((com.google.cloud.speech.v2.GetPhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_PHRASE_SET: - serviceImpl.updatePhraseSet((com.google.cloud.speech.v2.UpdatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_PHRASE_SET: - serviceImpl.deletePhraseSet((com.google.cloud.speech.v2.DeletePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNDELETE_PHRASE_SET: - serviceImpl.undeletePhraseSet((com.google.cloud.speech.v2.UndeletePhraseSetRequest) 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.v2.CloudSpeechProto.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(getCreateRecognizerMethod()) - .addMethod(getListRecognizersMethod()) - .addMethod(getGetRecognizerMethod()) - .addMethod(getUpdateRecognizerMethod()) - .addMethod(getDeleteRecognizerMethod()) - .addMethod(getUndeleteRecognizerMethod()) - .addMethod(getRecognizeMethod()) - .addMethod(getStreamingRecognizeMethod()) - .addMethod(getBatchRecognizeMethod()) - .addMethod(getGetConfigMethod()) - .addMethod(getUpdateConfigMethod()) - .addMethod(getCreateCustomClassMethod()) - .addMethod(getListCustomClassesMethod()) - .addMethod(getGetCustomClassMethod()) - .addMethod(getUpdateCustomClassMethod()) - .addMethod(getDeleteCustomClassMethod()) - .addMethod(getUndeleteCustomClassMethod()) - .addMethod(getCreatePhraseSetMethod()) - .addMethod(getListPhraseSetsMethod()) - .addMethod(getGetPhraseSetMethod()) - .addMethod(getUpdatePhraseSetMethod()) - .addMethod(getDeletePhraseSetMethod()) - .addMethod(getUndeletePhraseSetMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java deleted file mode 100644 index a00b9e8f5df9..000000000000 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/AutoDetectDecodingConfigOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public interface AutoDetectDecodingConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.AutoDetectDecodingConfig) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java deleted file mode 100644 index 3a87adc47c62..000000000000 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/BatchRecognizeMetadataOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public interface BatchRecognizeMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.BatchRecognizeMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Map from provided filename to the transcription metadata for that file.
-   * 
- * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - */ - int getTranscriptionMetadataCount(); - /** - *
-   * Map from provided filename to the transcription metadata for that file.
-   * 
- * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - */ - boolean containsTranscriptionMetadata( - java.lang.String key); - /** - * Use {@link #getTranscriptionMetadataMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getTranscriptionMetadata(); - /** - *
-   * Map from provided filename to the transcription metadata for that file.
-   * 
- * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - */ - java.util.Map - getTranscriptionMetadataMap(); - /** - *
-   * Map from provided filename to the transcription metadata for that file.
-   * 
- * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - */ - /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata defaultValue); - /** - *
-   * Map from provided filename to the transcription metadata for that file.
-   * 
- * - * map<string, .google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata> transcription_metadata = 1; - */ - com.google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata getTranscriptionMetadataOrThrow( - java.lang.String key); -} diff --git a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java deleted file mode 100644 index 9267d4ec1726..000000000000 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/CloudSpeechProto.java +++ /dev/null @@ -1,1186 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public final class CloudSpeechProto { - private CloudSpeechProto() {} - 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_v2_CreateRecognizerRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CreateRecognizerRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListRecognizersRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListRecognizersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListRecognizersResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListRecognizersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_GetRecognizerRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_GetRecognizerRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UpdateRecognizerRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_DeleteRecognizerRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UndeleteRecognizerRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_Recognizer_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_Recognizer_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_Recognizer_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_AutoDetectDecodingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ExplicitDecodingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_SpeakerDiarizationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_RecognitionFeatures_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_RecognitionFeatures_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_SpeechAdaptation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_SpeechAdaptation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_SpeechAdaptation_AdaptationPhraseSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_RecognitionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_RecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_RecognizeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_RecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_RecognitionResponseMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_SpeechRecognitionAlternative_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_WordInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_WordInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_SpeechRecognitionResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_SpeechRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_RecognizeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_RecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognitionFeatures_VoiceActivityTimeout_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeResponse_ResultsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeFileResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeTranscriptionMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeMetadata_TranscriptionMetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_BatchRecognizeFileMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognitionResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_StreamingRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_Config_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_Config_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_GetConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_GetConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UpdateConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UpdateConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_CustomClass_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CustomClass_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_CustomClass_ClassItem_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CustomClass_ClassItem_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CustomClass_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_PhraseSet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_PhraseSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_PhraseSet_Phrase_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_PhraseSet_Phrase_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_PhraseSet_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_CreateCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CreateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListCustomClassesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListCustomClassesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListCustomClassesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListCustomClassesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_GetCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_GetCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UpdateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_DeleteCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UndeleteCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_CreatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListPhraseSetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_ListPhraseSetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_GetPhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_GetPhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UpdatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_DeletePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v2_UndeletePhraseSetRequest_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/v2/cloud_speech.pr" + - "oto\022\026google.cloud.speech.v2\032\034google/api/" + - "annotations.proto\032\027google/api/client.pro" + - "to\032\037google/api/field_behavior.proto\032\031goo" + - "gle/api/resource.proto\032#google/longrunni" + - "ng/operations.proto\032\036google/protobuf/dur" + - "ation.proto\032 google/protobuf/field_mask." + - "proto\032\037google/protobuf/timestamp.proto\032\027" + - "google/rpc/status.proto\"\276\001\n\027CreateRecogn" + - "izerRequest\022;\n\nrecognizer\030\001 \001(\0132\".google" + - ".cloud.speech.v2.RecognizerB\003\340A\002\022\025\n\rvali" + - "date_only\030\002 \001(\010\022\025\n\rrecognizer_id\030\003 \001(\t\0228" + - "\n\006parent\030\004 \001(\tB(\340A\002\372A\"\022 speech.googleapi" + - "s.com/Recognizer\"\343\014\n\021OperationMetadata\022/" + - "\n\013create_time\030\001 \001(\0132\032.google.protobuf.Ti" + - "mestamp\022/\n\013update_time\030\002 \001(\0132\032.google.pr" + - "otobuf.Timestamp\022\020\n\010resource\030\003 \001(\t\022\016\n\006me" + - "thod\030\004 \001(\t\022<\n\014kms_key_name\030\006 \001(\tB&\372A#\n!c" + - "loudkms.googleapis.com/CryptoKey\022K\n\024kms_" + - "key_version_name\030\007 \001(\tB-\372A*\n(cloudkms.go" + - "ogleapis.com/CryptoKeyVersion\022P\n\027batch_r" + - "ecognize_request\030\010 \001(\0132-.google.cloud.sp" + - "eech.v2.BatchRecognizeRequestH\000\022T\n\031creat" + - "e_recognizer_request\030\t \001(\0132/.google.clou" + - "d.speech.v2.CreateRecognizerRequestH\000\022T\n" + - "\031update_recognizer_request\030\n \001(\0132/.googl" + - "e.cloud.speech.v2.UpdateRecognizerReques" + - "tH\000\022T\n\031delete_recognizer_request\030\013 \001(\0132/" + - ".google.cloud.speech.v2.DeleteRecognizer" + - "RequestH\000\022X\n\033undelete_recognizer_request" + - "\030\014 \001(\01321.google.cloud.speech.v2.Undelete" + - "RecognizerRequestH\000\022W\n\033create_custom_cla" + - "ss_request\030\r \001(\01320.google.cloud.speech.v" + - "2.CreateCustomClassRequestH\000\022W\n\033update_c" + - "ustom_class_request\030\016 \001(\01320.google.cloud" + - ".speech.v2.UpdateCustomClassRequestH\000\022W\n" + - "\033delete_custom_class_request\030\017 \001(\01320.goo" + - "gle.cloud.speech.v2.DeleteCustomClassReq" + - "uestH\000\022[\n\035undelete_custom_class_request\030" + - "\020 \001(\01322.google.cloud.speech.v2.UndeleteC" + - "ustomClassRequestH\000\022S\n\031create_phrase_set" + - "_request\030\021 \001(\0132..google.cloud.speech.v2." + - "CreatePhraseSetRequestH\000\022S\n\031update_phras" + - "e_set_request\030\022 \001(\0132..google.cloud.speec" + - "h.v2.UpdatePhraseSetRequestH\000\022S\n\031delete_" + - "phrase_set_request\030\023 \001(\0132..google.cloud." + - "speech.v2.DeletePhraseSetRequestH\000\022W\n\033un" + - "delete_phrase_set_request\030\024 \001(\01320.google" + - ".cloud.speech.v2.UndeletePhraseSetReques" + - "tH\000\022L\n\025update_config_request\030\025 \001(\0132+.goo" + - "gle.cloud.speech.v2.UpdateConfigRequestH" + - "\000\022\030\n\020progress_percent\030\026 \001(\005\022R\n\030batch_rec" + - "ognize_metadata\030\027 \001(\0132..google.cloud.spe" + - "ech.v2.BatchRecognizeMetadataH\001B\t\n\007reque" + - "stB\n\n\010metadata\"\220\001\n\026ListRecognizersReques" + - "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goo" + - "gleapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022" + - "\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(" + - "\010\"k\n\027ListRecognizersResponse\0227\n\013recogniz" + - "ers\030\001 \003(\0132\".google.cloud.speech.v2.Recog" + - "nizer\022\027\n\017next_page_token\030\002 \001(\t\"N\n\024GetRec" + - "ognizerRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n sp" + - "eech.googleapis.com/Recognizer\"\236\001\n\027Updat" + - "eRecognizerRequest\022;\n\nrecognizer\030\001 \001(\0132\"" + - ".google.cloud.speech.v2.RecognizerB\003\340A\002\022" + - "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + - "ieldMask\022\025\n\rvalidate_only\030\004 \001(\010\"\215\001\n\027Dele" + - "teRecognizerRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A" + - "\"\n speech.googleapis.com/Recognizer\022\025\n\rv" + - "alidate_only\030\002 \001(\010\022\025\n\rallow_missing\030\004 \001(" + - "\010\022\014\n\004etag\030\003 \001(\t\"x\n\031UndeleteRecognizerReq" + - "uest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n speech.googl" + - "eapis.com/Recognizer\022\025\n\rvalidate_only\030\003 " + - "\001(\010\022\014\n\004etag\030\004 \001(\t\"\276\007\n\nRecognizer\022\021\n\004name" + - "\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\024\n\014display" + - "_name\030\003 \001(\t\022\022\n\005model\030\004 \001(\tB\003\340A\002\022\033\n\016langu" + - "age_codes\030\021 \003(\tB\003\340A\002\022M\n\032default_recognit" + - "ion_config\030\006 \001(\0132).google.cloud.speech.v" + - "2.RecognitionConfig\022H\n\013annotations\030\007 \003(\013" + - "23.google.cloud.speech.v2.Recognizer.Ann" + - "otationsEntry\022<\n\005state\030\010 \001(\0162(.google.cl" + - "oud.speech.v2.Recognizer.StateB\003\340A\003\0224\n\013c" + - "reate_time\030\t \001(\0132\032.google.protobuf.Times" + - "tampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.google." + - "protobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\013" + - " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + - "\013expire_time\030\016 \001(\0132\032.google.protobuf.Tim" + - "estampB\003\340A\003\022\021\n\004etag\030\014 \001(\tB\003\340A\003\022\030\n\013reconc" + - "iling\030\r \001(\010B\003\340A\003\022?\n\014kms_key_name\030\017 \001(\tB)" + - "\340A\003\372A#\n!cloudkms.googleapis.com/CryptoKe" + - "y\022N\n\024kms_key_version_name\030\020 \001(\tB0\340A\003\372A*\n" + - "(cloudkms.googleapis.com/CryptoKeyVersio" + - "n\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + - "lue\030\002 \001(\t:\0028\001\"7\n\005State\022\025\n\021STATE_UNSPECIF" + - "IED\020\000\022\n\n\006ACTIVE\020\002\022\013\n\007DELETED\020\004:j\352Ag\n spe" + - "ech.googleapis.com/Recognizer\022@projects/" + - "{project}/locations/{location}/recognize" + - "rs/{recognizer}R\001\001\"\032\n\030AutoDetectDecoding" + - "Config\"\371\001\n\026ExplicitDecodingConfig\022S\n\010enc" + - "oding\030\001 \001(\0162<.google.cloud.speech.v2.Exp" + - "licitDecodingConfig.AudioEncodingB\003\340A\002\022\031" + - "\n\021sample_rate_hertz\030\002 \001(\005\022\033\n\023audio_chann" + - "el_count\030\003 \001(\005\"R\n\rAudioEncoding\022\036\n\032AUDIO" + - "_ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\t\n" + - "\005MULAW\020\002\022\010\n\004ALAW\020\003\"Z\n\030SpeakerDiarization" + - "Config\022\036\n\021min_speaker_count\030\002 \001(\005B\003\340A\002\022\036" + - "\n\021max_speaker_count\030\003 \001(\005B\003\340A\002\"\370\003\n\023Recog" + - "nitionFeatures\022\030\n\020profanity_filter\030\001 \001(\010" + - "\022 \n\030enable_word_time_offsets\030\002 \001(\010\022\036\n\026en" + - "able_word_confidence\030\003 \001(\010\022$\n\034enable_aut" + - "omatic_punctuation\030\004 \001(\010\022!\n\031enable_spoke" + - "n_punctuation\030\016 \001(\010\022\034\n\024enable_spoken_emo" + - "jis\030\017 \001(\010\022X\n\022multi_channel_mode\030\021 \001(\0162<." + - "google.cloud.speech.v2.RecognitionFeatur" + - "es.MultiChannelMode\022L\n\022diarization_confi" + - "g\030\t \001(\01320.google.cloud.speech.v2.Speaker" + - "DiarizationConfig\022\030\n\020max_alternatives\030\020 " + - "\001(\005\"\\\n\020MultiChannelMode\022\"\n\036MULTI_CHANNEL" + - "_MODE_UNSPECIFIED\020\000\022$\n SEPARATE_RECOGNIT" + - "ION_PER_CHANNEL\020\001\"\277\002\n\020SpeechAdaptation\022Q" + - "\n\013phrase_sets\030\001 \003(\0132<.google.cloud.speec" + - "h.v2.SpeechAdaptation.AdaptationPhraseSe" + - "t\022;\n\016custom_classes\030\002 \003(\0132#.google.cloud" + - ".speech.v2.CustomClass\032\232\001\n\023AdaptationPhr" + - "aseSet\022:\n\nphrase_set\030\001 \001(\tB$\372A!\n\037speech." + - "googleapis.com/PhraseSetH\000\022>\n\021inline_phr" + - "ase_set\030\002 \001(\0132!.google.cloud.speech.v2.P" + - "hraseSetH\000B\007\n\005value\"\311\002\n\021RecognitionConfi" + - "g\022P\n\024auto_decoding_config\030\007 \001(\01320.google" + - ".cloud.speech.v2.AutoDetectDecodingConfi" + - "gH\000\022R\n\030explicit_decoding_config\030\010 \001(\0132.." + - "google.cloud.speech.v2.ExplicitDecodingC" + - "onfigH\000\022=\n\010features\030\002 \001(\0132+.google.cloud" + - ".speech.v2.RecognitionFeatures\022<\n\nadapta" + - "tion\030\006 \001(\0132(.google.cloud.speech.v2.Spee" + - "chAdaptationB\021\n\017decoding_config\"\356\001\n\020Reco" + - "gnizeRequest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A\"" + - "\n speech.googleapis.com/Recognizer\0229\n\006co" + - "nfig\030\001 \001(\0132).google.cloud.speech.v2.Reco" + - "gnitionConfig\022/\n\013config_mask\030\010 \001(\0132\032.goo" + - "gle.protobuf.FieldMask\022\021\n\007content\030\005 \001(\014H" + - "\000\022\r\n\003uri\030\006 \001(\tH\000B\016\n\014audio_source\"W\n\033Reco" + - "gnitionResponseMetadata\0228\n\025total_billed_" + - "duration\030\006 \001(\0132\031.google.protobuf.Duratio" + - "n\"w\n\034SpeechRecognitionAlternative\022\022\n\ntra" + - "nscript\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\022/\n\005wor" + - "ds\030\003 \003(\0132 .google.cloud.speech.v2.WordIn" + - "fo\"\243\001\n\010WordInfo\022/\n\014start_offset\030\001 \001(\0132\031." + - "google.protobuf.Duration\022-\n\nend_offset\030\002" + - " \001(\0132\031.google.protobuf.Duration\022\014\n\004word\030" + - "\003 \001(\t\022\022\n\nconfidence\030\004 \001(\002\022\025\n\rspeaker_lab" + - "el\030\006 \001(\t\"\314\001\n\027SpeechRecognitionResult\022J\n\014" + - "alternatives\030\001 \003(\01324.google.cloud.speech" + - ".v2.SpeechRecognitionAlternative\022\023\n\013chan" + - "nel_tag\030\002 \001(\005\0224\n\021result_end_offset\030\004 \001(\013" + - "2\031.google.protobuf.Duration\022\032\n\rlanguage_" + - "code\030\005 \001(\tB\003\340A\003\"\234\001\n\021RecognizeResponse\022@\n" + - "\007results\030\003 \003(\0132/.google.cloud.speech.v2." + - "SpeechRecognitionResult\022E\n\010metadata\030\002 \001(" + - "\01323.google.cloud.speech.v2.RecognitionRe" + - "sponseMetadata\"\321\002\n\034StreamingRecognitionF" + - "eatures\022$\n\034enable_voice_activity_events\030" + - "\001 \001(\010\022\027\n\017interim_results\030\002 \001(\010\022i\n\026voice_" + - "activity_timeout\030\003 \001(\0132I.google.cloud.sp" + - "eech.v2.StreamingRecognitionFeatures.Voi" + - "ceActivityTimeout\032\206\001\n\024VoiceActivityTimeo" + - "ut\0227\n\024speech_start_timeout\030\001 \001(\0132\031.googl" + - "e.protobuf.Duration\0225\n\022speech_end_timeou" + - "t\030\002 \001(\0132\031.google.protobuf.Duration\"\337\001\n\032S" + - "treamingRecognitionConfig\022>\n\006config\030\001 \001(" + - "\0132).google.cloud.speech.v2.RecognitionCo" + - "nfigB\003\340A\002\022/\n\013config_mask\030\003 \001(\0132\032.google." + - "protobuf.FieldMask\022P\n\022streaming_features" + - "\030\002 \001(\01324.google.cloud.speech.v2.Streamin" + - "gRecognitionFeatures\"\317\001\n\031StreamingRecogn" + - "izeRequest\022<\n\nrecognizer\030\003 \001(\tB(\340A\002\372A\"\n " + - "speech.googleapis.com/Recognizer\022N\n\020stre" + - "aming_config\030\006 \001(\01322.google.cloud.speech" + - ".v2.StreamingRecognitionConfigH\000\022\017\n\005audi" + - "o\030\005 \001(\014H\000B\023\n\021streaming_request\"\204\002\n\025Batch" + - "RecognizeRequest\022<\n\nrecognizer\030\001 \001(\tB(\340A" + - "\002\372A\"\n speech.googleapis.com/Recognizer\0229" + - "\n\006config\030\004 \001(\0132).google.cloud.speech.v2." + - "RecognitionConfig\022/\n\013config_mask\030\005 \001(\0132\032" + - ".google.protobuf.FieldMask\022A\n\005files\030\003 \003(" + - "\01322.google.cloud.speech.v2.BatchRecogniz" + - "eFileMetadata\"\310\001\n\026BatchRecognizeResponse" + - "\022L\n\007results\030\001 \003(\0132;.google.cloud.speech." + - "v2.BatchRecognizeResponse.ResultsEntry\032`" + - "\n\014ResultsEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001" + - "(\01320.google.cloud.speech.v2.BatchRecogni" + - "zeFileResult:\0028\001\"J\n\030BatchRecognizeFileRe" + - "sult\022\013\n\003uri\030\001 \001(\t\022!\n\005error\030\002 \001(\0132\022.googl" + - "e.rpc.Status\"o\n#BatchRecognizeTranscript" + - "ionMetadata\022\030\n\020progress_percent\030\001 \001(\005\022!\n" + - "\005error\030\002 \001(\0132\022.google.rpc.Status\022\013\n\003uri\030" + - "\003 \001(\t\"\376\001\n\026BatchRecognizeMetadata\022i\n\026tran" + - "scription_metadata\030\001 \003(\0132I.google.cloud." + - "speech.v2.BatchRecognizeMetadata.Transcr" + - "iptionMetadataEntry\032y\n\032TranscriptionMeta" + - "dataEntry\022\013\n\003key\030\001 \001(\t\022J\n\005value\030\002 \001(\0132;." + - "google.cloud.speech.v2.BatchRecognizeTra" + - "nscriptionMetadata:\0028\001\"\247\001\n\032BatchRecogniz" + - "eFileMetadata\022\r\n\003uri\030\001 \001(\tH\000\0229\n\006config\030\004" + - " \001(\0132).google.cloud.speech.v2.Recognitio" + - "nConfig\022/\n\013config_mask\030\005 \001(\0132\032.google.pr" + - "otobuf.FieldMaskB\016\n\014audio_source\"\364\001\n\032Str" + - "eamingRecognitionResult\022J\n\014alternatives\030" + - "\001 \003(\01324.google.cloud.speech.v2.SpeechRec" + - "ognitionAlternative\022\020\n\010is_final\030\002 \001(\010\022\021\n" + - "\tstability\030\003 \001(\002\0224\n\021result_end_offset\030\004 " + - "\001(\0132\031.google.protobuf.Duration\022\023\n\013channe" + - "l_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(\tB\003\340A\003\"" + - "\307\003\n\032StreamingRecognizeResponse\022C\n\007result" + - "s\030\006 \003(\01322.google.cloud.speech.v2.Streami" + - "ngRecognitionResult\022]\n\021speech_event_type" + - "\030\003 \001(\0162B.google.cloud.speech.v2.Streamin" + - "gRecognizeResponse.SpeechEventType\0226\n\023sp" + - "eech_event_offset\030\007 \001(\0132\031.google.protobu" + - "f.Duration\022E\n\010metadata\030\005 \001(\01323.google.cl" + - "oud.speech.v2.RecognitionResponseMetadat" + - "a\"\205\001\n\017SpeechEventType\022!\n\035SPEECH_EVENT_TY" + - "PE_UNSPECIFIED\020\000\022\033\n\027END_OF_SINGLE_UTTERA" + - "NCE\020\001\022\031\n\025SPEECH_ACTIVITY_BEGIN\020\002\022\027\n\023SPEE" + - "CH_ACTIVITY_END\020\003\"\345\001\n\006Config\022\021\n\004name\030\001 \001" + - "(\tB\003\340A\003\022?\n\014kms_key_name\030\002 \001(\tB)\340A\001\372A#\n!c" + - "loudkms.googleapis.com/CryptoKey\0224\n\013upda" + - "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" + - "pB\003\340A\003:Q\352AN\n\034speech.googleapis.com/Confi" + - "g\022.projects/{project}/locations/{locatio" + - "n}/config\"F\n\020GetConfigRequest\0222\n\004name\030\001 " + - "\001(\tB$\340A\002\372A\036\n\034speech.googleapis.com/Confi" + - "g\"{\n\023UpdateConfigRequest\0223\n\006config\030\001 \001(\013" + - "2\036.google.cloud.speech.v2.ConfigB\003\340A\002\022/\n" + - "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + - "ldMask\"\240\007\n\013CustomClass\022\021\n\004name\030\001 \001(\tB\003\340A" + - "\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\024\n\014display_name\030\004 \001(" + - "\t\022<\n\005items\030\005 \003(\0132-.google.cloud.speech.v" + - "2.CustomClass.ClassItem\022=\n\005state\030\017 \001(\0162)" + - ".google.cloud.speech.v2.CustomClass.Stat" + - "eB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.pro" + - "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(" + - "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013de" + - "lete_time\030\010 \001(\0132\032.google.protobuf.Timest" + - "ampB\003\340A\003\0224\n\013expire_time\030\t \001(\0132\032.google.p" + - "rotobuf.TimestampB\003\340A\003\022I\n\013annotations\030\n " + - "\003(\01324.google.cloud.speech.v2.CustomClass" + - ".AnnotationsEntry\022\021\n\004etag\030\013 \001(\tB\003\340A\003\022\030\n\013" + - "reconciling\030\014 \001(\010B\003\340A\003\022?\n\014kms_key_name\030\r" + - " \001(\tB)\340A\003\372A#\n!cloudkms.googleapis.com/Cr" + - "yptoKey\022N\n\024kms_key_version_name\030\016 \001(\tB0\340" + - "A\003\372A*\n(cloudkms.googleapis.com/CryptoKey" + - "Version\032\032\n\tClassItem\022\r\n\005value\030\001 \001(\t\0322\n\020A" + - "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\t:\0028\001\"7\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + - "\n\n\006ACTIVE\020\002\022\013\n\007DELETED\020\004:o\352Al\n!speech.go" + - "ogleapis.com/CustomClass\022Dprojects/{proj" + - "ect}/locations/{location}/customClasses/" + - "{custom_class}R\001\001\"\253\007\n\tPhraseSet\022\021\n\004name\030" + - "\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\0229\n\007phrases\030" + - "\003 \003(\0132(.google.cloud.speech.v2.PhraseSet" + - ".Phrase\022\r\n\005boost\030\004 \001(\002\022\024\n\014display_name\030\005" + - " \001(\t\022;\n\005state\030\017 \001(\0162\'.google.cloud.speec" + - "h.v2.PhraseSet.StateB\003\340A\003\0224\n\013create_time" + - "\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + - "4\n\013update_time\030\007 \001(\0132\032.google.protobuf.T" + - "imestampB\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032.goo" + - "gle.protobuf.TimestampB\003\340A\003\0224\n\013expire_ti" + - "me\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A" + - "\003\022G\n\013annotations\030\n \003(\01322.google.cloud.sp" + - "eech.v2.PhraseSet.AnnotationsEntry\022\021\n\004et" + - "ag\030\013 \001(\tB\003\340A\003\022\030\n\013reconciling\030\014 \001(\010B\003\340A\003\022" + - "?\n\014kms_key_name\030\r \001(\tB)\340A\003\372A#\n!cloudkms." + - "googleapis.com/CryptoKey\022N\n\024kms_key_vers" + - "ion_name\030\016 \001(\tB0\340A\003\372A*\n(cloudkms.googlea" + - "pis.com/CryptoKeyVersion\032&\n\006Phrase\022\r\n\005va" + - "lue\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002\0322\n\020AnnotationsE" + - "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\005" + - "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\002" + - "\022\013\n\007DELETED\020\004:h\352Ae\n\037speech.googleapis.co" + - "m/PhraseSet\022?projects/{project}/location" + - "s/{location}/phraseSets/{phrase_set}R\001\001\"" + - "\305\001\n\030CreateCustomClassRequest\022>\n\014custom_c" + - "lass\030\001 \001(\0132#.google.cloud.speech.v2.Cust" + - "omClassB\003\340A\002\022\025\n\rvalidate_only\030\002 \001(\010\022\027\n\017c" + - "ustom_class_id\030\003 \001(\t\0229\n\006parent\030\004 \001(\tB)\340A" + - "\002\372A#\022!speech.googleapis.com/CustomClass\"" + - "\222\001\n\030ListCustomClassesRequest\0229\n\006parent\030\001" + - " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + - "ocation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + - "\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"q\n\031ListCust" + - "omClassesResponse\022;\n\016custom_classes\030\001 \003(" + - "\0132#.google.cloud.speech.v2.CustomClass\022\027" + - "\n\017next_page_token\030\002 \001(\t\"P\n\025GetCustomClas" + - "sRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.g" + - "oogleapis.com/CustomClass\"\242\001\n\030UpdateCust" + - "omClassRequest\022>\n\014custom_class\030\001 \001(\0132#.g" + - "oogle.cloud.speech.v2.CustomClassB\003\340A\002\022/" + - "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + - "eldMask\022\025\n\rvalidate_only\030\004 \001(\010\"\217\001\n\030Delet" + - "eCustomClassRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A" + - "#\n!speech.googleapis.com/CustomClass\022\025\n\r" + - "validate_only\030\002 \001(\010\022\025\n\rallow_missing\030\004 \001" + - "(\010\022\014\n\004etag\030\003 \001(\t\"z\n\032UndeleteCustomClassR" + - "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.goo" + - "gleapis.com/CustomClass\022\025\n\rvalidate_only" + - "\030\003 \001(\010\022\014\n\004etag\030\004 \001(\t\"\273\001\n\026CreatePhraseSet" + - "Request\022:\n\nphrase_set\030\001 \001(\0132!.google.clo" + - "ud.speech.v2.PhraseSetB\003\340A\002\022\025\n\rvalidate_" + - "only\030\002 \001(\010\022\025\n\rphrase_set_id\030\003 \001(\t\0227\n\006par" + - "ent\030\004 \001(\tB\'\340A\002\372A!\022\037speech.googleapis.com" + - "/PhraseSet\"\217\001\n\025ListPhraseSetsRequest\0229\n\006" + - "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + - "is.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + - "ge_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"i\n\026" + - "ListPhraseSetsResponse\0226\n\013phrase_sets\030\001 " + - "\003(\0132!.google.cloud.speech.v2.PhraseSet\022\027" + - "\n\017next_page_token\030\002 \001(\t\"L\n\023GetPhraseSetR" + - "equest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.goo" + - "gleapis.com/PhraseSet\"\234\001\n\026UpdatePhraseSe" + - "tRequest\022:\n\nphrase_set\030\001 \001(\0132!.google.cl" + - "oud.speech.v2.PhraseSetB\003\340A\002\022/\n\013update_m" + - "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\022\025\n" + - "\rvalidate_only\030\004 \001(\010\"\213\001\n\026DeletePhraseSet" + - "Request\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037speech.go" + - "ogleapis.com/PhraseSet\022\025\n\rvalidate_only\030" + - "\002 \001(\010\022\025\n\rallow_missing\030\004 \001(\010\022\014\n\004etag\030\003 \001" + - "(\t\"v\n\030UndeletePhraseSetRequest\0225\n\004name\030\001" + - " \001(\tB\'\340A\002\372A!\n\037speech.googleapis.com/Phra" + - "seSet\022\025\n\rvalidate_only\030\003 \001(\010\022\014\n\004etag\030\004 \001" + - "(\t2\277%\n\006Speech\022\354\001\n\020CreateRecognizer\022/.goo" + - "gle.cloud.speech.v2.CreateRecognizerRequ" + - "est\032\035.google.longrunning.Operation\"\207\001\202\323\344" + - "\223\002=\"//v2/{parent=projects/*/locations/*}" + - "/recognizers:\nrecognizer\332A\037parent,recogn" + - "izer,recognizer_id\312A\037\n\nRecognizer\022\021Opera" + - "tionMetadata\022\264\001\n\017ListRecognizers\022..googl" + - "e.cloud.speech.v2.ListRecognizersRequest" + - "\032/.google.cloud.speech.v2.ListRecognizer" + - "sResponse\"@\202\323\344\223\0021\022//v2/{parent=projects/" + - "*/locations/*}/recognizers\332A\006parent\022\241\001\n\r" + - "GetRecognizer\022,.google.cloud.speech.v2.G" + - "etRecognizerRequest\032\".google.cloud.speec" + - "h.v2.Recognizer\">\202\323\344\223\0021\022//v2/{name=proje" + - "cts/*/locations/*/recognizers/*}\332A\004name\022" + - "\356\001\n\020UpdateRecognizer\022/.google.cloud.spee" + - "ch.v2.UpdateRecognizerRequest\032\035.google.l" + - "ongrunning.Operation\"\211\001\202\323\344\223\002H2:/v2/{reco" + - "gnizer.name=projects/*/locations/*/recog" + - "nizers/*}:\nrecognizer\332A\026recognizer,updat" + - "e_mask\312A\037\n\nRecognizer\022\021OperationMetadata" + - "\022\304\001\n\020DeleteRecognizer\022/.google.cloud.spe" + - "ech.v2.DeleteRecognizerRequest\032\035.google." + - "longrunning.Operation\"`\202\323\344\223\0021*//v2/{name" + - "=projects/*/locations/*/recognizers/*}\332A" + - "\004name\312A\037\n\nRecognizer\022\021OperationMetadata\022" + - "\324\001\n\022UndeleteRecognizer\0221.google.cloud.sp" + - "eech.v2.UndeleteRecognizerRequest\032\035.goog" + - "le.longrunning.Operation\"l\202\323\344\223\002=\"8/v2/{n" + - "ame=projects/*/locations/*/recognizers/*" + - "}:undelete:\001*\332A\004name\312A\037\n\nRecognizer\022\021Ope" + - "rationMetadata\022\371\001\n\tRecognize\022(.google.cl" + - "oud.speech.v2.RecognizeRequest\032).google." + - "cloud.speech.v2.RecognizeResponse\"\226\001\202\323\344\223" + - "\002D\"?/v2/{recognizer=projects/*/locations" + - "/*/recognizers/*}:recognize:\001*\332A%recogni" + - "zer,config,config_mask,content\332A!recogni" + - "zer,config,config_mask,uri\022\201\001\n\022Streaming" + - "Recognize\0221.google.cloud.speech.v2.Strea" + - "mingRecognizeRequest\0322.google.cloud.spee" + - "ch.v2.StreamingRecognizeResponse\"\000(\0010\001\022\204" + - "\002\n\016BatchRecognize\022-.google.cloud.speech." + - "v2.BatchRecognizeRequest\032\035.google.longru" + - "nning.Operation\"\243\001\202\323\344\223\002I\"D/v2/{recognize" + - "r=projects/*/locations/*/recognizers/*}:" + - "batchRecognize:\001*\332A#recognizer,config,co" + - "nfig_mask,files\312A+\n\026BatchRecognizeRespon" + - "se\022\021OperationMetadata\022\216\001\n\tGetConfig\022(.go" + - "ogle.cloud.speech.v2.GetConfigRequest\032\036." + - "google.cloud.speech.v2.Config\"7\202\323\344\223\002*\022(/" + - "v2/{name=projects/*/locations/*/config}\332" + - "A\004name\022\261\001\n\014UpdateConfig\022+.google.cloud.s" + - "peech.v2.UpdateConfigRequest\032\036.google.cl" + - "oud.speech.v2.Config\"T\202\323\344\223\00292//v2/{confi" + - "g.name=projects/*/locations/*/config}:\006c" + - "onfig\332A\022config,update_mask\022\367\001\n\021CreateCus" + - "tomClass\0220.google.cloud.speech.v2.Create" + - "CustomClassRequest\032\035.google.longrunning." + - "Operation\"\220\001\202\323\344\223\002A\"1/v2/{parent=projects" + - "/*/locations/*}/customClasses:\014custom_cl" + - "ass\332A#parent,custom_class,custom_class_i" + - "d\312A \n\013CustomClass\022\021OperationMetadata\022\274\001\n" + - "\021ListCustomClasses\0220.google.cloud.speech" + - ".v2.ListCustomClassesRequest\0321.google.cl" + - "oud.speech.v2.ListCustomClassesResponse\"" + - "B\202\323\344\223\0023\0221/v2/{parent=projects/*/location" + - "s/*}/customClasses\332A\006parent\022\246\001\n\016GetCusto" + - "mClass\022-.google.cloud.speech.v2.GetCusto" + - "mClassRequest\032#.google.cloud.speech.v2.C" + - "ustomClass\"@\202\323\344\223\0023\0221/v2/{name=projects/*", - "/locations/*/customClasses/*}\332A\004name\022\371\001\n" + - "\021UpdateCustomClass\0220.google.cloud.speech" + - ".v2.UpdateCustomClassRequest\032\035.google.lo" + - "ngrunning.Operation\"\222\001\202\323\344\223\002N2>/v2/{custo" + - "m_class.name=projects/*/locations/*/cust" + - "omClasses/*}:\014custom_class\332A\030custom_clas" + - "s,update_mask\312A \n\013CustomClass\022\021Operation" + - "Metadata\022\311\001\n\021DeleteCustomClass\0220.google." + - "cloud.speech.v2.DeleteCustomClassRequest" + - "\032\035.google.longrunning.Operation\"c\202\323\344\223\0023*" + - "1/v2/{name=projects/*/locations/*/custom" + - "Classes/*}\332A\004name\312A \n\013CustomClass\022\021Opera" + - "tionMetadata\022\331\001\n\023UndeleteCustomClass\0222.g" + - "oogle.cloud.speech.v2.UndeleteCustomClas" + - "sRequest\032\035.google.longrunning.Operation\"" + - "o\202\323\344\223\002?\":/v2/{name=projects/*/locations/" + - "*/customClasses/*}:undelete:\001*\332A\004name\312A " + - "\n\013CustomClass\022\021OperationMetadata\022\350\001\n\017Cre" + - "atePhraseSet\022..google.cloud.speech.v2.Cr" + - "eatePhraseSetRequest\032\035.google.longrunnin" + - "g.Operation\"\205\001\202\323\344\223\002<\"./v2/{parent=projec" + - "ts/*/locations/*}/phraseSets:\nphrase_set" + - "\332A\037parent,phrase_set,phrase_set_id\312A\036\n\tP" + - "hraseSet\022\021OperationMetadata\022\260\001\n\016ListPhra" + - "seSets\022-.google.cloud.speech.v2.ListPhra" + - "seSetsRequest\032..google.cloud.speech.v2.L" + - "istPhraseSetsResponse\"?\202\323\344\223\0020\022./v2/{pare" + - "nt=projects/*/locations/*}/phraseSets\332A\006" + - "parent\022\235\001\n\014GetPhraseSet\022+.google.cloud.s" + - "peech.v2.GetPhraseSetRequest\032!.google.cl" + - "oud.speech.v2.PhraseSet\"=\202\323\344\223\0020\022./v2/{na" + - "me=projects/*/locations/*/phraseSets/*}\332" + - "A\004name\022\352\001\n\017UpdatePhraseSet\022..google.clou" + - "d.speech.v2.UpdatePhraseSetRequest\032\035.goo" + - "gle.longrunning.Operation\"\207\001\202\323\344\223\002G29/v2/" + - "{phrase_set.name=projects/*/locations/*/" + - "phraseSets/*}:\nphrase_set\332A\026phrase_set,u" + - "pdate_mask\312A\036\n\tPhraseSet\022\021OperationMetad" + - "ata\022\300\001\n\017DeletePhraseSet\022..google.cloud.s" + - "peech.v2.DeletePhraseSetRequest\032\035.google" + - ".longrunning.Operation\"^\202\323\344\223\0020*./v2/{nam" + - "e=projects/*/locations/*/phraseSets/*}\332A" + - "\004name\312A\036\n\tPhraseSet\022\021OperationMetadata\022\320" + - "\001\n\021UndeletePhraseSet\0220.google.cloud.spee" + - "ch.v2.UndeletePhraseSetRequest\032\035.google." + - "longrunning.Operation\"j\202\323\344\223\002<\"7/v2/{name" + - "=projects/*/locations/*/phraseSets/*}:un" + - "delete:\001*\332A\004name\312A\036\n\tPhraseSet\022\021Operatio" + - "nMetadata\032I\312A\025speech.googleapis.com\322A.ht" + - "tps://www.googleapis.com/auth/cloud-plat" + - "formB\223\003\n\032com.google.cloud.speech.v2B\020Clo" + - "udSpeechProtoP\001Z - * Required. The name of the config to retrieve. There is exactly one config - * resource per project per location. The expected format is - * `projects/{project}/locations/{location}/config`. - *
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the config to retrieve. There is exactly one config
-   * resource per project per location. The expected format is
-   * `projects/{project}/locations/{location}/config`.
-   * 
- * - * 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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java deleted file mode 100644 index 802b65dfe8d3..000000000000 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetCustomClassRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public interface GetCustomClassRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetCustomClassRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the CustomClass to retrieve. The expected format is
-   * `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 CustomClass to retrieve. The expected format is
-   * `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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java deleted file mode 100644 index 1d4c50701f84..000000000000 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetPhraseSetRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public interface GetPhraseSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetPhraseSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the PhraseSet to retrieve. The expected format is
-   * `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 PhraseSet to retrieve. The expected format is
-   * `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/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java b/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java deleted file mode 100644 index de49eac1d47b..000000000000 --- a/owl-bot-staging/java-speech/v2/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/GetRecognizerRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v2/cloud_speech.proto - -package com.google.cloud.speech.v2; - -public interface GetRecognizerRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v2.GetRecognizerRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the Recognizer to retrieve. The expected format is
-   * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the Recognizer to retrieve. The expected format is
-   * `projects/{project}/locations/{location}/recognizers/{recognizer}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -}